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
-54
-82

query I rowsort
SELECT DISTINCT col1 - - - col0 * col1 * ( col1 ) + - + ( - - col0 ) * col1 * + 95 AS col1 FROM tab2
----
-342465
-813983
-847539

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5573
SELECT ALL ( - CAST( NULL AS SIGNED ) ) AS col2, 99 * - col2 AS col0 FROM tab0
----
NULL
-4653
NULL
-9801
NULL
-990

skipif mysql # not compatible
query II rowsort label-5573
SELECT ALL ( - CAST ( NULL AS INTEGER ) ) AS col2, 99 * - col2 AS col0 FROM tab0
----
NULL
-4653
NULL
-9801
NULL
-990

query I rowsort
SELECT DISTINCT col0 * - col2 - col2 FROM tab0
----
-752
-880
-9702

onlyif mysql # aggregate syntax: 
query I rowsort label-5575
SELECT DISTINCT ( SUM( - 77 ) ) FROM tab2
----
-231

skipif mysql # not compatible
query I rowsort label-5575
SELECT DISTINCT ( SUM ( - 77 ) ) FROM tab2
----
-231

onlyif mysql # aggregate syntax: 
query I rowsort label-5576
SELECT + MIN( col0 ) FROM tab2 WHERE NULL <= 68
----
NULL

skipif mysql # not compatible
query I rowsort label-5576
SELECT + MIN ( col0 ) FROM tab2 WHERE NULL <= 68
----
NULL

query I rowsort
SELECT DISTINCT - col2 * + col0 + - ( - + col0 ) AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-4845
-4930
-6097

onlyif mysql # aggregate syntax: 
query I rowsort label-5578
SELECT ( - MAX( DISTINCT + ( + 83 ) ) ) FROM tab2 cor0
----
-83

skipif mysql # not compatible
query I rowsort label-5578
SELECT ( - MAX ( DISTINCT + ( + 83 ) ) ) FROM tab2 cor0
----
-83

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 84 * + col1 col1 FROM tab2 cor0
----
-4284
-5628
-6468

onlyif mysql # DIV for integer division: 
query I rowsort label-5581
SELECT DISTINCT 39 DIV - + 19 AS col0 FROM tab0 AS cor0 WHERE NOT 87 - - col2 + + col1 + + + col2 = col2
----
-2

skipif mysql # not compatible
query I rowsort label-5581
SELECT DISTINCT 39 / - + 19 AS col0 FROM tab0 AS cor0 WHERE NOT 87 - - col2 + + col1 + + + col2 = col2
----
-2

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

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

query I rowsort
SELECT DISTINCT - ( 62 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5584
SELECT col1 AS col1, - 32 * CAST( - + 51 AS SIGNED ) + - + 18 + + col2 - col0 FROM tab0
----
1
1616
21
1537
81
1646

skipif mysql # not compatible
query II rowsort label-5584
SELECT col1 AS col1, - 32 * CAST ( - + 51 AS INTEGER ) + - + 18 + + col2 - col0 FROM tab0
----
1
1616
21
1537
81
1646

query II rowsort
SELECT col2 AS col0, col1 * - 26 - - col0 FROM tab0
----
10
-459
47
-2091
99
71

onlyif mysql # aggregate syntax: 
query I rowsort label-5586
SELECT ALL - COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL = col1 * + + col0
----
0

skipif mysql # not compatible
query I rowsort label-5586
SELECT ALL - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL = col1 * + + col0
----
0

query I rowsort
SELECT DISTINCT - 68 * col0 FROM tab0 AS cor0
----
-1020
-5916
-6596

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

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

query I rowsort
SELECT ALL + + 31 FROM tab0 cor0
----
31
31
31

onlyif mysql # aggregate syntax: 
query I rowsort label-5590
SELECT DISTINCT + ( COUNT( * ) ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL > NULL
----
0

skipif mysql # not compatible
query I rowsort label-5590
SELECT DISTINCT + ( COUNT ( * ) ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL > NULL
----
0

query II rowsort
SELECT DISTINCT col1 * - col2 / col2 AS col0, - col2 * - col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) = - - 42
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5592
SELECT + + 37 * COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL <= + 87 / ( - - col2 ) * + col2 + + 35 - + col1 + - 93
----
0

skipif mysql # not compatible
query I rowsort label-5592
SELECT + + 37 * COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL <= + 87 / ( - - col2 ) * + col2 + + 35 - + col1 + - 93
----
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5594
SELECT + col0 DIV - 21 AS col1 FROM tab1
----
-2
-4
-4

skipif mysql # not compatible
query I rowsort label-5594
SELECT + col0 / - 21 AS col1 FROM tab1
----
-2
-4
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-5595
SELECT ALL COUNT( * ) * + - MIN( - 16 ) AS col0 FROM tab2
----
48

skipif mysql # not compatible
query I rowsort label-5595
SELECT ALL COUNT ( * ) * + - MIN ( - 16 ) AS col0 FROM tab2
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5596
SELECT 99 * - CAST( - col2 AS SIGNED ) AS col0 FROM tab0
----
4653
9801
990

skipif mysql # not compatible
query I rowsort label-5596
SELECT 99 * - CAST ( - col2 AS INTEGER ) AS col0 FROM tab0
----
4653
9801
990

query I rowsort
SELECT DISTINCT - ( col0 ) * 48 + 10 AS col2 FROM tab1
----
-2438
-4070
-4358

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5598
SELECT - CAST( + - COUNT( + + col0 ) AS SIGNED ) * + + MAX( DISTINCT CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) ) FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5598
SELECT - CAST ( + - COUNT ( + + col0 ) AS INTEGER ) * + + MAX ( DISTINCT CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) ) FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) <= 22
----

query I rowsort
SELECT DISTINCT + col0 * col0 * + 45 + + 99 FROM tab0 AS cor0
----
10224
340704
423504

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5601
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col1 / ( - col1 ) + - ( - CAST( NULL AS SIGNED ) ) > + + col0 * + - col1 * + col0 * 64 - col0 * - 50 + + + col1
----

skipif mysql # not compatible
query III rowsort label-5601
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col1 / ( - col1 ) + - ( - CAST ( NULL AS INTEGER ) ) > + + col0 * + - col1 * + col0 * 64 - col0 * - 50 + + + col1
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + col2 ) / + + col1 NOT BETWEEN - 58 AND col0
----

query I rowsort
SELECT ALL + - col1 + - + 37 AS col1 FROM tab1 AS cor0
----
-42
-51
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-5604
SELECT + SUM( - col2 ) - 31 * - COUNT( * ) FROM tab2 cor0
----
-28

skipif mysql # not compatible
query I rowsort label-5604
SELECT + SUM ( - col2 ) - 31 * - COUNT ( * ) FROM tab2 cor0
----
-28

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5606
SELECT + 31 - - col2 DIV - col0 col1 FROM tab1
----
30
31
31

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5606
SELECT + 31 - - col2 / - col0 col1 FROM tab1
----
30
31
31

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5608
SELECT COUNT( * ) AS col0, 30 AS col1 FROM tab2
----
3
30

skipif mysql # not compatible
query II rowsort label-5608
SELECT COUNT ( * ) AS col0, 30 AS col1 FROM tab2
----
3
30

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

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

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

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

query II rowsort
SELECT col1 AS col2, - col1 * col2 AS col2 FROM tab2
----
51
-1173
67
-3886
77
-3080

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5612
SELECT DISTINCT + CAST( + col1 AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE NOT + col2 / + + col2 <= 34
----

skipif mysql # not compatible
query I rowsort label-5612
SELECT DISTINCT + CAST ( + col1 AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE NOT + col2 / + + col2 <= 34
----

query I rowsort
SELECT + + 96 * + 74 FROM tab1 cor0
----
7104
7104
7104

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

query II rowsort
SELECT DISTINCT 58 AS col1, 7 FROM tab2 AS cor0
----
58
7

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

skipif mysql # not compatible
query II rowsort label-5616
SELECT ALL - col0, + CAST ( col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-51
14
-85
5
-91
47

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col1 / + col1 BETWEEN col1 * + ( - col2 ) + - 0 + - col2 AND NULL
----

query II rowsort
SELECT DISTINCT - 90 + + col0, + col0 * + col2 AS col2 FROM tab2 cor0
----
-15
4350
-26
2560
-44
1058

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

query I rowsort
SELECT DISTINCT 25 AS col1 FROM tab2 cor0 WHERE NOT NULL = col1
----

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

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

query I rowsort
SELECT col2 * + 91 AS col1 FROM tab1
----
5369
6188
8736

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

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

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

query I rowsort
SELECT - 63 + - 16 FROM tab2 cor0
----
-79
-79
-79

query I rowsort
SELECT DISTINCT - col0 FROM tab1 AS cor0 WHERE 28 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1, col1 * - col2 * 49 col0 FROM tab2 cor0
----
51
-57477
67
-190414
77
-150920

query I rowsort
SELECT DISTINCT + 13 - - - col0 AS col2 FROM tab0 AS cor0
----
-2
-74
-84

query I rowsort
SELECT ALL - ( 63 ) * ( 69 + col2 * + col0 ) FROM tab0
----
-48762
-59157
-609336

query I rowsort
SELECT ALL ( 8 ) FROM tab2
----
8
8
8

onlyif mysql # DIV for integer division: 
query I rowsort label-5632
SELECT ( 20 ) DIV 43 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5632
SELECT ( 20 ) / 43 FROM tab0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5633
SELECT - CAST( + 96 AS SIGNED ) DIV - col2 FROM tab0
----
0
2
9

skipif mysql # not compatible
query I rowsort label-5633
SELECT - CAST ( + 96 AS INTEGER ) / - col2 FROM tab0
----
0
2
9

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

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

query I rowsort
SELECT col1 FROM tab1 WHERE - 10 / - col2 IS NOT NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5637
SELECT ALL - MIN( - 99 ) AS col1 FROM tab2
----
99

skipif mysql # not compatible
query I rowsort label-5637
SELECT ALL - MIN ( - 99 ) AS col1 FROM tab2
----
99

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5638
SELECT - col0 * - 33 + col2 * CAST( NULL AS DECIMAL ) col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5638
SELECT - col0 * - 33 + col2 * CAST ( NULL AS REAL ) col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 13 + - col2 * col1 FROM tab0
----
-197
-3794
-86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + ( + 51 ) - 10 col0 FROM tab1
----
2387
245
704

query I rowsort
SELECT + 2 * - 32 FROM tab1
----
-64
-64
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-5642
SELECT - col1 * ( + col0 DIV + 23 ) col2 FROM tab2
----
-102
-154
-201

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5642
SELECT - col1 * ( + col0 / + 23 ) col2 FROM tab2
----
-102
-154
-201

onlyif mysql # aggregate syntax: 
query I rowsort label-5643
SELECT ALL + COUNT( - col0 ) FROM tab1 WHERE + 56 - 85 * col2 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-5643
SELECT ALL + COUNT ( - col0 ) FROM tab1 WHERE + 56 - 85 * col2 <= NULL
----
0

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

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

query I rowsort
SELECT + 82 + + ( col0 ) AS col0 FROM tab1
----
133
167
173

onlyif mysql # aggregate syntax: 
query I rowsort label-5646
SELECT DISTINCT + COUNT( * ) + 87 AS col0 FROM tab2 WHERE NOT ( NULL ) BETWEEN - 70 + - 44 AND + 30
----
87

skipif mysql # not compatible
query I rowsort label-5646
SELECT DISTINCT + COUNT ( * ) + 87 AS col0 FROM tab2 WHERE NOT ( NULL ) BETWEEN - 70 + - 44 AND + 30
----
87

query III rowsort
SELECT * FROM tab0 WHERE ( col1 * col1 ) IN ( 33 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5648
SELECT + ( + MIN( + 11 ) ) col0 FROM tab1 WHERE NOT NULL < NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5648
SELECT + ( + MIN ( + 11 ) ) col0 FROM tab1 WHERE NOT NULL < NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL IN ( + 8 )
----

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

query I rowsort
SELECT + 51 + + col1 AS col1 FROM tab2
----
102
118
128

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

query III rowsort
SELECT * FROM tab0 WHERE + 60 + - col0 / 23 IS NULL
----

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

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

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

query I rowsort
SELECT ALL 30 FROM tab0 AS cor0 WHERE NOT - col1 IN ( - col2 - col0 )
----
30
30
30

query I rowsort
SELECT - 39 * col1 AS col1 FROM tab2 cor0
----
-1989
-2613
-3003

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE NOT NULL IN ( + col0 )
----

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

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

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

query I rowsort
SELECT ( 47 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

onlyif mysql # aggregate syntax: 
query I rowsort label-5662
SELECT 52 * COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2
----
468

skipif mysql # not compatible
query I rowsort label-5662
SELECT 52 * COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2
----
468

query I rowsort
SELECT DISTINCT + - col0 + 92 FROM tab0 AS cor0
----
-5
5
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - 12 col2 FROM tab0 AS cor0
----
-2
35
87

query I rowsort
SELECT DISTINCT - 98 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-98

query I rowsort
SELECT - 94 + col0 AS col0 FROM tab0 AS cor0
----
-7
-79
3

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

query I rowsort
SELECT DISTINCT + - col2 * col0 + + 13 FROM tab1 cor0
----
-4883
-5002
-6175

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5669
SELECT ALL - col0 AS col1 FROM tab0 AS cor0 WHERE NOT ( + CAST( NULL AS SIGNED ) * + CAST( col2 * - 60 AS SIGNED ) ) <> col0 + - 54
----

skipif mysql # not compatible
query I rowsort label-5669
SELECT ALL - col0 AS col1 FROM tab0 AS cor0 WHERE NOT ( + CAST ( NULL AS INTEGER ) * + CAST ( col2 * - 60 AS INTEGER ) ) <> col0 + - 54
----

query I rowsort
SELECT ALL 79 * col0 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
1185
6873
7663

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5672
SELECT + MAX( + 6 ) FROM tab0 cor0
----
6

skipif mysql # not compatible
query I rowsort label-5672
SELECT + MAX ( + 6 ) FROM tab0 cor0
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5673
SELECT 40 DIV + SUM( col0 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5673
SELECT 40 / + SUM ( col0 ) FROM tab1
----
0

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

skipif mysql # not compatible
query I rowsort label-5674
SELECT - col2 / - - 75 AS col0 FROM tab0
----
-1
0
0

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

skipif mysql # not compatible
query I rowsort label-5675
SELECT ( + 60 ) / 52 FROM tab1
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - col2 col2 FROM tab0 WHERE NOT col2 + - col2 IN ( - 4 )
----
-100
-2209
-9801

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

query I rowsort
SELECT ( - + 82 ) * + col0 FROM tab2
----
-3772
-5248
-6150

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 15 + - col0 * col0 col0 FROM tab0 cor0
----
-240
-7584
-9424

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

skipif mysql # not compatible
query I rowsort label-5680
SELECT DISTINCT col1 + col2 + - CAST ( NULL AS REAL ) / - col0 AS col1 FROM tab2 AS cor0
----
NULL

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN col0 AND ( 83 / col2 )
----

query I rowsort
SELECT + 58 * + - ( - 38 ) - 78 * - col0 FROM tab0 AS cor0
----
3374
8990
9770

onlyif mysql # aggregate syntax: 
query I rowsort label-5684
SELECT ALL - COUNT( ALL col0 ) * + - COUNT( * ) AS col2 FROM tab1 cor0
----
9

skipif mysql # not compatible
query I rowsort label-5684
SELECT ALL - COUNT ( ALL col0 ) * + - COUNT ( * ) AS col2 FROM tab1 cor0
----
9

query I rowsort
SELECT ALL 3 FROM tab2 cor0 WHERE NULL IS NULL
----
3
3
3

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

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

query I rowsort
SELECT + col0 * + col2 * + col0 AS col1 FROM tab0 AS cor0
----
10575
75690
931491

onlyif mysql # DIV for integer division: 
query I rowsort label-5688
SELECT ALL + 47 DIV - + 99 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5688
SELECT ALL + 47 / - + 99 FROM tab2 AS cor0
----
0
0
0

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

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

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

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

query I rowsort
SELECT DISTINCT - ( + 34 ) * - - col2 AS col0 FROM tab1
----
-2006
-2312
-3264

query III rowsort
SELECT * FROM tab0 WHERE NOT - ( - col2 ) + 24 >= col0 * + ( + col1 )
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-5693
SELECT ALL MAX( - 33 ) * + 4 FROM tab1 AS cor0
----
-132

skipif mysql # not compatible
query I rowsort label-5693
SELECT ALL MAX ( - 33 ) * + 4 FROM tab1 AS cor0
----
-132

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT 48 + + col2 > ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5695
SELECT + MIN( DISTINCT - - col1 ) FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-5695
SELECT + MIN ( DISTINCT - - col1 ) FROM tab2 AS cor0
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5696
SELECT ALL - 2 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL < ( col1 * CAST( - 35 AS SIGNED ) ) )
----

skipif mysql # not compatible
query I rowsort label-5696
SELECT ALL - 2 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL < ( col1 * CAST ( - 35 AS INTEGER ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5697
SELECT DISTINCT - 72 * + MAX( ALL - 68 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
4896

skipif mysql # not compatible
query I rowsort label-5697
SELECT DISTINCT - 72 * + MAX ( ALL - 68 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
4896

query I rowsort
SELECT DISTINCT - + col0 * - - col0 * + col2 * col0 AS col2 FROM tab2 cor0
----
-10485760
-2238728
-24468750

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

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

query I rowsort
SELECT ALL - 81 + - ( + col0 ) + + 52 FROM tab1 AS cor0
----
-114
-120
-80

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

skipif mysql # not compatible
query I rowsort label-5701
SELECT MAX ( - 40 ) AS col1 FROM tab0 AS cor0
----
-40

query I rowsort
SELECT DISTINCT - - 51 + + 80 FROM tab2 AS cor0
----
131

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

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

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

query I rowsort
SELECT + col2 * + col1 + + - col1 AS col1 FROM tab0
----
189
3726
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5706
SELECT ALL col0 - CAST( 46 AS SIGNED ) col2 FROM tab2 WHERE NOT ( - + 75 ) * - - CAST( - col0 AS SIGNED ) IS NULL
----
0
18
29

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5706
SELECT ALL col0 - CAST ( 46 AS INTEGER ) col2 FROM tab2 WHERE NOT ( - + 75 ) * - - CAST ( - col0 AS INTEGER ) IS NULL
----
0
18
29

query I rowsort
SELECT ALL AVG ( ALL - col2 ) AS col0 FROM tab1 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT DISTINCT - - 45 * + col0 AS col2 FROM tab1 WHERE NOT + col0 IS NOT NULL
----

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

skipif mysql # not compatible
query I rowsort label-5709
SELECT DISTINCT + - col1 + - - col2 - + 43 + - CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + 73 / col1 AS col2 FROM tab2 AS cor0 WHERE NULL NOT IN ( 77 )
----

query I rowsort
SELECT DISTINCT - + 95 + - - 45 + - + col0 FROM tab1 AS cor0
----
-101
-135
-141

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

onlyif mysql # DIV for integer division: 
query III rowsort label-5713
SELECT ALL 96 - - col2 AS col2, 0 DIV - col1 + col2 AS col0, col0 FROM tab1
----
9 values hashing to 448a8b80ddc2f37487b1ab4ef75495b5

skipif mysql # not compatible
query III rowsort label-5713
SELECT ALL 96 - - col2 AS col2, 0 / - col1 + col2 AS col0, col0 FROM tab1
----
9 values hashing to 448a8b80ddc2f37487b1ab4ef75495b5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5714
SELECT * FROM tab0 WHERE NOT 39 BETWEEN - - CAST( 94 AS SIGNED ) AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5714
SELECT * FROM tab0 WHERE NOT 39 BETWEEN - - CAST ( 94 AS INTEGER ) AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + - col0 FROM tab1 AS cor0 WHERE NOT ( NOT - 6 - + - 54 = NULL )
----

query I rowsort
SELECT + 79 * col0 + - col2 FROM tab0 cor0
----
1138
6863
7564

onlyif mysql # DIV for integer division: 
query II rowsort label-5717
SELECT + col0 * - col1 AS col2, col1 DIV - col1 AS col2 FROM tab1 AS cor0
----
-425
-1
-4277
-1
-714
-1

skipif mysql # not compatible
query II rowsort label-5717
SELECT + col0 * - col1 AS col2, col1 / - col1 AS col2 FROM tab1 AS cor0
----
-425
-1
-4277
-1
-714
-1

query II rowsort
SELECT + ( - col1 ) AS col0, + col0 * + + col1 AS col0 FROM tab0 AS cor0
----
-1
97
-21
1827
-81
1215

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5719
SELECT - COUNT( * ) * + 47 DIV SUM( col0 ) FROM tab0 AS cor0
----
0

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

query II rowsort
SELECT col0 AS col1, col1 FROM tab1 AS cor0 WHERE NOT col0 IN ( - - col1 - + 67 )
----
51
14
85
5
91
47

query I rowsort
SELECT DISTINCT + ( col1 ) * - col1 * - - 5 FROM tab2 AS cor0
----
-13005
-22445
-29645

query I rowsort
SELECT DISTINCT + col1 FROM tab1 AS cor0 WHERE + col1 * + col1 + 75 - - + col1 * - - col0 = NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5723
SELECT DISTINCT COUNT( * ) AS col0, MAX( ALL + col2 ) AS col0 FROM tab0
----
3
99

skipif mysql # not compatible
query II rowsort label-5723
SELECT DISTINCT COUNT ( * ) AS col0, MAX ( ALL + col2 ) AS col0 FROM tab0
----
3
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5724
SELECT - MAX( ALL 31 ) FROM tab0
----
-31

skipif mysql # not compatible
query I rowsort label-5724
SELECT - MAX ( ALL 31 ) FROM tab0
----
-31

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + + 33 * 33 NOT IN ( col2 * + - 48 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 NOT BETWEEN - ( col0 ) / + - 24 AND 49
----

query II rowsort
SELECT + 34 AS col2, + col0 - col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5729
SELECT 69 * - 90 + - ( COUNT( * ) ) AS col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-6219

skipif mysql # not compatible
query I rowsort label-5729
SELECT 69 * - 90 + - ( COUNT ( * ) ) AS col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-6219

query IIIIII rowsort
SELECT ALL * FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 ) WHERE ( NULL ) IS NOT NULL
----

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NOT - 54 IS NOT NULL )
----

query I rowsort
SELECT DISTINCT - 25 + - 46 + + col2 * - col1 AS col1 FROM tab2 cor0
----
-1244
-3151
-3957

onlyif mysql # aggregate syntax: 
query I rowsort label-5733
SELECT ALL - 45 + - SUM( + + 34 ) FROM tab1 cor0
----
-147

skipif mysql # not compatible
query I rowsort label-5733
SELECT ALL - 45 + - SUM ( + + 34 ) FROM tab1 cor0
----
-147

onlyif mysql # aggregate syntax: 
query I rowsort label-5734
SELECT ALL - MAX( - 95 ) FROM tab0 AS cor0 WHERE NOT - col2 + col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5734
SELECT ALL - MAX ( - 95 ) FROM tab0 AS cor0 WHERE NOT - col2 + col2 IS NOT NULL
----
NULL

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

query I rowsort
SELECT DISTINCT - col0 + - 29 AS col1 FROM tab0 AS cor0
----
-116
-126
-44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - 19 col0 FROM tab2
----
-1273
-1463
-969

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + - 91 col2 FROM tab1
----
4641
7735
8281

onlyif mysql # aggregate syntax: 
query I rowsort label-5739
SELECT DISTINCT COUNT( ALL - - 13 ) * + + COUNT( * ) * + 94 FROM tab1
----
846

skipif mysql # not compatible
query I rowsort label-5739
SELECT DISTINCT COUNT ( ALL - - 13 ) * + + COUNT ( * ) * + 94 FROM tab1
----
846

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5740
SELECT COUNT( * ) DIV + - 39 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5740
SELECT COUNT ( * ) / + - 39 FROM tab0
----
0

query I rowsort
SELECT ALL - 65 * col0 FROM tab0
----
-5655
-6305
-975

query I rowsort
SELECT - 39 - + col1 AS col0 FROM tab1
----
-44
-53
-86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5743
SELECT CAST( NULL AS SIGNED ) - col0 * + 11 + + + 82 FROM tab1
----
NULL
NULL
NULL

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

query I rowsort
SELECT + col2 - - 45 AS col0 FROM tab2
----
103
68
85

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

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

query I rowsort
SELECT DISTINCT + 61 + - + col1 AS col2 FROM tab2 cor0
----
-16
-6
10

onlyif mysql # DIV for integer division: 
query I rowsort label-5748
SELECT + 27 DIV - + 42 * col1 + + 36 + + col2 + 10 AS col0 FROM tab1 AS cor0
----
105
114
142

skipif mysql # not compatible
query I rowsort label-5748
SELECT + 27 / - + 42 * col1 + + 36 + + col2 + 10 AS col0 FROM tab1 AS cor0
----
105
114
142

onlyif mysql # aggregate syntax: 
query I rowsort label-5749
SELECT ALL - - MIN( - - 42 ) col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5749
SELECT ALL - - MIN ( - - 42 ) col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
42

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 48 * + - col0 col2 FROM tab1 AS cor0
----
2448
4080
4368

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col0 <> 79
----

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

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

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

query I rowsort
SELECT ALL - 32 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( 23 )
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5758
SELECT COUNT( DISTINCT - + 9 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-5758
SELECT COUNT ( DISTINCT - + 9 ) FROM tab2
----
1

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

skipif mysql # not compatible
query I rowsort label-5759
SELECT 3 / - col2 AS col1 FROM tab0
----
0
0
0

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

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

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

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

query I rowsort
SELECT ALL col0 * - col0 * - - col1 FROM tab2
----
-107916
-315392
-376875

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5764
SELECT - CAST( NULL AS DECIMAL ) / - 93 FROM tab1 WHERE NOT + ( 16 ) * - col0 * - 50 * + - 33 - col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5764
SELECT - CAST ( NULL AS REAL ) / - 93 FROM tab1 WHERE NOT + ( 16 ) * - col0 * - 50 * + - 33 - col0 IS NOT NULL
----

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 26 >= - - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5767
SELECT - SUM( DISTINCT + 66 ) col1 FROM tab2 AS cor0 WHERE NOT ( - + col1 ) + 93 * + col1 IS NULL
----
-66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5767
SELECT - SUM ( DISTINCT + 66 ) col1 FROM tab2 AS cor0 WHERE NOT ( - + col1 ) + 93 * + col1 IS NULL
----
-66

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

query III rowsort
SELECT * FROM tab1 WHERE col1 = - col1
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE - 49 IS NULL
----

query I rowsort
SELECT ALL - - 82 + + - 35 AS col0 FROM tab0 AS cor0
----
47
47
47

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

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

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

query I rowsort
SELECT ( + col1 ) * + 73 + + + col2 FROM tab1 AS cor0
----
1118
3499
424

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

query I rowsort
SELECT DISTINCT col1 FROM tab2 WHERE NOT ( + - 21 ) = + col1
----
51
67
77

onlyif mysql # DIV for integer division: 
query I rowsort label-5777
SELECT DISTINCT - 99 DIV + col0 AS col1 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-5777
SELECT DISTINCT - 99 / + col0 AS col1 FROM tab1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5778
SELECT * FROM tab1 WHERE col1 NOT IN ( - CAST( NULL AS SIGNED ) + + - CAST( NULL AS SIGNED ), + 70 )
----

skipif mysql # not compatible
query III rowsort label-5778
SELECT * FROM tab1 WHERE col1 NOT IN ( - CAST ( NULL AS INTEGER ) + + - CAST ( NULL AS INTEGER ), + 70 )
----

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5780
SELECT DISTINCT + - col1 AS col0 FROM tab2 WHERE NOT + ( CAST( NULL AS SIGNED ) ) BETWEEN - col1 AND - col0 * + 75 * - 98 * - + col2 * col1 / - CAST( + col0 AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-5780
SELECT DISTINCT + - col1 AS col0 FROM tab2 WHERE NOT + ( CAST ( NULL AS INTEGER ) ) BETWEEN - col1 AND - col0 * + 75 * - 98 * - + col2 * col1 / - CAST ( + col0 AS REAL )
----

query I rowsort
SELECT DISTINCT - ( - col0 ) + col0 FROM tab2
----
128
150
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - 32 col2 FROM tab0
----
-2592
-32
-672

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

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

query I rowsort
SELECT + 8 AS col1 FROM tab1 cor0
----
8
8
8

onlyif mysql # aggregate syntax: 
query I rowsort label-5785
SELECT DISTINCT - MAX( DISTINCT col2 ) FROM tab2 cor0
----
-58

skipif mysql # not compatible
query I rowsort label-5785
SELECT DISTINCT - MAX ( DISTINCT col2 ) FROM tab2 cor0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5786
SELECT - SUM( - 6 ) FROM tab2
----
18

skipif mysql # not compatible
query I rowsort label-5786
SELECT - SUM ( - 6 ) FROM tab2
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5787
SELECT DISTINCT + 69 * - + MIN( + + col0 ) AS col1, + 17 - - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
-3174
NULL

skipif mysql # not compatible
query II rowsort label-5787
SELECT DISTINCT + 69 * - + MIN ( + + col0 ) AS col1, + 17 - - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
-3174
NULL

query II rowsort
SELECT DISTINCT - col0 AS col0, col2 - + 72 FROM tab2 AS cor0
----
-46
-49
-64
-32
-75
-14

query I rowsort
SELECT ALL - col2 / + col2 AS col2 FROM tab2 AS cor0 WHERE NOT - 49 - - col0 + - + 87 + - col2 / - 33 * - col2 + - - col0 >= NULL
----

query I rowsort
SELECT ALL - 48 FROM tab0 AS cor0 WHERE NOT - col2 + + col0 + - col1 - - 17 - + col2 IS NULL
----
-48
-48
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-5791
SELECT 72 DIV + col2 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-5791
SELECT 72 / + col2 FROM tab1
----
0
1
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5792
SELECT DISTINCT MAX( ALL + 64 ) DIV 20 col0 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5792
SELECT DISTINCT MAX ( ALL + 64 ) / 20 col0 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5793
SELECT COUNT( * ) * - 81 col0 FROM tab1 WHERE NOT - + col1 IS NULL
----
-243

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5793
SELECT COUNT ( * ) * - 81 col0 FROM tab1 WHERE NOT - + col1 IS NULL
----
-243

query III rowsort
SELECT 80 AS col2, + col0, - - 47 * + + col0 FROM tab2
----
9 values hashing to d6d0d95d12d9970d550f7b31479a681b

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

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

query I rowsort
SELECT DISTINCT - col1 * - 93 + - + ( - + col2 ) AS col2 FROM tab1
----
1398
4439
524

onlyif mysql # aggregate syntax: 
query II rowsort label-5797
SELECT DISTINCT - COUNT( * ), 6 * 93 AS col0 FROM tab0 AS cor0
----
-3
558

skipif mysql # not compatible
query II rowsort label-5797
SELECT DISTINCT - COUNT ( * ), 6 * 93 AS col0 FROM tab0 AS cor0
----
-3
558

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5798
SELECT DISTINCT - + SUM( - CAST( col1 AS SIGNED ) ) AS col0 FROM tab0 AS cor0 WHERE NOT 40 IS NULL
----
103

skipif mysql # not compatible
query I rowsort label-5798
SELECT DISTINCT - + SUM ( - CAST ( col1 AS INTEGER ) ) AS col0 FROM tab0 AS cor0 WHERE NOT 40 IS NULL
----
103

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5800
SELECT ALL CAST( + col2 AS SIGNED ) + + 3 AS col2 FROM tab0 AS cor0
----
102
13
50

skipif mysql # not compatible
query I rowsort label-5800
SELECT ALL CAST ( + col2 AS INTEGER ) + + 3 AS col2 FROM tab0 AS cor0
----
102
13
50

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5803
SELECT ALL - 20 * + 53 * COUNT( * ) * - MAX( DISTINCT + col0 ) + + - 84 FROM tab1 AS cor0
----
289296

skipif mysql # not compatible
query I rowsort label-5803
SELECT ALL - 20 * + 53 * COUNT ( * ) * - MAX ( DISTINCT + col0 ) + + - 84 FROM tab1 AS cor0
----
289296

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN 25 AND ( - ( - + ( - 86 ) ) )
----

query I rowsort
SELECT ALL - col2 + - 97 * + col2 FROM tab1 AS cor0
----
-5782
-6664
-9408

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

query I rowsort
SELECT DISTINCT - - col2 + + + col2 + + col2 * col0 AS col0 FROM tab0 AS cor0
----
799
890
9801

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5809
SELECT ALL - - ( + COUNT( * ) ) - + 45 FROM tab1 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-5809
SELECT ALL - - ( + COUNT ( * ) ) - + 45 FROM tab1 AS cor0
----
-42

query I rowsort
SELECT - - col2 AS col0 FROM tab2 AS cor0 WHERE 76 * col2 * + col2 + ( col1 ) >= + col0
----
23
40
58

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - - ( + 47 ) col2 FROM tab2
----
111
122
93

query I rowsort
SELECT ALL 12 + - 29 FROM tab1
----
-17
-17
-17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5814
SELECT 78 - - - 28 DIV ( + 86 ) + + MIN( ( - + 2 ) ) FROM tab0
----
76

skipif mysql # not compatible
query I rowsort label-5814
SELECT 78 - - - 28 / ( + 86 ) + + MIN ( ( - + 2 ) ) FROM tab0
----
76

query I rowsort
SELECT ALL - col2 - + + col1 FROM tab2
----
-117
-125
-74

query II rowsort
SELECT DISTINCT + 45 AS col0, + col1 FROM tab1
----
45
14
45
47
45
5

query II rowsort
SELECT DISTINCT + 30, 56 AS col0 FROM tab1 cor0
----
30
56

onlyif mysql # aggregate syntax: 
query I rowsort label-5818
SELECT ALL + MAX( DISTINCT + - 52 ) FROM tab0 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-5818
SELECT ALL + MAX ( DISTINCT + - 52 ) FROM tab0 AS cor0
----
-52

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

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

query II rowsort
SELECT DISTINCT - col0, + 48 + + col2 FROM tab2 WHERE + + col0 < 36
----

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

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

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

query I rowsort
SELECT + + col1 FROM tab2 AS cor0 WHERE NOT col0 <= NULL
----

query II rowsort
SELECT ALL col2 + + 90 AS col0, col1 * - col0 AS col0 FROM tab1 AS cor0 WHERE NULL <= + 95 + - col1 * + col1 / + 73
----

query I rowsort
SELECT ALL + + col0 * ( + col0 ) AS col0 FROM tab1 AS cor0
----
2601
7225
8281

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5827
SELECT - 88 * - SUM( - col1 ) FROM tab2 AS cor0
----
-17160

skipif mysql # not compatible
query I rowsort label-5827
SELECT - 88 * - SUM ( - col1 ) FROM tab2 AS cor0
----
-17160

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

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

query I rowsort
SELECT ALL - - 27 * ( 93 ) FROM tab2 AS cor0
----
2511
2511
2511

onlyif mysql # DIV for integer division: 
query I rowsort label-5830
SELECT ALL - col2 DIV 54 * + col0 DIV 98 + + - col0 + - col1 AS col1 FROM tab1 AS cor0
----
-138
-65
-90

skipif mysql # not compatible
query I rowsort label-5830
SELECT ALL - col2 / 54 * + col0 / 98 + + - col0 + - col1 AS col1 FROM tab1 AS cor0
----
-138
-65
-90

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5832
SELECT ALL MIN( ALL ( - col2 ) ) col0, COUNT( * ) FROM tab0
----
-99
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5832
SELECT ALL MIN ( ALL ( - col2 ) ) col0, COUNT ( * ) FROM tab0
----
-99
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5833
SELECT DISTINCT col0 DIV + 63 AS col0 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-5833
SELECT DISTINCT col0 / + 63 AS col0 FROM tab0
----
0
1

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

query I rowsort
SELECT 10 + + col0 AS col2 FROM tab0
----
107
25
97

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5837
SELECT DISTINCT - ( - CAST ( + 1 AS INTEGER ) ) AS col2, + col1 col1 FROM tab0
----
1
1
1
21
1
81

onlyif mysql # DIV for integer division: 
query II rowsort label-5838
SELECT - col0, col1 DIV + 35 col0 FROM tab0 AS cor0
----
-15
2
-87
0
-97
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5838
SELECT - col0, col1 / + 35 col0 FROM tab0 AS cor0
----
-15
2
-87
0
-97
0

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

skipif mysql # not compatible
query I rowsort label-5839
SELECT - SUM ( DISTINCT - col2 ) * + - COUNT ( * ) FROM tab2 AS cor0
----
-363

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 col2, col2 + + + col1 + 15 FROM tab2 AS cor0
----
46
89
64
132
75
140

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

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

query I rowsort
SELECT ALL + 93 FROM tab2 AS cor0 WHERE - 56 IS NOT NULL
----
93
93
93

onlyif mysql # aggregate syntax: 
query I rowsort label-5844
SELECT DISTINCT MIN( ALL - 49 ) AS col0 FROM tab0, tab1 cor0
----
-49

skipif mysql # not compatible
query I rowsort label-5844
SELECT DISTINCT MIN ( ALL - 49 ) AS col0 FROM tab0, tab1 cor0
----
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-5845
SELECT + - 56 DIV - + col0 + + - col0 FROM tab2 AS cor0
----
-45
-64
-75

skipif mysql # not compatible
query I rowsort label-5845
SELECT + - 56 / - + col0 + + - col0 FROM tab2 AS cor0
----
-45
-64
-75

query I rowsort
SELECT + col1 + - 17 AS col2 FROM tab1 AS cor0
----
-12
-3
30

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5847
SELECT ALL COUNT ( col1 ) col1 FROM tab0 AS cor0
----
3

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

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

query I rowsort
SELECT ALL 94 * col0 - - + col2 * + col0 FROM tab0 AS cor0
----
18721
2115
9048

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL <= ( - - col2 )
----

query II rowsort
SELECT col0 * - + col1 * + + col1 * + + ( - + col0 ) + col2 * - col0 AS col1, ( - + 98 ) + 97 FROM tab1 AS cor0 WHERE col2 IS NULL
----

query I rowsort
SELECT ALL - ( + 74 ) - col0 + 61 AS col2 FROM tab2
----
-59
-77
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-5853
SELECT col1 * col2 DIV - 64 FROM tab2
----
-18
-48
-60

skipif mysql # not compatible
query I rowsort label-5853
SELECT col1 * col2 / - 64 FROM tab2
----
-18
-48
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-5854
SELECT COUNT( * ) * - 4 AS col0 FROM tab2
----
-12

skipif mysql # not compatible
query I rowsort label-5854
SELECT COUNT ( * ) * - 4 AS col0 FROM tab2
----
-12

query I rowsort
SELECT ALL col1 * - col1 * + + 80 AS col1 FROM tab2
----
-208080
-359120
-474320

query I rowsort
SELECT DISTINCT + - col1 * 70 + + - col2 FROM tab2 AS cor0
----
-3593
-4748
-5430

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5857
SELECT DISTINCT + col2 * + + CAST( - col2 AS SIGNED ) * - col2 * + + col0 FROM tab2 cor0
----
14633400
4096000
559682

skipif mysql # not compatible
query I rowsort label-5857
SELECT DISTINCT + col2 * + + CAST ( - col2 AS INTEGER ) * - col2 * + + col0 FROM tab2 cor0
----
14633400
4096000
559682

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5860
SELECT SUM( + ( + 28 ) ) AS col1 FROM tab1
----
84

skipif mysql # not compatible
query I rowsort label-5860
SELECT SUM ( + ( + 28 ) ) AS col1 FROM tab1
----
84

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-5863
SELECT DISTINCT COUNT ( * ) - - - COUNT ( * ) + - 56 AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-56

onlyif mysql # DIV for integer division: 
query II rowsort label-5864
SELECT - - 21 DIV - col2 + - 38 * 90 * - + 72 * + + col0 AS col0, - col0 FROM tab0 AS cor0
----
21422878
-87
23885280
-97
3693600
-15

skipif mysql # not compatible
query II rowsort label-5864
SELECT - - 21 / - col2 + - 38 * 90 * - + 72 * + + col0 AS col0, - col0 FROM tab0 AS cor0
----
21422878
-87
23885280
-97
3693600
-15

query I rowsort
SELECT ALL col0 + + + 2 + - 16 AS col2 FROM tab1 cor0
----
37
71
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5866
SELECT ALL - CAST( col2 AS SIGNED ) col0 FROM tab0 AS cor0
----
-10
-47
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5866
SELECT ALL - CAST ( col2 AS INTEGER ) col0 FROM tab0 AS cor0
----
-10
-47
-99

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

skipif mysql # not compatible
query II rowsort label-5867
SELECT DISTINCT + CAST ( NULL AS INTEGER ), + CAST ( NULL AS INTEGER ) / col0 FROM tab2 AS cor0
----
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5868
SELECT + col0 * - CAST( + 25 AS SIGNED ) FROM tab1 AS cor0
----
-1275
-2125
-2275

skipif mysql # not compatible
query I rowsort label-5868
SELECT + col0 * - CAST ( + 25 AS INTEGER ) FROM tab1 AS cor0
----
-1275
-2125
-2275

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - + 13 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5871
SELECT DISTINCT + MIN( + ( col1 ) ) FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-5871
SELECT DISTINCT + MIN ( + ( col1 ) ) FROM tab1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5872
SELECT DISTINCT + MAX( + + ( - - 54 ) ) + - - COUNT( - ( - col1 ) ) FROM tab0 WHERE NOT 7 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5872
SELECT DISTINCT + MAX ( + + ( - - 54 ) ) + - - COUNT ( - ( - col1 ) ) FROM tab0 WHERE NOT 7 IS NOT NULL
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5874
SELECT + 80 DIV - ( col2 ) FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-5874
SELECT + 80 / - ( col2 ) FROM tab1
----
-1
-1
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5876
SELECT + - 19 * + + COUNT( * ) FROM tab0 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-5876
SELECT + - 19 * + + COUNT ( * ) FROM tab0 AS cor0
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-5877
SELECT ALL + COUNT( - col1 ) + 37 FROM tab0 cor0
----
40

skipif mysql # not compatible
query I rowsort label-5877
SELECT ALL + COUNT ( - col1 ) + 37 FROM tab0 cor0
----
40

query I rowsort
SELECT DISTINCT + col0 * + 95 + - - col0 + col0 FROM tab2 AS cor0
----
4462
6208
7275

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

query I rowsort
SELECT + col0 * - + col0 + 87 FROM tab2 cor0
----
-2029
-4009
-5538

query I rowsort
SELECT + - ( + 74 ) + - 42 * col2 + - 68 FROM tab0 AS cor0
----
-2116
-4300
-562

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5882
SELECT DISTINCT 31 + - CAST( + col1 AS SIGNED ) + col2 + 10 col0, col0 FROM tab0
----
139
97
30
87
7
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5882
SELECT DISTINCT 31 + - CAST ( + col1 AS INTEGER ) + col2 + 10 col0, col0 FROM tab0
----
139
97
30
87
7
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5883
SELECT DISTINCT + CAST( - + col1 AS SIGNED ) * + 98 * + - col1 FROM tab1
----
19208
216482
2450

skipif mysql # not compatible
query I rowsort label-5883
SELECT DISTINCT + CAST ( - + col1 AS INTEGER ) * + 98 * + - col1 FROM tab1
----
19208
216482
2450

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5885
SELECT DISTINCT + ( - CAST( + - col2 AS SIGNED ) ) FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-5885
SELECT DISTINCT + ( - CAST ( + - col2 AS INTEGER ) ) FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT ALL - 1 + - col0 + col1 FROM tab2 AS cor0
----
-9
12
4

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

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

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

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

skipif mysql # not compatible
query II rowsort label-5889
SELECT ALL - + COUNT ( * ), COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-3
3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5891
SELECT DISTINCT - MAX( ALL - col2 ) AS col1 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-5891
SELECT DISTINCT - MAX ( ALL - col2 ) AS col1 FROM tab0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-5892
SELECT + MIN( - 76 ) FROM tab2
----
-76

skipif mysql # not compatible
query I rowsort label-5892
SELECT + MIN ( - 76 ) FROM tab2
----
-76

query I rowsort
SELECT ALL ( 95 ) FROM tab2
----
95
95
95

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

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

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

query I rowsort
SELECT ALL col1 * col1 FROM tab1 AS cor0 WHERE NOT NULL < NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5899
SELECT SUM( ( - 50 ) ) * - COUNT( * ) FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
4050

skipif mysql # not compatible
query I rowsort label-5899
SELECT SUM ( ( - 50 ) ) * - COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
4050

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5900
SELECT + 85 * CAST( + + MAX( ALL - ( - col1 ) ) AS DECIMAL ) + - + CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5900
SELECT + 85 * CAST ( + + MAX ( ALL - ( - col1 ) ) AS REAL ) + - + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5901
SELECT col1 + + 35, - CAST( - 77 AS SIGNED ) + - + col0 AS col1 FROM tab2 AS cor0
----
102
2
112
13
86
31

skipif mysql # not compatible
query II rowsort label-5901
SELECT col1 + + 35, - CAST ( - 77 AS INTEGER ) + - + col0 AS col1 FROM tab2 AS cor0
----
102
2
112
13
86
31

query I rowsort
SELECT - ( + - 3 ) + - - col0 AS col2 FROM tab2
----
49
67
78

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

query III rowsort
SELECT * FROM tab2 WHERE - 52 IS NULL
----

query I rowsort
SELECT ALL + 70 + - - 56 AS col2 FROM tab1
----
126
126
126

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5906
SELECT + COUNT ( * ) col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-5907
SELECT ALL - 5 DIV - - col2 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5907
SELECT ALL - 5 / - - col2 AS col0 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5908
SELECT ( - col1 ) + - col1 DIV - 66 + - + col2 AS col0 FROM tab0
----
-100
-127
-31

skipif mysql # not compatible
query I rowsort label-5908
SELECT ( - col1 ) + - col1 / - 66 + - + col2 AS col0 FROM tab0
----
-100
-127
-31

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5910
SELECT + MIN( DISTINCT + 25 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5910
SELECT + MIN ( DISTINCT + 25 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5912
SELECT DISTINCT - COUNT( * ) DIV + - 96 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5912
SELECT DISTINCT - COUNT ( * ) / + - 96 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5913
SELECT + SUM( ALL col0 ) AS col0 FROM tab0 AS cor0 WHERE NOT - ( - col1 ) * - ( - - CAST( NULL AS SIGNED ) ) * + col0 / 67 - - 0 IS NOT NULL
----
199

skipif mysql # not compatible
query I rowsort label-5913
SELECT + SUM ( ALL col0 ) AS col0 FROM tab0 AS cor0 WHERE NOT - ( - col1 ) * - ( - - CAST ( NULL AS INTEGER ) ) * + col0 / 67 - - 0 IS NOT NULL
----
199

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5916
SELECT ALL 3 DIV COUNT( * ) * - + 38 FROM tab2
----
-38

skipif mysql # not compatible
query I rowsort label-5916
SELECT ALL 3 / COUNT ( * ) * - + 38 FROM tab2
----
-38

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 89 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5918
SELECT CAST( NULL AS SIGNED ), col0 * 70 AS col2 FROM tab0
----
NULL
1050
NULL
6090
NULL
6790

skipif mysql # not compatible
query II rowsort label-5918
SELECT CAST ( NULL AS INTEGER ), col0 * 70 AS col2 FROM tab0
----
NULL
1050
NULL
6090
NULL
6790

query I rowsort
SELECT + 83 * - col1 FROM tab0
----
-1743
-6723
-83

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 45 + col0 col2 FROM tab0 AS cor0
----
-30
42
52

query I rowsort
SELECT col1 - - + col0 AS col2 FROM tab2 cor0 WHERE NULL IS NULL
----
141
142
97

query I rowsort
SELECT + col1 * col1 * + col0 - col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
38346
96
98334

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5925
SELECT - 8 * + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5925
SELECT - 8 * + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5926
SELECT DISTINCT + 0 * - col0 AS col0, 40 DIV + col2 FROM tab0
----
0
0
0
4

skipif mysql # not compatible
query II rowsort label-5926
SELECT DISTINCT + 0 * - col0 AS col0, 40 / + col2 FROM tab0
----
0
0
0
4

query II rowsort
SELECT - 75 * + + 20 AS col2, 47 FROM tab1
----
-1500
47
-1500
47
-1500
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5928
SELECT DISTINCT - MIN( - - 34 ) FROM tab0 WHERE NOT 5 * + col0 - - col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5928
SELECT DISTINCT - MIN ( - - 34 ) FROM tab0 WHERE NOT 5 * + col0 - - col1 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5929
SELECT CAST( NULL AS SIGNED ) - + col1 + - ( + + 80 ) * 46 AS col0, col2 AS col1 FROM tab2
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-5929
SELECT CAST ( NULL AS INTEGER ) - + col1 + - ( + + 80 ) * 46 AS col0, col2 AS col1 FROM tab2
----
NULL
23
NULL
40
NULL
58

query I rowsort
SELECT - 84 * + - 29 - - col2 FROM tab0
----
2446
2483
2535

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5932
SELECT COUNT( DISTINCT + ( + - 37 ) ) * - ( + COUNT( * ) ) - - MAX( ALL - 86 ) * + 71 FROM tab2
----
-6109

skipif mysql # not compatible
query I rowsort label-5932
SELECT COUNT ( DISTINCT + ( + - 37 ) ) * - ( + COUNT ( * ) ) - - MAX ( ALL - 86 ) * + 71 FROM tab2
----
-6109

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - - 10 ) IS NULL AND NOT ( NULL ) > NULL
----

query I rowsort
SELECT ALL - 67 + - col0 + + - col1 FROM tab1 AS cor0
----
-132
-157
-205

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

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

query I rowsort
SELECT ALL + - col0 + - + col0 FROM tab2 AS cor0
----
-128
-150
-92

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

query I rowsort
SELECT + + 98 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

query II rowsort
SELECT ALL + col0, 67 FROM tab2
----
46
67
64
67
75
67

query I rowsort
SELECT ALL + 10 AS col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

onlyif mysql # aggregate syntax: 
query I rowsort label-5942
SELECT DISTINCT - SUM( DISTINCT - 64 ) FROM tab1 cor0
----
64

skipif mysql # not compatible
query I rowsort label-5942
SELECT DISTINCT - SUM ( DISTINCT - 64 ) FROM tab1 cor0
----
64

onlyif mysql # aggregate syntax: 
query II rowsort label-5943
SELECT ALL + 94 AS col0, - MIN( DISTINCT - + ( + col1 ) ) + 50 AS col2 FROM tab0 AS cor0
----
94
131

skipif mysql # not compatible
query II rowsort label-5943
SELECT ALL + 94 AS col0, - MIN ( DISTINCT - + ( + col1 ) ) + 50 AS col2 FROM tab0 AS cor0
----
94
131

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5947
SELECT DISTINCT + MIN( ALL - 96 ) AS col0 FROM tab0 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-5947
SELECT DISTINCT + MIN ( ALL - 96 ) AS col0 FROM tab0 AS cor0
----
-96

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

skipif mysql # not compatible
query I rowsort label-5948
SELECT - col0 / col2 * + col0 FROM tab0
----
-696
0
0

query I rowsort
SELECT 35 AS col1 FROM tab1 WHERE NOT - 27 IS NULL
----
35
35
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5950
SELECT DISTINCT col1 / + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5950
SELECT DISTINCT col1 / + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5951
SELECT DISTINCT MAX( DISTINCT + 78 ) FROM tab2
----
78

skipif mysql # not compatible
query I rowsort label-5951
SELECT DISTINCT MAX ( DISTINCT + 78 ) FROM tab2
----
78

query I rowsort
SELECT ALL + 59 FROM tab2 AS cor0 WHERE NOT + col0 <= NULL
----

query I rowsort
SELECT + 95 * - col1 * + 42 FROM tab0 AS cor0
----
-323190
-3990
-83790

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

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

skipif mysql # not compatible
query I rowsort label-5955
SELECT DISTINCT + MIN ( DISTINCT + 91 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5956
SELECT ALL - 7 + - ( - SUM( + col0 ) ) FROM tab0 AS cor0
----
192

skipif mysql # not compatible
query I rowsort label-5956
SELECT ALL - 7 + - ( - SUM ( + col0 ) ) FROM tab0 AS cor0
----
192

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

query I rowsort
SELECT DISTINCT - - 76 * + 6 + - + 96 AS col1 FROM tab1 AS cor0
----
360

onlyif mysql # DIV for integer division: 
query I rowsort label-5959
SELECT + + col2 * + 29 + 74 DIV - col0 AS col2 FROM tab0 AS cor0
----
1359
2871
290

skipif mysql # not compatible
query I rowsort label-5959
SELECT + + col2 * + 29 + 74 / - col0 AS col2 FROM tab0 AS cor0
----
1359
2871
290

onlyif mysql # aggregate syntax: 
query I rowsort label-5960
SELECT + COUNT( * ) + + ( - MAX( col0 ) ) AS col2 FROM tab2 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-5960
SELECT + COUNT ( * ) + + ( - MAX ( col0 ) ) AS col2 FROM tab2 AS cor0
----
-72

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

skipif mysql # not compatible
query III rowsort label-5961
SELECT * FROM tab2 AS cor0 WHERE + CAST ( NULL AS INTEGER ) = NULL
----

query I rowsort
SELECT 71 + - - col2 + + col2 * - 0 - + - col0 + - 32 + + col1 FROM tab0 AS cor0
----
157
182
236

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - col0 + col0 - + col1 col0 FROM tab0 AS cor0
----
-771
-804
-9507

query I rowsort
SELECT - col1 + + 7 + 34 FROM tab0
----
-40
20
40

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

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

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

skipif mysql # not compatible
query I rowsort label-5966
SELECT ALL COUNT ( * ) - + + 85 FROM tab1
----
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-5967
SELECT col1 DIV - - 19 FROM tab1
----
0
0
2

skipif mysql # not compatible
query I rowsort label-5967
SELECT col1 / - - 19 FROM tab1
----
0
0
2

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5970
SELECT DISTINCT 93 DIV - COUNT( * ) AS col1 FROM tab1, tab2 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-5970
SELECT DISTINCT 93 / - COUNT ( * ) AS col1 FROM tab1, tab2 AS cor0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-5971
SELECT DISTINCT + MAX( ALL + + col0 ) + 45 + + ( - COUNT( * ) ) FROM tab2 AS cor0
----
117

skipif mysql # not compatible
query I rowsort label-5971
SELECT DISTINCT + MAX ( ALL + + col0 ) + 45 + + ( - COUNT ( * ) ) FROM tab2 AS cor0
----
117

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - + 67 col1 FROM tab2
----
-1541
-2680
-3886

query II rowsort
SELECT DISTINCT - ( col0 ) AS col2, - col1 AS col1 FROM tab0
----
-15
-81
-87
-21
-97
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5974
SELECT - COUNT( * ) * + ( - + MIN( - 44 ) ) col2 FROM tab0
----
-132

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

query I rowsort
SELECT ALL col0 * + col2 * - - 27 FROM tab1 AS cor0
----
132192
135405
167076

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 60 < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5977
SELECT - + CAST( - MAX( DISTINCT + - col0 ) AS SIGNED ), 94 AS col1 FROM tab2 AS cor0
----
-46
94

skipif mysql # not compatible
query II rowsort label-5977
SELECT - + CAST ( - MAX ( DISTINCT + - col0 ) AS INTEGER ), 94 AS col1 FROM tab2 AS cor0
----
-46
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5978
SELECT + COUNT( * ) DIV 50 + - 34 FROM tab0 AS cor0
----
-34

skipif mysql # not compatible
query I rowsort label-5978
SELECT + COUNT ( * ) / 50 + - 34 FROM tab0 AS cor0
----
-34

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

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

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

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

query I rowsort
SELECT DISTINCT + col1 * 79 FROM tab0
----
1659
6399
79

query III rowsort
SELECT ALL * FROM tab1 WHERE + col2 IN ( + col2 * - + col0, + col0 + 35 - - - 21, + 82 * - - col0 + + 79 * - col1 * + col2 + - - col1, + col2 - - 5 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5984
SELECT DISTINCT COUNT( * ) * CAST( - 23 AS SIGNED ) + - - 40 FROM tab0
----
-29

skipif mysql # not compatible
query I rowsort label-5984
SELECT DISTINCT COUNT ( * ) * CAST ( - 23 AS INTEGER ) + - - 40 FROM tab0
----
-29

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5985
SELECT - + 39 AS col1, col1 AS col0 FROM tab1 AS cor0 WHERE + CAST( NULL AS DECIMAL ) * + col0 IS NULL
----
-39
14
-39
47
-39
5

skipif mysql # not compatible
query II rowsort label-5985
SELECT - + 39 AS col1, col1 AS col0 FROM tab1 AS cor0 WHERE + CAST ( NULL AS REAL ) * + col0 IS NULL
----
-39
14
-39
47
-39
5

query I rowsort
SELECT ALL 55 + col0 AS col2 FROM tab2
----
101
119
130

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5987
SELECT ALL COUNT( * ) AS col2, + CAST( NULL AS SIGNED ) FROM tab0, tab1 AS cor0
----
9
NULL

skipif mysql # not compatible
query II rowsort label-5987
SELECT ALL COUNT ( * ) AS col2, + CAST ( NULL AS INTEGER ) FROM tab0, tab1 AS cor0
----
9
NULL

query I rowsort
SELECT ALL + ( + 8 ) FROM tab1, tab0 AS cor0
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

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

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

query I rowsort
SELECT ALL - + col0 * + - col0 + col1 FROM tab0 AS cor0
----
306
7590
9410

query I rowsort
SELECT ALL + 22 + col0 FROM tab2 AS cor0
----
68
86
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5992
SELECT DISTINCT + MIN( ALL - 18 ) - + ( + - COUNT( * ) ) * - COUNT( * ) col0 FROM tab0 cor0
----
-27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5992
SELECT DISTINCT + MIN ( ALL - 18 ) - + ( + - COUNT ( * ) ) * - COUNT ( * ) col0 FROM tab0 cor0
----
-27

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

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

query I rowsort
SELECT + col1 * + ( - col2 ) * col0 - + ( + col2 ) FROM tab0
----
-18280
-57152
-9702

query I rowsort
SELECT ALL + 5 - - - col2 - - 26 FROM tab2
----
-27
-9
8

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5997
SELECT DISTINCT + COUNT( * ) - MIN( ALL + + 56 ) + + COUNT( * ) * - + 6 FROM tab2
----
-71

skipif mysql # not compatible
query I rowsort label-5997
SELECT DISTINCT + COUNT ( * ) - MIN ( ALL + + 56 ) + + COUNT ( * ) * - + 6 FROM tab2
----
-71

query I rowsort
SELECT col2 - + ( col0 ) FROM tab0
----
-77
2
32

query I rowsort
SELECT col2 + - + col1 * col0 FROM tab1
----
-366
-4209
-618

query I rowsort
SELECT col1 * - ( ( - 33 ) ) + - ( 37 ) AS col1 FROM tab2
----
1646
2174
2504

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6002
SELECT DISTINCT 58 AS col2, col1 DIV - ( + col1 ) + ( - col1 ) FROM tab0 AS cor0
----
58
-2
58
-22
58
-82

skipif mysql # not compatible
query II rowsort label-6002
SELECT DISTINCT 58 AS col2, col1 / - ( + col1 ) + ( - col1 ) FROM tab0 AS cor0
----
58
-2
58
-22
58
-82

query I rowsort
SELECT 34 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

query I rowsort
SELECT DISTINCT 34 * + col1 * col0 FROM tab0
----
3298
41310
62118

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6007
SELECT - col1 DIV col2 + + 86 * col0 FROM tab1 AS cor0
----
4386
7310
7826

skipif mysql # not compatible
query I rowsort label-6007
SELECT - col1 / col2 + + 86 * col0 FROM tab1 AS cor0
----
4386
7310
7826

query I rowsort
SELECT ALL + - col2 * 89 * - + 49 * + - col2 FROM tab0 AS cor0 WHERE NOT col0 < + col1 * - col1 * col0 * - 55
----

query I rowsort
SELECT + col0 * + 18 * + 75 * - + col2 + + col1 * - + col1 * - col2 AS col2 FROM tab2 AS cor0
----
-1368477
-3218840
-5612138

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6012
SELECT ALL MIN ( ALL + col0 ) FROM tab2 cor0 WHERE NULL IS NULL
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6013
SELECT DISTINCT - CAST( - - 36 AS SIGNED ) FROM tab2 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-6013
SELECT DISTINCT - CAST ( - - 36 AS INTEGER ) FROM tab2 AS cor0
----
-36

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + ( + col2 ) ) * - 80 col2 FROM tab0
----
-3760
-7920
-800

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 - - 50 - - col2 col1 FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN col2 AND + - 53
----

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

query I rowsort
SELECT ALL - 66 * - col0 AS col2 FROM tab0
----
5742
6402
990

query I rowsort
SELECT + 59 * + + col1 FROM tab2
----
3009
3953
4543

query I rowsort
SELECT DISTINCT ( ( + 57 ) ) + + col2 FROM tab0
----
104
156
67

query I rowsort
SELECT ALL + col0 * - 14 + - col0 FROM tab2 AS cor0
----
-1125
-690
-960

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

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

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

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE + col0 + + 83 + 9 + + col0 <= + - col2 + - col2 + + 90
----

query I rowsort
SELECT DISTINCT - 90 + - col0 FROM tab0 AS cor0
----
-105
-177
-187

query I rowsort
SELECT + col2 * 95 * + col1 + + + col2 FROM tab0 AS cor0
----
19960
361712
9504

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

query I rowsort
SELECT DISTINCT 39 + + - col2 FROM tab1 WHERE NOT - col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6030
SELECT ALL + 43 DIV + col0 * + + 94 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6030
SELECT ALL + 43 / + col0 * + + 94 FROM tab1
----
0
0
0

query I rowsort
SELECT - + 45 * 60 AS col1 FROM tab0 AS cor0
----
-2700
-2700
-2700

query II rowsort
SELECT + + 76 * col2, - col2 AS col2 FROM tab0 AS cor0
----
3572
-47
7524
-99
760
-10

query I rowsort
SELECT - 97 * col2 FROM tab2
----
-2231
-3880
-5626

query I rowsort
SELECT - col1 * + col0 FROM tab2 WHERE NOT 74 IS NULL
----
-2346
-4928
-5025

query I rowsort
SELECT ALL + + ( + ( + + col2 ) ) * - col1 * - col0 FROM tab1 cor0
----
25075
290836
68544

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

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

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

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

query II rowsort
SELECT DISTINCT + col1 + + 3 AS col2, col2 AS col1 FROM tab0
----
24
10
4
99
84
47

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

skipif mysql # not compatible
query I rowsort label-6039
SELECT COUNT ( DISTINCT 16 ) FROM tab0 AS cor0
----
1

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 48 = - + ( + 52 ) * + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query I rowsort
SELECT DISTINCT + + col0 + col0 * - col2 + + col2 AS col2 FROM tab2 cor0
----
-2456
-4217
-989

query I rowsort
SELECT + 62 + - col0 AS col0 FROM tab1 AS cor0
----
-23
-29
11

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 2 * - + col1 + + 72 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6046
SELECT DISTINCT - 41 * + + SUM( + + col2 ) FROM tab0 AS cor0
----
-6396

skipif mysql # not compatible
query I rowsort label-6046
SELECT DISTINCT - 41 * + + SUM ( + + col2 ) FROM tab0 AS cor0
----
-6396

query I rowsort
SELECT col2 * + col1 + - + col1 * + + ( + col1 ) + + - ( - + col1 ) AS col2 FROM tab0 AS cor0
----
-210
-2673
99

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

query I rowsort
SELECT + ( - col2 ) - - - col2 FROM tab0 AS cor0
----
-198
-20
-94

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

query I rowsort
SELECT - - col0 AS col1 FROM tab1 AS cor0 WHERE - col2 NOT BETWEEN + - col2 AND 82 + - - col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6052
SELECT ALL 35 DIV + + COUNT( * ) FROM tab2
----
11

skipif mysql # not compatible
query I rowsort label-6052
SELECT ALL 35 / + + COUNT ( * ) FROM tab2
----
11

query II rowsort
SELECT 35 AS col0, 97 AS col2 FROM tab0
----
35
97
35
97
35
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6054
SELECT DISTINCT - MAX( ALL col2 ) col1 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6054
SELECT DISTINCT - MAX ( ALL col2 ) col1 FROM tab2 AS cor0
----
-58

query I rowsort
SELECT ALL + + ( col0 ) * - col2 FROM tab1 AS cor0
----
-4896
-5015
-6188

query I rowsort
SELECT - col1 * - + 34 FROM tab0 AS cor0
----
2754
34
714

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 30 col1 FROM tab0 WHERE 78 + 61 IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6059
SELECT DISTINCT 40 * - COUNT( * ) + 8 FROM tab2
----
-112

skipif mysql # not compatible
query I rowsort label-6059
SELECT DISTINCT 40 * - COUNT ( * ) + 8 FROM tab2
----
-112

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

query I rowsort
SELECT DISTINCT + col0 FROM tab0 WHERE ( 1 ) NOT BETWEEN + col1 AND NULL
----
15
87

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN + 11 AND ( 57 + - col2 * + 8 )
----

query I rowsort
SELECT col2 AS col0 FROM tab2 WHERE col1 BETWEEN ( col0 ) AND ( + 36 + + col1 )
----
23
40

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6066
SELECT DISTINCT COUNT( * ) + + 7 FROM tab2
----
10

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6068
SELECT ALL * FROM tab2 WHERE NOT CAST( NULL AS DECIMAL ) * col1 IS NULL
----

skipif mysql # not compatible
query III rowsort label-6068
SELECT ALL * FROM tab2 WHERE NOT CAST ( NULL AS REAL ) * col1 IS NULL
----

query I rowsort
SELECT ALL + col0 + col1 AS col1 FROM tab1 WHERE NOT - col0 IS NULL
----
138
65
90

query III rowsort
SELECT * FROM tab2 WHERE ( + col2 ) + 23 * col1 IS NULL
----

query I rowsort
SELECT ALL col0 * + 10 FROM tab1 WHERE NOT 99 NOT BETWEEN ( NULL ) AND 38
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL BETWEEN ( col2 ) AND 53
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 29 * col1 col1 FROM tab1
----
-1363
-145
-406

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

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

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

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

query I rowsort
SELECT ALL + col2 + 83 FROM tab1
----
142
151
179

query I rowsort
SELECT DISTINCT + 4 AS col1 FROM tab1 WHERE - col2 IS NOT NULL
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6080
SELECT DISTINCT * FROM tab0 WHERE + 77 * CAST( col2 AS SIGNED ) <= ( col0 - - col0 )
----

skipif mysql # not compatible
query III rowsort label-6080
SELECT DISTINCT * FROM tab0 WHERE + 77 * CAST ( col2 AS INTEGER ) <= ( col0 - - col0 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( col1 * + 25 ) = + 61 + - 37 / 29
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6082
SELECT 83 DIV - col0 + - 2 AS col1 FROM tab2
----
-3
-3
-3

skipif mysql # not compatible
query I rowsort label-6082
SELECT 83 / - col0 + - 2 AS col1 FROM tab2
----
-3
-3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6083
SELECT ALL - MAX( col2 ) * + COUNT( * ) AS col2 FROM tab1
----
-288

skipif mysql # not compatible
query I rowsort label-6083
SELECT ALL - MAX ( col2 ) * + COUNT ( * ) AS col2 FROM tab1
----
-288

onlyif mysql # aggregate syntax: 
query I rowsort label-6084
SELECT DISTINCT COUNT( * ) + + 46 AS col2 FROM tab1
----
49

skipif mysql # not compatible
query I rowsort label-6084
SELECT DISTINCT COUNT ( * ) + + 46 AS col2 FROM tab1
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-6085
SELECT - 28 * - COUNT( * ) FROM tab0
----
84

skipif mysql # not compatible
query I rowsort label-6085
SELECT - 28 * - COUNT ( * ) FROM tab0
----
84

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6089
SELECT DISTINCT - COUNT( * ) * - 95 FROM tab1 cor0 WHERE NULL IS NULL
----
285

skipif mysql # not compatible
query I rowsort label-6089
SELECT DISTINCT - COUNT ( * ) * - 95 FROM tab1 cor0 WHERE NULL IS NULL
----
285

onlyif mysql # aggregate syntax: 
query I rowsort label-6090
SELECT ALL + COUNT( * ) FROM tab1 cor0 WHERE - col2 / 13 NOT IN ( + col2 + 86 / + col2 )
----
3

skipif mysql # not compatible
query I rowsort label-6090
SELECT ALL + COUNT ( * ) FROM tab1 cor0 WHERE - col2 / 13 NOT IN ( + col2 + 86 / + col2 )
----
3

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

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

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

query I rowsort
SELECT DISTINCT - - col0 * - col1 + col0 AS col2 FROM tab1 cor0
----
-340
-4186
-663

onlyif mysql # DIV for integer division: 
query I rowsort label-6094
SELECT ALL + col2 * + col2 + + col1 DIV + col0 AS col1 FROM tab0 AS cor0
----
100
2214
9801

skipif mysql # not compatible
query I rowsort label-6094
SELECT ALL + col2 * + col2 + + col1 / + col0 AS col1 FROM tab0 AS cor0
----
100
2214
9801

onlyif mysql # DIV for integer division: 
query I rowsort label-6095
SELECT + - col1 DIV + col0 + col0 DIV - col1 AS col0 FROM tab0 AS cor0
----
-4
-5
-97

skipif mysql # not compatible
query I rowsort label-6095
SELECT + - col1 / + col0 + col0 / - col1 AS col0 FROM tab0 AS cor0
----
-4
-5
-97

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

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

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 + col2 >= 71 * 80 + - col0
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6101
SELECT - + 76 DIV col1 + col2 * + col1 AS col0 FROM tab0 AS cor0
----
207
23
3807

skipif mysql # not compatible
query I rowsort label-6101
SELECT - + 76 / col1 + col2 * + col1 AS col0 FROM tab0 AS cor0
----
207
23
3807

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 * 9 + + 91 BETWEEN NULL AND ( 65 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 27 * col0 FROM tab1 AS cor0
----
1377
2295
2457

query I rowsort
SELECT + 49 - 66 FROM tab2 WHERE NOT NULL NOT IN ( - 3 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col1 / - col2 - + col1 IS NULL
----

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 51 * col0 IS NOT NULL
----

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

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col0 + + col1 / 13 ) NOT IN ( - col0 )
----

query I rowsort
SELECT DISTINCT + 44 + + 35 * + col1 AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT col1 * 26 * + col0 AS col0 FROM tab2
----
128128
130650
60996

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6115
SELECT ALL - + CAST( - 91 AS SIGNED ) FROM tab2 cor0
----
91
91
91

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

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

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

query I rowsort
SELECT 44 * col2 - col2 AS col0 FROM tab0 cor0
----
2021
4257
430

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 60 > NULL
----

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT NULL NOT IN ( 78 )
----

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

query II rowsort
SELECT DISTINCT - col2, - 90 AS col1 FROM tab2 AS cor0
----
-23
-90
-40
-90
-58
-90

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL > col0 / + 79
----

query I rowsort
SELECT DISTINCT 86 + 98 + + + 30 AS col2 FROM tab2 AS cor0
----
214

query I rowsort
SELECT + col0 FROM tab1 AS cor0 WHERE ( 79 ) BETWEEN NULL AND - col0
----

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

query II rowsort
SELECT ALL + col1, + col0 * - col1 FROM tab0 AS cor0
----
1
-97
21
-1827
81
-1215

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6127
SELECT ALL + 83 * - + CAST( col0 AS SIGNED ) FROM tab0 cor0
----
-1245
-7221
-8051

skipif mysql # not compatible
query I rowsort label-6127
SELECT ALL + 83 * - + CAST ( col0 AS INTEGER ) FROM tab0 cor0
----
-1245
-7221
-8051

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 NOT BETWEEN 80 AND 87
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 9 AS col0 FROM tab1 WHERE - + 99 BETWEEN 48 * - col0 AND NULL
----

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

query II rowsort
SELECT + 56 * + col0, - col0 AS col0 FROM tab0
----
4872
-87
5432
-97
840
-15

query I rowsort
SELECT - 22 * 47 * col0 AS col2 FROM tab1
----
-52734
-87890
-94094

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + - col2 + + - col1 col0 FROM tab1
----
-123
-183
-206

query I rowsort
SELECT col1 - col0 + + 86 AS col1 FROM tab0
----
-10
152
20

query I rowsort
SELECT DISTINCT - + col2 + + 7 + col2 * - 42 AS col0 FROM tab1 AS cor0
----
-2530
-2917
-4121

onlyif mysql # aggregate syntax: 
query I rowsort label-6136
SELECT 53 + - MIN( ALL + ( 23 ) ) + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-6136
SELECT 53 + - MIN ( ALL + ( 23 ) ) + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
27

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6137
SELECT ALL * FROM tab1 AS cor0 WHERE ( + 38 / + col1 < CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-6137
SELECT ALL * FROM tab1 AS cor0 WHERE ( + 38 / + col1 < CAST ( NULL AS REAL ) )
----

query I rowsort
SELECT DISTINCT - col1 * 7 FROM tab1 WHERE NOT - + col2 = col2
----
-329
-35
-98

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + col1 * + 93 ) >= ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6140
SELECT COUNT( * ) AS col1 FROM tab0 cor0 CROSS JOIN tab0 cor1 WHERE NOT NULL IS NOT NULL
----
9

skipif mysql # not compatible
query I rowsort label-6140
SELECT COUNT ( * ) AS col1 FROM tab0 cor0 CROSS JOIN tab0 cor1 WHERE NOT NULL IS NOT NULL
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6141
SELECT DISTINCT CAST( - 17 AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE NOT - 79 IN ( col1 )
----
-17

skipif mysql # not compatible
query I rowsort label-6141
SELECT DISTINCT CAST ( - 17 AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NOT - 79 IN ( col1 )
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-6142
SELECT DISTINCT - - 45 * - 78 + COUNT( + ( - col0 ) ) FROM tab0 AS cor0
----
-3507

skipif mysql # not compatible
query I rowsort label-6142
SELECT DISTINCT - - 45 * - 78 + COUNT ( + ( - col0 ) ) FROM tab0 AS cor0
----
-3507

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

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

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

query I rowsort
SELECT ALL + 9 * - - col2 AS col1 FROM tab0 AS cor0
----
423
891
90

query II rowsort
SELECT ALL - - 43 AS col2, - 5 FROM tab0 cor0
----
43
-5
43
-5
43
-5

query I rowsort
SELECT ALL 94 * - 94 FROM tab1
----
-8836
-8836
-8836

query I rowsort
SELECT + ( 34 ) * + col0 + + col2 + col2 * + col0 FROM tab2
----
2645
4776
6958

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6149
SELECT - CAST( AVG ( + col1 ) AS SIGNED ) FROM tab1
----
-22

skipif mysql # not compatible
query I rowsort label-6149
SELECT - CAST ( AVG ( + col1 ) AS INTEGER ) FROM tab1
----
-22

query II rowsort
SELECT + 20 AS col0, - col2 FROM tab2
----
20
-23
20
-40
20
-58

query I rowsort
SELECT DISTINCT + col2 * - - 42 FROM tab1
----
2478
2856
4032

query I rowsort
SELECT ALL + - 7 + 97 * - col1 AS col2 FROM tab1 AS cor0
----
-1365
-4566
-492

onlyif mysql # aggregate syntax: 
query I rowsort label-6153
SELECT + - SUM( 49 ) AS col2 FROM tab0 cor0
----
-147

skipif mysql # not compatible
query I rowsort label-6153
SELECT + - SUM ( 49 ) AS col2 FROM tab0 cor0
----
-147

onlyif mysql # aggregate syntax: 
query I rowsort label-6154
SELECT MIN( col1 ) AS col0 FROM tab2 AS cor0 WHERE NOT ( col0 * 46 ) IS NULL
----
51

skipif mysql # not compatible
query I rowsort label-6154
SELECT MIN ( col1 ) AS col0 FROM tab2 AS cor0 WHERE NOT ( col0 * 46 ) IS NULL
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-6155
SELECT ALL - + 16 DIV - col1 AS col1 FROM tab0 AS cor0
----
0
0
16

skipif mysql # not compatible
query I rowsort label-6155
SELECT ALL - + 16 / - col1 AS col1 FROM tab0 AS cor0
----
0
0
16

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

query I rowsort
SELECT ALL - ( - 96 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

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

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

query I rowsort
SELECT 85 AS col2 FROM tab1 AS cor0 WHERE + 41 * - - col2 <= ( - 64 )
----

query I rowsort
SELECT DISTINCT - + col0 * + 18 + + col1 AS col0 FROM tab1 AS cor0
----
-1525
-1591
-904

onlyif mysql # aggregate syntax: 
query I rowsort label-6161
SELECT + COUNT( * ) + + - 46 * - 29 * ( MIN( DISTINCT + col1 ) ) FROM tab2 cor0
----
68037

skipif mysql # not compatible
query I rowsort label-6161
SELECT + COUNT ( * ) + + - 46 * - 29 * ( MIN ( DISTINCT + col1 ) ) FROM tab2 cor0
----
68037

onlyif mysql # aggregate syntax: 
query I rowsort label-6162
SELECT ALL + 61 + + MAX( ALL 59 ) FROM tab2 AS cor0 WHERE NOT - col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6162
SELECT ALL + 61 + + MAX ( ALL 59 ) FROM tab2 AS cor0 WHERE NOT - col1 IS NOT NULL
----
NULL

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

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

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

query I rowsort
SELECT ALL - col0 + + 36 + - col2 + - col1 * 82 * - col2 FROM tab1 AS cor0
----
110097
24082
261949

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

query II rowsort
SELECT ALL 60 AS col2, - 0 + + 32 AS col0 FROM tab2
----
60
32
60
32
60
32

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 23 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6170
SELECT DISTINCT - COUNT( * ) FROM tab1 WHERE NOT ( col1 * + 52 * col2 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6170
SELECT DISTINCT - COUNT ( * ) FROM tab1 WHERE NOT ( col1 * + 52 * col2 ) IS NOT NULL
----
0

query I rowsort
SELECT - col0 - col2 FROM tab1 AS cor0 WHERE NULL <= ( - col1 )
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 79 + + + col0 * + col0 + + col1 col0 FROM tab1 AS cor0
----
2694
7309
8407

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

skipif mysql # not compatible
query II rowsort label-6174
SELECT col1, + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE + col1 IS NOT NULL
----
14
NULL
47
NULL
5
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6175
SELECT - 79 * + + ( 62 ) - - COUNT( * ) FROM tab0 AS cor0
----
-4895

skipif mysql # not compatible
query I rowsort label-6175
SELECT - 79 * + + ( 62 ) - - COUNT ( * ) FROM tab0 AS cor0
----
-4895

query I rowsort
SELECT ALL + col1 - - col1 + + col2 * + 43 + + - col0 FROM tab0
----
2168
385
4162

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6178
SELECT + - 15 DIV + col1 + + col0 FROM tab1 cor0
----
50
82
91

skipif mysql # not compatible
query I rowsort label-6178
SELECT + - 15 / + col1 + + col0 FROM tab1 cor0
----
50
82
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6179
SELECT ALL + 10 * + + CAST( + + 6 AS SIGNED ) - col1 AS col0 FROM tab2 AS cor0
----
-17
-7
9

skipif mysql # not compatible
query I rowsort label-6179
SELECT ALL + 10 * + + CAST ( + + 6 AS INTEGER ) - col1 AS col0 FROM tab2 AS cor0
----
-17
-7
9

query I rowsort
SELECT DISTINCT col1 * + - col0 * + col2 FROM tab0 AS cor0
----
-18270
-57105
-9603

query I rowsort
SELECT - + ( - 29 ) * - col1 AS col2 FROM tab0 AS cor0
----
-2349
-29
-609

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6182
SELECT - + COUNT( ALL + - col1 ) AS col1, CAST( 12 AS SIGNED ) - - + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-3
15

skipif mysql # not compatible
query II rowsort label-6182
SELECT - + COUNT ( ALL + - col1 ) AS col1, CAST ( 12 AS INTEGER ) - - + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-3
15

query I rowsort
SELECT DISTINCT 11 * col1 FROM tab1 AS cor0
----
154
517
55

query I rowsort
SELECT DISTINCT + 64 AS col0 FROM tab2 cor0
----
64

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

query II rowsort
SELECT col2 AS col0, 64 AS col0 FROM tab2
----
23
64
40
64
58
64

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6189
SELECT ALL 40 AS col0, 20 * col2 DIV col0 FROM tab2
----
40
10
40
12
40
15

skipif mysql # not compatible
query II rowsort label-6189
SELECT ALL 40 AS col0, 20 * col2 / col0 FROM tab2
----
40
10
40
12
40
15

query I rowsort
SELECT - col0 * 37 AS col0 FROM tab0
----
-3219
-3589
-555

query I rowsort
SELECT + - col0 * col0 AS col0 FROM tab2 AS cor0 WHERE NOT - 37 * - col1 + - col0 + - col2 * - - 51 * + + 99 * + 30 / + - col0 IS NULL
----
-2116
-4096
-5625

query III rowsort
SELECT DISTINCT - col1, - col1 AS col2, - col1 FROM tab0
----
9 values hashing to c2593989a1b1bea4a02305b2d7d78b3b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - 63 - - - col1 col0, + 28 AS col2 FROM tab1 WHERE NULL <= NULL
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + - col0 col1 FROM tab1
----
-37
-44
-80

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 AS col2, + col1 col1 FROM tab1 AS cor0
----
59
5
68
47
96
14

onlyif mysql # aggregate syntax: 
query I rowsort label-6198
SELECT ALL 19 + + COUNT( * ) FROM tab2 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-6198
SELECT ALL 19 + + COUNT ( * ) FROM tab2 AS cor0
----
22

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6199
SELECT ALL + - COUNT( * ) * + MIN( DISTINCT + - col0 ) * SUM( ALL - col0 ) * - 81 * + + 85 * + 2 + + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6199
SELECT ALL + - COUNT ( * ) * + MIN ( DISTINCT + - col0 ) * SUM ( ALL - col0 ) * - 81 * + + 85 * + 2 + + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6200
SELECT DISTINCT - 74 + col0 DIV - + col2 AS col2 FROM tab2 AS cor0
----
-75
-76

skipif mysql # not compatible
query I rowsort label-6200
SELECT DISTINCT - 74 + col0 / - + col2 AS col2 FROM tab2 AS cor0
----
-75
-76

query I rowsort
SELECT - 47 + col0 + 66 + col0 + - col0 * - col2 * - ( + col0 ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
-10526
-75497
-931278

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

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

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

query I rowsort
SELECT col2 - - 54 FROM tab1
----
113
122
150

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 - 48 col1, - ( - - col0 ) AS col1 FROM tab1
----
11
-85
20
-91
48
-51

query I rowsort
SELECT + 75 - - 9 + + col1 FROM tab0
----
105
165
85

query I rowsort
SELECT DISTINCT + 78 * col2 * - col1 FROM tab1
----
-104832
-23010
-249288

query I rowsort
SELECT DISTINCT + + col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL <= - col2 - + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6209
SELECT ALL - - COUNT( - + col1 ) + - MIN( + - col2 ) AS col0 FROM tab1 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-6209
SELECT ALL - - COUNT ( - + col1 ) + - MIN ( + - col2 ) AS col0 FROM tab1 AS cor0
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6210
SELECT - CAST( - col0 AS SIGNED ) FROM tab0 cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-6210
SELECT - CAST ( - col0 AS INTEGER ) FROM tab0 cor0
----
15
87
97

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

query IIIIII rowsort
SELECT ALL * FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 ) WHERE NULL IS NOT NULL
----

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6214
SELECT DISTINCT - CAST( col0 AS DECIMAL ) FROM tab2 WHERE NOT col0 + - col1 NOT BETWEEN ( col1 ) AND + - col2
----

skipif mysql # not compatible
query I rowsort label-6214
SELECT DISTINCT - CAST ( col0 AS REAL ) FROM tab2 WHERE NOT col0 + - col1 NOT BETWEEN ( col1 ) AND + - col2
----

query II rowsort
SELECT ALL 4 AS col0, col2 FROM tab2
----
4
23
4
40
4
58

query I rowsort
SELECT DISTINCT + 18 AS col1 FROM tab1 cor0
----
18

onlyif mysql # aggregate syntax: 
query II rowsort label-6217
SELECT ALL + 33, - 86 + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
33
-83

skipif mysql # not compatible
query II rowsort label-6217
SELECT ALL + 33, - 86 + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
33
-83

query II rowsort
SELECT col2, ( + - 49 ) - - - col0 FROM tab2 AS cor0 WHERE NOT + col0 < ( + - 46 / + 35 - + col1 + - + 83 * - - col1 )
----
23
-95
40
-113
58
-124

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 * 88, col1 col2 FROM tab2
----
4488
51
5896
67
6776
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6220
SELECT DISTINCT - SUM( col2 ) + MAX( ALL col1 ) FROM tab0 WHERE + col0 NOT BETWEEN - ( - + col0 ) AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6220
SELECT DISTINCT - SUM ( col2 ) + MAX ( ALL col1 ) FROM tab0 WHERE + col0 NOT BETWEEN - ( - + col0 ) AND NULL
----
NULL

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

query I rowsort
SELECT 35 + - col0 AS col1 FROM tab2
----
-11
-29
-40

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6225
SELECT - 49 * + COUNT( * ) * + - 27 * + 5 AS col2 FROM tab1 AS cor0
----
19845

skipif mysql # not compatible
query I rowsort label-6225
SELECT - 49 * + COUNT ( * ) * + - 27 * + 5 AS col2 FROM tab1 AS cor0
----
19845

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6227
SELECT + 86 * - MIN( + col0 ) FROM tab0
----
-1290

skipif mysql # not compatible
query I rowsort label-6227
SELECT + 86 * - MIN ( + col0 ) FROM tab0
----
-1290

onlyif mysql # aggregate syntax: 
query I rowsort label-6228
SELECT ( + COUNT( DISTINCT + 1 ) ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-6228
SELECT ( + COUNT ( DISTINCT + 1 ) ) FROM tab0
----
1

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6231
SELECT - COUNT( * ) DIV - 63 + + COUNT( * ) + + - 17 FROM tab2 AS cor0
----
-14

skipif mysql # not compatible
query I rowsort label-6231
SELECT - COUNT ( * ) / - 63 + + COUNT ( * ) + + - 17 FROM tab2 AS cor0
----
-14

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 12 < 96
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 64 * + col1 + 54 AS col2 FROM tab1 AS cor0
----
-266
-2954
-842

query I rowsort
SELECT 29 + - - col0 AS col1 FROM tab0 AS cor0
----
116
126
44

onlyif mysql # aggregate syntax: 
query I rowsort label-6235
SELECT - 75 + + COUNT( * ) FROM tab1 cor0
----
-72

skipif mysql # not compatible
query I rowsort label-6235
SELECT - 75 + + COUNT ( * ) FROM tab1 cor0
----
-72

query I rowsort
SELECT ALL + 63 - + col2 AS col0 FROM tab0
----
-36
16
53

query III rowsort
SELECT * FROM tab0 WHERE + - col0 NOT BETWEEN NULL AND + - col2
----
15
81
47
97
1
99

query III rowsort
SELECT * FROM tab2 WHERE - + col1 NOT BETWEEN NULL AND - 57
----
46
51
23

query I rowsort
SELECT ALL + ( + col1 ) - - - 86 * + ( + col1 ) FROM tab1
----
-1190
-3995
-425

query I rowsort
SELECT DISTINCT + col1 + col2 FROM tab0 WHERE NOT + + col1 + - col2 IS NULL
----
100
128
31

query I rowsort
SELECT DISTINCT - 47 AS col2 FROM tab2 WHERE NOT - 7 IS NULL
----
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-6242
SELECT DISTINCT 7 DIV + 51 AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6242
SELECT DISTINCT 7 / + 51 AS col0 FROM tab0
----
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6244
SELECT * FROM tab2 WHERE + - CAST( NULL AS SIGNED ) / + - 68 * 78 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6244
SELECT * FROM tab2 WHERE + - CAST ( NULL AS INTEGER ) / + - 68 * 78 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 55 * + col2 - + - col1 - + + col0 FROM tab2 AS cor0
----
1270
2213
3182

query I rowsort
SELECT - - 97 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6247
SELECT DISTINCT + ( COUNT ( ALL - - col0 ) ) col2 FROM tab1
----
3

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6250
SELECT col0 * col2 DIV - + col1 FROM tab1 AS cor0
----
-1003
-131
-349

skipif mysql # not compatible
query I rowsort label-6250
SELECT col0 * col2 / - + col1 FROM tab1 AS cor0
----
-1003
-131
-349

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6251
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + ( + col0 ) < + 20 * 33 + - + col2 - - col1 + + + ( - CAST( NULL AS SIGNED ) ) / + 48
----

skipif mysql # not compatible
query III rowsort label-6251
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + ( + col0 ) < + 20 * 33 + - + col2 - - col1 + + + ( - CAST ( NULL AS INTEGER ) ) / + 48
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6252
SELECT + COUNT( * ) * - ( MIN( DISTINCT + col0 ) ) FROM tab0 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-6252
SELECT + COUNT ( * ) * - ( MIN ( DISTINCT + col0 ) ) FROM tab0 AS cor0
----
-45

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col2 / - 23 <= - col0 / - col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6255
SELECT + 94 * COUNT( - + CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 WHERE NOT - col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6255
SELECT + 94 * COUNT ( - + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 WHERE NOT - col2 IS NULL
----
0

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

query II rowsort
SELECT + col2 AS col0, + 78 AS col2 FROM tab1
----
59
78
68
78
96
78

onlyif mysql # aggregate syntax: 
query I rowsort label-6258
SELECT ALL MAX( ALL - 45 ) FROM tab2
----
-45

skipif mysql # not compatible
query I rowsort label-6258
SELECT ALL MAX ( ALL - 45 ) FROM tab2
----
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6259
SELECT 56 + - COUNT( * ) + + 27 DIV + COUNT( * ) AS col2 FROM tab1, tab1 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-6259
SELECT 56 + - COUNT ( * ) + + 27 / + COUNT ( * ) AS col2 FROM tab1, tab1 AS cor0
----
50

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6261
SELECT DISTINCT - SUM( DISTINCT - 96 ) * + 59 FROM tab1
----
5664

skipif mysql # not compatible
query I rowsort label-6261
SELECT DISTINCT - SUM ( DISTINCT - 96 ) * + 59 FROM tab1
----
5664

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

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

query I rowsort
SELECT DISTINCT 31 * + + col0 * - - col1 AS col1 FROM tab1
----
13175
132587
22134

query I rowsort
SELECT ALL + 78 + - col0 FROM tab0 AS cor0
----
-19
-9
63

onlyif mysql # DIV for integer division: 
query I rowsort label-6265
SELECT ALL + col0 - - - 30 + - col0 DIV + 90 + + + col1 + 75 AS col0 FROM tab2 cor0
----
142
186
187

skipif mysql # not compatible
query I rowsort label-6265
SELECT ALL + col0 - - - 30 + - col0 / + 90 + + + col1 + 75 AS col0 FROM tab2 cor0
----
142
186
187

query I rowsort
SELECT ALL - - col0 * col1 - + col0 * - col1 AS col0 FROM tab2 AS cor0
----
10050
4692
9856

onlyif mysql # aggregate syntax: 
query I rowsort label-6267
SELECT COUNT( * ) + + MIN( + - 84 ) AS col2 FROM tab1 AS cor0 WHERE 42 > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6267
SELECT COUNT ( * ) + + MIN ( + - 84 ) AS col2 FROM tab1 AS cor0 WHERE 42 > NULL
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6269
SELECT DISTINCT col2 DIV - col2 - + 42 AS col0 FROM tab0 AS cor0
----
-43

skipif mysql # not compatible
query I rowsort label-6269
SELECT DISTINCT col2 / - col2 - + 42 AS col0 FROM tab0 AS cor0
----
-43

query I rowsort
SELECT + 49 - + col1 + + - 0 * + - 36 FROM tab1 AS cor0
----
2
35
44

onlyif mysql # aggregate syntax: 
query I rowsort label-6271
SELECT DISTINCT + 56 * + - SUM( ALL + col0 ) FROM tab1 WHERE + col0 < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6271
SELECT DISTINCT + 56 * + - SUM ( ALL + col0 ) FROM tab1 WHERE + col0 < NULL
----
NULL

query II rowsort
SELECT DISTINCT - col0 * col1 - - - 17 AS col1, 66 * + ( + col0 ) FROM tab0
----
-114
6402
-1232
990
-1844
5742

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6275
SELECT DISTINCT CAST( NULL AS SIGNED ) / 9 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6275
SELECT DISTINCT CAST ( NULL AS INTEGER ) / 9 AS col2 FROM tab2
----
NULL

query I rowsort
SELECT - 34 * - col0 AS col2 FROM tab2
----
1564
2176
2550

onlyif mysql # aggregate syntax: 
query I rowsort label-6277
SELECT DISTINCT + SUM( DISTINCT 98 ) FROM tab1 cor0 WHERE - col1 + + - 91 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6277
SELECT DISTINCT + SUM ( DISTINCT 98 ) FROM tab1 cor0 WHERE - col1 + + - 91 IS NULL
----
NULL

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

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( ( NULL ) IS NULL )
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

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

skipif mysql # not compatible
query I rowsort label-6280
SELECT + col1 * + CAST ( - col2 AS INTEGER ) - + col2 AS col2 FROM tab0 cor0
----
-198
-220
-3854

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

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

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

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

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

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

query I rowsort
SELECT + + 10 AS col2 FROM tab0 AS cor0 WHERE - 89 IS NOT NULL OR NOT NULL IS NOT NULL
----
10
10
10

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

query I rowsort
SELECT 97 * 49 FROM tab1 cor0
----
4753
4753
4753

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

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

query I rowsort
SELECT + col1 * 28 FROM tab1 AS cor0
----
1316
140
392

onlyif mysql # DIV for integer division: 
query I rowsort label-6290
SELECT DISTINCT 26 DIV + col0 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6290
SELECT DISTINCT 26 / + col0 AS col2 FROM tab2
----
0

query I rowsort
SELECT ALL - - ( + col2 ) FROM tab0 WHERE NULL >= NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE - + 43 IN ( + 17, 45 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6293
SELECT ALL - + 57 DIV - - col0 + + 37 AS col0 FROM tab1 AS cor0
----
36
37
37

skipif mysql # not compatible
query I rowsort label-6293
SELECT ALL - + 57 / - - col0 + + 37 AS col0 FROM tab1 AS cor0
----
36
37
37

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6295
SELECT ALL COUNT( * ) FROM tab1 AS cor0 WHERE NOT col0 NOT BETWEEN + + col0 AND + + CAST( NULL AS DECIMAL )
----
0

skipif mysql # not compatible
query I rowsort label-6295
SELECT ALL COUNT ( * ) FROM tab1 AS cor0 WHERE NOT col0 NOT BETWEEN + + col0 AND + + CAST ( NULL AS REAL )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6296
SELECT ALL 21 AS col1, - COUNT( * ) * + + COUNT( * ) FROM tab2
----
21
-9

skipif mysql # not compatible
query II rowsort label-6296
SELECT ALL 21 AS col1, - COUNT ( * ) * + + COUNT ( * ) FROM tab2
----
21
-9

query I rowsort
SELECT + col0 + - - ( + 74 ) * - - col1 AS col1 FROM tab2 AS cor0
----
3820
5033
5762

onlyif mysql # aggregate syntax: 
query I rowsort label-6298
SELECT ALL SUM( ALL - 21 ) + + 64 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6298
SELECT ALL SUM ( ALL - 21 ) + + 64 FROM tab1 AS cor0
----
1

query I rowsort
SELECT + - 91 + + col2 * - 64 FROM tab2 AS cor0
----
-1563
-2651
-3803

query I rowsort
SELECT DISTINCT - - col0 + - - col1 FROM tab1 AS cor0
----
138
65
90

query I rowsort
SELECT ALL - 50 FROM tab2, tab0 AS cor0
----
9 values hashing to c7432a968c8352c12996dfa54dd4b9e8

query I rowsort
SELECT ALL - 19 AS col2 FROM tab1 WHERE - col1 IS NOT NULL
----
-19
-19
-19

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

skipif mysql # not compatible
query I rowsort label-6303
SELECT DISTINCT + CAST ( - MIN ( ALL - col0 ) AS INTEGER ) FROM tab1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6304
SELECT + 53 * COUNT( * ) * + COUNT( * ) * + ( COUNT( * ) ) col2 FROM tab1
----
1431

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6304
SELECT + 53 * COUNT ( * ) * + COUNT ( * ) * + ( COUNT ( * ) ) col2 FROM tab1
----
1431

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + ( + + 76 ) col0, 53 FROM tab1 AS cor0
----
76
53
76
53
76
53

query I rowsort
SELECT + + col1 + + + col2 FROM tab2 AS cor0
----
117
125
74

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6307
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT ( NULL IN ( - col0, 97, - - CAST( + + col1 AS SIGNED ) + + col2 / col0 + - col2 ) ) )
----

skipif mysql # not compatible
query III rowsort label-6307
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT ( NULL IN ( - col0, 97, - - CAST ( + + col1 AS INTEGER ) + + col2 / col0 + - col2 ) ) )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6309
SELECT + MAX( + + col1 ) FROM tab2 cor0
----
77

skipif mysql # not compatible
query I rowsort label-6309
SELECT + MAX ( + + col1 ) FROM tab2 cor0
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-6310
SELECT DISTINCT 41 + + col2 + 52 DIV + + col2 FROM tab2 AS cor0
----
66
82
99

skipif mysql # not compatible
query I rowsort label-6310
SELECT DISTINCT 41 + + col2 + 52 / + + col2 FROM tab2 AS cor0
----
66
82
99

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6312
SELECT ALL + MIN( - 20 ) AS col2, COUNT( - - col0 ) * - SUM( DISTINCT + col2 ) AS col2 FROM tab0
----
-20
-468

skipif mysql # not compatible
query II rowsort label-6312
SELECT ALL + MIN ( - 20 ) AS col2, COUNT ( - - col0 ) * - SUM ( DISTINCT + col2 ) AS col2 FROM tab0
----
-20
-468

query II rowsort
SELECT - 85 AS col2, 69 FROM tab1
----
-85
69
-85
69
-85
69

query I rowsort
SELECT DISTINCT col0 * - - 33 FROM tab1
----
1683
2805
3003

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6316
SELECT COUNT( - - col2 ) DIV - 72 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6316
SELECT COUNT ( - - col2 ) / - 72 FROM tab0
----
0

query I rowsort
SELECT DISTINCT col1 * + col2 * - col2 + - + col1 AS col0 FROM tab0
----
-179010
-2121
-9802

onlyif mysql # DIV for integer division: 
query I rowsort label-6318
SELECT ALL - + 64 DIV 9 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ba940cd66e21e94e95aada5f28e1faf5

skipif mysql # not compatible
query I rowsort label-6318
SELECT ALL - + 64 / 9 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ba940cd66e21e94e95aada5f28e1faf5

query I rowsort
SELECT 24 + + col2 FROM tab2
----
47
64
82

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 39 + 38 + + 10 col2 FROM tab2 AS cor0
----
9

query I rowsort
SELECT ALL col2 - col0 * + col2 FROM tab2 AS cor0 WHERE ( - col2 ) NOT IN ( + 29 * + 3, 16, - 70, - - col1 + + - col2 )
----
-1035
-2520
-4292

onlyif mysql # aggregate syntax: 
query I rowsort label-6324
SELECT - - ( MIN( DISTINCT - col1 ) ) FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-6324
SELECT - - ( MIN ( DISTINCT - col1 ) ) FROM tab2 AS cor0
----
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 24 col2, - 80 + col0 + + - col1 col1 FROM tab0
----
24
-14
24
-146
24
16

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

query I rowsort
SELECT 69 * 34 FROM tab0
----
2346
2346
2346

onlyif mysql # aggregate syntax: 
query I rowsort label-6328
SELECT MAX( ALL col1 ) * 46 / - COUNT( ALL + col1 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6328
SELECT MAX ( ALL col1 ) * 46 / - COUNT ( ALL + col1 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT ALL col2 * ( col2 ) + - - ( - col1 ) + + 7 - - col1 * + - col0 FROM tab2 AS cor0
----
-1721
-1861
-3398

onlyif mysql # aggregate syntax: 
query I rowsort label-6330
SELECT DISTINCT - 65 * - COUNT( * ) * + COUNT( * ) AS col0 FROM tab0 cor0
----
585

skipif mysql # not compatible
query I rowsort label-6330
SELECT DISTINCT - 65 * - COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab0 cor0
----
585

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6331
SELECT 24 * - 50 * + CAST( + 89 AS SIGNED ) * + + col1 + + 87 + col0 AS col0, col2 AS col1 FROM tab0 AS cor0 WHERE + col0 IS NULL
----

skipif mysql # not compatible
query II rowsort label-6331
SELECT 24 * - 50 * + CAST ( + 89 AS INTEGER ) * + + col1 + + 87 + col0 AS col0, col2 AS col1 FROM tab0 AS cor0 WHERE + col0 IS NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6333
SELECT DISTINCT - CAST( - col1 AS SIGNED ) * + + col0 col0 FROM tab2 AS cor0
----
2346
4928
5025

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6333
SELECT DISTINCT - CAST ( - col1 AS INTEGER ) * + + col0 col0 FROM tab2 AS cor0
----
2346
4928
5025

query II rowsort
SELECT DISTINCT col0 AS col0, 83 AS col0 FROM tab2
----
46
83
64
83
75
83

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab1 WHERE NOT col1 + - 34 * + col1 IS NULL
----
14
47
5

query II rowsort
SELECT ALL + - col1, col0 FROM tab0 WHERE NOT NULL = col2 + + - col0
----

query I rowsort
SELECT ALL + 6 * - col2 * + col2 FROM tab0
----
-13254
-58806
-600

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6340
SELECT + 61 DIV col2 + + 68 + - - 98 FROM tab1 AS cor0
----
166
166
167

skipif mysql # not compatible
query I rowsort label-6340
SELECT + 61 / col2 + + 68 + - - 98 FROM tab1 AS cor0
----
166
166
167

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6341
SELECT + ( SUM( - - 46 ) ) AS col2, + CAST( NULL AS SIGNED ) - + + 0 FROM tab0 AS cor0
----
138
NULL

skipif mysql # not compatible
query II rowsort label-6341
SELECT + ( SUM ( - - 46 ) ) AS col2, + CAST ( NULL AS INTEGER ) - + + 0 FROM tab0 AS cor0
----
138
NULL

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

query I rowsort
SELECT - 34 - - col2 FROM tab2
----
-11
24
6

query I rowsort
SELECT ALL ( 97 ) - 63 AS col2 FROM tab0
----
34
34
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6345
SELECT DISTINCT + - COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( 53 ) * - 57 * + CAST( NULL AS SIGNED ) IS NOT NULL
----
-9

skipif mysql # not compatible
query I rowsort label-6345
SELECT DISTINCT + - COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( 53 ) * - 57 * + CAST ( NULL AS INTEGER ) IS NOT NULL
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-6346
SELECT ALL 11 DIV col1 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6346
SELECT ALL 11 / col1 AS col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6347
SELECT DISTINCT + COUNT( ALL + 4 ) AS col2 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-6347
SELECT DISTINCT + COUNT ( ALL + 4 ) AS col2 FROM tab1 cor0
----
3

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

skipif mysql # not compatible
query I rowsort label-6348
SELECT + col1 / + + col2 AS col2 FROM tab1 AS cor0
----
0
0
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6350
SELECT - MIN( DISTINCT + 90 ) AS col0 FROM tab0 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-6350
SELECT - MIN ( DISTINCT + 90 ) AS col0 FROM tab0 AS cor0
----
-90

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

query II rowsort
SELECT ALL 80 AS col1, - col2 FROM tab2 AS cor0
----
80
-23
80
-40
80
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-6353
SELECT ALL SUM( DISTINCT + 74 ) FROM tab0
----
74

skipif mysql # not compatible
query I rowsort label-6353
SELECT ALL SUM ( DISTINCT + 74 ) FROM tab0
----
74

query I rowsort
SELECT ALL 80 AS col0 FROM tab2 WHERE NOT + col2 = - - 13
----
80
80
80

query I rowsort
SELECT - 12 + - - col1 AS col0 FROM tab0
----
-11
69
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - 62 + - col2 col2 FROM tab1
----
3599
4148
5856

onlyif mysql # aggregate syntax: 
query I rowsort label-6357
SELECT ALL + COUNT( 55 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6357
SELECT ALL + COUNT ( 55 ) FROM tab2
----
3

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

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

query I rowsort
SELECT ALL - ( + + 61 ) + + + col2 FROM tab1 AS cor0
----
-2
35
7

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL < + col2 * + 82 * col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 67 * - ( col0 ) IS NULL
----

query I rowsort
SELECT DISTINCT + col2 * - col1 + ( + 18 ) + 94 * 79 * col1 AS col1 FROM tab1 AS cor0
----
102638
345844
36853

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL > ( - col2 * 0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - col0 + + - 80 col0 FROM tab0
----
-14
-146
-176

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6368
SELECT DISTINCT + COUNT( 71 ) * + SUM( + col0 ) AS col2 FROM tab1
----
681

skipif mysql # not compatible
query I rowsort label-6368
SELECT DISTINCT + COUNT ( 71 ) * + SUM ( + col0 ) AS col2 FROM tab1
----
681

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

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

query I rowsort
SELECT DISTINCT 86 * + + col1 + + 29 + + col0 AS col2 FROM tab2
----
4461
5866
6715

query I rowsort
SELECT + col1 AS col1 FROM tab1 WHERE - 18 IS NULL
----

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 45 + + + 27 > NULL
----

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

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

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

query I rowsort
SELECT DISTINCT - ( 65 ) FROM tab0 AS cor0
----
-65

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

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

query I rowsort
SELECT DISTINCT col1 * + col0 * - + col2 * - 85 FROM tab2
----
16755200
24773250
4586430

query I rowsort
SELECT - ( 20 ) * + ( + - col1 ) AS col2 FROM tab2
----
1020
1340
1540

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6381
SELECT CAST( - col1 AS SIGNED ) DIV 18 FROM tab0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-6381
SELECT CAST ( - col1 AS INTEGER ) / 18 FROM tab0
----
-1
-4
0

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6384
SELECT + SUM( ALL + - 19 ) AS col0 FROM tab2 WHERE NOT - + 29 * - CAST( col1 AS SIGNED ) + - col2 IS NULL
----
-57

skipif mysql # not compatible
query I rowsort label-6384
SELECT + SUM ( ALL + - 19 ) AS col0 FROM tab2 WHERE NOT - + 29 * - CAST ( col1 AS INTEGER ) + - col2 IS NULL
----
-57

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6386
SELECT ALL + MAX( DISTINCT + col0 ) * + 5 FROM tab0 AS cor0
----
485

skipif mysql # not compatible
query I rowsort label-6386
SELECT ALL + MAX ( DISTINCT + col0 ) * + 5 FROM tab0 AS cor0
----
485

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

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

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

query I rowsort
SELECT DISTINCT + + 80 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
80

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6392
SELECT 97 + - 47 DIV + 78 FROM tab1 AS cor0
----
97
97
97

skipif mysql # not compatible
query I rowsort label-6392
SELECT 97 + - 47 / + 78 FROM tab1 AS cor0
----
97
97
97

query I rowsort
SELECT + 46 AS col2 FROM tab1 cor0 WHERE col1 * - 10 BETWEEN NULL AND 34
----

query I rowsort
SELECT ALL + 71 + - - ( + + col1 ) FROM tab0 AS cor0
----
152
72
92

query I rowsort
SELECT DISTINCT + + 45 + - 81 * + col1 FROM tab1 AS cor0
----
-1089
-360
-3762

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 + + col2 col2 FROM tab2 cor0
----
116
46
80

onlyif mysql # aggregate syntax: 
query I rowsort label-6398
SELECT - COUNT( * ) + - 7 FROM tab1 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-6398
SELECT - COUNT ( * ) + - 7 FROM tab1 AS cor0
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6399
SELECT + CAST( 5 AS SIGNED ) + + col2 * - + col0 FROM tab2 AS cor0
----
-1053
-2555
-4345

skipif mysql # not compatible
query I rowsort label-6399
SELECT + CAST ( 5 AS INTEGER ) + + col2 * - + col0 FROM tab2 AS cor0
----
-1053
-2555
-4345

query II rowsort
SELECT 84 + - ( 49 ) AS col0, + col2 + - col1 AS col0 FROM tab1 AS cor0
----
35
21
35
54
35
82

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

query II rowsort
SELECT DISTINCT + 29 + - + col1 * - + 27 AS col1, 2 FROM tab2
----
1406
2
1838
2
2108
2

onlyif mysql # aggregate syntax: 
query II rowsort label-6403
SELECT + 50, COUNT( * ) AS col2 FROM tab2 WHERE - col2 IS NULL
----
50
0

skipif mysql # not compatible
query II rowsort label-6403
SELECT + 50, COUNT ( * ) AS col2 FROM tab2 WHERE - col2 IS NULL
----
50
0

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

skipif mysql # not compatible
query II rowsort label-6404
SELECT ALL COUNT ( * ) AS col2, + COUNT ( * ) AS col1 FROM tab1
----
3
3

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6406
SELECT ALL col1 + - + col1 DIV + col0 FROM tab2 AS cor0
----
50
67
76

skipif mysql # not compatible
query I rowsort label-6406
SELECT ALL col1 + - + col1 / + col0 FROM tab2 AS cor0
----
50
67
76

query I rowsort
SELECT col0 * col2 - + col0 FROM tab0 AS cor0
----
690
783
9506

onlyif mysql # DIV for integer division: 
query I rowsort label-6408
SELECT DISTINCT col1 DIV - ( + col2 ) FROM tab2
----
-1
-2

skipif mysql # not compatible
query I rowsort label-6408
SELECT DISTINCT col1 / - ( + col2 ) FROM tab2
----
-1
-2

query I rowsort
SELECT + + 32 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d30a2acbf33c88274474306936d3227b

query I rowsort
SELECT - - 87 * + + col0 AS col1 FROM tab2 cor0
----
4002
5568
6525

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6411
SELECT ALL + col0 / 83, - col2 col0 FROM tab2 AS cor0
----
0
-23
0
-40
0
-58

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6413
SELECT + SUM( + col0 ) col0, COUNT( * ) col0 FROM tab2 cor0
----
185
3

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + - 34 * - col1 col1 FROM tab1 AS cor0
----
10030
108664
45696

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6415
SELECT DISTINCT + 96 * + COUNT( * ) * - CAST( NULL AS SIGNED ) * + - ( + 79 ) AS col2, - COUNT( * ) FROM tab1
----
NULL
-3

skipif mysql # not compatible
query II rowsort label-6415
SELECT DISTINCT + 96 * + COUNT ( * ) * - CAST ( NULL AS INTEGER ) * + - ( + 79 ) AS col2, - COUNT ( * ) FROM tab1
----
NULL
-3

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6418
SELECT ALL 98 DIV - + col1 AS col2 FROM tab0
----
-1
-4
-98

skipif mysql # not compatible
query I rowsort label-6418
SELECT ALL 98 / - + col1 AS col2 FROM tab0
----
-1
-4
-98

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

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

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

skipif mysql # not compatible
query I rowsort label-6421
SELECT DISTINCT MIN ( - 37 ) AS col2 FROM tab1
----
-37

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

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

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

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

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

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

query I rowsort
SELECT ALL - 63 + + + col1 AS col2 FROM tab1 cor0
----
-16
-49
-58

query I rowsort
SELECT + ( 26 ) FROM tab0 cor0
----
26
26
26

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

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

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

query I rowsort
SELECT - + 46 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 491ad1fb79fec0b5715ea54949d1aa2d

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6433
SELECT DISTINCT + MAX( ALL col2 ) + 62 AS col0 FROM tab1 cor0
----
158

skipif mysql # not compatible
query I rowsort label-6433
SELECT DISTINCT + MAX ( ALL col2 ) + 62 AS col0 FROM tab1 cor0
----
158

query I rowsort
SELECT ALL + col0 + - - col1 AS col1 FROM tab1 AS cor0
----
138
65
90

query I rowsort
SELECT ALL + - col0 - col2 AS col1 FROM tab0 AS cor0
----
-196
-62
-97

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6437
SELECT - col2 DIV - - col0 - - 63 FROM tab0
----
60
62
63

skipif mysql # not compatible
query I rowsort label-6437
SELECT - col2 / - - col0 - - 63 FROM tab0
----
60
62
63

query I rowsort
SELECT + 86 - + - ( + col1 ) + - 70 AS col0 FROM tab1
----
21
30
63

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6440
SELECT + col1 DIV - - 74 + 14 FROM tab0
----
14
14
15

skipif mysql # not compatible
query I rowsort label-6440
SELECT + col1 / - - 74 + 14 FROM tab0
----
14
14
15

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6442
SELECT DISTINCT - MIN( ALL + + col1 ) AS col2 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-6442
SELECT DISTINCT - MIN ( ALL + + col1 ) AS col2 FROM tab2
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-6443
SELECT col1 DIV 31 + - col2 AS col0 FROM tab2
----
-22
-38
-56

skipif mysql # not compatible
query I rowsort label-6443
SELECT col1 / 31 + - col2 AS col0 FROM tab2
----
-22
-38
-56

query II rowsort
SELECT col2 * - 83, col0 AS col0 FROM tab0 AS cor0
----
-3901
15
-8217
97
-830
87

query I rowsort
SELECT DISTINCT + 21 * + col2 AS col0 FROM tab2 cor0
----
1218
483
840

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6449
SELECT DISTINCT + - COUNT( ALL + col0 ) AS col2 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6449
SELECT DISTINCT + - COUNT ( ALL + col0 ) AS col2 FROM tab1 cor0
----
-3

query I rowsort
SELECT DISTINCT 29 * + 7 - - col0 FROM tab1 AS cor0
----
254
288
294

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

query I rowsort
SELECT - + col2 * - col2 + - + 63 FROM tab1 AS cor0
----
3418
4561
9153

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6454
SELECT + 77 DIV ( col1 ) AS col0 FROM tab0
----
0
3
77

skipif mysql # not compatible
query I rowsort label-6454
SELECT + 77 / ( col1 ) AS col0 FROM tab0
----
0
3
77

query I rowsort
SELECT ALL ( + + 74 ) * col0 + + + col2 FROM tab0
----
1157
6448
7277

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

query I rowsort
SELECT DISTINCT - 98 FROM tab0 WHERE NULL IS NOT NULL
----

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

skipif mysql # not compatible
query I rowsort label-6458
SELECT ALL COUNT ( + + 37 ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6459
SELECT + COUNT( * ) * + + SUM( DISTINCT + + col2 ) col0 FROM tab0 WHERE NOT NULL > NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6459
SELECT + COUNT ( * ) * + + SUM ( DISTINCT + + col2 ) col0 FROM tab0 WHERE NOT NULL > NULL
----
NULL

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

query I rowsort
SELECT DISTINCT col0 + - col1 + ( + col2 ) FROM tab2
----
18
27
66

query I rowsort
SELECT DISTINCT - + 34 + + + 9 AS col1 FROM tab0 AS cor0
----
-25

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6464
SELECT - - 52 + - COUNT( + col0 ) + - COUNT( * ) FROM tab1 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-6464
SELECT - - 52 + - COUNT ( + col0 ) + - COUNT ( * ) FROM tab1 AS cor0
----
46

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

query I rowsort
SELECT + col0 + + + 6 FROM tab0 AS cor0
----
103
21
93

onlyif mysql # aggregate syntax: 
query I rowsort label-6467
SELECT + + MIN( ALL col1 ) + + 19 col2 FROM tab1 AS cor0
----
24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6467
SELECT + + MIN ( ALL col1 ) + + 19 col2 FROM tab1 AS cor0
----
24

query I rowsort
SELECT DISTINCT + - col1 + col2 + 60 FROM tab2 AS cor0
----
23
32
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6469
SELECT ALL ( - 89 ) + - - COUNT( * ) * - 67 + 27 * + ( + - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6469
SELECT ALL ( - 89 ) + - - COUNT ( * ) * - 67 + 27 * + ( + - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col2 + - col1 * + - 42 AS col0 FROM tab2 cor0
----
2119
2756
3194

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6472
SELECT + SUM( - 97 ) AS col0 FROM tab2
----
-291

skipif mysql # not compatible
query I rowsort label-6472
SELECT + SUM ( - 97 ) AS col0 FROM tab2
----
-291

query II rowsort
SELECT col0 AS col1, col0 AS col0 FROM tab0 WHERE - 31 < 3 * - 64
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6474
SELECT + + COUNT( * ) FROM tab0 WHERE + 64 + - - col0 + 86 > + + CAST( NULL AS DECIMAL )
----
0

skipif mysql # not compatible
query I rowsort label-6474
SELECT + + COUNT ( * ) FROM tab0 WHERE + 64 + - - col0 + 86 > + + CAST ( NULL AS REAL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6475
SELECT DISTINCT + COUNT( DISTINCT + 86 ) col2 FROM tab0
----
1

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6477
SELECT col1, col1 DIV - col1 * - 1 FROM tab0
----
1
1
21
1
81
1

skipif mysql # not compatible
query II rowsort label-6477
SELECT col1, col1 / - col1 * - 1 FROM tab0
----
1
1
21
1
81
1

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

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

query II rowsort
SELECT col1 AS col2, - 50 + - col1 AS col2 FROM tab1 cor0
----
14
-64
47
-97
5
-55

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6482
SELECT DISTINCT + COUNT( + col0 ) * + 77 FROM tab2
----
231

skipif mysql # not compatible
query I rowsort label-6482
SELECT DISTINCT + COUNT ( + col0 ) * + 77 FROM tab2
----
231

query I rowsort
SELECT - col0 * - 70 AS col0 FROM tab1
----
3570
5950
6370

query I rowsort
SELECT ALL + col1 FROM tab1 WHERE + - col1 = NULL
----

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

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

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

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

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

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

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

query I rowsort
SELECT ALL - col0 * - + 8 AS col0 FROM tab1
----
408
680
728

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

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

query I rowsort
SELECT col2 * + col1 * - col1 AS col0 FROM tab0
----
-308367
-4410
-99

query I rowsort
SELECT DISTINCT + col1 * + + 72 * + + col1 FROM tab0
----
31752
472392
72

query II rowsort
SELECT DISTINCT - + 0 + 10 + + 73 AS col1, 0 FROM tab1 AS cor0
----
83
0

query I rowsort
SELECT - col2 + - 32 AS col2 FROM tab2 cor0
----
-55
-72
-90

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6497
SELECT + 29 + + 59 + + MIN( DISTINCT - col0 ) AS col2 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-6497
SELECT + 29 + + 59 + + MIN ( DISTINCT - col0 ) AS col2 FROM tab0 AS cor0
----
-9

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-6498
SELECT * FROM tab2 WHERE NOT ( ( CAST( NULL AS DECIMAL ) ) + + col1 ) NOT IN ( + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-6498
SELECT * FROM tab2 WHERE NOT ( ( CAST ( NULL AS REAL ) ) + + col1 ) NOT IN ( + CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT ALL 61 * col0 AS col0 FROM tab1
----
3111
5185
5551

onlyif mysql # DIV for integer division: 
query I rowsort label-6500
SELECT ALL - col2 DIV - 8 FROM tab1
----
12
7
8

skipif mysql # not compatible
query I rowsort label-6500
SELECT ALL - col2 / - 8 FROM tab1
----
12
7
8

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

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

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

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

query I rowsort
SELECT col0 * - col0 - col2 AS col0 FROM tab2
----
-2139
-4136
-5683

onlyif mysql # aggregate syntax: 
query I rowsort label-6505
SELECT DISTINCT + MAX( ALL - 92 ) - - 31 FROM tab1 WHERE NOT ( - col2 * + 23 ) >= + ( col1 )
----
-61

skipif mysql # not compatible
query I rowsort label-6505
SELECT DISTINCT + MAX ( ALL - 92 ) - - 31 FROM tab1 WHERE NOT ( - col2 * + 23 ) >= + ( col1 )
----
-61

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab1 WHERE NOT 33 IS NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6507
SELECT ALL COUNT( + col2 ) FROM tab1 WHERE NOT ( NULL ) <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-6507
SELECT ALL COUNT ( + col2 ) FROM tab1 WHERE NOT ( NULL ) <> NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6508
SELECT ALL 31 * + MIN( DISTINCT 73 ) AS col2 FROM tab2
----
2263

skipif mysql # not compatible
query I rowsort label-6508
SELECT ALL 31 * + MIN ( DISTINCT 73 ) AS col2 FROM tab2
----
2263

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6512
SELECT ALL + MIN( DISTINCT 13 ) * 35 AS col0 FROM tab1
----
455

skipif mysql # not compatible
query I rowsort label-6512
SELECT ALL + MIN ( DISTINCT 13 ) * 35 AS col0 FROM tab1
----
455

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6513
SELECT * FROM tab2 WHERE NOT CAST( NULL AS SIGNED ) BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-6513
SELECT * FROM tab2 WHERE NOT CAST ( NULL AS INTEGER ) BETWEEN NULL AND NULL
----

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - ( col1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 28 AS col2 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6517
SELECT - MIN( ALL ( - 41 ) ) + - 19 FROM tab0
----
22

skipif mysql # not compatible
query I rowsort label-6517
SELECT - MIN ( ALL ( - 41 ) ) + - 19 FROM tab0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-6518
SELECT ALL + SUM( ALL 73 ) FROM tab1
----
219

skipif mysql # not compatible
query I rowsort label-6518
SELECT ALL + SUM ( ALL 73 ) FROM tab1
----
219

onlyif mysql # aggregate syntax: 
query I rowsort label-6519
SELECT DISTINCT + 96 * - COUNT( * ) FROM tab1 WHERE ( ( - col2 ) * col1 ) BETWEEN 87 AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-6519
SELECT DISTINCT + 96 * - COUNT ( * ) FROM tab1 WHERE ( ( - col2 ) * col1 ) BETWEEN 87 AND ( NULL )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + 47 col0 FROM tab0
----
146
57
94

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 NOT IN ( col2 * col1 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6522
SELECT ALL col2 * + CAST( - ( col1 ) * 57 AS DECIMAL ) AS col1 FROM tab1 WHERE NOT NULL < ( col1 * - col1 )
----

skipif mysql # not compatible
query I rowsort label-6522
SELECT ALL col2 * + CAST ( - ( col1 ) * 57 AS REAL ) AS col1 FROM tab1 WHERE NOT NULL < ( col1 * - col1 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6524
SELECT ALL MIN( DISTINCT + col1 ) FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-6524
SELECT ALL MIN ( DISTINCT + col1 ) FROM tab1 AS cor0
----
5

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

query I rowsort
SELECT ALL + col0 FROM tab2 AS cor0 WHERE NOT ( col2 ) NOT BETWEEN ( + 9 + col0 ) AND + 10
----

query I rowsort
SELECT - 98 * 83 AS col1 FROM tab0 cor0
----
-8134
-8134
-8134

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

query I rowsort
SELECT + 65 * - 25 AS col0 FROM tab0 AS cor0
----
-1625
-1625
-1625

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6531
SELECT ALL MAX( 19 ) FROM tab1
----
19

skipif mysql # not compatible
query I rowsort label-6531
SELECT ALL MAX ( 19 ) FROM tab1
----
19

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6533
SELECT 20 + COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1
----
29

skipif mysql # not compatible
query I rowsort label-6533
SELECT 20 + COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1
----
29

query I rowsort
SELECT DISTINCT 75 * col1 FROM tab2 AS cor0 WHERE - 34 + 82 NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT - + 70 AS col2 FROM tab1 cor0
----
-70
-70
-70

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6537
SELECT DISTINCT - COUNT( * ) * - CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0 WHERE col2 * - col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6537
SELECT DISTINCT - COUNT ( * ) * - CAST ( NULL AS REAL ) AS col2 FROM tab0 AS cor0 WHERE col2 * - col1 IS NULL
----
NULL

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

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

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

query I rowsort
SELECT + col0 + - 21 * + 68 FROM tab2 AS cor0
----
-1353
-1364
-1382

onlyif mysql # aggregate syntax: 
query I rowsort label-6541
SELECT - COUNT( * ) + SUM( DISTINCT - 40 + + col2 ) FROM tab2 cor0
----
-2

skipif mysql # not compatible
query I rowsort label-6541
SELECT - COUNT ( * ) + SUM ( DISTINCT - 40 + + col2 ) FROM tab2 cor0
----
-2

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

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

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

query I rowsort
SELECT 26 + - + 65 FROM tab0
----
-39
-39
-39

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

query I rowsort
SELECT 43 + + col2 AS col0 FROM tab1
----
102
111
139

query III rowsort
SELECT * FROM tab1 WHERE col0 BETWEEN ( + 86 * col0 ) AND + col0
----

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

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

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

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

query I rowsort
SELECT DISTINCT col2 FROM tab0 AS cor0 WHERE ( NULL ) <> NULL
----

query I rowsort
SELECT 93 + col2 * + col0 AS col1 FROM tab2 WHERE NULL <= - - col2
----

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6555
SELECT DISTINCT 61 AS col0, - SUM( ALL col1 ) AS col1 FROM tab1
----
61
-66

skipif mysql # not compatible
query II rowsort label-6555
SELECT DISTINCT 61 AS col0, - SUM ( ALL col1 ) AS col1 FROM tab1
----
61
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-6556
SELECT DISTINCT + COUNT( * ) * - 17 col1 FROM tab2
----
-51

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 56 + - - col0 / ( - col1 + - ( col1 ) ) IS NULL
----

query I rowsort
SELECT 95 + - col1 + + col2 * 45 AS col0 FROM tab1 AS cor0
----
2745
3108
4401

onlyif mysql # aggregate syntax: 
query I rowsort label-6559
SELECT + ( - MIN( col2 ) ) + ( + 56 ) AS col2 FROM tab0 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-6559
SELECT + ( - MIN ( col2 ) ) + ( + 56 ) AS col2 FROM tab0 AS cor0
----
46

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

query I rowsort
SELECT ALL + ( col0 ) + + + col1 FROM tab2 AS cor0
----
141
142
97

onlyif mysql # DIV for integer division: 
query I rowsort label-6562
SELECT - 58 DIV + + col1 FROM tab0 AS cor0
----
-2
-58
0

skipif mysql # not compatible
query I rowsort label-6562
SELECT - 58 / + + col1 FROM tab0 AS cor0
----
-2
-58
0

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

skipif mysql # not compatible
query I rowsort label-6563
SELECT - 60 / col0 FROM tab1 AS cor0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6564
SELECT ALL + 58 * - + COUNT( * ) FROM tab2 AS cor0
----
-174

skipif mysql # not compatible
query I rowsort label-6564
SELECT ALL + 58 * - + COUNT ( * ) FROM tab2 AS cor0
----
-174

onlyif mysql # aggregate syntax: 
query I rowsort label-6565
SELECT MIN( - 42 ) AS col1 FROM tab0 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-6565
SELECT MIN ( - 42 ) AS col1 FROM tab0 AS cor0
----
-42

query I rowsort
SELECT ALL col0 * 88 AS col2 FROM tab0
----
1320
7656
8536

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6567
SELECT * FROM tab2 WHERE NOT NULL IN ( + + CAST( + ( 53 ) AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-6567
SELECT * FROM tab2 WHERE NOT NULL IN ( + + CAST ( + ( 53 ) AS REAL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6568
SELECT DISTINCT COUNT( * ) * - + 41 AS col2 FROM tab2
----
-123

skipif mysql # not compatible
query I rowsort label-6568
SELECT DISTINCT COUNT ( * ) * - + 41 AS col2 FROM tab2
----
-123

onlyif mysql # aggregate syntax: 
query I rowsort label-6569
SELECT - COUNT( * ) AS col2 FROM tab1 WHERE NOT + + 52 + + col0 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-6569
SELECT - COUNT ( * ) AS col2 FROM tab1 WHERE NOT + + 52 + + col0 IS NULL
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-6570
SELECT ALL ( - col1 ) DIV - 12 AS col0 FROM tab1
----
0
1
3

skipif mysql # not compatible
query I rowsort label-6570
SELECT ALL ( - col1 ) / - 12 AS col0 FROM tab1
----
0
1
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6571
SELECT + col1 - - CAST( col1 - col2 AS SIGNED ) * - col0 AS col0 FROM tab0 WHERE NOT + col0 IS NULL
----
-429
-936
9507

skipif mysql # not compatible
query I rowsort label-6571
SELECT + col1 - - CAST ( col1 - col2 AS INTEGER ) * - col0 AS col0 FROM tab0 WHERE NOT + col0 IS NULL
----
-429
-936
9507

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL BETWEEN + 4 AND NULL
----

query I rowsort
SELECT 18 * + 15 FROM tab0 AS cor0
----
270
270
270

query I rowsort
SELECT - col2 * - col1 * 89 * - col1 * col1 FROM tab1 AS cor0
----
-23444736
-628336796
-656375

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6575
SELECT - CAST( NULL AS SIGNED ) * - 69, + COUNT( * ) AS col2 FROM tab1 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-6575
SELECT - CAST ( NULL AS INTEGER ) * - 69, + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
NULL
3

onlyif mysql # DIV for integer division: 
query I rowsort label-6576
SELECT ALL 57 + + + 78 DIV 19 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
61
61
61

skipif mysql # not compatible
query I rowsort label-6576
SELECT ALL 57 + + + 78 / 19 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
61
61
61

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6578
SELECT - MIN( DISTINCT ( col0 ) ) * 24 + + - 15 AS col0 FROM tab0
----
-375

skipif mysql # not compatible
query I rowsort label-6578
SELECT - MIN ( DISTINCT ( col0 ) ) * 24 + + - 15 AS col0 FROM tab0
----
-375

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE col1 / - - col1 >= ( - col0 - + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6580
SELECT DISTINCT COUNT( * ) + - 26 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-6580
SELECT DISTINCT COUNT ( * ) + - 26 FROM tab2 AS cor0
----
-23

query I rowsort
SELECT ALL + col1 AS col1 FROM tab0 AS cor0 WHERE NULL NOT IN ( 50 * col2 * + - 28 )
----

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

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

query I rowsort
SELECT - + col0 AS col0 FROM tab1 cor0 WHERE NULL <= + col2 * - 84
----

query I rowsort
SELECT ALL + ( - 53 ) + col2 AS col2 FROM tab1 cor0
----
15
43
6

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - col1 + + + col2 * 8 ) IS NULL
----

query I rowsort
SELECT ALL + col0 + - 50 FROM tab0 cor0
----
-35
37
47

query I rowsort
SELECT ALL + 30 + col1 AS col0 FROM tab0 AS cor0
----
111
31
51

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6589
SELECT - 14 * - - COUNT( * ) FROM tab2
----
-42

skipif mysql # not compatible
query I rowsort label-6589
SELECT - 14 * - - COUNT ( * ) FROM tab2
----
-42

query I rowsort
SELECT DISTINCT ( col2 ) + + col1 AS col2 FROM tab0 WHERE NOT + - 70 * 73 * - col0 < ( + col1 )
----
100
128
31

onlyif mysql # aggregate syntax: 
query I rowsort label-6591
SELECT - COUNT( * ) * - MIN( + 76 ) AS col1 FROM tab0
----
228

skipif mysql # not compatible
query I rowsort label-6591
SELECT - COUNT ( * ) * - MIN ( + 76 ) AS col1 FROM tab0
----
228

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL ) IN ( col2 * + ( - + col2 ) )
----

query I rowsort
SELECT + col1 - - 44 FROM tab0
----
125
45
65

query I rowsort
SELECT ALL 81 AS col0 FROM tab2 WHERE NOT 46 <= + 5
----
81
81
81

onlyif mysql # DIV for integer division: 
query I rowsort label-6595
SELECT - col2 * 45 * + 30 + col2 + - + 34 DIV + col1 * + col0 AS col0 FROM tab2
----
-31027
-53960
-78242

skipif mysql # not compatible
query I rowsort label-6595
SELECT - col2 * 45 * + 30 + col2 + - + 34 / + col1 * + col0 AS col0 FROM tab2
----
-31027
-53960
-78242

onlyif mysql # DIV for integer division: 
query I rowsort label-6596
SELECT - col0 + + - col2 DIV + col0 FROM tab0
----
-18
-87
-98

skipif mysql # not compatible
query I rowsort label-6596
SELECT - col0 + + - col2 / + col0 FROM tab0
----
-18
-87
-98

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

query I rowsort
SELECT ALL col0 - + - 48 + - col2 FROM tab1
----
3
71
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6599
SELECT - CAST( - + 64 AS SIGNED ) * - col2 * - col1 FROM tab0 AS cor0
----
13440
243648
6336

skipif mysql # not compatible
query I rowsort label-6599
SELECT - CAST ( - + 64 AS INTEGER ) * - col2 * - col1 FROM tab0 AS cor0
----
13440
243648
6336

query I rowsort
SELECT ALL - col2 * - + col2 * + col0 FROM tab2 AS cor0
----
102400
24334
252300

query I rowsort
SELECT - 78 * - - col2 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT 15 * 85 * - 8 - - 58 FROM tab1 AS cor0
----
-10142

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6603
SELECT DISTINCT - ( + ( - CAST( MIN( DISTINCT - + 98 ) AS SIGNED ) ) ) * + MIN( - - col2 ) AS col2 FROM tab1
----
-5782

skipif mysql # not compatible
query I rowsort label-6603
SELECT DISTINCT - ( + ( - CAST ( MIN ( DISTINCT - + 98 ) AS INTEGER ) ) ) * + MIN ( - - col2 ) AS col2 FROM tab1
----
-5782

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6604
SELECT ALL SUM( ALL col2 ) DIV - COUNT( * ) col2 FROM tab0
----
-52

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6604
SELECT ALL SUM ( ALL col2 ) / - COUNT ( * ) col2 FROM tab0
----
-52

query III rowsort
SELECT ALL * FROM tab2 WHERE ( + col1 ) NOT IN ( ( - - ( 67 ) ) )
----
46
51
23
64
77
40

onlyif mysql # aggregate syntax: 
query II rowsort label-6606
SELECT - COUNT( * ) AS col1, 16 + - - COUNT( * ) FROM tab1
----
-3
19

skipif mysql # not compatible
query II rowsort label-6606
SELECT - COUNT ( * ) AS col1, 16 + - - COUNT ( * ) FROM tab1
----
-3
19

onlyif mysql # aggregate syntax: 
query I rowsort label-6607
SELECT 13 * + COUNT( * ) * - + 28 col1 FROM tab1 AS cor0
----
-1092

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6609
SELECT DISTINCT col0 DIV - ( + col1 ) AS col2 FROM tab2 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-6609
SELECT DISTINCT col0 / - ( + col1 ) AS col2 FROM tab2 AS cor0
----
-1
0

query I rowsort
SELECT ALL - 62 + - + col0 + + 79 FROM tab2 AS cor0
----
-29
-47
-58

query I rowsort
SELECT - col1 * + - 81 + - - col0 FROM tab2 AS cor0
----
4177
5502
6301

query I rowsort
SELECT + col1 + + ( + 71 ) FROM tab0 AS cor0
----
152
72
92

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

query I rowsort
SELECT ( 34 ) * - col1 + - ( + - col2 ) * - col2 + - + 63 FROM tab2
----
-2326
-4281
-5705

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6615
SELECT DISTINCT COUNT( * ) DIV - 15 - - 58 + + 35 AS col2 FROM tab0
----
93

skipif mysql # not compatible
query I rowsort label-6615
SELECT DISTINCT COUNT ( * ) / - 15 - - 58 + + 35 AS col2 FROM tab0
----
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 23 + + - 92 * + col1, col2 col0 FROM tab0
----
-115
99
-1955
10
-7475
47

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN + + col0 * col2 / col2 + - 55 * - - 40 AND NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6620
SELECT ( - COUNT( ( + 65 ) ) ) FROM tab1 WHERE col1 < - 88 + col2
----
0

skipif mysql # not compatible
query I rowsort label-6620
SELECT ( - COUNT ( ( + 65 ) ) ) FROM tab1 WHERE col1 < - 88 + col2
----
0

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6622
SELECT + CAST( NULL AS SIGNED ) * - 52 - - COUNT( * ) AS col1, - 66 + - COUNT( * ) col1 FROM tab1 AS cor0
----
NULL
-69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6622
SELECT + CAST ( NULL AS INTEGER ) * - 52 - - COUNT ( * ) AS col1, - 66 + - COUNT ( * ) col1 FROM tab1 AS cor0
----
NULL
-69

query I rowsort
SELECT DISTINCT col0 * - ( ( + 98 ) ) FROM tab0
----
-1470
-8526
-9506

query II rowsort
SELECT DISTINCT 45, - col1 AS col2 FROM tab1
----
45
-14
45
-47
45
-5

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6629
SELECT + + COUNT( - col1 ) * + 51 FROM tab2 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-6629
SELECT + + COUNT ( - col1 ) * + 51 FROM tab2 AS cor0
----
153

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

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

query I rowsort
SELECT - + col0 * + + 99 FROM tab2 cor0
----
-4554
-6336
-7425

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6632
SELECT DISTINCT - 49 * - CAST( - col1 AS SIGNED ) * + col0 + + - col2 col2 FROM tab1 AS cor0
----
-20884
-209641
-35082

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6632
SELECT DISTINCT - 49 * - CAST ( - col1 AS INTEGER ) * + col0 + + - col2 col2 FROM tab1 AS cor0
----
-20884
-209641
-35082

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

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

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

query I rowsort
SELECT DISTINCT + + 97 FROM tab2 WHERE + col0 / - col1 + - col2 + - col2 IS NOT NULL
----
97

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6637
SELECT DISTINCT CAST( 41 AS SIGNED ) FROM tab2, tab2 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-6637
SELECT DISTINCT CAST ( 41 AS INTEGER ) FROM tab2, tab2 AS cor0
----
41

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

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

query I rowsort
SELECT ALL 13 + - 37 AS col1 FROM tab1
----
-24
-24
-24

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab2 WHERE + col0 <> + col2
----
23
40
58

query I rowsort
SELECT DISTINCT 75 FROM tab1 WHERE - + col0 >= ( 17 * - col1 * col1 )
----
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 77 * + - col2 * - - 9 * + col2 * + + col0 * + - ( 30 ) * + - 48 * 54 col1 FROM tab0 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT + ( - 13 ) AS col1 FROM tab1 cor0
----
-13
-13
-13

query I rowsort
SELECT + 43 * + col2 * col0 AS col2 FROM tab1 AS cor0
----
210528
215645
266084

onlyif mysql # aggregate syntax: 
query I rowsort label-6646
SELECT + COUNT( DISTINCT + 11 ) * - 89 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-89

skipif mysql # not compatible
query I rowsort label-6646
SELECT + COUNT ( DISTINCT + 11 ) * - 89 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-89

query I rowsort
SELECT col0 + + 59 + + 58 - 11 AS col2 FROM tab0
----
121
193
203

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6649
SELECT DISTINCT + + col1 + - col0 * col0 DIV + col2 - 71 AS col0 FROM tab1 AS cor0
----
-145
-188
-84

skipif mysql # not compatible
query I rowsort label-6649
SELECT DISTINCT + + col1 + - col0 * col0 / + col2 - 71 AS col0 FROM tab1 AS cor0
----
-145
-188
-84

query III rowsort
SELECT * FROM tab1 cor0 WHERE + 0 * - 76 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6651
SELECT DISTINCT col2 * - col1 * col2 + + - col1 + + col0 / + col2 * + ( col0 ) * + CAST( NULL AS DECIMAL ) + + - col0 + - col2 AS col2, - 60 AS col1 FROM tab2 cor0
----
NULL
-60

skipif mysql # not compatible
query II rowsort label-6651
SELECT DISTINCT col2 * - col1 * col2 + + - col1 + + col0 / + col2 * + ( col0 ) * + CAST ( NULL AS REAL ) + + - col0 + - col2 AS col2, - 60 AS col1 FROM tab2 cor0
----
NULL
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-6652
SELECT COUNT( * ) * - 97 * - COUNT( * ) - + - SUM( + + 72 ) FROM tab0
----
1089

skipif mysql # not compatible
query I rowsort label-6652
SELECT COUNT ( * ) * - 97 * - COUNT ( * ) - + - SUM ( + + 72 ) FROM tab0
----
1089

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

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

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

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

query I rowsort
SELECT col1 + + + 37 FROM tab0
----
118
38
58

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6656
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col2, 49, + col1 + - 30 + - + col0 + CAST( NULL AS DECIMAL ) * + + 66 / - 82 )
----
0

skipif mysql # not compatible
query I rowsort label-6656
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col2, 49, + col1 + - 30 + - + col0 + CAST ( NULL AS REAL ) * + + 66 / - 82 )
----
0

query I rowsort
SELECT ALL ( + 43 ) AS col1 FROM tab1
----
43
43
43

onlyif mysql # aggregate syntax: 
query I rowsort label-6658
SELECT ALL + - MAX( - col0 ) col1 FROM tab1 cor0
----
51

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6659
SELECT ALL + COUNT( * ) FROM tab0 AS cor0 WHERE NOT + 49 < - - col0
----
1

skipif mysql # not compatible
query I rowsort label-6659
SELECT ALL + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT + 49 < - - col0
----
1

query I rowsort
SELECT + 24 * - col0 AS col1 FROM tab2 cor0 WHERE NOT + col2 NOT IN ( - col2 * + col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 > - + 78
----

query I rowsort
SELECT - - ( col0 ) * - 21 + - col0 FROM tab0 AS cor0
----
-1914
-2134
-330

onlyif mysql # aggregate syntax: 
query I rowsort label-6663
SELECT ALL - MIN( + 66 ) AS col0 FROM tab0 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-6663
SELECT ALL - MIN ( + 66 ) AS col0 FROM tab0 AS cor0
----
-66

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6666
SELECT DISTINCT - 20 + - + 17 * + + MAX( + col2 ) AS col2 FROM tab2
----
-1006

skipif mysql # not compatible
query I rowsort label-6666
SELECT DISTINCT - 20 + - + 17 * + + MAX ( + col2 ) AS col2 FROM tab2
----
-1006

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6667
SELECT DISTINCT - 41 + - - CAST( - 60 AS SIGNED ) + - COUNT( * ) AS col1 FROM tab2 cor0
----
-104

skipif mysql # not compatible
query I rowsort label-6667
SELECT DISTINCT - 41 + - - CAST ( - 60 AS INTEGER ) + - COUNT ( * ) AS col1 FROM tab2 cor0
----
-104

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6669
SELECT ALL + SUM( DISTINCT + - ( + 85 ) ) + + - ( + 11 ) FROM tab1 cor0
----
-96

skipif mysql # not compatible
query I rowsort label-6669
SELECT ALL + SUM ( DISTINCT + - ( + 85 ) ) + + - ( + 11 ) FROM tab1 cor0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-6670
SELECT DISTINCT - + MIN( - 53 ) + + + 59 AS col0 FROM tab0 AS cor0
----
112

skipif mysql # not compatible
query I rowsort label-6670
SELECT DISTINCT - + MIN ( - 53 ) + + + 59 AS col0 FROM tab0 AS cor0
----
112

query I rowsort
SELECT DISTINCT - - col2 + + - ( + col0 ) * + col0 + - - col2 AS col1 FROM tab2 AS cor0
----
-2070
-4016
-5509

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6672
SELECT DISTINCT * FROM tab0 WHERE NOT NULL <= - 54 * - col0 + + CAST( - - col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6672
SELECT DISTINCT * FROM tab0 WHERE NOT NULL <= - 54 * - col0 + + CAST ( - - col2 AS INTEGER )
----

query I rowsort
SELECT + col0 AS col0 FROM tab1 WHERE - + 56 IS NOT NULL
----
51
85
91

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

query I rowsort
SELECT ALL col2 * - + 26 * + col1 FROM tab1
----
-34944
-7670
-83096

onlyif mysql # aggregate syntax: 
query I rowsort label-6676
SELECT - 68 * - 22 + MAX( ALL + + col2 ) FROM tab0 AS cor0
----
1595

skipif mysql # not compatible
query I rowsort label-6676
SELECT - 68 * - 22 + MAX ( ALL + + col2 ) FROM tab0 AS cor0
----
1595

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6677
SELECT - col0 + + - CAST( - 54 AS SIGNED ) + 43 * + + ( + col1 ) FROM tab0 AS cor0
----
0
3522
870

skipif mysql # not compatible
query I rowsort label-6677
SELECT - col0 + + - CAST ( - 54 AS INTEGER ) + 43 * + + ( + col1 ) FROM tab0 AS cor0
----
0
3522
870

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6679
SELECT ALL 67 - + + col1 DIV - 72 AS col1 FROM tab0 AS cor0
----
67
67
68

skipif mysql # not compatible
query I rowsort label-6679
SELECT ALL 67 - + + col1 / - 72 AS col1 FROM tab0 AS cor0
----
67
67
68

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

query III rowsort
SELECT * FROM tab2 WHERE NULL = + + 52 / + - col1 - - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6682
SELECT ALL - 14 DIV + col2 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6682
SELECT ALL - 14 / + col2 FROM tab0
----
-1
0
0

query III rowsort
SELECT * FROM tab2 WHERE ( 8 > 45 )
----

query I rowsort
SELECT DISTINCT col2 * - 66 * - - col0 FROM tab0
----
-46530
-57420
-633798

query II rowsort
SELECT ALL 94, col1 * + 17 AS col1 FROM tab0
----
94
1377
94
17
94
357

onlyif mysql # DIV for integer division: 
query III rowsort label-6686
SELECT ( col1 ) - col1 DIV - + col1 AS col0, - col0 * + col0 col0, 74 AS col0 FROM tab1
----
9 values hashing to f99ef597059122ff14de065d783c1440

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-6686
SELECT ( col1 ) - col1 / - + col1 AS col0, - col0 * + col0 col0, 74 AS col0 FROM tab1
----
9 values hashing to f99ef597059122ff14de065d783c1440

query I rowsort
SELECT + - 44 AS col1 FROM tab2 cor0
----
-44
-44
-44

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6688
SELECT DISTINCT col0 AS col2, 85 / 25 * + col1 + - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-6688
SELECT DISTINCT col0 AS col2, 85 / 25 * + col1 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
51
NULL
85
NULL
91
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6689
SELECT DISTINCT - - MIN( + 56 ) AS col1 FROM tab0 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-6689
SELECT DISTINCT - - MIN ( + 56 ) AS col1 FROM tab0 AS cor0
----
56

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

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

skipif mysql # not compatible
query I rowsort label-6691
SELECT + ( MAX ( + 29 ) ) AS col1 FROM tab1 AS cor0
----
29

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 72 = + 71
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6693
SELECT ALL + + COUNT( + ( + 57 ) ) AS col0 FROM tab1 AS cor0
----
3

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

query I rowsort
SELECT 64 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL BETWEEN NULL AND NULL
----

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

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

query I rowsort
SELECT col2 / + 2 FROM tab1 AS cor0 WHERE NOT 32 IS NOT NULL
----

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

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

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

query I rowsort
SELECT ALL - 32 FROM tab0 AS cor0 WHERE NOT + col0 IS NULL
----
-32
-32
-32

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6701
SELECT DISTINCT - col1 DIV - 21 + + ( - 54 ) + col1 AS col2, col0 FROM tab1
----
-40
51
-49
85
-5
91

skipif mysql # not compatible
query II rowsort label-6701
SELECT DISTINCT - col1 / - 21 + + ( - 54 ) + col1 AS col2, col0 FROM tab1
----
-40
51
-49
85
-5
91

query I rowsort
SELECT DISTINCT - col2 + - - col0 * + col1 * + 41 FROM tab2 AS cor0
----
202008
205967
96163

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

query I rowsort
SELECT DISTINCT col2 + + 21 AS col0 FROM tab0 AS cor0
----
120
31
68

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6705
SELECT ALL * FROM tab2 WHERE CAST( NULL AS SIGNED ) >= NULL
----

skipif mysql # not compatible
query III rowsort label-6705
SELECT ALL * FROM tab2 WHERE CAST ( NULL AS INTEGER ) >= NULL
----

query I rowsort
SELECT ALL - 32 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ef8f93119983b962f4c81381ebf4b1e6

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6708
SELECT + COUNT( * ) - - MIN( + + col1 ) FROM tab2 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-6708
SELECT + COUNT ( * ) - - MIN ( + + col1 ) FROM tab2 AS cor0
----
54

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col1 / - + 25 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6710
SELECT ALL - - MAX( col1 ) - - 17 DIV - - COUNT( * ) FROM tab0 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-6710
SELECT ALL - - MAX ( col1 ) - - 17 / - - COUNT ( * ) FROM tab0 AS cor0
----
86

query I rowsort
SELECT DISTINCT col2 FROM tab0 AS cor0 WHERE - col1 IN ( - col0 )
----

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6713
SELECT + + MIN( ( + - 64 ) ) FROM tab2 WHERE CAST( NULL AS SIGNED ) * - - 23 + 78 + - col0 BETWEEN - col0 + - col2 AND - + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6713
SELECT + + MIN ( ( + - 64 ) ) FROM tab2 WHERE CAST ( NULL AS INTEGER ) * - - 23 + 78 + - col0 BETWEEN - col0 + - col2 AND - + col1
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6715
SELECT * FROM tab0 WHERE NOT + + 76 + + 84 + - CAST( + col1 AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6715
SELECT * FROM tab0 WHERE NOT + + 76 + + 84 + - CAST ( + col1 AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - ( + + ( + 26 ) ) FROM tab0
----
-26
-26
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-6717
SELECT DISTINCT - ( + - COUNT( ALL + 81 ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6717
SELECT DISTINCT - ( + - COUNT ( ALL + 81 ) ) FROM tab0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-6718
SELECT col1 * - + col1 DIV col1 AS col2 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-6718
SELECT col1 * - + col1 / col1 AS col2 FROM tab1 AS cor0
----
-14
-47
-5

query II rowsort
SELECT DISTINCT - ( + col2 ), + col2 FROM tab2 AS cor0
----
-23
23
-40
40
-58
58

query I rowsort
SELECT ALL col0 * + - 21 FROM tab1 AS cor0
----
-1071
-1785
-1911

onlyif mysql # aggregate syntax: 
query II rowsort label-6721
SELECT ALL - MIN( DISTINCT col2 ), 85 AS col2 FROM tab1 AS cor0
----
-59
85

skipif mysql # not compatible
query II rowsort label-6721
SELECT ALL - MIN ( DISTINCT col2 ), 85 AS col2 FROM tab1 AS cor0
----
-59
85

query I rowsort
SELECT DISTINCT ( - - 1 ) + col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
100
11
48

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

skipif mysql # not compatible
query I rowsort label-6723
SELECT - MAX ( ALL 54 ) FROM tab1 AS cor0
----
-54

query I rowsort
SELECT - + 64 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 601ec439a72fb4786a9cb7a6547ace5e

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

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

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

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

query I rowsort
SELECT ALL - 77 + + col2 FROM tab2 AS cor0
----
-19
-37
-54

query I rowsort
SELECT ALL + 63 + - - col2 FROM tab2 cor0
----
103
121
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 6 * - 96 col0 FROM tab0 AS cor0
----
-576
-576
-576

onlyif mysql # aggregate syntax: 
query I rowsort label-6730
SELECT + SUM( + col2 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN 67 - + + col2 AND ( + col1 / + col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6730
SELECT + SUM ( + col2 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN 67 - + + col2 AND ( + col1 / + col2 )
----
NULL

query I rowsort
SELECT + ( + 55 ) FROM tab1 cor0
----
55
55
55

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6733
SELECT 76 + - + ( + COUNT( * ) ) FROM tab0 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-6733
SELECT 76 + - + ( + COUNT ( * ) ) FROM tab0 AS cor0
----
73

query I rowsort
SELECT ALL 39 FROM tab0 WHERE NOT NULL IS NOT NULL
----
39
39
39

query I rowsort
SELECT 34 + + 1 * - 71 + col0 FROM tab0
----
-22
50
60

onlyif mysql # aggregate syntax: 
query I rowsort label-6736
SELECT MIN( DISTINCT + - col0 ) + - 46 FROM tab1
----
-137

skipif mysql # not compatible
query I rowsort label-6736
SELECT MIN ( DISTINCT + - col0 ) + - 46 FROM tab1
----
-137

onlyif mysql # aggregate syntax: 
query I rowsort label-6737
SELECT ALL + - COUNT( DISTINCT col1 ) AS col1 FROM tab1 WHERE NOT + 38 = col1
----
-3

skipif mysql # not compatible
query I rowsort label-6737
SELECT ALL + - COUNT ( DISTINCT col1 ) AS col1 FROM tab1 WHERE NOT + 38 = col1
----
-3

query I rowsort
SELECT col1 * col2 * + 58 FROM tab1 WHERE col1 IS NOT NULL
----
17110
185368
77952

onlyif mysql # aggregate syntax: 
query I rowsort label-6739
SELECT ALL - MIN( - col2 ) + 54 AS col0 FROM tab0
----
153

skipif mysql # not compatible
query I rowsort label-6739
SELECT ALL - MIN ( - col2 ) + 54 AS col0 FROM tab0
----
153

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6740
SELECT DISTINCT - CAST( - col1 AS SIGNED ) + - 79 * + 12 AS col0, + col2 AS col0 FROM tab1
----
-901
68
-934
96
-943
59

skipif mysql # not compatible
query II rowsort label-6740
SELECT DISTINCT - CAST ( - col1 AS INTEGER ) + - 79 * + 12 AS col0, + col2 AS col0 FROM tab1
----
-901
68
-934
96
-943
59

onlyif mysql # aggregate syntax: 
query I rowsort label-6741
SELECT ALL - 22 + + - COUNT( + 47 ) AS col0 FROM tab0 cor0
----
-25

skipif mysql # not compatible
query I rowsort label-6741
SELECT ALL - 22 + + - COUNT ( + 47 ) AS col0 FROM tab0 cor0
----
-25

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( - 72 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6743
SELECT DISTINCT + MIN( ALL - - col0 ) FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-6743
SELECT DISTINCT + MIN ( ALL - - col0 ) FROM tab2
----
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6744
SELECT DISTINCT - 68 + COUNT( * ) DIV + COUNT( * ) FROM tab0 AS cor0
----
-67

skipif mysql # not compatible
query I rowsort label-6744
SELECT DISTINCT - 68 + COUNT ( * ) / + COUNT ( * ) FROM tab0 AS cor0
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6745
SELECT - ( 58 ) + + + MAX( DISTINCT + CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6745
SELECT - ( 58 ) + + + MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - + ( + ( - 72 ) ) * - + col2 FROM tab0 AS cor0
----
-3384
-7128
-720

query I rowsort
SELECT DISTINCT + col0 + 22 AS col2 FROM tab0 AS cor0
----
109
119
37

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

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) IN ( 24, - col0 * - 33 )
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6752
SELECT MAX( + 8 ) FROM tab1
----
8

skipif mysql # not compatible
query I rowsort label-6752
SELECT MAX ( + 8 ) FROM tab1
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-6753
SELECT DISTINCT - MAX( col0 ) + - 32 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-107

skipif mysql # not compatible
query I rowsort label-6753
SELECT DISTINCT - MAX ( col0 ) + - 32 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-107

onlyif mysql # aggregate syntax: 
query I rowsort label-6754
SELECT MIN( + - 64 ) FROM tab0 AS cor0
----
-64

skipif mysql # not compatible
query I rowsort label-6754
SELECT MIN ( + - 64 ) FROM tab0 AS cor0
----
-64

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6756
SELECT + 57 DIV + col0 FROM tab1 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6756
SELECT + 57 / + col0 FROM tab1 cor0
----
0
0
1

query I rowsort
SELECT DISTINCT + 51 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL = NULL
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 47 + + + col1 col2 FROM tab1 AS cor0
----
52
61
94

query I rowsort
SELECT ALL - + 38 + col2 + + col2 + 38 AS col2 FROM tab0 AS cor0
----
198
20
94

onlyif mysql # DIV for integer division: 
query I rowsort label-6761
SELECT ALL col1 DIV 71 + - - col1 + + + 72 FROM tab2 AS cor0
----
123
139
150

skipif mysql # not compatible
query I rowsort label-6761
SELECT ALL col1 / 71 + - - col1 + + + 72 FROM tab2 AS cor0
----
123
139
150

query I rowsort
SELECT - 58 FROM tab0 WHERE - col1 * + col1 + - col1 IS NOT NULL
----
-58
-58
-58

query II rowsort
SELECT DISTINCT col1, col0 * col0 AS col1 FROM tab0
----
1
9409
21
7569
81
225

query II rowsort
SELECT DISTINCT + 80, ( + + col1 ) * + - col2 AS col1 FROM tab2
----
80
-1173
80
-3080
80
-3886

onlyif mysql # aggregate syntax: 
query II rowsort label-6765
SELECT + 83, COUNT( * ) AS col0 FROM tab0
----
83
3

skipif mysql # not compatible
query II rowsort label-6765
SELECT + 83, COUNT ( * ) AS col0 FROM tab0
----
83
3

query I rowsort
SELECT ALL + col0 AS col1 FROM tab0 WHERE NOT - col0 * - - 21 + + col0 NOT BETWEEN ( - 98 ) AND + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 AS col0, + 25 col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
23
25
40
25
58
25

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6769
SELECT ALL - col0 * 14 DIV + + col0 FROM tab1
----
-14
-14
-14

skipif mysql # not compatible
query I rowsort label-6769
SELECT ALL - col0 * 14 / + + col0 FROM tab1
----
-14
-14
-14

query I rowsort
SELECT 26 * - 38 AS col1 FROM tab2
----
-988
-988
-988

onlyif mysql # aggregate syntax: 
query II rowsort label-6771
SELECT ALL - COUNT( * ) AS col1, 50 AS col0 FROM tab2 AS cor0
----
-3
50

skipif mysql # not compatible
query II rowsort label-6771
SELECT ALL - COUNT ( * ) AS col1, 50 AS col0 FROM tab2 AS cor0
----
-3
50

query I rowsort
SELECT DISTINCT - col2 * col2 + + - 87 * - col1 + - col1 AS col2 FROM tab2 cor0
----
2398
3857
5022

query I rowsort
SELECT 33 * - 50 AS col1 FROM tab2
----
-1650
-1650
-1650

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6774
SELECT * FROM tab0 cor0 WHERE + col1 * col2 > + 14 / + col1 + CAST( - - 12 AS DECIMAL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6774
SELECT * FROM tab0 cor0 WHERE + col1 * col2 > + 14 / + col1 + CAST ( - - 12 AS REAL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col1 / + col1 <= NULL
----

query I rowsort
SELECT ALL col0 * - 83 AS col0 FROM tab1 AS cor0 WHERE NOT + ( + - col0 ) + ( col2 ) < ( NULL )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 21 >= - - col2 / ( - - col2 ) * + col2 + col1
----

query I rowsort
SELECT - ( + + 33 ) * + - col2 AS col1 FROM tab0
----
1551
3267
330

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6779
SELECT - COUNT( * ) AS col1 FROM tab1 WHERE NOT + + 51 <= CAST( NULL AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-6779
SELECT - COUNT ( * ) AS col1 FROM tab1 WHERE NOT + + 51 <= CAST ( NULL AS INTEGER )
----
0

query I rowsort
SELECT + 0 * + col1 * + col1 AS col1 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0, + col2 col1 FROM tab1
----
-51
96
-85
59
-91
68

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 - + 41 + - 21 < col1
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6784
SELECT 71 * - SUM( ALL + col1 ) AS col0 FROM tab1
----
-4686

skipif mysql # not compatible
query I rowsort label-6784
SELECT 71 * - SUM ( ALL + col1 ) AS col0 FROM tab1
----
-4686

query I rowsort
SELECT ALL col2 * + 8 FROM tab2
----
184
320
464

query II rowsort
SELECT col2, 25 + - 44 * col0 AS col0 FROM tab1
----
59
-3715
68
-3979
96
-2219

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

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

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT ( NULL ) NOT BETWEEN + + 20 AND NULL
----

query I rowsort
SELECT ALL - + col1 + - ( - + 11 ) FROM tab1 cor0
----
-3
-36
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6790
SELECT + + COUNT( * ) * - + 82 + + 47 col1 FROM tab1 AS cor0
----
-199

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

query I rowsort
SELECT - + col0 + - 67 AS col1 FROM tab0 AS cor0
----
-154
-164
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6792
SELECT DISTINCT 72 * 53 + + CAST( NULL AS SIGNED ) + - - 87 + col0 * - 66 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6792
SELECT DISTINCT 72 * 53 + + CAST ( NULL AS INTEGER ) + - - 87 + col0 * - 66 AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + - 41 * + 28 + - col1 FROM tab0 AS cor0
----
-1149
-1169
-1229

query I rowsort
SELECT - ( + 15 ) + + col2 FROM tab2 AS cor0
----
25
43
8

onlyif mysql # aggregate syntax: 
query I rowsort label-6795
SELECT COUNT( * ) + - 91 * ( 81 ) * - + COUNT( * ) AS col2 FROM tab0
----
22116

skipif mysql # not compatible
query I rowsort label-6795
SELECT COUNT ( * ) + - 91 * ( 81 ) * - + COUNT ( * ) AS col2 FROM tab0
----
22116

query I rowsort
SELECT + col2 + col2 * - - 7 FROM tab1
----
472
544
768

onlyif mysql # aggregate syntax: 
query I rowsort label-6797
SELECT - 39 + 24 + MIN( DISTINCT + 99 ) AS col1 FROM tab2
----
84

skipif mysql # not compatible
query I rowsort label-6797
SELECT - 39 + 24 + MIN ( DISTINCT + 99 ) AS col1 FROM tab2
----
84

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6799
SELECT ALL + 48 + + COUNT( * ), + COUNT( DISTINCT + CAST( + - col1 AS SIGNED ) ) AS col1 FROM tab1
----
51
3

skipif mysql # not compatible
query II rowsort label-6799
SELECT ALL + 48 + + COUNT ( * ), + COUNT ( DISTINCT + CAST ( + - col1 AS INTEGER ) ) AS col1 FROM tab1
----
51
3

onlyif mysql # DIV for integer division: 
query I rowsort label-6800
SELECT + col1 DIV 64 col2 FROM tab2
----
0
1
1

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

query I rowsort
SELECT DISTINCT 25 * + ( + + 83 ) AS col2 FROM tab2
----
2075

query II rowsort
SELECT ALL - - ( col2 ) AS col0, - col1 * + - col0 FROM tab1 cor0
----
59
425
68
4277
96
714

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

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

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 42 IS NOT NULL
----

query I rowsort
SELECT + - 0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6808
SELECT + MIN ( DISTINCT + 19 ) AS col2 FROM tab2
----
19

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6809
SELECT - 1 * + + 85 AS col0 FROM tab1 WHERE NOT - CAST( - + 13 AS DECIMAL ) <= - col1
----
-85
-85
-85

skipif mysql # not compatible
query I rowsort label-6809
SELECT - 1 * + + 85 AS col0 FROM tab1 WHERE NOT - CAST ( - + 13 AS REAL ) <= - col1
----
-85
-85
-85

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6811
SELECT ALL + COUNT ( * ) * ( 83 ) col0 FROM tab0
----
249

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + + 51 + col2 IS NOT NULL
----

query I rowsort
SELECT ALL - col1 * 43 FROM tab0
----
-3483
-43
-903

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 43 > - col1
----

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

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

query I rowsort
SELECT DISTINCT col0 * + 41 AS col2 FROM tab1
----
2091
3485
3731

onlyif mysql # aggregate syntax: 
query I rowsort label-6817
SELECT DISTINCT 80 * + SUM( ALL + + 53 ) + - 25 AS col2 FROM tab1 AS cor0
----
12695

skipif mysql # not compatible
query I rowsort label-6817
SELECT DISTINCT 80 * + SUM ( ALL + + 53 ) + - 25 AS col2 FROM tab1 AS cor0
----
12695

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

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

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

query I rowsort
SELECT ALL + 60 * + 63 + + 97 AS col0 FROM tab0 AS cor0
----
3877
3877
3877

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

query I rowsort
SELECT + 56 - + - col2 AS col0 FROM tab2
----
114
79
96

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

query I rowsort
SELECT + 52 * - - col2 + - 76 AS col1 FROM tab1
----
2992
3460
4916

query I rowsort
SELECT ALL 89 * - + col1 FROM tab0
----
-1869
-7209
-89

query I rowsort
SELECT + col2 + 48 AS col0 FROM tab0
----
147
58
95

query I rowsort
SELECT - 51 * - - 75 * + 10 + + col0 AS col0 FROM tab0
----
-38153
-38163
-38235

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6830
SELECT ALL + col2 * + col2 + + CAST( + 64 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
3545
4688
9280

skipif mysql # not compatible
query I rowsort label-6830
SELECT ALL + col2 * + col2 + + CAST ( + 64 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
3545
4688
9280

query I rowsort
SELECT + 99 + col1 AS col2 FROM tab2 AS cor0
----
150
166
176

query I rowsort
SELECT DISTINCT + col2 + - + 10 * + col2 + 86 AS col0 FROM tab0 AS cor0
----
-337
-4
-805

query I rowsort
SELECT DISTINCT ( col2 ) - col0 * + col0 AS col1 FROM tab1 cor0
----
-2505
-7166
-8213

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6836
SELECT + 36 DIV 18 * - SUM( DISTINCT - col0 ) AS col0 FROM tab1 AS cor0
----
454

skipif mysql # not compatible
query I rowsort label-6836
SELECT + 36 / 18 * - SUM ( DISTINCT - col0 ) AS col0 FROM tab1 AS cor0
----
454

query I rowsort
SELECT ALL + col0 * - 87 + + col0 AS col1 FROM tab0 AS cor0
----
-1290
-7482
-8342

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

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

query I rowsort
SELECT ALL - + 14 * col0 + - - 45 * col0 + + 47 FROM tab2 AS cor0
----
1473
2031
2372

query II rowsort
SELECT DISTINCT - col2, + ( - col2 ) FROM tab2
----
-23
-23
-40
-40
-58
-58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6842
SELECT * FROM tab0 WHERE NOT NULL BETWEEN - CAST( NULL AS SIGNED ) - + ( CAST( - 13 AS SIGNED ) ) AND + + ( + 9 ) + + 29
----

skipif mysql # not compatible
query III rowsort label-6842
SELECT * FROM tab0 WHERE NOT NULL BETWEEN - CAST ( NULL AS INTEGER ) - + ( CAST ( - 13 AS INTEGER ) ) AND + + ( + 9 ) + + 29
----

query I rowsort
SELECT - col0 * ( 16 ) AS col2 FROM tab0
----
-1392
-1552
-240

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

query II rowsort
SELECT + 58 AS col1, - col2 AS col0 FROM tab0
----
58
-10
58
-47
58
-99

query I rowsort
SELECT + - col0 AS col2 FROM tab1 WHERE NOT 3 IS NULL
----
-51
-85
-91

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - ( + 89 ) * + col1 col2, 53 AS col2 FROM tab2 AS cor0
----
-4539
53
-5963
53
-6853
53

onlyif mysql # aggregate syntax: 
query I rowsort label-6851
SELECT - COUNT( * ) * + 26 col2 FROM tab1
----
-78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6851
SELECT - COUNT ( * ) * + 26 col2 FROM tab1
----
-78

query I rowsort
SELECT - col1 + 62 AS col2 FROM tab2 AS cor0 WHERE - col0 * - col1 * + 17 + + col0 IS NOT NULL
----
-15
-5
11

query II rowsort
SELECT ALL - col1 + + 46 AS col2, col1 FROM tab0 AS cor0
----
-35
81
25
21
45
1

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6856
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE NULL BETWEEN 44 + 12 AND col0 * + col1
----
0

skipif mysql # not compatible
query I rowsort label-6856
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE NULL BETWEEN 44 + 12 AND col0 * + col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6857
SELECT + 50 + - 20 * - + COUNT( * ) - - 85 + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
192

skipif mysql # not compatible
query I rowsort label-6857
SELECT + 50 + - 20 * - + COUNT ( * ) - - 85 + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
192

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6858
SELECT DISTINCT 77 * - SUM( 62 ) * - 61 + 10 DIV + + COUNT( * ) col1 FROM tab1 AS cor0
----
873645

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6858
SELECT DISTINCT 77 * - SUM ( 62 ) * - 61 + 10 / + + COUNT ( * ) col1 FROM tab1 AS cor0
----
873645

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - col1 * + 79 col2 FROM tab0
----
16590
300753
7821

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

query I rowsort
SELECT ALL 19 - - col1 FROM tab2
----
70
86
96

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

skipif mysql # not compatible
query I rowsort label-6862
SELECT 47 / - + col0 FROM tab2
----
-1
0
0

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

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

query I rowsort
SELECT DISTINCT 33 * 35 FROM tab1
----
1155

query I rowsort
SELECT ALL - 36 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to afecaf209e79e23b6674a73fffa3e837

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6867
SELECT DISTINCT + 81 * col0 AS col2, + col0 + CAST( + col2 AS SIGNED ) AS col2 FROM tab1
----
4131
147
6885
144
7371
159

skipif mysql # not compatible
query II rowsort label-6867
SELECT DISTINCT + 81 * col0 AS col2, + col0 + CAST ( + col2 AS INTEGER ) AS col2 FROM tab1
----
4131
147
6885
144
7371
159

onlyif mysql # DIV for integer division: 
query I rowsort label-6868
SELECT ALL 17 DIV col1 FROM tab0
----
0
0
17

skipif mysql # not compatible
query I rowsort label-6868
SELECT ALL 17 / col1 FROM tab0
----
0
0
17

query I rowsort
SELECT + - 74 * col0 * + 13 AS col1 FROM tab1 AS cor0
----
-49062
-81770
-87542

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6871
SELECT - col0 DIV + 49 FROM tab1 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6871
SELECT - col0 / + 49 FROM tab1 cor0
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6872
SELECT DISTINCT - CAST( + + 7 AS SIGNED ) * col0 FROM tab1 AS cor0
----
-357
-595
-637

skipif mysql # not compatible
query I rowsort label-6872
SELECT DISTINCT - CAST ( + + 7 AS INTEGER ) * col0 FROM tab1 AS cor0
----
-357
-595
-637

onlyif mysql # DIV for integer division: 
query I rowsort label-6873
SELECT ALL - 47 DIV col2 + - - col2 FROM tab0 AS cor0
----
46
6
99

skipif mysql # not compatible
query I rowsort label-6873
SELECT ALL - 47 / col2 + - - col2 FROM tab0 AS cor0
----
46
6
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6874
SELECT - CAST( - 24 AS SIGNED ) AS col0 FROM tab1
----
24
24
24

skipif mysql # not compatible
query I rowsort label-6874
SELECT - CAST ( - 24 AS INTEGER ) AS col0 FROM tab1
----
24
24
24

query I rowsort
SELECT - col2 FROM tab1 AS cor0 WHERE - col2 BETWEEN + col0 * col2 + col2 AND - 74
----

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col1 BETWEEN col2 * + ( 71 ) + + col2 + + + ( - col2 ) - + + 85 AND - - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - col0, - col1 + + col0 AS col1 FROM tab2
----
-46
-5
-64
-13
-75
8

onlyif mysql # DIV for integer division: 
query II rowsort label-6879
SELECT - col1 DIV + ( - + 86 ) AS col0, col1 FROM tab1 AS cor0
----
0
14
0
47
0
5

skipif mysql # not compatible
query II rowsort label-6879
SELECT - col1 / + ( - + 86 ) AS col0, col1 FROM tab1 AS cor0
----
0
14
0
47
0
5

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 92 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6881
SELECT ALL + 42 + + - 2 * + MAX( DISTINCT + col2 ) col1 FROM tab1 cor0
----
-150

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6881
SELECT ALL + 42 + + - 2 * + MAX ( DISTINCT + col2 ) col1 FROM tab1 cor0
----
-150

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NOT + 26 / + col2 <> NULL )
----

query I rowsort
SELECT - ( - col1 ) AS col2 FROM tab1 cor0 WHERE NULL <= col1 / + 84
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6885
SELECT ALL - 3 - 43 + + col0 DIV col0 + - col0 FROM tab0 AS cor0
----
-132
-142
-60

skipif mysql # not compatible
query I rowsort label-6885
SELECT ALL - 3 - 43 + + col0 / col0 + - col0 FROM tab0 AS cor0
----
-132
-142
-60

query I rowsort
SELECT + + col2 FROM tab0 WHERE - col2 * + col2 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6887
SELECT 29 - - - COUNT( * ) DIV + - 82 AS col1 FROM tab2
----
29

skipif mysql # not compatible
query I rowsort label-6887
SELECT 29 - - - COUNT ( * ) / + - 82 AS col1 FROM tab2
----
29

query I rowsort
SELECT DISTINCT + 30 * + + col0 - + + col1 AS col1 FROM tab1
----
1516
2545
2683

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

skipif mysql # not compatible
query I rowsort label-6889
SELECT - 50 * + + 3 + COUNT ( * ) FROM tab2
----
-147

query I rowsort
SELECT 77 + + 55 AS col1 FROM tab0
----
132
132
132

query I rowsort
SELECT ALL + 93 * - - 54 + - 75 AS col1 FROM tab1
----
4947
4947
4947

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

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

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

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 95 BETWEEN - - 9 + + - col0 AND + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6895
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 4 IN ( - col1, col0, + + col1 + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-6895
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 4 IN ( - col1, col0, + + col1 + CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( 49 ) <> col2
----

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

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

query I rowsort
SELECT ALL + 29 * + + col0 FROM tab0 AS cor0
----
2523
2813
435

onlyif mysql # DIV for integer division: 
query I rowsort label-6899
SELECT col2 DIV - col1 + + + col1 col2 FROM tab2
----
51
67
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6899
SELECT col2 / - col1 + + + col1 col2 FROM tab2
----
51
67
77

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6901
SELECT + SUM( + col0 ) + + COUNT( * ) FROM tab2
----
188

skipif mysql # not compatible
query I rowsort label-6901
SELECT + SUM ( + col0 ) + + COUNT ( * ) FROM tab2
----
188

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + ( - + col2 ), + 13 col1 FROM tab1 AS cor0
----
-59
13
-68
13
-96
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6904
SELECT + CAST( + + 16 AS SIGNED ) * - COUNT( * ) + + 53 + - COUNT( * ) FROM tab2 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-6904
SELECT + CAST ( + + 16 AS INTEGER ) * - COUNT ( * ) + + 53 + - COUNT ( * ) FROM tab2 AS cor0
----
2

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

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

query III rowsort
SELECT * FROM tab0 WHERE col1 NOT BETWEEN - col1 * 14 + - + 22 + col2 + + - 54 * - + 38 AND - - col0 * - - col1 * - 25
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6907
SELECT - SUM( col2 ) + - COUNT( - 69 ) - + MIN( + + ( 63 ) ) AS col0 FROM tab2 cor0
----
-187

skipif mysql # not compatible
query I rowsort label-6907
SELECT - SUM ( col2 ) + - COUNT ( - 69 ) - + MIN ( + + ( 63 ) ) AS col0 FROM tab2 cor0
----
-187

query I rowsort
SELECT DISTINCT - 94 + col2 AS col2 FROM tab0 AS cor0
----
-47
-84
5

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

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

query II rowsort
SELECT - col2 + col1, col0 FROM tab1 AS cor0
----
-21
91
-54
85
-82
51

query II rowsort
SELECT col2 + col1 AS col2, 44 + + col2 - + col2 FROM tab1 AS cor0
----
110
44
115
44
64
44

query I rowsort
SELECT ALL - col2 + - 77 AS col0 FROM tab2 AS cor0
----
-100
-117
-135

query II rowsort
SELECT ALL - - col0 - 5, - ( + + 8 ) AS col2 FROM tab0 AS cor0
----
10
-8
82
-8
92
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-6914
SELECT DISTINCT SUM( ALL - 17 ) FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-6914
SELECT DISTINCT SUM ( ALL - 17 ) FROM tab2
----
-51

query II rowsort
SELECT DISTINCT + 57, col1 FROM tab2
----
57
51
57
67
57
77

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL BETWEEN NULL AND - - 80
----

query I rowsort
SELECT - col2 * - 41 * + + col0 AS col1 FROM tab2
----
104960
178350
43378

onlyif mysql # DIV for integer division: 
query I rowsort label-6918
SELECT - + col1 DIV + - col2 + - 21 + - col2 AS col2 FROM tab2 AS cor0
----
-42
-60
-78

skipif mysql # not compatible
query I rowsort label-6918
SELECT - + col1 / + - col2 + - 21 + - col2 AS col2 FROM tab2 AS cor0
----
-42
-60
-78

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6920
SELECT - COUNT( * ) * - - 95 FROM tab1 AS cor0
----
-285

skipif mysql # not compatible
query I rowsort label-6920
SELECT - COUNT ( * ) * - - 95 FROM tab1 AS cor0
----
-285

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6921
SELECT - COUNT( * ) DIV COUNT( * ) * 78 AS col1 FROM tab0 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-6921
SELECT - COUNT ( * ) / COUNT ( * ) * 78 AS col1 FROM tab0 AS cor0
----
-78

onlyif mysql # aggregate syntax: 
query II rowsort label-6922
SELECT ALL + - 32 AS col0, 16 - - COUNT( * ) FROM tab2 AS cor0
----
-32
19

skipif mysql # not compatible
query II rowsort label-6922
SELECT ALL + - 32 AS col0, 16 - - COUNT ( * ) FROM tab2 AS cor0
----
-32
19

query I rowsort
SELECT + 4 - col1 AS col2 FROM tab1
----
-1
-10
-43

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE NOT NULL = NULL
----

query I rowsort
SELECT DISTINCT - 62 * - col0 - 79 FROM tab1
----
3083
5191
5563

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - col1 ) BETWEEN - 21 + + ( + col0 ) AND - col0 * col0
----

query I rowsort
SELECT col2 AS col0 FROM tab2 WHERE NOT NULL IN ( 7 )
----

query I rowsort
SELECT DISTINCT - 74 - - col1 * 65 FROM tab2
----
3241
4281
4931

query III rowsort
SELECT ALL * FROM tab0 WHERE ( + col2 * - 5 ) <= + col2 + + 27
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6930
SELECT ALL - COUNT( * ) DIV 81 FROM tab2 WHERE col0 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-6930
SELECT ALL - COUNT ( * ) / 81 FROM tab2 WHERE col0 <> NULL
----
0

query I rowsort
SELECT ALL ( 96 ) AS col1 FROM tab0
----
96
96
96

query I rowsort
SELECT ALL + col2 * 85 AS col0 FROM tab1 WHERE + col0 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6933
SELECT DISTINCT SUM( 61 ) + COUNT( * ) FROM tab1
----
186

skipif mysql # not compatible
query I rowsort label-6933
SELECT DISTINCT SUM ( 61 ) + COUNT ( * ) FROM tab1
----
186

query I rowsort
SELECT ALL col0 * - ( 5 ) AS col0 FROM tab1 WHERE + col2 IS NOT NULL
----
-255
-425
-455

query I rowsort
SELECT 89 AS col0 FROM tab2 WHERE - col1 * col2 IS NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6937
SELECT DISTINCT * FROM tab1 WHERE NOT + col0 + 41 NOT IN ( + CAST( NULL AS SIGNED ) + ( + 74 ) )
----

skipif mysql # not compatible
query III rowsort label-6937
SELECT DISTINCT * FROM tab1 WHERE NOT + col0 + 41 NOT IN ( + CAST ( NULL AS INTEGER ) + ( + 74 ) )
----

query I rowsort
SELECT ALL + col1 * + col1 + 33 AS col0 FROM tab1
----
2242
229
58

query I rowsort
SELECT ALL - col0 FROM tab2 WHERE NOT col0 IS NULL
----
-46
-64
-75

query I rowsort
SELECT + col1 AS col2 FROM tab2 WHERE NULL = - 18 * col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6941
SELECT DISTINCT ( - 53 ) * COUNT( * ) AS col1 FROM tab0
----
-159

skipif mysql # not compatible
query I rowsort label-6941
SELECT DISTINCT ( - 53 ) * COUNT ( * ) AS col1 FROM tab0
----
-159

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6943
SELECT MAX( col0 ) + 83 AS col1 FROM tab2
----
158

skipif mysql # not compatible
query I rowsort label-6943
SELECT MAX ( col0 ) + 83 AS col1 FROM tab2
----
158

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6944
SELECT CAST( NULL AS DECIMAL ) + + AVG ( 50 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6944
SELECT CAST ( NULL AS REAL ) + + AVG ( 50 ) FROM tab0
----
NULL

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

query I rowsort
SELECT ( + col2 ) + - col0 * - 13 FROM tab2 AS cor0
----
1033
621
872

query I rowsort
SELECT ALL + 94 * - col1 + - 95 FROM tab0 cor0
----
-189
-2069
-7709

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 98 IN ( col2 * + col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 80 IN ( col0 - + col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - ( - 1 ) ) >= - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

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

query I rowsort
SELECT ALL - 11 * col2 AS col1 FROM tab1 AS cor0 WHERE col2 BETWEEN NULL AND ( NULL )
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6955
SELECT DISTINCT - col1 - + col1 DIV + col0 AS col1 FROM tab2 cor0
----
-52
-67
-78

skipif mysql # not compatible
query I rowsort label-6955
SELECT DISTINCT - col1 - + col1 / + col0 AS col1 FROM tab2 cor0
----
-52
-67
-78

query I rowsort
SELECT ALL + col1 AS col0 FROM tab1 AS cor0 WHERE NULL >= + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - - col1 ) col1 FROM tab0
----
-1
-21
-81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6958
SELECT DISTINCT * FROM tab0 WHERE col2 * + col0 + col1 NOT BETWEEN 76 * 31 + - CAST( + col1 AS SIGNED ) AND - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6958
SELECT DISTINCT * FROM tab0 WHERE col2 * + col0 + col1 NOT BETWEEN 76 * 31 + - CAST ( + col1 AS INTEGER ) AND - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col1 FROM tab1 WHERE col2 NOT IN ( + col1 + - col2 / - 25 )
----
14
47
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6960
SELECT ALL SUM( ALL - CAST( NULL AS SIGNED ) ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6960
SELECT ALL SUM ( ALL - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6961
SELECT CAST( 61 AS SIGNED ) col0 FROM tab0
----
61
61
61

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6961
SELECT CAST ( 61 AS INTEGER ) col0 FROM tab0
----
61
61
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + col0 col2 FROM tab1 WHERE NOT - col0 IS NULL
----
144
147
159

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6963
SELECT * FROM tab0 WHERE NOT ( 85 + - col2 ) IN ( - CAST( - 97 AS SIGNED ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6963
SELECT * FROM tab0 WHERE NOT ( 85 + - col2 ) IN ( - CAST ( - 97 AS INTEGER ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6964
SELECT DISTINCT - 31 AS col0 FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) IS NOT NULL
----
-31

skipif mysql # not compatible
query I rowsort label-6964
SELECT DISTINCT - 31 AS col0 FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL
----
-31

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 12 >= - 7
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 97 * - - col2 FROM tab0
----
4559
9603
970

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6967
SELECT COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT + 54 * CAST( NULL AS SIGNED ) > NULL
----
0

skipif mysql # not compatible
query I rowsort label-6967
SELECT COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT + 54 * CAST ( NULL AS INTEGER ) > NULL
----
0

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 99 IS NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

query I rowsort
SELECT + - 52 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 9500afe5646d620d5e8943351a29d082

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

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

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

skipif mysql # not compatible
query II rowsort label-6972
SELECT + COUNT ( * ) AS col1, COUNT ( * ) * + - COUNT ( * ) FROM tab1 AS cor0
----
3
-9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6973
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 * - 61 >= ( + CAST( + 80 AS SIGNED ) ) + 89
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6973
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 * - 61 >= ( + CAST ( + 80 AS INTEGER ) ) + 89
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT + - 41 AS col1, - col1 AS col2 FROM tab1 AS cor0
----
-41
-14
-41
-47
-41
-5

query I rowsort
SELECT + col0 * - - col2 + 90 + + col2 * col0 + + ( + col0 ) FROM tab0 AS cor0
----
1515
1917
19393

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + col0 col1 FROM tab1 cor0
----
-45
23
26

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

query I rowsort
SELECT DISTINCT col2 + + - 66 + + + col2 - - col2 * col2 FROM tab1 AS cor0
----
3533
4694
9342

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE NOT ( + - 8 ) NOT IN ( 63 )
----

query II rowsort
SELECT + 75 + - col0 AS col1, - col0 FROM tab1
----
-10
-85
-16
-91
24
-51

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6982
SELECT - 55 + + COUNT( * ) + COUNT( * ) * + COUNT( * ) FROM tab1
----
-43

skipif mysql # not compatible
query I rowsort label-6982
SELECT - 55 + + COUNT ( * ) + COUNT ( * ) * + COUNT ( * ) FROM tab1
----
-43

query III rowsort
SELECT * FROM tab2 WHERE + 18 IS NULL AND NOT ( - 97 * - 81 ) BETWEEN NULL AND ( NULL )
----

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

query I rowsort
SELECT ALL - 55 * - col0 * + col0 FROM tab2
----
116380
225280
309375

query II rowsort
SELECT ALL col0 * + + 41, col1 AS col2 FROM tab1
----
2091
14
3485
5
3731
47

onlyif mysql # DIV for integer division: 
query II rowsort label-6987
SELECT DISTINCT 21 + col0 AS col1, 22 DIV col0 + col0 FROM tab0
----
108
87
118
97
36
16

skipif mysql # not compatible
query II rowsort label-6987
SELECT DISTINCT 21 + col0 AS col1, 22 / col0 + col0 FROM tab0
----
108
87
118
97
36
16

onlyif mysql # aggregate syntax: 
query I rowsort label-6988
SELECT - MAX( 65 ) FROM tab2 WHERE - 47 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6988
SELECT - MAX ( 65 ) FROM tab2 WHERE - 47 IS NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6989
SELECT ALL + MAX( + ( - col2 ) ) DIV - 59 AS col2 FROM tab2 WHERE ( + + CAST( NULL AS SIGNED ) + - - col0 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6989
SELECT ALL + MAX ( + ( - col2 ) ) / - 59 AS col2 FROM tab2 WHERE ( + + CAST ( NULL AS INTEGER ) + - - col0 ) IS NULL
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6991
SELECT DISTINCT COUNT( * ) + + 85 * + 10 AS col2 FROM tab2
----
853

skipif mysql # not compatible
query I rowsort label-6991
SELECT DISTINCT COUNT ( * ) + + 85 * + 10 AS col2 FROM tab2
----
853

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

query I rowsort
SELECT + 66 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT NULL IS NOT NULL
----
9 values hashing to 29794915b585eea848ad670075452c88

onlyif mysql # aggregate syntax: 
query I rowsort label-6994
SELECT ALL SUM( ALL col2 ) AS col1 FROM tab2 WHERE NOT 25 + + col2 * col2 * - 80 BETWEEN 3 AND NULL
----
121

skipif mysql # not compatible
query I rowsort label-6994
SELECT ALL SUM ( ALL col2 ) AS col1 FROM tab2 WHERE NOT 25 + + col2 * col2 * - 80 BETWEEN 3 AND NULL
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-6995
SELECT ALL + COUNT( DISTINCT + 50 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6995
SELECT ALL + COUNT ( DISTINCT + 50 ) FROM tab0 AS cor0
----
1

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + 95 ) * - - 77 col0 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6998
SELECT + - 10 AS col1, 74 * - 93 * + - COUNT( * ) + - COUNT( * ) - - CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0
----
-10
NULL

skipif mysql # not compatible
query II rowsort label-6998
SELECT + - 10 AS col1, 74 * - 93 * + - COUNT ( * ) + - COUNT ( * ) - - CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0
----
-10
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6999
SELECT DISTINCT * FROM tab1 cor0 WHERE ( col1 ) IN ( CAST( col1 AS DECIMAL ) / 35 - + col1 * + col1 + col0 )
----

skipif mysql # not compatible
query III rowsort label-6999
SELECT DISTINCT * FROM tab1 cor0 WHERE ( col1 ) IN ( CAST ( col1 AS REAL ) / 35 - + col1 * + col1 + col0 )
----

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7001
SELECT 30 col0, - COUNT( col2 ) * COUNT( * ) + - - 33 FROM tab1 cor0
----
30
24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7001
SELECT 30 col0, - COUNT ( col2 ) * COUNT ( * ) + - - 33 FROM tab1 cor0
----
30
24

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7004
SELECT MAX( + - col1 ) AS col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7004
SELECT MAX ( + - col1 ) AS col1 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT ALL + col0 * + 5 FROM tab2 AS cor0
----
230
320
375

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 col2, col0 AS col2 FROM tab1
----
59
85
68
91
96
51

query I rowsort
SELECT ALL col0 AS col1 FROM tab0 WHERE NOT - + 41 * + - 63 * col0 IN ( + + col2 )
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7009
SELECT - + COUNT( DISTINCT - + 88 ) FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7009
SELECT - + COUNT ( DISTINCT - + 88 ) FROM tab1 AS cor0
----
-1

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7012
SELECT 68 * 73 DIV - + col2 AS col2 FROM tab1 AS cor0
----
-51
-73
-84

skipif mysql # not compatible
query I rowsort label-7012
SELECT 68 * 73 / - + col2 AS col2 FROM tab1 AS cor0
----
-51
-73
-84

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL IN ( - col2, + 53 )
----

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

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

query I rowsort
SELECT ALL + col1 * - + 75 + - col0 * + 0 - col2 AS col0 FROM tab0
----
-1585
-174
-6122

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7017
SELECT + CAST( 38 AS SIGNED ), col2 + - col2 * - - 59 AS col1 FROM tab1 AS cor0
----
38
-3422
38
-3944
38
-5568

skipif mysql # not compatible
query II rowsort label-7017
SELECT + CAST ( 38 AS INTEGER ), col2 + - col2 * - - 59 AS col1 FROM tab1 AS cor0
----
38
-3422
38
-3944
38
-5568

query I rowsort
SELECT DISTINCT - + 14 + - - 34 AS col1 FROM tab2 AS cor0
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7019
SELECT DISTINCT + CAST( ( + COUNT( * ) ) AS SIGNED ) + - 57 FROM tab1 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-7019
SELECT DISTINCT + CAST ( ( + COUNT ( * ) ) AS INTEGER ) + - 57 FROM tab1 AS cor0
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-7020
SELECT DISTINCT SUM( DISTINCT - 88 ) AS col1 FROM tab0 AS cor0
----
-88

skipif mysql # not compatible
query I rowsort label-7020
SELECT DISTINCT SUM ( DISTINCT - 88 ) AS col1 FROM tab0 AS cor0
----
-88

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

query II rowsort
SELECT DISTINCT - - col2 + + col1 AS col0, + 16 AS col1 FROM tab0 AS cor0
----
100
16
128
16
31
16

onlyif mysql # DIV for integer division: 
query II rowsort label-7023
SELECT + col1 DIV 44, 27 AS col2 FROM tab2 AS cor0
----
1
27
1
27
1
27

skipif mysql # not compatible
query II rowsort label-7023
SELECT + col1 / 44, 27 AS col2 FROM tab2 AS cor0
----
1
27
1
27
1
27

query III rowsort
SELECT * FROM tab0 WHERE col1 NOT BETWEEN ( - 27 ) AND col0
----
15
81
47

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 54 * + col2 BETWEEN ( NULL ) AND - col1
----

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

query I rowsort
SELECT 60 - - col0 AS col2 FROM tab2
----
106
124
135

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

query I rowsort
SELECT + col2 * + 4 + + + col1 FROM tab1
----
241
319
398

query II rowsort
SELECT DISTINCT col1 * - + col0 + + 16 AS col2, + col2 AS col0 FROM tab0
----
-1199
47
-1811
10
-81
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7031
SELECT - + COUNT( * ) + + ( COUNT( * ) ) * - 23 FROM tab1 cor0
----
-72

skipif mysql # not compatible
query I rowsort label-7031
SELECT - + COUNT ( * ) + + ( COUNT ( * ) ) * - 23 FROM tab1 cor0
----
-72

query I rowsort
SELECT ALL + 32 + - + col0 FROM tab0 AS cor0
----
-55
-65
17

onlyif mysql # DIV for integer division: 
query I rowsort label-7033
SELECT DISTINCT - col0 + col2 DIV col1 AS col1 FROM tab0 AS cor0
----
-15
-87
2

skipif mysql # not compatible
query I rowsort label-7033
SELECT DISTINCT - col0 + col2 / col1 AS col1 FROM tab0 AS cor0
----
-15
-87
2

query I rowsort
SELECT DISTINCT col2 * col2 - - col2 * - col2 AS col1 FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 44 col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-44

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

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

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

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 63 IS NOT NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

query I rowsort
SELECT DISTINCT - 48 * 4 FROM tab2 AS cor0
----
-192

query I rowsort
SELECT ALL - 99 * col0 + - col2 AS col1 FROM tab0 AS cor0
----
-1532
-8623
-9702

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7042
SELECT - + col1 * + CAST( - col2 AS SIGNED ) FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + 7 AND + - 40
----

skipif mysql # not compatible
query I rowsort label-7042
SELECT - + col1 * + CAST ( - col2 AS INTEGER ) FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + 7 AND + - 40
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7043
SELECT ALL - CAST( - - COUNT( * ) AS SIGNED ) * - 42 AS col0 FROM tab1 AS cor0
----
126

skipif mysql # not compatible
query I rowsort label-7043
SELECT ALL - CAST ( - - COUNT ( * ) AS INTEGER ) * - 42 AS col0 FROM tab1 AS cor0
----
126

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7044
SELECT - - col1 * + - 29 + - col0 * col0 - + col0 FROM tab2 AS cor0 WHERE NOT + ( - + col1 ) * - + CAST( + col2 AS DECIMAL ) IN ( + 6, col2 )
----
-3641
-6393
-7643

skipif mysql # not compatible
query I rowsort label-7044
SELECT - - col1 * + - 29 + - col0 * col0 - + col0 FROM tab2 AS cor0 WHERE NOT + ( - + col1 ) * - + CAST ( + col2 AS REAL ) IN ( + 6, col2 )
----
-3641
-6393
-7643

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7046
SELECT ALL - SUM( ALL - 31 ) * - 35 FROM tab2
----
-3255

skipif mysql # not compatible
query I rowsort label-7046
SELECT ALL - SUM ( ALL - 31 ) * - 35 FROM tab2
----
-3255

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7047
SELECT ALL - col2 * - CAST( - + col1 AS SIGNED ) FROM tab0
----
-210
-3807
-99

skipif mysql # not compatible
query I rowsort label-7047
SELECT ALL - col2 * - CAST ( - + col1 AS INTEGER ) FROM tab0
----
-210
-3807
-99

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col1 + + + col1 - + - 4 / + 29 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL >= - 16 * + ( col2 ) / + 26 + + 99 AND NOT col0 IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7052
SELECT - 81 * COUNT( * ) FROM tab1 AS cor0
----
-243

skipif mysql # not compatible
query I rowsort label-7052
SELECT - 81 * COUNT ( * ) FROM tab1 AS cor0
----
-243

query I rowsort
SELECT + col2 * + 44 * + col0 - - col1 FROM tab1 AS cor0
----
215438
220665
272319

query I rowsort
SELECT ALL + - 98 * col0 AS col2 FROM tab2 cor0
----
-4508
-6272
-7350

query II rowsort
SELECT DISTINCT 25 AS col2, - col1 FROM tab0
----
25
-1
25
-21
25
-81

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 17 / - - 53 IS NULL
----

query I rowsort
SELECT DISTINCT + 71 * + col0 + - ( 99 ) * - ( 89 ) * - ( + + col0 ) FROM tab2 AS cor0
----
-402040
-559360
-655500

onlyif mysql # DIV for integer division: 
query II rowsort label-7058
SELECT ALL col0 + - 45 DIV - - col1 - - col1 AS col1, - 88 FROM tab0 AS cor0
----
106
-88
53
-88
96
-88

skipif mysql # not compatible
query II rowsort label-7058
SELECT ALL col0 + - 45 / - - col1 - - col1 AS col1, - 88 FROM tab0 AS cor0
----
106
-88
53
-88
96
-88

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

query I rowsort
SELECT + 2 + + + col0 FROM tab1 AS cor0
----
53
87
93

query III rowsort
SELECT * FROM tab2 cor0 WHERE col0 + - + col0 + + col2 + col0 BETWEEN NULL AND + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7062
SELECT - 7 + - SUM( DISTINCT + col1 ) FROM tab1 AS cor0
----
-73

skipif mysql # not compatible
query I rowsort label-7062
SELECT - 7 + - SUM ( DISTINCT + col1 ) FROM tab1 AS cor0
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7063
SELECT + col1 * - 87 * + 48 + + + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7063
SELECT + col1 * - 87 * + 48 + + + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 - ( + 20 ) col1 FROM tab2
----
-71
-87
-97

query III rowsort
SELECT * FROM tab0 WHERE + col2 / + col0 <> 35
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE 13 + - col0 = NULL
----

query I rowsort
SELECT ALL + col2 AS col1 FROM tab0 AS cor0 WHERE NOT col2 * + + 59 + col0 IS NULL
----
10
47
99

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7070
SELECT + MIN( ALL - col0 ) AS col0 FROM tab2 AS cor0 WHERE + 90 NOT IN ( + CAST( col0 AS SIGNED ) + - col2 + + col1 + + col0 * - 30 + + ( - col2 ) )
----
-75

skipif mysql # not compatible
query I rowsort label-7070
SELECT + MIN ( ALL - col0 ) AS col0 FROM tab2 AS cor0 WHERE + 90 NOT IN ( + CAST ( col0 AS INTEGER ) + - col2 + + col1 + + col0 * - 30 + + ( - col2 ) )
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-7071
SELECT MAX( DISTINCT - col0 ) - - COUNT( * ) FROM tab2 AS cor0
----
-43

skipif mysql # not compatible
query I rowsort label-7071
SELECT MAX ( DISTINCT - col0 ) - - COUNT ( * ) FROM tab2 AS cor0
----
-43

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT IN ( - col0 ) AND NULL IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7073
SELECT ALL CAST( NULL AS DECIMAL ) * - col2 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7073
SELECT ALL CAST ( NULL AS REAL ) * - col2 AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7074
SELECT 67 * MAX( ( + 88 ) ) AS col0 FROM tab2
----
5896

skipif mysql # not compatible
query I rowsort label-7074
SELECT 67 * MAX ( ( + 88 ) ) AS col0 FROM tab2
----
5896

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7075
SELECT ALL col0 AS col0, + CAST( NULL AS SIGNED ) FROM tab0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-7075
SELECT ALL col0 AS col0, + CAST ( NULL AS INTEGER ) FROM tab0
----
15
NULL
87
NULL
97
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7076
SELECT + 14 DIV - col2 col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7076
SELECT + 14 / - col2 col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7077
SELECT - 17 * MIN( - 8 ) * COUNT( * ) FROM tab0 AS cor0
----
408

skipif mysql # not compatible
query I rowsort label-7077
SELECT - 17 * MIN ( - 8 ) * COUNT ( * ) FROM tab0 AS cor0
----
408

onlyif mysql # aggregate syntax: 
query I rowsort label-7078
SELECT ALL 92 * - SUM( ALL - - col1 ) FROM tab1 AS cor0
----
-6072

skipif mysql # not compatible
query I rowsort label-7078
SELECT ALL 92 * - SUM ( ALL - - col1 ) FROM tab1 AS cor0
----
-6072

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

query I rowsort
SELECT DISTINCT - col1 * + 79 AS col2 FROM tab1 AS cor0
----
-1106
-3713
-395

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 * - + col0 col2 FROM tab0 AS cor0
----
1215
1827
97

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7083
SELECT DISTINCT 19 * + CAST( - col1 AS SIGNED ) + + 76 DIV - 39 AS col0 FROM tab1
----
-267
-894
-96

skipif mysql # not compatible
query I rowsort label-7083
SELECT DISTINCT 19 * + CAST ( - col1 AS INTEGER ) + + 76 / - 39 AS col0 FROM tab1
----
-267
-894
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-7084
SELECT ALL + 44 * - + MAX( - col1 ) FROM tab1
----
220

skipif mysql # not compatible
query I rowsort label-7084
SELECT ALL + 44 * - + MAX ( - col1 ) FROM tab1
----
220

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7085
SELECT DISTINCT CAST( - col1 AS SIGNED ) DIV - col2 FROM tab2 AS cor0
----
1
2

skipif mysql # not compatible
query I rowsort label-7085
SELECT DISTINCT CAST ( - col1 AS INTEGER ) / - col2 FROM tab2 AS cor0
----
1
2

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

query I rowsort
SELECT ALL - 84 * 21 * 34 AS col0 FROM tab1
----
-59976
-59976
-59976

query I rowsort
SELECT - + 65 - - + 36 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 92 IS NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7090
SELECT ALL MIN( + 2 ) + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7090
SELECT ALL MIN ( + 2 ) + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-1

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7091
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + 6 col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + 88 + - + col2 AS col1 FROM tab0 AS cor0
----
-11
41
78

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

query I rowsort
SELECT col0 - 89 * - col2 AS col0 FROM tab2
----
2093
3624
5237

onlyif mysql # aggregate syntax: 
query I rowsort label-7095
SELECT COUNT( * ) + - - SUM( 29 ) * - COUNT( * ) AS col1 FROM tab2
----
-258

skipif mysql # not compatible
query I rowsort label-7095
SELECT COUNT ( * ) + - - SUM ( 29 ) * - COUNT ( * ) AS col1 FROM tab2
----
-258

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

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

query II rowsort
SELECT ALL col1, ( - col2 ) FROM tab0
----
1
-99
21
-10
81
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7098
SELECT + col1 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( 33, + ( - CAST( 58 AS SIGNED ) ), + - 87 + - col2 * + ( + - col1 ), - col1 + - ( + CAST( - + col2 AS SIGNED ) ) )
----

skipif mysql # not compatible
query I rowsort label-7098
SELECT + col1 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( 33, + ( - CAST ( 58 AS INTEGER ) ), + - 87 + - col2 * + ( + - col1 ), - col1 + - ( + CAST ( - + col2 AS INTEGER ) ) )
----

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

query I rowsort
SELECT DISTINCT - 1 * col2 * - 72 FROM tab2
----
1656
2880
4176

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7102
SELECT + col0 * + + CAST( col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
1058
2560
4350

skipif mysql # not compatible
query I rowsort label-7102
SELECT + col0 * + + CAST ( col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
1058
2560
4350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7103
SELECT ALL CAST( 1 AS SIGNED ) * - col1 + + 14 * + + col1 FROM tab2 AS cor0
----
1001
663
871

skipif mysql # not compatible
query I rowsort label-7103
SELECT ALL CAST ( 1 AS INTEGER ) * - col1 + + 14 * + + col1 FROM tab2 AS cor0
----
1001
663
871

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7104
SELECT - + CAST( + col2 AS SIGNED ) AS col2 FROM tab0 cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-7104
SELECT - + CAST ( + col2 AS INTEGER ) AS col2 FROM tab0 cor0
----
-10
-47
-99

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

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

query I rowsort
SELECT ALL 2 * + + ( + col2 ) FROM tab0
----
198
20
94

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7108
SELECT ALL + MIN( + - col1 ) AS col0 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-7108
SELECT ALL + MIN ( + - col1 ) AS col0 FROM tab0 AS cor0
----
-81

query II rowsort
SELECT DISTINCT - col0 AS col2, col1 + + + ( - col2 ) AS col2 FROM tab1 AS cor0
----
-51
-82
-85
-54
-91
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-7110
SELECT DISTINCT + + 53 + + MIN( col0 ) AS col0 FROM tab2 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-7110
SELECT DISTINCT + + 53 + + MIN ( col0 ) AS col0 FROM tab2 AS cor0
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7111
SELECT + - 22 * - + col1 + + + CAST( NULL AS SIGNED ) col1, + col1 * - col1 * + col2 AS col1 FROM tab2 cor0
----
NULL
-237160
NULL
-260362
NULL
-59823

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7111
SELECT + - 22 * - + col1 + + + CAST ( NULL AS INTEGER ) col1, + col1 * - col1 * + col2 AS col1 FROM tab2 cor0
----
NULL
-237160
NULL
-260362
NULL
-59823

query I rowsort
SELECT DISTINCT 35 * + 82 AS col2 FROM tab0
----
2870

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

skipif mysql # not compatible
query I rowsort label-7113
SELECT ALL - 99 + + + COUNT ( * ) FROM tab0
----
-96

query I rowsort
SELECT + col1 * + col0 + - - col1 + - col1 + col1 AS col1 FROM tab1 AS cor0
----
430
4324
728

query I rowsort
SELECT col1 + - + col1 * - 87 * + col1 FROM tab2 AS cor0
----
226338
390610
515900

query I rowsort
SELECT - col2 + - 19 FROM tab1 AS cor0
----
-115
-78
-87

query I rowsort
SELECT ALL col1 + ( 42 ) FROM tab1 AS cor0
----
47
56
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7118
SELECT col2 + CAST( 79 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
138
147
175

skipif mysql # not compatible
query I rowsort label-7118
SELECT col2 + CAST ( 79 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
138
147
175

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

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

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

query I rowsort
SELECT + 38 + 20 FROM tab0 AS cor0
----
58
58
58

query I rowsort
SELECT + col0 + - 98 AS col0 FROM tab1 AS cor0
----
-13
-47
-7

query I rowsort
SELECT - + col0 + - ( - 37 ) FROM tab2 AS cor0
----
-27
-38
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7125
SELECT DISTINCT COUNT( - col0 ) FROM tab2 WHERE NULL NOT IN ( 21 )
----
0

skipif mysql # not compatible
query I rowsort label-7125
SELECT DISTINCT COUNT ( - col0 ) FROM tab2 WHERE NULL NOT IN ( 21 )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 77 - - ( + - 60 ) AS col0, + col0 col0 FROM tab1
----
-137
51
-137
85
-137
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7127
SELECT - 21 * + - MIN( DISTINCT - - col1 ) * - 34 col2 FROM tab2
----
-36414

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7127
SELECT - 21 * + - MIN ( DISTINCT - - col1 ) * - 34 col2 FROM tab2
----
-36414

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7129
SELECT DISTINCT 9 DIV - col1 FROM tab0
----
-9
0

skipif mysql # not compatible
query I rowsort label-7129
SELECT DISTINCT 9 / - col1 FROM tab0
----
-9
0

query III rowsort
SELECT * FROM tab1 WHERE - - 59 / col1 < - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7131
SELECT ALL + MIN( DISTINCT - 10 ) - - MAX( ALL + col2 ) AS col2 FROM tab1
----
86

skipif mysql # not compatible
query I rowsort label-7131
SELECT ALL + MIN ( DISTINCT - 10 ) - - MAX ( ALL + col2 ) AS col2 FROM tab1
----
86

query I rowsort
SELECT DISTINCT + 51 - - col0 - + ( - - col0 ) * - - col1 AS col2 FROM tab0
----
-1149
-1689
51

onlyif mysql # aggregate syntax: 
query II rowsort label-7133
SELECT ALL COUNT( * ) AS col1, 48 AS col2 FROM tab2
----
3
48

skipif mysql # not compatible
query II rowsort label-7133
SELECT ALL COUNT ( * ) AS col1, 48 AS col2 FROM tab2
----
3
48

onlyif mysql # aggregate syntax: 
query I rowsort label-7134
SELECT - 94 * + 14 * + COUNT( * ) FROM tab2
----
-3948

skipif mysql # not compatible
query I rowsort label-7134
SELECT - 94 * + 14 * + COUNT ( * ) FROM tab2
----
-3948

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

skipif mysql # not compatible
query I rowsort label-7135
SELECT COUNT ( + - CAST ( - 98 AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT - ( 93 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

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

query I rowsort
SELECT + col1 FROM tab2 WHERE NOT + + 53 NOT IN ( + + ( 45 ) )
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 18 col0, col0 * 39 AS col0 FROM tab1 cor0
----
18
1989
18
3315
18
3549

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

skipif mysql # not compatible
query I rowsort label-7141
SELECT ALL - MAX ( - 4 ) FROM tab1 AS cor0
----
4

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7144
SELECT ALL + SUM ( - col0 ) col2 FROM tab0 AS cor0
----
-199

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2, 40 col0 FROM tab1 AS cor0
----
-59
40
-68
40
-96
40

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7147
SELECT DISTINCT MIN( DISTINCT + + 78 ) FROM tab1 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-7147
SELECT DISTINCT MIN ( DISTINCT + + 78 ) FROM tab1 AS cor0
----
78

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7149
SELECT DISTINCT + COUNT( - - 61 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7149
SELECT DISTINCT + COUNT ( - - 61 ) FROM tab0
----
3

query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE NOT NULL NOT IN ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7151
SELECT - + COUNT( * ) * + + SUM( DISTINCT - col1 ) AS col2 FROM tab2 WHERE NULL IS NULL
----
585

skipif mysql # not compatible
query I rowsort label-7151
SELECT - + COUNT ( * ) * + + SUM ( DISTINCT - col1 ) AS col2 FROM tab2 WHERE NULL IS NULL
----
585

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

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

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

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

query I rowsort
SELECT - 33 AS col1 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 8035c665a75d22be5922be1a4e574e03

onlyif mysql # aggregate syntax: 
query I rowsort label-7156
SELECT - + MAX( DISTINCT col2 ) FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7156
SELECT - + MAX ( DISTINCT col2 ) FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7157
SELECT - col1 DIV - col0 * - + col0 AS col1, ( + + col0 ) + + col2 FROM tab1 cor0
----
0
144
0
147
0
159

skipif mysql # not compatible
query II rowsort label-7157
SELECT - col1 / - col0 * - + col0 AS col1, ( + + col0 ) + + col2 FROM tab1 cor0
----
0
144
0
147
0
159

onlyif mysql # DIV for integer division: 
query I rowsort label-7158
SELECT + - 3 DIV + col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7158
SELECT + - 3 / + col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - 99 + + 72 FROM tab2 AS cor0
----
-27
-27
-27

query I rowsort
SELECT ALL - + 22 - - col1 + - 73 * 72 FROM tab1 AS cor0
----
-5231
-5264
-5273

query I rowsort
SELECT ALL 40 + col2 AS col1 FROM tab1 cor0
----
108
136
99

onlyif mysql # DIV for integer division: 
query I rowsort label-7162
SELECT + col0 DIV + col1 - + 80 AS col1 FROM tab1 AS cor0
----
-63
-77
-79

skipif mysql # not compatible
query I rowsort label-7162
SELECT + col0 / + col1 - + 80 AS col1 FROM tab1 AS cor0
----
-63
-77
-79

query I rowsort
SELECT ALL + - col1 - - col2 - - - col1 FROM tab0 AS cor0
----
-115
-32
97

onlyif mysql # DIV for integer division: 
query I rowsort label-7164
SELECT DISTINCT col2 DIV + 40 AS col2 FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-7164
SELECT DISTINCT col2 / + 40 AS col2 FROM tab2
----
0
1

query I rowsort
SELECT ALL col0 - col0 - + col1 FROM tab2
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-7166
SELECT + MAX( ALL + col2 ) * + 70 AS col2 FROM tab0
----
6930

skipif mysql # not compatible
query I rowsort label-7166
SELECT + MAX ( ALL + col2 ) * + 70 AS col2 FROM tab0
----
6930

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

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

query II rowsort
SELECT ALL 37 * col0, col1 FROM tab0
----
3219
21
3589
1
555
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7169
SELECT MAX( ALL - CAST( - - col0 AS SIGNED ) ) AS col2 FROM tab2 WHERE NOT ( NOT ( NULL ) <= col2 + ( - col2 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7169
SELECT MAX ( ALL - CAST ( - - col0 AS INTEGER ) ) AS col2 FROM tab2 WHERE NOT ( NOT ( NULL ) <= col2 + ( - col2 ) )
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7171
SELECT + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab1 AS cor0 WHERE NOT + 96 < + col2 + col2
----

skipif mysql # not compatible
query I rowsort label-7171
SELECT + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab1 AS cor0 WHERE NOT + 96 < + col2 + col2
----

query I rowsort
SELECT DISTINCT + col1 * + 14 FROM tab1
----
196
658
70

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7174
SELECT * FROM tab0 WHERE NOT - - CAST( NULL AS SIGNED ) * - 66 * - col0 IS NULL
----

skipif mysql # not compatible
query III rowsort label-7174
SELECT * FROM tab0 WHERE NOT - - CAST ( NULL AS INTEGER ) * - 66 * - col0 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7175
SELECT DISTINCT - MAX( DISTINCT CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-7175
SELECT DISTINCT - MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 JOIN tab1 AS cor1 ON NOT ( NOT NULL IS NULL )
----
54 values hashing to 375f372843089b03f23b00160007527a

onlyif mysql # DIV for integer division: 
query I rowsort label-7177
SELECT - 18 * + col1 + - + 23 DIV - col0 AS col2 FROM tab0 AS cor0
----
-1457
-18
-378

skipif mysql # not compatible
query I rowsort label-7177
SELECT - 18 * + col1 + - + 23 / - col0 AS col2 FROM tab0 AS cor0
----
-1457
-18
-378

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7179
SELECT ALL - + SUM( DISTINCT + + ( + col0 ) ) + COUNT( * ) FROM tab2 cor0
----
-182

skipif mysql # not compatible
query I rowsort label-7179
SELECT ALL - + SUM ( DISTINCT + + ( + col0 ) ) + COUNT ( * ) FROM tab2 cor0
----
-182

query I rowsort
SELECT - 32 * - col2 AS col2 FROM tab1 AS cor0
----
1888
2176
3072

onlyif mysql # aggregate syntax: 
query I rowsort label-7181
SELECT SUM( + col1 ) + + - ( 68 ) FROM tab1 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-7181
SELECT SUM ( + col1 ) + + - ( 68 ) FROM tab1 AS cor0
----
-2

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7184
SELECT CAST( - 77 AS SIGNED ) + + col2 FROM tab1
----
-18
-9
19

skipif mysql # not compatible
query I rowsort label-7184
SELECT CAST ( - 77 AS INTEGER ) + + col2 FROM tab1
----
-18
-9
19

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

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

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

query I rowsort
SELECT - - 71 FROM tab1 WHERE NULL IS NULL
----
71
71
71

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab0 AS cor0 WHERE - 29 NOT BETWEEN NULL AND + + 59 + + 81
----

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <= + + col1 AND NULL IS NOT NULL
----

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

skipif mysql # not compatible
query I rowsort label-7191
SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 35 + + - col1 + - 64 - - col0 * 98 col0 FROM tab0
----
1360
8476
9476

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

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

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

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

query I rowsort
SELECT ALL - 91 + + - col1 + + - col1 + - 65 * - col2 * - - col0 * - - col2 + + col0 * - col0 AS col1 FROM tab0 AS cor0
----
2153297
557798
61785803

query I rowsort
SELECT 45 AS col2 FROM tab2 cor0 WHERE NULL < NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - 20 IS NULL
----

query II rowsort
SELECT + 77 AS col1, - 88 FROM tab1
----
77
-88
77
-88
77
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-7199
SELECT - SUM( 36 ) AS col1 FROM tab1 AS cor0
----
-108

skipif mysql # not compatible
query I rowsort label-7199
SELECT - SUM ( 36 ) AS col1 FROM tab1 AS cor0
----
-108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7200
SELECT ALL - + CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0 WHERE NOT ( NULL ) = + col2 + + + col2
----

skipif mysql # not compatible
query I rowsort label-7200
SELECT ALL - + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0 WHERE NOT ( NULL ) = + col2 + + + col2
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT col1 NOT BETWEEN - col0 / col0 + + - 55 AND NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7203
SELECT COUNT( * ) * - - 92 FROM tab1 AS cor0
----
276

skipif mysql # not compatible
query I rowsort label-7203
SELECT COUNT ( * ) * - - 92 FROM tab1 AS cor0
----
276

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7207
SELECT + MIN( DISTINCT CAST( 74 AS SIGNED ) ) FROM tab2
----
74

skipif mysql # not compatible
query I rowsort label-7207
SELECT + MIN ( DISTINCT CAST ( 74 AS INTEGER ) ) FROM tab2
----
74

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7209
SELECT DISTINCT - - col0 DIV - 41 col2 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7209
SELECT DISTINCT - - col0 / - 41 col2 FROM tab2 AS cor0
----
-1

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 60 * 59 + + + 56 IS NOT NULL
----

query I rowsort
SELECT ALL col0 + + - 30 FROM tab2 cor0
----
16
34
45

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

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

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

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

query I rowsort
SELECT - ( 24 ) + + 47 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2

query I rowsort
SELECT ALL 20 + - 22 + + col0 FROM tab0
----
13
85
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7218
SELECT 2 + + CAST( + COUNT( * ) AS SIGNED ) FROM tab0
----
5

skipif mysql # not compatible
query I rowsort label-7218
SELECT 2 + + CAST ( + COUNT ( * ) AS INTEGER ) FROM tab0
----
5

query I rowsort
SELECT + 25 + 78 FROM tab1
----
103
103
103

onlyif mysql # aggregate syntax: 
query I rowsort label-7220
SELECT ALL + 41 + + SUM( ALL + col0 ) AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
240

skipif mysql # not compatible
query I rowsort label-7220
SELECT ALL + 41 + + SUM ( ALL + col0 ) AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
240

query I rowsort
SELECT DISTINCT + + 69 - + col1 * - col1 FROM tab2 AS cor0
----
2670
4558
5998

query I rowsort
SELECT + 35 * 30 FROM tab0 AS cor0
----
1050
1050
1050

onlyif mysql # aggregate syntax: 
query I rowsort label-7223
SELECT ALL 25 - - COUNT( * ) FROM tab0
----
28

skipif mysql # not compatible
query I rowsort label-7223
SELECT ALL 25 - - COUNT ( * ) FROM tab0
----
28

query I rowsort
SELECT DISTINCT - col1 - + 86 AS col0 FROM tab0
----
-107
-167
-87

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7227
SELECT ALL ( COUNT( * ) ) * + ( - + 67 ) - - - ( MIN( 49 ) ) AS col0 FROM tab1 AS cor0
----
-250

skipif mysql # not compatible
query I rowsort label-7227
SELECT ALL ( COUNT ( * ) ) * + ( - + 67 ) - - - ( MIN ( 49 ) ) AS col0 FROM tab1 AS cor0
----
-250

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

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

query II rowsort
SELECT DISTINCT col2, col1 AS col1 FROM tab0 AS cor0
----
10
21
47
81
99
1

query II rowsort
SELECT + - 99, col0 AS col1 FROM tab1 AS cor0
----
-99
51
-99
85
-99
91

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

skipif mysql # not compatible
query I rowsort label-7232
SELECT 93 * + + COUNT ( + + col0 ) FROM tab0
----
279

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7234
SELECT DISTINCT - 41 * 3 + COUNT( * ) col0 FROM tab2 AS cor0
----
-120

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

query II rowsort
SELECT col2 * 49 AS col1, + col2 * - col1 * + + 93 * + + col2 AS col0 FROM tab2 AS cor0
----
1127
-2509047
1960
-11457600
2842
-20961084

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

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NOT 29 IS NULL )
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

query I rowsort
SELECT DISTINCT - col0 + - 35 AS col1 FROM tab2
----
-110
-81
-99

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

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

query I rowsort
SELECT DISTINCT col2 + - + 23 FROM tab0 cor0
----
-13
24
76

onlyif mysql # aggregate syntax: 
query I rowsort label-7242
SELECT - MAX( + col0 ) + 34 AS col1 FROM tab1 cor0
----
-57

skipif mysql # not compatible
query I rowsort label-7242
SELECT - MAX ( + col0 ) + 34 AS col1 FROM tab1 cor0
----
-57

query I rowsort
SELECT - - col0 + col2 + + 12 AS col2 FROM tab0 AS cor0
----
109
208
74

query I rowsort
SELECT + 68 + - - col1 - + col2 * + col2 FROM tab2 AS cor0
----
-1455
-3229
-410

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7246
SELECT + 14 DIV + + CAST( + 89 AS SIGNED ) + + col1 AS col0 FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-7246
SELECT + 14 / + + CAST ( + 89 AS INTEGER ) + + col1 AS col0 FROM tab0
----
1
21
81

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

onlyif mysql # DIV for integer division: 
query II rowsort label-7248
SELECT ( - + col1 ) + + - 62 DIV - 53 AS col0, col0 AS col1 FROM tab2
----
-50
46
-66
75
-76
64

skipif mysql # not compatible
query II rowsort label-7248
SELECT ( - + col1 ) + + - 62 / - 53 AS col0, col0 AS col1 FROM tab2
----
-50
46
-66
75
-76
64

onlyif mysql # DIV for integer division: 
query I rowsort label-7249
SELECT ( col2 ) DIV + + 84 AS col0 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7249
SELECT ( col2 ) / + + 84 AS col0 FROM tab1
----
0
0
1

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 78 * - - ( - col2 ) - - - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7251
SELECT DISTINCT - MIN( ALL - 33 ) FROM tab2 WHERE NOT ( 77 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7251
SELECT DISTINCT - MIN ( ALL - 33 ) FROM tab2 WHERE NOT ( 77 ) IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE - + col2 / - col0 < NULL
----

query I rowsort
SELECT ALL col2 * - + col0 + - + col1 FROM tab2 AS cor0
----
-1109
-2637
-4417

query I rowsort
SELECT - 95 * - col0 - + col0 FROM tab0 cor0
----
1410
8178
9118

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col1 <= - 58
----
15
81
47

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT - 18 IS NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7257
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 IN ( - + col2, col0 * - CAST( + 63 AS SIGNED ), 23 + - 30, - + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7257
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 IN ( - + col2, col0 * - CAST ( + 63 AS INTEGER ), 23 + - 30, - + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7258
SELECT ALL + ( - 44 ) + COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-41

skipif mysql # not compatible
query I rowsort label-7258
SELECT ALL + ( - 44 ) + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-41

query I rowsort
SELECT 4 * + + 52 FROM tab0 AS cor0
----
208
208
208

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

query III rowsort
SELECT * FROM tab1 WHERE NOT - - 90 <= + 46 + ( + col0 ) + + - col1 * + col1
----
51
14
96
91
47
68

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

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

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

query II rowsort
SELECT 82, col2 AS col0 FROM tab1
----
82
59
82
68
82
96

query I rowsort
SELECT + 74 * - + 14 * + col1 FROM tab2
----
-52836
-69412
-79772

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7266
SELECT DISTINCT - col2 * - CAST( 12 AS SIGNED ) AS col0 FROM tab0
----
1188
120
564

skipif mysql # not compatible
query I rowsort label-7266
SELECT DISTINCT - col2 * - CAST ( 12 AS INTEGER ) AS col0 FROM tab0
----
1188
120
564

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7269
SELECT MIN( ALL - col0 ), 24 AS col2 FROM tab2
----
-75
24

skipif mysql # not compatible
query II rowsort label-7269
SELECT MIN ( ALL - col0 ), 24 AS col2 FROM tab2
----
-75
24

query I rowsort
SELECT DISTINCT 45 + 73 FROM tab0 AS cor0
----
118

query I rowsort
SELECT ALL - + 7 + col1 + - col1 * ( - col0 ) AS col1 FROM tab1 AS cor0
----
423
4317
721

query II rowsort
SELECT ALL + col1 + + col1, + col2 + + - col1 - + col2 AS col0 FROM tab1 AS cor0
----
10
-5
28
-14
94
-47

query I rowsort
SELECT ALL + - col0 * - col2 * + col0 FROM tab2 AS cor0
----
163840
326250
48668

query I rowsort
SELECT DISTINCT - 89 * + + col0 * - col1 + + ( - col0 ) FROM tab0
----
108120
162516
8536

onlyif mysql # DIV for integer division: 
query I rowsort label-7275
SELECT DISTINCT col2 DIV - 78 AS col0 FROM tab0
----
-1
0

skipif mysql # not compatible
query I rowsort label-7275
SELECT DISTINCT col2 / - 78 AS col0 FROM tab0
----
-1
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col1 * + - 61 > 96
----
97
1
99

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT IN ( ( col2 ) )
----

query I rowsort
SELECT + ( + col2 ) + 18 - + col1 AS col1 FROM tab1
----
100
39
72

onlyif mysql # aggregate syntax: 
query II rowsort label-7279
SELECT DISTINCT + 77 * + MIN( DISTINCT + 35 ) AS col1, ( - 37 ) FROM tab2
----
2695
-37

skipif mysql # not compatible
query II rowsort label-7279
SELECT DISTINCT + 77 * + MIN ( DISTINCT + 35 ) AS col1, ( - 37 ) FROM tab2
----
2695
-37

query I rowsort
SELECT + 0 + + col1 AS col1 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7281
SELECT - COUNT( * ) + - + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-7281
SELECT - COUNT ( * ) + - + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col1 > - + 48
----
15
81
47

query I rowsort
SELECT - col1 * 84 AS col1 FROM tab1 AS cor0
----
-1176
-3948
-420

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7287
SELECT 86 DIV - 70 col1 FROM tab0
----
-1
-1
-1

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

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

query I rowsort
SELECT DISTINCT col0 + + + 28 FROM tab1
----
113
119
79

query III rowsort
SELECT * FROM tab2 WHERE NOT 20 + - + 53 + + + 94 + - + 30 IS NOT NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7292
SELECT SUM( ALL + + 40 ) AS col2 FROM tab0 AS cor0
----
120

skipif mysql # not compatible
query I rowsort label-7292
SELECT SUM ( ALL + + 40 ) AS col2 FROM tab0 AS cor0
----
120

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7294
SELECT + SUM( - col1 ) + 89 AS col2 FROM tab0 AS cor0
----
-14

skipif mysql # not compatible
query I rowsort label-7294
SELECT + SUM ( - col1 ) + 89 AS col2 FROM tab0 AS cor0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-7295
SELECT - + 49 * - 83 + - - 6 * - COUNT( * ) FROM tab2 AS cor0
----
4049

skipif mysql # not compatible
query I rowsort label-7295
SELECT - + 49 * - 83 + - - 6 * - COUNT ( * ) FROM tab2 AS cor0
----
4049

query I rowsort
SELECT ALL - - col1 AS col1 FROM tab0 AS cor0 WHERE NULL <= - 82
----

query I rowsort
SELECT - 8 + + col1 FROM tab2 AS cor0
----
43
59
69

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

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

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

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

query I rowsort
SELECT - + col1 + 58 AS col0 FROM tab2 AS cor0
----
-19
-9
7

query I rowsort
SELECT ALL - col2 - 42 FROM tab1 AS cor0
----
-101
-110
-138

query I rowsort
SELECT + col1 - + + 64 AS col0 FROM tab0
----
-43
-63
17

onlyif mysql # aggregate syntax: 
query I rowsort label-7303
SELECT - COUNT( ALL + + 22 ) * - 45 AS col1 FROM tab1 AS cor0 WHERE + col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7303
SELECT - COUNT ( ALL + + 22 ) * - 45 AS col1 FROM tab1 AS cor0 WHERE + col1 IS NULL
----
0

query I rowsort
SELECT DISTINCT + col1 * - col1 + - col2 AS col1 FROM tab2 AS cor0
----
-2624
-4547
-5969

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 + col0 - + col2 col2 FROM tab1 AS cor0
----
-24
-59
21

onlyif mysql # aggregate syntax: 
query I rowsort label-7306
SELECT + 74 - + + COUNT( * ) FROM tab2 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-7306
SELECT + 74 - + + COUNT ( * ) FROM tab2 AS cor0
----
71

query I rowsort
SELECT DISTINCT - col2 * 32 * + - 6 FROM tab0 AS cor0
----
19008
1920
9024

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

skipif mysql # not compatible
query I rowsort label-7308
SELECT DISTINCT ( + MAX ( - + col0 ) ) FROM tab0
----
-15

query II rowsort
SELECT ALL + col0, + 19 FROM tab2
----
46
19
64
19
75
19

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 11 col0, col1 FROM tab0 AS cor0
----
-11
1
-11
21
-11
81

query II rowsort
SELECT - 18 * + col1 * + + col1 AS col0, + col0 AS col2 FROM tab2 AS cor0
----
-106722
64
-46818
46
-80802
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7313
SELECT col1 * + CAST( + 67 AS SIGNED ) + col0 AS col0 FROM tab2 AS cor0
----
3463
4564
5223

skipif mysql # not compatible
query I rowsort label-7313
SELECT col1 * + CAST ( + 67 AS INTEGER ) + col0 AS col0 FROM tab2 AS cor0
----
3463
4564
5223

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

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

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

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

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

query I rowsort
SELECT DISTINCT col2 * 68 FROM tab1 AS cor0
----
4012
4624
6528

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7318
SELECT MIN ( ALL - - 31 ) col0 FROM tab2 AS cor0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-7319
SELECT SUM( 95 ) FROM tab2 AS cor0
----
285

skipif mysql # not compatible
query I rowsort label-7319
SELECT SUM ( 95 ) FROM tab2 AS cor0
----
285

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7321
SELECT ALL 82 DIV + + COUNT( + + 5 ) FROM tab1
----
27

skipif mysql # not compatible
query I rowsort label-7321
SELECT ALL 82 / + + COUNT ( + + 5 ) FROM tab1
----
27

onlyif mysql # DIV for integer division: 
query II rowsort label-7322
SELECT col0 * + col0, col2 DIV ( 32 ) AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
225
1
7569
0
9409
3

skipif mysql # not compatible
query II rowsort label-7322
SELECT col0 * + col0, col2 / ( 32 ) AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
225
1
7569
0
9409
3

query II rowsort
SELECT DISTINCT ( + - col0 ), + col0 FROM tab0 cor0
----
-15
15
-87
87
-97
97

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

query I rowsort
SELECT ALL - ( - col2 ) * + col0 AS col0 FROM tab2
----
1058
2560
4350

query II rowsort
SELECT - col1 AS col0, + 89 FROM tab1
----
-14
89
-47
89
-5
89

query I rowsort
SELECT DISTINCT + ( 38 ) / col0 - - col0 + - 73 FROM tab2 AS cor0 WHERE + 26 > NULL
----

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7329
SELECT DISTINCT + 65 + - COUNT( * ) + COUNT( * ) * - ( + CAST( NULL AS SIGNED ) ) AS col0, 27 FROM tab0 AS cor0
----
NULL
27

skipif mysql # not compatible
query II rowsort label-7329
SELECT DISTINCT + 65 + - COUNT ( * ) + COUNT ( * ) * - ( + CAST ( NULL AS INTEGER ) ) AS col0, 27 FROM tab0 AS cor0
----
NULL
27

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

query I rowsort
SELECT 41 - + 51 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7332
SELECT * FROM tab0 WHERE col1 * CAST( NULL AS DECIMAL ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7332
SELECT * FROM tab0 WHERE col1 * CAST ( NULL AS REAL ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7333
SELECT - CAST( + - ( col0 ) AS SIGNED ) * ( + 30 ) + + + 89 AS col0 FROM tab1
----
1619
2639
2819

skipif mysql # not compatible
query I rowsort label-7333
SELECT - CAST ( + - ( col0 ) AS INTEGER ) * ( + 30 ) + + + 89 AS col0 FROM tab1
----
1619
2639
2819

query I rowsort
SELECT DISTINCT 73 - + 97 AS col1 FROM tab0
----
-24

query I rowsort
SELECT DISTINCT + ( - + 89 ) - + col2 AS col1 FROM tab0
----
-136
-188
-99

query I rowsort
SELECT - col0 + + 22 AS col0 FROM tab0
----
-65
-75
7

query I rowsort
SELECT + ( col2 ) * - - 59 + - col0 FROM tab1
----
3396
3921
5613

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7338
SELECT DISTINCT col2 AS col0, CAST( NULL AS SIGNED ) FROM tab1
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-7338
SELECT DISTINCT col2 AS col0, CAST ( NULL AS INTEGER ) FROM tab1
----
59
NULL
68
NULL
96
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 61 col2 FROM tab0 AS cor0 WHERE NOT col2 * 8 BETWEEN NULL AND + col0
----
-61
-61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col2 col2, - 35 * - col2 * - 63 FROM tab2 AS cor0
----
-23
-50715
-40
-88200
-58
-127890

onlyif mysql # DIV for integer division: 
query I rowsort label-7342
SELECT 14 * ( 29 ) * + col0 + + col1 + - 58 + - col0 DIV - col1 FROM tab0
----
35289
39422
6113

skipif mysql # not compatible
query I rowsort label-7342
SELECT 14 * ( 29 ) * + col0 + + col1 + - 58 + - col0 / - col1 FROM tab0
----
35289
39422
6113

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - col2 - - 50 AND - col1 * - - col0 + + ( - 18 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7344
SELECT ALL - COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL IN ( - col1 + + 34 )
----
0

skipif mysql # not compatible
query I rowsort label-7344
SELECT ALL - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL IN ( - col1 + + 34 )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 * + col1 col2 FROM tab0 AS cor0
----
-1215
-1827
-97

query I rowsort
SELECT - col2 AS col2 FROM tab0 AS cor0 WHERE NOT col2 BETWEEN 35 AND - ( + + 71 )
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-7347
SELECT + 72 * + COUNT( * ) * + + COUNT( * ) AS col0 FROM tab1 AS cor0
----
648

skipif mysql # not compatible
query I rowsort label-7347
SELECT + 72 * + COUNT ( * ) * + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
648

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7349
SELECT - - COUNT( * ) * - + 52 + - + 44 + - - 15 + COUNT( * ) FROM tab0 AS cor0
----
-182

skipif mysql # not compatible
query I rowsort label-7349
SELECT - - COUNT ( * ) * - + 52 + - + 44 + - - 15 + COUNT ( * ) FROM tab0 AS cor0
----
-182

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7350
SELECT + CAST( - + 50 AS SIGNED ) * - - col1 + + + 39 * - col2 FROM tab1 AS cor0
----
-2551
-4444
-5002

skipif mysql # not compatible
query I rowsort label-7350
SELECT + CAST ( - + 50 AS INTEGER ) * - - col1 + + + 39 * - col2 FROM tab1 AS cor0
----
-2551
-4444
-5002

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7351
SELECT ALL - 9, - COUNT( * ) DIV COUNT( * ) AS col2 FROM tab2
----
-9
-1

skipif mysql # not compatible
query II rowsort label-7351
SELECT ALL - 9, - COUNT ( * ) / COUNT ( * ) AS col2 FROM tab2
----
-9
-1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7352
SELECT + ( - col1 ) * - CAST( - col2 AS SIGNED ) DIV + col2 col2 FROM tab1 WHERE - col0 <> + col2
----
-14
-47
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7352
SELECT + ( - col1 ) * - CAST ( - col2 AS INTEGER ) / + col2 col2 FROM tab1 WHERE - col0 <> + col2
----
-14
-47
-5

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7354
SELECT ALL - 69 + - 59 * - - MAX( DISTINCT - + 30 ) AS col1 FROM tab2
----
1701

skipif mysql # not compatible
query I rowsort label-7354
SELECT ALL - 69 + - 59 * - - MAX ( DISTINCT - + 30 ) AS col1 FROM tab2
----
1701

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

skipif mysql # not compatible
query II rowsort label-7355
SELECT ALL - 1 + ( + COUNT ( * ) ) AS col2, + COUNT ( * ) FROM tab2 AS cor0
----
2
3

onlyif mysql # DIV for integer division: 
query I rowsort label-7356
SELECT - 91 DIV + col0 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7356
SELECT - 91 / + col0 FROM tab1
----
-1
-1
-1

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7358
SELECT + MAX( + col1 ) DIV COUNT( * ) FROM tab1
----
15

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

query I rowsort
SELECT - 5 * col0 AS col0 FROM tab1 WHERE NOT 19 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7360
SELECT DISTINCT MAX( ALL 23 ) AS col0 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-7360
SELECT DISTINCT MAX ( ALL 23 ) AS col0 FROM tab2
----
23

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7362
SELECT - 5 * + MAX( ALL col0 ) AS col0 FROM tab0
----
-485

skipif mysql # not compatible
query I rowsort label-7362
SELECT - 5 * + MAX ( ALL col0 ) AS col0 FROM tab0
----
-485

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col2 BETWEEN - col1 * col1 AND 16
----
15
81
47
97
1
99

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 74 BETWEEN - ( col2 ) * - col2 AND col1 / col0 + 75
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7365
SELECT ALL + 84 * - SUM( ALL col2 ) AS col0 FROM tab2
----
-10164

skipif mysql # not compatible
query I rowsort label-7365
SELECT ALL + 84 * - SUM ( ALL col2 ) AS col0 FROM tab2
----
-10164

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7366
SELECT ALL 85 DIV - COUNT( * ) AS col1 FROM tab1
----
-28

skipif mysql # not compatible
query I rowsort label-7366
SELECT ALL 85 / - COUNT ( * ) AS col1 FROM tab1
----
-28

query I rowsort
SELECT DISTINCT - col0 - - 80 AS col0 FROM tab1 WHERE NOT col1 * - 7 - + 91 <= col2 + - col0 * - col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col1 * 71 + 15 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7369
SELECT DISTINCT + MAX( ALL col2 ) + ( + COUNT( * ) ) * 24 col2 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

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

query III rowsort
SELECT * FROM tab1 WHERE NOT + 74 + + 18 NOT IN ( - col0 + col2 * - col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7371
SELECT DISTINCT 75 DIV col1 AS col1 FROM tab0
----
0
3
75

skipif mysql # not compatible
query I rowsort label-7371
SELECT DISTINCT 75 / col1 AS col1 FROM tab0
----
0
3
75

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

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

query I rowsort
SELECT + col0 + + 56 FROM tab0
----
143
153
71

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

query I rowsort
SELECT - col0 + + ( + col2 ) FROM tab0
----
-77
2
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 71 + col1 * - 13 col2 FROM tab1
----
-111
-540
6

query I rowsort
SELECT DISTINCT col2 + + 69 AS col1 FROM tab2
----
109
127
92

query I rowsort
SELECT DISTINCT + 12 - 64 * - 59 AS col2 FROM tab0
----
3788

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT IN ( col0 * - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7380
SELECT * FROM tab1 WHERE NOT ( 52 ) IN ( + CAST( col1 AS SIGNED ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7380
SELECT * FROM tab1 WHERE NOT ( 52 ) IN ( + CAST ( col1 AS INTEGER ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 33 + col0 col1 FROM tab2
----
108
79
97

query I rowsort
SELECT - col2 + + 59 AS col1 FROM tab2 WHERE NOT ( + col0 ) NOT IN ( + col0 )
----
1
19
36

query I rowsort
SELECT - 15 * 67 + - col1 FROM tab2
----
-1056
-1072
-1082

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7385
SELECT DISTINCT col0 + CAST( - col2 - 98 AS SIGNED ) DIV col2 AS col2 FROM tab2
----
41
61
73

skipif mysql # not compatible
query I rowsort label-7385
SELECT DISTINCT col0 + CAST ( - col2 - 98 AS INTEGER ) / col2 AS col2 FROM tab2
----
41
61
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7386
SELECT col0 + - CAST( + col0 AS SIGNED ) AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7386
SELECT col0 + - CAST ( + col0 AS INTEGER ) AS col1 FROM tab2
----
0
0
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7388
SELECT CAST( 32 AS SIGNED ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
32
32
32

skipif mysql # not compatible
query I rowsort label-7388
SELECT CAST ( 32 AS INTEGER ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
32
32
32

query I rowsort
SELECT - 24 FROM tab0 AS cor0 CROSS JOIN tab2
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc

query I rowsort
SELECT + 59 FROM tab1 cor0 CROSS JOIN tab2
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

onlyif mysql # aggregate syntax: 
query I rowsort label-7391
SELECT SUM( ALL + 74 ) AS col1 FROM tab1
----
222

skipif mysql # not compatible
query I rowsort label-7391
SELECT SUM ( ALL + 74 ) AS col1 FROM tab1
----
222

onlyif mysql # aggregate syntax: 
query I rowsort label-7392
SELECT DISTINCT + - 31 * COUNT( * ) col2 FROM tab2 AS cor0
----
-93

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7394
SELECT DISTINCT ( MAX( col2 ) ) + + 95 FROM tab2 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-7394
SELECT DISTINCT ( MAX ( col2 ) ) + + 95 FROM tab2 AS cor0
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-7395
SELECT - MIN( + 15 ) * + 27 AS col2 FROM tab1 AS cor0
----
-405

skipif mysql # not compatible
query I rowsort label-7395
SELECT - MIN ( + 15 ) * + 27 AS col2 FROM tab1 AS cor0
----
-405

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

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

query I rowsort
SELECT col0 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7398
SELECT 41 * - MIN( ALL 53 ) AS col1 FROM tab2 cor0
----
-2173

skipif mysql # not compatible
query I rowsort label-7398
SELECT 41 * - MIN ( ALL 53 ) AS col1 FROM tab2 cor0
----
-2173

onlyif mysql # DIV for integer division: 
query I rowsort label-7399
SELECT 75 DIV + 9 AS col1 FROM tab2 AS cor0
----
8
8
8

skipif mysql # not compatible
query I rowsort label-7399
SELECT 75 / + 9 AS col1 FROM tab2 AS cor0
----
8
8
8

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

query I rowsort
SELECT ALL + 58 AS col1 FROM tab1 WHERE NOT NULL < col1 + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * ( col2 ) * + ( - col0 * - 70 ) col0 FROM tab0
----
1278900
3997350
672210

query I rowsort
SELECT DISTINCT - col1 FROM tab0 WHERE col1 * - ( + col1 ) BETWEEN col2 AND col1
----

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

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

query I rowsort
SELECT 85 * - col0 * + 93 FROM tab1
----
-403155
-671925
-719355

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7406
SELECT CAST ( NULL AS INTEGER ) + - MIN ( col2 ) col1 FROM tab0
----
NULL

query I rowsort
SELECT col0 AS col2 FROM tab2 WHERE ( NULL ) NOT IN ( 41 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7408
SELECT + - 19 + + - 55 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7408
SELECT + - 19 + + - 55 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 4 * + col2 + - col1 col2 FROM tab2 AS cor0
----
165
41
83

onlyif mysql # aggregate syntax: 
query I rowsort label-7412
SELECT DISTINCT - ( COUNT( * ) ) * COUNT( * ) + + 56 * COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
423

skipif mysql # not compatible
query I rowsort label-7412
SELECT DISTINCT - ( COUNT ( * ) ) * COUNT ( * ) + + 56 * COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
423

query I rowsort
SELECT 99 AS col0 FROM tab0 cor0 JOIN tab2 AS cor1 ON ( NULL ) IS NOT NULL
----

query I rowsort
SELECT + 41 * - + col1 AS col0 FROM tab2
----
-2091
-2747
-3157

onlyif mysql # aggregate syntax: 
query I rowsort label-7415
SELECT ALL COUNT( * ) * + 52 col1 FROM tab1
----
156

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 51 - + col0 col2 FROM tab1 AS cor0
----
-102
-136
-142

onlyif mysql # aggregate syntax: 
query I rowsort label-7419
SELECT DISTINCT ( - COUNT( * ) ) AS col2 FROM tab0 AS cor0 WHERE ( + col0 ) <= + col0
----
-3

skipif mysql # not compatible
query I rowsort label-7419
SELECT DISTINCT ( - COUNT ( * ) ) AS col2 FROM tab0 AS cor0 WHERE ( + col0 ) <= + col0
----
-3

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( + col0 )
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7424
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - col1 + - - CAST( - col2 AS SIGNED ) ) <= col1
----

skipif mysql # not compatible
query III rowsort label-7424
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - col1 + - - CAST ( - col2 AS INTEGER ) ) <= col1
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - ( ( col1 ) ) < ( - ( 65 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-7426
SELECT ALL 22 + col0 DIV col1 FROM tab0 WHERE 84 * + 86 IS NOT NULL
----
119
22
26

skipif mysql # not compatible
query I rowsort label-7426
SELECT ALL 22 + col0 / col1 FROM tab0 WHERE 84 * + 86 IS NOT NULL
----
119
22
26

query I rowsort
SELECT 20 * col1 AS col1 FROM tab2
----
1020
1340
1540

query I rowsort
SELECT + col2 + - 96 / + col0 AS col1 FROM tab0 WHERE NOT col0 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7429
SELECT DISTINCT + COUNT( * ) * 77 FROM tab1
----
231

skipif mysql # not compatible
query I rowsort label-7429
SELECT DISTINCT + COUNT ( * ) * 77 FROM tab1
----
231

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7430
SELECT ALL * FROM tab1 WHERE NULL BETWEEN col1 AND ( - ( col2 ) + + CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-7430
SELECT ALL * FROM tab1 WHERE NULL BETWEEN col1 AND ( - ( col2 ) + + CAST ( NULL AS REAL ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7431
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - col2 ) >= + 2 * - CAST( col1 AS SIGNED )
----
97
1
99

skipif mysql # not compatible
query III rowsort label-7431
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - col2 ) >= + 2 * - CAST ( col1 AS INTEGER )
----
97
1
99

query I rowsort
SELECT DISTINCT col2 * + 93 + col0 AS col2 FROM tab1
----
5572
6415
8979

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

query I rowsort
SELECT DISTINCT + 46 * + - 82 FROM tab1 AS cor0
----
-3772

query I rowsort
SELECT DISTINCT - 34 AS col1 FROM tab0 AS cor0 WHERE NOT ( col1 ) <> 41
----

query I rowsort
SELECT - + col1 * + + col1 + - - 83 * - 96 + - col0 FROM tab2 AS cor0
----
-10615
-12532
-13961

query II rowsort
SELECT ALL 97, - 61 AS col2 FROM tab2 cor0
----
97
-61
97
-61
97
-61

query I rowsort
SELECT 28 + 34 AS col2 FROM tab2 AS cor0
----
62
62
62

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7441
SELECT - CAST( NULL AS SIGNED ) + AVG ( DISTINCT + 24 ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7441
SELECT - CAST ( NULL AS INTEGER ) + AVG ( DISTINCT + 24 ) AS col1 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT col2 * + 17 * - - col1 * + 53 AS col2 FROM tab2
----
1056873
2775080
3501286

query III rowsort
SELECT * FROM tab0 WHERE - col1 < ( NULL )
----

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

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

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

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

skipif mysql # not compatible
query I rowsort label-7446
SELECT 98 / + col0 AS col1 FROM tab1
----
1
1
1

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NOT - col1 + + - col2 BETWEEN ( + 71 ) AND + 53 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

query I rowsort
SELECT ALL 78 + - col1 + - 93 + + 39 + + col1 * - col2 - + col2 FROM tab0 AS cor0
----
-175
-217
-3911

onlyif mysql # aggregate syntax: 
query I rowsort label-7451
SELECT ALL + 73 + + SUM( DISTINCT - + col2 ) AS col0 FROM tab2 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-7451
SELECT ALL + 73 + + SUM ( DISTINCT - + col2 ) AS col0 FROM tab2 AS cor0
----
-48

query I rowsort
SELECT 42 * + + col1 / + - 9 FROM tab2 AS cor0 WHERE NULL < NULL
----

query I rowsort
SELECT ALL col0 + - + col2 + 89 FROM tab1
----
112
115
44

onlyif mysql # aggregate syntax: 
query I rowsort label-7454
SELECT DISTINCT - 84 - + 43 + - - ( + MAX( - col2 ) ) AS col0 FROM tab0
----
-137

skipif mysql # not compatible
query I rowsort label-7454
SELECT DISTINCT - 84 - + 43 + - - ( + MAX ( - col2 ) ) AS col0 FROM tab0
----
-137

onlyif mysql # aggregate syntax: 
query I rowsort label-7455
SELECT + SUM( - col1 ) + + COUNT( * ) FROM tab1 WHERE - col0 IS NOT NULL
----
-63

skipif mysql # not compatible
query I rowsort label-7455
SELECT + SUM ( - col1 ) + + COUNT ( * ) FROM tab1 WHERE - col0 IS NOT NULL
----
-63

onlyif mysql # aggregate syntax: 
query II rowsort label-7456
SELECT DISTINCT COUNT( DISTINCT - 42 ), - 57 AS col0 FROM tab2 AS cor0
----
1
-57

skipif mysql # not compatible
query II rowsort label-7456
SELECT DISTINCT COUNT ( DISTINCT - 42 ), - 57 AS col0 FROM tab2 AS cor0
----
1
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7457
SELECT COUNT( * ) * - COUNT( * ) - - MAX( + 92 ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NOT - col0 + col0 IN ( CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7457
SELECT COUNT ( * ) * - COUNT ( * ) - - MAX ( + 92 ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NOT - col0 + col0 IN ( CAST ( NULL AS INTEGER ) ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7458
SELECT - + col1 DIV - col2 + + col0 + + + 51 AS col0 FROM tab1 AS cor0
----
102
136
142

skipif mysql # not compatible
query I rowsort label-7458
SELECT - + col1 / - col2 + + col0 + + + 51 AS col0 FROM tab1 AS cor0
----
102
136
142

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

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

query I rowsort
SELECT col2 + + - col1 * + 4 + ( - 78 ) / col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) <> NULL
----

query I rowsort
SELECT + col2 * - - col0 * + + 43 FROM tab0 cor0
----
30315
37410
412929

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7465
SELECT ALL COUNT( * ), + 81 AS col2 FROM tab1
----
3
81

skipif mysql # not compatible
query II rowsort label-7465
SELECT ALL COUNT ( * ), + 81 AS col2 FROM tab1
----
3
81

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 BETWEEN - - col0 AND NULL
----
87
21
10

query I rowsort
SELECT 85 FROM tab2 WHERE NOT - - col1 * col1 + col0 / col1 * + + col2 * - col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7468
SELECT DISTINCT col0 DIV ( + - 16 ) AS col0 FROM tab0
----
-5
-6
0

skipif mysql # not compatible
query I rowsort label-7468
SELECT DISTINCT col0 / ( + - 16 ) AS col0 FROM tab0
----
-5
-6
0

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7470
SELECT DISTINCT + 6, COUNT( * ) + 34 AS col1 FROM tab1 cor0
----
6
37

skipif mysql # not compatible
query II rowsort label-7470
SELECT DISTINCT + 6, COUNT ( * ) + 34 AS col1 FROM tab1 cor0
----
6
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7471
SELECT COUNT( * ) FROM tab2 cor0 WHERE NOT ( + col0 + 54 + + CAST( + 25 AS SIGNED ) * - 89 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-7471
SELECT COUNT ( * ) FROM tab2 cor0 WHERE NOT ( + col0 + 54 + + CAST ( + 25 AS INTEGER ) * - 89 ) IS NULL
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-7472
SELECT + + COUNT( * ), 87 * + 99 AS col1 FROM tab1 AS cor0
----
3
8613

skipif mysql # not compatible
query II rowsort label-7472
SELECT + + COUNT ( * ), 87 * + 99 AS col1 FROM tab1 AS cor0
----
3
8613

query II rowsort
SELECT DISTINCT 33, - 57 AS col2 FROM tab0 AS cor0
----
33
-57

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

query I rowsort
SELECT ALL + col2 * + col1 * + ( - 76 ) + - col2 AS col2 FROM tab0
----
-15970
-289379
-7623

query I rowsort
SELECT DISTINCT - 24 + + 18 FROM tab1 AS cor0
----
-6

query II rowsort
SELECT ALL 21 + + col2 AS col2, 33 AS col2 FROM tab1 AS cor0
----
117
33
80
33
89
33

onlyif mysql # aggregate syntax: 
query I rowsort label-7478
SELECT ALL - MAX( DISTINCT - - col0 ) FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + col2 AND + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7478
SELECT ALL - MAX ( DISTINCT - - col0 ) FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + col2 AND + col2
----
NULL

query I rowsort
SELECT DISTINCT col1 * + + col1 + col1 + + col1 AS col0 FROM tab0 AS cor0
----
3
483
6723

onlyif mysql # aggregate syntax: 
query I rowsort label-7480
SELECT ALL COUNT( DISTINCT - 48 ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7480
SELECT ALL COUNT ( DISTINCT - 48 ) FROM tab2 AS cor0
----
1

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 20 * + col0 - col0 * + - col0 col0 FROM tab1
----
10101
3621
8925

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7484
SELECT + MIN( 93 ) + COUNT( ALL + - col0 ) AS col2 FROM tab0
----
96

skipif mysql # not compatible
query I rowsort label-7484
SELECT + MIN ( 93 ) + COUNT ( ALL + - col0 ) AS col2 FROM tab0
----
96

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7486
SELECT - COUNT( * ) + 10 FROM tab1
----
7

skipif mysql # not compatible
query I rowsort label-7486
SELECT - COUNT ( * ) + 10 FROM tab1
----
7

query I rowsort
SELECT + col1 + + col1 * 62 AS col1 FROM tab0
----
1323
5103
63

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

query I rowsort
SELECT + 81 FROM tab1 WHERE NOT + col2 + + - col1 / col1 IS NOT NULL AND + col1 <> ( - + 53 + - col1 )
----

query I rowsort
SELECT col1 + - ( col1 ) * col0 * + col2 AS col0 FROM tab2
----
-197043
-291383
-53907

query I rowsort
SELECT ( - col2 ) * - - col2 + + 30 + + col1 + col0 + + ( - col1 ) AS col1 FROM tab2
----
-1506
-3259
-453

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

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

query I rowsort
SELECT - col2 + + 92 AS col2 FROM tab2 WHERE - col0 * - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7494
SELECT 16 * - 49 * COUNT( * ) + + COUNT( * ) FROM tab2
----
-2349

skipif mysql # not compatible
query I rowsort label-7494
SELECT 16 * - 49 * COUNT ( * ) + + COUNT ( * ) FROM tab2
----
-2349

query I rowsort
SELECT ALL - - col2 AS col1 FROM tab2 AS cor0 WHERE 6 / col2 IS NULL
----

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

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

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

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

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

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

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

query I rowsort
SELECT + ( - col2 ) * col0 + - 75 AS col1 FROM tab1 AS cor0
----
-4971
-5090
-6263

query I rowsort
SELECT ALL - 71 * col2 AS col0 FROM tab2 AS cor0
----
-1633
-2840
-4118

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7503
SELECT MIN( DISTINCT + - 83 ) * - + COUNT( * ) AS col1 FROM tab0 AS cor0
----
249

skipif mysql # not compatible
query I rowsort label-7503
SELECT MIN ( DISTINCT + - 83 ) * - + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
249

query I rowsort
SELECT + col0 FROM tab1 AS cor0 WHERE NOT - col2 * - 60 / + col1 BETWEEN col0 + - 39 AND 0
----
51
85
91

query I rowsort
SELECT ALL col0 * - col1 * + ( + 7 ) AS col1 FROM tab0
----
-12789
-679
-8505

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

query I rowsort
SELECT ALL + ( + + ( - 5 ) ) * - col2 AS col0 FROM tab2
----
115
200
290

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

skipif mysql # not compatible
query I rowsort label-7508
SELECT DISTINCT 88 / + + COUNT ( * ) AS col0 FROM tab2
----
29

query I rowsort
SELECT + + col1 / - + 43 / + + 36 AS col1 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + 27 AND 6 / col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7510
SELECT COUNT( DISTINCT col2 ) * + MIN( ALL + col0 ) * + + 72 * - - COUNT( * ) AS col1 FROM tab0 cor0
----
9720

skipif mysql # not compatible
query I rowsort label-7510
SELECT COUNT ( DISTINCT col2 ) * + MIN ( ALL + col0 ) * + + 72 * - - COUNT ( * ) AS col1 FROM tab0 cor0
----
9720

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

query II rowsort
SELECT + 97 AS col0, 92 AS col0 FROM tab1
----
97
92
97
92
97
92

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

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

query I rowsort
SELECT + + 48 + - + 62 FROM tab2 cor0
----
-14
-14
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-7515
SELECT ALL COUNT( * ) + + + ( COUNT( * ) ) + + 22 * 81 FROM tab1 cor0
----
1788

skipif mysql # not compatible
query I rowsort label-7515
SELECT ALL COUNT ( * ) + + + ( COUNT ( * ) ) + + 22 * 81 FROM tab1 cor0
----
1788

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL >= + 79
----

query I rowsort
SELECT DISTINCT - col1 + 82 FROM tab0 AS cor0
----
1
61
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7518
SELECT CAST( - col2 AS SIGNED ) FROM tab0 AS cor0 WHERE ( + col2 * - 35 ) NOT BETWEEN ( NULL ) AND col1
----

skipif mysql # not compatible
query I rowsort label-7518
SELECT CAST ( - col2 AS INTEGER ) FROM tab0 AS cor0 WHERE ( + col2 * - 35 ) NOT BETWEEN ( NULL ) AND col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7519
SELECT + col1, CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-7519
SELECT + col1, CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE + CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7520
SELECT ALL + + col2 * + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7520
SELECT ALL + + col2 * + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 + - ( col2 ) FROM tab0 cor0
----
-2
-32
77

query I rowsort
SELECT ALL 83 + + + 85 FROM tab0 AS cor0
----
168
168
168

query II rowsort
SELECT DISTINCT - col2 AS col0, - col1 * - + col0 - - 83 FROM tab1 AS cor0
----
-59
508
-68
4360
-96
797

query I rowsort
SELECT DISTINCT + 12 - + col2 FROM tab2
----
-11
-28
-46

onlyif mysql # aggregate syntax: 
query II rowsort label-7525
SELECT ALL + COUNT( col0 ), + 36 AS col2 FROM tab1
----
3
36

skipif mysql # not compatible
query II rowsort label-7525
SELECT ALL + COUNT ( col0 ), + 36 AS col2 FROM tab1
----
3
36

onlyif mysql # DIV for integer division: 
query I rowsort label-7526
SELECT + 71 * col1 DIV 58 FROM tab2
----
62
82
94

skipif mysql # not compatible
query I rowsort label-7526
SELECT + 71 * col1 / 58 FROM tab2
----
62
82
94

query II rowsort
SELECT ALL - + col0 - + + col0 AS col2, col0 AS col0 FROM tab2 AS cor0
----
-128
64
-150
75
-92
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7528
SELECT - + col0 * - col2 - - col1 * CAST( NULL AS SIGNED ) - - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7528
SELECT - + col0 * - col2 - - col1 * CAST ( NULL AS INTEGER ) - - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 34 + + 18 FROM tab2 AS cor0
----
-16
-16
-16

query I rowsort
SELECT 58 * col2 * 86 AS col2 FROM tab1 AS cor0 WHERE NOT col2 <= - 56
----
294292
339184
478848

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7531
SELECT DISTINCT + ( CAST( + col0 AS SIGNED ) ) * col1 AS col1 FROM tab1 AS cor0
----
425
4277
714

skipif mysql # not compatible
query I rowsort label-7531
SELECT DISTINCT + ( CAST ( + col0 AS INTEGER ) ) * col1 AS col1 FROM tab1 AS cor0
----
425
4277
714

onlyif mysql # DIV for integer division: 
query I rowsort label-7532
SELECT + col0 DIV + ( col0 ) FROM tab0 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7532
SELECT + col0 / + ( col0 ) FROM tab0 cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 65 * - + col0 col2 FROM tab2 AS cor0
----
2990
4160
4875

onlyif mysql # aggregate syntax: 
query I rowsort label-7534
SELECT ALL MIN( ALL - col0 ) FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-7534
SELECT ALL MIN ( ALL - col0 ) FROM tab1 AS cor0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-7535
SELECT + SUM( - ( 99 ) ) FROM tab2
----
-297

skipif mysql # not compatible
query I rowsort label-7535
SELECT + SUM ( - ( 99 ) ) FROM tab2
----
-297

query I rowsort
SELECT DISTINCT - col1 * ( col0 ) AS col2 FROM tab0 WHERE NULL NOT BETWEEN - col0 + - col0 AND + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7537
SELECT DISTINCT + ( - - MIN( DISTINCT + col2 ) ) AS col0 FROM tab2 WHERE col0 * + col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7537
SELECT DISTINCT + ( - - MIN ( DISTINCT + col2 ) ) AS col0 FROM tab2 WHERE col0 * + col1 IS NULL
----
NULL

query I rowsort
SELECT DISTINCT - col2 * + + 12 FROM tab1
----
-1152
-708
-816

onlyif mysql # aggregate syntax: 
query II rowsort label-7539
SELECT - COUNT( * ) AS col2, + ( - COUNT( * ) ) AS col2 FROM tab1
----
-3
-3

skipif mysql # not compatible
query II rowsort label-7539
SELECT - COUNT ( * ) AS col2, + ( - COUNT ( * ) ) AS col2 FROM tab1
----
-3
-3

query I rowsort
SELECT 27 * - col0 FROM tab1
----
-1377
-2295
-2457

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * 22 + + + col2 col0 FROM tab0
----
1924
2233
377

onlyif mysql # aggregate syntax: 
query I rowsort label-7542
SELECT DISTINCT - MIN( 52 ) FROM tab1
----
-52

skipif mysql # not compatible
query I rowsort label-7542
SELECT DISTINCT - MIN ( 52 ) FROM tab1
----
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-7543
SELECT DISTINCT col2 DIV - + col2 + - col0 * + 88 FROM tab0
----
-1321
-7657
-8537

skipif mysql # not compatible
query I rowsort label-7543
SELECT DISTINCT col2 / - + col2 + - col0 * + 88 FROM tab0
----
-1321
-7657
-8537

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + + col2 col1 FROM tab2 AS cor0
----
1600
3364
529

onlyif mysql # aggregate syntax: 
query II rowsort label-7545
SELECT + COUNT( * ) AS col2, + SUM( + - col1 ) FROM tab0 AS cor0
----
3
-103

skipif mysql # not compatible
query II rowsort label-7545
SELECT + COUNT ( * ) AS col2, + SUM ( + - col1 ) FROM tab0 AS cor0
----
3
-103

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 31 >= + col1
----
15
81
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7547
SELECT 70 + - CAST( + 0 AS SIGNED ) FROM tab2 AS cor0
----
70
70
70

skipif mysql # not compatible
query I rowsort label-7547
SELECT 70 + - CAST ( + 0 AS INTEGER ) FROM tab2 AS cor0
----
70
70
70

query I rowsort
SELECT - - 25 + 65 AS col2 FROM tab0 AS cor0
----
90
90
90

onlyif mysql # DIV for integer division: 
query I rowsort label-7549
SELECT DISTINCT col0 DIV 25 * col1 AS col0 FROM tab1 cor0
----
141
15
28

skipif mysql # not compatible
query I rowsort label-7549
SELECT DISTINCT col0 / 25 * col1 AS col0 FROM tab1 cor0
----
141
15
28

onlyif mysql # aggregate syntax: 
query I rowsort label-7550
SELECT DISTINCT - COUNT( + col2 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-7550
SELECT DISTINCT - COUNT ( + col2 ) FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7551
SELECT COUNT( * ) * - 33 - - + ( 73 ) * - COUNT( * ) + - + ( - - SUM( - 19 ) ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-783

skipif mysql # not compatible
query I rowsort label-7551
SELECT COUNT ( * ) * - 33 - - + ( 73 ) * - COUNT ( * ) + - + ( - - SUM ( - 19 ) ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-783

onlyif mysql # aggregate syntax: 
query I rowsort label-7552
SELECT COUNT( * ) AS col0 FROM tab0 WHERE + col0 BETWEEN - + col1 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-7552
SELECT COUNT ( * ) AS col0 FROM tab0 WHERE + col0 BETWEEN - + col1 AND NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7553
SELECT ALL + CAST( + - col2 AS SIGNED ) + + - 6 * + col0 FROM tab1
----
-402
-569
-614

skipif mysql # not compatible
query I rowsort label-7553
SELECT ALL + CAST ( + - col2 AS INTEGER ) + + - 6 * + col0 FROM tab1
----
-402
-569
-614

onlyif mysql # DIV for integer division: 
query I rowsort label-7554
SELECT + col2 DIV + - ( + col2 ) col2 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7554
SELECT + col2 / + - ( + col2 ) col2 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT ALL - 79 * - + col1 * - - col2 FROM tab2
----
243320
306994
92667

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL <> - col0 + col1 - + - 99 + + col1 * 30
----

query I rowsort
SELECT ALL + ( 11 ) + + 56 FROM tab0 AS cor0
----
67
67
67

onlyif mysql # aggregate syntax: 
query I rowsort label-7558
SELECT ALL 66 - - 66 * - - MIN( - col1 ) AS col2 FROM tab2 AS cor0
----
-5016

skipif mysql # not compatible
query I rowsort label-7558
SELECT ALL 66 - - 66 * - - MIN ( - col1 ) AS col2 FROM tab2 AS cor0
----
-5016

query I rowsort
SELECT + - col2 - - 46 * - col1 * 25 AS col0 FROM tab1 AS cor0
----
-16196
-54118
-5809

query I rowsort
SELECT ALL col0 + - 42 FROM tab2 cor0
----
22
33
4

query I rowsort
SELECT ALL - - 16 * col1 FROM tab2 WHERE NOT + - 46 * - col2 IS NULL
----
1072
1232
816

query I rowsort
SELECT - 88 + col0 AS col2 FROM tab1
----
-3
-37
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7563
SELECT ALL + MIN( ALL + - col0 ) FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-7563
SELECT ALL + MIN ( ALL + - col0 ) FROM tab1
----
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 87 + col2 col0 FROM tab0
----
134
186
97

query II rowsort
SELECT DISTINCT + - col2, col2 - - 58 AS col1 FROM tab1 AS cor0
----
-59
117
-68
126
-96
154

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7566
SELECT ALL * FROM tab0 WHERE ( - + CAST( - - col0 AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-7566
SELECT ALL * FROM tab0 WHERE ( - + CAST ( - - col0 AS INTEGER ) ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7567
SELECT + SUM( + 44 ) * + SUM( DISTINCT - col2 ) FROM tab2
----
-15972

skipif mysql # not compatible
query I rowsort label-7567
SELECT + SUM ( + 44 ) * + SUM ( DISTINCT - col2 ) FROM tab2
----
-15972

query I rowsort
SELECT DISTINCT + + col1 * - - col1 + + col1 FROM tab0 AS cor0
----
2
462
6642

query I rowsort
SELECT ALL + 83 + + - col1 FROM tab0 cor0 WHERE 2 NOT BETWEEN - + col0 * - - col1 AND NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( col2 / - 10, + 9 + + - 61 + + 25, - 28, - - col1 * + - 16 + col0 )
----

query I rowsort
SELECT DISTINCT + 6 * 23 + + col1 FROM tab2 cor0
----
189
205
215

query I rowsort
SELECT + - col2 * - - ( - 70 ) FROM tab0 AS cor0
----
3290
6930
700

query I rowsort
SELECT + + col0 * 68 - - col0 FROM tab0 AS cor0
----
1035
6003
6693

onlyif mysql # aggregate syntax: 
query I rowsort label-7574
SELECT - - COUNT( * ) * 39 AS col0 FROM tab0 cor0
----
117

skipif mysql # not compatible
query I rowsort label-7574
SELECT - - COUNT ( * ) * 39 AS col0 FROM tab0 cor0
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-7575
SELECT ALL + COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL > ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-7575
SELECT ALL + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL > ( NULL )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7576
SELECT col2 DIV - - col0 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7576
SELECT col2 / - - col0 AS col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7577
SELECT - 84 * + col2 + - + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7577
SELECT - 84 * + col2 + - + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT 10 + + - 12 FROM tab0
----
-2
-2
-2

query I rowsort
SELECT + col1 + + - col1 + - col0 * - + col0 FROM tab1
----
2601
7225
8281

query II rowsort
SELECT ( + 60 ) + - + col2 AS col1, 33 FROM tab0
----
-39
33
13
33
50
33

query II rowsort
SELECT ALL + 33 AS col2, col0 FROM tab1
----
33
51
33
85
33
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7582
SELECT DISTINCT - COUNT( * ) * 18 AS col1 FROM tab0
----
-54

skipif mysql # not compatible
query I rowsort label-7582
SELECT DISTINCT - COUNT ( * ) * 18 AS col1 FROM tab0
----
-54

query I rowsort
SELECT + - 42 AS col1 FROM tab2 cor0
----
-42
-42
-42

query I rowsort
SELECT - 29 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-29
-29
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-7585
SELECT ALL + 84 * + COUNT( * ) AS col1 FROM tab0 AS cor0
----
252

skipif mysql # not compatible
query I rowsort label-7585
SELECT ALL + 84 * + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
252

onlyif mysql # aggregate syntax: 
query I rowsort label-7586
SELECT DISTINCT + MAX( 7 ) FROM tab2, tab1 cor0
----
7

skipif mysql # not compatible
query I rowsort label-7586
SELECT DISTINCT + MAX ( 7 ) FROM tab2, tab1 cor0
----
7

query I rowsort
SELECT DISTINCT - col1 * + 13 AS col2 FROM tab1
----
-182
-611
-65

query IIIIII rowsort
SELECT ALL * FROM tab1 cor0 CROSS JOIN tab2 AS cor1 WHERE ( NOT NULL IS NULL )
----

query I rowsort
SELECT ALL - 76 FROM tab2, tab2 AS cor0
----
9 values hashing to f8b6589bc7503fc720ca5430e3569317

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7590
SELECT * FROM tab0 AS cor0 WHERE 5 IN ( - col2 * CAST( NULL AS SIGNED ) * - col1, + CAST( - - col0 AS SIGNED ) + + - 77 + - 38 + - 20 )
----

skipif mysql # not compatible
query III rowsort label-7590
SELECT * FROM tab0 AS cor0 WHERE 5 IN ( - col2 * CAST ( NULL AS INTEGER ) * - col1, + CAST ( - - col0 AS INTEGER ) + + - 77 + - 38 + - 20 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7591
SELECT DISTINCT + 79 + - COUNT( * ) * + COUNT( * ) FROM tab1 cor0
----
70

skipif mysql # not compatible
query I rowsort label-7591
SELECT DISTINCT + 79 + - COUNT ( * ) * + COUNT ( * ) FROM tab1 cor0
----
70

query I rowsort
SELECT ALL col2 + - 49 + + col0 AS col1 FROM tab0 AS cor0
----
13
147
48

onlyif mysql # aggregate syntax: 
query I rowsort label-7593
SELECT ALL + SUM( DISTINCT - col2 ) * - - 48 FROM tab1 AS cor0
----
-10704

skipif mysql # not compatible
query I rowsort label-7593
SELECT ALL + SUM ( DISTINCT - col2 ) * - - 48 FROM tab1 AS cor0
----
-10704

onlyif mysql # aggregate syntax: 
query I rowsort label-7594
SELECT DISTINCT + COUNT( * ) - + COUNT( * ) * + COUNT( * ) + - - 37 AS col0 FROM tab2 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-7594
SELECT DISTINCT + COUNT ( * ) - + COUNT ( * ) * + COUNT ( * ) + - - 37 AS col0 FROM tab2 AS cor0
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7595
SELECT DISTINCT col0 + + CAST( NULL AS SIGNED ) AS col0 FROM tab2 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-7595
SELECT DISTINCT col0 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7596
SELECT DISTINCT col0 DIV + + col1 FROM tab1
----
1
17
3

skipif mysql # not compatible
query I rowsort label-7596
SELECT DISTINCT col0 / + + col1 FROM tab1
----
1
17
3

query I rowsort
SELECT col1 * + + 20 AS col0 FROM tab0
----
1620
20
420

onlyif mysql # DIV for integer division: 
query I rowsort label-7598
SELECT ALL + 35 DIV + col0 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7598
SELECT ALL + 35 / + col0 AS col1 FROM tab1
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + col2 * + 18 * - + col1 - - 40 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 33 AS col0 FROM tab0 AS cor0 WHERE NOT + col0 NOT BETWEEN NULL AND col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7601
SELECT - + COUNT( * ) DIV 60 * + COUNT( DISTINCT + col0 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7601
SELECT - + COUNT ( * ) / 60 * + COUNT ( DISTINCT + col0 ) FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7602
SELECT SUM( 24 ) AS col1 FROM tab2 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-7602
SELECT SUM ( 24 ) AS col1 FROM tab2 AS cor0
----
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 / - col0 AS col0, - col1 col2 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT 3 * - + 4 FROM tab1
----
-12

query II rowsort
SELECT ALL col2 AS col0, col2 * + 40 AS col0 FROM tab0 AS cor0
----
10
400
47
1880
99
3960

onlyif mysql # aggregate syntax: 
query II rowsort label-7606
SELECT + COUNT( * ) AS col0, + ( + 93 ) * - COUNT( * ) AS col1 FROM tab0 AS cor0
----
3
-279

skipif mysql # not compatible
query II rowsort label-7606
SELECT + COUNT ( * ) AS col0, + ( + 93 ) * - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
3
-279

query I rowsort
SELECT DISTINCT 79 * col0 FROM tab0 AS cor0 WHERE ( + col2 + + col1 ) IS NOT NULL
----
1185
6873
7663

onlyif mysql # aggregate syntax: 
query I rowsort label-7608
SELECT - + SUM( ALL + col0 ) FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-7608
SELECT - + SUM ( ALL + col0 ) FROM tab0 AS cor0
----
-199

onlyif mysql # aggregate syntax: 
query I rowsort label-7609
SELECT DISTINCT + - COUNT( col0 ) * - 90 AS col2 FROM tab2 WHERE NOT + + col0 >= + col0 + + col1
----
270

skipif mysql # not compatible
query I rowsort label-7609
SELECT DISTINCT + - COUNT ( col0 ) * - 90 AS col2 FROM tab2 WHERE NOT + + col0 >= + col0 + + col1
----
270

onlyif mysql # aggregate syntax: 
query I rowsort label-7610
SELECT MAX( 62 ) col2 FROM tab0 WHERE ( ( NULL ) > ( - col0 * + - col2 ) )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7610
SELECT MAX ( 62 ) col2 FROM tab0 WHERE ( ( NULL ) > ( - col0 * + - col2 ) )
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT IN ( - col1 / col1, + col1 + - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7612
SELECT ALL MIN( ALL + col1 ) AS col0 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-7612
SELECT ALL MIN ( ALL + col1 ) AS col0 FROM tab1
----
5

query I rowsort
SELECT ALL + 1 + col1 FROM tab0
----
2
22
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7614
SELECT 37 DIV COUNT( * ) AS col1 FROM tab2
----
12

skipif mysql # not compatible
query I rowsort label-7614
SELECT 37 / COUNT ( * ) AS col1 FROM tab2
----
12

query I rowsort
SELECT ALL + col0 AS col0 FROM tab2 AS cor0 WHERE - 35 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7616
SELECT + COUNT( * ) + CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7616
SELECT + COUNT ( * ) + CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - col1 * + 22 + col0 FROM tab2 AS cor0
----
-1076
-1399
-1630

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7618
SELECT + + COUNT( * ) + - - 7 / CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7618
SELECT + + COUNT ( * ) + - - 7 / CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7619
SELECT ALL col0 DIV CAST( col0 AS SIGNED ) * + - col1 + - col0 + - ( col2 ) + + col2 * - 60 FROM tab2 AS cor0
----
-1500
-2581
-3680

skipif mysql # not compatible
query I rowsort label-7619
SELECT ALL col0 / CAST ( col0 AS INTEGER ) * + - col1 + - col0 + - ( col2 ) + + col2 * - 60 FROM tab2 AS cor0
----
-1500
-2581
-3680

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7620
SELECT DISTINCT + ( 1 ) + + ( 16 ) + col1 / + CAST( NULL AS SIGNED ) + - - 98 * col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7620
SELECT DISTINCT + ( 1 ) + + ( 16 ) + col1 / + CAST ( NULL AS INTEGER ) + - - 98 * col1 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 81 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7622
SELECT DISTINCT ( - + 47 ) DIV - + col0 - - - ( - col1 ) + - 69 * col1 AS col1 FROM tab2
----
-3467
-4556
-5236

skipif mysql # not compatible
query I rowsort label-7622
SELECT DISTINCT ( - + 47 ) / - + col0 - - - ( - col1 ) + - 69 * col1 AS col1 FROM tab2
----
-3467
-4556
-5236

onlyif mysql # aggregate syntax: 
query II rowsort label-7623
SELECT + MIN( + 10 ) * + 75 AS col2, - COUNT( * ) FROM tab1
----
750
-3

skipif mysql # not compatible
query II rowsort label-7623
SELECT + MIN ( + 10 ) * + 75 AS col2, - COUNT ( * ) FROM tab1
----
750
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7624
SELECT + 84 * 29 - + MIN( col1 ) AS col2 FROM tab0 AS cor0
----
2435

skipif mysql # not compatible
query I rowsort label-7624
SELECT + 84 * 29 - + MIN ( col1 ) AS col2 FROM tab0 AS cor0
----
2435

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - - 56 * col0 IS NULL )
----

query I rowsort
SELECT ALL + col0 - - col1 * + + col0 + - - col1 AS col0 FROM tab0 AS cor0
----
1311
1935
195

query I rowsort
SELECT ALL 10 - col2 AS col1 FROM tab0 cor0
----
-37
-89
0

query I rowsort
SELECT ALL - 63 - + + 38 AS col2 FROM tab0 AS cor0
----
-101
-101
-101

query I rowsort
SELECT 70 + + - 87 * + col0 + - col0 FROM tab1
----
-4418
-7410
-7938

query I rowsort
SELECT ALL + col2 * - 98 FROM tab1
----
-5782
-6664
-9408

onlyif mysql # aggregate syntax: 
query II rowsort label-7631
SELECT DISTINCT - 82 AS col1, - MIN( col0 ) * 31 - + 94 + 88 FROM tab0
----
-82
-471

skipif mysql # not compatible
query II rowsort label-7631
SELECT DISTINCT - 82 AS col1, - MIN ( col0 ) * 31 - + 94 + 88 FROM tab0
----
-82
-471

query I rowsort
SELECT ALL col0 * ( + 72 ) FROM tab1
----
3672
6120
6552

onlyif mysql # aggregate syntax: 
query I rowsort label-7633
SELECT - MAX( - - col0 ) AS col2 FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-7633
SELECT - MAX ( - - col0 ) AS col2 FROM tab0
----
-97

query I rowsort
SELECT DISTINCT ( - col1 ) * 23 FROM tab1
----
-1081
-115
-322

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL BETWEEN - col1 * + + 66 AND + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7636
SELECT - col1 DIV - 33 AS col1 FROM tab2 AS cor0
----
1
2
2

skipif mysql # not compatible
query I rowsort label-7636
SELECT - col1 / - 33 AS col1 FROM tab2 AS cor0
----
1
2
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7637
SELECT + COUNT( * ) DIV + COUNT( * ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7637
SELECT + COUNT ( * ) / + COUNT ( * ) FROM tab2 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7638
SELECT + 26 col1, COUNT( * ) AS col1 FROM tab1 cor0
----
26
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7638
SELECT + 26 col1, COUNT ( * ) AS col1 FROM tab1 cor0
----
26
3

query I rowsort
SELECT + - 92 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1af709a79a3e56281ffdce4d931d5965

query I rowsort
SELECT + col2 * col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
100
2209
9801

query I rowsort
SELECT DISTINCT - 78 AS col1 FROM tab1 cor0
----
-78

query I rowsort
SELECT ALL - + col0 AS col2 FROM tab1 AS cor0 WHERE NOT - col2 BETWEEN + col2 AND col2 * col2
----
-51
-85
-91

query II rowsort
SELECT ALL + 97 + 68 AS col1, + col0 * + + col2 AS col1 FROM tab2 AS cor0
----
165
1058
165
2560
165
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-7644
SELECT - + 23 / + MIN( DISTINCT - col1 ) + - COUNT( * ) + - - SUM( - col1 ) FROM tab1 AS cor0 WHERE NOT col0 * + col1 <= 67 * + + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7644
SELECT - + 23 / + MIN ( DISTINCT - col1 ) + - COUNT ( * ) + - - SUM ( - col1 ) FROM tab1 AS cor0 WHERE NOT col0 * + col1 <= 67 * + + col2
----
NULL

query I rowsort
SELECT ALL - col1 + - + col2 * + - col1 AS col1 FROM tab0 AS cor0
----
189
3726
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7646
SELECT col0 + ( + 72 ) + - CAST( NULL AS SIGNED ) * + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7646
SELECT col0 + ( + 72 ) + - CAST ( NULL AS INTEGER ) * + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 14 + ( col2 ) + - ( - col2 ) AS col1 FROM tab2
----
102
32
66

query II rowsort
SELECT ALL col1 AS col0, 88 FROM tab1
----
14
88
47
88
5
88

query II rowsort
SELECT ALL ( ( + 49 ) ), col0 FROM tab0
----
49
15
49
87
49
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7650
SELECT + COUNT( * ) * - 98 + + ( COUNT( * ) ) * + CAST( NULL AS SIGNED ) / 59 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7650
SELECT + COUNT ( * ) * - 98 + + ( COUNT ( * ) ) * + CAST ( NULL AS INTEGER ) / 59 AS col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7651
SELECT ALL COUNT( * ) AS col0, - MAX( ALL - + col2 ) FROM tab0
----
3
10

skipif mysql # not compatible
query II rowsort label-7651
SELECT ALL COUNT ( * ) AS col0, - MAX ( ALL - + col2 ) FROM tab0
----
3
10

query I rowsort
SELECT ALL + col1 FROM tab2 WHERE + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7653
SELECT DISTINCT + SUM( 21 ) + - + 95 FROM tab1
----
-32

skipif mysql # not compatible
query I rowsort label-7653
SELECT DISTINCT + SUM ( 21 ) + - + 95 FROM tab1
----
-32

query II rowsort
SELECT DISTINCT + col1, + 87 FROM tab2
----
51
87
67
87
77
87

query I rowsort
SELECT ALL - 58 + + + col1 AS col2 FROM tab1
----
-11
-44
-53

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-7656
SELECT DISTINCT * FROM tab0 WHERE - - CAST( NULL AS DECIMAL ) NOT BETWEEN NULL AND - CAST( - - ( + 52 ) AS SIGNED ) + - col0
----

skipif mysql # not compatible
query III rowsort label-7656
SELECT DISTINCT * FROM tab0 WHERE - - CAST ( NULL AS REAL ) NOT BETWEEN NULL AND - CAST ( - - ( + 52 ) AS INTEGER ) + - col0
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 83 BETWEEN NULL AND col1
----

query I rowsort
SELECT ALL 72 + - ( + col2 ) * col1 AS col0 FROM tab0 cor0
----
-138
-27
-3735

query I rowsort
SELECT - 66 * col0 - - col1 + - col2 * + col2 FROM tab1 AS cor0
----
-10583
-12568
-9086

query I rowsort
SELECT col2 - + col2 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - + col1 * + - 2 - - col1 * - - col2 FROM tab0 AS cor0
----
101
252
3969

query I rowsort
SELECT ALL - col1 AS col0 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7663
SELECT + ( + MIN( DISTINCT + - ( - col1 ) ) ) - - MIN( DISTINCT - col1 ) FROM tab2 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-7663
SELECT + ( + MIN ( DISTINCT + - ( - col1 ) ) ) - - MIN ( DISTINCT - col1 ) FROM tab2 AS cor0
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-7664
SELECT ALL - SUM( 58 ) - + COUNT( * ) AS col0 FROM tab0
----
-177

skipif mysql # not compatible
query I rowsort label-7664
SELECT ALL - SUM ( 58 ) - + COUNT ( * ) AS col0 FROM tab0
----
-177

query I rowsort
SELECT - col1 + + col2 * + col2 AS col0 FROM tab1 cor0
----
3476
4577
9202

onlyif mysql # aggregate syntax: 
query I rowsort label-7666
SELECT - MIN( ALL ( col0 ) ) AS col2 FROM tab2 cor0
----
-46

skipif mysql # not compatible
query I rowsort label-7666
SELECT - MIN ( ALL ( col0 ) ) AS col2 FROM tab2 cor0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-7667
SELECT DISTINCT + + 14 + ( + + MIN( - col2 ) ) FROM tab0 AS cor0
----
-85

skipif mysql # not compatible
query I rowsort label-7667
SELECT DISTINCT + + 14 + ( + + MIN ( - col2 ) ) FROM tab0 AS cor0
----
-85

query I rowsort
SELECT ALL - - ( + col0 ) * - col0 + col0 + - col2 AS col1 FROM tab1 AS cor0
----
-2646
-7199
-8258

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 20 >= + col2 * + col2 - - 14
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7670
SELECT COUNT( 55 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7670
SELECT COUNT ( 55 ) AS col0 FROM tab2 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab0 WHERE - col0 * - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 70 AS col0 FROM tab1 WHERE NOT ( col0 ) IS NOT NULL
----

query I rowsort
SELECT + 26 * + - ( - - col0 ) AS col2 FROM tab0
----
-2262
-2522
-390

onlyif mysql # aggregate syntax: 
query II rowsort label-7674
SELECT - 83, COUNT( * ) AS col1 FROM tab1
----
-83
3

skipif mysql # not compatible
query II rowsort label-7674
SELECT - 83, COUNT ( * ) AS col1 FROM tab1
----
-83
3

query I rowsort
SELECT ALL - col1 * 66 FROM tab2
----
-3366
-4422
-5082

onlyif mysql # aggregate syntax: 
query I rowsort label-7676
SELECT - MAX( - col1 ) col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7676
SELECT - MAX ( - col1 ) col2 FROM tab0 AS cor0
----
1

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 * - - col2 * + ( + 18 ) * - col1 + - col1 * + + 39 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7678
SELECT + - CAST( - + ( + SUM( ALL + 90 ) ) AS SIGNED ) FROM tab1 AS cor0
----
270

skipif mysql # not compatible
query I rowsort label-7678
SELECT + - CAST ( - + ( + SUM ( ALL + 90 ) ) AS INTEGER ) FROM tab1 AS cor0
----
270

query I rowsort
SELECT - + 82 AS col1 FROM tab1 AS cor0 WHERE NOT col0 - col1 IS NOT NULL
----

query I rowsort
SELECT ALL - 64 FROM tab2 cor0 WHERE NOT 90 IS NULL
----
-64
-64
-64

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - col2 ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT + col2 * + col2 AS col2 FROM tab2 AS cor0 WHERE NOT + ( - + col1 ) <> ( + col0 + col1 )
----

query II rowsort
SELECT - 43, col0 / + - col1 FROM tab1 AS cor0 WHERE + 72 / + + col1 BETWEEN + col1 AND + col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7684
SELECT + CAST( NULL AS SIGNED ) * + - COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7684
SELECT + CAST ( NULL AS INTEGER ) * + - COUNT ( * ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + 50 AS col0 FROM tab2 cor0 WHERE ( NULL ) BETWEEN + col0 * col1 AND - + ( - 89 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7686
SELECT DISTINCT - ( COUNT( * ) ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-7686
SELECT DISTINCT - ( COUNT ( * ) ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3

query I rowsort
SELECT DISTINCT - - ( - col0 ) + - 74 AS col2 FROM tab1 cor0
----
-125
-159
-165

query III rowsort
SELECT * FROM tab2 cor0 WHERE col1 * col2 * + 48 NOT BETWEEN NULL AND + - 11 + + + col2 + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE 19 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col0 + + col1 * + col1 * + ( - col1 ) + + col2 AS col2 FROM tab1
----
-103846
-151
-2699

query I rowsort
SELECT - 97 + + + 55 FROM tab1
----
-42
-42
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-7692
SELECT ALL + COUNT( - col2 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7692
SELECT ALL + COUNT ( - col2 ) AS col2 FROM tab2
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - 58 * + - col0 + + ( - 32 ) * + 68 col1 FROM tab1
----
22474
245890
39236

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7694
SELECT - col2 * + col1 AS col2 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN + CAST( NULL AS SIGNED ) AND - col2
----

skipif mysql # not compatible
query I rowsort label-7694
SELECT - col2 * + col1 AS col2 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN + CAST ( NULL AS INTEGER ) AND - col2
----

query I rowsort
SELECT ALL - col0 - + 9 FROM tab2 AS cor0
----
-55
-73
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-7696
SELECT + COUNT( ALL + ( - col2 ) ) AS col0 FROM tab2 AS cor0 WHERE + 8 IN ( - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-7696
SELECT + COUNT ( ALL + ( - col2 ) ) AS col0 FROM tab2 AS cor0 WHERE + 8 IN ( - col0 )
----
0

query I rowsort
SELECT DISTINCT + + 45 - - + ( - - 35 ) FROM tab1 AS cor0
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-7698
SELECT ALL + 18 - - - COUNT( * ) FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-7698
SELECT ALL + 18 - - - COUNT ( * ) FROM tab0 AS cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-7699
SELECT DISTINCT - - SUM( 40 ) col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
360

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7699
SELECT DISTINCT - - SUM ( 40 ) col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
360

query II rowsort
SELECT DISTINCT col1 - - + ( + col0 ), col0 AS col1 FROM tab2
----
141
64
142
75
97
46

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 NOT BETWEEN - - col1 * - 37 + - 20 * + + col2 / 28 + - + 64 AND NULL
----

onlyif mysql # DIV for integer division: 
query III rowsort label-7702
SELECT + col2, col2 + col0 + + + col2 DIV + col2 + 1, 99 AS col0 FROM tab2 AS cor0
----
9 values hashing to 45212b0c2fd55674a323c5bdfc7fc58d

skipif mysql # not compatible
query III rowsort label-7702
SELECT + col2, col2 + col0 + + + col2 / + col2 + 1, 99 AS col0 FROM tab2 AS cor0
----
9 values hashing to 45212b0c2fd55674a323c5bdfc7fc58d

query I rowsort
SELECT DISTINCT - - 41 * 92 AS col1 FROM tab1 AS cor0
----
3772

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 63 col2 FROM tab2 AS cor0
----
63
63
63

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - col0 AND 90 * col2 / col1
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + ( 74 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + - col1 AS col1 FROM tab1 WHERE NULL IS NULL
----
-14
-47
-5

query I rowsort
SELECT ALL - - col2 AS col0 FROM tab0 WHERE NULL NOT BETWEEN - col1 AND - + ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7709
SELECT DISTINCT 87 * + COUNT( * ) AS col1 FROM tab2
----
261

skipif mysql # not compatible
query I rowsort label-7709
SELECT DISTINCT 87 * + COUNT ( * ) AS col1 FROM tab2
----
261

query I rowsort
SELECT + col2 * - 27 AS col0 FROM tab2
----
-1080
-1566
-621

query I rowsort
SELECT DISTINCT - col0 * + 17 FROM tab2
----
-1088
-1275
-782

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7712
SELECT DISTINCT CAST( 25 AS SIGNED ) AS col1 FROM tab1
----
25

skipif mysql # not compatible
query I rowsort label-7712
SELECT DISTINCT CAST ( 25 AS INTEGER ) AS col1 FROM tab1
----
25

onlyif mysql # aggregate syntax: 
query II rowsort label-7713
SELECT ALL + SUM( - - col1 ) AS col1, + COUNT( * ) FROM tab0 AS cor0
----
103
3

skipif mysql # not compatible
query II rowsort label-7713
SELECT ALL + SUM ( - - col1 ) AS col1, + COUNT ( * ) FROM tab0 AS cor0
----
103
3

query I rowsort
SELECT DISTINCT - ( 76 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-76

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 30 + - 88 BETWEEN + 24 + + - 70 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7716
SELECT DISTINCT CAST( - - col0 AS SIGNED ) + + 7 FROM tab1 AS cor0
----
58
92
98

skipif mysql # not compatible
query I rowsort label-7716
SELECT DISTINCT CAST ( - - col0 AS INTEGER ) + + 7 FROM tab1 AS cor0
----
58
92
98

query I rowsort
SELECT col2 * - col2 * - 39 + + col0 AS col0 FROM tab2 AS cor0
----
131271
20677
62464

onlyif mysql # aggregate syntax: 
query I rowsort label-7718
SELECT + - COUNT( * ) + 32 FROM tab0 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-7718
SELECT + - COUNT ( * ) + 32 FROM tab0 AS cor0
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7719
SELECT - CAST( + col1 AS SIGNED ) + col1 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7719
SELECT - CAST ( + col1 AS INTEGER ) + col1 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT 99 * + col2 + + 84 FROM tab2 AS cor0
----
2361
4044
5826

query I rowsort
SELECT DISTINCT + + col1 * - col2 * - col2 FROM tab0 AS cor0
----
178929
2100
9801

query III rowsort
SELECT ALL * FROM tab0 WHERE - - col1 + 13 = NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7723
SELECT ALL + 99, 0 * + MIN( col0 ) AS col2 FROM tab2
----
99
0

skipif mysql # not compatible
query II rowsort label-7723
SELECT ALL + 99, 0 * + MIN ( col0 ) AS col2 FROM tab2
----
99
0

query I rowsort
SELECT ALL - ( + col2 ) + - - col1 FROM tab2 AS cor0
----
28
37
9

query I rowsort
SELECT ALL - col0 + - + 70 + - - col1 FROM tab0 AS cor0 WHERE + col1 = NULL
----

query I rowsort
SELECT - 99 + - col1 FROM tab2 AS cor0
----
-150
-166
-176

query I rowsort
SELECT 16 + - col2 FROM tab2 AS cor0
----
-24
-42
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7728
SELECT DISTINCT - CAST( - COUNT( DISTINCT ( - 48 ) ) AS SIGNED ) AS col2 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-7728
SELECT DISTINCT - CAST ( - COUNT ( DISTINCT ( - 48 ) ) AS INTEGER ) AS col2 FROM tab1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7729
SELECT ALL + SUM( ALL - 60 ) FROM tab1
----
-180

skipif mysql # not compatible
query I rowsort label-7729
SELECT ALL + SUM ( ALL - 60 ) FROM tab1
----
-180

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL > 54
----

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE NOT ( NOT col1 NOT IN ( - + col2 * ( col1 ) * - col1 ) )
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7732
SELECT - - COUNT( ALL ( col1 ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7732
SELECT - - COUNT ( ALL ( col1 ) ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT 33 * + 33 FROM tab2 AS cor0
----
1089
1089
1089

query I rowsort
SELECT + - 80 * + - col0 * + 44 AS col1 FROM tab1 AS cor0
----
179520
299200
320320

query I rowsort
SELECT - 61 FROM tab2 AS cor0 WHERE NOT 18 IS NOT NULL
----

query I rowsort
SELECT - col0 FROM tab2 AS cor0 WHERE NOT + 94 > 5
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7737
SELECT + ( - CAST( NULL AS DECIMAL ) ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7737
SELECT + ( - CAST ( NULL AS REAL ) ) AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7738
SELECT ALL - 13 AS col2, - MIN( DISTINCT - + col2 ) + + 91 AS col0 FROM tab1
----
-13
187

skipif mysql # not compatible
query II rowsort label-7738
SELECT ALL - 13 AS col2, - MIN ( DISTINCT - + col2 ) + + 91 AS col0 FROM tab1
----
-13
187

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL < + col1 / + 13
----

query II rowsort
SELECT ( + 26 ) * - + col0, col0 FROM tab0
----
-2262
87
-2522
97
-390
15

onlyif mysql # aggregate syntax: 
query II rowsort label-7741
SELECT - COUNT( * ) AS col1, - 83 AS col1 FROM tab2
----
-3
-83

skipif mysql # not compatible
query II rowsort label-7741
SELECT - COUNT ( * ) AS col1, - 83 AS col1 FROM tab2
----
-3
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-7742
SELECT ALL - + COUNT( * ) * + 96 AS col1 FROM tab1 AS cor0
----
-288

skipif mysql # not compatible
query I rowsort label-7742
SELECT ALL - + COUNT ( * ) * + 96 AS col1 FROM tab1 AS cor0
----
-288

onlyif mysql # aggregate syntax: 
query I rowsort label-7743
SELECT ALL 77 + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-7743
SELECT ALL 77 + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
74

query I rowsort
SELECT + col2 * + - 60 * - + col0 + - col0 AS col0 FROM tab2 AS cor0
----
153536
260925
63434

onlyif mysql # aggregate syntax: 
query I rowsort label-7745
SELECT DISTINCT + ( + ( + COUNT( * ) ) ) AS col1 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7745
SELECT DISTINCT + ( + ( + COUNT ( * ) ) ) AS col1 FROM tab1 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7746
SELECT DISTINCT + - COUNT( * ) AS col2 FROM tab0 WHERE ( NOT ( - col1 ) <> col1 + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-7746
SELECT DISTINCT + - COUNT ( * ) AS col2 FROM tab0 WHERE ( NOT ( - col1 ) <> col1 + col1 )
----
0

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE + 92 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + + ( col1 ) col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - col1 - + 8 * + 93 + + + col0 * ( + col2 ) AS col2 FROM tab2 AS cor0
----
1739
263
3539

query I rowsort
SELECT DISTINCT col0 + + - ( col2 ) * + 23 * - - ( - col0 ) AS col1 FROM tab0 AS cor0
----
16230
20097
220966

query I rowsort
SELECT + 95 * + col2 + col0 FROM tab0
----
1037
4480
9502

onlyif mysql # DIV for integer division: 
query I rowsort label-7752
SELECT - col2 + col1 DIV + col0 FROM tab2
----
-22
-39
-58

skipif mysql # not compatible
query I rowsort label-7752
SELECT - col2 + col1 / + col0 FROM tab2
----
-22
-39
-58

query I rowsort
SELECT col0 + + 83 FROM tab0
----
170
180
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7754
SELECT + COUNT( + 35 ) + - - SUM( DISTINCT + col1 ) DIV + + 51 FROM tab0
----
5

skipif mysql # not compatible
query I rowsort label-7754
SELECT + COUNT ( + 35 ) + - - SUM ( DISTINCT + col1 ) / + + 51 FROM tab0
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-7755
SELECT DISTINCT ( + + col1 ) DIV - col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7755
SELECT DISTINCT ( + + col1 ) / - col0 FROM tab1
----
0

query I rowsort
SELECT - - col0 AS col2 FROM tab2 WHERE col0 * + col2 + - + 97 IS NULL
----

query I rowsort
SELECT 50 + + 22 * col0 FROM tab2
----
1062
1458
1700

query I rowsort
SELECT DISTINCT + - col1 - - 11 + - col2 - - 36 * + - col1 * + col2 FROM tab1 AS cor0
----
-10673
-115160
-48483

onlyif mysql # aggregate syntax: 
query II rowsort label-7759
SELECT - SUM( + col1 ), - 21 AS col2 FROM tab0
----
-103
-21

skipif mysql # not compatible
query II rowsort label-7759
SELECT - SUM ( + col1 ), - 21 AS col2 FROM tab0
----
-103
-21

query I rowsort
SELECT + 34 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NOT NULL
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

query I rowsort
SELECT 17 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 43298e43365fccb5146ea32003753c92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7762
SELECT COUNT( * ) DIV - 50 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7762
SELECT COUNT ( * ) / - 50 AS col0 FROM tab2 AS cor0
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN + 89 AND - - col2
----

query I rowsort
SELECT ALL - ( - + col0 ) AS col1 FROM tab0
----
15
87
97

query I rowsort
SELECT DISTINCT 50 + col2 + + + col0 * - 84 FROM tab1 AS cor0
----
-4138
-7031
-7526

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 15 * col0 col1, col2 FROM tab0 AS cor0
----
1305
10
1455
99
225
47

onlyif mysql # DIV for integer division: 
query I rowsort label-7767
SELECT - ( 85 ) DIV + ( - 75 ) FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7767
SELECT - ( 85 ) / + ( - 75 ) FROM tab2
----
1
1
1

query I rowsort
SELECT ALL - 54 + - col1 - - 96 * - 66 * + col0 * col1 AS col1 FROM tab0 cor0
----
-11575947
-614647
-7698375

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 14 + + col0 col2 FROM tab2 AS cor0
----
32
50
61

query I rowsort
SELECT DISTINCT ( - - 32 ) + col1 FROM tab1 AS cor0
----
37
46
79

query I rowsort
SELECT ALL - 63 * - col0 FROM tab2
----
2898
4032
4725

onlyif mysql # aggregate syntax: 
query I rowsort label-7772
SELECT 69 * + ( + COUNT( * ) ) AS col2 FROM tab0 WHERE NULL NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-7772
SELECT 69 * + ( + COUNT ( * ) ) AS col2 FROM tab0 WHERE NULL NOT BETWEEN NULL AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7773
SELECT - - COUNT( + 92 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7773
SELECT - - COUNT ( + 92 ) AS col1 FROM tab0 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 * + col2 * + col2 col2 FROM tab2 AS cor0
----
-12167
-195112
-64000

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col1 FROM tab2 AS cor0 WHERE NOT - col1 + col2 + col2 * + 88 = col1 * + col1
----
23
40
58

query II rowsort
SELECT + ( 11 ) * 49 * - col0 * - 25, col2 FROM tab1 AS cor0
----
1145375
59
1226225
68
687225
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7777
SELECT + ( + + SUM( col0 ) ) col1 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7777
SELECT + ( + + SUM ( col0 ) ) col1 FROM tab0 AS cor0
----
199

onlyif mysql # DIV for integer division: 
query I rowsort label-7778
SELECT - col2 DIV 94 AS col2 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7778
SELECT - col2 / 94 AS col2 FROM tab1 AS cor0
----
-1
0
0

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE NOT - col2 * - col0 < - - col1 / + + 22 * ( - col1 ) + col1
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7780
SELECT ALL - COUNT( * ) FROM tab1 WHERE - col0 BETWEEN - col0 + + - col0 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-7780
SELECT ALL - COUNT ( * ) FROM tab1 WHERE - col0 BETWEEN - col0 + + - col0 AND NULL
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT - + 32 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 52 FROM tab1 WHERE NOT - + col0 IS NOT NULL
----

query II rowsort
SELECT + 11 AS col0, - col1 * - 34 FROM tab2
----
11
1734
11
2278
11
2618

onlyif mysql # aggregate syntax: 
query I rowsort label-7784
SELECT COUNT( - 89 ) FROM tab1 WHERE NOT + 15 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7784
SELECT COUNT ( - 89 ) FROM tab1 WHERE NOT + 15 IS NOT NULL
----
0

query II rowsort
SELECT + 17 AS col2, + 55 * - col2 FROM tab1
----
17
-3245
17
-3740
17
-5280

query I rowsort
SELECT + + col1 + 33 + + - 95 FROM tab2 AS cor0
----
-11
15
5

query III rowsort
SELECT * FROM tab0 WHERE - 95 BETWEEN NULL AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7788
SELECT 99 * COUNT( * ) AS col2 FROM tab1
----
297

skipif mysql # not compatible
query I rowsort label-7788
SELECT 99 * COUNT ( * ) AS col2 FROM tab1
----
297

onlyif mysql # aggregate syntax: 
query I rowsort label-7789
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE col1 + + - col1 * - col1 * - + col0 * + + 49 + col0 - + 43 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-7789
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE col1 + + - col1 * - col1 * - + col0 * + + 49 + col0 - + 43 IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7790
SELECT ALL COUNT( * ) FROM tab1 AS cor0 WHERE col0 * + + col2 < - col1
----
0

skipif mysql # not compatible
query I rowsort label-7790
SELECT ALL COUNT ( * ) FROM tab1 AS cor0 WHERE col0 * + + col2 < - col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7791
SELECT col1 * CAST( NULL AS SIGNED ) * + 96 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7791
SELECT col1 * CAST ( NULL AS INTEGER ) * + 96 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + 86 * + + col1 + - col2 FROM tab1 cor0
----
-1300
-4110
-489

query I rowsort
SELECT col0 - + + col1 FROM tab1 cor0
----
37
44
80

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN + col1 AND + col1
----

query I rowsort
SELECT ALL + + col2 - - - col1 FROM tab2 cor0
----
-28
-37
-9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7796
SELECT * FROM tab2 WHERE + col1 / - + col0 IN ( - 75, 24, - + col1 * + + 55, + + col1 + + col1, + CAST( col0 AS SIGNED ) * + 79 )
----

skipif mysql # not compatible
query III rowsort label-7796
SELECT * FROM tab2 WHERE + col1 / - + col0 IN ( - 75, 24, - + col1 * + + 55, + + col1 + + col1, + CAST ( col0 AS INTEGER ) * + 79 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7797
SELECT 14 * - + 48 DIV + 48 + 75 * col0 FROM tab2
----
3436
4786
5611

skipif mysql # not compatible
query I rowsort label-7797
SELECT 14 * - + 48 / + 48 + 75 * col0 FROM tab2
----
3436
4786
5611

onlyif mysql # DIV for integer division: 
query I rowsort label-7798
SELECT + col0 DIV + 37 + col0 FROM tab1
----
52
87
93

skipif mysql # not compatible
query I rowsort label-7798
SELECT + col0 / + 37 + col0 FROM tab1
----
52
87
93

onlyif mysql # aggregate syntax: 
query I rowsort label-7799
SELECT COUNT( * ) + - ( COUNT( * ) ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7799
SELECT COUNT ( * ) + - ( COUNT ( * ) ) FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7800
SELECT - COUNT( - 61 ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-7800
SELECT - COUNT ( - 61 ) AS col1 FROM tab0
----
-3

query I rowsort
SELECT 24 * + - col2 FROM tab1
----
-1416
-1632
-2304

query I rowsort
SELECT DISTINCT - 60 * col2 AS col2 FROM tab0
----
-2820
-5940
-600

onlyif mysql # aggregate syntax: 
query I rowsort label-7803
SELECT ALL + COUNT( col0 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7803
SELECT ALL + COUNT ( col0 ) AS col1 FROM tab1
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-7804
SELECT - 43 DIV col0 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7804
SELECT - 43 / col0 AS col1 FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL >= + + 12
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7806
SELECT + + COUNT( * ) DIV 60 * 78 + - + COUNT( * ) + - CAST( 48 AS SIGNED ) FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-7806
SELECT + + COUNT ( * ) / 60 * 78 + - + COUNT ( * ) + - CAST ( 48 AS INTEGER ) FROM tab1 AS cor0
----
-51

query II rowsort
SELECT ALL + 83 * + - col0 * 86, + col1 AS col2 FROM tab1 cor0
----
-364038
14
-606730
5
-649558
47

query II rowsort
SELECT - + col1 * + col2 * + 0 AS col0, + col1 AS col0 FROM tab2 cor0
----
0
51
0
67
0
77

onlyif mysql # DIV for integer division: 
query I rowsort label-7809
SELECT DISTINCT - col0 DIV + 77 FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-7809
SELECT DISTINCT - col0 / + 77 FROM tab0 AS cor0
----
-1
0

query I rowsort
SELECT - 78 - + col2 AS col0 FROM tab2
----
-101
-118
-136

query I rowsort
SELECT DISTINCT col1 * - ( - col0 ) + + ( + ( + col1 ) ) FROM tab1 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col1 + + 3 < + 82
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 / col2 FROM tab1 WHERE col0 >= NULL
----

query I rowsort
SELECT ALL + col0 * col2 FROM tab1 WHERE NOT - col0 > ( ( col1 ) )
----
4896
5015
6188

query I rowsort
SELECT DISTINCT col0 + + 93 FROM tab1
----
144
178
184

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col0 NOT BETWEEN + col1 AND col2 * 37
----

query I rowsort
SELECT - col0 AS col0 FROM tab2 WHERE NOT - col0 IS NULL
----
-46
-64
-75

query III rowsort
SELECT * FROM tab1 WHERE + col0 - 26 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col0 - ( col1 ) FROM tab1 WHERE NOT + col0 IS NOT NULL
----

query I rowsort
SELECT ALL col1 * - col1 + col1 FROM tab2 WHERE NOT 20 / + 4 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE + 44 NOT IN ( 26 + + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 68 + 34 AS col2 FROM tab2
----
102
102
102

query I rowsort
SELECT 74 * - 43 FROM tab1
----
-3182
-3182
-3182

onlyif mysql # aggregate syntax: 
query I rowsort label-7824
SELECT ALL COUNT( * ) + COUNT( * ) col0 FROM tab1
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7824
SELECT ALL COUNT ( * ) + COUNT ( * ) col0 FROM tab1
----
6

query I rowsort
SELECT ALL - ( 79 ) AS col1 FROM tab0
----
-79
-79
-79

query I rowsort
SELECT DISTINCT 61 - 50 FROM tab1
----
11

query III rowsort
SELECT * FROM tab2 WHERE NOT 5 + 33 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col0 * ( + 12 ) FROM tab1
----
1020
1092
612

onlyif mysql # aggregate syntax: 
query I rowsort label-7829
SELECT ALL COUNT( * ) col1 FROM tab2 WHERE col1 + col2 NOT IN ( 49 )
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7829
SELECT ALL COUNT ( * ) col1 FROM tab2 WHERE col1 + col2 NOT IN ( 49 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7830
SELECT ALL - COUNT( * ) * COUNT( * ) AS col1 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-7830
SELECT ALL - COUNT ( * ) * COUNT ( * ) AS col1 FROM tab1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7831
SELECT ALL SUM( DISTINCT + col1 ) col1 FROM tab1 WHERE 12 <= ( - col2 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7831
SELECT ALL SUM ( DISTINCT + col1 ) col1 FROM tab1 WHERE 12 <= ( - col2 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7832
SELECT - COUNT( * ) AS col1 FROM tab2 WHERE NULL >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-7832
SELECT - COUNT ( * ) AS col1 FROM tab2 WHERE NULL >= NULL
----
0

query I rowsort
SELECT ALL - 47 + - col1 AS col0 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT col2 FROM tab1 WHERE NOT - 85 + - col2 < col2
----

query III rowsort
SELECT * FROM tab1 WHERE NOT 19 BETWEEN ( 19 * - 25 ) AND col1 * + ( - col1 ) - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - col2 ) NOT BETWEEN ( col1 ) AND ( + col1 * col0 )
----

query I rowsort
SELECT - col2 FROM tab0 WHERE NOT NULL < ( NULL )
----

query I rowsort
SELECT DISTINCT 2 + 9 FROM tab1 cor0
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7839
SELECT ALL - COUNT( + col2 ) DIV - 21 + COUNT( * ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7839
SELECT ALL - COUNT ( + col2 ) / - 21 + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7840
SELECT ALL + col1 * + col0 + + CAST( NULL AS SIGNED ) * - col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7840
SELECT ALL + col1 * + col0 + + CAST ( NULL AS INTEGER ) * - col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7841
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) = ( - col0 * col2 + col1 * + CAST( + col2 * - col1 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-7841
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) = ( - col0 * col2 + col1 * + CAST ( + col2 * - col1 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7842
SELECT + MIN( ALL 60 ) - - ( COUNT( * ) ) col2 FROM tab1 AS cor0
----
63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7842
SELECT + MIN ( ALL 60 ) - - ( COUNT ( * ) ) col2 FROM tab1 AS cor0
----
63

query I rowsort
SELECT + col0 + - col0 AS col1 FROM tab1 AS cor0 WHERE col1 BETWEEN col1 AND ( NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7844
SELECT 90 DIV + 33 + - COUNT( * ) AS col0 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-7844
SELECT 90 / + 33 + - COUNT ( * ) AS col0 FROM tab2
----
-1

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 + col1 <= col2
----
15
81
47
87
21
10

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( + 14 ) > col1
----

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE 46 >= - 61
----
46
64
75

query I rowsort
SELECT + col1 FROM tab1 AS cor0 WHERE ( col2 ) NOT BETWEEN ( + col1 ) AND ( - col2 * + col1 )
----
14
47
5

query I rowsort
SELECT ALL col0 + - ( - 17 ) AS col0 FROM tab1 cor0
----
102
108
68

query I rowsort
SELECT DISTINCT + 45 - - col1 AS col2 FROM tab1 AS cor0
----
50
59
92

onlyif mysql # aggregate syntax: 
query I rowsort label-7851
SELECT DISTINCT + 5 + SUM( ALL - 96 + + col2 ) FROM tab1 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-7851
SELECT DISTINCT + 5 + SUM ( ALL - 96 + + col2 ) FROM tab1 AS cor0
----
-60

query I rowsort
SELECT DISTINCT ( + 10 ) * col1 + 16 FROM tab0 AS cor0
----
226
26
826

onlyif mysql # aggregate syntax: 
query I rowsort label-7853
SELECT ALL ( 16 ) - - COUNT( * ) AS col0 FROM tab0 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-7853
SELECT ALL ( 16 ) - - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
19

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 / col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7855
SELECT ALL MIN( DISTINCT col2 ) AS col2 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-7855
SELECT ALL MIN ( DISTINCT col2 ) AS col2 FROM tab0
----
10

query I rowsort
SELECT ALL ( + 38 ) FROM tab0
----
38
38
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7857
SELECT - SUM( ALL + col2 ) * - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7857
SELECT - SUM ( ALL + col2 ) * - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( 49 ) IN ( 70 + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 0 * - + col2 col0 FROM tab0 cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT + col0 + col0 NOT BETWEEN + 22 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7861
SELECT - - CAST( NULL AS SIGNED ) * + - col0 * col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7861
SELECT - - CAST ( NULL AS INTEGER ) * + - col0 * col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( col1 / + col1 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT - col0 AS col0, ( col2 ) AS col0 FROM tab2
----
-46
23
-64
40
-75
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 69 col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

query II rowsort
SELECT ALL + - col2, col0 * col1 AS col1 FROM tab0 AS cor0
----
-10
1827
-47
1215
-99
97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 BETWEEN ( NULL ) AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7867
SELECT DISTINCT + 63 DIV + col0 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-7867
SELECT DISTINCT + 63 / + col0 FROM tab2 AS cor0
----
0
1

query I rowsort
SELECT + - 13 * + col2 AS col1 FROM tab1 AS cor0
----
-1248
-767
-884

onlyif mysql # aggregate syntax: 
query I rowsort label-7869
SELECT ALL - + MIN( DISTINCT - - 96 ) FROM tab2 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-7869
SELECT ALL - + MIN ( DISTINCT - - 96 ) FROM tab2 AS cor0
----
-96

query I rowsort
SELECT ALL - 93 * - 46 * + 38 FROM tab0
----
162564
162564
162564

query I rowsort
SELECT DISTINCT - 99 * + 21 FROM tab0
----
-2079

query I rowsort
SELECT + 33 + + col1 * + - col1 AS col0 FROM tab1
----
-163
-2176
8

query III rowsort
SELECT * FROM tab2 WHERE + ( + col2 ) >= col0 * + ( ( 40 ) )
----

query I rowsort
SELECT + 65 + - - ( + col1 ) + + col1 * ( + col2 ) FROM tab2
----
1289
3222
4018

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 84 + + col1 col1 FROM tab1
----
131
89
98

onlyif mysql # aggregate syntax: 
query II rowsort label-7876
SELECT COUNT( * ) + + + 15 AS col0, 22 + + + COUNT( * ) AS col0 FROM tab2
----
18
25

skipif mysql # not compatible
query II rowsort label-7876
SELECT COUNT ( * ) + + + 15 AS col0, 22 + + + COUNT ( * ) AS col0 FROM tab2
----
18
25

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT IN ( + 91, col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7878
SELECT - 81 + - ( - COUNT( DISTINCT + col2 ) ) + COUNT( - col0 + + 58 * - col1 ) * + 2 AS col1 FROM tab1 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-7878
SELECT - 81 + - ( - COUNT ( DISTINCT + col2 ) ) + COUNT ( - col0 + + 58 * - col1 ) * + 2 AS col1 FROM tab1 AS cor0
----
-72

query II rowsort
SELECT ALL + col2 * col1 * + col1 AS col0, - col0 - - 87 * col0 AS col1 FROM tab1
----
1475
7310
150212
7826
18816
4386

onlyif mysql # aggregate syntax: 
query II rowsort label-7880
SELECT DISTINCT SUM( DISTINCT + - ( + col2 ) ), + 44 col1 FROM tab0
----
-156
44

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7880
SELECT DISTINCT SUM ( DISTINCT + - ( + col2 ) ), + 44 col1 FROM tab0
----
-156
44

query I rowsort
SELECT ALL - - col1 + + col1 AS col0 FROM tab1 AS cor0
----
10
28
94

query I rowsort
SELECT ALL + col2 / col1 FROM tab0 AS cor0 WHERE NOT col1 * - - ( + + col1 ) <> NULL
----

query I rowsort
SELECT DISTINCT - - 36 AS col0 FROM tab0 cor0
----
36

query I rowsort
SELECT DISTINCT + + ( 72 ) FROM tab1 AS cor0
----
72

query I rowsort
SELECT ALL - col0 + 6 FROM tab2 WHERE ( NOT ( NULL ) >= NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7886
SELECT ALL + 91 DIV col0 AS col1 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7886
SELECT ALL + 91 / col0 AS col1 FROM tab1
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 58 col2 FROM tab2
----
58

onlyif mysql # aggregate syntax: 
query II rowsort label-7888
SELECT 23 AS col1, COUNT( * ) FROM tab1
----
23
3

skipif mysql # not compatible
query II rowsort label-7888
SELECT 23 AS col1, COUNT ( * ) FROM tab1
----
23
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7889
SELECT MIN( - ( 55 ) ) FROM tab0
----
-55

skipif mysql # not compatible
query I rowsort label-7889
SELECT MIN ( - ( 55 ) ) FROM tab0
----
-55

query II rowsort
SELECT DISTINCT col1 AS col2, 4 AS col2 FROM tab0
----
1
4
21
4
81
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7891
SELECT DISTINCT + SUM( DISTINCT - col2 ) / MIN( DISTINCT 30 ) AS col0 FROM tab0 WHERE NOT col2 + - + col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7891
SELECT DISTINCT + SUM ( DISTINCT - col2 ) / MIN ( DISTINCT 30 ) AS col0 FROM tab0 WHERE NOT col2 + - + col1 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7892
SELECT + COUNT( ALL - 85 ) AS col0 FROM tab1, tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-7892
SELECT + COUNT ( ALL - 85 ) AS col0 FROM tab1, tab1 AS cor0
----
9

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE - - 92 * - + ( col2 ) NOT BETWEEN - + ( - ( - 47 ) ) * 62 AND NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7894
SELECT DISTINCT SUM( ALL ( 59 ) ) AS col0 FROM tab0
----
177

skipif mysql # not compatible
query I rowsort label-7894
SELECT DISTINCT SUM ( ALL ( 59 ) ) AS col0 FROM tab0
----
177

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7895
SELECT ALL * FROM tab2 WHERE NOT + + 77 * - + CAST( + 10 AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7895
SELECT ALL * FROM tab2 WHERE NOT + + 77 * - + CAST ( + 10 AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7896
SELECT COUNT( * ) * 53 FROM tab2 AS cor0
----
159

skipif mysql # not compatible
query I rowsort label-7896
SELECT COUNT ( * ) * 53 FROM tab2 AS cor0
----
159

query I rowsort
SELECT DISTINCT - - 23 * col1 AS col1 FROM tab2 AS cor0
----
1173
1541
1771

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col2 + - ( - col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 78 NOT IN ( + col1 )
----

query I rowsort
SELECT ALL + + 64 AS col0 FROM tab0 AS cor0 WHERE NOT - col2 + col0 IS NOT NULL
----

query I rowsort
SELECT + - col2 AS col2 FROM tab2 AS cor0 WHERE NOT + 70 IS NULL
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-7902
SELECT - - COUNT( * ) col0, - SUM( col0 ) AS col2 FROM tab0 AS cor0
----
3
-199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7902
SELECT - - COUNT ( * ) col0, - SUM ( col0 ) AS col2 FROM tab0 AS cor0
----
3
-199

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 76 * + - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-7904
SELECT - - 86 DIV + col0 + + + 10 col0 FROM tab0 AS cor0
----
10
10
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7904
SELECT - - 86 / + col0 + + + 10 col0 FROM tab0 AS cor0
----
10
10
15

onlyif mysql # aggregate syntax: 
query I rowsort label-7905
SELECT + + COUNT( * ) + - - SUM( + ( - 49 ) ) * - SUM( DISTINCT col1 ) + MIN( ALL - 88 ) FROM tab2 AS cor0
----
28580

skipif mysql # not compatible
query I rowsort label-7905
SELECT + + COUNT ( * ) + - - SUM ( + ( - 49 ) ) * - SUM ( DISTINCT col1 ) + MIN ( ALL - 88 ) FROM tab2 AS cor0
----
28580

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 79 IN ( - + 29 + - 99, col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE 0 >= col2 * col2 + ( - col1 )
----

query I rowsort
SELECT ALL col0 AS col1 FROM tab2 WHERE NOT + col0 IN ( - col0 )
----
46
64
75

query I rowsort
SELECT ALL + col1 * 93 FROM tab1
----
1302
4371
465

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2, col0 col0 FROM tab1
----
59
85
68
91
96
51

query I rowsort
SELECT - col0 * 90 FROM tab0
----
-1350
-7830
-8730

query I rowsort
SELECT col1 * - col1 * - col0 AS col1 FROM tab1
----
201019
2125
9996

query I rowsort
SELECT DISTINCT - 70 * + 66 AS col0 FROM tab1
----
-4620

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7914
SELECT col1 * - 68 AS col0 FROM tab0 WHERE CAST( NULL AS SIGNED ) * col2 - - - col2 + - + col0 + + col0 + + 57 BETWEEN ( col1 * + col0 ) AND ( + 7 )
----

skipif mysql # not compatible
query I rowsort label-7914
SELECT col1 * - 68 AS col0 FROM tab0 WHERE CAST ( NULL AS INTEGER ) * col2 - - - col2 + - + col0 + + col0 + + 57 BETWEEN ( col1 * + col0 ) AND ( + 7 )
----

query III rowsort
SELECT * FROM tab2 WHERE + col2 * 53 / + - col1 * - col2 IS NULL
----

query I rowsort
SELECT - col1 * - - col1 + - col0 + - - 72 * + col2 + 44 * col2 AS col2 FROM tab1 AS cor0 WHERE ( - col0 * + - col2 ) IS NOT NULL
----
10889
5588
6734

onlyif mysql # aggregate syntax: 
query I rowsort label-7917
SELECT DISTINCT - + COUNT( * ) AS col1 FROM tab1 WHERE NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-7917
SELECT DISTINCT - + COUNT ( * ) AS col1 FROM tab1 WHERE NULL < NULL
----
0

query I rowsort
SELECT DISTINCT ( + - 77 ) FROM tab2 AS cor0
----
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-7919
SELECT ALL + 10 DIV col1 * - 9 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7919
SELECT ALL + 10 / col1 * - 9 AS col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7920
SELECT DISTINCT - CAST( + + COUNT( + - col0 ) AS SIGNED ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7920
SELECT DISTINCT - CAST ( + + COUNT ( + - col0 ) AS INTEGER ) FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7921
SELECT + MIN( ALL ( - 88 ) ) AS col0 FROM tab0 AS cor0
----
-88

skipif mysql # not compatible
query I rowsort label-7921
SELECT + MIN ( ALL ( - 88 ) ) AS col0 FROM tab0 AS cor0
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-7922
SELECT + - MAX( DISTINCT + col1 ) FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-7922
SELECT + - MAX ( DISTINCT + col1 ) FROM tab0 AS cor0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-7923
SELECT ALL - ( - ( + COUNT( DISTINCT + ( - + ( + col1 ) ) ) ) ) col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7923
SELECT ALL - ( - ( + COUNT ( DISTINCT + ( - + ( + col1 ) ) ) ) ) col1 FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT - - 15 AS col1 FROM tab2 AS cor0
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7925
SELECT CAST( - 63 AS SIGNED ) FROM tab0
----
-63
-63
-63

skipif mysql # not compatible
query I rowsort label-7925
SELECT CAST ( - 63 AS INTEGER ) FROM tab0
----
-63
-63
-63

query I rowsort
SELECT 89 AS col2 FROM tab0 WHERE NOT ( NULL ) BETWEEN - ( + 47 ) AND ( + col1 / + col1 ) AND NULL IS NULL
----

query II rowsort
SELECT DISTINCT - col0 AS col0, col2 FROM tab2
----
-46
23
-64
40
-75
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7928
SELECT DISTINCT COUNT( ALL + ( 54 ) ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7928
SELECT DISTINCT COUNT ( ALL + ( 54 ) ) AS col0 FROM tab0
----
3

query I rowsort
SELECT ALL + col1 * + + col1 * + 59 - + - ( - col1 ) AS col0 FROM tab0 AS cor0 WHERE NOT + col0 / 76 IS NULL
----
25998
387018
58

query I rowsort
SELECT col2 + - - col2 FROM tab1 AS cor0
----
118
136
192

onlyif mysql # aggregate syntax: 
query I rowsort label-7931
SELECT ALL COUNT( * ) * + 53 FROM tab1
----
159

skipif mysql # not compatible
query I rowsort label-7931
SELECT ALL COUNT ( * ) * + 53 FROM tab1
----
159

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL <> 72 - + col0
----

query I rowsort
SELECT + + ( - col0 ) - + 30 FROM tab0 WHERE + + col2 + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7934
SELECT ALL + - COUNT( * ) AS col1 FROM tab1 cor0 WHERE col0 * - col1 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-7934
SELECT ALL + - COUNT ( * ) AS col1 FROM tab1 cor0 WHERE col0 * - col1 IS NOT NULL
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7935
SELECT CAST( + 47 AS SIGNED ) FROM tab0 AS cor0 WHERE + col0 * - + col0 IS NOT NULL
----
47
47
47

skipif mysql # not compatible
query I rowsort label-7935
SELECT CAST ( + 47 AS INTEGER ) FROM tab0 AS cor0 WHERE + col0 * - + col0 IS NOT NULL
----
47
47
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 47 + 73 col2 FROM tab1 AS cor0
----
26
26
26

query I rowsort
SELECT DISTINCT 73 FROM tab1 AS cor0 WHERE 19 IS NOT NULL
----
73

query I rowsort
SELECT ALL - 7 + + col0 FROM tab2 cor0
----
39
57
68

query I rowsort
SELECT DISTINCT - col0 FROM tab2 AS cor0 WHERE NOT NULL <> ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7940
SELECT ALL col1 * - - CAST( NULL AS SIGNED ), - 93 AS col1 FROM tab1 AS cor0
----
NULL
-93
NULL
-93
NULL
-93

skipif mysql # not compatible
query II rowsort label-7940
SELECT ALL col1 * - - CAST ( NULL AS INTEGER ), - 93 AS col1 FROM tab1 AS cor0
----
NULL
-93
NULL
-93
NULL
-93

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 <= + - 21
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 18 + + 31 col2 FROM tab2 AS cor0
----
13
13
13

query I rowsort
SELECT ALL + - col0 * + + 71 FROM tab1 AS cor0
----
-3621
-6035
-6461

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7944
SELECT DISTINCT - ( CAST( NULL AS SIGNED ) ) + - COUNT( * ) + + 58 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7944
SELECT DISTINCT - ( CAST ( NULL AS INTEGER ) ) + - COUNT ( * ) + + 58 FROM tab1
----
NULL

query II rowsort
SELECT 36 + + col1, col1 * col1 AS col1 FROM tab1
----
41
25
50
196
83
2209

query III rowsort
SELECT * FROM tab2 WHERE 6 + + + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 84 + + col2 AS col0 FROM tab2
----
107
124
142

query I rowsort
SELECT - col1 * col0 * + col0 FROM tab0
----
-158949
-18225
-9409

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col1 <= 96 + + col2 - - 23
----

query I rowsort
SELECT - col1 * + col2 * - col0 + - 21 FROM tab2 AS cor0
----
197099
291429
53937

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT ( NOT ( + col1 ) + + col2 IS NULL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - + 84 FROM tab0 cor0
----
-84
-84
-84

query II rowsort
SELECT col1, 19 * - + 74 FROM tab2 AS cor0
----
51
-1406
67
-1406
77
-1406

onlyif mysql # aggregate syntax: 
query I rowsort label-7954
SELECT DISTINCT + MAX( ALL - - 22 ) * - - 60 AS col0 FROM tab0 AS cor0
----
1320

skipif mysql # not compatible
query I rowsort label-7954
SELECT DISTINCT + MAX ( ALL - - 22 ) * - - 60 AS col0 FROM tab0 AS cor0
----
1320

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + - col2 ) col0 FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7956
SELECT 1, col1 AS col0 FROM tab1 WHERE NOT + CAST( NULL AS SIGNED ) > - + col1 * + col2 + col0
----

skipif mysql # not compatible
query II rowsort label-7956
SELECT 1, col1 AS col0 FROM tab1 WHERE NOT + CAST ( NULL AS INTEGER ) > - + col1 * + col2 + col0
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-7957
SELECT + col1 * - col0 AS col1, 1 - + CAST( NULL AS DECIMAL ) + - ( - col0 ) / - col0 + + CAST( - 6 AS SIGNED ) + + + col2 * - col1 AS col0 FROM tab0
----
-1215
NULL
-1827
NULL
-97
NULL

skipif mysql # not compatible
query II rowsort label-7957
SELECT + col1 * - col0 AS col1, 1 - + CAST ( NULL AS REAL ) + - ( - col0 ) / - col0 + + CAST ( - 6 AS INTEGER ) + + + col2 * - col1 AS col0 FROM tab0
----
-1215
NULL
-1827
NULL
-97
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - - col0 + - 79 < col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7959
SELECT MIN( DISTINCT - - ( - CAST( NULL AS SIGNED ) ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7959
SELECT MIN ( DISTINCT - - ( - CAST ( NULL AS INTEGER ) ) ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7960
SELECT DISTINCT + col2 FROM tab1 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) IS NOT NULL
----
59
68
96

skipif mysql # not compatible
query I rowsort label-7960
SELECT DISTINCT + col2 FROM tab1 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) IS NOT NULL
----
59
68
96

query II rowsort
SELECT + ( + + col2 ), 29 FROM tab0 AS cor0
----
10
29
47
29
99
29

query I rowsort
SELECT ALL 44 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

query I rowsort
SELECT DISTINCT - 94 AS col0 FROM tab1 WHERE NOT ( - - 13 ) = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7964
SELECT ALL CAST( - - col2 AS SIGNED ) + + col0 FROM tab1 cor0
----
144
147
159

skipif mysql # not compatible
query I rowsort label-7964
SELECT ALL CAST ( - - col2 AS INTEGER ) + + col0 FROM tab1 cor0
----
144
147
159

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL = col0 - - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7966
SELECT ALL + 37 - + MAX( ALL - 27 ) col1 FROM tab2 AS cor0
----
64

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7966
SELECT ALL + 37 - + MAX ( ALL - 27 ) col1 FROM tab2 AS cor0
----
64

query III rowsort
SELECT * FROM tab0 WHERE - + 27 + - - col1 NOT BETWEEN + + 95 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT col2, + 52 + - col2 AS col1 FROM tab1
----
59
-7
68
-16
96
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-7969
SELECT COUNT( DISTINCT + - 77 ) * + - COUNT( * ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-7969
SELECT COUNT ( DISTINCT + - 77 ) * + - COUNT ( * ) FROM tab2
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 19 col2, + ( - 8 ) * col1 AS col1 FROM tab0
----
19
-168
19
-648
19
-8

query III rowsort
SELECT * FROM tab0 WHERE 79 * - - ( col1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 16 * - 39 + + + col2 AS col1 FROM tab1
----
-528
-556
-565

onlyif mysql # aggregate syntax: 
query I rowsort label-7973
SELECT ALL - - ( - + MIN( ALL + ( + + col1 ) ) ) AS col1 FROM tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7973
SELECT ALL - - ( - + MIN ( ALL + ( + + col1 ) ) ) AS col1 FROM tab0 cor0
----
-1

query I rowsort
SELECT col1 + + + col1 + + col0 FROM tab1 AS cor0
----
185
79
95

query I rowsort
SELECT + 95 * - + col2 * - - 31 FROM tab1 AS cor0
----
-173755
-200260
-282720

onlyif mysql # DIV for integer division: 
query I rowsort label-7976
SELECT DISTINCT + col0 DIV 97 FROM tab0 cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-7976
SELECT DISTINCT + col0 / 97 FROM tab0 cor0
----
0
1

query I rowsort
SELECT - 34 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - 58 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col1 - - col2 col1 FROM tab0 AS cor0
----
1262
1837
196

query I rowsort
SELECT - 37 * - col0 * 62 AS col1 FROM tab0 AS cor0
----
199578
222518
34410

query I rowsort
SELECT ALL - col1 * + col1 + - - col0 AS col2 FROM tab2 cor0
----
-2555
-4414
-5865

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7982
SELECT DISTINCT - + col1 * ( + col2 ) AS col1, 1 * - col1 * - 84 + + ( CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
-1173
NULL
-3080
NULL
-3886
NULL

skipif mysql # not compatible
query II rowsort label-7982
SELECT DISTINCT - + col1 * ( + col2 ) AS col1, 1 * - col1 * - 84 + + ( CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
-1173
NULL
-3080
NULL
-3886
NULL

query I rowsort
SELECT col2 * + + col1 * + 80 FROM tab1 AS cor0
----
107520
23600
255680

query I rowsort
SELECT ALL + col1 AS col1 FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7985
SELECT - COUNT( * ) col1, ( - SUM( - 95 ) ) + + - COUNT( * ) FROM tab0
----
-3
282

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7985
SELECT - COUNT ( * ) col1, ( - SUM ( - 95 ) ) + + - COUNT ( * ) FROM tab0
----
-3
282

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7986
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0, col0 AS col1 FROM tab2
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-7986
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0, col0 AS col1 FROM tab2
----
NULL
46
NULL
64
NULL
75

query III rowsort
SELECT ALL * FROM tab2 WHERE + + ( - 65 ) * + + 72 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7988
SELECT + ( - + COUNT( * ) ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-7988
SELECT + ( - + COUNT ( * ) ) AS col1 FROM tab1
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7989
SELECT DISTINCT + + MAX( + col2 ) DIV + 64 + + 5 AS col0 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-7989
SELECT DISTINCT + + MAX ( + col2 ) / + 64 + + 5 AS col0 FROM tab0 AS cor0
----
6

query III rowsort
SELECT * FROM tab1 cor0 WHERE 9 NOT BETWEEN NULL AND + col0
----

query I rowsort
SELECT DISTINCT - 44 + - ( + 63 ) * + col0 AS col1 FROM tab0 cor0
----
-5525
-6155
-989

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7992
SELECT ( 37 ), - col2 + + col2 + + + col2 + - + 61 - - 22 / + CAST( NULL AS SIGNED ) * + col0 * + 39 * col2 + + col1 AS col2 FROM tab1
----
37
NULL
37
NULL
37
NULL

skipif mysql # not compatible
query II rowsort label-7992
SELECT ( 37 ), - col2 + + col2 + + + col2 + - + 61 - - 22 / + CAST ( NULL AS INTEGER ) * + col0 * + 39 * col2 + + col1 AS col2 FROM tab1
----
37
NULL
37
NULL
37
NULL

query I rowsort
SELECT ALL - col0 AS col1 FROM tab0 AS cor0 WHERE NOT - col2 NOT BETWEEN - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7994
SELECT DISTINCT + COUNT( * ) + 18 FROM tab0 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-7994
SELECT DISTINCT + COUNT ( * ) + 18 FROM tab0 AS cor0
----
21

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( 96 ) - + ( + + col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col0 - - 52 FROM tab1 AS cor0
----
103
137
143

query II rowsort
SELECT - 36 - + col0, 21 * - - col2 * col1 * 8 AS col1 FROM tab0 AS cor0
----
-123
35280
-133
16632
-51
639576

onlyif mysql # aggregate syntax: 
query I rowsort label-7998
SELECT + + MIN( 88 ) FROM tab1 cor0 WHERE col1 IS NOT NULL
----
88

skipif mysql # not compatible
query I rowsort label-7998
SELECT + + MIN ( 88 ) FROM tab1 cor0 WHERE col1 IS NOT NULL
----
88

query III rowsort
SELECT * FROM tab2 cor0 WHERE - 26 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8000
SELECT ALL ( + COUNT( * ) ) * + 93 - 88 + - 31 FROM tab1 AS cor0 WHERE NULL >= NULL
----
-119

skipif mysql # not compatible
query I rowsort label-8000
SELECT ALL ( + COUNT ( * ) ) * + 93 - 88 + - 31 FROM tab1 AS cor0 WHERE NULL >= NULL
----
-119

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 53 col0 FROM tab0 AS cor0 WHERE NOT - col2 NOT BETWEEN - col1 AND NULL
----

query I rowsort
SELECT col1 + + 26 * - + col0 * + col0 - + + 98 AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE ( - col2 + - col0 ) IS NULL
----

query I rowsort
SELECT ( + 67 ) * 74 * + 94 + + col1 AS col2 FROM tab0
----
466053
466073
466133

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col1 * + + col1 + + - col0 col1 FROM tab2
----
-119692
-336750
-379520

query I rowsort
SELECT + 79 + col1 AS col1 FROM tab1
----
126
84
93

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 >= + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + ( 63 ) FROM tab2 AS cor0
----
63
63
63

query I rowsort
SELECT DISTINCT + - 22 * + col2 * + col0 AS col1 FROM tab0 AS cor0
----
-15510
-19140
-211266

query I rowsort
SELECT 58 * - - 66 * + 34 AS col2 FROM tab2 AS cor0
----
130152
130152
130152

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 32 col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d30a2acbf33c88274474306936d3227b

query I rowsort
SELECT + + 61 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 07149905a72bd87553381f34d19ed290

onlyif mysql # aggregate syntax: 
query I rowsort label-8013
SELECT + - COUNT( DISTINCT - 97 ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
-1

skipif mysql # not compatible
query I rowsort label-8013
SELECT + - COUNT ( DISTINCT - 97 ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
-1

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 + + + col2 * col0 NOT BETWEEN + 9 * - col1 AND - + 3 + + + 3 - 93 / + col2 * + 4 * - 69
----

query I rowsort
SELECT DISTINCT + col1 / 22 FROM tab1 AS cor0 WHERE NOT NULL >= 41 + col0 + + + 7 + - - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8016
SELECT MAX( ALL - + col0 ) FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-8016
SELECT MAX ( ALL - + col0 ) FROM tab2 AS cor0
----
-46

query I rowsort
SELECT DISTINCT col2 * + + 85 AS col0 FROM tab1 AS cor0
----
5015
5780
8160

onlyif mysql # aggregate syntax: 
query I rowsort label-8018
SELECT 34 * - COUNT( * ) + ( 76 ) FROM tab1 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-8018
SELECT 34 * - COUNT ( * ) + ( 76 ) FROM tab1 AS cor0
----
-26

onlyif mysql # DIV for integer division: 
query II rowsort label-8019
SELECT - col1 + + 44 DIV + - 69 + col0 AS col2, col2 * + col1 AS col2 FROM tab2 AS cor0
----
-13
3080
-5
1173
8
3886

skipif mysql # not compatible
query II rowsort label-8019
SELECT - col1 + + 44 / + - 69 + col0 AS col2, col2 * + col1 AS col2 FROM tab2 AS cor0
----
-13
3080
-5
1173
8
3886

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8020
SELECT + 84 + + ( ( - - CAST( COUNT( * ) AS SIGNED ) ) ) / - MAX( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8020
SELECT + 84 + + ( ( - - CAST ( COUNT ( * ) AS INTEGER ) ) ) / - MAX ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + 91 col1 FROM tab2
----
114
131
149

query II rowsort
SELECT ALL col2, col1 + + + ( col2 ) FROM tab1 WHERE NOT + 80 NOT BETWEEN NULL AND - col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8023
SELECT DISTINCT COUNT( * ) * + ( - CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8023
SELECT DISTINCT COUNT ( * ) * + ( - CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8024
SELECT ALL COUNT( * ) DIV + 36 + + 49 FROM tab0
----
49

skipif mysql # not compatible
query I rowsort label-8024
SELECT ALL COUNT ( * ) / + 36 + + 49 FROM tab0
----
49

query I rowsort
SELECT ALL col0 + - col1 + ( col2 ) FROM tab1
----
112
133
139

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 58 < + col1 * - + 86 * + col0
----

query I rowsort
SELECT ALL + ( 75 ) FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
75
75
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8028
SELECT - - 70 + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
67

skipif mysql # not compatible
query I rowsort label-8028
SELECT - - 70 + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
67

query I rowsort
SELECT ALL - col1 + - - 26 / + + col0 + - col2 FROM tab0 AS cor0 WHERE NULL <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8030
SELECT ALL - 1 - - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8030
SELECT ALL - 1 - - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 12 - + col2 FROM tab2 AS cor0
----
-35
-52
-70

query II rowsort
SELECT DISTINCT - 43 + - col0 + 40 AS col1, - 96 FROM tab1 AS cor0
----
-54
-96
-88
-96
-94
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-8033
SELECT ALL COUNT( + + col2 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8033
SELECT ALL COUNT ( + + col2 ) AS col2 FROM tab0
----
3

query I rowsort
SELECT + col2 * col0 + - 44 AS col2 FROM tab1 WHERE NULL = + ( + col0 )
----

query I rowsort
SELECT DISTINCT col2 - col1 * + col2 FROM tab0
----
-200
-3760
0

query I rowsort
SELECT + 36 * - col2 - - col1 + col1 AS col0 FROM tab0
----
-1530
-318
-3562

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8037
SELECT ALL COUNT( * ) * - CAST( NULL AS DECIMAL ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8037
SELECT ALL COUNT ( * ) * - CAST ( NULL AS REAL ) AS col0 FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8038
SELECT ALL - col2 DIV - 73 AS col2 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8038
SELECT ALL - col2 / - 73 AS col2 FROM tab1
----
0
0
1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - - col0 / col0 + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8040
SELECT DISTINCT SUM( - + col1 ) col1 FROM tab0
----
-103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8040
SELECT DISTINCT SUM ( - + col1 ) col1 FROM tab0
----
-103

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8041
SELECT COUNT( * ) DIV + MAX( col0 ) AS col1 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-8041
SELECT COUNT ( * ) / + MAX ( col0 ) AS col1 FROM tab2 cor0
----
0

query I rowsort
SELECT + - 6 AS col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e92b2679faac7be63701967e3f0c0934

onlyif mysql # aggregate syntax: 
query I rowsort label-8043
SELECT + COUNT( col2 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8043
SELECT + COUNT ( col2 ) AS col0 FROM tab1
----
3

query I rowsort
SELECT + col1 * 37 AS col0 FROM tab0
----
2997
37
777

query I rowsort
SELECT - + col0 * 41 AS col0 FROM tab0 AS cor0
----
-3567
-3977
-615

onlyif mysql # aggregate syntax: 
query I rowsort label-8046
SELECT - + MAX( DISTINCT col0 ) FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-8046
SELECT - + MAX ( DISTINCT col0 ) FROM tab1 AS cor0
----
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 38 + - 59 col1 FROM tab2 AS cor0
----
-21
-21
-21

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 40 * - col1 IN ( + col2, + col1, + + 3, - 45 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-8049
SELECT DISTINCT - 29 AS col1, COUNT( * ) FROM tab2
----
-29
3

skipif mysql # not compatible
query II rowsort label-8049
SELECT DISTINCT - 29 AS col1, COUNT ( * ) FROM tab2
----
-29
3

query II rowsort
SELECT DISTINCT - col0, col2 AS col2 FROM tab2
----
-46
23
-64
40
-75
58

query II rowsort
SELECT DISTINCT + 52 AS col2, - 87 FROM tab1
----
52
-87

query I rowsort
SELECT DISTINCT + 32 * - col2 FROM tab1
----
-1888
-2176
-3072

query I rowsort
SELECT ALL + - 93 + col1 FROM tab2 AS cor0
----
-16
-26
-42

query I rowsort
SELECT col2 + + + ( - 3 ) AS col2 FROM tab2 AS cor0
----
20
37
55

query I rowsort
SELECT ALL + + col1 + - - col1 + + - 83 FROM tab1 AS cor0
----
-55
-73
11

query I rowsort
SELECT DISTINCT + - 62 + + col2 FROM tab2 AS cor0
----
-22
-39
-4

query I rowsort
SELECT DISTINCT - 79 * + col2 * - + ( - 77 ) - + col0 FROM tab1
----
-358982
-413735
-584019

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8058
SELECT ALL CAST( NULL AS SIGNED ) / + col1 / - col2 col1, 59 col2 FROM tab2
----
NULL
59
NULL
59
NULL
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8058
SELECT ALL CAST ( NULL AS INTEGER ) / + col1 / - col2 col1, 59 col2 FROM tab2
----
NULL
59
NULL
59
NULL
59

onlyif mysql # DIV for integer division: 
query II rowsort label-8059
SELECT - col2 DIV + col2, col2 FROM tab0
----
-1
10
-1
47
-1
99

skipif mysql # not compatible
query II rowsort label-8059
SELECT - col2 / + col2, col2 FROM tab0
----
-1
10
-1
47
-1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8060
SELECT DISTINCT COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE + 79 * 13 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-8060
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE + 79 * 13 <= NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL IN ( - col1, + col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8062
SELECT ALL CAST( NULL AS DECIMAL ) * COUNT( * ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8062
SELECT ALL CAST ( NULL AS REAL ) * COUNT ( * ) AS col0 FROM tab1
----
NULL

query I rowsort
SELECT - col1 * - + col2 - + 86 AS col1 FROM tab2
----
1087
2994
3800

query I rowsort
SELECT ALL - 3 + col1 - col2 AS col1 FROM tab0 AS cor0
----
-101
31
8

query II rowsort
SELECT ALL - col2 + col1 AS col2, - 28 AS col0 FROM tab1 cor0
----
-21
-28
-54
-28
-82
-28

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 66 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8067
SELECT DISTINCT - col0 AS col2, col1 - - col1 - - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-8067
SELECT DISTINCT - col0 AS col2, col1 - - col1 - - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + ( + 30 ) NOT BETWEEN NULL AND 13
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8069
SELECT DISTINCT - 1 * CAST( NULL AS DECIMAL ) FROM tab1 WHERE - - col1 > - ( - 18 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8069
SELECT DISTINCT - 1 * CAST ( NULL AS REAL ) FROM tab1 WHERE - - col1 > - ( - 18 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8070
SELECT ALL - COUNT( * ) * - - 99 AS col0 FROM tab1
----
-297

skipif mysql # not compatible
query I rowsort label-8070
SELECT ALL - COUNT ( * ) * - - 99 AS col0 FROM tab1
----
-297

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8071
SELECT DISTINCT col1 / CAST( NULL AS SIGNED ) * + col2 * - col2 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8071
SELECT DISTINCT col1 / CAST ( NULL AS INTEGER ) * + col2 * - col2 AS col0 FROM tab0
----
NULL

query II rowsort
SELECT col0 AS col0, 86 FROM tab1
----
51
86
85
86
91
86

query I rowsort
SELECT - col2 * - 28 AS col0 FROM tab0
----
1316
2772
280

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8074
SELECT * FROM tab1 WHERE NOT - - 16 - col0 + - 69 * + + CAST( - col2 AS SIGNED ) + col1 * - 83 + - - col2 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8074
SELECT * FROM tab1 WHERE NOT - - 16 - col0 + - 69 * + + CAST ( - col2 AS INTEGER ) + col1 * - 83 + - - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8075
SELECT ALL COUNT( * ) * - 38 AS col2 FROM tab0
----
-114

skipif mysql # not compatible
query I rowsort label-8075
SELECT ALL COUNT ( * ) * - 38 AS col2 FROM tab0
----
-114

query I rowsort
SELECT DISTINCT - ( - ( - col0 ) ) AS col1 FROM tab2
----
-46
-64
-75

query II rowsort
SELECT ALL col1 AS col0, + 9 + - - col0 FROM tab2
----
51
55
67
84
77
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 col1 FROM tab1 WHERE NOT NULL > + + col0
----

query I rowsort
SELECT ALL - ( - 81 ) AS col0 FROM tab1
----
81
81
81

onlyif mysql # DIV for integer division: 
query II rowsort label-8080
SELECT DISTINCT col0 DIV - 61, col0 DIV - 18 AS col1 FROM tab1
----
-1
-4
-1
-5
0
-2

skipif mysql # not compatible
query II rowsort label-8080
SELECT DISTINCT col0 / - 61, col0 / - 18 AS col1 FROM tab1
----
-1
-4
-1
-5
0
-2

query I rowsort
SELECT DISTINCT col0 * - + 61 + + - col2 * + col0 + - 19 AS col1 FROM tab1 AS cor0 WHERE NOT 88 IS NULL
----
-10219
-11758
-8026

query I rowsort
SELECT DISTINCT - col2 + + 7 AS col2 FROM tab1 AS cor0
----
-52
-61
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-8083
SELECT DISTINCT + MAX( - 59 ) FROM tab0 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-8083
SELECT DISTINCT + MAX ( - 59 ) FROM tab0 AS cor0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-8084
SELECT DISTINCT + SUM( - col2 ) AS col0 FROM tab0 cor0
----
-156

skipif mysql # not compatible
query I rowsort label-8084
SELECT DISTINCT + SUM ( - col2 ) AS col0 FROM tab0 cor0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-8085
SELECT - 4 + - COUNT( 24 ) AS col1 FROM tab1 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-8085
SELECT - 4 + - COUNT ( 24 ) AS col1 FROM tab1 AS cor0
----
-7

query I rowsort
SELECT DISTINCT + + col2 + - + col2 * + + 57 AS col0 FROM tab2 AS cor0
----
-1288
-2240
-3248

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 31 col2 FROM tab1 AS cor0
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8088
SELECT - + 12 + - + SUM( ALL + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8088
SELECT - + 12 + - + SUM ( ALL + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8089
SELECT ALL - MAX( + col1 ) AS col2 FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-8089
SELECT ALL - MAX ( + col1 ) AS col2 FROM tab0
----
-81

query II rowsort
SELECT col0 AS col2, 82 * - 96 AS col0 FROM tab0
----
15
-7872
87
-7872
97
-7872

onlyif mysql # DIV for integer division: 
query I rowsort label-8091
SELECT col0 DIV + 91 * - col1 * + 76 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8091
SELECT col0 / + 91 * - col1 * + 76 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8092
SELECT 98 DIV - 90 AS col1 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8092
SELECT 98 / - 90 AS col1 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT DISTINCT - 77 * - col2 * col0 AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + 65 + - col2 FROM tab2 cor0
----
25
42
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8095
SELECT + MIN( ALL + col0 ) AS col2 FROM tab2 cor0
----
46

skipif mysql # not compatible
query I rowsort label-8095
SELECT + MIN ( ALL + col0 ) AS col2 FROM tab2 cor0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-8096
SELECT + 25 - + MAX( + + 37 ) FROM tab1 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-8096
SELECT + 25 - + MAX ( + + 37 ) FROM tab1 AS cor0
----
-12

query I rowsort
SELECT - col1 + + 11 + - 58 * + 21 * - col0 + - 23 AS col1 FROM tab2 AS cor0
----
55965
77863
91271

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8098
SELECT + col2 + col1 - - col1 - + + 22 + - 26 * - 87, CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
2365
NULL
2432
NULL
2434
NULL

skipif mysql # not compatible
query II rowsort label-8098
SELECT + col2 + col1 - - col1 - + + 22 + - 26 * - 87, CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
2365
NULL
2432
NULL
2434
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 + 24 + - col1 >= + col1
----
87
21
10
97
1
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8100
SELECT ALL + col1 + + ( - 31 ) * + col1 * + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8100
SELECT ALL + col1 + + ( - 31 ) * + col1 * + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ( + + col2 ) FROM tab1 AS cor0
----
59
68
96

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col2 * 0 / + - col0 IS NOT NULL
----

query I rowsort
SELECT col2 * 86 AS col0 FROM tab1 cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----

query I rowsort
SELECT DISTINCT - col0 * - - col0 AS col2 FROM tab0 AS cor0
----
-225
-7569
-9409

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8105
SELECT ALL - + AVG ( DISTINCT - + col2 ) * + - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8105
SELECT ALL - + AVG ( DISTINCT - + col2 ) * + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT ALL + 53 AS col2, - ( - 13 ) * + col2 AS col1 FROM tab2 AS cor0
----
53
299
53
520
53
754

query I rowsort
SELECT ALL - col1 * - - col0 AS col1 FROM tab1 AS cor0 WHERE NULL = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8108
SELECT DISTINCT - + CAST( NULL AS SIGNED ) * - col0 + - col1 + 7 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8108
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * - col0 + - col1 + 7 AS col2 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL BETWEEN col2 AND - - 98
----

query II rowsort
SELECT ALL - col0 * - col1, - col2 AS col2 FROM tab1
----
425
-59
4277
-68
714
-96

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL IN ( col1, col2 / col2 * col1, + - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8112
SELECT col1 * + col1 * + CAST( + - col1 AS SIGNED ) AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-1
-531441
-9261

skipif mysql # not compatible
query I rowsort label-8112
SELECT col1 * + col1 * + CAST ( + - col1 AS INTEGER ) AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-1
-531441
-9261

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 38 col2 FROM tab2 WHERE + col0 * - - 51 + + + col2 NOT IN ( + col2 * - 33 * col2 )
----
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 * - 74 AS col1, - 79 col0 FROM tab2 AS cor0
----
-3404
-79
-4736
-79
-5550
-79

query I rowsort
SELECT ALL - col0 * 23 + + col0 FROM tab1 AS cor0
----
-1122
-1870
-2002

query I rowsort
SELECT DISTINCT + 8 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
8

query I rowsort
SELECT - col1 + 55 * + ( 31 ) AS col0 FROM tab2 AS cor0
----
1628
1638
1654

onlyif mysql # aggregate syntax: 
query I rowsort label-8118
SELECT DISTINCT + SUM( - + col2 ) AS col1 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-8118
SELECT DISTINCT + SUM ( - + col2 ) AS col1 FROM tab1 AS cor0
----
-223

onlyif mysql # aggregate syntax: 
query II rowsort label-8119
SELECT ALL 10 AS col1, COUNT( + 56 ) col0 FROM tab2
----
10
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8119
SELECT ALL 10 AS col1, COUNT ( + 56 ) col0 FROM tab2
----
10
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8120
SELECT ALL MIN( DISTINCT 80 ) + - COUNT( * ) col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
71

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8120
SELECT ALL MIN ( DISTINCT 80 ) + - COUNT ( * ) col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
71

onlyif mysql # aggregate syntax: 
query II rowsort label-8121
SELECT + 44 AS col1, COUNT( * ) FROM tab0
----
44
3

skipif mysql # not compatible
query II rowsort label-8121
SELECT + 44 AS col1, COUNT ( * ) FROM tab0
----
44
3

query II rowsort
SELECT col0, - 29 FROM tab0
----
15
-29
87
-29
97
-29

query I rowsort
SELECT ALL + 92 + col0 AS col2 FROM tab2 AS cor0
----
138
156
167

onlyif mysql # aggregate syntax: 
query I rowsort label-8124
SELECT ALL - MAX( ALL + 99 ) FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-8124
SELECT ALL - MAX ( ALL + 99 ) FROM tab0 AS cor0
----
-99

query II rowsort
SELECT DISTINCT - col1 AS col0, col2 * col1 * - 2 FROM tab2 AS cor0
----
-51
-2346
-67
-7772
-77
-6160

query I rowsort
SELECT ALL + 23 + - col2 FROM tab2 AS cor0
----
-17
-35
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8127
SELECT ALL + + 54 * - col0 * - 43 AS col1 FROM tab1 AS cor0 WHERE NOT - CAST( NULL AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-8127
SELECT ALL + + 54 * - col0 * - 43 AS col1 FROM tab1 AS cor0 WHERE NOT - CAST ( NULL AS REAL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8128
SELECT + - ( - - COUNT( * ) ) col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8128
SELECT + - ( - - COUNT ( * ) ) col1 FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8129
SELECT + - COUNT( + CAST( NULL AS SIGNED ) ) * - - COUNT( * ) AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8129
SELECT + - COUNT ( + CAST ( NULL AS INTEGER ) ) * - - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL 57 + - col0 AS col0 FROM tab1 cor0 WHERE NOT NULL BETWEEN - 11 * + 5 AND + + col0
----

query I rowsort
SELECT - 52 AS col1 FROM tab2 AS cor0 WHERE NULL <> - 85
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8132
SELECT 96 AS col2, - ( + COUNT( * ) ) FROM tab2 cor0
----
96
-3

skipif mysql # not compatible
query II rowsort label-8132
SELECT 96 AS col2, - ( + COUNT ( * ) ) FROM tab2 cor0
----
96
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8133
SELECT ALL ( - SUM( - col1 ) ) + + COUNT( + col2 ) FROM tab0 cor0
----
106

skipif mysql # not compatible
query I rowsort label-8133
SELECT ALL ( - SUM ( - col1 ) ) + + COUNT ( + col2 ) FROM tab0 cor0
----
106

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8134
SELECT col0 + + col1 AS col0, - col2 * CAST( - col0 AS SIGNED ) FROM tab2
----
141
2560
142
4350
97
1058

skipif mysql # not compatible
query II rowsort label-8134
SELECT col0 + + col1 AS col0, - col2 * CAST ( - col0 AS INTEGER ) FROM tab2
----
141
2560
142
4350
97
1058

query I rowsort
SELECT DISTINCT col1 * - 82 FROM tab1
----
-1148
-3854
-410

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8136
SELECT ALL + SUM( - CAST( - col2 AS SIGNED ) ) FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-8136
SELECT ALL + SUM ( - CAST ( - col2 AS INTEGER ) ) FROM tab0
----
156

query I rowsort
SELECT + col0 + + col1 * - 4 - + col0 - + col2 FROM tab1
----
-152
-256
-79

query I rowsort
SELECT ALL + col2 + ( 98 ) FROM tab2 AS cor0
----
121
138
156

query I rowsort
SELECT ALL + 20 - - col0 AS col2 FROM tab0 AS cor0
----
107
117
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 63 ) col1 FROM tab0 AS cor0
----
63
63
63

onlyif mysql # aggregate syntax: 
query I rowsort label-8141
SELECT - COUNT( * ) FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8141
SELECT - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL
----
0

query II rowsort
SELECT + + col1 AS col2, col0 + - col2 FROM tab2 cor0
----
51
23
67
17
77
24

query III rowsort
SELECT - 33 AS col1, - col0, + + 84 AS col2 FROM tab2
----
9 values hashing to b005e470d39797078450b5e2e818e65c

query I rowsort
SELECT - 47 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-47
-47
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-8145
SELECT ALL + SUM( DISTINCT - + 65 ) * - COUNT( * ) FROM tab1
----
195

skipif mysql # not compatible
query I rowsort label-8145
SELECT ALL + SUM ( DISTINCT - + 65 ) * - COUNT ( * ) FROM tab1
----
195

onlyif mysql # aggregate syntax: 
query II rowsort label-8146
SELECT ALL 94 AS col1, - ( + MIN( DISTINCT + col1 ) ) - MAX( DISTINCT - col1 ) FROM tab0
----
94
0

skipif mysql # not compatible
query II rowsort label-8146
SELECT ALL 94 AS col1, - ( + MIN ( DISTINCT + col1 ) ) - MAX ( DISTINCT - col1 ) FROM tab0
----
94
0

query III rowsort
SELECT ALL * FROM tab0 WHERE + + 60 BETWEEN - col1 AND + col1
----
15
81
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 col2 FROM tab0 WHERE col1 IS NOT NULL
----
-15
-87
-97

query II rowsort
SELECT ALL - col2, - col2 * + col1 AS col0 FROM tab0
----
-10
-210
-47
-3807
-99
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8150
SELECT ALL col2 * + - col2 * + col1 * - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8150
SELECT ALL col2 * + - col2 * + col1 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 48 * - + col2 FROM tab0
----
-2256
-4752
-480

query II rowsort
SELECT + col2 AS col0, 17 * - - col0 AS col0 FROM tab1
----
59
1445
68
1547
96
867

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8153
SELECT DISTINCT ( + COUNT( * ) ) * + CAST( NULL AS SIGNED ) / MAX( ALL - - ( - col2 ) ) + + + 7 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8153
SELECT DISTINCT ( + COUNT ( * ) ) * + CAST ( NULL AS INTEGER ) / MAX ( ALL - - ( - col2 ) ) + + + 7 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 13 * + + col2 col1 FROM tab0
----
1287
130
611

onlyif mysql # aggregate syntax: 
query I rowsort label-8155
SELECT DISTINCT + COUNT( ALL col2 ) * 76 FROM tab0
----
228

skipif mysql # not compatible
query I rowsort label-8155
SELECT DISTINCT + COUNT ( ALL col2 ) * 76 FROM tab0
----
228

query II rowsort
SELECT DISTINCT + col2 + + col1 + + + col2, 63 AS col2 FROM tab1 AS cor0
----
123
63
183
63
206
63

query I rowsort
SELECT - col1 + + 11 AS col1 FROM tab0 AS cor0
----
-10
-70
10

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 16 <= + 63
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col2 * col1 - + + col2 AS col1 FROM tab1 AS cor0
----
-1440
-3264
-354

onlyif mysql # aggregate syntax: 
query I rowsort label-8160
SELECT - ( - - MIN( + - 16 ) ) FROM tab0 cor0
----
16

skipif mysql # not compatible
query I rowsort label-8160
SELECT - ( - - MIN ( + - 16 ) ) FROM tab0 cor0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-8161
SELECT DISTINCT - COUNT( * ) + + + 77 FROM tab1 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-8161
SELECT DISTINCT - COUNT ( * ) + + + 77 FROM tab1 AS cor0
----
74

query I rowsort
SELECT DISTINCT - - 20 AS col0 FROM tab0 AS cor0
----
20

query I rowsort
SELECT ALL ( + 20 ) FROM tab2
----
20
20
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8164
SELECT + ( + - CAST( - + col2 AS SIGNED ) ) FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-8164
SELECT + ( + - CAST ( - + col2 AS INTEGER ) ) FROM tab1
----
59
68
96

query I rowsort
SELECT ( col2 ) FROM tab2 WHERE + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8166
SELECT ALL 31 * + + col2 * + - col0, + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
-134850
NULL
-32798
NULL
-79360
NULL

skipif mysql # not compatible
query II rowsort label-8166
SELECT ALL 31 * + + col2 * + - col0, + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
-134850
NULL
-32798
NULL
-79360
NULL

query I rowsort
SELECT DISTINCT - + 15 * col2 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8168
SELECT DISTINCT CAST( NULL AS SIGNED ) * - col0 + + ( + col2 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8168
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - col0 + + ( + col2 ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8169
SELECT COUNT( * ) + - COUNT( * ) + - + COUNT( * ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8169
SELECT COUNT ( * ) + - COUNT ( * ) + - + COUNT ( * ) FROM tab0 AS cor0
----
-3

query II rowsort
SELECT DISTINCT + col1 - col2 * - - col0 AS col0, col1 FROM tab1 AS cor0
----
-4882
14
-5010
5
-6141
47

query I rowsort
SELECT DISTINCT + 44 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8172
SELECT - CAST( NULL AS SIGNED ) + + 57 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-8172
SELECT - CAST ( NULL AS INTEGER ) + + 57 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 58 col0 FROM tab1 cor0
----
58
58
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8174
SELECT COUNT( - ( + + col2 ) ) + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT + col1 + - col1 IS NULL
----
6

skipif mysql # not compatible
query I rowsort label-8174
SELECT COUNT ( - ( + + col2 ) ) + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT + col1 + - col1 IS NULL
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8175
SELECT 46 DIV MAX( DISTINCT - col2 ) FROM tab2 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-8175
SELECT 46 / MAX ( DISTINCT - col2 ) FROM tab2 AS cor0
----
-2

query I rowsort
SELECT + - 88 * - - col2 FROM tab1 AS cor0
----
-5192
-5984
-8448

onlyif mysql # aggregate syntax: 
query I rowsort label-8177
SELECT + - MIN( DISTINCT col0 ) FROM tab0 cor0
----
-15

skipif mysql # not compatible
query I rowsort label-8177
SELECT + - MIN ( DISTINCT col0 ) FROM tab0 cor0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-8178
SELECT + MAX( DISTINCT - - col1 ) col0 FROM tab2 AS cor0 WHERE NOT + col1 IS NULL
----
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8178
SELECT + MAX ( DISTINCT - - col1 ) col0 FROM tab2 AS cor0 WHERE NOT + col1 IS NULL
----
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 41, - 53 col2 FROM tab2
----
41
-53
41
-53
41
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-8180
SELECT DISTINCT MAX( DISTINCT + col1 ) AS col1 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-8180
SELECT DISTINCT MAX ( DISTINCT + col1 ) AS col1 FROM tab0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8181
SELECT DISTINCT SUM( DISTINCT - 54 ) AS col0 FROM tab2
----
-54

skipif mysql # not compatible
query I rowsort label-8181
SELECT DISTINCT SUM ( DISTINCT - 54 ) AS col0 FROM tab2
----
-54

query II rowsort
SELECT 68 AS col2, + col2 AS col0 FROM tab0 cor0
----
68
10
68
47
68
99

query I rowsort
SELECT + + 43 + col0 * col1 FROM tab0 AS cor0
----
1258
140
1870

query I rowsort
SELECT DISTINCT col2 + + + ( - 28 ) FROM tab0 AS cor0
----
-18
19
71

onlyif mysql # DIV for integer division: 
query I rowsort label-8185
SELECT 17 DIV - ( 97 ) col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8185
SELECT 17 / - ( 97 ) col0 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8186
SELECT col2 DIV + + 23 AS col2 FROM tab0
----
0
2
4

skipif mysql # not compatible
query I rowsort label-8186
SELECT col2 / + + 23 AS col2 FROM tab0
----
0
2
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8187
SELECT ALL 17 + - + COUNT( * ) FROM tab2 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-8187
SELECT ALL 17 + - + COUNT ( * ) FROM tab2 AS cor0
----
14

query I rowsort
SELECT DISTINCT + col2 + - - 22 + - - col2 FROM tab2 AS cor0
----
102
138
68

query I rowsort
SELECT - ( + ( 87 ) ) AS col1 FROM tab2 AS cor0
----
-87
-87
-87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + - + 29 - + - 68 + - 24 col2 FROM tab1 AS cor0 WHERE col2 + + + col2 * + 16 IS NOT NULL
----
-36
-70
-76

query I rowsort
SELECT + col1 * - 96 - + - 35 AS col2 FROM tab0 AS cor0
----
-1981
-61
-7741

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8192
SELECT ALL col2 + - CAST( + - col1 AS SIGNED ) * col2 * - + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8192
SELECT ALL col2 + - CAST ( + - col1 AS INTEGER ) * col2 * - + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8193
SELECT ALL + COUNT( * ) * - + 30 - + - 24 FROM tab2 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-8193
SELECT ALL + COUNT ( * ) * - + 30 - + - 24 FROM tab2 AS cor0
----
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-8194
SELECT ALL COUNT( * ) - 70 * 15 + - 76 + - ( - SUM( ALL + col1 ) ) * - 57 col1, + 80 AS col2 FROM tab2
----
-12238
80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8194
SELECT ALL COUNT ( * ) - 70 * 15 + - 76 + - ( - SUM ( ALL + col1 ) ) * - 57 col1, + 80 AS col2 FROM tab2
----
-12238
80

onlyif mysql # aggregate syntax: 
query I rowsort label-8195
SELECT ALL - SUM( 78 ) * - - 45 * + SUM( DISTINCT col1 ) + MIN( ALL - + col1 ) * + COUNT( * ) AS col2 FROM tab0
----
-1084833

skipif mysql # not compatible
query I rowsort label-8195
SELECT ALL - SUM ( 78 ) * - - 45 * + SUM ( DISTINCT col1 ) + MIN ( ALL - + col1 ) * + COUNT ( * ) AS col2 FROM tab0
----
-1084833

query I rowsort
SELECT col2 * + - col1 + + col0 AS col2 FROM tab0
----
-123
-2
-3792

onlyif mysql # DIV for integer division: 
query I rowsort label-8197
SELECT - 28 + - - col1 + - 24 - + 21 DIV - col0 * 70 * 29 FROM tab2
----
-1
15
25

skipif mysql # not compatible
query I rowsort label-8197
SELECT - 28 + - - col1 + - 24 - + 21 / - col0 * 70 * 29 FROM tab2
----
-1
15
25

onlyif mysql # aggregate syntax: 
query I rowsort label-8198
SELECT + ( 65 ) + ( - MAX( ALL - col0 ) ) AS col1 FROM tab0
----
80

skipif mysql # not compatible
query I rowsort label-8198
SELECT + ( 65 ) + ( - MAX ( ALL - col0 ) ) AS col1 FROM tab0
----
80

query I rowsort
SELECT - 95 + - col0 * - col2 * - col1 AS col0 FROM tab0
----
-18365
-57200
-9698

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 84 + - 21 + - 38 >= NULL
----

query I rowsort
SELECT DISTINCT col1 * + + 37 FROM tab0
----
2997
37
777

onlyif mysql # aggregate syntax: 
query I rowsort label-8202
SELECT + - MIN( ALL - - col2 ) AS col2 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-8202
SELECT + - MIN ( ALL - - col2 ) AS col2 FROM tab0 AS cor0
----
-10

query I rowsort
SELECT DISTINCT col1 * - col1 * + col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + 48 AND 82
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8204
SELECT DISTINCT + CAST( 14 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-8204
SELECT DISTINCT + CAST ( 14 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-8205
SELECT ALL - COUNT( ALL + + 25 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8205
SELECT ALL - COUNT ( ALL + + 25 ) FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8206
SELECT DISTINCT + - SUM( ALL col2 ) AS col0 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-8206
SELECT DISTINCT + - SUM ( ALL col2 ) AS col0 FROM tab0 AS cor0
----
-156

query I rowsort
SELECT - 0 * - 35 * + col2 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT - col0 * 88 FROM tab1
----
-4488
-7480
-8008

onlyif mysql # DIV for integer division: 
query I rowsort label-8209
SELECT ( 55 ) DIV + - col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8209
SELECT ( 55 ) / + - col2 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8210
SELECT DISTINCT CAST( NULL AS DECIMAL ) * AVG ( - 95 ) + + - 89 * - 88 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8210
SELECT DISTINCT CAST ( NULL AS REAL ) * AVG ( - 95 ) + + - 89 * - 88 FROM tab1
----
NULL

query I rowsort
SELECT ALL col2 * + col2 + col0 * + col1 FROM tab0
----
1927
3424
9898

query II rowsort
SELECT - col2, + col1 FROM tab1 WHERE NOT 68 IS NOT NULL
----

query I rowsort
SELECT ALL + ( + col0 ) + + 97 * + ( - - ( + col0 ) ) AS col1 FROM tab0
----
1470
8526
9506

onlyif mysql # aggregate syntax: 
query I rowsort label-8214
SELECT DISTINCT - MIN( DISTINCT - 39 ) AS col2 FROM tab2 WHERE + ( + + col1 ) + col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8214
SELECT DISTINCT - MIN ( DISTINCT - 39 ) AS col2 FROM tab2 WHERE + ( + + col1 ) + col1 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8215
SELECT + - COUNT( 41 ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8215
SELECT + - COUNT ( 41 ) FROM tab2 cor0
----
-3

query I rowsort
SELECT col0 * - - 43 AS col0 FROM tab1 AS cor0
----
2193
3655
3913

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 + + - col0 + + col1 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8218
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab0 WHERE NOT col1 <> + col0
----
0

skipif mysql # not compatible
query I rowsort label-8218
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab0 WHERE NOT col1 <> + col0
----
0

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab0 AS cor0 WHERE - col1 NOT BETWEEN + 77 AND + 31 + + col1
----
-10
-47
-99

query I rowsort
SELECT 77 * + + col0 + + col2 FROM tab1 AS cor0
----
4023
6604
7075

query I rowsort
SELECT DISTINCT - col2 - - col1 + + - 56 AS col2 FROM tab1 cor0
----
-110
-138
-77

query I rowsort
SELECT DISTINCT + col1 + - 27 - - col2 AS col0 FROM tab2 AS cor0
----
47
90
98

query I rowsort
SELECT + 56 * - col0 AS col2 FROM tab1
----
-2856
-4760
-5096

query I rowsort
SELECT ALL col1 * 72 FROM tab1
----
1008
3384
360

query I rowsort
SELECT DISTINCT - ( + 58 ) FROM tab1 WHERE 53 >= NULL AND NULL <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 1 ) - col1 + ( col1 ) col1 FROM tab1
----
1
1
1

query I rowsort
SELECT DISTINCT + - 31 * col1 AS col0 FROM tab1 cor0 WHERE ( NOT col0 <= + + col2 + + - col0 + col0 / 89 )
----
-1457
-155
-434

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - col2 - - col2 + + col0 + - col1 + - + col1 + - 92 / + - 62 > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col0 <> 0 * + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8230
SELECT DISTINCT - MIN( 49 ) AS col2 FROM tab2 AS cor0
----
-49

skipif mysql # not compatible
query I rowsort label-8230
SELECT DISTINCT - MIN ( 49 ) AS col2 FROM tab2 AS cor0
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-8231
SELECT + SUM( + + 32 ) AS col1 FROM tab2 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-8231
SELECT + SUM ( + + 32 ) AS col1 FROM tab2 AS cor0
----
96

query I rowsort
SELECT - 90 * + col2 + + 41 FROM tab2 AS cor0
----
-2029
-3559
-5179

query II rowsort
SELECT + col1 * + - col0 + + - 43, col0 AS col2 FROM tab0 cor0
----
-1258
15
-140
97
-1870
87

onlyif mysql # DIV for integer division: 
query I rowsort label-8234
SELECT + + 49 DIV - - col1 + - + col2 AS col0 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-8234
SELECT + + 49 / - - col1 + - + col2 AS col0 FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT DISTINCT - col2 * + 28 AS col0 FROM tab0 AS cor0
----
-1316
-2772
-280

onlyif mysql # aggregate syntax: 
query I rowsort label-8236
SELECT + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT col1 NOT BETWEEN + + 38 AND + - col2
----
0

skipif mysql # not compatible
query I rowsort label-8236
SELECT + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT col1 NOT BETWEEN + + 38 AND + - col2
----
0

query I rowsort
SELECT + 80 * + col0 AS col1 FROM tab2 AS cor0
----
3680
5120
6000

query I rowsort
SELECT + - ( - 6 ) * - col0 * - - col2 + + - col2 AS col0 FROM tab1 AS cor0
----
-29472
-30149
-37196

query I rowsort
SELECT col0 FROM tab0 WHERE NOT - col1 IS NOT NULL
----

query I rowsort
SELECT ALL + ( - 16 ) FROM tab0
----
-16
-16
-16

query I rowsort
SELECT ALL + 51 + - 78 * + - col0 + + ( 27 ) FROM tab2
----
3666
5070
5928

query I rowsort
SELECT DISTINCT + col0 + - col0 + + + col2 FROM tab1
----
59
68
96

query II rowsort
SELECT - 83 + - 29 * - col2 AS col1, col0 AS col0 FROM tab1
----
1628
85
1889
91
2701
51

query I rowsort
SELECT DISTINCT 53 FROM tab1 WHERE ( + - 19 + + col1 ) IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8245
SELECT * FROM tab1 WHERE CAST( - 58 AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-8245
SELECT * FROM tab1 WHERE CAST ( - 58 AS REAL ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8246
SELECT ALL - 89 + ( 9 ) DIV col2 FROM tab2 AS cor0
----
-89
-89
-89

skipif mysql # not compatible
query I rowsort label-8246
SELECT ALL - 89 + ( 9 ) / col2 FROM tab2 AS cor0
----
-89
-89
-89

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col2 * + - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8248
SELECT - MIN( ALL + - col1 ) + - COUNT( * ) - + 87 * + 99 * COUNT( * ) FROM tab1 cor0
----
-25795

skipif mysql # not compatible
query I rowsort label-8248
SELECT - MIN ( ALL + - col1 ) + - COUNT ( * ) - + 87 * + 99 * COUNT ( * ) FROM tab1 cor0
----
-25795

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 40 col1 FROM tab2 WHERE NOT - col1 >= ( - col2 * - col1 )
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8250
SELECT + SUM( ALL col1 ) FROM tab1 WHERE NOT col0 NOT IN ( - col1 * - ( + col0 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8250
SELECT + SUM ( ALL col1 ) FROM tab1 WHERE NOT col0 NOT IN ( - col1 * - ( + col0 ) )
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT 88 > ( + col0 + + 69 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8252
SELECT DISTINCT SUM( + 26 ) FROM tab1
----
78

skipif mysql # not compatible
query I rowsort label-8252
SELECT DISTINCT SUM ( + 26 ) FROM tab1
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-8253
SELECT ALL - COUNT( * ) * 75 AS col2 FROM tab0
----
-225

skipif mysql # not compatible
query I rowsort label-8253
SELECT ALL - COUNT ( * ) * 75 AS col2 FROM tab0
----
-225

query I rowsort
SELECT ALL - col0 FROM tab0 WHERE ( - 77 * - col2 + + col1 ) IS NOT NULL
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8255
SELECT ALL + COUNT( * ) - + COUNT( col2 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8255
SELECT ALL + COUNT ( * ) - + COUNT ( col2 ) FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8256
SELECT ALL 24 * - MIN( DISTINCT col2 ) AS col1 FROM tab0
----
-240

skipif mysql # not compatible
query I rowsort label-8256
SELECT ALL 24 * - MIN ( DISTINCT col2 ) AS col1 FROM tab0
----
-240

query I rowsort
SELECT col1 + - ( - col1 ) * 26 FROM tab2
----
1377
1809
2079

query III rowsort
SELECT * FROM tab1 WHERE NOT + 65 < - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8259
SELECT DISTINCT MAX( ALL + col0 ) col1 FROM tab1 WHERE ( NULL ) IN ( - col0 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8259
SELECT DISTINCT MAX ( ALL + col0 ) col1 FROM tab1 WHERE ( NULL ) IN ( - col0 )
----
NULL

query I rowsort
SELECT 66 * ( col1 * col1 ) AS col0 FROM tab1
----
12936
145794
1650

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( ( col2 ) * col0 + col0 ) > col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8262
SELECT ALL COUNT( DISTINCT + 44 ) DIV ( + SUM( col0 ) ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8262
SELECT ALL COUNT ( DISTINCT + 44 ) / ( + SUM ( col0 ) ) AS col1 FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - 92 col1 FROM tab0
----
-1932
-7452
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-8264
SELECT ALL col0 DIV ( 14 ) FROM tab0
----
1
6
6

skipif mysql # not compatible
query I rowsort label-8264
SELECT ALL col0 / ( 14 ) FROM tab0
----
1
6
6

query I rowsort
SELECT - col2 + + 62 AS col1 FROM tab1
----
-34
-6
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 10 - - col0 = NULL
----

query I rowsort
SELECT ALL + col1 + 35 AS col0 FROM tab2
----
102
112
86

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col0 + 57 NOT BETWEEN 12 AND + col2 + col1
----
51
14
96

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8269
SELECT CAST( NULL AS DECIMAL ) FROM tab2 WHERE NOT ( + CAST( NULL AS SIGNED ) * - col2 ) NOT IN ( ( + col0 ) )
----

skipif mysql # not compatible
query I rowsort label-8269
SELECT CAST ( NULL AS REAL ) FROM tab2 WHERE NOT ( + CAST ( NULL AS INTEGER ) * - col2 ) NOT IN ( ( + col0 ) )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 33 * - 97 IN ( 36 * - 67 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8271
SELECT DISTINCT col1 * + col1 AS col1 FROM tab0 WHERE NOT CAST( NULL AS SIGNED ) + col1 <= ( 3 )
----

skipif mysql # not compatible
query I rowsort label-8271
SELECT DISTINCT col1 * + col1 AS col1 FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) + col1 <= ( 3 )
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL BETWEEN col0 - col1 AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8273
SELECT - col1 * CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE NOT ( - col2 ) > NULL
----

skipif mysql # not compatible
query I rowsort label-8273
SELECT - col1 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE NOT ( - col2 ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8274
SELECT DISTINCT COUNT( * ) FROM tab2 AS cor0 WHERE - col2 * 84 = col1 * col2
----
0

skipif mysql # not compatible
query I rowsort label-8274
SELECT DISTINCT COUNT ( * ) FROM tab2 AS cor0 WHERE - col2 * 84 = col1 * col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8275
SELECT ALL + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8275
SELECT ALL + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8276
SELECT ALL - 96 DIV + col0 AS col1 FROM tab2 AS cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-8276
SELECT ALL - 96 / + col0 AS col1 FROM tab2 AS cor0
----
-1
-1
-2

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 + + 49 IN ( ( - 58 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 WHERE 55 * col1 + + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - 93 ) >= ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col2 FROM tab1 AS cor0 WHERE NOT col0 NOT BETWEEN NULL AND col0 / + ( 0 )
----

query I rowsort
SELECT + - col0 * col1 + + 37 FROM tab2 AS cor0
----
-2309
-4891
-4988

query I rowsort
SELECT col1 + 94 FROM tab0 cor0
----
115
175
95

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8283
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col0 BETWEEN ( col2 ) AND ( + col1 * CAST( NULL AS SIGNED ) + + 34 )
----
15
81
47
97
1
99

skipif mysql # not compatible
query III rowsort label-8283
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col0 BETWEEN ( col2 ) AND ( + col1 * CAST ( NULL AS INTEGER ) + + 34 )
----
15
81
47
97
1
99

query I rowsort
SELECT col2 AS col2 FROM tab0 AS cor0 WHERE NOT - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8285
SELECT DISTINCT - COUNT( ALL + CAST( 1 AS SIGNED ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8285
SELECT DISTINCT - COUNT ( ALL + CAST ( 1 AS INTEGER ) ) FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8286
SELECT ALL - SUM( ALL col1 ) AS col1 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-8286
SELECT ALL - SUM ( ALL col1 ) AS col1 FROM tab2
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-8287
SELECT - 54 + + - COUNT( * ) * 39 FROM tab1
----
-171

skipif mysql # not compatible
query I rowsort label-8287
SELECT - 54 + + - COUNT ( * ) * 39 FROM tab1
----
-171

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( + 68 + - col0 ) = + 16
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8289
SELECT col1 * CAST( NULL AS DECIMAL ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8289
SELECT col1 * CAST ( NULL AS REAL ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 53 FROM tab0 WHERE ( col2 ) NOT BETWEEN - col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8291
SELECT ALL 26 + + col2 col2 FROM tab1 WHERE NOT - col1 * col0 <> - 43 + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8291
SELECT ALL 26 + + col2 col2 FROM tab1 WHERE NOT - col1 * col0 <> - 43 + + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL + col0 FROM tab2 WHERE NOT ( NULL ) <= NULL OR NOT NULL IS NOT NULL
----
46
64
75

query I rowsort
SELECT DISTINCT 5 + + ( + col0 ) FROM tab1 cor0
----
56
90
96

query I rowsort
SELECT ALL - col0 * - col0 + - col1 FROM tab0 AS cor0
----
144
7548
9408

onlyif mysql # aggregate syntax: 
query I rowsort label-8295
SELECT DISTINCT + ( MIN( 94 ) ) + COUNT( * ) FROM tab1 AS cor0 WHERE NULL <= ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8295
SELECT DISTINCT + ( MIN ( 94 ) ) + COUNT ( * ) FROM tab1 AS cor0 WHERE NULL <= ( NULL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8296
SELECT ALL - ( SUM( DISTINCT + col0 ) ) FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-8296
SELECT ALL - ( SUM ( DISTINCT + col0 ) ) FROM tab2 AS cor0
----
-185

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - - col1 col1 FROM tab1 AS cor0
----
10
28
94

query I rowsort
SELECT + + 13 - col1 FROM tab0 AS cor0
----
-68
-8
12

query I rowsort
SELECT + 95 - + + col1 AS col0 FROM tab1 AS cor0
----
48
81
90

onlyif mysql # DIV for integer division: 
query I rowsort label-8300
SELECT + + 32 DIV 20 + col1 AS col2 FROM tab0 cor0
----
2
22
82

skipif mysql # not compatible
query I rowsort label-8300
SELECT + + 32 / 20 + col1 AS col2 FROM tab0 cor0
----
2
22
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8301
SELECT DISTINCT CAST( NULL AS SIGNED ) + + - col1 - 80 * + col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8301
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + - col1 - 80 * + col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8302
SELECT ALL 1 * COUNT( * ) FROM tab0 WHERE NOT 7 BETWEEN NULL AND col2 * + col2
----
0

skipif mysql # not compatible
query I rowsort label-8302
SELECT ALL 1 * COUNT ( * ) FROM tab0 WHERE NOT 7 BETWEEN NULL AND col2 * + col2
----
0

query I rowsort
SELECT + 92 + col2 FROM tab1
----
151
160
188

onlyif mysql # aggregate syntax: 
query I rowsort label-8304
SELECT + MAX( DISTINCT 81 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
81

skipif mysql # not compatible
query I rowsort label-8304
SELECT + MAX ( DISTINCT 81 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
81

query I rowsort
SELECT - col1 + + 52 AS col2 FROM tab0 AS cor0 WHERE ( col0 ) < ( NULL )
----

query I rowsort
SELECT ALL + col1 + col0 FROM tab2 cor0 WHERE NOT 93 IS NULL
----
141
142
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8307
SELECT DISTINCT + COUNT( * ) - + + COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8307
SELECT DISTINCT + COUNT ( * ) - + + COUNT ( * ) FROM tab0 AS cor0
----
0

query II rowsort
SELECT - col1, - ( col0 ) AS col0 FROM tab2 cor0
----
-51
-46
-67
-75
-77
-64

query I rowsort
SELECT DISTINCT col0 + + 44 + 41 AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
100
172
182

query II rowsort
SELECT ALL col0 AS col2, 97 * 68 FROM tab2 AS cor0
----
46
6596
64
6596
75
6596

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + - col0 col0 FROM tab0 AS cor0
----
-705
-870
-9603

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE - col0 + + + col2 + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8313
SELECT MIN( - + CAST( NULL AS SIGNED ) ) * 31 col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8313
SELECT MIN ( - + CAST ( NULL AS INTEGER ) ) * 31 col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE 68 - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 33 + - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL ( + + ( - col0 ) ) FROM tab2
----
-46
-64
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-8317
SELECT 69 DIV + col2 FROM tab0
----
0
1
6

skipif mysql # not compatible
query I rowsort label-8317
SELECT 69 / + col2 FROM tab0
----
0
1
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8318
SELECT DISTINCT 84 * + COUNT( * ) FROM tab0
----
252

skipif mysql # not compatible
query I rowsort label-8318
SELECT DISTINCT 84 * + COUNT ( * ) FROM tab0
----
252

query I rowsort
SELECT DISTINCT + - col2 * 97 FROM tab0 AS cor0
----
-4559
-9603
-970

onlyif mysql # aggregate syntax: 
query I rowsort label-8320
SELECT - COUNT( * ) * + - 60 FROM tab2 AS cor0
----
180

skipif mysql # not compatible
query I rowsort label-8320
SELECT - COUNT ( * ) * + - 60 FROM tab2 AS cor0
----
180

query I rowsort
SELECT ALL - col2 * - + col0 AS col0 FROM tab0 AS cor0
----
705
870
9603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * + col0 col0 FROM tab0 AS cor0
----
-225
-7569
-9409

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( 63 ) <= ( NULL )
----

query I rowsort
SELECT + 86 * + + 98 AS col2 FROM tab2 AS cor0
----
8428
8428
8428

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT col0 NOT IN ( ( - - 61 ) )
----

query I rowsort
SELECT DISTINCT - col0 + - ( + 41 ) AS col0 FROM tab2 AS cor0
----
-105
-116
-87

query I rowsort
SELECT DISTINCT col2 + + 99 AS col0 FROM tab1 AS cor0
----
158
167
195

query I rowsort
SELECT - 23 * - ( col1 ) FROM tab2 AS cor0
----
1173
1541
1771

query I rowsort
SELECT + 31 * col1 AS col1 FROM tab2 AS cor0
----
1581
2077
2387

onlyif mysql # DIV for integer division: 
query I rowsort label-8330
SELECT DISTINCT - col1 DIV + 90 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8330
SELECT DISTINCT - col1 / + 90 FROM tab0 AS cor0
----
0

query I rowsort
SELECT + - ( col2 ) FROM tab1 AS cor0 WHERE - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8332
SELECT DISTINCT - + COUNT( * ) + + 55 FROM tab0 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-8332
SELECT DISTINCT - + COUNT ( * ) + + 55 FROM tab0 AS cor0
----
52

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL IN ( - 93 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8334
SELECT 14 * COUNT( * ) AS col1 FROM tab0 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-8334
SELECT 14 * COUNT ( * ) AS col1 FROM tab0 AS cor0
----
42

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL BETWEEN NULL AND ( + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8336
SELECT + col2 * + col1 + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8336
SELECT + col2 * + col1 + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE ( NOT NULL <> + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8338
SELECT - col2 DIV - 51 - 10 * 86 AS col1 FROM tab2 WHERE - + col2 + ( - 14 ) <> - col2
----
-859
-860
-860

skipif mysql # not compatible
query I rowsort label-8338
SELECT - col2 / - 51 - 10 * 86 AS col1 FROM tab2 WHERE - + col2 + ( - 14 ) <> - col2
----
-859
-860
-860

onlyif mysql # aggregate syntax: 
query I rowsort label-8339
SELECT ALL COUNT( * ) * - MIN( ALL - - col2 ) FROM tab2
----
-69

skipif mysql # not compatible
query I rowsort label-8339
SELECT ALL COUNT ( * ) * - MIN ( ALL - - col2 ) FROM tab2
----
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-8340
SELECT col0 + col1 DIV + col2 AS col1 FROM tab2
----
48
65
76

skipif mysql # not compatible
query I rowsort label-8340
SELECT col0 + col1 / + col2 AS col1 FROM tab2
----
48
65
76

query I rowsort
SELECT + col2 + + col2 * + col1 AS col2 FROM tab2
----
1196
3120
3944

query I rowsort
SELECT - col1 + - 89 + - col0 FROM tab2
----
-186
-230
-231

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8343
SELECT ALL CAST( NULL AS SIGNED ) + + 46 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8343
SELECT ALL CAST ( NULL AS INTEGER ) + + 46 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + + col1 + - col2 * - 23 FROM tab1 AS cor0
----
1362
1611
2222

query I rowsort
SELECT - col0 FROM tab1 AS cor0 WHERE col0 * 18 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 52 NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT DISTINCT + - 35 + + + 12 FROM tab1 AS cor0
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8348
SELECT DISTINCT + CAST( NULL AS SIGNED ) - COUNT( * ) + - COUNT( + col1 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8348
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - COUNT ( * ) + - COUNT ( + col1 ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8349
SELECT - + MIN( - + col0 ) AS col0 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-8349
SELECT - + MIN ( - + col0 ) AS col0 FROM tab0 AS cor0
----
97

query I rowsort
SELECT DISTINCT + + col2 + - 75 FROM tab0 cor0
----
-28
-65
24

onlyif mysql # aggregate syntax: 
query I rowsort label-8351
SELECT - + 12 * COUNT( * ) + MIN( ALL 62 ) FROM tab0 WHERE + col2 * + col0 * - col2 >= - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8351
SELECT - + 12 * COUNT ( * ) + MIN ( ALL 62 ) FROM tab0 WHERE + col2 * + col0 * - col2 >= - col0
----
NULL

query I rowsort
SELECT - ( + - col0 ) - - 18 AS col0 FROM tab2
----
64
82
93

query III rowsort
SELECT * FROM tab1 WHERE 83 <= 44 - 9 + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 - 4 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + 89 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8356
SELECT ALL + - MIN( ALL + 39 ) FROM tab2 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-8356
SELECT ALL + - MIN ( ALL + 39 ) FROM tab2 AS cor0
----
-39

onlyif mysql # aggregate syntax: 
query II rowsort label-8357
SELECT ALL + - COUNT( DISTINCT - + col1 ) AS col1, - COUNT( * ) * + 5 AS col0 FROM tab1 AS cor0
----
-3
-15

skipif mysql # not compatible
query II rowsort label-8357
SELECT ALL + - COUNT ( DISTINCT - + col1 ) AS col1, - COUNT ( * ) * + 5 AS col0 FROM tab1 AS cor0
----
-3
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-8358
SELECT - - COUNT( + 18 ) AS col2 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8358
SELECT - - COUNT ( + 18 ) AS col2 FROM tab2 cor0
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-8359
SELECT + col2, col2 DIV + + col1 - - 23 * col1 FROM tab2
----
23
1173
40
1771
58
1541

skipif mysql # not compatible
query II rowsort label-8359
SELECT + col2, col2 / + + col1 - - 23 * col1 FROM tab2
----
23
1173
40
1771
58
1541

onlyif mysql # aggregate syntax: 
query I rowsort label-8360
SELECT ALL COUNT( ALL - - col0 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8360
SELECT ALL COUNT ( ALL - - col0 ) FROM tab2
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN NULL AND ( 12 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 32 col2, - 17 AS col0 FROM tab0
----
32
-17
32
-17
32
-17

query II rowsort
SELECT DISTINCT col0, + 61 * + - col0 FROM tab0
----
15
-915
87
-5307
97
-5917

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * 65 col1 FROM tab2
----
2990
4160
4875

query I rowsort
SELECT + 76 AS col1 FROM tab2 WHERE NOT + + 44 BETWEEN - col1 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 14 * + col0 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8367
SELECT ALL - CAST( NULL AS SIGNED ) - - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT col1 / 86 * - - col0 < - + col1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8367
SELECT ALL - CAST ( NULL AS INTEGER ) - - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT col1 / 86 * - - col0 < - + col1
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 + - col2 + + col0 * col1 + - col2 < + - 44
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT - - 39 AS col1, - col1 AS col2 FROM tab1 cor0
----
39
-14
39
-47
39
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8370
SELECT ALL + 36 * 66 DIV ( + COUNT( * ) ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
264

skipif mysql # not compatible
query I rowsort label-8370
SELECT ALL + 36 * 66 / ( + COUNT ( * ) ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
264

query I rowsort
SELECT col2 AS col2 FROM tab1 WHERE NOT ( + col0 ) <= + col0
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - 62 - + col1 / col2 + ( + col0 ) BETWEEN ( NULL ) AND 29
----

query I rowsort
SELECT ALL 13 + - col1 FROM tab0
----
-68
-8
12

onlyif mysql # aggregate syntax: 
query I rowsort label-8374
SELECT ALL COUNT( * ) + 12 col2 FROM tab2
----
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8374
SELECT ALL COUNT ( * ) + 12 col2 FROM tab2
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8375
SELECT ALL + SUM( DISTINCT 25 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8375
SELECT ALL + SUM ( DISTINCT 25 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query II rowsort
SELECT col0 AS col2, - col1 + - 91 FROM tab2 AS cor0 WHERE + col0 * + 11 IS NOT NULL
----
46
-142
64
-168
75
-158

query I rowsort
SELECT DISTINCT - 27 + + col1 FROM tab2 cor0
----
24
40
50

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( + col0 ) * - + 56 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 46 * - - col2 * + ( + col0 ) FROM tab2
----
-117760
-200100
-48668

onlyif mysql # aggregate syntax: 
query I rowsort label-8380
SELECT COUNT( col2 ) * + + 15 FROM tab1
----
45

skipif mysql # not compatible
query I rowsort label-8380
SELECT COUNT ( col2 ) * + + 15 FROM tab1
----
45

query I rowsort
SELECT DISTINCT + 45 * 43 AS col0 FROM tab2
----
1935

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 82 col1 FROM tab2 WHERE NULL IN ( + 66 * + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8383
SELECT ALL 50 + - col1 + CAST( + CAST( - 69 AS SIGNED ) AS SIGNED ) AS col2, col1 + + col0 AS col0 FROM tab2 AS cor0
----
-70
97
-86
142
-96
141

skipif mysql # not compatible
query II rowsort label-8383
SELECT ALL 50 + - col1 + CAST ( + CAST ( - 69 AS INTEGER ) AS INTEGER ) AS col2, col1 + + col0 AS col0 FROM tab2 AS cor0
----
-70
97
-86
142
-96
141

query I rowsort
SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE NOT - col2 BETWEEN NULL AND NULL
----

query I rowsort
SELECT - 87 + - col1 AS col2 FROM tab1
----
-101
-134
-92

query I rowsort
SELECT ALL - 18 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 09afafec657a5e9f082beb6a16ec85de

query II rowsort
SELECT DISTINCT + col0 * - col1, col0 * - col0 AS col2 FROM tab1
----
-425
-7225
-4277
-8281
-714
-2601

onlyif mysql # DIV for integer division: 
query I rowsort label-8388
SELECT ALL - 22 DIV - + col2 AS col0 FROM tab0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-8388
SELECT ALL - 22 / - + col2 AS col0 FROM tab0
----
0
0
2

query II rowsort
SELECT - 1, + col0 AS col2 FROM tab1 AS cor0
----
-1
51
-1
85
-1
91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8390
SELECT col0 * - col2, 38 * - - CAST( NULL AS SIGNED ) col2 FROM tab1 cor0
----
-4896
NULL
-5015
NULL
-6188
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8390
SELECT col0 * - col2, 38 * - - CAST ( NULL AS INTEGER ) col2 FROM tab1 cor0
----
-4896
NULL
-5015
NULL
-6188
NULL

query II rowsort
SELECT DISTINCT + 76 AS col1, col1 * col1 FROM tab0 AS cor0
----
76
1
76
441
76
6561

onlyif mysql # aggregate syntax: 
query I rowsort label-8392
SELECT DISTINCT + COUNT( * ) FROM tab2 AS cor0 WHERE ( NULL ) < NULL
----
0

skipif mysql # not compatible
query I rowsort label-8392
SELECT DISTINCT + COUNT ( * ) FROM tab2 AS cor0 WHERE ( NULL ) < NULL
----
0

query I rowsort
SELECT - - col2 FROM tab0 AS cor0 WHERE NOT col1 * + col2 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - 40 col2 FROM tab0 AS cor0
----
3240
40
840

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8395
SELECT * FROM tab0 WHERE NOT NULL IN ( + CAST( NULL AS SIGNED ), - 42, + col0, + col1 * - + 70 + - col1 )
----

skipif mysql # not compatible
query III rowsort label-8395
SELECT * FROM tab0 WHERE NOT NULL IN ( + CAST ( NULL AS INTEGER ), - 42, + col0, + col1 * - + 70 + - col1 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 / + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT - col1 - - col1 > - + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8398
SELECT col0 + col1 DIV - col1 AS col2 FROM tab0 AS cor0
----
14
86
96

skipif mysql # not compatible
query I rowsort label-8398
SELECT col0 + col1 / - col1 AS col2 FROM tab0 AS cor0
----
14
86
96

query I rowsort
SELECT ALL + col1 * - col0 * + - col1 * + - col0 FROM tab2 WHERE NULL NOT IN ( - 13 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 AS col2, + 24 + - col2 col0 FROM tab1 AS cor0
----
14
-72
47
-44
5
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-8401
SELECT ALL + - COUNT( * ) + - + 31 col1 FROM tab0 AS cor0 WHERE - 8 IS NOT NULL
----
-34

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8401
SELECT ALL + - COUNT ( * ) + - + 31 col1 FROM tab0 AS cor0 WHERE - 8 IS NOT NULL
----
-34

query I rowsort
SELECT DISTINCT + col2 * - - col0 * col1 FROM tab2 AS cor0
----
197120
291450
53958

query I rowsort
SELECT ALL + + col2 + - - col0 AS col1 FROM tab2 AS cor0
----
104
133
69

query I rowsort
SELECT - col2 AS col0 FROM tab2 AS cor0 WHERE col2 <> NULL
----

query I rowsort
SELECT + + col1 - 81 FROM tab1 AS cor0
----
-34
-67
-76

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL < - 15 / col0 + - col1 / 77
----

query II rowsort
SELECT ALL + col2 * - + col0 AS col0, + col1 - + - ( - 63 ) FROM tab2
----
-1058
-12
-2560
14
-4350
4

query I rowsort
SELECT ALL - ( 2 ) FROM tab0
----
-2
-2
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8409
SELECT + CAST( NULL AS SIGNED ) + + + 32 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8409
SELECT + CAST ( NULL AS INTEGER ) + + + 32 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 10 * - col0 * + col0 AS col0 FROM tab1
----
-26010
-72250
-82810

query I rowsort
SELECT ALL - col1 + col2 * - 63 FROM tab0
----
-3042
-6238
-651

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8412
SELECT MIN( + CAST( NULL AS SIGNED ) ) + COUNT( ALL 68 ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8412
SELECT MIN ( + CAST ( NULL AS INTEGER ) ) + COUNT ( ALL 68 ) AS col2 FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE - 84 IS NULL
----

query I rowsort
SELECT + ( - col1 ) * + col0 + + col2 AS col0 FROM tab2
----
-2323
-4888
-4967

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8415
SELECT DISTINCT - ( + CAST( ( 17 ) AS SIGNED ) ) - 50 * - COUNT( * ) FROM tab1 AS cor0
----
133

skipif mysql # not compatible
query I rowsort label-8415
SELECT DISTINCT - ( + CAST ( ( 17 ) AS INTEGER ) ) - 50 * - COUNT ( * ) FROM tab1 AS cor0
----
133

query I rowsort
SELECT DISTINCT - ( - ( 34 ) ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT ( NULL ) IS NOT NULL
----
34

query I rowsort
SELECT + 74 AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

query II rowsort
SELECT col1, + col1 * 23 AS col1 FROM tab0
----
1
23
21
483
81
1863

query I rowsort
SELECT DISTINCT + 88 * + + 69 AS col1 FROM tab1
----
6072

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8420
SELECT ALL col0 + + 86 + + - col1 / - col1 + - 60, ( + col2 ) AS col0 FROM tab1 WHERE ( NOT NULL BETWEEN NULL AND - CAST( col1 AS SIGNED ) )
----

skipif mysql # not compatible
query II rowsort label-8420
SELECT ALL col0 + + 86 + + - col1 / - col1 + - 60, ( + col2 ) AS col0 FROM tab1 WHERE ( NOT NULL BETWEEN NULL AND - CAST ( col1 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8421
SELECT ALL 73 + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
82

skipif mysql # not compatible
query I rowsort label-8421
SELECT ALL 73 + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-8422
SELECT ALL MAX( ALL - - 74 ) AS col1 FROM tab0 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-8422
SELECT ALL MAX ( ALL - - 74 ) AS col1 FROM tab0 AS cor0
----
74

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL < col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8424
SELECT DISTINCT - - COUNT( * ), 61 AS col2 FROM tab2 AS cor0
----
3
61

skipif mysql # not compatible
query II rowsort label-8424
SELECT DISTINCT - - COUNT ( * ), 61 AS col2 FROM tab2 AS cor0
----
3
61

query I rowsort
SELECT DISTINCT + - col0 * - 74 AS col2 FROM tab0 AS cor0
----
1110
6438
7178

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8426
SELECT * FROM tab0 WHERE NOT + + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-8426
SELECT * FROM tab0 WHERE NOT + + CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8427
SELECT ALL + CAST( NULL AS SIGNED ) / + ( - col1 ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8427
SELECT ALL + CAST ( NULL AS INTEGER ) / + ( - col1 ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8428
SELECT + SUM( 63 ) AS col2 FROM tab1
----
189

skipif mysql # not compatible
query I rowsort label-8428
SELECT + SUM ( 63 ) AS col2 FROM tab1
----
189

onlyif mysql # aggregate syntax: 
query I rowsort label-8429
SELECT ALL + COUNT( * ) FROM tab1 WHERE NOT col1 = - - 37
----
3

skipif mysql # not compatible
query I rowsort label-8429
SELECT ALL + COUNT ( * ) FROM tab1 WHERE NOT col1 = - - 37
----
3

query I rowsort
SELECT - 7 FROM tab0 AS cor0 WHERE NOT 90 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - - col2 + 5 + + - col1 col1 FROM tab1 AS cor0 WHERE ( NULL ) <> + col0
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( col1 ) > + 32 - - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8433
SELECT ALL + + 46 * - CAST( + 7 AS SIGNED ) + + ( - col2 ) + + col2 * - + col2 col0 FROM tab2 AS cor0 WHERE NOT + col1 IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8433
SELECT ALL + + 46 * - CAST ( + 7 AS INTEGER ) + + ( - col2 ) + + col2 * - + col2 col0 FROM tab2 AS cor0 WHERE NOT + col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 39 + ( 80 ) > + col2
----
15
81
47
97
1
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 44, ( col1 ) * - 61 + col2 col1 FROM tab1 AS cor0
----
44
-246
44
-2799
44
-758

onlyif mysql # aggregate syntax: 
query I rowsort label-8436
SELECT ALL - MAX( ALL + - col1 ) FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-8436
SELECT ALL - MAX ( ALL + - col1 ) FROM tab1 AS cor0
----
5

query I rowsort
SELECT col2 * 62 + + - 95 FROM tab0 cor0
----
2819
525
6043

query I rowsort
SELECT + col0 AS col2 FROM tab2 AS cor0 WHERE + col1 IS NOT NULL
----
46
64
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 + + 3, ( - + col1 ) col0 FROM tab0
----
100
-1
18
-81
90
-21

query II rowsort
SELECT - col0 + + col1 - - - col1, - 94 AS col0 FROM tab1
----
-51
-94
-85
-94
-91
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8441
SELECT + CAST( - col2 AS SIGNED ) + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8441
SELECT + CAST ( - col2 AS INTEGER ) + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8442
SELECT DISTINCT + SUM( ALL CAST( NULL AS DECIMAL ) ) AS col0 FROM tab1 AS cor0 WHERE + col2 > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8442
SELECT DISTINCT + SUM ( ALL CAST ( NULL AS REAL ) ) AS col0 FROM tab1 AS cor0 WHERE + col2 > NULL
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 43 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8444
SELECT DISTINCT - MIN( - col0 ) + 96 AS col1 FROM tab1 AS cor0
----
187

skipif mysql # not compatible
query I rowsort label-8444
SELECT DISTINCT - MIN ( - col0 ) + 96 AS col1 FROM tab1 AS cor0
----
187

onlyif mysql # DIV for integer division: 
query I rowsort label-8445
SELECT ALL + - col2 * + 28 + + 22 DIV + col0 + col2 - + - col0 + ( + + col2 ) FROM tab1 AS cor0
----
-1449
-1677
-2445

skipif mysql # not compatible
query I rowsort label-8445
SELECT ALL + - col2 * + 28 + + 22 / + col0 + col2 - + - col0 + ( + + col2 ) FROM tab1 AS cor0
----
-1449
-1677
-2445

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 5 - col0 * + col0 + - 56 / + + 16 IS NULL
----

query I rowsort
SELECT + ( col0 ) AS col0 FROM tab2 cor0 WHERE 5 <> + col2 * 69
----
46
64
75

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL <> col0 + 80 + - 21
----

query II rowsort
SELECT ALL - col2 + - + 43 AS col2, - col2 AS col1 FROM tab0 AS cor0
----
-142
-99
-53
-10
-90
-47

query I rowsort
SELECT - col2 FROM tab0 WHERE 18 + + 58 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8451
SELECT 96 * CAST( + col0 AS SIGNED ) FROM tab1
----
4896
8160
8736

skipif mysql # not compatible
query I rowsort label-8451
SELECT 96 * CAST ( + col0 AS INTEGER ) FROM tab1
----
4896
8160
8736

query II rowsort
SELECT + col0 AS col1, 30 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - ( + 15 ) + col2 AS col1 FROM tab2 AS cor0
----
25
43
8

query II rowsort
SELECT ALL + 9 * + col0 * col2, col1 * + + col0 * + col0 AS col2 FROM tab1 AS cor0
----
44064
36414
45135
36125
55692
389207

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8455
SELECT CAST( + - col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-8455
SELECT CAST ( + - col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-10
-47
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8456
SELECT DISTINCT 95 DIV - ( - COUNT( * ) ) FROM tab0 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-8456
SELECT DISTINCT 95 / - ( - COUNT ( * ) ) FROM tab0 AS cor0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-8457
SELECT ALL + 22 * MAX( DISTINCT - - col2 ) FROM tab2
----
1276

skipif mysql # not compatible
query I rowsort label-8457
SELECT ALL + 22 * MAX ( DISTINCT - - col2 ) FROM tab2
----
1276

query I rowsort
SELECT DISTINCT - col0 * + - 31 FROM tab1
----
1581
2635
2821

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8459
SELECT - col2 * + CAST( NULL AS SIGNED ) / - col0 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8459
SELECT - col2 * + CAST ( NULL AS INTEGER ) / - col0 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 30 FROM tab0 AS cor0 WHERE NOT ( NULL BETWEEN + - col2 AND NULL )
----

query I rowsort
SELECT + 32 * - 6 FROM tab2 AS cor0
----
-192
-192
-192

query I rowsort
SELECT 24 * ( + 86 ) * + col2 FROM tab1 AS cor0
----
121776
140352
198144

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8463
SELECT - - 55 * COUNT( * ) DIV 35 AS col1 FROM tab2 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-8463
SELECT - - 55 * COUNT ( * ) / 35 AS col1 FROM tab2 AS cor0
----
4

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - ( - 53 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + + col0 * + col1 + + 75 AS col1 FROM tab2 AS cor0
----
2421
5003
5100

onlyif mysql # aggregate syntax: 
query I rowsort label-8466
SELECT ( + + 54 ) + - - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
57

skipif mysql # not compatible
query I rowsort label-8466
SELECT ( + + 54 ) + - - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + 64 ) col2 FROM tab1
----
64
64
64

query I rowsort
SELECT ALL 17 + - - col2 AS col1 FROM tab2
----
40
57
75

query I rowsort
SELECT DISTINCT - + 15 + - col0 * + + 89 FROM tab2 AS cor0
----
-4109
-5711
-6690

onlyif mysql # aggregate syntax: 
query I rowsort label-8470
SELECT + MAX( DISTINCT + 26 ) FROM tab0
----
26

skipif mysql # not compatible
query I rowsort label-8470
SELECT + MAX ( DISTINCT + 26 ) FROM tab0
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8471
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - COUNT( * ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8471
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - COUNT ( * ) AS col1 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8472
SELECT col1, + CAST( - col1 AS SIGNED ) AS col0 FROM tab1
----
14
-14
47
-47
5
-5

skipif mysql # not compatible
query II rowsort label-8472
SELECT col1, + CAST ( - col1 AS INTEGER ) AS col0 FROM tab1
----
14
-14
47
-47
5
-5

query I rowsort
SELECT col2 - - col1 + col0 AS col2 FROM tab1 AS cor0
----
149
161
206

query I rowsort
SELECT - + col1 - - ( - 60 ) FROM tab2 AS cor0
----
-111
-127
-137

query I rowsort
SELECT ALL + col1 * + ( col1 ) + col1 FROM tab1 AS cor0
----
210
2256
30

query III rowsort
SELECT * FROM tab1 WHERE ( 45 ) IS NULL
----

query I rowsort
SELECT ALL + col2 - ( + col0 ) FROM tab2
----
-17
-23
-24

query III rowsort
SELECT * FROM tab1 WHERE + 34 + ( - - 55 ) / + - 7 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8479
SELECT DISTINCT 18 - ( - COUNT( * ) ) FROM tab1
----
21

skipif mysql # not compatible
query I rowsort label-8479
SELECT DISTINCT 18 - ( - COUNT ( * ) ) FROM tab1
----
21

query II rowsort
SELECT 76 + - 10 + + - 70 * - + ( + col1 ) AS col2, + col1 FROM tab2
----
3636
51
4756
67
5456
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + 54 col0 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col1 + - col1 * + col2 + - - 23 FROM tab2
----
-1099
-2980
-3796

query I rowsort
SELECT - 89 * - 20 * + ( - - col1 ) FROM tab1
----
24920
83660
8900

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8484
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IN ( - ( - CAST( NULL AS SIGNED ) ), + 59, col0 * - col2 )
----

skipif mysql # not compatible
query III rowsort label-8484
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IN ( - ( - CAST ( NULL AS INTEGER ) ), + 59, col0 * - col2 )
----

query I rowsort
SELECT DISTINCT + + 55 AS col1 FROM tab2 AS cor0
----
55

query II rowsort
SELECT ALL - col0 * + col0, + col2 + - 30 AS col0 FROM tab1 AS cor0
----
-2601
66
-7225
29
-8281
38

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + col2 * - + col2 + col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL >= - ( - 73 ) / col0
----

query I rowsort
SELECT 0 * 51 AS col0 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8490
SELECT DISTINCT - 87 * CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8490
SELECT DISTINCT - 87 * CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - col2 + - - col0 + - col0 * + col2 AS col0 FROM tab1 AS cor0
----
-4941
-4989
-6165

query I rowsort
SELECT + 88 * - col2 FROM tab2
----
-2024
-3520
-5104

query III rowsort
SELECT * FROM tab2 WHERE NULL <= - - 28 * + col1 - - + col2 - - - col2
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8494
SELECT + col2 * - col1 AS col1, col1 DIV + 73 - col2 col1 FROM tab1 cor0
----
-1344
-96
-295
-59
-3196
-68

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8494
SELECT + col2 * - col1 AS col1, col1 / + 73 - col2 col1 FROM tab1 cor0
----
-1344
-96
-295
-59
-3196
-68

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 + - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + + col0 + col0 * - col1 AS col1 FROM tab2 AS cor0
----
-2300
-4864
-4950

onlyif mysql # aggregate syntax: 
query I rowsort label-8497
SELECT DISTINCT COUNT( * ) AS col0 FROM tab0 WHERE NOT + col1 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-8497
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab0 WHERE NOT + col1 IS NULL
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8498
SELECT - COUNT( * ) + 66 + + - 40 DIV - + COUNT( * ) AS col2 FROM tab2
----
76

skipif mysql # not compatible
query I rowsort label-8498
SELECT - COUNT ( * ) + 66 + + - 40 / - + COUNT ( * ) AS col2 FROM tab2
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-8499
SELECT - MIN( DISTINCT + + 39 ) FROM tab1 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-8499
SELECT - MIN ( DISTINCT + + 39 ) FROM tab1 AS cor0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-8500
SELECT ALL + COUNT( * ) col0 FROM tab2 cor0 WHERE NULL NOT IN ( - col0 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8500
SELECT ALL + COUNT ( * ) col0 FROM tab2 cor0 WHERE NULL NOT IN ( - col0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8501
SELECT ALL - 74 + - 88 + MAX( - col2 ) FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-8501
SELECT ALL - 74 + - 88 + MAX ( - col2 ) FROM tab2 AS cor0
----
-185

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL BETWEEN col0 AND ( + col2 + - 46 / + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - col0 - col2 - - - col0 col0, col1 col2 FROM tab1 cor0
----
-198
14
-229
5
-250
47

query I rowsort
SELECT DISTINCT - col0 * + col2 + + + 24 AS col0 FROM tab2 AS cor0
----
-1034
-2536
-4326

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( + ( - col1 ) ) + + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col0 - + ( 11 ) AS col2 FROM tab1 AS cor0
----
-102
-62
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-8507
SELECT 55 - + ( + COUNT( * ) ) FROM tab0
----
52

skipif mysql # not compatible
query I rowsort label-8507
SELECT 55 - + ( + COUNT ( * ) ) FROM tab0
----
52

onlyif mysql # DIV for integer division: 
query II rowsort label-8508
SELECT DISTINCT 30, col2 DIV - + col0 AS col2 FROM tab1
----
30
-1
30
0

skipif mysql # not compatible
query II rowsort label-8508
SELECT DISTINCT 30, col2 / - + col0 AS col2 FROM tab1
----
30
-1
30
0

query I rowsort
SELECT ALL 27 + - col1 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT ALL 20, + col1 AS col1 FROM tab0
----
20
1
20
21
20
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8511
SELECT DISTINCT + + MIN( col1 ) col0 FROM tab0 WHERE NOT + col1 IS NULL
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8511
SELECT DISTINCT + + MIN ( col1 ) col0 FROM tab0 WHERE NOT + col1 IS NULL
----
1

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE 65 * col2 <> + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col0 * - col1 / + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 61 col1 FROM tab2 AS cor0
----
61
61
61

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8515
SELECT * FROM tab2 AS cor0 WHERE NOT + 23 <= CAST( - 39 AS SIGNED )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8515
SELECT * FROM tab2 AS cor0 WHERE NOT + 23 <= CAST ( - 39 AS INTEGER )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8516
SELECT - COUNT( * ) DIV 59 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8516
SELECT - COUNT ( * ) / 59 FROM tab2 AS cor0
----
0

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE - 6 IS NOT NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

query II rowsort
SELECT ( + 69 ) AS col0, 24 * - - col1 + - - ( + - 71 ) AS col1 FROM tab2 cor0
----
69
1153
69
1537
69
1777

onlyif mysql # aggregate syntax: 
query I rowsort label-8519
SELECT 81 * - + COUNT( - col2 ) - 22 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-265

skipif mysql # not compatible
query I rowsort label-8519
SELECT 81 * - + COUNT ( - col2 ) - 22 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-265

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8520
SELECT + - CAST( - col2 AS SIGNED ) DIV - + 87 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8520
SELECT + - CAST ( - col2 AS INTEGER ) / - + 87 AS col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8521
SELECT ALL - + SUM( ALL col0 ) FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-8521
SELECT ALL - + SUM ( ALL col0 ) FROM tab1 AS cor0
----
-227

query I rowsort
SELECT + ( + 68 ) * + col2 AS col0 FROM tab2 AS cor0
----
1564
2720
3944

query I rowsort
SELECT + col1 * + - col1 * + 65 FROM tab1 AS cor0
----
-12740
-143585
-1625

onlyif mysql # aggregate syntax: 
query I rowsort label-8524
SELECT ALL - MIN( DISTINCT + 9 ) FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-8524
SELECT ALL - MIN ( DISTINCT + 9 ) FROM tab1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8525
SELECT 44 + - + SUM( ALL - col2 ) AS col1 FROM tab0
----
200

skipif mysql # not compatible
query I rowsort label-8525
SELECT 44 + - + SUM ( ALL - col2 ) AS col1 FROM tab0
----
200

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8526
SELECT ALL - CAST( NULL AS SIGNED ) col0, col2 * col2 + - - col0 AS col2 FROM tab1
----
NULL
3566
NULL
4715
NULL
9267

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8526
SELECT ALL - CAST ( NULL AS INTEGER ) col0, col2 * col2 + - - col0 AS col2 FROM tab1
----
NULL
3566
NULL
4715
NULL
9267

onlyif mysql # aggregate syntax: 
query II rowsort label-8527
SELECT + 72 + - + ( + - 37 ) AS col2, COUNT( * ) FROM tab2
----
109
3

skipif mysql # not compatible
query II rowsort label-8527
SELECT + 72 + - + ( + - 37 ) AS col2, COUNT ( * ) FROM tab2
----
109
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8528
SELECT ALL 51 * - + COUNT( * ) FROM tab0
----
-153

skipif mysql # not compatible
query I rowsort label-8528
SELECT ALL 51 * - + COUNT ( * ) FROM tab0
----
-153

query I rowsort
SELECT + 39 + + col0 - + - 78 * + 49 AS col2 FROM tab2
----
3907
3925
3936

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8530
SELECT - col0 + + CAST( NULL AS SIGNED ) * 19 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8530
SELECT - col0 + + CAST ( NULL AS INTEGER ) * 19 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 92 + + col1 AS col1 FROM tab1
----
106
139
97

query I rowsort
SELECT + col0 + - 65 + + 51 AS col2 FROM tab0 AS cor0
----
1
73
83

query I rowsort
SELECT DISTINCT - 86 + + col1 - + - 58 AS col2 FROM tab2 AS cor0
----
23
39
49

query I rowsort
SELECT - 77 * + - col2 AS col2 FROM tab2
----
1771
3080
4466

query I rowsort
SELECT DISTINCT + + 73 FROM tab2 WHERE NOT + col0 NOT IN ( + col1, 57, + 79, + col0 + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8536
SELECT ALL + 85 DIV col1 FROM tab0
----
1
4
85

skipif mysql # not compatible
query I rowsort label-8536
SELECT ALL + 85 / col1 FROM tab0
----
1
4
85

query I rowsort
SELECT + 89 - col1 FROM tab2 AS cor0
----
12
22
38

query I rowsort
SELECT ( - - col2 ) + col0 AS col1 FROM tab1 AS cor0
----
144
147
159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8539
SELECT DISTINCT + ( CAST( NULL AS SIGNED ) ) * + 38 + + col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8539
SELECT DISTINCT + ( CAST ( NULL AS INTEGER ) ) * + 38 + + col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8540
SELECT - ( - SUM( DISTINCT ( col0 ) ) ) AS col2 FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-8540
SELECT - ( - SUM ( DISTINCT ( col0 ) ) ) AS col2 FROM tab1
----
227

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 84 col2 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND col1 + + - ( + col1 )
----

query I rowsort
SELECT col2 AS col2 FROM tab2 AS cor0 WHERE NOT + col1 > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 22 NOT BETWEEN NULL AND 80 + + - col2 - + ( - - col1 ) * col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8544
SELECT - COUNT( * ) + + 81 AS col1 FROM tab0 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-8544
SELECT - COUNT ( * ) + + 81 AS col1 FROM tab0 AS cor0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-8545
SELECT COUNT( DISTINCT + + col1 ) AS col2 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8545
SELECT COUNT ( DISTINCT + + col1 ) AS col2 FROM tab2 cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + + col2 * - + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col0 * col1 * - 61 AS col2 FROM tab0
----
-111447
-5917
-74115

query I rowsort
SELECT ( + - 70 ) AS col1 FROM tab1
----
-70
-70
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8549
SELECT - CAST( NULL AS SIGNED ) / CAST( + col2 AS SIGNED ) * + 83 col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8549
SELECT - CAST ( NULL AS INTEGER ) / CAST ( + col2 AS INTEGER ) * + 83 col1 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT - col2 + + col0 AS col1, col0 FROM tab2 AS cor0
----
17
75
23
46
24
64

query I rowsort
SELECT - col1 + - - col2 + col0 + 69 AS col2 FROM tab1 AS cor0
----
181
202
208

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 22 BETWEEN + + col0 AND 56
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 39 + + col2 + + 89 * - ( - col0 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8554
SELECT - 57 DIV col2 FROM tab0 AS cor0
----
-1
-5
0

skipif mysql # not compatible
query I rowsort label-8554
SELECT - 57 / col2 FROM tab0 AS cor0
----
-1
-5
0

query I rowsort
SELECT + 61 * + 97 AS col1 FROM tab2 AS cor0
----
5917
5917
5917

onlyif mysql # aggregate syntax: 
query I rowsort label-8556
SELECT MAX( DISTINCT - 66 ) AS col1 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-8556
SELECT MAX ( DISTINCT - 66 ) AS col1 FROM tab1 AS cor0
----
-66

query I rowsort
SELECT ALL - + col0 * + col0 * col1 AS col0 FROM tab1 AS cor0
----
-36125
-36414
-389207

query I rowsort
SELECT - + col1 * 60 AS col2 FROM tab1 AS cor0
----
-2820
-300
-840

query II rowsort
SELECT ( - + 71 ) AS col1, 77 FROM tab1
----
-71
77
-71
77
-71
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 37 * + - 65 col1 FROM tab1 WHERE NOT + + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8561
SELECT + 25 * + - COUNT( * ), - 26 + + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
-75
NULL

skipif mysql # not compatible
query II rowsort label-8561
SELECT + 25 * + - COUNT ( * ), - 26 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
-75
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8562
SELECT DISTINCT * FROM tab0 WHERE + 98 * - CAST( NULL AS SIGNED ) + + - CAST( + - 85 AS SIGNED ) * + col2 + - col0 < NULL
----

skipif mysql # not compatible
query III rowsort label-8562
SELECT DISTINCT * FROM tab0 WHERE + 98 * - CAST ( NULL AS INTEGER ) + + - CAST ( + - 85 AS INTEGER ) * + col2 + - col0 < NULL
----

query I rowsort
SELECT ALL + col2 * + - col2 AS col1 FROM tab1
----
-3481
-4624
-9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + ( - col1 ) AS col1, 44 * - col2 col0 FROM tab2 AS cor0
----
-51
-1012
-67
-2552
-77
-1760

query I rowsort
SELECT + + col0 AS col1 FROM tab2 AS cor0 WHERE NOT ( NOT - col0 * + + 99 * - col2 >= 57 )
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8566
SELECT - - ( + - ( + COUNT( * ) ) ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8566
SELECT - - ( + - ( + COUNT ( * ) ) ) FROM tab0 cor0
----
-3

query I rowsort
SELECT + - col2 * + + col1 * + - col1 FROM tab1 AS cor0
----
1475
150212
18816

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 2 + - col0 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8569
SELECT ALL COUNT( * ) FROM tab1 AS cor0 WHERE NOT + 63 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-8569
SELECT ALL COUNT ( * ) FROM tab1 AS cor0 WHERE NOT + 63 IS NULL
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8570
SELECT ALL COUNT( * ) / + - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8570
SELECT ALL COUNT ( * ) / + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8571
SELECT + COUNT( * ) + - ( - + 39 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
48

skipif mysql # not compatible
query I rowsort label-8571
SELECT + COUNT ( * ) + - ( - + 39 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-8572
SELECT ALL COUNT( * ) FROM tab0 cor0 CROSS JOIN tab1 cor1
----
9

skipif mysql # not compatible
query I rowsort label-8572
SELECT ALL COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab1 cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8573
SELECT DISTINCT - col1 AS col2, col0 + + CAST( + col1 AS SIGNED ) FROM tab1
----
-14
65
-47
138
-5
90

skipif mysql # not compatible
query II rowsort label-8573
SELECT DISTINCT - col1 AS col2, col0 + + CAST ( + col1 AS INTEGER ) FROM tab1
----
-14
65
-47
138
-5
90

onlyif mysql # aggregate syntax: 
query I rowsort label-8574
SELECT DISTINCT COUNT( * ) * + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
81

skipif mysql # not compatible
query I rowsort label-8574
SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col0 FROM tab2 cor0 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8576
SELECT DISTINCT + CAST( NULL AS SIGNED ) + 46 - + + AVG ( - + 83 ) / 2 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8576
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + 46 - + + AVG ( - + 83 ) / 2 AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL col2 + - - 75 FROM tab2 AS cor0
----
115
133
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8578
SELECT + - CAST( - ( 94 ) AS SIGNED ) col1 FROM tab1 AS cor0
----
94
94
94

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8578
SELECT + - CAST ( - ( 94 ) AS INTEGER ) col1 FROM tab1 AS cor0
----
94
94
94

query I rowsort
SELECT - ( + - 13 ) AS col1 FROM tab0 AS cor0
----
13
13
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8580
SELECT DISTINCT + ( - - CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8580
SELECT DISTINCT + ( - - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8581
SELECT - - MAX( - + col1 ) * MAX( ALL 44 ) AS col1 FROM tab2 AS cor0
----
-2244

skipif mysql # not compatible
query I rowsort label-8581
SELECT - - MAX ( - + col1 ) * MAX ( ALL 44 ) AS col1 FROM tab2 AS cor0
----
-2244

query I rowsort
SELECT - col2 + - 7 FROM tab0
----
-106
-17
-54

query I rowsort
SELECT + 10 * + - 69 + + - col1 FROM tab1
----
-695
-704
-737

query I rowsort
SELECT col1 FROM tab2 WHERE col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8585
SELECT col2 + - col0 - col1 DIV col0 + + col1 * col1 FROM tab2
----
2577
4472
5904

skipif mysql # not compatible
query I rowsort label-8585
SELECT col2 + - col0 - col1 / col0 + + col1 * col1 FROM tab2
----
2577
4472
5904

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + - col2 * - col2 < + col0 * 90 - col1
----
51
14
96

query I rowsort
SELECT + 3 + col2 * - 57 AS col0 FROM tab0 AS cor0
----
-2676
-5640
-567

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8588
SELECT COUNT( + ( - CAST( + + col1 AS SIGNED ) ) ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8588
SELECT COUNT ( + ( - CAST ( + + col1 AS INTEGER ) ) ) AS col0 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8589
SELECT ALL + col1 AS col1 FROM tab0 AS cor0 WHERE 68 NOT BETWEEN CAST( NULL AS SIGNED ) + + 58 + col0 / + col1 AND + col0
----
81

skipif mysql # not compatible
query I rowsort label-8589
SELECT ALL + col1 AS col1 FROM tab0 AS cor0 WHERE 68 NOT BETWEEN CAST ( NULL AS INTEGER ) + + 58 + col0 / + col1 AND + col0
----
81

query III rowsort
SELECT * FROM tab1 cor0 WHERE - 29 BETWEEN col1 * - 59 / col0 AND NULL
----

query I rowsort
SELECT ALL + + 44 FROM ( tab2 cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

query I rowsort
SELECT ALL 88 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

query II rowsort
SELECT - ( - col2 ) AS col0, col1 + 82 AS col1 FROM tab1
----
59
87
68
129
96
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8594
SELECT ALL 16 * - - COUNT( * ) FROM tab2
----
48

skipif mysql # not compatible
query I rowsort label-8594
SELECT ALL 16 * - - COUNT ( * ) FROM tab2
----
48

query I rowsort
SELECT ALL - col1 AS col1 FROM tab2 WHERE NOT + col2 IS NULL
----
-51
-67
-77

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( NULL > col1 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8597
SELECT - - 42 DIV - - 36 AS col0, 71 + COUNT( * ) * 73 FROM tab2 cor0
----
1
290

skipif mysql # not compatible
query II rowsort label-8597
SELECT - - 42 / - - 36 AS col0, 71 + COUNT ( * ) * 73 FROM tab2 cor0
----
1
290

query I rowsort
SELECT ALL + col1 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL IS NOT NULL )
----
14
47
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + col2 * - 51 col2 FROM tab0 AS cor0
----
-10710
-194157
-5049

query I rowsort
SELECT DISTINCT - + col0 * - col2 AS col0 FROM tab2 cor0
----
1058
2560
4350

query I rowsort
SELECT DISTINCT - 79 * 13 AS col2 FROM tab2 AS cor0
----
-1027

query I rowsort
SELECT + - 79 AS col1 FROM tab2 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-79
-79
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-8603
SELECT + SUM( ALL + col1 ) AS col1 FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-8603
SELECT + SUM ( ALL + col1 ) AS col1 FROM tab0
----
103

onlyif mysql # aggregate syntax: 
query II rowsort label-8604
SELECT ALL COUNT( * ), 53 AS col1 FROM tab1
----
3
53

skipif mysql # not compatible
query II rowsort label-8604
SELECT ALL COUNT ( * ), 53 AS col1 FROM tab1
----
3
53

query II rowsort
SELECT - 78 AS col1, - 2 AS col0 FROM tab0
----
-78
-2
-78
-2
-78
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8606
SELECT COUNT( 54 ) * + MAX( ALL + col1 ) * COUNT( 8 ) FROM tab0
----
729

skipif mysql # not compatible
query I rowsort label-8606
SELECT COUNT ( 54 ) * + MAX ( ALL + col1 ) * COUNT ( 8 ) FROM tab0
----
729

query I rowsort
SELECT DISTINCT + 57 * col1 FROM tab2 cor0
----
2907
3819
4389

query II rowsort
SELECT ALL - col1 AS col2, col1 + + col1 FROM tab0 AS cor0
----
-1
2
-21
42
-81
162

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 11 col2 FROM tab2
----
-11
-11
-11

query III rowsort
SELECT ALL * FROM tab0 WHERE - col2 * - 54 + + - 49 NOT BETWEEN col1 AND NULL
----

query I rowsort
SELECT ALL + col0 * - 93 + + col0 AS col1 FROM tab1 AS cor0
----
-4692
-7820
-8372

onlyif mysql # aggregate syntax: 
query I rowsort label-8612
SELECT ALL + - SUM( + - col2 ) AS col1 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-8612
SELECT ALL + - SUM ( + - col2 ) AS col1 FROM tab0 AS cor0
----
156

query I rowsort
SELECT col0 + + 99 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT DISTINCT - 90, col1 AS col2 FROM tab0
----
-90
1
-90
21
-90
81

query I rowsort
SELECT + 75 * + - col1 FROM tab0
----
-1575
-6075
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-8616
SELECT col0 DIV + + 90 AS col1 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8616
SELECT col0 / + + 90 AS col1 FROM tab0
----
0
0
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8617
SELECT 87 DIV COUNT( * ) col0 FROM tab0
----
29

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8617
SELECT 87 / COUNT ( * ) col0 FROM tab0
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8618
SELECT ALL - COUNT( * ) DIV 60 - + 32 - COUNT( * ) FROM tab1 WHERE NOT + - 42 IS NOT NULL
----
-32

skipif mysql # not compatible
query I rowsort label-8618
SELECT ALL - COUNT ( * ) / 60 - + 32 - COUNT ( * ) FROM tab1 WHERE NOT + - 42 IS NOT NULL
----
-32

query I rowsort
SELECT col2 * col1 * + col1 - - col0 FROM tab0
----
196
308382
4497

query I rowsort
SELECT DISTINCT + col1 + - ( - col0 ) AS col2 FROM tab2
----
141
142
97

query I rowsort
SELECT - + col2 + 56 AS col2 FROM tab2 AS cor0
----
-2
16
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8622
SELECT DISTINCT 53 - - + CAST( NULL AS SIGNED ) + 70 * - COUNT( * ) * - 36 * COUNT( * ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8622
SELECT DISTINCT 53 - - + CAST ( NULL AS INTEGER ) + 70 * - COUNT ( * ) * - 36 * COUNT ( * ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8623
SELECT DISTINCT - col0 + + col1 * col1 DIV col2 AS col0 FROM tab2 AS cor0
----
2
67
84

skipif mysql # not compatible
query I rowsort label-8623
SELECT DISTINCT - col0 + + col1 * col1 / col2 AS col0 FROM tab2 AS cor0
----
2
67
84

query I rowsort
SELECT DISTINCT - 70 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8625
SELECT + col1 DIV + col2 col2 FROM tab0 AS cor0
----
0
1
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8625
SELECT + col1 / + col2 col2 FROM tab0 AS cor0
----
0
1
2

query I rowsort
SELECT ALL + - col1 * + - col1 AS col0 FROM tab1 AS cor0
----
196
2209
25

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col1 + - col2 * - - 17 - - col0, + col1 + + 59, + + 60 + - - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8628
SELECT COUNT( * ) * - 43 FROM tab2 AS cor0
----
-129

skipif mysql # not compatible
query I rowsort label-8628
SELECT COUNT ( * ) * - 43 FROM tab2 AS cor0
----
-129

query I rowsort
SELECT + 7 * + ( 68 ) * - + col1 + 66 AS col2 FROM tab1 AS cor0
----
-22306
-2314
-6598

onlyif mysql # aggregate syntax: 
query I rowsort label-8630
SELECT - - COUNT( * ) AS col0 FROM tab2 cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8630
SELECT - - COUNT ( * ) AS col0 FROM tab2 cor0 WHERE NOT ( NULL ) IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8631
SELECT ALL + - COUNT( DISTINCT - col1 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8631
SELECT ALL + - COUNT ( DISTINCT - col1 ) FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8632
SELECT - COUNT( + 8 ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8632
SELECT - COUNT ( + 8 ) AS col1 FROM tab0 AS cor0
----
-3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 + 98 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8634
SELECT + COUNT( ALL + 9 ) / + + SUM( - col1 ) + + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8634
SELECT + COUNT ( ALL + 9 ) / + + SUM ( - col1 ) + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 AS cor0 WHERE NOT + 1 IS NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query I rowsort
SELECT ALL + col1 AS col2 FROM tab1 WHERE ( NULL IS NULL )
----
14
47
5

query I rowsort
SELECT ALL - col2 FROM tab0 WHERE NOT ( ( - col0 * + 17 > - col2 ) )
----
-10
-47
-99

query I rowsort
SELECT DISTINCT + + col0 * 28 FROM tab0 AS cor0
----
2436
2716
420

query I rowsort
SELECT - - 6 + - ( + - col1 ) FROM tab2 AS cor0
----
57
73
83

query I rowsort
SELECT ALL + col1 + - + col2 + 43 AS col1 FROM tab0 AS cor0
----
-55
54
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8641
SELECT DISTINCT 49 + - MAX( ALL - + col0 ) FROM tab0 AS cor0
----
64

skipif mysql # not compatible
query I rowsort label-8641
SELECT DISTINCT 49 + - MAX ( ALL - + col0 ) FROM tab0 AS cor0
----
64

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col1 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab1 WHERE NOT + col2 * - col2 NOT BETWEEN NULL AND col2
----

query I rowsort
SELECT DISTINCT 33 + 44 FROM tab0
----
77

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - - 84 + + - col1 IS NOT NULL
----

query I rowsort
SELECT 12 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d4f5a8e032294c3b9342821617800972

query I rowsort
SELECT ALL - col1 * + - 27 + 57 + - col1 AS col0 FROM tab2
----
1383
1799
2059

query I rowsort
SELECT + + ( + - 13 ) AS col2 FROM tab1 AS cor0
----
-13
-13
-13

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT ( NOT ( NOT NULL NOT IN ( 7 * col0, - 89 ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8650
SELECT DISTINCT + - COUNT( * ) + + - COUNT( * ) FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-8650
SELECT DISTINCT + - COUNT ( * ) + + - COUNT ( * ) FROM tab1 AS cor0
----
-6

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL <= 89
----

query I rowsort
SELECT - col0 - - col2 AS col2 FROM tab2 AS cor0
----
-17
-23
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8653
SELECT - + col2 + + col1 + + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8653
SELECT - + col2 + + col1 + + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * + + col1 + 39 + - + col2 + - + 86 FROM tab2 AS cor0
----
2531
4384
5842

query I rowsort
SELECT ALL col2 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + + 10 > NULL
----

query II rowsort
SELECT DISTINCT + 58 - - col1 AS col2, + col2 * col0 FROM tab0
----
139
705
59
9603
79
870

onlyif mysql # DIV for integer division: 
query II rowsort label-8658
SELECT col0 DIV + 63, col1 * - 33 AS col0 FROM tab1
----
0
-462
1
-1551
1
-165

skipif mysql # not compatible
query II rowsort label-8658
SELECT col0 / + 63, col1 * - 33 AS col0 FROM tab1
----
0
-462
1
-1551
1
-165

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8659
SELECT + 85 * + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8659
SELECT + 85 * + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8660
SELECT col0 DIV ( + - 74 ) + col0 AS col1, col2 col1 FROM tab2 AS cor0
----
46
23
64
40
74
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8660
SELECT col0 / ( + - 74 ) + col0 AS col1, col2 col1 FROM tab2 AS cor0
----
46
23
64
40
74
58

onlyif mysql # DIV for integer division: 
query I rowsort label-8661
SELECT DISTINCT + col2 DIV - + col2 AS col2 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8661
SELECT DISTINCT + col2 / - + col2 AS col2 FROM tab2 AS cor0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-8662
SELECT + ( - col2 ) DIV + 46 col0 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8662
SELECT + ( - col2 ) / + 46 col0 FROM tab2 AS cor0
----
-1
0
0

query I rowsort
SELECT - col0 * + + col2 * col2 * + col1 FROM tab2
----
-1241034
-16904100
-7884800

query I rowsort
SELECT + col2 * - 54 FROM tab2
----
-1242
-2160
-3132

onlyif mysql # aggregate syntax: 
query I rowsort label-8665
SELECT DISTINCT - + MAX( 33 ) AS col0 FROM tab0 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-8665
SELECT DISTINCT - + MAX ( 33 ) AS col0 FROM tab0 AS cor0
----
-33

onlyif mysql # DIV for integer division: 
query II rowsort label-8666
SELECT + col1, - col1 DIV + 90 * - 57 - - col0 DIV - + col1 AS col2 FROM tab0 AS cor0
----
1
-97
21
-4
81
0

skipif mysql # not compatible
query II rowsort label-8666
SELECT + col1, - col1 / + 90 * - 57 - - col0 / - + col1 AS col2 FROM tab0 AS cor0
----
1
-97
21
-4
81
0

query II rowsort
SELECT col2 AS col0, col2 * + ( + - col2 ) + + ( - col1 ) + + + col0 * col1 - - + col2 * - 85 AS col0 FROM tab0
----
10
856
47
-5070
99
-18120

onlyif mysql # aggregate syntax: 
query II rowsort label-8668
SELECT ALL 95 AS col1, + 33 + COUNT( * ) FROM tab2
----
95
36

skipif mysql # not compatible
query II rowsort label-8668
SELECT ALL 95 AS col1, + 33 + COUNT ( * ) FROM tab2
----
95
36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1, - col0 col0 FROM tab2
----
51
-46
67
-75
77
-64

query I rowsort
SELECT DISTINCT ( + - 28 ) FROM tab0
----
-28

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 - - + col1 + + col0 * - - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8672
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8672
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT 87 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT + + ( - col2 ) AS col1 FROM tab0 cor0
----
-10
-47
-99

query I rowsort
SELECT DISTINCT - - col1 + - + col1 AS col0 FROM tab0 cor0
----
0

query II rowsort
SELECT DISTINCT col2, + col2 FROM tab0 AS cor0 WHERE 20 BETWEEN - col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8677
SELECT + - COUNT( ALL - - ( + col0 ) ) col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8677
SELECT + - COUNT ( ALL - - ( + col0 ) ) col0 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8678
SELECT - - COUNT( + 47 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8678
SELECT - - COUNT ( + 47 ) AS col2 FROM tab2 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) <> + - col1
----

query I rowsort
SELECT ALL - col2 * 22 AS col2 FROM tab1 AS cor0
----
-1298
-1496
-2112

query II rowsort
SELECT - + col0 + - + col2, + 58 AS col2 FROM tab1 AS cor0
----
-144
58
-147
58
-159
58

query I rowsort
SELECT ALL col0 * - - col0 * - + col0 FROM tab2
----
-262144
-421875
-97336

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab0 AS cor0 WHERE - ( + col0 ) IS NOT NULL
----
1
21
81

query I rowsort
SELECT + col2 * 43 + + 66 + + - col2 FROM tab1 AS cor0
----
2544
2922
4098

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8685
SELECT + - col2 / + col1 FROM tab2 AS cor0 WHERE CAST( - col1 AS SIGNED ) + + col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-8685
SELECT + - col2 / + col1 FROM tab2 AS cor0 WHERE CAST ( - col1 AS INTEGER ) + + col1 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) <> + + col2 * + 49 * - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8687
SELECT ALL + + col2 + - + 57 - - col1 * - - col0 * - 76 + CAST( NULL AS SIGNED ) / + col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8687
SELECT ALL + + col2 + - + 57 - - col1 * - - col0 * - 76 + CAST ( NULL AS INTEGER ) / + col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8688
SELECT - CAST( 85 AS SIGNED ), col2 AS col1 FROM tab1 AS cor0
----
-85
59
-85
68
-85
96

skipif mysql # not compatible
query II rowsort label-8688
SELECT - CAST ( 85 AS INTEGER ), col2 AS col1 FROM tab1 AS cor0
----
-85
59
-85
68
-85
96

query II rowsort
SELECT DISTINCT + col2, col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8690
SELECT ALL - col2 DIV - col2 - + - col1 AS col1 FROM tab2 AS cor0
----
52
68
78

skipif mysql # not compatible
query I rowsort label-8690
SELECT ALL - col2 / - col2 - + - col1 AS col1 FROM tab2 AS cor0
----
52
68
78

query II rowsort
SELECT ALL + - col0 + - 57 * + - col0 AS col1, col2 AS col0 FROM tab0 AS cor0
----
4872
10
5432
99
840
47

query II rowsort
SELECT DISTINCT col0 * col0 - + - 27 AS col2, col2 FROM tab1
----
2628
96
7252
59
8308
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8693
SELECT 79 - - - MIN( DISTINCT - col2 ) FROM tab0
----
178

skipif mysql # not compatible
query I rowsort label-8693
SELECT 79 - - - MIN ( DISTINCT - col2 ) FROM tab0
----
178

onlyif mysql # aggregate syntax: 
query I rowsort label-8694
SELECT + 95 - COUNT( * ) AS col1 FROM tab2
----
92

skipif mysql # not compatible
query I rowsort label-8694
SELECT + 95 - COUNT ( * ) AS col1 FROM tab2
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8695
SELECT DISTINCT * FROM tab2 WHERE NOT - CAST( + 72 AS SIGNED ) = + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8695
SELECT DISTINCT * FROM tab2 WHERE NOT - CAST ( + 72 AS INTEGER ) = + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8696
SELECT ALL - COUNT( col0 ) DIV - COUNT( * ) AS col1 FROM tab1 cor0
----
1

skipif mysql # not compatible
query I rowsort label-8696
SELECT ALL - COUNT ( col0 ) / - COUNT ( * ) AS col1 FROM tab1 cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8697
SELECT DISTINCT SUM( ALL - + col0 ) AS col1 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-8697
SELECT DISTINCT SUM ( ALL - + col0 ) AS col1 FROM tab1 AS cor0
----
-227

onlyif mysql # DIV for integer division: 
query II rowsort label-8698
SELECT DISTINCT col1 * + + col2 DIV + col2 AS col0, 2 * - + col2 FROM tab0 AS cor0
----
1
-198
21
-20
81
-94

skipif mysql # not compatible
query II rowsort label-8698
SELECT DISTINCT col1 * + + col2 / + col2 AS col0, 2 * - + col2 FROM tab0 AS cor0
----
1
-198
21
-20
81
-94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8699
SELECT - COUNT( * ) DIV 66 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8699
SELECT - COUNT ( * ) / 66 AS col0 FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col2 AS col2, - col0 col2 FROM tab0 AS cor0
----
10
-87
47
-15
99
-97

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8701
SELECT - col1 FROM tab0 WHERE NOT col2 * 46 < CAST( 71 AS DECIMAL )
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-8701
SELECT - col1 FROM tab0 WHERE NOT col2 * 46 < CAST ( 71 AS REAL )
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-8702
SELECT COUNT( ( + col2 ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8702
SELECT COUNT ( ( + col2 ) ) FROM tab0
----
3

query I rowsort
SELECT DISTINCT col2 * col2 + + col1 * + col1 AS col1 FROM tab2
----
3130
7529
7853

query I rowsort
SELECT DISTINCT 86 - 49 FROM tab1
----
37

query I rowsort
SELECT - col0 + + col1 * - col2 AS col2 FROM tab2 WHERE NOT - col0 NOT IN ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8706
SELECT COUNT( - 40 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8706
SELECT COUNT ( - 40 ) FROM tab2
----
3

query I rowsort
SELECT DISTINCT 21 + col2 * - col2 AS col0 FROM tab1
----
-3460
-4603
-9195

onlyif mysql # aggregate syntax: 
query I rowsort label-8708
SELECT ALL COUNT( ALL - 68 ) + - 33 FROM tab1
----
-30

skipif mysql # not compatible
query I rowsort label-8708
SELECT ALL COUNT ( ALL - 68 ) + - 33 FROM tab1
----
-30

query I rowsort
SELECT col1 AS col0 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
51
67
77

query I rowsort
SELECT - col0 + 76 FROM tab0 WHERE ( NULL ) IS NULL
----
-11
-21
61

query I rowsort
SELECT - col2 * 62 + col2 FROM tab1
----
-3599
-4148
-5856

onlyif mysql # DIV for integer division: 
query I rowsort label-8712
SELECT ALL - col2 DIV col1 col2 FROM tab2 WHERE NOT ( ( col2 ) * col1 ) > ( col2 * + col0 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8712
SELECT ALL - col2 / col1 col2 FROM tab2 WHERE NOT ( ( col2 ) * col1 ) > ( col2 * + col0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8713
SELECT - COUNT( * ) * - COUNT( * ) FROM tab2 WHERE NOT NULL < - col1
----
0

skipif mysql # not compatible
query I rowsort label-8713
SELECT - COUNT ( * ) * - COUNT ( * ) FROM tab2 WHERE NOT NULL < - col1
----
0

query III rowsort
SELECT * FROM tab0 WHERE ( - 98 ) <> + 67
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + ( - 69 ) FROM tab0
----
-69
-69
-69

query I rowsort
SELECT DISTINCT 70 * - 96 AS col0 FROM tab2
----
-6720

onlyif mysql # DIV for integer division: 
query I rowsort label-8717
SELECT DISTINCT + 34 * + ( 97 DIV - 93 ) AS col0 FROM tab1
----
-34

skipif mysql # not compatible
query I rowsort label-8717
SELECT DISTINCT + 34 * + ( 97 / - 93 ) AS col0 FROM tab1
----
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8718
SELECT DISTINCT - col2 + + ( CAST( NULL AS SIGNED ) ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8718
SELECT DISTINCT - col2 + + ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE - col1 <= ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 * - col1 + - col1 AS col1 FROM tab1
----
-210
-2256
-30

query I rowsort
SELECT + col0 AS col1 FROM tab2 WHERE NOT ( NULL ) IN ( - ( - col1 ) )
----

query III rowsort
SELECT * FROM tab1 WHERE - 10 < + col0 / 39
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8723
SELECT DISTINCT COUNT( * ) + - COUNT( * ) * - SUM( ALL col1 ) col0 FROM tab2
----
588

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8723
SELECT DISTINCT COUNT ( * ) + - COUNT ( * ) * - SUM ( ALL col1 ) col0 FROM tab2
----
588

query I rowsort
SELECT ALL col0 + + 83 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8725
SELECT COUNT( * ) + - 36 * + 17 FROM tab0 AS cor0
----
-609

skipif mysql # not compatible
query I rowsort label-8725
SELECT COUNT ( * ) + - 36 * + 17 FROM tab0 AS cor0
----
-609

onlyif mysql # aggregate syntax: 
query I rowsort label-8726
SELECT - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8726
SELECT - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE col1 IS NULL
----
0

query I rowsort
SELECT ALL - col2 + + col2 * col0 AS col2 FROM tab1 AS cor0
----
4800
4956
6120

query I rowsort
SELECT + 54 + col1 AS col2 FROM tab2 AS cor0
----
105
121
131

query I rowsort
SELECT + 28 + col1 AS col2 FROM tab1 AS cor0 WHERE ( col1 ) = - 12 * - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8730
SELECT DISTINCT - 87 + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-8730
SELECT DISTINCT - 87 + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-84

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) BETWEEN ( col1 ) AND ( + ( col2 ) )
----

query I rowsort
SELECT DISTINCT 94 * col2 AS col1 FROM tab0
----
4418
9306
940

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 2 * - col0 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8734
SELECT - CAST( NULL AS SIGNED ) * col2 - - col2 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8734
SELECT - CAST ( NULL AS INTEGER ) * col2 - - col2 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col1 * - col2 + 0 AS col0 FROM tab2 AS cor0
----
1173
3080
3886

query I rowsort
SELECT ALL + 13 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 + ( 59 ) = + 36
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8738
SELECT DISTINCT CAST( col2 AS SIGNED ) + col0 FROM tab0 cor0
----
196
62
97

skipif mysql # not compatible
query I rowsort label-8738
SELECT DISTINCT CAST ( col2 AS INTEGER ) + col0 FROM tab0 cor0
----
196
62
97

query I rowsort
SELECT 9 + - 1 FROM tab1 AS cor0
----
8
8
8

onlyif mysql # aggregate syntax: 
query I rowsort label-8740
SELECT ( - ( - COUNT( * ) ) ) FROM tab1 AS cor0 WHERE ( - col0 ) BETWEEN ( NULL ) AND + ( - 31 )
----
0

skipif mysql # not compatible
query I rowsort label-8740
SELECT ( - ( - COUNT ( * ) ) ) FROM tab1 AS cor0 WHERE ( - col0 ) BETWEEN ( NULL ) AND + ( - 31 )
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col2 + 84 * 61 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 / col1 = NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE 78 >= NULL
----

query I rowsort
SELECT - col0 AS col2 FROM tab2 cor0 WHERE 79 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8745
SELECT 7 + COUNT( * ) - + 83 AS col1 FROM tab1
----
-73

skipif mysql # not compatible
query I rowsort label-8745
SELECT 7 + COUNT ( * ) - + 83 AS col1 FROM tab1
----
-73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8746
SELECT ALL - 81 DIV MIN( ALL col0 ) FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-8746
SELECT ALL - 81 / MIN ( ALL col0 ) FROM tab2
----
-1

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 > ( col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8748
SELECT ALL * FROM tab1 WHERE - CAST( + col1 AS SIGNED ) <= 92 * 20 - - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8748
SELECT ALL * FROM tab1 WHERE - CAST ( + col1 AS INTEGER ) <= 92 * 20 - - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 95 FROM tab0 WHERE NOT NULL IS NOT NULL
----
95
95
95

onlyif mysql # aggregate syntax: 
query I rowsort label-8750
SELECT DISTINCT + 13 * COUNT( * ) FROM tab1
----
39

skipif mysql # not compatible
query I rowsort label-8750
SELECT DISTINCT + 13 * COUNT ( * ) FROM tab1
----
39

query I rowsort
SELECT col0 * - - col2 AS col1 FROM tab2
----
1058
2560
4350

query III rowsort
SELECT ALL * FROM tab1 WHERE ( col0 - + col0 ) IN ( + col1 - - col0 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 + col1 IN ( col1 - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8754
SELECT ALL + SUM( DISTINCT CAST( col1 AS SIGNED ) ) FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-8754
SELECT ALL + SUM ( DISTINCT CAST ( col1 AS INTEGER ) ) FROM tab0
----
103

query I rowsort
SELECT + col2 FROM tab2 WHERE NOT col2 / - 38 IS NULL
----
23
40
58

query I rowsort
SELECT DISTINCT - - col0 * + col1 + 60 * col0 FROM tab1 cor0
----
3774
5525
9737

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8757
SELECT - - CAST( + MIN( DISTINCT + col0 ) AS SIGNED ) * SUM( + col0 + col0 ) FROM tab2 AS cor0
----
17020

skipif mysql # not compatible
query I rowsort label-8757
SELECT - - CAST ( + MIN ( DISTINCT + col0 ) AS INTEGER ) * SUM ( + col0 + col0 ) FROM tab2 AS cor0
----
17020

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8758
SELECT ALL - 11 AS col2 FROM tab0 AS cor0 WHERE NOT + 89 - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-8758
SELECT ALL - 11 AS col2 FROM tab0 AS cor0 WHERE NOT + 89 - CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT DISTINCT 13 * + col2 FROM tab0 AS cor0
----
1287
130
611

query I rowsort
SELECT DISTINCT col1 * - 94 * 0 AS col1 FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8761
SELECT ALL - + 22 DIV 34 * - col0 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8761
SELECT ALL - + 22 / 34 * - col0 AS col0 FROM tab0 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 98 IS NOT NULL AND - col2 BETWEEN + col2 + + col0 AND NULL
----

query I rowsort
SELECT ALL 16 * col0 AS col2 FROM tab1 AS cor0 WHERE + 94 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 BETWEEN NULL AND - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-8765
SELECT DISTINCT 71 DIV + - col2 AS col2 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-8765
SELECT DISTINCT 71 / + - col2 AS col2 FROM tab1 AS cor0
----
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8766
SELECT DISTINCT + ( CAST( 9 AS SIGNED ) ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE - 59 * + 93 IS NULL
----

skipif mysql # not compatible
query I rowsort label-8766
SELECT DISTINCT + ( CAST ( 9 AS INTEGER ) ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE - 59 * + 93 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8767
SELECT DISTINCT - 58 DIV - col0 AS col0 FROM tab0
----
0
3

skipif mysql # not compatible
query I rowsort label-8767
SELECT DISTINCT - 58 / - col0 AS col0 FROM tab0
----
0
3

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT + 28 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8769
SELECT DISTINCT - COUNT( * ) AS col2, + 21 * + COUNT( * ) AS col2 FROM tab1
----
-3
63

skipif mysql # not compatible
query II rowsort label-8769
SELECT DISTINCT - COUNT ( * ) AS col2, + 21 * + COUNT ( * ) AS col2 FROM tab1
----
-3
63

query I rowsort
SELECT - 99 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 64d06513850a26495bc6c2fddeb254b7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 NOT BETWEEN + - col1 + - col0 AND ( + 51 - - col0 )
----
87
21
10
97
1
99

query I rowsort
SELECT - 12 + + - col0 FROM tab1 cor0
----
-103
-63
-97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 NOT BETWEEN - col2 * - 5 AND - 33
----

query I rowsort
SELECT - 16 + - + 46 AS col0 FROM tab0 AS cor0
----
-62
-62
-62

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT col0 * - + 73 <= - col2 * 69
----
15
81
47

query I rowsort
SELECT - 98 * 18 FROM tab0
----
-1764
-1764
-1764

onlyif mysql # DIV for integer division: 
query I rowsort label-8777
SELECT DISTINCT col1 DIV col0 * + 14 FROM tab2
----
0
14

skipif mysql # not compatible
query I rowsort label-8777
SELECT DISTINCT col1 / col0 * + 14 FROM tab2
----
0
14

query I rowsort
SELECT - 16 * 37 * col0 FROM tab0
----
-51504
-57424
-8880

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8779
SELECT ALL CAST( - MIN( ALL - col1 ) AS SIGNED ) AS col2 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-8779
SELECT ALL CAST ( - MIN ( ALL - col1 ) AS INTEGER ) AS col2 FROM tab1
----
47

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL >= + ( + + col2 )
----

query I rowsort
SELECT col0 AS col1 FROM tab2 WHERE + col2 * + + col2 + col0 * 84 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 39 * + + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8783
SELECT ALL CAST( NULL AS SIGNED ) + - ( + CAST( - 25 AS SIGNED ) ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8783
SELECT ALL CAST ( NULL AS INTEGER ) + - ( + CAST ( - 25 AS INTEGER ) ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8784
SELECT - col0 * - CAST( NULL AS SIGNED ) AS col0, 62 FROM tab1
----
NULL
62
NULL
62
NULL
62

skipif mysql # not compatible
query II rowsort label-8784
SELECT - col0 * - CAST ( NULL AS INTEGER ) AS col0, 62 FROM tab1
----
NULL
62
NULL
62
NULL
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8785
SELECT ALL col2 + - col2 + + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8785
SELECT ALL col2 + - col2 + + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8786
SELECT - CAST( - 38 AS SIGNED ) AS col0 FROM tab2
----
38
38
38

skipif mysql # not compatible
query I rowsort label-8786
SELECT - CAST ( - 38 AS INTEGER ) AS col0 FROM tab2
----
38
38
38

query I rowsort
SELECT DISTINCT 3 + - - 11 * + + col2 AS col1 FROM tab1
----
1059
652
751

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab0 AS cor0 WHERE 99 >= - - ( - 28 ) + - col2
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8789
SELECT - CAST( - 25 AS SIGNED ) + - 86 - + col1 AS col2 FROM tab0 AS cor0
----
-142
-62
-82

skipif mysql # not compatible
query I rowsort label-8789
SELECT - CAST ( - 25 AS INTEGER ) + - 86 - + col1 AS col2 FROM tab0 AS cor0
----
-142
-62
-82

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8790
SELECT * FROM tab1 AS cor0 WHERE ( + CAST( NULL AS SIGNED ) ) IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8790
SELECT * FROM tab1 AS cor0 WHERE ( + CAST ( NULL AS INTEGER ) ) IN ( CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE ( NULL NOT BETWEEN col0 * col0 AND ( NULL ) )
----

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE NOT + col0 * - col0 = + col1 / - col2 - - col2
----
51
85
91

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( - col1 + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8794
SELECT COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE - 92 * 3 IN ( - - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-8794
SELECT COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE - 92 * 3 IN ( - - col0 )
----
0

query I rowsort
SELECT DISTINCT 98 + - col2 FROM tab0 AS cor0
----
-1
51
88

onlyif mysql # aggregate syntax: 
query I rowsort label-8796
SELECT 81 * - + COUNT( * ) FROM tab1 cor0
----
-243

skipif mysql # not compatible
query I rowsort label-8796
SELECT 81 * - + COUNT ( * ) FROM tab1 cor0
----
-243

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL < + 59 * - + col0
----

query I rowsort
SELECT DISTINCT col1 * - col0 AS col1 FROM tab0 AS cor0 WHERE NULL <= - col1
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 1 NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8800
SELECT ALL - - COUNT( * ) * + 90 FROM tab0 AS cor0
----
270

skipif mysql # not compatible
query I rowsort label-8800
SELECT ALL - - COUNT ( * ) * + 90 FROM tab0 AS cor0
----
270

query II rowsort
SELECT DISTINCT col1 * + col2 - - - col0, 80 + 89 AS col2 FROM tab2 AS cor0
----
1127
169
3016
169
3811
169

query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE NOT ( 52 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 8 <> ( + 33 )
----

query I rowsort
SELECT - 61 AS col2 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8805
SELECT - COUNT( * ) * - 1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8805
SELECT - COUNT ( * ) * - 1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL + - 78 AS col1 FROM tab2 AS cor0
----
-78
-78
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-8807
SELECT DISTINCT COUNT( + 94 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8807
SELECT DISTINCT COUNT ( + 94 ) AS col2 FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL - col2 * - + col1 * - col0 * col0 FROM tab2 AS cor0
----
-12615680
-21858750
-2482068

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8809
SELECT * FROM tab0 AS cor0 WHERE NOT col2 * + - col1 + 97 NOT BETWEEN NULL AND NULL OR 36 = CAST( NULL AS SIGNED ) * + col1 - col0
----

skipif mysql # not compatible
query III rowsort label-8809
SELECT * FROM tab0 AS cor0 WHERE NOT col2 * + - col1 + 97 NOT BETWEEN NULL AND NULL OR 36 = CAST ( NULL AS INTEGER ) * + col1 - col0
----

query I rowsort
SELECT DISTINCT 56 + + col0 - + + col2 + + 32 FROM tab2
----
105
111
112

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8811
SELECT CAST( - - col0 AS SIGNED ) col1, CAST( + 91 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
46
91
64
91
75
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8811
SELECT CAST ( - - col0 AS INTEGER ) col1, CAST ( + 91 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
46
91
64
91
75
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 7 + + col0 + + - col1 * + - 14 col1 FROM tab1 AS cor0
----
148
240
742

onlyif mysql # DIV for integer division: 
query II rowsort label-8813
SELECT DISTINCT col1 DIV col2 - - + 18 AS col2, col1 FROM tab0 AS cor0
----
18
1
19
81
20
21

skipif mysql # not compatible
query II rowsort label-8813
SELECT DISTINCT col1 / col2 - - + 18 AS col2, col1 FROM tab0 AS cor0
----
18
1
19
81
20
21

onlyif mysql # aggregate syntax: 
query I rowsort label-8814
SELECT ALL - COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( ( ( NULL ) <> + col0 ) )
----
0

skipif mysql # not compatible
query I rowsort label-8814
SELECT ALL - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( ( ( NULL ) <> + col0 ) )
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 46 * - col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8816
SELECT ALL 82 + + CAST( - + col2 AS SIGNED ) AS col1 FROM tab1 cor0 WHERE ( NULL IS NOT NULL )
----

skipif mysql # not compatible
query I rowsort label-8816
SELECT ALL 82 + + CAST ( - + col2 AS INTEGER ) AS col1 FROM tab1 cor0 WHERE ( NULL IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8817
SELECT DISTINCT COUNT( ALL - + 94 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8817
SELECT DISTINCT COUNT ( ALL - + 94 ) FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8818
SELECT ALL 37 AS col1 FROM tab0 WHERE NOT - - col1 + 36 + - col0 + - col2 NOT BETWEEN CAST( NULL AS SIGNED ) AND + - 96 * 98
----

skipif mysql # not compatible
query I rowsort label-8818
SELECT ALL 37 AS col1 FROM tab0 WHERE NOT - - col1 + 36 + - col0 + - col2 NOT BETWEEN CAST ( NULL AS INTEGER ) AND + - 96 * 98
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8819
SELECT DISTINCT - 11, CAST( + + col0 AS SIGNED ) * - col1 AS col0 FROM tab2
----
-11
-2346
-11
-4928
-11
-5025

skipif mysql # not compatible
query II rowsort label-8819
SELECT DISTINCT - 11, CAST ( + + col0 AS INTEGER ) * - col1 AS col0 FROM tab2
----
-11
-2346
-11
-4928
-11
-5025

query I rowsort
SELECT DISTINCT + 14 * - col0 * - col1 AS col2 FROM tab1
----
5950
59878
9996

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL <= - - col0 + 92 / - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8822
SELECT + 32 + + + 87 + COUNT( * ) AS col1 FROM tab1
----
122

skipif mysql # not compatible
query I rowsort label-8822
SELECT + 32 + + + 87 + COUNT ( * ) AS col1 FROM tab1
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-8823
SELECT + COUNT( * ) + ( + ( + - COUNT( * ) ) ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8823
SELECT + COUNT ( * ) + ( + ( + - COUNT ( * ) ) ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT - - col1 - col0 FROM tab1 AS cor0
----
-37
-44
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-8825
SELECT + 49 DIV + 88 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8825
SELECT + 49 / + 88 AS col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8826
SELECT - + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE col1 * + 8 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8826
SELECT - + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE col1 * + 8 IS NOT NULL
----
-3

query I rowsort
SELECT ALL + col2 AS col0 FROM tab2 AS cor0 WHERE NOT + 13 * 78 IS NOT NULL
----

query I rowsort
SELECT 61 - - + col2 * - + 64 AS col2 FROM tab1
----
-3715
-4291
-6083

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8829
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE NOT 53 * CAST( NULL AS DECIMAL ) NOT BETWEEN NULL AND + + col2
----

skipif mysql # not compatible
query I rowsort label-8829
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE NOT 53 * CAST ( NULL AS REAL ) NOT BETWEEN NULL AND + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8830
SELECT DISTINCT + - COUNT( ALL 96 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8830
SELECT DISTINCT + - COUNT ( ALL 96 ) FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-8831
SELECT - MIN( ALL col0 ) AS col1, 55 AS col0 FROM tab0 AS cor0
----
-15
55

skipif mysql # not compatible
query II rowsort label-8831
SELECT - MIN ( ALL col0 ) AS col1, 55 AS col0 FROM tab0 AS cor0
----
-15
55

onlyif mysql # aggregate syntax: 
query II rowsort label-8832
SELECT + + COUNT( * ), - COUNT( * ) AS col2 FROM tab1 cor0 WHERE NOT col2 * - - col2 IS NULL
----
3
-3

skipif mysql # not compatible
query II rowsort label-8832
SELECT + + COUNT ( * ), - COUNT ( * ) AS col2 FROM tab1 cor0 WHERE NOT col2 * - - col2 IS NULL
----
3
-3

query I rowsort
SELECT + col0 * + col1 AS col2 FROM tab1 WHERE NOT 73 * 4 IS NOT NULL
----

query I rowsort
SELECT - ( + 59 ) FROM tab1
----
-59
-59
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-8835
SELECT + 38 col1, - COUNT( * ) FROM tab0
----
38
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8835
SELECT + 38 col1, - COUNT ( * ) FROM tab0
----
38
-3

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab1 WHERE NULL > + + 20
----

query I rowsort
SELECT DISTINCT col2 + ( + col0 ) AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + 18 FROM tab2 WHERE - - col1 * + + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8839
SELECT - 27 * - - MIN( DISTINCT 9 ) FROM tab2 AS cor0
----
-243

skipif mysql # not compatible
query I rowsort label-8839
SELECT - 27 * - - MIN ( DISTINCT 9 ) FROM tab2 AS cor0
----
-243

query II rowsort
SELECT DISTINCT - 46 * + col1 + - 57 + + - col2 AS col0, 59 * 39 AS col1 FROM tab1 AS cor0
----
-2287
2301
-346
2301
-797
2301

onlyif mysql # aggregate syntax: 
query I rowsort label-8841
SELECT DISTINCT MAX( + 48 ) + 26 FROM tab1 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-8841
SELECT DISTINCT MAX ( + 48 ) + 26 FROM tab1 AS cor0
----
74

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( 95 ) * - 43 = col0 * 98
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8843
SELECT DISTINCT + MAX( - col0 ) AS col2 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-8843
SELECT DISTINCT + MAX ( - col0 ) AS col2 FROM tab2 AS cor0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-8844
SELECT - - MIN( + + 66 ) AS col0 FROM tab0 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-8844
SELECT - - MIN ( + + 66 ) AS col0 FROM tab0 AS cor0
----
66

query I rowsort
SELECT - 93 AS col0 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col2 FROM tab2 AS cor0 WHERE 11 = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8847
SELECT DISTINCT + COUNT( * ) * - CAST( NULL AS SIGNED ) col0 FROM tab1 cor0 WHERE NOT NULL <= 24 + - 7
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8847
SELECT DISTINCT + COUNT ( * ) * - CAST ( NULL AS INTEGER ) col0 FROM tab1 cor0 WHERE NOT NULL <= 24 + - 7
----
NULL

query I rowsort
SELECT ALL + col2 * - ( - col1 ) AS col0 FROM tab1
----
1344
295
3196

query I rowsort
SELECT ALL ( - 69 ) * - col1 + col2 AS col2 FROM tab0
----
1459
168
5636

query I rowsort
SELECT ( col2 ) * + 84 AS col2 FROM tab1
----
4956
5712
8064

query I rowsort
SELECT ALL - col0 * + col2 * - col1 * - 93 FROM tab1 WHERE ( + 42 ) BETWEEN + col2 AND col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8852
SELECT DISTINCT col1 - col2 * - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8852
SELECT DISTINCT col1 - col2 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + col0 + + - col0 * + col0 AS col2 FROM tab2
----
-2070
-4032
-5550

query I rowsort
SELECT - 56 * 80 FROM tab0
----
-4480
-4480
-4480

onlyif mysql # aggregate syntax: 
query I rowsort label-8855
SELECT DISTINCT + COUNT( DISTINCT - 45 ) AS col0 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8855
SELECT DISTINCT + COUNT ( DISTINCT - 45 ) AS col0 FROM tab1 AS cor0
----
1

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col2 + + col2 + 30 + - - col0 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8857
SELECT DISTINCT MAX( DISTINCT - + 1 ) AS col2 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8857
SELECT DISTINCT MAX ( DISTINCT - + 1 ) AS col2 FROM tab1 AS cor0
----
-1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IN ( + col1, col0, + - col0 * - 96 - col2 * col0 - 57, + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8859
SELECT - + 90 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8859
SELECT - + 90 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8860
SELECT ALL + MAX( ALL + col1 ) AS col2 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-8860
SELECT ALL + MAX ( ALL + col1 ) AS col2 FROM tab0 AS cor0
----
81

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL IN ( + col2, + col1 + + + col2 - + 14 + col2 )
----

query I rowsort
SELECT - + ( 51 ) AS col1 FROM tab0 AS cor0
----
-51
-51
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-8863
SELECT MAX( DISTINCT - col2 ) FROM tab2 cor0
----
-23

skipif mysql # not compatible
query I rowsort label-8863
SELECT MAX ( DISTINCT - col2 ) FROM tab2 cor0
----
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-8864
SELECT DISTINCT + COUNT( * ) AS col1, - MIN( - + col0 ) * + COUNT( * ) col0 FROM tab0 AS cor0
----
3
291

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8864
SELECT DISTINCT + COUNT ( * ) AS col1, - MIN ( - + col0 ) * + COUNT ( * ) col0 FROM tab0 AS cor0
----
3
291

query I rowsort
SELECT + col2 * - col0 AS col0 FROM tab0 cor0 WHERE NOT - col0 >= NULL
----

query I rowsort
SELECT DISTINCT - col1 + - - col0 AS col1 FROM tab0 WHERE - 60 NOT IN ( + + 23 - col2 * + col2 * - - ( + - col2 ) + + 47 )
----
-66
66
96

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL IN ( - col2, 29 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8868
SELECT DISTINCT - COUNT( * ) * - COUNT( * ) FROM tab2 WHERE ( NULL ) = - 16 + + col1 + col0
----
0

skipif mysql # not compatible
query I rowsort label-8868
SELECT DISTINCT - COUNT ( * ) * - COUNT ( * ) FROM tab2 WHERE ( NULL ) = - 16 + + col1 + col0
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN + + col2 AND + col2 + - 89
----

query I rowsort
SELECT ALL 71 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
71
71
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8871
SELECT - + CAST( col1 AS SIGNED ) * + ( col2 ) + - col2 + + 71 AS col0 FROM tab1 AS cor0
----
-1369
-283
-3193

skipif mysql # not compatible
query I rowsort label-8871
SELECT - + CAST ( col1 AS INTEGER ) * + ( col2 ) + - col2 + + 71 AS col0 FROM tab1 AS cor0
----
-1369
-283
-3193

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8872
SELECT - 98 + + ( - MAX( + CAST( - 40 AS SIGNED ) ) ) FROM tab1 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-8872
SELECT - 98 + + ( - MAX ( + CAST ( - 40 AS INTEGER ) ) ) FROM tab1 AS cor0
----
-58

query I rowsort
SELECT ALL 1 * - 59 AS col0 FROM tab2
----
-59
-59
-59

query I rowsort
SELECT DISTINCT 20 * + col2 FROM tab1
----
1180
1360
1920

query I rowsort
SELECT ALL + - ( + col0 ) + - col2 * + - col1 AS col2 FROM tab1 AS cor0
----
1293
210
3105

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8876
SELECT DISTINCT CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) + + 31 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8876
SELECT DISTINCT CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) + + 31 AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8877
SELECT - 54 DIV - col2 + - + 33 FROM tab2 AS cor0
----
-31
-32
-33

skipif mysql # not compatible
query I rowsort label-8877
SELECT - 54 / - col2 + - + 33 FROM tab2 AS cor0
----
-31
-32
-33

query I rowsort
SELECT + ( 75 ) AS col1 FROM tab0 AS cor0
----
75
75
75

query I rowsort
SELECT + ( + 41 ) AS col0 FROM tab1 AS cor0
----
41
41
41

query I rowsort
SELECT ALL + - col0 * - - col2 + - + 16 + - 14 * + 60 + - - col2 + - - col1 * - 0 + + col2 FROM tab2 AS cor0
----
-1868
-3336
-5090

onlyif mysql # aggregate syntax: 
query I rowsort label-8881
SELECT DISTINCT COUNT( * ) + - - 3 + - 1 FROM tab2 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-8881
SELECT DISTINCT COUNT ( * ) + - - 3 + - 1 FROM tab2 AS cor0
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8882
SELECT + CAST( - 55 AS SIGNED ) + + MAX( DISTINCT - col2 ) AS col0 FROM tab1 AS cor0
----
-114

skipif mysql # not compatible
query I rowsort label-8882
SELECT + CAST ( - 55 AS INTEGER ) + + MAX ( DISTINCT - col2 ) AS col0 FROM tab1 AS cor0
----
-114

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 86 * + 78 BETWEEN + col0 AND + col0 OR NOT - + 8 * + - col1 NOT BETWEEN - - col1 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8884
SELECT DISTINCT - col0 FROM tab2 WHERE NULL IN ( - CAST( NULL AS SIGNED ) ) AND NOT col1 * - 49 - + col1 - + 96 IS NULL
----

skipif mysql # not compatible
query I rowsort label-8884
SELECT DISTINCT - col0 FROM tab2 WHERE NULL IN ( - CAST ( NULL AS INTEGER ) ) AND NOT col1 * - 49 - + col1 - + 96 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8885
SELECT ALL - COUNT( * ) - + 1 FROM tab2
----
-4

skipif mysql # not compatible
query I rowsort label-8885
SELECT ALL - COUNT ( * ) - + 1 FROM tab2
----
-4

query I rowsort
SELECT ( - col0 ) * + col0 + + 6 FROM tab1
----
-2595
-7219
-8275

onlyif mysql # aggregate syntax: 
query I rowsort label-8887
SELECT MAX( + col0 ) * - COUNT( * ) FROM tab1
----
-273

skipif mysql # not compatible
query I rowsort label-8887
SELECT MAX ( + col0 ) * - COUNT ( * ) FROM tab1
----
-273

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2, 61 col0 FROM tab0 WHERE NOT + 40 IS NULL
----
10
61
47
61
99
61

query II rowsort
SELECT - ( + + 38 ), + col2 FROM tab0
----
-38
10
-38
47
-38
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2, + col0 * - 21 col0 FROM tab2
----
23
-966
40
-1344
58
-1575

query I rowsort
SELECT - 34 * + + col1 AS col0 FROM tab2 AS cor0
----
-1734
-2278
-2618

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 17 * col1 BETWEEN NULL AND - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8893
SELECT ALL CAST( NULL AS SIGNED ) + col2 * - col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8893
SELECT ALL CAST ( NULL AS INTEGER ) + col2 * - col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8894
SELECT DISTINCT + SUM( ALL + col2 ) FROM tab0 AS cor0 WHERE col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8894
SELECT DISTINCT + SUM ( ALL + col2 ) FROM tab0 AS cor0 WHERE col2 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8895
SELECT + - COUNT( * ) + - COUNT( - 24 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-18

skipif mysql # not compatible
query I rowsort label-8895
SELECT + - COUNT ( * ) + - COUNT ( - 24 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-18

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT - 4 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8897
SELECT DISTINCT + 87 DIV - COUNT( * ) AS col0 FROM tab2
----
-29

skipif mysql # not compatible
query I rowsort label-8897
SELECT DISTINCT + 87 / - COUNT ( * ) AS col0 FROM tab2
----
-29

query II rowsort
SELECT 84 * - col1, col1 * + col0 AS col0 FROM tab0
----
-1764
1827
-6804
1215
-84
97

query I rowsort
SELECT DISTINCT - 78 AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-78

query I rowsort
SELECT + col0 AS col2 FROM tab1 AS cor0 WHERE NOT - col2 IS NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8901
SELECT - COUNT( * ) * - SUM( ALL - 82 ) AS col2 FROM tab2 AS cor0
----
-738

skipif mysql # not compatible
query I rowsort label-8901
SELECT - COUNT ( * ) * - SUM ( ALL - 82 ) AS col2 FROM tab2 AS cor0
----
-738

onlyif mysql # aggregate syntax: 
query II rowsort label-8902
SELECT ALL + - 43, + MAX( - - col1 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col0 AND NULL
----
-43
NULL

skipif mysql # not compatible
query II rowsort label-8902
SELECT ALL + - 43, + MAX ( - - col1 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col0 AND NULL
----
-43
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT NULL BETWEEN ( NULL ) AND + ( - - 62 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + - col1 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 21 NOT BETWEEN - - 75 * col0 + - 57 AND NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 34 / col0 + + + 60 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8907
SELECT COUNT( - + ( - col2 ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8907
SELECT COUNT ( - + ( - col2 ) ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT + 61 * + - col1 FROM tab2 AS cor0 WHERE NOT ( - col2 + col1 + + col0 ) IS NULL
----
-3111
-4087
-4697

onlyif mysql # aggregate syntax: 
query I rowsort label-8909
SELECT DISTINCT + MIN( - 29 ) FROM tab2
----
-29

skipif mysql # not compatible
query I rowsort label-8909
SELECT DISTINCT + MIN ( - 29 ) FROM tab2
----
-29

query III rowsort
SELECT * FROM tab2 WHERE NOT + + 55 + + 30 * + + 15 > NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query IIIIII rowsort label-8911
SELECT * FROM tab2, tab0 AS cor0 WHERE - 39 + + 25 - - ( - - CAST( 96 AS DECIMAL ) ) / + 23 * + + 89 IS NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-8911
SELECT * FROM tab2, tab0 AS cor0 WHERE - 39 + + 25 - - ( - - CAST ( 96 AS REAL ) ) / + 23 * + + 89 IS NULL
----

query II rowsort
SELECT DISTINCT - 89 * 53 + + - 33 AS col0, 62 FROM tab2
----
-4750
62

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL < 62
----

query I rowsort
SELECT + - col2 * - 95 AS col2 FROM tab1 AS cor0
----
5605
6460
9120

query I rowsort
SELECT + + 0 * col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - col2 * + 81 - - 79 AS col0 FROM tab2 AS cor0
----
-1784
-3161
-4619

query I rowsort
SELECT DISTINCT + 10 + + col1 FROM tab1 AS cor0
----
15
24
57

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + col0 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8919
SELECT - + ( COUNT( * ) ) FROM tab2 cor0 WHERE ( - col2 ) > NULL
----
0

skipif mysql # not compatible
query I rowsort label-8919
SELECT - + ( COUNT ( * ) ) FROM tab2 cor0 WHERE ( - col2 ) > NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8920
SELECT MAX( - + col2 ) AS col2 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-8920
SELECT MAX ( - + col2 ) AS col2 FROM tab0 AS cor0
----
-10

query I rowsort
SELECT ALL + col2 FROM tab2 AS cor0 WHERE + 27 IS NOT NULL
----
23
40
58

onlyif mysql # DIV for integer division: 
query I rowsort label-8922
SELECT ALL col0 DIV + + 95 + + ( - + 62 ) AS col2 FROM tab0 cor0
----
-61
-62
-62

skipif mysql # not compatible
query I rowsort label-8922
SELECT ALL col0 / + + 95 + + ( - + 62 ) AS col2 FROM tab0 cor0
----
-61
-62
-62

query I rowsort
SELECT DISTINCT + - 0 * 38 * + col2 - - 7 * + col0 * + col1 FROM tab2 AS cor0
----
16422
34496
35175

onlyif mysql # aggregate syntax: 
query I rowsort label-8924
SELECT COUNT( ALL + 33 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8924
SELECT COUNT ( ALL + 33 ) FROM tab0 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 + 29 AS col0, - col2 - - + 95 col0 FROM tab2 AS cor0
----
52
72
69
55
87
37

query I rowsort
SELECT ALL - 21 * 12 * - 39 * col2 FROM tab1 AS cor0
----
579852
668304
943488

query I rowsort
SELECT DISTINCT 17 - ( - col2 ) FROM tab2 AS cor0
----
40
57
75

query I rowsort
SELECT ALL + - col1 - - - col1 AS col2 FROM tab1 AS cor0
----
-10
-28
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-8929
SELECT + MAX( - - ( - + col1 ) ) - - MIN( + col2 ) + - 4 * - COUNT( * ) FROM tab0
----
21

skipif mysql # not compatible
query I rowsort label-8929
SELECT + MAX ( - - ( - + col1 ) ) - - MIN ( + col2 ) + - 4 * - COUNT ( * ) FROM tab0
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8930
SELECT DISTINCT CAST( NULL AS SIGNED ) - - + col2 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8930
SELECT DISTINCT CAST ( NULL AS INTEGER ) - - + col2 AS col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8931
SELECT ALL + MIN( ALL + - 32 ) AS col1 FROM tab2 AS cor0
----
-32

skipif mysql # not compatible
query I rowsort label-8931
SELECT ALL + MIN ( ALL + - 32 ) AS col1 FROM tab2 AS cor0
----
-32

query I rowsort
SELECT DISTINCT - col1 * - 54 AS col0 FROM tab1 AS cor0
----
2538
270
756

onlyif mysql # aggregate syntax: 
query II rowsort label-8933
SELECT DISTINCT + COUNT( * ) col0, 26 FROM tab1 AS cor0
----
3
26

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8933
SELECT DISTINCT + COUNT ( * ) col0, 26 FROM tab1 AS cor0
----
3
26

query II rowsort
SELECT + + col0, 65 FROM tab0 AS cor0
----
15
65
87
65
97
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0, - col1 * - - 57 col2 FROM tab1
----
-51
-798
-85
-285
-91
-2679

query I rowsort
SELECT DISTINCT + 58 FROM tab0, tab2 AS cor0
----
58

query II rowsort
SELECT - col0 AS col0, 38 FROM tab1 AS cor0
----
-51
38
-85
38
-91
38

onlyif mysql # aggregate syntax: 
query I rowsort label-8938
SELECT DISTINCT 28 * COUNT( * ) AS col2 FROM tab2 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-8938
SELECT DISTINCT 28 * COUNT ( * ) AS col2 FROM tab2 AS cor0
----
84

onlyif mysql # DIV for integer division: 
query II rowsort label-8939
SELECT ALL + + ( col2 ) * + 35 * 91 AS col2, + col1 DIV - + col2 FROM tab0 AS cor0
----
149695
-1
315315
0
31850
-2

skipif mysql # not compatible
query II rowsort label-8939
SELECT ALL + + ( col2 ) * + 35 * 91 AS col2, + col1 / - + col2 FROM tab0 AS cor0
----
149695
-1
315315
0
31850
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8940
SELECT DISTINCT - 67 * + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
201

skipif mysql # not compatible
query I rowsort label-8940
SELECT DISTINCT - 67 * + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
201

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 84 * - - col1 col0 FROM tab1 AS cor0
----
1176
3948
420

query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE NOT - col2 + 73 IS NOT NULL
----

query II rowsort
SELECT ALL col0 * col2, + col2 AS col2 FROM tab2
----
1058
23
2560
40
4350
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8944
SELECT ALL - MIN( DISTINCT + - col1 ) AS col1 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-8944
SELECT ALL - MIN ( DISTINCT + - col1 ) AS col1 FROM tab1
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8945
SELECT - SUM( DISTINCT col1 ) * 90 + + CAST( NULL AS SIGNED ) + - - MAX( + - col2 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8945
SELECT - SUM ( DISTINCT col1 ) * 90 + + CAST ( NULL AS INTEGER ) + - - MAX ( + - col2 ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - col1 + - 75 FROM tab1 cor0
----
-122
-80
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-8947
SELECT ALL 60 DIV + col0 AS col2 FROM tab2 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8947
SELECT ALL 60 / + col0 AS col2 FROM tab2 cor0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8948
SELECT DISTINCT COUNT( DISTINCT + - col0 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8948
SELECT DISTINCT COUNT ( DISTINCT + - col0 ) AS col2 FROM tab2
----
3

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT 33 IS NOT NULL
----

query I rowsort
SELECT ALL col2 / - col2 * - + 31 - - - 7 + - col2 * + 26 AS col0 FROM tab2 cor0 WHERE NULL IS NULL AND NOT + 85 / - col1 >= - col2 - - - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 + - col1 col0 FROM tab2 AS cor0
----
-102
-134
-154

query I rowsort
SELECT + 0 + col2 FROM tab2 AS cor0
----
23
40
58

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 + - col2 < col1 + - - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8954
SELECT + + COUNT( + + CAST( - 31 AS SIGNED ) ) * COUNT( * ) - - ( - + 7 ) + SUM( + col2 ) + 14 AS col2 FROM tab2 AS cor0
----
137

skipif mysql # not compatible
query I rowsort label-8954
SELECT + + COUNT ( + + CAST ( - 31 AS INTEGER ) ) * COUNT ( * ) - - ( - + 7 ) + SUM ( + col2 ) + 14 AS col2 FROM tab2 AS cor0
----
137

query I rowsort
SELECT + 8 + - - 58 FROM tab0 AS cor0
----
66
66
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8956
SELECT DISTINCT - + 60 + + - COUNT( * ) DIV + + COUNT( * ) FROM tab0 AS cor0
----
-61

skipif mysql # not compatible
query I rowsort label-8956
SELECT DISTINCT - + 60 + + - COUNT ( * ) / + + COUNT ( * ) FROM tab0 AS cor0
----
-61

onlyif mysql # DIV for integer division: 
query I rowsort label-8957
SELECT ALL + + 12 + + + 6 * col0 DIV ( + col2 ) * ( - 14 ) - - col2 col0 FROM tab0 AS cor0
----
-706
41
45

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8957
SELECT ALL + + 12 + + + 6 * col0 / ( + col2 ) * ( - 14 ) - - col2 col0 FROM tab0 AS cor0
----
-706
41
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8958
SELECT DISTINCT - CAST( NULL AS SIGNED ) - 88 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8958
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - 88 FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT ALL + 20, + col0 AS col0 FROM tab1 WHERE + + col0 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT IN ( - + 69, - ( + 44 ) + + + col0 + col0 / - col1 + + col1 * + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( + col0 ) AS col0, + col1 col2 FROM tab2
----
46
51
64
77
75
67

onlyif mysql # aggregate syntax: 
query I rowsort label-8962
SELECT - ( + + COUNT( * ) ) * MAX( + + ( + col1 ) ) FROM tab1
----
-141

skipif mysql # not compatible
query I rowsort label-8962
SELECT - ( + + COUNT ( * ) ) * MAX ( + + ( + col1 ) ) FROM tab1
----
-141

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8963
SELECT + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE NOT - col2 * + col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8963
SELECT + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NOT - col2 * + col1 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col1 * - col1 / + col2 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8965
SELECT DISTINCT + + col0 FROM tab0 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) IS NULL OR NOT - col2 >= - col0 * - - ( + 45 )
----

skipif mysql # not compatible
query I rowsort label-8965
SELECT DISTINCT + + col0 FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) IS NULL OR NOT - col2 >= - col0 * - - ( + 45 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT ALL 37 AS col0, - 34 * - col2 col0, + 74 * col0 FROM tab2
----
9 values hashing to fb33bf64ad7969e063a13f2c4fff967f

onlyif mysql # aggregate syntax: 
query I rowsort label-8967
SELECT ALL + COUNT( * ) * - SUM( 14 ) * COUNT( * ) FROM tab2
----
-378

skipif mysql # not compatible
query I rowsort label-8967
SELECT ALL + COUNT ( * ) * - SUM ( 14 ) * COUNT ( * ) FROM tab2
----
-378

query I rowsort
SELECT DISTINCT - 3 * - col1 AS col1 FROM tab1
----
141
15
42

onlyif mysql # aggregate syntax: 
query I rowsort label-8969
SELECT COUNT( * ) * - 7 col2 FROM tab2 AS cor0
----
-21

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8969
SELECT COUNT ( * ) * - 7 col2 FROM tab2 AS cor0
----
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8970
SELECT - + COUNT( * ) * 86 DIV ( - + 91 ) AS col2 FROM tab0 cor0
----
2

skipif mysql # not compatible
query I rowsort label-8970
SELECT - + COUNT ( * ) * 86 / ( - + 91 ) AS col2 FROM tab0 cor0
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8971
SELECT ALL - + CAST( NULL AS SIGNED ) / + col0 * ( 3 ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8971
SELECT ALL - + CAST ( NULL AS INTEGER ) / + col0 * ( 3 ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8972
SELECT DISTINCT + COUNT( * ) + 71 FROM tab1 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-8972
SELECT DISTINCT + COUNT ( * ) + 71 FROM tab1 AS cor0
----
74

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT ( col1 / - col2 IS NULL ) )
----

query I rowsort
SELECT ALL - 96 * + - ( col0 ) AS col2 FROM tab0 cor0
----
1440
8352
9312

query I rowsort
SELECT + ( - - col2 ) + col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + col0 + + 32 AS col1 FROM tab0 AS cor0
----
119
129
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8977
SELECT + + 86 * + COUNT( * ) FROM tab2 AS cor0
----
258

skipif mysql # not compatible
query I rowsort label-8977
SELECT + + 86 * + COUNT ( * ) FROM tab2 AS cor0
----
258

onlyif mysql # aggregate syntax: 
query I rowsort label-8978
SELECT + SUM( 38 ) AS col2 FROM tab0 AS cor0 WHERE NOT 27 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8978
SELECT + SUM ( 38 ) AS col2 FROM tab0 AS cor0 WHERE NOT 27 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8979
SELECT DISTINCT + - MAX( DISTINCT + + 74 ) FROM tab1 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-8979
SELECT DISTINCT + - MAX ( DISTINCT + + 74 ) FROM tab1 AS cor0
----
-74

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8980
SELECT col0 * - CAST( NULL AS SIGNED ), col2 - + col0 + + + 50 AS col0 FROM tab2
----
NULL
26
NULL
27
NULL
33

skipif mysql # not compatible
query II rowsort label-8980
SELECT col0 * - CAST ( NULL AS INTEGER ), col2 - + col0 + + + 50 AS col0 FROM tab2
----
NULL
26
NULL
27
NULL
33

onlyif mysql # DIV for integer division: 
query I rowsort label-8981
SELECT ALL 46 + + + col0 DIV - col1 AS col1 FROM tab2
----
45
46
46

skipif mysql # not compatible
query I rowsort label-8981
SELECT ALL 46 + + + col0 / - col1 AS col1 FROM tab2
----
45
46
46

onlyif mysql # aggregate syntax: 
query I rowsort label-8982
SELECT + COUNT( ALL + 68 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8982
SELECT + COUNT ( ALL + 68 ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8983
SELECT DISTINCT - SUM( ALL - + col1 ) FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-8983
SELECT DISTINCT - SUM ( ALL - + col1 ) FROM tab2
----
195

onlyif mysql # DIV for integer division: 
query III rowsort label-8984
SELECT DISTINCT + 58 + - col1, 23 DIV + col2 AS col2, + col0 AS col0 FROM tab2
----
9 values hashing to 68e20cfefe1b4323ece0e98df9b31ae6

skipif mysql # not compatible
query III rowsort label-8984
SELECT DISTINCT + 58 + - col1, 23 / + col2 AS col2, + col0 AS col0 FROM tab2
----
9 values hashing to 68e20cfefe1b4323ece0e98df9b31ae6

query I rowsort
SELECT 77 * - + col0 + col2 FROM tab2 AS cor0
----
-3519
-4888
-5717

query I rowsort
SELECT ALL - + 70 + + 31 + - col0 AS col0 FROM tab2 AS cor0
----
-103
-114
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-8987
SELECT - + 82 DIV 99 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8987
SELECT - + 82 / 99 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + + col0 - + col1 + + + 90 FROM tab1 AS cor0
----
127
134
170

query I rowsort
SELECT DISTINCT + 12 * 76 + 73 + col1 * + col1 AS col1 FROM tab1 AS cor0
----
1010
1181
3194

query II rowsort
SELECT + + col0 - - col0 AS col1, col1 FROM tab2 AS cor0
----
128
77
150
67
92
51

query II rowsort
SELECT DISTINCT col0 AS col1, + 89 AS col2 FROM tab2
----
46
89
64
89
75
89

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL > - 85 * ( col2 )
----

query I rowsort
SELECT - col0 * + 13 AS col2 FROM tab2
----
-598
-832
-975

onlyif mysql # aggregate syntax: 
query III rowsort label-8994
SELECT DISTINCT - 3, MAX( - col1 ) * - + COUNT( * ) * + MIN( DISTINCT - 58 ) AS col0, - + COUNT( * ) FROM tab2
----
-3
-8874
-3

skipif mysql # not compatible
query III rowsort label-8994
SELECT DISTINCT - 3, MAX ( - col1 ) * - + COUNT ( * ) * + MIN ( DISTINCT - 58 ) AS col0, - + COUNT ( * ) FROM tab2
----
-3
-8874
-3

query III rowsort
SELECT * FROM tab0 WHERE NOT + ( - col1 ) * - 62 BETWEEN - - col2 AND NULL
----
97
1
99

onlyif mysql # DIV for integer division: 
query I rowsort label-8996
SELECT DISTINCT col2 DIV - ( + col2 ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-8996
SELECT DISTINCT col2 / - ( + col2 ) FROM tab0
----
-1

query I rowsort
SELECT ALL + - col1 + 44 * + + col1 + 48 * - 5 AS col2 FROM tab0 WHERE NOT + - 0 * - + col0 IS NULL
----
-197
3243
663

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8998
SELECT + 62 AS col2 FROM tab0 WHERE NOT + ( + CAST( - - col2 AS SIGNED ) ) IS NULL
----
62
62
62

skipif mysql # not compatible
query I rowsort label-8998
SELECT + 62 AS col2 FROM tab0 WHERE NOT + ( + CAST ( - - col2 AS INTEGER ) ) IS NULL
----
62
62
62

onlyif mysql # aggregate syntax: 
query II rowsort label-8999
SELECT ALL + 33 AS col0, - COUNT( * ) FROM tab2 AS cor0
----
33
-3

skipif mysql # not compatible
query II rowsort label-8999
SELECT ALL + 33 AS col0, - COUNT ( * ) FROM tab2 AS cor0
----
33
-3

query I rowsort
SELECT 82 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query II rowsort
SELECT DISTINCT - + col0 AS col2, col1 FROM tab2 AS cor0
----
-46
51
-64
77
-75
67

query II rowsort
SELECT - - col0 AS col2, + 57 * col1 FROM tab1 AS cor0
----
51
798
85
285
91
2679

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9003
SELECT ALL - CAST( + + 87 AS SIGNED ) FROM tab2
----
-87
-87
-87

skipif mysql # not compatible
query I rowsort label-9003
SELECT ALL - CAST ( + + 87 AS INTEGER ) FROM tab2
----
-87
-87
-87

query III rowsort
SELECT * FROM tab0 WHERE NOT + + col1 < - - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col0 + 69 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - 93 * + 12 FROM tab0 AS cor0
----
-1116
-1116
-1116

query I rowsort
SELECT ALL 61 + col1 AS col1 FROM tab2 AS cor0
----
112
128
138

query I rowsort
SELECT + - ( col0 ) * 28 AS col0 FROM tab2 cor0
----
-1288
-1792
-2100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9009
SELECT + - CAST( - + MAX( - - col1 ) AS SIGNED ) FROM tab1 cor0
----
47

skipif mysql # not compatible
query I rowsort label-9009
SELECT + - CAST ( - + MAX ( - - col1 ) AS INTEGER ) FROM tab1 cor0
----
47

onlyif mysql # aggregate syntax: 
query III rowsort label-9010
SELECT + COUNT( * ), 32 - + - 81 AS col2, - - 70 AS col0 FROM tab1 AS cor0 WHERE NOT 72 * col2 * 94 IS NULL
----
3
113
70

skipif mysql # not compatible
query III rowsort label-9010
SELECT + COUNT ( * ), 32 - + - 81 AS col2, - - 70 AS col0 FROM tab1 AS cor0 WHERE NOT 72 * col2 * 94 IS NULL
----
3
113
70

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT ( - - ( + col1 ) ) FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT - 76 AS col0 FROM tab0 WHERE ( NOT NULL IS NOT NULL )
----
-76
-76
-76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 28 col2 FROM tab1, tab2 AS cor0
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

query I rowsort
SELECT - 82 + + col0 AS col0 FROM tab2
----
-18
-36
-7

query I rowsort
SELECT DISTINCT - col0 * - col0 * col2 FROM tab0
----
10575
75690
931491

onlyif mysql # aggregate syntax: 
query II rowsort label-9017
SELECT ALL + 25 AS col1, + COUNT( * ) AS col0 FROM tab2
----
25
3

skipif mysql # not compatible
query II rowsort label-9017
SELECT ALL + 25 AS col1, + COUNT ( * ) AS col0 FROM tab2
----
25
3

query I rowsort
SELECT - col0 * - - ( col0 ) + + col1 AS col1 FROM tab0
----
-144
-7548
-9408

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9019
SELECT DISTINCT CAST( NULL AS SIGNED ) + - - col1 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9019
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - - col1 AS col1 FROM tab1
----
NULL

query I rowsort
SELECT col0 + - 69 * col0 FROM tab1
----
-3468
-5780
-6188

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col2 >= - + 67
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9022
SELECT DISTINCT + col2 AS col0 FROM tab2 AS cor0 WHERE - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9022
SELECT DISTINCT + col2 AS col0 FROM tab2 AS cor0 WHERE - CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT ALL + + 2 * col0 AS col0 FROM tab0 cor0
----
174
194
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9024
SELECT + 66 * - 17 / - 91 + - MAX( ALL - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-9024
SELECT + 66 * - 17 / - 91 + - MAX ( ALL - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
NULL

query I rowsort
SELECT + col2 - - + col0 FROM tab2
----
104
133
69

onlyif mysql # aggregate syntax: 
query I rowsort label-9026
SELECT - COUNT( * ) - 24 AS col1 FROM tab2
----
-27

skipif mysql # not compatible
query I rowsort label-9026
SELECT - COUNT ( * ) - 24 AS col1 FROM tab2
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9027
SELECT - + col2 + + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9027
SELECT - + col2 + + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 60 + ( col1 ) FROM tab0 AS cor0
----
-39
-59
21

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( NOT + 22 <> ( - col2 + col2 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * 6 + - col1 col1 FROM tab1 cor0
----
-320
-515
-593

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 56 col0 FROM tab0 cor0
----
-56

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 / - col1 < NULL
----

query I rowsort
SELECT - col0 FROM tab1 AS cor0 WHERE NOT ( ( NOT ( + 47 ) IS NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9034
SELECT - COUNT( * ) AS col0 FROM tab2 WHERE NOT + col0 >= + col0
----
0

skipif mysql # not compatible
query I rowsort label-9034
SELECT - COUNT ( * ) AS col0 FROM tab2 WHERE NOT + col0 >= + col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9035
SELECT COUNT( DISTINCT + 79 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-9035
SELECT COUNT ( DISTINCT + 79 ) FROM tab1
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9036
SELECT COUNT( DISTINCT + - CAST( NULL AS DECIMAL ) ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9036
SELECT COUNT ( DISTINCT + - CAST ( NULL AS REAL ) ) FROM tab2
----
0

query II rowsort
SELECT - 87 * - col0, col2 AS col0 FROM tab0
----
1305
47
7569
10
8439
99

onlyif mysql # DIV for integer division: 
query I rowsort label-9038
SELECT + - col1 DIV - 64 AS col2 FROM tab2 WHERE NOT + col0 + - 56 + - col0 * - col0 IN ( + - col1, + 19, - col2 DIV - - 96 + - col1, - + ( + col2 ) + col0 )
----
0
1
1

skipif mysql # not compatible
query I rowsort label-9038
SELECT + - col1 / - 64 AS col2 FROM tab2 WHERE NOT + col0 + - 56 + - col0 * - col0 IN ( + - col1, + 19, - col2 / - - 96 + - col1, - + ( + col2 ) + col0 )
----
0
1
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9039
SELECT DISTINCT COUNT( * ) DIV ( 15 ) * COUNT( * ) + + - COUNT( * ) col2 FROM tab1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9039
SELECT DISTINCT COUNT ( * ) / ( 15 ) * COUNT ( * ) + + - COUNT ( * ) col2 FROM tab1
----
-3

query III rowsort
SELECT ALL * FROM tab1 WHERE - - ( 93 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 NOT BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9042
SELECT + col1 DIV - 36 FROM tab0 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-9042
SELECT + col1 / - 36 FROM tab0 AS cor0
----
-2
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9043
SELECT + 10 DIV + 54 - COUNT( * ) DIV - 88 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-9043
SELECT + 10 / + 54 - COUNT ( * ) / - 88 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
0

query I rowsort
SELECT DISTINCT - + 41 FROM tab0 cor0 CROSS JOIN tab1 cor1
----
-41

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 / - 31 IN ( - + col0, col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9046
SELECT 66 / - 36 * - CAST( NULL AS SIGNED ) + + col1 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-9046
SELECT 66 / - 36 * - CAST ( NULL AS INTEGER ) + + col1 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT DISTINCT + col1 AS col1, col2 * + 43 AS col1 FROM tab0 cor0
----
1
4257
21
430
81
2021

query I rowsort
SELECT DISTINCT col0 + + col0 FROM tab2 AS cor0 WHERE NOT - col0 BETWEEN - + col1 AND NULL
----
150

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 11 + + + col2 col2 FROM tab2 AS cor0
----
34
51
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - + 34 col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) > 91
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9052
SELECT - - COUNT( * ) FROM tab1 cor0 WHERE + col0 < + - ( - ( col2 ) ) / + CAST( NULL AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-9052
SELECT - - COUNT ( * ) FROM tab1 cor0 WHERE + col0 < + - ( - ( col2 ) ) / + CAST ( NULL AS INTEGER )
----
0

query I rowsort
SELECT ALL - 72 + + 70 FROM tab1 AS cor0
----
-2
-2
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-9054
SELECT - 23 * + MAX( - ( - + col0 ) ) AS col1, + 63 AS col2 FROM tab2 AS cor0
----
-1725
63

skipif mysql # not compatible
query II rowsort label-9054
SELECT - 23 * + MAX ( - ( - + col0 ) ) AS col1, + 63 AS col2 FROM tab2 AS cor0
----
-1725
63

query III rowsort
SELECT ALL * FROM tab1 WHERE - col2 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9056
SELECT * FROM tab2 WHERE - - col0 IN ( + col0 + - CAST( NULL AS SIGNED ) / - 79 * + col1 / col1 )
----

skipif mysql # not compatible
query III rowsort label-9056
SELECT * FROM tab2 WHERE - - col0 IN ( + col0 + - CAST ( NULL AS INTEGER ) / - 79 * + col1 / col1 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE ( + - col0 ) NOT BETWEEN - col2 AND col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 + - col2 * - col0 AS col2 FROM tab0 cor0
----
752
880
9702

query I rowsort
SELECT ALL col0 * + ( - col2 ) FROM tab0
----
-705
-870
-9603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 78 col1 FROM tab0 AS cor0
----
78

query II rowsort
SELECT ALL + col0 AS col1, col2 + col2 * col1 FROM tab2 AS cor0
----
46
1196
64
3120
75
3944

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 14 * - col0 BETWEEN NULL AND + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9063
SELECT DISTINCT + + MAX( ALL - + 38 ) FROM tab2 cor0
----
-38

skipif mysql # not compatible
query I rowsort label-9063
SELECT DISTINCT + + MAX ( ALL - + 38 ) FROM tab2 cor0
----
-38

query II rowsort
SELECT ALL + col2, 98 * + - col2 + + + 65 FROM tab2 AS cor0
----
23
-2189
40
-3855
58
-5619

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col0 * ( + col2 ) NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT ALL - col1 AS col2 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + col0 * + col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9067
SELECT ALL COUNT( * ) * + MAX( ALL col1 ) * 90 + COUNT( * ) AS col0 FROM tab0 AS cor0
----
21873

skipif mysql # not compatible
query I rowsort label-9067
SELECT ALL COUNT ( * ) * + MAX ( ALL col1 ) * 90 + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
21873

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 28 * - + col2 col1 FROM tab0 AS cor0
----
1316
2772
280

query I rowsort
SELECT DISTINCT - 55 FROM tab0 cor0 WHERE - col2 + - + col0 NOT BETWEEN + 84 AND NULL
----
-55

query I rowsort
SELECT - + col0 AS col1 FROM tab1 WHERE NOT - + col1 IS NOT NULL
----

query II rowsort
SELECT ALL 75 AS col1, + ( col2 ) * - - col1 FROM tab2
----
75
1173
75
3080
75
3886

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 * + ( col2 ) + col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9073
SELECT DISTINCT - ( + 43 ) DIV + col0 - col2 AS col2, col1 AS col1 FROM tab0
----
-10
21
-49
81
-99
1

skipif mysql # not compatible
query II rowsort label-9073
SELECT DISTINCT - ( + 43 ) / + col0 - col2 AS col2, col1 AS col1 FROM tab0
----
-10
21
-49
81
-99
1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col2 + 65 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT 65, 62 * col1 AS col0 FROM tab1
----
65
2914
65
310
65
868

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9076
SELECT CAST( - COUNT( * ) AS SIGNED ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9076
SELECT CAST ( - COUNT ( * ) AS INTEGER ) FROM tab2 cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9077
SELECT ALL + + 43 / + CAST( NULL AS SIGNED ) * CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9077
SELECT ALL + + 43 / + CAST ( NULL AS INTEGER ) * CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 + - + col1 AS col1 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col2 NOT BETWEEN - - col1 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9080
SELECT DISTINCT + CAST( - MIN( col1 ) AS SIGNED ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9080
SELECT DISTINCT + CAST ( - MIN ( col1 ) AS INTEGER ) FROM tab0 AS cor0
----
-1

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NOT + col0 IS NOT NULL )
----

query I rowsort
SELECT + col2 + + - 88 + - 30 FROM tab1 AS cor0
----
-22
-50
-59

query II rowsort
SELECT ALL + col2, + 29 AS col1 FROM tab0
----
10
29
47
29
99
29

query II rowsort
SELECT DISTINCT + col0 AS col1, 84 * + col0 FROM tab2
----
46
3864
64
5376
75
6300

query I rowsort
SELECT DISTINCT - ( - - 47 ) FROM tab1
----
-47

query I rowsort
SELECT ALL 89 + col0 FROM tab1
----
140
174
180

query III rowsort
SELECT * FROM tab2 WHERE NULL <> - col0 * - 81 * + - col0 + + - col0
----

query II rowsort
SELECT - 22, - col0 AS col0 FROM tab2
----
-22
-46
-22
-64
-22
-75

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 IN ( + + col1 )
----

query I rowsort
SELECT ALL col2 - + col1 AS col0 FROM tab0 AS cor0
----
-11
-34
98

query II rowsort
SELECT ALL - col0 * + 11 - col1 AS col2, col1 FROM tab0 AS cor0
----
-1068
1
-246
81
-978
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 63 col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + 80 ) col0 FROM tab0
----
80

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab2 WHERE NOT NULL > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9095
SELECT col1 DIV 40 AS col2 FROM tab0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-9095
SELECT col1 / 40 AS col2 FROM tab0
----
0
0
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9096
SELECT 81 * - CAST( NULL AS SIGNED ) * + col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9096
SELECT 81 * - CAST ( NULL AS INTEGER ) * + col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9097
SELECT DISTINCT - - col0 * col2, CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0
----
1058
NULL
2560
NULL
4350
NULL

skipif mysql # not compatible
query II rowsort label-9097
SELECT DISTINCT - - col0 * col2, CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0
----
1058
NULL
2560
NULL
4350
NULL

query I rowsort
SELECT ALL 19 * + ( - col2 ) AS col0 FROM tab1 AS cor0
----
-1121
-1292
-1824

query I rowsort
SELECT DISTINCT + 37 * - col1 + - col1 AS col0 FROM tab0 cor0
----
-3078
-38
-798

onlyif mysql # aggregate syntax: 
query II rowsort label-9100
SELECT ALL ( - SUM( DISTINCT 34 ) ) AS col0, 98 + + 96 col0 FROM tab0
----
-34
194

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9100
SELECT ALL ( - SUM ( DISTINCT 34 ) ) AS col0, 98 + + 96 col0 FROM tab0
----
-34
194

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9101
SELECT DISTINCT + COUNT( col0 ) * CAST( NULL AS SIGNED ) FROM tab2 WHERE NULL = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9101
SELECT DISTINCT + COUNT ( col0 ) * CAST ( NULL AS INTEGER ) FROM tab2 WHERE NULL = NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 + - + col1 - - col1 NOT BETWEEN NULL AND col0
----
46
51
23
64
77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-9103
SELECT + COUNT( ( + col0 ) ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9103
SELECT + COUNT ( ( + col0 ) ) AS col0 FROM tab2
----
3

query I rowsort
SELECT DISTINCT + ( + 45 ) * + col0 FROM tab2
----
2070
2880
3375

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9105
SELECT col0 * + + CAST( col0 AS SIGNED ) * 41 AS col0 FROM tab1
----
106641
296225
339521

skipif mysql # not compatible
query I rowsort label-9105
SELECT col0 * + + CAST ( col0 AS INTEGER ) * 41 AS col0 FROM tab1
----
106641
296225
339521

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9106
SELECT CAST( 99 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
99
99
99

skipif mysql # not compatible
query I rowsort label-9106
SELECT CAST ( 99 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
99
99
99

query I rowsort
SELECT ALL - col2 + col0 + + + 43 AS col2 FROM tab2 AS cor0
----
60
66
67

query I rowsort
SELECT DISTINCT - 96 + - col0 AS col0 FROM tab1 AS cor0
----
-147
-181
-187

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 95 * - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9110
SELECT ALL + MAX( - ( - CAST( + + 45 AS SIGNED ) ) ) col0 FROM tab0 WHERE - col2 IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9110
SELECT ALL + MAX ( - ( - CAST ( + + 45 AS INTEGER ) ) ) col0 FROM tab0 WHERE - col2 IS NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col1 BETWEEN col0 / - + col2 + + + col1 + - col2 AND col0
----
15
81
47
87
21
10

query I rowsort
SELECT + col1 AS col0 FROM tab2 WHERE NULL IS NULL
----
51
67
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 27 * - col0 col0 FROM tab1
----
-1377
-2295
-2457

query I rowsort
SELECT ALL 31 FROM tab0 AS cor0 WHERE col0 BETWEEN + 46 / 95 / + - col1 * + + col1 + - - col1 + - ( col1 ) * col2 AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 80 >= - ( + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9116
SELECT ALL + COUNT( * ) * + 9 + - - COUNT( * ) col0 FROM tab2 AS cor0
----
30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9116
SELECT ALL + COUNT ( * ) * + 9 + - - COUNT ( * ) col0 FROM tab2 AS cor0
----
30

query I rowsort
SELECT ALL - - ( + - 97 ) AS col2 FROM tab1 AS cor0
----
-97
-97
-97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT IN ( 76 + + + col1 )
----

query II rowsort
SELECT DISTINCT - 47 + + col2, - 8 AS col1 FROM tab1 AS cor0
----
12
-8
21
-8
49
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-9120
SELECT - + col1 DIV - 56 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9120
SELECT - + col1 / - 56 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab1 WHERE - 55 + - col2 IS NULL
----

query I rowsort
SELECT - ( - - col2 ) - + col2 FROM tab2
----
-116
-46
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 46 - + 66 col0 FROM tab2
----
-112
-112
-112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9124
SELECT ALL + CAST( + 78 AS SIGNED ) + + COUNT( * ) col1 FROM tab1 AS cor0 WHERE NOT - col0 - - col2 / + col0 + - col2 >= NULL
----
78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9124
SELECT ALL + CAST ( + 78 AS INTEGER ) + + COUNT ( * ) col1 FROM tab1 AS cor0 WHERE NOT - col0 - - col2 / + col0 + - col2 >= NULL
----
78

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE col1 * col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 + - col0 + + 29 * - + 43 + - col2 * + col0 col1 FROM tab2 cor0
----
-2300
-3794
-5605

onlyif mysql # aggregate syntax: 
query I rowsort label-9127
SELECT ALL COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-9127
SELECT ALL COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9128
SELECT MAX( ALL + - 44 ) FROM tab1 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-9128
SELECT MAX ( ALL + - 44 ) FROM tab1 AS cor0
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9129
SELECT DISTINCT CAST( + 82 AS SIGNED ) FROM tab2
----
82

skipif mysql # not compatible
query I rowsort label-9129
SELECT DISTINCT CAST ( + 82 AS INTEGER ) FROM tab2
----
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9130
SELECT COUNT( * ) DIV - + COUNT( * ) AS col2 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-9130
SELECT COUNT ( * ) / - + COUNT ( * ) AS col2 FROM tab1
----
-1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + col0 AND + col1 * + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9132
SELECT DISTINCT - - CAST( NULL AS SIGNED ) * - col0 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9132
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) * - col0 AS col0 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 + col2 IS NOT NULL
----

query I rowsort
SELECT ALL + - 97 AS col0 FROM tab0 cor0
----
-97
-97
-97

query I rowsort
SELECT + col1 * - - col1 FROM tab2 AS cor0
----
2601
4489
5929

query I rowsort
SELECT DISTINCT - + col0 * 1 * + col0 FROM tab1 AS cor0
----
-2601
-7225
-8281

query II rowsort
SELECT - - col1 * + col0 + - 97 AS col1, + 58 FROM tab0 AS cor0
----
0
58
1118
58
1730
58

onlyif mysql # DIV for integer division: 
query I rowsort label-9138
SELECT ( - - 90 ) DIV + col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9138
SELECT ( - - 90 ) / + col1 FROM tab2 AS cor0
----
1
1
1

query II rowsort
SELECT ALL - col1, - col2 AS col0 FROM tab0 AS cor0
----
-1
-99
-21
-10
-81
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-9140
SELECT + col0 DIV 50 AS col1 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-9140
SELECT + col0 / 50 AS col1 FROM tab2 AS cor0
----
0
1
1

query I rowsort
SELECT ALL col2 * + 32 FROM tab0 AS cor0
----
1504
3168
320

query II rowsort
SELECT ALL - + col1, 93 + + 7 AS col2 FROM tab1 AS cor0
----
-14
100
-47
100
-5
100

query I rowsort
SELECT - col1 * 47 + 86 * + 60 FROM tab2 AS cor0
----
1541
2011
2763

query I rowsort
SELECT - 51 * + - col0 AS col0 FROM tab1
----
2601
4335
4641

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col1 * - 87 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9146
SELECT DISTINCT ( + ( + CAST( NULL AS SIGNED ) ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9146
SELECT DISTINCT ( + ( + CAST ( NULL AS INTEGER ) ) ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9147
SELECT 47 + COUNT( * ) FROM tab1 WHERE NOT col1 >= - + col0 * CAST( NULL AS SIGNED ) + + 44
----
47

skipif mysql # not compatible
query I rowsort label-9147
SELECT 47 + COUNT ( * ) FROM tab1 WHERE NOT col1 >= - + col0 * CAST ( NULL AS INTEGER ) + + 44
----
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 50 col0 FROM tab1 WHERE NOT + 73 * - + 49 / col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + col1 + + ( col1 ) AS col1 FROM tab1
----
10
28
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 52 * - - 50 * - + ( + col1 ) col2 FROM tab0
----
-210600
-2600
-54600

query I rowsort
SELECT - col1 + - + 87 + col0 * + 41 AS col1 FROM tab1 AS cor0
----
1990
3393
3597

query I rowsort
SELECT DISTINCT + - 83 + + col2 AS col0 FROM tab2 AS cor0
----
-25
-43
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9153
SELECT ( + - 12 ) DIV - 52 * ( + COUNT( + 41 ) ) AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9153
SELECT ( + - 12 ) / - 52 * ( + COUNT ( + 41 ) ) AS col0 FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 7 col0 FROM tab0 AS cor0
----
-7
-7
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9155
SELECT CAST( NULL AS SIGNED ) * + COUNT( * ) * - COUNT( * ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9155
SELECT CAST ( NULL AS INTEGER ) * + COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9156
SELECT MAX( + 27 ) AS col1 FROM tab0
----
27

skipif mysql # not compatible
query I rowsort label-9156
SELECT MAX ( + 27 ) AS col1 FROM tab0
----
27

query II rowsort
SELECT ALL - col0 + + 55 * 17 AS col2, - ( + + 78 ) + col2 + col2 FROM tab1
----
844
58
850
40
884
114

query I rowsort
SELECT DISTINCT 85 + - - 57 AS col0 FROM tab1 AS cor0
----
142

query I rowsort
SELECT + 55 - - col2 AS col1 FROM tab0 AS cor0
----
102
154
65

onlyif mysql # aggregate syntax: 
query I rowsort label-9160
SELECT - COUNT( * ) - - COUNT( * ) FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-9160
SELECT - COUNT ( * ) - - COUNT ( * ) FROM tab1 cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9161
SELECT DISTINCT + - ( - CAST( 50 AS SIGNED ) ) + - - COUNT( * ) AS col1 FROM tab0 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-9161
SELECT DISTINCT + - ( - CAST ( 50 AS INTEGER ) ) + - - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
53

query I rowsort
SELECT ALL + col1 - 13 AS col2 FROM tab2 AS cor0
----
38
54
64

query I rowsort
SELECT ALL 47 + 93 * col2 FROM tab2 AS cor0
----
2186
3767
5441

query I rowsort
SELECT + 46 * + col1 + - col0 FROM tab1 AS cor0
----
145
2071
593

onlyif mysql # aggregate syntax: 
query I rowsort label-9165
SELECT DISTINCT - COUNT( * ) * - - 84 FROM tab0 AS cor0
----
-252

skipif mysql # not compatible
query I rowsort label-9165
SELECT DISTINCT - COUNT ( * ) * - - 84 FROM tab0 AS cor0
----
-252

query II rowsort
SELECT ALL col0 AS col1, ( col2 ) + + col0 FROM tab2
----
46
69
64
104
75
133

onlyif mysql # aggregate syntax: 
query I rowsort label-9167
SELECT - 96 + - MAX( DISTINCT - col0 ) FROM tab1
----
-45

skipif mysql # not compatible
query I rowsort label-9167
SELECT - 96 + - MAX ( DISTINCT - col0 ) FROM tab1
----
-45

query I rowsort
SELECT ALL - col0 * + - 22 FROM tab0
----
1914
2134
330

query I rowsort
SELECT 65 * - 91 * + 23 AS col0 FROM tab1
----
-136045
-136045
-136045

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9170
SELECT ALL - col0 * CAST( col1 AS SIGNED ) AS col0 FROM tab1
----
-425
-4277
-714

skipif mysql # not compatible
query I rowsort label-9170
SELECT ALL - col0 * CAST ( col1 AS INTEGER ) AS col0 FROM tab1
----
-425
-4277
-714

query I rowsort
SELECT DISTINCT ( col1 ) + + + col0 AS col1 FROM tab0
----
108
96
98

query II rowsort
SELECT ALL 43 + - col1 AS col1, col0 + + - col0 FROM tab2
----
-24
0
-34
0
-8
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9173
SELECT + COUNT( + - col0 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9173
SELECT + COUNT ( + - col0 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT + 62 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0

onlyif mysql # aggregate syntax: 
query I rowsort label-9175
SELECT ALL ( 86 ) * COUNT( * ) col1 FROM tab1
----
258

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9175
SELECT ALL ( 86 ) * COUNT ( * ) col1 FROM tab1
----
258

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col2, - 69 * - ( + - 15 ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
59
-1035
68
-1035
96
-1035

onlyif mysql # aggregate syntax: 
query I rowsort label-9177
SELECT DISTINCT + + MIN( - 3 ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9177
SELECT DISTINCT + + MIN ( - 3 ) AS col0 FROM tab0 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-9178
SELECT ALL - - ( - 91 ) AS col0, - col1 DIV 55 AS col0 FROM tab2 cor0
----
-91
-1
-91
-1
-91
0

skipif mysql # not compatible
query II rowsort label-9178
SELECT ALL - - ( - 91 ) AS col0, - col1 / 55 AS col0 FROM tab2 cor0
----
-91
-1
-91
-1
-91
0

query I rowsort
SELECT DISTINCT + 77 * - col1 AS col2 FROM tab2 WHERE ( + ( - col0 ) + - col0 <> NULL )
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 cor0 WHERE NULL IS NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

onlyif mysql # aggregate syntax: 
query I rowsort label-9181
SELECT - - COUNT( * ) + - AVG ( ALL + + 57 ) FROM tab2 WHERE NOT col1 BETWEEN - 32 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9181
SELECT - - COUNT ( * ) + - AVG ( ALL + + 57 ) FROM tab2 WHERE NOT col1 BETWEEN - 32 AND NULL
----
NULL

query I rowsort
SELECT DISTINCT + 0 * - 58 FROM tab1
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 69 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9184
SELECT ALL + - COUNT( * ) + 61 * - + 13 AS col2 FROM tab0 cor0
----
-796

skipif mysql # not compatible
query I rowsort label-9184
SELECT ALL + - COUNT ( * ) + 61 * - + 13 AS col2 FROM tab0 cor0
----
-796

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col1 + - col0 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9186
SELECT ALL - - COUNT( * ) FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9186
SELECT ALL - - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9187
SELECT COUNT( * ) * + 79 FROM tab1
----
237

skipif mysql # not compatible
query I rowsort label-9187
SELECT COUNT ( * ) * + 79 FROM tab1
----
237

onlyif mysql # aggregate syntax: 
query I rowsort label-9188
SELECT ALL - 4 * COUNT( * ) + + COUNT( * ) * 63 FROM tab0
----
177

skipif mysql # not compatible
query I rowsort label-9188
SELECT ALL - 4 * COUNT ( * ) + + COUNT ( * ) * 63 FROM tab0
----
177

query I rowsort
SELECT 86 * + 88 AS col2 FROM tab1
----
7568
7568
7568

query I rowsort
SELECT 55 * + col0 FROM tab2
----
2530
3520
4125

onlyif mysql # DIV for integer division: 
query I rowsort label-9191
SELECT ALL + col0 DIV 62 + 4 AS col0 FROM tab1
----
4
5
5

skipif mysql # not compatible
query I rowsort label-9191
SELECT ALL + col0 / 62 + 4 AS col0 FROM tab1
----
4
5
5

query III rowsort
SELECT * FROM tab2 WHERE NULL < - col0 + + 42
----

query I rowsort
SELECT col0 FROM tab2 WHERE NOT ( - 32 * - 62 ) <> + col0 * col2
----

query I rowsort
SELECT - 63 * col0 AS col0 FROM tab2
----
-2898
-4032
-4725

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + col1 * col2 col0 FROM tab2
----
1150
3040
3828

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL > ( 34 * - ( - col2 ) )
----

query I rowsort
SELECT ALL col0 AS col0 FROM tab1 WHERE NOT - 2 <= + col2
----

query III rowsort
SELECT * FROM tab1 WHERE ( - col1 ) > ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9199
SELECT COUNT( * ) AS col0 FROM tab0 WHERE NULL < 23
----
0

skipif mysql # not compatible
query I rowsort label-9199
SELECT COUNT ( * ) AS col0 FROM tab0 WHERE NULL < 23
----
0

query I rowsort
SELECT ALL ( - col0 ) + - 81 FROM tab1 WHERE NOT col1 BETWEEN + col2 / + ( - col0 ) + - 25 AND NULL
----

query I rowsort
SELECT DISTINCT 88 * + col2 FROM tab0
----
4136
8712
880

onlyif mysql # DIV for integer division: 
query I rowsort label-9202
SELECT ALL 21 DIV + col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9202
SELECT ALL 21 / + col0 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9203
SELECT - 66 DIV + ( - 45 ) FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9203
SELECT - 66 / + ( - 45 ) FROM tab0
----
1
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9204
SELECT 39 DIV - 65 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9204
SELECT 39 / - 65 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9205
SELECT ALL + 19 DIV col0 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9205
SELECT ALL + 19 / col0 AS col2 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9206
SELECT + 67 DIV + 72 col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9206
SELECT + 67 / + 72 col2 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9207
SELECT ALL CAST( + CAST( NULL AS DECIMAL ) AS SIGNED ) + col2 AS col0 FROM tab1 WHERE ( NULL ) IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9207
SELECT ALL CAST ( + CAST ( NULL AS REAL ) AS INTEGER ) + col2 AS col0 FROM tab1 WHERE ( NULL ) IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - ( col1 ) + + 80 AS col2 FROM tab1
----
33
66
75

query I rowsort
SELECT 17 AS col1 FROM tab0 WHERE NOT + col1 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + ( col0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9211
SELECT + 9 - - SUM( DISTINCT - col2 ) FROM tab2 WHERE NOT col1 * col0 IS NULL
----
-112

skipif mysql # not compatible
query I rowsort label-9211
SELECT + 9 - - SUM ( DISTINCT - col2 ) FROM tab2 WHERE NOT col1 * col0 IS NULL
----
-112

query I rowsort
SELECT 0 + - 35 FROM tab1
----
-35
-35
-35

query I rowsort
SELECT col2 AS col1 FROM tab0 WHERE NOT col1 NOT IN ( - 33 * + 98 )
----

query I rowsort
SELECT ALL - 96 * col0 + + col2 FROM tab1
----
-4800
-8101
-8668

onlyif mysql # aggregate syntax: 
query I rowsort label-9215
SELECT COUNT( * ) * - 54 AS col1 FROM tab2 AS cor0
----
-162

skipif mysql # not compatible
query I rowsort label-9215
SELECT COUNT ( * ) * - 54 AS col1 FROM tab2 AS cor0
----
-162

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( col0 ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT col2 * + 35 FROM tab2 AS cor0
----
1400
2030
805

query I rowsort
SELECT ALL 25 * - col1 FROM tab0 AS cor0
----
-2025
-25
-525

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9219
SELECT DISTINCT + ( - CAST( NULL AS DECIMAL ) ) * - CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9219
SELECT DISTINCT + ( - CAST ( NULL AS REAL ) ) * - CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9220
SELECT DISTINCT - CAST( NULL AS SIGNED ) FROM tab1 WHERE col2 >= + col2 * 62
----

skipif mysql # not compatible
query I rowsort label-9220
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab1 WHERE col2 >= + col2 * 62
----

query I rowsort
SELECT - 45 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2
----
9 values hashing to 71160abf09589695379a70558726f0ba

query I rowsort
SELECT DISTINCT + ( - col1 ) * col2 AS col1 FROM tab1
----
-1344
-295
-3196

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE col2 <> 5
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 5 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
5
5
5

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( ( - col1 ) + col1 * col0 ) AND col1
----

query I rowsort
SELECT ALL - - col2 * 38 + + 55 FROM tab1 AS cor0
----
2297
2639
3703

query I rowsort
SELECT - 42 * 77 AS col0 FROM tab1 AS cor0
----
-3234
-3234
-3234

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 10 * ( + col2 + col1 ) col0 FROM tab2 AS cor0
----
1170
1250
740

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - ( col2 ) * - 86 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col0 * - col1 > ( col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ( - col0 ) AS col0 FROM tab1 AS cor0 WHERE NOT 59 * 97 + - col0 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9232
SELECT * FROM tab0 AS cor0 WHERE NOT col1 * 60 - CAST( NULL AS SIGNED ) > col0
----

skipif mysql # not compatible
query III rowsort label-9232
SELECT * FROM tab0 AS cor0 WHERE NOT col1 * 60 - CAST ( NULL AS INTEGER ) > col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9233
SELECT CAST( NULL AS DECIMAL ) * - ( + col2 ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9233
SELECT CAST ( NULL AS REAL ) * - ( + col2 ) FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN - col2 AND - col2 * + col2
----

query III rowsort
SELECT ALL * FROM tab2 WHERE + col2 NOT IN ( - 49 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + col1 ) IN ( + 83 - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col0 + + col0 / col2 >= ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9238
SELECT 26 + 57 DIV - 8 AS col1 FROM tab1
----
19
19
19

skipif mysql # not compatible
query I rowsort label-9238
SELECT 26 + 57 / - 8 AS col1 FROM tab1
----
19
19
19

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL ) <= col1
----

query III rowsort
SELECT * FROM tab0 WHERE ( col1 ) NOT IN ( - col0 / 99 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col2 + - + 67 FROM tab0
----
-20
-57
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + col0 col1 FROM tab2 WHERE ( col0 ) IS NULL
----

query I rowsort
SELECT ALL + col0 + 91 + col2 FROM tab0
----
153
188
287

query I rowsort
SELECT + 38 * + - col2 + + col1 AS col0 FROM tab2
----
-1443
-2137
-823

query I rowsort
SELECT ALL col0 + 25 FROM tab0
----
112
122
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9246
SELECT DISTINCT col0 * - 4 AS col0 FROM tab2 cor0 WHERE 19 IN ( + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-9246
SELECT DISTINCT col0 * - 4 AS col0 FROM tab2 cor0 WHERE 19 IN ( + CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT ( + ( col0 ) ) * col0 + + col1 FROM tab1 AS cor0
----
2615
7230
8328

query I rowsort
SELECT + 31 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL <> - + 55
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9250
SELECT - COUNT( * ) - + COUNT( * ) AS col0 FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-9250
SELECT - COUNT ( * ) - + COUNT ( * ) AS col0 FROM tab0
----
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 72 ) * 13 col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to ad014c03436565200e00c5993093812a

query I rowsort
SELECT 79 * - + ( + ( + col0 ) ) * + 56 + + 9 + - ( + 83 ) AS col0 FROM tab1 cor0
----
-225698
-376114
-402658

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9253
SELECT ALL - - 22, + CAST( NULL AS DECIMAL ) AS col0 FROM tab1 cor0
----
22
NULL
22
NULL
22
NULL

skipif mysql # not compatible
query II rowsort label-9253
SELECT ALL - - 22, + CAST ( NULL AS REAL ) AS col0 FROM tab1 cor0
----
22
NULL
22
NULL
22
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 99 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9255
SELECT ALL + 6 DIV + col2 * col0 + + col2 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-9255
SELECT ALL + 6 / + col2 * col0 + + col2 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9256
SELECT + + COUNT( DISTINCT - col1 ) DIV - 19 + + 61 + + CAST( + 16 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-9256
SELECT + + COUNT ( DISTINCT - col1 ) / - 19 + + 61 + + CAST ( + 16 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9257
SELECT + MIN( DISTINCT - col0 ) + AVG ( col2 ) AS col2 FROM tab0 AS cor0 WHERE 83 < ( - 9 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9257
SELECT + MIN ( DISTINCT - col0 ) + AVG ( col2 ) AS col2 FROM tab0 AS cor0 WHERE 83 < ( - 9 )
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( + col1 - - col1 * - 8 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 * - + col2 + - col1 * 51 BETWEEN 74 * - col2 + - col2 * 44 AND ( col2 * - 15 )
----
46
51
23
64
77
40

query I rowsort
SELECT DISTINCT - 21 - + col1 FROM tab1 AS cor0
----
-26
-35
-68

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 BETWEEN ( NULL ) AND ( + 48 + - 64 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9262
SELECT ALL + ( - + 3 ) + MAX( DISTINCT - col0 ) * 27 FROM tab1 AS cor0
----
-1380

skipif mysql # not compatible
query I rowsort label-9262
SELECT ALL + ( - + 3 ) + MAX ( DISTINCT - col0 ) * 27 FROM tab1 AS cor0
----
-1380

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + ( + col1 ) * 84 + + col2 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9264
SELECT CAST( NULL AS DECIMAL ), - COUNT( * ) col0 FROM tab0 AS cor0
----
NULL
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9264
SELECT CAST ( NULL AS REAL ), - COUNT ( * ) col0 FROM tab0 AS cor0
----
NULL
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9265
SELECT COUNT( * ) FROM tab2 WHERE NOT + CAST( NULL AS SIGNED ) IN ( + 70 / - 41 + - 37 )
----
0

skipif mysql # not compatible
query I rowsort label-9265
SELECT COUNT ( * ) FROM tab2 WHERE NOT + CAST ( NULL AS INTEGER ) IN ( + 70 / - 41 + - 37 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9266
SELECT DISTINCT ( - ( + 79 ) ) * - - SUM( - col2 ) * 31 AS col2 FROM tab2
----
296329

skipif mysql # not compatible
query I rowsort label-9266
SELECT DISTINCT ( - ( + 79 ) ) * - - SUM ( - col2 ) * 31 AS col2 FROM tab2
----
296329

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 74 <= ( + col2 )
----
85
5
59
91
47
68

query I rowsort
SELECT col0 FROM tab1 WHERE NOT 82 IN ( - col2 * col1 )
----
51
85
91

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + ( col1 ) BETWEEN NULL AND col0 - 3
----

query I rowsort
SELECT DISTINCT 50 * + + 79 AS col1 FROM tab1
----
3950

query I rowsort
SELECT - 8 * + - col2 + ( col2 ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
531
612
864

onlyif mysql # DIV for integer division: 
query II rowsort label-9272
SELECT ALL - col1 DIV - col1, + 69 + - + 39 AS col2 FROM tab1
----
1
30
1
30
1
30

skipif mysql # not compatible
query II rowsort label-9272
SELECT ALL - col1 / - col1, + 69 + - + 39 AS col2 FROM tab1
----
1
30
1
30
1
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9273
SELECT CAST( 42 AS SIGNED ) - SUM( ( - col0 ) ) AS col1 FROM tab1 WHERE NOT ( - col1 ) IN ( + col0 )
----
269

skipif mysql # not compatible
query I rowsort label-9273
SELECT CAST ( 42 AS INTEGER ) - SUM ( ( - col0 ) ) AS col1 FROM tab1 WHERE NOT ( - col1 ) IN ( + col0 )
----
269

query I rowsort
SELECT col2 * - ( - - col1 ) AS col2 FROM tab0
----
-210
-3807
-99

query I rowsort
SELECT + col2 * + + ( + 99 ) FROM tab1
----
5841
6732
9504

query I rowsort
SELECT ALL + col1 + col1 + col2 FROM tab0 AS cor0 WHERE NOT - 90 IS NOT NULL
----

query I rowsort
SELECT + - 46 * - - col2 FROM tab2 AS cor0 WHERE NOT col2 >= NULL
----

query I rowsort
SELECT DISTINCT - 46 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NOT ( col1 + + col0 IS NOT NULL ) )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NOT - ( col1 ) <> ( col1 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col0 * - 19 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9282
SELECT MIN( + + col1 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-9282
SELECT MIN ( + + col1 ) FROM tab0
----
1

query I rowsort
SELECT DISTINCT 45 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
45

query I rowsort
SELECT ALL + 49 + col2 FROM tab2 AS cor0 WHERE NOT + col1 IS NULL
----
107
72
89

onlyif mysql # DIV for integer division: 
query I rowsort label-9285
SELECT + col1 + + ( - 82 ) DIV + 58 + + - col1 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9285
SELECT + col1 + + ( - 82 ) / + 58 + + - col1 FROM tab0 AS cor0
----
-1
-1
-1

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - 93 + col0 / col0 NOT BETWEEN - - 11 * 90 AND ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9287
SELECT col2 DIV col1 col1 FROM tab0
----
0
0
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9287
SELECT col2 / col1 col1 FROM tab0
----
0
0
99

onlyif mysql # DIV for integer division: 
query I rowsort label-9288
SELECT DISTINCT - col0 DIV + ( col0 ) FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-9288
SELECT DISTINCT - col0 / + ( col0 ) FROM tab2
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-9289
SELECT DISTINCT 16 col1, COUNT( * ) AS col0 FROM tab1
----
16
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9289
SELECT DISTINCT 16 col1, COUNT ( * ) AS col0 FROM tab1
----
16
3

query I rowsort
SELECT ( - - col0 ) * - col1 AS col1 FROM tab2
----
-2346
-4928
-5025

query I rowsort
SELECT col1 * - ( - 62 ) FROM tab2
----
3162
4154
4774

query III rowsort
SELECT * FROM tab0 WHERE col2 NOT IN ( + col0, - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 22 + + col2 FROM tab0
----
121
32
69

query I rowsort
SELECT ALL col1 AS col0 FROM tab1 WHERE NULL > + - col0 + - col1 + - + col2 * + 64
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - col2 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9296
SELECT ALL + + col0 DIV + ( + 46 ) + col1 AS col0 FROM tab1 AS cor0 WHERE col0 NOT BETWEEN + ( - col1 ) AND + - col2
----
15
48
6

skipif mysql # not compatible
query I rowsort label-9296
SELECT ALL + + col0 / + ( + 46 ) + col1 AS col0 FROM tab1 AS cor0 WHERE col0 NOT BETWEEN + ( - col1 ) AND + - col2
----
15
48
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9297
SELECT ALL + + COUNT( * ) * 48 AS col2 FROM tab0 WHERE NULL NOT BETWEEN NULL AND col2 * - col0 + - 0 / + col0
----
0

skipif mysql # not compatible
query I rowsort label-9297
SELECT ALL + + COUNT ( * ) * 48 AS col2 FROM tab0 WHERE NULL NOT BETWEEN NULL AND col2 * - col0 + - 0 / + col0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 17 col1 FROM tab1
----
17
17
17

query I rowsort
SELECT DISTINCT col1 + + - col0 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + + col2 * + 64 + + col1 + - - 41 + 94 * col1 AS col2 FROM tab1 AS cor0
----
4292
7515
8858

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL = - 67 * - 7
----

query II rowsort
SELECT DISTINCT - 53 * 49 AS col0, col1 + - col1 FROM tab0 AS cor0
----
-2597
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND ( NULL )
----

query I rowsort
SELECT DISTINCT - ( + 41 ) AS col2 FROM tab2 AS cor0
----
-41

onlyif mysql # aggregate syntax: 
query II rowsort label-9305
SELECT - MAX( DISTINCT col1 ) AS col2, 53 AS col1 FROM tab1 cor0
----
-47
53

skipif mysql # not compatible
query II rowsort label-9305
SELECT - MAX ( DISTINCT col1 ) AS col2, 53 AS col1 FROM tab1 cor0
----
-47
53

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NOT ( NULL ) BETWEEN NULL AND - col1 / + 88 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9307
SELECT ALL COUNT( * ), + COUNT( DISTINCT + col2 ) col1 FROM tab0
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9307
SELECT ALL COUNT ( * ), + COUNT ( DISTINCT + col2 ) col1 FROM tab0
----
3
3

query II rowsort
SELECT + 79 AS col1, + col2 * + col2 + col1 AS col2 FROM tab0
----
79
121
79
2290
79
9802

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9309
SELECT ALL - col0 FROM tab1 WHERE NOT - col2 NOT IN ( + CAST( NULL AS SIGNED ), ( + ( + col1 ) ) )
----

skipif mysql # not compatible
query I rowsort label-9309
SELECT ALL - col0 FROM tab1 WHERE NOT - col2 NOT IN ( + CAST ( NULL AS INTEGER ), ( + ( + col1 ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9310
SELECT ALL COUNT( 66 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9310
SELECT ALL COUNT ( 66 ) FROM tab1
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9311
SELECT - MAX( + CAST( col2 AS SIGNED ) ) col0 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9311
SELECT - MAX ( + CAST ( col2 AS INTEGER ) ) col0 FROM tab1 AS cor0
----
-96

query I rowsort
SELECT DISTINCT - - 56 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9313
SELECT MIN( ALL + - CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9313
SELECT MIN ( ALL + - CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9314
SELECT ALL + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT col1 IN ( + - CAST( - 49 AS SIGNED ) * + + 1 * + - col1 * + col1 )
----
3

skipif mysql # not compatible
query I rowsort label-9314
SELECT ALL + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT col1 IN ( + - CAST ( - 49 AS INTEGER ) * + + 1 * + - col1 * + col1 )
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-9315
SELECT + + 69 * - 45 AS col1, - MIN( + - 7 ) AS col2 FROM tab2 AS cor0
----
-3105
7

skipif mysql # not compatible
query II rowsort label-9315
SELECT + + 69 * - 45 AS col1, - MIN ( + - 7 ) AS col2 FROM tab2 AS cor0
----
-3105
7

query I rowsort
SELECT ( + - 91 ) FROM tab1 AS cor0
----
-91
-91
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-9317
SELECT - COUNT( ALL - + col0 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9317
SELECT - COUNT ( ALL - + col0 ) FROM tab1 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NULL NOT BETWEEN NULL AND NULL OR NOT 42 * - - 45 + + col2 IN ( - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - ( + 52 ) * - col1 FROM tab2 AS cor0
----
2652
3484
4004

query I rowsort
SELECT ALL + col2 + + - 81 AS col2 FROM tab1 AS cor0
----
-13
-22
15

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9321
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( - col0 / + - CAST( + - col1 AS SIGNED ) + col1 ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9321
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( - col0 / + - CAST ( + - col1 AS INTEGER ) + col1 ) IS NOT NULL
----

query I rowsort
SELECT + AVG ( - col0 ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE - col0 - - col0 - + col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9324
SELECT ALL - 77 DIV + - col1 FROM tab0
----
0
3
77

skipif mysql # not compatible
query I rowsort label-9324
SELECT ALL - 77 / + - col1 FROM tab0
----
0
3
77

query I rowsort
SELECT + col2 * + 37 * + + col0 + + col2 * + col1 + 87 FROM tab0
----
29979
32487
355497

query II rowsort
SELECT ALL 53 AS col2, - col2 + + col0 AS col1 FROM tab1
----
53
-45
53
23
53
26

query I rowsort
SELECT - 4 + - col0 FROM tab1
----
-55
-89
-95

query I rowsort
SELECT 15 + - col1 FROM tab0
----
-6
-66
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9329
SELECT DISTINCT SUM( ALL + 12 ) AS col0 FROM tab0
----
36

skipif mysql # not compatible
query I rowsort label-9329
SELECT DISTINCT SUM ( ALL + 12 ) AS col0 FROM tab0
----
36

query I rowsort
SELECT ALL col1 + + 91 + + col0 FROM tab2
----
188
232
233

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + + - 45 col0 FROM tab1 AS cor0
----
-130
-136
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-9332
SELECT DISTINCT - 84 + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-9332
SELECT DISTINCT - 84 + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-87

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 53 <= NULL
----

query I rowsort
SELECT DISTINCT + - 88 * + + col2 + - col0 AS col1 FROM tab2 AS cor0
----
-2070
-3584
-5179

query I rowsort
SELECT ALL - col1 * - 9 - - 95 FROM tab1 AS cor0
----
140
221
518

query I rowsort
SELECT - 96 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to c89b545346f99713888a7934e4caa539

onlyif mysql # aggregate syntax: 
query II rowsort label-9337
SELECT DISTINCT 26 AS col0, + ( + + COUNT( 9 ) ) FROM tab2
----
26
3

skipif mysql # not compatible
query II rowsort label-9337
SELECT DISTINCT 26 AS col0, + ( + + COUNT ( 9 ) ) FROM tab2
----
26
3

query I rowsort
SELECT 2 + + - 60 AS col0 FROM tab0
----
-58
-58
-58

query I rowsort
SELECT ALL + - 8 FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
-8
-8
-8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 * + col1, + col1 col0 FROM tab2 AS cor0
----
-1173
51
-3080
77
-3886
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 50 col1 FROM tab2 AS cor0
----
50
50
50

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 / 13 / - - col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9343
SELECT DISTINCT - + CAST( - 6 AS SIGNED ) AS col1 FROM tab2 cor0 WHERE ( - col2 / 14 + - col2 ) > - col0
----
6

skipif mysql # not compatible
query I rowsort label-9343
SELECT DISTINCT - + CAST ( - 6 AS INTEGER ) AS col1 FROM tab2 cor0 WHERE ( - col2 / 14 + - col2 ) > - col0
----
6

query I rowsort
SELECT 47 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
47
47
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9345
SELECT ALL COUNT( * ) * - 49 - COUNT( * ) FROM tab1 AS cor0
----
-150

skipif mysql # not compatible
query I rowsort label-9345
SELECT ALL COUNT ( * ) * - 49 - COUNT ( * ) FROM tab1 AS cor0
----
-150

query I rowsort
SELECT - - ( 93 ) AS col0 FROM tab1 AS cor0 WHERE NOT + col2 - + 37 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9347
SELECT + 27 * - ( - + COUNT( * ) ) AS col2 FROM tab1 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-9347
SELECT + 27 * - ( - + COUNT ( * ) ) AS col2 FROM tab1 AS cor0
----
81

query III rowsort
SELECT * FROM tab0 WHERE + 58 NOT BETWEEN ( 82 ) AND col0 + - 36
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-9349
SELECT 58 DIV col2 * - col2 + + col0 AS col2 FROM tab0
----
-32
37
97

skipif mysql # not compatible
query I rowsort label-9349
SELECT 58 / col2 * - col2 + + col0 AS col2 FROM tab0
----
-32
37
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9350
SELECT ALL - + col2 + + + col0 * - CAST( + col1 AS SIGNED ) + - col1 AS col1 FROM tab2 cor0
----
-2420
-5045
-5150

skipif mysql # not compatible
query I rowsort label-9350
SELECT ALL - + col2 + + + col0 * - CAST ( + col1 AS INTEGER ) + - col1 AS col1 FROM tab2 cor0
----
-2420
-5045
-5150

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col0 NOT IN ( - + col1 * - + 58 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col1 + - col0 FROM tab2 AS cor0 WHERE - 10 / + col2 IS NOT NULL
----
-141
-142
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9353
SELECT ALL - col1 * + col1 * CAST( NULL AS SIGNED ) * col1 + - col1 + - CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9353
SELECT ALL - col1 * + col1 * CAST ( NULL AS INTEGER ) * col1 + - col1 + - CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9354
SELECT DISTINCT + MIN( - col1 ) + - - 24 AS col2 FROM tab0 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-9354
SELECT DISTINCT + MIN ( - col1 ) + - - 24 AS col2 FROM tab0 AS cor0
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9355
SELECT + + CAST( - col2 AS SIGNED ) FROM tab1 cor0 WHERE ( NULL ) IS NULL
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-9355
SELECT + + CAST ( - col2 AS INTEGER ) FROM tab1 cor0 WHERE ( NULL ) IS NULL
----
-59
-68
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9356
SELECT ALL - COUNT( * ) + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9356
SELECT ALL - COUNT ( * ) + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9357
SELECT DISTINCT + - MIN( ALL + 59 ) * - - COUNT( * ) + + 14 AS col1 FROM tab2 AS cor0
----
-163

skipif mysql # not compatible
query I rowsort label-9357
SELECT DISTINCT + - MIN ( ALL + 59 ) * - - COUNT ( * ) + + 14 AS col1 FROM tab2 AS cor0
----
-163

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 * + col2 > + col0
----

query I rowsort
SELECT - + ( + col1 ) AS col2 FROM tab1 WHERE 28 + + + 3 >= 56 * - + col1 * col1 * + ( + + col2 )
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9360
SELECT DISTINCT - MAX( ALL - col2 ) * - 34 FROM tab0
----
-340

skipif mysql # not compatible
query I rowsort label-9360
SELECT DISTINCT - MAX ( ALL - col2 ) * - 34 FROM tab0
----
-340

query I rowsort
SELECT - col0 * - + col2 * - 40 FROM tab1
----
-195840
-200600
-247520

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 - - col2 AS col2, 23 col2 FROM tab0
----
100
23
128
23
31
23

onlyif mysql # aggregate syntax: 
query I rowsort label-9363
SELECT ALL MAX( ALL - + col1 ) AS col1 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-9363
SELECT ALL MAX ( ALL - + col1 ) AS col1 FROM tab2
----
-51

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col1 * col2 + - col1 * - - ( col2 ) * + col1 * + 58 * + - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col1 * + 93 * 21 AS col2 FROM tab2
----
130851
150381
99603

query I rowsort
SELECT DISTINCT - 9 * ( - col1 ) AS col1 FROM tab2
----
459
603
693

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab1 WHERE NOT - 50 IS NULL
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-9368
SELECT ALL - 60 * COUNT( * ) FROM tab1
----
-180

skipif mysql # not compatible
query I rowsort label-9368
SELECT ALL - 60 * COUNT ( * ) FROM tab1
----
-180

query I rowsort
SELECT ALL - 16 * - ( - ( 18 ) ) FROM tab1
----
-288
-288
-288

onlyif mysql # aggregate syntax: 
query I rowsort label-9370
SELECT DISTINCT + + MIN( + 91 ) AS col2 FROM tab2 WHERE NULL <> col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9370
SELECT DISTINCT + + MIN ( + 91 ) AS col2 FROM tab2 WHERE NULL <> col2
----
NULL

query I rowsort
SELECT ALL + + 55 + - - col0 * + col2 FROM tab2 AS cor0
----
1113
2615
4405

query I rowsort
SELECT - 98 + + col0 * + 48 FROM tab0 AS cor0
----
4078
4558
622

query I rowsort
SELECT + col0 + 15 FROM tab0 AS cor0
----
102
112
30

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab2 WHERE NOT NULL > - - col0
----

query I rowsort
SELECT - col1 * + ( + + 59 ) FROM tab1 AS cor0
----
-2773
-295
-826

query I rowsort
SELECT 83 * col0 AS col1 FROM tab1 AS cor0
----
4233
7055
7553

query I rowsort
SELECT + 64 * + - 18 AS col1 FROM tab2 cor0
----
-1152
-1152
-1152

onlyif mysql # DIV for integer division: 
query I rowsort label-9378
SELECT + 24 DIV + - 20 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9378
SELECT + 24 / + - 20 FROM tab2 AS cor0
----
-1
-1
-1

query II rowsort
SELECT DISTINCT + col2 AS col0, col2 FROM tab2
----
23
23
40
40
58
58

query I rowsort
SELECT ALL - 11 FROM tab2 WHERE + + col1 < + col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col1 * col0 + col1 NOT IN ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 95 > - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9383
SELECT COUNT( + + 92 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9383
SELECT COUNT ( + + 92 ) FROM tab0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + 67 col0 FROM tab0
----
154
164
82

query I rowsort
SELECT DISTINCT ( - col1 ) * + col2 + + - col1 * col1 FROM tab2 AS cor0 WHERE col0 * col1 * - col0 BETWEEN NULL AND + + 70 / + - col2
----

query II rowsort
SELECT DISTINCT - + col0 AS col0, - col2 * 36 FROM tab2 AS cor0
----
-46
-828
-64
-1440
-75
-2088

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9387
SELECT ALL 56 + + col0 AS col0, + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
102
NULL
120
NULL
131
NULL

skipif mysql # not compatible
query II rowsort label-9387
SELECT ALL 56 + + col0 AS col0, + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
102
NULL
120
NULL
131
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9388
SELECT ( col0 ) FROM tab2 AS cor0 WHERE + col1 / CAST( - - col2 AS SIGNED ) IS NOT NULL
----
46
64
75

skipif mysql # not compatible
query I rowsort label-9388
SELECT ( col0 ) FROM tab2 AS cor0 WHERE + col1 / CAST ( - - col2 AS INTEGER ) IS NOT NULL
----
46
64
75

onlyif mysql # DIV for integer division: 
query I rowsort label-9389
SELECT - col2 DIV - + 44 + + 90 AS col2 FROM tab0 AS cor0
----
90
91
92

skipif mysql # not compatible
query I rowsort label-9389
SELECT - col2 / - + 44 + + 90 AS col2 FROM tab0 AS cor0
----
90
91
92

onlyif mysql # aggregate syntax: 
query I rowsort label-9390
SELECT ALL - SUM( - 13 ) + - + 98 FROM tab2 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-9390
SELECT ALL - SUM ( - 13 ) + - + 98 FROM tab2 AS cor0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-9391
SELECT ALL COUNT( DISTINCT - + col1 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9391
SELECT ALL COUNT ( DISTINCT - + col1 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT - + col2 * col0 + col1 AS col0 FROM tab2 AS cor0
----
-1007
-2483
-4283

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9393
SELECT ALL - 62 DIV - SUM( DISTINCT col1 ) col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9393
SELECT ALL - 62 / - SUM ( DISTINCT col1 ) col1 FROM tab1 AS cor0
----
0

query II rowsort
SELECT ALL 18 * - col2 - + ( + 53 ) AS col0, + col1 FROM tab1
----
-1115
5
-1277
47
-1781
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9395
SELECT - 12 + + - col0 + col1 + col2 + col2 + + CAST( NULL AS SIGNED ) * - - 68 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9395
SELECT - 12 + + - col0 + col1 + col2 + col2 + + CAST ( NULL AS INTEGER ) * - - 68 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 * + + 84 AS col2 FROM tab0
----
3948
8316
840

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9397
SELECT - MAX( ALL + + CAST( NULL AS SIGNED ) ) * 82 * - SUM( + - col2 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9397
SELECT - MAX ( ALL + + CAST ( NULL AS INTEGER ) ) * 82 * - SUM ( + - col2 ) FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE + - 51 IN ( + 1, 34, + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9399
SELECT + - col1 * 52 * - - CAST( NULL AS SIGNED ) * col0 AS col1, - col2 DIV - + ( 89 ) AS col2 FROM tab1 cor0
----
NULL
0
NULL
0
NULL
1

skipif mysql # not compatible
query II rowsort label-9399
SELECT + - col1 * 52 * - - CAST ( NULL AS INTEGER ) * col0 AS col1, - col2 / - + ( 89 ) AS col2 FROM tab1 cor0
----
NULL
0
NULL
0
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9400
SELECT DISTINCT - MAX( ALL col0 ) AS col1 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-9400
SELECT DISTINCT - MAX ( ALL col0 ) AS col1 FROM tab2 AS cor0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-9401
SELECT MIN( ALL + + 24 ) * - 48 FROM tab1
----
-1152

skipif mysql # not compatible
query I rowsort label-9401
SELECT MIN ( ALL + + 24 ) * - 48 FROM tab1
----
-1152

query I rowsort
SELECT DISTINCT ( ( + 66 ) ) AS col0 FROM tab0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-9403
SELECT MIN( DISTINCT - 63 ) FROM tab1
----
-63

skipif mysql # not compatible
query I rowsort label-9403
SELECT MIN ( DISTINCT - 63 ) FROM tab1
----
-63

query I rowsort
SELECT DISTINCT - - 24 * 18 AS col2 FROM tab1 AS cor0
----
432

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 17 <> - ( + + col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9407
SELECT ALL + MAX( ALL - col0 ) * - + 84 - - MIN( DISTINCT - col0 ) * + ( + - MIN( - col0 ) ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-8149

skipif mysql # not compatible
query I rowsort label-9407
SELECT ALL + MAX ( ALL - col0 ) * - + 84 - - MIN ( DISTINCT - col0 ) * + ( + - MIN ( - col0 ) ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-8149

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9408
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 - 99 + 6 + + - 68 * - - 94 / + col1 * - - 74 * + 34 * col0 * CAST( col2 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9408
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 - 99 + 6 + + - 68 * - - 94 / + col1 * - - 74 * + 34 * col0 * CAST ( col2 AS INTEGER ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9409
SELECT ALL 16 DIV col1 FROM tab0
----
0
0
16

skipif mysql # not compatible
query I rowsort label-9409
SELECT ALL 16 / col1 FROM tab0
----
0
0
16

query II rowsort
SELECT - 99 AS col0, + 64 * + col1 + - + ( col0 ) FROM tab1
----
-99
235
-99
2917
-99
845

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9411
SELECT + CAST( 45 AS SIGNED ) FROM tab0
----
45
45
45

skipif mysql # not compatible
query I rowsort label-9411
SELECT + CAST ( 45 AS INTEGER ) FROM tab0
----
45
45
45

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9412
SELECT ALL * FROM tab0 WHERE + col2 = - CAST( NULL AS SIGNED ) * + + 4 + 80
----

skipif mysql # not compatible
query III rowsort label-9412
SELECT ALL * FROM tab0 WHERE + col2 = - CAST ( NULL AS INTEGER ) * + + 4 + 80
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9413
SELECT ALL MAX( ALL 94 ) AS col0 FROM tab1
----
94

skipif mysql # not compatible
query I rowsort label-9413
SELECT ALL MAX ( ALL 94 ) AS col0 FROM tab1
----
94

onlyif mysql # DIV for integer division: 
query II rowsort label-9414
SELECT DISTINCT - col0 * col1 + - + col2 DIV 11 * + - col1 + col2, + col1 + 31 * - col1 * + + col1 AS col0 FROM tab0 AS cor0
----
-1817
-13650
-844
-203310
11
-30

skipif mysql # not compatible
query II rowsort label-9414
SELECT DISTINCT - col0 * col1 + - + col2 / 11 * + - col1 + col2, + col1 + 31 * - col1 * + + col1 AS col0 FROM tab0 AS cor0
----
-1817
-13650
-844
-203310
11
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-9415
SELECT DISTINCT COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE 13 + - col0 < 41
----
3

skipif mysql # not compatible
query I rowsort label-9415
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE 13 + - col0 < 41
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9416
SELECT ALL - CAST( NULL AS SIGNED ) AS col1, ( - 17 ) * + COUNT( * ) AS col1 FROM tab1 cor0
----
NULL
-51

skipif mysql # not compatible
query II rowsort label-9416
SELECT ALL - CAST ( NULL AS INTEGER ) AS col1, ( - 17 ) * + COUNT ( * ) AS col1 FROM tab1 cor0
----
NULL
-51

query II rowsort
SELECT ALL col1, - col2 + - col1 AS col2 FROM tab0 AS cor0
----
1
-100
21
-31
81
-128

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 49 NOT BETWEEN + - 83 AND + col2
----

query I rowsort
SELECT - col2 * + col2 + - + 33 AS col1 FROM tab1 cor0
----
-3514
-4657
-9249

query I rowsort
SELECT col0 + 85 AS col2 FROM tab1 AS cor0
----
136
170
176

query I rowsort
SELECT + col1 * + 63 + + col2 AS col2 FROM tab1
----
3029
374
978

onlyif mysql # aggregate syntax: 
query I rowsort label-9422
SELECT + SUM( DISTINCT col0 ) + 37 * - - COUNT( * ) AS col0 FROM tab2
----
296

skipif mysql # not compatible
query I rowsort label-9422
SELECT + SUM ( DISTINCT col0 ) + 37 * - - COUNT ( * ) AS col0 FROM tab2
----
296

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9423
SELECT ALL - 53 - - - CAST( - col1 AS SIGNED ) * + 99 AS col0 FROM tab2 cor0
----
4996
6580
7570

skipif mysql # not compatible
query I rowsort label-9423
SELECT ALL - 53 - - - CAST ( - col1 AS INTEGER ) * + 99 AS col0 FROM tab2 cor0
----
4996
6580
7570

onlyif mysql # aggregate syntax: 
query I rowsort label-9424
SELECT DISTINCT MIN( DISTINCT + col2 ) - + + MIN( DISTINCT + col0 ) + - - COUNT( * ) + + - ( - + 25 ) - + - COUNT( * ) * - ( + COUNT( * ) ) FROM tab1 cor0
----
27

skipif mysql # not compatible
query I rowsort label-9424
SELECT DISTINCT MIN ( DISTINCT + col2 ) - + + MIN ( DISTINCT + col0 ) + - - COUNT ( * ) + + - ( - + 25 ) - + - COUNT ( * ) * - ( + COUNT ( * ) ) FROM tab1 cor0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-9425
SELECT ALL - - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE - 19 BETWEEN NULL AND + 97
----
0

skipif mysql # not compatible
query I rowsort label-9425
SELECT ALL - - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE - 19 BETWEEN NULL AND + 97
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col2 / col0 * - + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9427
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + 29 * col0 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9427
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + 29 * col0 AS col0 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9428
SELECT + + col1 AS col0 FROM tab1 WHERE NULL IN ( + col1, - col0 + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-9428
SELECT + + col1 AS col0 FROM tab1 WHERE NULL IN ( + col1, - col0 + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9429
SELECT ALL col1 + - - CAST( - col0 AS SIGNED ) AS col2 FROM tab2
----
-8
13
5

skipif mysql # not compatible
query I rowsort label-9429
SELECT ALL col1 + - - CAST ( - col0 AS INTEGER ) AS col2 FROM tab2
----
-8
13
5

query II rowsort
SELECT + 83 * - col2 + col2, 63 - + col0 + - col0 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - ( - col1 ), col2 col2 FROM tab1 AS cor0
----
-14
96
-47
68
-5
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9432
SELECT SUM( col1 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL >= 5 + ( - + 35 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9432
SELECT SUM ( col1 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL >= 5 + ( - + 35 )
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 < col1
----

query I rowsort
SELECT ALL 67 * + col2 + + - col0 FROM tab2 AS cor0
----
1495
2616
3811

onlyif mysql # aggregate syntax: 
query I rowsort label-9435
SELECT - - MIN( ALL + col1 ) AS col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9435
SELECT - - MIN ( ALL + col1 ) AS col2 FROM tab0 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9436
SELECT - + COUNT( * ) * - COUNT( * ) AS col1 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9436
SELECT - + COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
9

query I rowsort
SELECT DISTINCT + col2 * col1 * - - ( col0 ) + + col0 AS col1 FROM tab1 AS cor0
----
25160
290927
68595

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9438
SELECT ALL COUNT( * ) * COUNT( * ) DIV - 70 AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9438
SELECT ALL COUNT ( * ) * COUNT ( * ) / - 70 AS col0 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9439
SELECT - COUNT( 95 ) col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9439
SELECT - COUNT ( 95 ) col0 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-9440
SELECT - COUNT( * ) AS col2, + ( 69 ) FROM tab0 AS cor0 WHERE NOT - col0 + + col1 IS NULL
----
-3
69

skipif mysql # not compatible
query II rowsort label-9440
SELECT - COUNT ( * ) AS col2, + ( 69 ) FROM tab0 AS cor0 WHERE NOT - col0 + + col1 IS NULL
----
-3
69

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - ( - 92 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-9442
SELECT 60 DIV - 54 AS col2 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9442
SELECT 60 / - 54 AS col2 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT ALL col2 + - - col1 AS col0 FROM tab0
----
100
128
31

query I rowsort
SELECT + col0 * col2 * - - 59 + col2 AS col2 FROM tab0
----
41642
51340
566676

query I rowsort
SELECT + + 35 + 47 FROM tab2 AS cor0
----
82
82
82

query I rowsort
SELECT 80 * + - col1 * + - col1 + col2 FROM tab0 cor0
----
179
35290
524927

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab0 cor0 WHERE NOT 55 IS NOT NULL
----

query I rowsort
SELECT + col1 * ( + 93 ) FROM tab0 AS cor0
----
1953
7533
93

query I rowsort
SELECT DISTINCT + 98 * 59 - col1 * + col0 AS col1 FROM tab0
----
3955
4567
5685

onlyif mysql # DIV for integer division: 
query II rowsort label-9450
SELECT DISTINCT col0 DIV ( + 90 ) AS col0, + col2 FROM tab2
----
0
23
0
40
0
58

skipif mysql # not compatible
query II rowsort label-9450
SELECT DISTINCT col0 / ( + 90 ) AS col0, + col2 FROM tab2
----
0
23
0
40
0
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9451
SELECT ALL + 21 + - COUNT( ALL + ( - col1 ) ) AS col0 FROM tab1
----
18

skipif mysql # not compatible
query I rowsort label-9451
SELECT ALL + 21 + - COUNT ( ALL + ( - col1 ) ) AS col0 FROM tab1
----
18

query I rowsort
SELECT - 99 - - col2 - - 79 AS col2 FROM tab2
----
20
3
38

query I rowsort
SELECT - col0 + - - col2 FROM tab1 cor0
----
-23
-26
45

query I rowsort
SELECT ALL col0 - - - 12 + + - 72 * col2 FROM tab2 cor0
----
-1622
-2828
-4113

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col2 + + 94 - - 42 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9456
SELECT ALL - + CAST( NULL AS DECIMAL ) * - - 20 - + COUNT( DISTINCT - - col1 ) / + - 96 * + 36 + - SUM( DISTINCT + col0 ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9456
SELECT ALL - + CAST ( NULL AS REAL ) * - - 20 - + COUNT ( DISTINCT - - col1 ) / + - 96 * + 36 + - SUM ( DISTINCT + col0 ) AS col0 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0, 20 col1 FROM tab2
----
46
20
64
20
75
20

query I rowsort
SELECT ALL + ( col0 ) * - 67 - - + col0 - + col1 AS col2 FROM tab1
----
-3380
-5615
-6053

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9459
SELECT col0, - ( + - CAST( - ( + col2 ) AS SIGNED ) ) FROM tab2
----
46
-23
64
-40
75
-58

skipif mysql # not compatible
query II rowsort label-9459
SELECT col0, - ( + - CAST ( - ( + col2 ) AS INTEGER ) ) FROM tab2
----
46
-23
64
-40
75
-58

query II rowsort
SELECT 79, + col0 FROM tab1
----
79
51
79
85
79
91

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 37 > + - col2
----
87
21
10

query I rowsort
SELECT + col0 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( + col2, col1, - 63, - + col0 * - + col2 + - 79 / + col1 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9463
SELECT ALL col2 AS col2, + ( - 46 ) DIV + + ( - + col1 ) FROM tab2 AS cor0
----
23
0
40
0
58
0

skipif mysql # not compatible
query II rowsort label-9463
SELECT ALL col2 AS col2, + ( - 46 ) / + + ( - + col1 ) FROM tab2 AS cor0
----
23
0
40
0
58
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9464
SELECT COUNT( * ) AS col1, - CAST( NULL AS SIGNED ) AS col1 FROM tab2, tab1 AS cor0
----
9
NULL

skipif mysql # not compatible
query II rowsort label-9464
SELECT COUNT ( * ) AS col1, - CAST ( NULL AS INTEGER ) AS col1 FROM tab2, tab1 AS cor0
----
9
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE col1 + + - col2 >= - ( + + 2 )
----
15
81
47
87
21
10

query I rowsort
SELECT ALL - 66 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to a408108d423d7784b7d610cb779e515a

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9467
SELECT DISTINCT SUM( ALL 18 ) DIV - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-9467
SELECT DISTINCT SUM ( ALL 18 ) / - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-18

query I rowsort
SELECT col0 + + ( - col2 ) FROM tab0 cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE - - col1 + col2 + + 57 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE + col2 * 55 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + col1, + ( - col2 ) AS col2 FROM tab0
----
1
-99
21
-10
81
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9472
SELECT DISTINCT + SUM( + CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9472
SELECT DISTINCT + SUM ( + CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

query II rowsort
SELECT DISTINCT col1 * + + col0 + - + col2 AS col1, col2 * + 92 FROM tab1
----
366
5428
4209
6256
618
8832

query I rowsort
SELECT ALL - 61 AS col2 FROM tab0 WHERE + + col1 = col1
----
-61
-61
-61

query I rowsort
SELECT DISTINCT 11 + - col2 AS col1 FROM tab0
----
-36
-88
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9476
SELECT + ( COUNT( * ) ) AS col2 FROM tab0 AS cor0 WHERE ( - 54 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9476
SELECT + ( COUNT ( * ) ) AS col2 FROM tab0 AS cor0 WHERE ( - 54 ) IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 86 col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

query II rowsort
SELECT + col2 + col2, + col1 FROM tab1 AS cor0 WHERE + ( col2 ) NOT BETWEEN - + col1 + - col2 + + + col2 + col2 AND NULL
----

query I rowsort
SELECT ALL - ( + col2 ) - - col1 AS col2 FROM tab1 AS cor0
----
-21
-54
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 col2 FROM tab0 cor0 WHERE 50 IS NOT NULL
----
15
87
97

query I rowsort
SELECT - + 45 - - - 67 AS col2 FROM tab0 AS cor0
----
-112
-112
-112

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + col0 + - col1, 26 col0 FROM tab0 AS cor0
----
-108
26
-96
26
-98
26

onlyif mysql # aggregate syntax: 
query I rowsort label-9483
SELECT ALL - MAX( - - 21 ) AS col1 FROM tab2 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-9483
SELECT ALL - MAX ( - - 21 ) AS col1 FROM tab2 AS cor0
----
-21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 61, - col0 col2 FROM tab1
----
61
-51
61
-85
61
-91

query I rowsort
SELECT 28 * + ( - - 19 ) AS col1 FROM tab1
----
532
532
532

onlyif mysql # DIV for integer division: 
query I rowsort label-9486
SELECT DISTINCT - col1 DIV + + 28 * + col1 FROM tab0 WHERE NOT col2 DIV - - 66 + - - 47 BETWEEN + col0 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-9486
SELECT DISTINCT - col1 / + + 28 * + col1 FROM tab0 WHERE NOT col2 / - - 66 + - - 47 BETWEEN + col0 AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9487
SELECT ALL SUM( ALL + 63 ) AS col1 FROM tab0
----
189

skipif mysql # not compatible
query I rowsort label-9487
SELECT ALL SUM ( ALL + 63 ) AS col1 FROM tab0
----
189

query II rowsort
SELECT 68 AS col2, 53 + 18 FROM tab0 AS cor0
----
68
71
68
71
68
71

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9489
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - ( - col0 ) * - - col1 + - col2, col1 * CAST( NULL AS SIGNED ) * + 20 * + col2 + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-9489
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - ( - col0 ) * - - col1 + - col2, col1 * CAST ( NULL AS INTEGER ) * + 20 * + col2 + CAST ( NULL AS INTEGER ) )
----

query II rowsort
SELECT + 59 AS col1, - col0 FROM tab1 AS cor0
----
59
-51
59
-85
59
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-9491
SELECT ALL SUM( DISTINCT - 41 ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-41

skipif mysql # not compatible
query I rowsort label-9491
SELECT ALL SUM ( DISTINCT - 41 ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-41

query I rowsort
SELECT DISTINCT 86 * + col1 AS col1 FROM tab1
----
1204
4042
430

query I rowsort
SELECT col1 * - - ( + 90 ) AS col0 FROM tab0 AS cor0
----
1890
7290
90

query II rowsort
SELECT - + 36 AS col2, - col0 + + + col1 FROM tab2 AS cor0
----
-36
-8
-36
13
-36
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9495
SELECT SUM( DISTINCT + 21 ) FROM tab0 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-9495
SELECT SUM ( DISTINCT + 21 ) FROM tab0 AS cor0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-9496
SELECT DISTINCT - MIN( ALL col2 ) + - COUNT( * ) FROM tab2 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-9496
SELECT DISTINCT - MIN ( ALL col2 ) + - COUNT ( * ) FROM tab2 AS cor0
----
-26

query II rowsort
SELECT 36, - col0 + + 4 AS col1 FROM tab1 cor0
----
36
-47
36
-81
36
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-9498
SELECT ( - COUNT( * ) ) * COUNT( DISTINCT col0 ) FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9498
SELECT ( - COUNT ( * ) ) * COUNT ( DISTINCT col0 ) FROM tab0 AS cor0
----
-9

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9499
SELECT * FROM tab0 WHERE + col0 * - col2 - col2 + - 70 - + col2 + + col2 / 8 * - - col1 + - + CAST( NULL AS DECIMAL ) <> + col2
----

skipif mysql # not compatible
query III rowsort label-9499
SELECT * FROM tab0 WHERE + col0 * - col2 - col2 + - 70 - + col2 + + col2 / 8 * - - col1 + - + CAST ( NULL AS REAL ) <> + col2
----

query I rowsort
SELECT - col2 + - + col1 AS col2 FROM tab1
----
-110
-115
-64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 80 * + ( + + 24 ) + 33 + - + col2 + 87 col0 FROM tab0
----
-1810
-1847
-1899

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 * col0 + - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9503
SELECT DISTINCT + + SUM( ( + col0 ) ) AS col1 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-9503
SELECT DISTINCT + + SUM ( ( + col0 ) ) AS col1 FROM tab0 AS cor0
----
199

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9504
SELECT ALL CAST( NULL AS DECIMAL ) - + + col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9504
SELECT ALL CAST ( NULL AS REAL ) - + + col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT 61 + 68 FROM tab0 AS cor0
----
129
129
129

onlyif mysql # DIV for integer division: 
query I rowsort label-9506
SELECT + col2 DIV + 79 AS col1 FROM tab0 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9506
SELECT + col2 / + 79 AS col1 FROM tab0 cor0
----
0
0
1

query II rowsort
SELECT + col1, - 61 AS col0 FROM tab0 AS cor0
----
1
-61
21
-61
81
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-9508
SELECT DISTINCT - + SUM( - 64 ) col2 FROM tab0 cor0
----
192

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9508
SELECT DISTINCT - + SUM ( - 64 ) col2 FROM tab0 cor0
----
192

onlyif mysql # aggregate syntax: 
query I rowsort label-9509
SELECT - - COUNT( * ) + - COUNT( * ) col2 FROM tab1 WHERE NOT col1 + - col1 + + - col1 * + col1 BETWEEN NULL AND - 22 + + col1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9509
SELECT - - COUNT ( * ) + - COUNT ( * ) col2 FROM tab1 WHERE NOT col1 + - col1 + + - col1 * + col1 BETWEEN NULL AND - 22 + + col1
----
0

query I rowsort
SELECT ALL 78 * - + col2 * - + col0 AS col2 FROM tab0
----
54990
67860
749034

query I rowsort
SELECT DISTINCT 1 FROM tab1 WHERE NOT - col0 IS NULL
----
1

query I rowsort
SELECT + col2 * + 62 AS col2 FROM tab0
----
2914
6138
620

query I rowsort
SELECT DISTINCT + ( + + col2 ) AS col2 FROM tab0
----
10
47
99

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 98 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9515
SELECT ALL + SUM( DISTINCT col1 ) AS col1 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-9515
SELECT ALL + SUM ( DISTINCT col1 ) AS col1 FROM tab0 AS cor0
----
103

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 > ( + col1 )
----

query I rowsort
SELECT ALL - + 73 AS col1 FROM tab2 AS cor0
----
-73
-73
-73

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col1 <> col1 / - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9519
SELECT SUM( DISTINCT - + 1 ) * COUNT( * ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-9519
SELECT SUM ( DISTINCT - + 1 ) * COUNT ( * ) FROM tab0
----
-3

query I rowsort
SELECT ALL 52 FROM tab1 WHERE - col2 BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - + col2 + - col1 * 71 FROM tab1 AS cor0
----
-1090
-3405
-414

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9522
SELECT ALL + - col2 * - col2 AS col2 FROM tab0 AS cor0 WHERE + col0 NOT BETWEEN - CAST( - 38 AS DECIMAL ) AND NULL
----
2209

skipif mysql # not compatible
query I rowsort label-9522
SELECT ALL + - col2 * - col2 AS col2 FROM tab0 AS cor0 WHERE + col0 NOT BETWEEN - CAST ( - 38 AS REAL ) AND NULL
----
2209

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - + col0 * - 13 <> col1 AND - col2 + - + ( 76 ) * - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9524
SELECT + MIN( DISTINCT 15 ) FROM tab1 AS cor0 WHERE + 48 IS NOT NULL
----
15

skipif mysql # not compatible
query I rowsort label-9524
SELECT + MIN ( DISTINCT 15 ) FROM tab1 AS cor0 WHERE + 48 IS NOT NULL
----
15

query I rowsort
SELECT ALL col1 + 38 AS col2 FROM tab0 AS cor0
----
119
39
59

onlyif mysql # DIV for integer division: 
query I rowsort label-9526
SELECT ALL col1 + + 43 DIV + col0 FROM tab2 cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-9526
SELECT ALL col1 + + 43 / + col0 FROM tab2 cor0
----
51
67
77

query I rowsort
SELECT ALL col0 FROM tab2 cor0 WHERE NOT ( NULL ) = - col0
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col0 = - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query II rowsort label-9529
SELECT - col0 DIV - col0 AS col0, col2 AS col0 FROM tab0
----
1
10
1
47
1
99

skipif mysql # not compatible
query II rowsort label-9529
SELECT - col0 / - col0 AS col0, col2 AS col0 FROM tab0
----
1
10
1
47
1
99

query III rowsort
SELECT + col1, col1 * 21 * + col0 AS col0, - + col0 FROM tab1
----
9 values hashing to 71be9c32ab3762373b4b247b843b93e4

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col1 + + col0 * + col2 <> 91
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9532
SELECT DISTINCT + COUNT( * ) * + 2 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-9532
SELECT DISTINCT + COUNT ( * ) * + 2 FROM tab0
----
6

query II rowsort
SELECT DISTINCT + col2 + + col2, col0 FROM tab2
----
116
75
46
46
80
64

query I rowsort
SELECT DISTINCT col0 + + 32 + - col0 AS col2 FROM tab0 cor0
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9535
SELECT ALL + col1 * + col2 - col2 + + CAST( NULL AS SIGNED ) * col0 + + col1 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9535
SELECT ALL + col1 * + col2 - col2 + + CAST ( NULL AS INTEGER ) * col0 + + col1 AS col0 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE + - col0 * col1 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 * + col0 > NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9538
SELECT * FROM tab2 AS cor0 WHERE NOT ( + + col2 * ( + + col0 ) < CAST( col0 AS DECIMAL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9538
SELECT * FROM tab2 AS cor0 WHERE NOT ( + + col2 * ( + + col0 ) < CAST ( col0 AS REAL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query II rowsort label-9539
SELECT + col0 DIV + col1 AS col0, - col0 AS col0 FROM tab0 AS cor0
----
0
-15
4
-87
97
-97

skipif mysql # not compatible
query II rowsort label-9539
SELECT + col0 / + col1 AS col0, - col0 AS col0 FROM tab0 AS cor0
----
0
-15
4
-87
97
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9540
SELECT DISTINCT SUM( - + 11 ) FROM tab1 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-9540
SELECT DISTINCT SUM ( - + 11 ) FROM tab1 AS cor0
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9541
SELECT * FROM tab0 AS cor0 WHERE NOT CAST( + - 4 AS SIGNED ) + - col0 > - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9541
SELECT * FROM tab0 AS cor0 WHERE NOT CAST ( + - 4 AS INTEGER ) + - col0 > - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9542
SELECT ALL 4 * - CAST( + col0 AS SIGNED ) AS col2, - col2 FROM tab1 AS cor0
----
-204
-96
-340
-59
-364
-68

skipif mysql # not compatible
query II rowsort label-9542
SELECT ALL 4 * - CAST ( + col0 AS INTEGER ) AS col2, - col2 FROM tab1 AS cor0
----
-204
-96
-340
-59
-364
-68

query I rowsort
SELECT ALL 28 AS col2 FROM tab0 cor0 WHERE 9 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9544
SELECT - MIN( DISTINCT - col2 ) * - COUNT( * ) FROM tab2 AS cor0
----
-174

skipif mysql # not compatible
query I rowsort label-9544
SELECT - MIN ( DISTINCT - col2 ) * - COUNT ( * ) FROM tab2 AS cor0
----
-174

query I rowsort
SELECT - - 36 * col2 AS col0 FROM tab2 AS cor0
----
1440
2088
828

query I rowsort
SELECT ALL - col2 * ( + col2 ) FROM tab2 AS cor0
----
-1600
-3364
-529

query I rowsort
SELECT col0 AS col0 FROM tab2 AS cor0 WHERE NOT col0 + - 50 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9548
SELECT MIN( DISTINCT + 46 ) AS col0 FROM tab0
----
46

skipif mysql # not compatible
query I rowsort label-9548
SELECT MIN ( DISTINCT + 46 ) AS col0 FROM tab0
----
46

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN - col2 AND col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9550
SELECT DISTINCT + col0 DIV + 78 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-9550
SELECT DISTINCT + col0 / + 78 FROM tab0
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9551
SELECT ALL - SUM( ALL - col2 ) FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-9551
SELECT ALL - SUM ( ALL - col2 ) FROM tab2
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-9552
SELECT DISTINCT - ( + MAX( ALL - ( - col1 ) ) ) AS col0 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-9552
SELECT DISTINCT - ( + MAX ( ALL - ( - col1 ) ) ) AS col0 FROM tab0 AS cor0
----
-81

query I rowsort
SELECT DISTINCT - + col0 * + 96 + - ( - col2 ) AS col1 FROM tab0 AS cor0
----
-1393
-8342
-9213

query I rowsort
SELECT ALL ( + 64 ) FROM tab2 AS cor0
----
64
64
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9555
SELECT ALL - COUNT( * ) FROM tab0 cor0 WHERE col1 + - ( - col2 ) > NULL
----
0

skipif mysql # not compatible
query I rowsort label-9555
SELECT ALL - COUNT ( * ) FROM tab0 cor0 WHERE col1 + - ( - col2 ) > NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9556
SELECT + + col0 DIV col0 + col2 col0 FROM tab0 AS cor0
----
100
11
48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9556
SELECT + + col0 / col0 + col2 col0 FROM tab0 AS cor0
----
100
11
48

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) IN ( + col0 + ( + col0 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9558
SELECT ALL + COUNT( * ) FROM tab2 WHERE NOT NULL >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-9558
SELECT ALL + COUNT ( * ) FROM tab2 WHERE NOT NULL >= NULL
----
0

query I rowsort
SELECT + + col2 AS col2 FROM tab1 WHERE col0 * 94 / col1 IS NOT NULL
----
59
68
96

query I rowsort
SELECT DISTINCT + 67 * + col2 * - col1 * + col1 AS col2 FROM tab2
----
-15889720
-17444254
-4008141

query I rowsort
SELECT ALL ( 36 ) * - - 68 FROM tab1
----
2448
2448
2448

query I rowsort
SELECT DISTINCT - col1 + - - col2 + + col2 AS col1 FROM tab2
----
-5
3
49

query II rowsort
SELECT + 81, - col2 AS col0 FROM tab1 AS cor0
----
81
-59
81
-68
81
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-9564
SELECT COUNT( DISTINCT - + 58 ) AS col1 FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-9564
SELECT COUNT ( DISTINCT - + 58 ) AS col1 FROM tab0 cor0
----
1

query I rowsort
SELECT ALL 48 + + + 51 * + + col2 * - - col2 + - col2 AS col2 FROM tab1 cor0
----
177520
235804
469968

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) >= + col1
----

query I rowsort
SELECT ALL 0 * + - col1 + col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9568
SELECT ALL - MAX( + 71 ) col2 FROM tab2
----
-71

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9568
SELECT ALL - MAX ( + 71 ) col2 FROM tab2
----
-71

query I rowsort
SELECT DISTINCT 4 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
4

query I rowsort
SELECT DISTINCT + col2 * + + ( + 41 ) - col0 FROM tab0 AS cor0
----
1912
323
3962

onlyif mysql # aggregate syntax: 
query II rowsort label-9571
SELECT + - COUNT( * ) AS col0, SUM( ALL ( + ( col1 ) ) ) FROM tab1 AS cor0
----
-3
66

skipif mysql # not compatible
query II rowsort label-9571
SELECT + - COUNT ( * ) AS col0, SUM ( ALL ( + ( col1 ) ) ) FROM tab1 AS cor0
----
-3
66

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + ( + - col2 ) + col2 - + col2 * col2 ) >= - col2 + 63 * + 76 / + - col2 * - - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-9573
SELECT + col0 DIV + ( - 67 ) + 39 FROM tab2 AS cor0
----
38
39
39

skipif mysql # not compatible
query I rowsort label-9573
SELECT + col0 / + ( - 67 ) + 39 FROM tab2 AS cor0
----
38
39
39

query I rowsort
SELECT ALL + + col2 * + 64 * - - 77 - - - col2 FROM tab2 AS cor0
----
113321
197080
285766

onlyif mysql # aggregate syntax: 
query I rowsort label-9575
SELECT ALL + - COUNT( - 74 ) col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9575
SELECT ALL + - COUNT ( - 74 ) col2 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT col1 AS col2 FROM tab2 AS cor0 WHERE NOT col0 BETWEEN + col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9577
SELECT DISTINCT - ( + COUNT( * ) ) * - 92 FROM tab0 cor0
----
276

skipif mysql # not compatible
query I rowsort label-9577
SELECT DISTINCT - ( + COUNT ( * ) ) * - 92 FROM tab0 cor0
----
276

query III rowsort
SELECT * FROM tab0 WHERE NOT 73 * - - 86 * - 3 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9579
SELECT ALL SUM( DISTINCT CAST( col2 AS SIGNED ) ) col0 FROM tab2
----
121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9579
SELECT ALL SUM ( DISTINCT CAST ( col2 AS INTEGER ) ) col0 FROM tab2
----
121

onlyif mysql # DIV for integer division: 
query I rowsort label-9580
SELECT ALL 18 DIV - col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9580
SELECT ALL 18 / - col0 FROM tab2
----
0
0
0

query I rowsort
SELECT 73 FROM tab1 WHERE NOT NULL IS NOT NULL
----
73
73
73

onlyif mysql # aggregate syntax: 
query I rowsort label-9582
SELECT COUNT( * ) + + 49 AS col1 FROM tab0, tab0 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-9582
SELECT COUNT ( * ) + + 49 AS col1 FROM tab0, tab0 AS cor0
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9583
SELECT - MAX( CAST( NULL AS SIGNED ) ) AS col0 FROM tab2, tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9583
SELECT - MAX ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2, tab0 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE 38 + - 43 - - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9585
SELECT DISTINCT CAST( + 30 AS SIGNED ) FROM tab2
----
30

skipif mysql # not compatible
query I rowsort label-9585
SELECT DISTINCT CAST ( + 30 AS INTEGER ) FROM tab2
----
30

query I rowsort
SELECT DISTINCT + col1 * col2 + 16 AS col1 FROM tab2
----
1189
3096
3902

query I rowsort
SELECT + 37 + 60 FROM tab2
----
97
97
97

query I rowsort
SELECT + ( - col2 ) + - col0 AS col1 FROM tab1
----
-144
-147
-159

query I rowsort
SELECT DISTINCT col0 + + 95 FROM tab0 AS cor0
----
110
182
192

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( - - ( col1 ) IS NULL )
----

query I rowsort
SELECT ALL - col0 AS col1 FROM tab1 AS cor0 WHERE - 21 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NOT + - col1 <= NULL )
----

query I rowsort
SELECT ALL - 64 + + - col0 + - col2 + - - 81 AS col2 FROM tab2 cor0
----
-116
-52
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-9594
SELECT - + 24 * - + COUNT( * ) AS col0 FROM tab2 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-9594
SELECT - + 24 * - + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 88 col2 FROM tab2 AS cor0
----
88
88
88

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 95 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + col2 * + + col2 AS col1, - col2 AS col2 FROM tab0
----
100
-10
2209
-47
9801
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-9598
SELECT col0 DIV + + 85 FROM tab0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-9598
SELECT col0 / + + 85 FROM tab0
----
0
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9599
SELECT - col2 DIV - - col0 - - col2 FROM tab1
----
59
68
95

skipif mysql # not compatible
query I rowsort label-9599
SELECT - col2 / - - col0 - - col2 FROM tab1
----
59
68
95

query III rowsort
SELECT ALL + + col2 + 1 AS col0, ( + + 98 ) AS col0, col0 AS col0 FROM tab0 WHERE NOT ( NULL ) >= 99
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col2 + - 75 IS NOT NULL
----

query I rowsort
SELECT ALL + col0 + + + 92 + - col1 AS col0 FROM tab1
----
129
136
172

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 30 - - 33 * col0 + + col2 NOT BETWEEN - col0 AND - col2 * - + col0 + - + 10 * - - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 44 + + ( - col0 ) FROM tab1 AS cor0
----
-41
-47
-7

query I rowsort
SELECT DISTINCT - 95 * + 69 AS col1 FROM tab1 AS cor0
----
-6555

query I rowsort
SELECT ALL - col1 * + 31 AS col1 FROM tab2 AS cor0
----
-1581
-2077
-2387

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9607
SELECT + CAST( NULL AS SIGNED ), col2 AS col0 FROM tab2
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-9607
SELECT + CAST ( NULL AS INTEGER ), col2 AS col0 FROM tab2
----
NULL
23
NULL
40
NULL
58

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL BETWEEN 57 AND + + col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 / - col1 = - + ( - 26 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - + 45 AS col2 FROM tab2 AS cor0 WHERE NOT col1 * 48 BETWEEN - 22 AND - col2 / + col2
----
-45
-45
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-9611
SELECT + + 96 DIV + 99 - col2 AS col2 FROM tab0 AS cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-9611
SELECT + + 96 / + 99 - col2 AS col2 FROM tab0 AS cor0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9612
SELECT - SUM( 8 ) FROM tab1 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-9612
SELECT - SUM ( 8 ) FROM tab1 AS cor0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-9613
SELECT + COUNT( * ) * - COUNT( * ) * + 56 AS col1 FROM tab0 AS cor0
----
-504

skipif mysql # not compatible
query I rowsort label-9613
SELECT + COUNT ( * ) * - COUNT ( * ) * + 56 AS col1 FROM tab0 AS cor0
----
-504

query II rowsort
SELECT + + col1 AS col2, 26 * - col2 FROM tab1 AS cor0
----
14
-2496
47
-1768
5
-1534

query II rowsort
SELECT DISTINCT + col1 AS col0, + 15 * - col1 AS col1 FROM tab1 AS cor0 WHERE NOT + col0 IS NULL
----
14
-210
47
-705
5
-75

query I rowsort
SELECT ALL + 89 FROM tab0 WHERE - col1 IS NOT NULL
----
89
89
89

query II rowsort
SELECT DISTINCT col1, 72 FROM tab1
----
14
72
47
72
5
72

query I rowsort
SELECT ALL + + col0 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 + + ( - col2 ) <= NULL
----

query I rowsort
SELECT + col1 * col2 + + 17 AS col1 FROM tab0 AS cor0
----
116
227
3824

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 + - - 5, + 73 col2 FROM tab1 AS cor0 WHERE NOT NULL <= - col2
----

query I rowsort
SELECT DISTINCT col0 + + + 26 FROM tab1 AS cor0
----
111
117
77

query II rowsort
SELECT - - 72 * + 84, + col2 FROM tab1 AS cor0
----
6048
59
6048
68
6048
96

query II rowsort
SELECT 75 AS col0, - 93 AS col1 FROM tab2 AS cor0
----
75
-93
75
-93
75
-93

query I rowsort
SELECT - + col1 * col1 + ( - ( ( - - 36 ) ) ) * col0 AS col2 FROM tab1 AS cor0 WHERE ( NOT NULL <> NULL )
----

query I rowsort
SELECT DISTINCT ( + + col1 ) + col2 + col2 AS col1 FROM tab1
----
123
183
206

query I rowsort
SELECT DISTINCT - 27 + + + col2 FROM tab0 AS cor0
----
-17
20
72

query I rowsort
SELECT ALL + col2 + + - col0 AS col2 FROM tab2 AS cor0
----
-17
-23
-24

query I rowsort
SELECT DISTINCT - col2 - - col1 AS col1 FROM tab1 cor0
----
-21
-54
-82

query I rowsort
SELECT DISTINCT - col1 - - - 27 FROM tab1 AS cor0
----
-32
-41
-74

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 BETWEEN 49 AND NULL
----
15
81
47

query I rowsort
SELECT ALL - col2 - - ( - col0 ) + + 81 + + col0 - col0 * + 60 AS col1 FROM tab1
----
-3075
-5078
-5447

onlyif mysql # aggregate syntax: 
query I rowsort label-9633
SELECT DISTINCT + COUNT( * ) * + 48 FROM tab1
----
144

skipif mysql # not compatible
query I rowsort label-9633
SELECT DISTINCT + COUNT ( * ) * + 48 FROM tab1
----
144

query I rowsort
SELECT DISTINCT - + col2 AS col0 FROM tab2 WHERE NOT + - col0 / - 36 IS NULL
----
-23
-40
-58

query I rowsort
SELECT + 66 * 3 AS col2 FROM tab0
----
198
198
198

onlyif mysql # aggregate syntax: 
query I rowsort label-9636
SELECT MIN( DISTINCT 72 ) AS col0 FROM tab1
----
72

skipif mysql # not compatible
query I rowsort label-9636
SELECT MIN ( DISTINCT 72 ) AS col0 FROM tab1
----
72

query I rowsort
SELECT DISTINCT - + ( 79 ) AS col0 FROM tab0 AS cor0
----
-79

query I rowsort
SELECT DISTINCT 52 AS col1 FROM tab2 AS cor0
----
52

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 86 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ( + 42 ) FROM tab2 WHERE NOT NULL IN ( 30 * - col0 + + 52 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9641
SELECT DISTINCT COUNT( + 20 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9641
SELECT DISTINCT COUNT ( + 20 ) AS col1 FROM tab2
----
3

query I rowsort
SELECT col2 - 14 AS col1 FROM tab1
----
45
54
82

query I rowsort
SELECT 93 AS col1 FROM tab0 WHERE - 82 + - col1 IS NOT NULL
----
93
93
93

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab1 WHERE NOT col0 > + col1 + - 34
----

query III rowsort
SELECT * FROM tab1 WHERE - col0 * col0 NOT IN ( col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col2 * - col0 FROM tab2 WHERE NOT 28 IN ( col2 )
----
1058
2560
4350

query I rowsort
SELECT + col1 + 33 AS col1 FROM tab2
----
100
110
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 34 ) col0 FROM tab0
----
-34
-34
-34

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) NOT IN ( 53 )
----

query III rowsort
SELECT * FROM tab0 WHERE 9 <= NULL
----

query I rowsort
SELECT 18 + - col1 * + col1 AS col0 FROM tab0
----
-423
-6543
17

query I rowsort
SELECT DISTINCT 13 AS col1 FROM tab2 WHERE NOT ( col1 ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9653
SELECT DISTINCT CAST( NULL AS SIGNED ) * + MIN( + col1 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9653
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + MIN ( + col1 ) FROM tab1
----
NULL

query I rowsort
SELECT ALL - 61 * - col2 AS col1 FROM tab1
----
3599
4148
5856

onlyif mysql # aggregate syntax: 
query I rowsort label-9655
SELECT DISTINCT - ( MAX( ALL 62 ) ) * + COUNT( * ) AS col2 FROM tab1
----
-186

skipif mysql # not compatible
query I rowsort label-9655
SELECT DISTINCT - ( MAX ( ALL 62 ) ) * + COUNT ( * ) AS col2 FROM tab1
----
-186

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 / 44 col1 FROM tab1 WHERE NOT - col1 * - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9657
SELECT DISTINCT 23 * SUM( ALL + ( - 10 ) ) AS col0 FROM tab1
----
-690

skipif mysql # not compatible
query I rowsort label-9657
SELECT DISTINCT 23 * SUM ( ALL + ( - 10 ) ) AS col0 FROM tab1
----
-690

onlyif mysql # aggregate syntax: 
query I rowsort label-9658
SELECT DISTINCT - COUNT( * ) + ( 48 + - 65 ) * - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9658
SELECT DISTINCT - COUNT ( * ) + ( 48 + - 65 ) * - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT ALL ( 59 ) + col0 FROM tab0 cor0
----
146
156
74

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 * + col1 < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9661
SELECT DISTINCT 56 + + col1 DIV - col1 FROM tab0 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-9661
SELECT DISTINCT 56 + + col1 / - col1 FROM tab0 AS cor0
----
55

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL = + 69
----

query I rowsort
SELECT 1 + 74 FROM tab2 cor0
----
75
75
75

query I rowsort
SELECT DISTINCT 64 - + 43 AS col0 FROM tab0 cor0 CROSS JOIN tab2
----
21

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col2 NOT BETWEEN ( col2 ) AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( 17 / col0 ) IS NULL
----

query I rowsort
SELECT ALL - 70 + 44 AS col0 FROM tab1 AS cor0
----
-26
-26
-26

query I rowsort
SELECT DISTINCT col2 FROM tab0 AS cor0 WHERE col2 > ( + col0 )
----
47
99

query I rowsort
SELECT ALL col2 + + 9 AS col1 FROM tab0 AS cor0
----
108
19
56

query I rowsort
SELECT 2 FROM tab0 cor0 WHERE 84 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col2 >= ( + 23 )
----

query I rowsort
SELECT - + col1 - col2 AS col2 FROM tab0 AS cor0
----
-100
-128
-31

query I rowsort
SELECT ALL + col2 * 65 + col0 AS col1 FROM tab2 AS cor0
----
1541
2664
3845

onlyif mysql # aggregate syntax: 
query I rowsort label-9674
SELECT ALL - 64 * - ( + 39 * MIN( ALL col0 * 19 ) ) FROM tab1 cor0 WHERE 45 IS NOT NULL
----
2418624

skipif mysql # not compatible
query I rowsort label-9674
SELECT ALL - 64 * - ( + 39 * MIN ( ALL col0 * 19 ) ) FROM tab1 cor0 WHERE 45 IS NOT NULL
----
2418624

query I rowsort
SELECT DISTINCT 29 * + col1 AS col1 FROM tab2
----
1479
1943
2233

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col0 = ( col1 * col2 )
----

query I rowsort
SELECT DISTINCT + ( - 67 ) * col1 FROM tab2
----
-3417
-4489
-5159

onlyif mysql # aggregate syntax: 
query I rowsort label-9678
SELECT ALL + 92 * COUNT( * ) AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
276

skipif mysql # not compatible
query I rowsort label-9678
SELECT ALL + 92 * COUNT ( * ) AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
276

query I rowsort
SELECT + 66 * + col2 AS col0 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
3102
6534
660

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - 71 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col1 BETWEEN + col2 * col2 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE NOT + 90 NOT BETWEEN NULL AND 87
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 NOT IN ( col0 + - col1 * col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9684
SELECT ALL 48 + + - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
45

skipif mysql # not compatible
query I rowsort label-9684
SELECT ALL 48 + + - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
45

query I rowsort
SELECT ALL + 36 + - col1 AS col0 FROM tab1 AS cor0
----
-11
22
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9686
SELECT + col1 * - + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9686
SELECT + col1 * - + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9687
SELECT - + SUM( DISTINCT - 64 ) AS col1 FROM tab2 AS cor0
----
64

skipif mysql # not compatible
query I rowsort label-9687
SELECT - + SUM ( DISTINCT - 64 ) AS col1 FROM tab2 AS cor0
----
64

query I rowsort
SELECT - 5 * + 54 * col2 + + 74 AS col1 FROM tab1 AS cor0
----
-15856
-18286
-25846

query I rowsort
SELECT DISTINCT col2 + + 20 AS col2 FROM tab2 AS cor0
----
43
60
78

query I rowsort
SELECT ALL - 37 * 5 * - + col1 AS col0 FROM tab1 AS cor0
----
2590
8695
925

query I rowsort
SELECT + - col1 * col1 + + col1 * - col1 AS col0 FROM tab2 AS cor0
----
-11858
-5202
-8978

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( 59 ) AND 41 / + 69
----

query III rowsort
SELECT ALL * FROM tab1 WHERE col0 + + + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col0 * - + ( - col2 ) FROM tab1
----
4896
5015
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-9695
SELECT - 74 + - COUNT( * ) FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-9695
SELECT - 74 + - COUNT ( * ) FROM tab2
----
-77

query I rowsort
SELECT DISTINCT + col1 * - col2 + + col1 AS col0 FROM tab0 WHERE - + 69 IS NOT NULL
----
-189
-3726
-98

query I rowsort
SELECT DISTINCT - 2 * + 74 * 31 AS col0 FROM tab0
----
-4588

query I rowsort
SELECT DISTINCT - 97 + + - 33 - + 90 FROM tab2
----
-220

query II rowsort
SELECT ALL col2 * + - col2 AS col2, col0 FROM tab0
----
-100
87
-2209
15
-9801
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 56 * + col0 col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 + col1 AS col1 FROM tab1 AS cor0 WHERE - col1 > ( - - col2 )
----

query I rowsort
SELECT col2 - col0 - + col0 + ( - col2 ) * - col0 AS col2 FROM tab2
----
2472
4258
989

query III rowsort
SELECT * FROM tab1 WHERE ( - + 7 ) IS NULL
----

query I rowsort
SELECT ALL - 18 + col2 FROM tab0
----
-8
29
81

query I rowsort
SELECT DISTINCT - + col1 * col2 * 95 + col1 AS col1 FROM tab0 AS cor0
----
-19929
-361584
-9404

query I rowsort
SELECT - + col2 * - + ( 44 ) + + col1 + col2 AS col1 FROM tab2 cor0
----
1086
1877
2677

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9707
SELECT - col1 / ( - col1 ) / - ( + - col2 ) * + col1 - - CAST( NULL AS SIGNED ) * - 42 + 46 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9707
SELECT - col1 / ( - col1 ) / - ( + - col2 ) * + col1 - - CAST ( NULL AS INTEGER ) * - 42 + 46 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 72 + - col1 * 22 col0 FROM tab2 AS cor0
----
-1050
-1402
-1622

query I rowsort
SELECT DISTINCT - 54 FROM tab2 AS cor0 WHERE NOT NULL >= col0 * 92
----

query I rowsort
SELECT ALL col1 * + col0 + col2 + col1 * + col1 + col2 AS col2 FROM tab2 AS cor0
----
10937
4993
9630

query I rowsort
SELECT ALL + col1 - + col1 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col1 + - 84 * + + col2 * - 35 AS col2 FROM tab1 AS cor0
----
173465
199967
282254

onlyif mysql # DIV for integer division: 
query I rowsort label-9713
SELECT + 15 DIV + 77 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9713
SELECT + 15 / + 77 FROM tab2 cor0
----
0
0
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND 40
----

query I rowsort
SELECT + 92 * + ( - col2 ) + 59 * 99 FROM tab1 AS cor0 WHERE NOT col2 > + col2 * col1
----
-2991
-415
413

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9716
SELECT DISTINCT * FROM tab2 WHERE ( NOT ( NOT - ( - ( col1 ) ) * - CAST( NULL AS DECIMAL ) < ( 46 ) ) )
----

skipif mysql # not compatible
query III rowsort label-9716
SELECT DISTINCT * FROM tab2 WHERE ( NOT ( NOT - ( - ( col1 ) ) * - CAST ( NULL AS REAL ) < ( 46 ) ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT 56 AS col1, - 33, ( - col1 ) col0 FROM tab1
----
9 values hashing to 872dbe9eb56a3c545e86c01434790ea5

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( ( NULL ) BETWEEN + 78 AND - col0 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + - 67 > NULL
----

query I rowsort
SELECT DISTINCT + 96 * col1 FROM tab1
----
1344
4512
480

onlyif mysql # aggregate syntax: 
query I rowsort label-9721
SELECT COUNT( ALL - 30 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9721
SELECT COUNT ( ALL - 30 ) FROM tab2
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9722
SELECT - COUNT( * ) - COUNT( * ) + + 4 * + CAST( NULL AS SIGNED ) * + COUNT( * ) FROM tab1, tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9722
SELECT - COUNT ( * ) - COUNT ( * ) + + 4 * + CAST ( NULL AS INTEGER ) * + COUNT ( * ) FROM tab1, tab0 cor0
----
NULL

query II rowsort
SELECT + col1 AS col1, 79 * + col1 AS col1 FROM tab2
----
51
4029
67
5293
77
6083

query III rowsort
SELECT * FROM tab0 WHERE NOT + ( - col2 ) IN ( col0 + col0 + + 4 * 33 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 26 * - col1 FROM tab1
----
1222
130
364

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9726
SELECT COUNT( * ) * - - MAX( - 9 ) DIV + MIN( ALL - col1 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9726
SELECT COUNT ( * ) * - - MAX ( - 9 ) / + MIN ( ALL - col1 ) FROM tab2
----
0

query II rowsort
SELECT ALL - col0, + 35 AS col0 FROM tab2
----
-46
35
-64
35
-75
35

onlyif mysql # aggregate syntax: 
query I rowsort label-9728
SELECT - COUNT( * ) * - COUNT( DISTINCT + 30 * col2 ) FROM tab1 WHERE NOT + col2 + + col1 * + col0 * - - 90 / + col0 IS NULL
----
9

skipif mysql # not compatible
query I rowsort label-9728
SELECT - COUNT ( * ) * - COUNT ( DISTINCT + 30 * col2 ) FROM tab1 WHERE NOT + col2 + + col1 * + col0 * - - 90 / + col0 IS NULL
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9729
SELECT ALL MIN( DISTINCT + - col0 ) FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-9729
SELECT ALL MIN ( DISTINCT + - col0 ) FROM tab1
----
-91

query I rowsort
SELECT 8 FROM tab2 WHERE NOT NULL IS NOT NULL
----
8
8
8

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 * + col1 <= - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9732
SELECT DISTINCT 32 DIV SUM( DISTINCT - + col1 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9732
SELECT DISTINCT 32 / SUM ( DISTINCT - + col1 ) FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9733
SELECT ALL - 73 DIV - col2 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-9733
SELECT ALL - 73 / - col2 FROM tab1
----
0
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9734
SELECT DISTINCT + CAST( col1 AS SIGNED ) + col1 AS col2 FROM tab2
----
102
134
154

skipif mysql # not compatible
query I rowsort label-9734
SELECT DISTINCT + CAST ( col1 AS INTEGER ) + col1 AS col2 FROM tab2
----
102
134
154

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9735
SELECT + CAST( NULL AS SIGNED ) + + col2 AS col2, ( + - 63 ) FROM tab2 AS cor0
----
NULL
-63
NULL
-63
NULL
-63

skipif mysql # not compatible
query II rowsort label-9735
SELECT + CAST ( NULL AS INTEGER ) + + col2 AS col2, ( + - 63 ) FROM tab2 AS cor0
----
NULL
-63
NULL
-63
NULL
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9736
SELECT DISTINCT + CAST( 45 AS SIGNED ) + + + col1 * CAST( - col2 AS SIGNED ) FROM tab2 AS cor0
----
-1128
-3035
-3841

skipif mysql # not compatible
query I rowsort label-9736
SELECT DISTINCT + CAST ( 45 AS INTEGER ) + + + col1 * CAST ( - col2 AS INTEGER ) FROM tab2 AS cor0
----
-1128
-3035
-3841

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col0 * + + 20 <= NULL
----

query I rowsort
SELECT ALL + - ( - + col2 ) + - + col2 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT - 8 FROM tab1 AS cor0 WHERE col1 * - 19 / 85 - - col0 * + - 72 = ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9740
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( - CAST( col1 AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-9740
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( - CAST ( col1 AS INTEGER ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9741
SELECT ALL - - MAX( ALL + 93 ) FROM tab2 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-9741
SELECT ALL - - MAX ( ALL + 93 ) FROM tab2 AS cor0
----
93

query I rowsort
SELECT DISTINCT + + ( + 50 ) AS col2 FROM tab1 AS cor0
----
50

query I rowsort
SELECT + 93 * - + 19 AS col1 FROM tab0 cor0
----
-1767
-1767
-1767

query I rowsort
SELECT - 98 * col2 FROM tab1
----
-5782
-6664
-9408

query I rowsort
SELECT - - col1 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 AS col2, 62 col1 FROM tab1
----
-59
62
-68
62
-96
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9747
SELECT + 65 * - + COUNT( * ) AS col0 FROM tab1
----
-195

skipif mysql # not compatible
query I rowsort label-9747
SELECT + 65 * - + COUNT ( * ) AS col0 FROM tab1
----
-195

query I rowsort
SELECT ALL + - 26 AS col1 FROM tab1 WHERE 43 <= + 31
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9749
SELECT DISTINCT 85 + + + ( COUNT( * ) ) col0 FROM tab0
----
88

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9749
SELECT DISTINCT 85 + + + ( COUNT ( * ) ) col0 FROM tab0
----
88

query I rowsort
SELECT DISTINCT - 69 * - col0 + + col2 - - + col1 FROM tab1 AS cor0
----
3629
5929
6394

query I rowsort
SELECT ALL + - col2 - - - 67 FROM tab0 AS cor0
----
-114
-166
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9752
SELECT ALL CAST( NULL AS SIGNED ) - + - 34 / + + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9752
SELECT ALL CAST ( NULL AS INTEGER ) - + - 34 / + + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 4 + ( - col2 ) FROM tab0
----
-103
-14
-51

query I rowsort
SELECT 9 + col2 AS col0 FROM tab2
----
32
49
67

onlyif mysql # DIV for integer division: 
query I rowsort label-9755
SELECT ( - + 87 ) DIV - col2 FROM tab0
----
0
1
8

skipif mysql # not compatible
query I rowsort label-9755
SELECT ( - + 87 ) / - col2 FROM tab0
----
0
1
8

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab0 cor1 WHERE ( NOT NULL IS NOT NULL )
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query I rowsort
SELECT - col2 FROM tab1 cor0 WHERE NOT ( NULL ) < NULL
----

query I rowsort
SELECT DISTINCT + - col2 * - 45 AS col2 FROM tab0 AS cor0
----
2115
4455
450

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9759
SELECT ALL + COUNT( * ) / + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9759
SELECT ALL + COUNT ( * ) / + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL <= NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9760
SELECT + 46 * + col2 + + 57 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN + col0 - + - CAST( NULL AS SIGNED ) AND - 80
----

skipif mysql # not compatible
query I rowsort label-9760
SELECT + 46 * + col2 + + 57 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN + col0 - + - CAST ( NULL AS INTEGER ) AND - 80
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9761
SELECT CAST( + ( - ( col0 ) ) AS SIGNED ) col2, - col2 FROM tab1 AS cor0
----
-51
-96
-85
-59
-91
-68

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9761
SELECT CAST ( + ( - ( col0 ) ) AS INTEGER ) col2, - col2 FROM tab1 AS cor0
----
-51
-96
-85
-59
-91
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-9762
SELECT + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - col1
----
0

skipif mysql # not compatible
query I rowsort label-9762
SELECT + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - col1
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE ( NULL ) BETWEEN NULL AND + col0 + + + 88 + col2 * - - 58
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9764
SELECT ( - 28 ) AS col0, COUNT( * ) AS col1 FROM tab2 cor0
----
-28
3

skipif mysql # not compatible
query II rowsort label-9764
SELECT ( - 28 ) AS col0, COUNT ( * ) AS col1 FROM tab2 cor0
----
-28
3

query I rowsort
SELECT ALL + 35 * + col2 AS col2 FROM tab0
----
1645
3465
350

onlyif mysql # aggregate syntax: 
query I rowsort label-9766
SELECT DISTINCT MAX( DISTINCT - + col0 ) FROM tab1 WHERE NOT + col0 * + col2 * + 26 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9766
SELECT DISTINCT MAX ( DISTINCT - + col0 ) FROM tab1 WHERE NOT + col0 * + col2 * + 26 IS NOT NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 59 IS NULL
----

query I rowsort
SELECT ALL col2 + + - 78 * ( 45 ) AS col1 FROM tab0
----
-3411
-3463
-3500

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 + - - col0 col0, 31 AS col2 FROM tab0 AS cor0
----
196
31
62
31
97
31

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE NULL >= NULL
----

query I rowsort
SELECT DISTINCT + + 86 + - - col2 + col2 AS col2 FROM tab0 AS cor0
----
106
180
284

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9772
SELECT ALL + COUNT( * ) DIV - - COUNT( * ) AS col2 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9772
SELECT ALL + COUNT ( * ) / - - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
1

query I rowsort
SELECT DISTINCT 3 + + 83 FROM tab2 AS cor0 WHERE NULL IS NULL
----
86

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE + 24 * + col0 = NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 67 - - col0 IS NULL AND + col0 IS NOT NULL
----

query II rowsort
SELECT DISTINCT + + 5 + col1 AS col1, col1 AS col0 FROM tab0 AS cor0
----
26
21
6
1
86
81

query II rowsort
SELECT ALL col0, + col2 * ( - col0 ) * + col1 AS col1 FROM tab2 AS cor0
----
46
-53958
64
-197120
75
-291450

onlyif mysql # aggregate syntax: 
query I rowsort label-9778
SELECT + COUNT( * ) + - + COUNT( * ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9778
SELECT + COUNT ( * ) + - + COUNT ( * ) AS col1 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9779
SELECT ALL + SUM( - 10 ) AS col2 FROM tab1 WHERE NOT ( + 48 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9779
SELECT ALL + SUM ( - 10 ) AS col2 FROM tab1 WHERE NOT ( + 48 ) IS NOT NULL
----
NULL

query II rowsort
SELECT + col0 + - + col0 AS col0, 0 * - - ( - 6 ) FROM tab1
----
0
0
0
0
0
0

query III rowsort
SELECT * FROM tab2 WHERE - 34 + - col2 + + - 30 BETWEEN col0 + col0 AND - col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9782
SELECT - MIN( + - col2 ) * + - 96 * - 26 + - - 62 DIV + SUM( DISTINCT + + col0 ) AS col1 FROM tab2
----
144768

skipif mysql # not compatible
query I rowsort label-9782
SELECT - MIN ( + - col2 ) * + - 96 * - 26 + - - 62 / + SUM ( DISTINCT + + col0 ) AS col1 FROM tab2
----
144768

query I rowsort
SELECT ALL + col0 - 48 * + col1 AS col0 FROM tab2 AS cor0
----
-2402
-3141
-3632

onlyif mysql # DIV for integer division: 
query I rowsort label-9784
SELECT DISTINCT + col1 DIV + + ( - + 7 ) AS col1 FROM tab0 AS cor0 WHERE ( NOT ( NULL ) IS NOT NULL ) OR NULL IN ( col2 )
----
-11
-3
0

skipif mysql # not compatible
query I rowsort label-9784
SELECT DISTINCT + col1 / + + ( - + 7 ) AS col1 FROM tab0 AS cor0 WHERE ( NOT ( NULL ) IS NOT NULL ) OR NULL IN ( col2 )
----
-11
-3
0

query II rowsort
SELECT ALL - col1 - + 93 AS col0, 81 - - 73 AS col1 FROM tab2 AS cor0
----
-144
154
-160
154
-170
154

query II rowsort
SELECT ALL - + 15 * + ( col2 ) + col1 * - col1, 49 AS col1 FROM tab2 cor0
----
-2946
49
-5359
49
-6529
49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 - 26 * - col1 col2 FROM tab1 AS cor0
----
1313
215
415

onlyif mysql # aggregate syntax: 
query I rowsort label-9788
SELECT DISTINCT COUNT( * ) - + + 99 AS col1 FROM tab0
----
-96

skipif mysql # not compatible
query I rowsort label-9788
SELECT DISTINCT COUNT ( * ) - + + 99 AS col1 FROM tab0
----
-96

query I rowsort
SELECT 73 + 27 - ( + + 59 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9790
SELECT + col1 * CAST( - + col1 AS SIGNED ) AS col2 FROM tab2
----
-2601
-4489
-5929

skipif mysql # not compatible
query I rowsort label-9790
SELECT + col1 * CAST ( - + col1 AS INTEGER ) AS col2 FROM tab2
----
-2601
-4489
-5929

query II rowsort
SELECT ALL + col1 AS col1, col0 AS col2 FROM tab1 AS cor0
----
14
51
47
91
5
85

query II rowsort
SELECT DISTINCT + + col0 AS col1, col1 * col2 + 54 + - 24 AS col1 FROM tab2 AS cor0
----
46
1203
64
3110
75
3916

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9793
SELECT * FROM tab2 cor0 WHERE NOT ( NULL ) IN ( - + col2 * + + col0 * - 93 * + CAST( 57 AS SIGNED ) / + - col0 + - col0 + + 20 / + - ( + 35 ) * - - col2 + - 24 * col2 )
----

skipif mysql # not compatible
query III rowsort label-9793
SELECT * FROM tab2 cor0 WHERE NOT ( NULL ) IN ( - + col2 * + + col0 * - 93 * + CAST ( 57 AS INTEGER ) / + - col0 + - col0 + + 20 / + - ( + 35 ) * - - col2 + - 24 * col2 )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + col1 * + 26 + + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col2 * + col0 FROM tab1 AS cor0 WHERE NOT 11 <= - + col1
----
4896
5015
6188

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-9796
SELECT * FROM tab2 AS cor0 WHERE NOT ( - 21 / + col1 IN ( + col1, col0 * + - 19 - - 53 * + CAST( + + col1 AS SIGNED ) * - + CAST( NULL AS DECIMAL ) + - 79 * + 99 ) )
----

skipif mysql # not compatible
query III rowsort label-9796
SELECT * FROM tab2 AS cor0 WHERE NOT ( - 21 / + col1 IN ( + col1, col0 * + - 19 - - 53 * + CAST ( + + col1 AS INTEGER ) * - + CAST ( NULL AS REAL ) + - 79 * + 99 ) )
----

query II rowsort
SELECT ALL - - col1, 43 AS col1 FROM tab0 cor0
----
1
43
21
43
81
43

query II rowsort
SELECT DISTINCT + col2, - col2 + col0 FROM tab2 AS cor0
----
23
23
40
24
58
17

onlyif mysql # aggregate syntax: 
query I rowsort label-9799
SELECT ALL - ( - COUNT( * ) ) + COUNT( * ) + + COUNT( * ) FROM tab1 AS cor0 WHERE NULL > NULL
----
0

skipif mysql # not compatible
query I rowsort label-9799
SELECT ALL - ( - COUNT ( * ) ) + COUNT ( * ) + + COUNT ( * ) FROM tab1 AS cor0 WHERE NULL > NULL
----
0

query II rowsort
SELECT ALL + col0 / + col2 + 65, col0 / + + col2 FROM tab0 WHERE - ( - 85 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9801
SELECT DISTINCT + SUM( ALL - ( + - col2 ) ) FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-9801
SELECT DISTINCT + SUM ( ALL - ( + - col2 ) ) FROM tab0
----
156

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - + col0 * col1 * - col1 col0 FROM tab2
----
-24285184
-25250625
-5503716

onlyif mysql # aggregate syntax: 
query I rowsort label-9803
SELECT DISTINCT COUNT( ALL + 5 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9803
SELECT DISTINCT COUNT ( ALL + 5 ) FROM tab2
----
3

query II rowsort
SELECT + col2 * + 95 AS col0, - col2 FROM tab2
----
2185
-23
3800
-40
5510
-58

query I rowsort
SELECT ALL - 24 * - col1 * + 33 FROM tab1
----
11088
37224
3960

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9806
SELECT col1 * - CAST( NULL AS DECIMAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9806
SELECT col1 * - CAST ( NULL AS REAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9807
SELECT ALL CAST( + ( + col2 ) AS SIGNED ) FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-9807
SELECT ALL CAST ( + ( + col2 ) AS INTEGER ) FROM tab0
----
10
47
99

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col0 BETWEEN + col2 AND + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 57 + - col2 col2 FROM tab1 AS cor0
----
-11
-2
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9810
SELECT DISTINCT - 19 + ( CAST( col2 AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
40
49
77

skipif mysql # not compatible
query I rowsort label-9810
SELECT DISTINCT - 19 + ( CAST ( col2 AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
40
49
77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9811
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) = + CAST( NULL AS SIGNED ) * - col1
----

skipif mysql # not compatible
query III rowsort label-9811
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) = + CAST ( NULL AS INTEGER ) * - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9812
SELECT + 37 DIV + + 7 + - 44 FROM tab0 cor0 WHERE col0 NOT IN ( col2, col2 + - - col0, + 56 * + col2 + - 90 * - ( + - 90 ) * - col2 + col2 )
----
-39
-39
-39

skipif mysql # not compatible
query I rowsort label-9812
SELECT + 37 / + + 7 + - 44 FROM tab0 cor0 WHERE col0 NOT IN ( col2, col2 + - - col0, + 56 * + col2 + - 90 * - ( + - 90 ) * - col2 + col2 )
----
-39
-39
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9813
SELECT ALL 40 + - + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9813
SELECT ALL 40 + - + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( ( + col0 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 43 col0 FROM tab0
----
43

query I rowsort
SELECT DISTINCT + - 42 FROM tab2 WHERE NOT - - col1 IS NULL
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-9817
SELECT - COUNT( * ) - + - ( - COUNT( * ) ) * - - COUNT( * ) FROM tab2
----
-12

skipif mysql # not compatible
query I rowsort label-9817
SELECT - COUNT ( * ) - + - ( - COUNT ( * ) ) * - - COUNT ( * ) FROM tab2
----
-12

query I rowsort
SELECT col0 - + + col0 + - 14 AS col1 FROM tab2
----
-14
-14
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9819
SELECT col2 - - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9819
SELECT col2 - - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( - - 20 ) * 20 * ( - 90 ) AS col0 FROM tab0
----
-36000

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9821
SELECT DISTINCT - - col0 + CAST( - CAST( + CAST( - col0 AS SIGNED ) AS DECIMAL ) AS SIGNED ) col2 FROM tab2 cor0
----
128
150
92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9821
SELECT DISTINCT - - col0 + CAST ( - CAST ( + CAST ( - col0 AS INTEGER ) AS REAL ) AS INTEGER ) col2 FROM tab2 cor0
----
128
150
92

onlyif mysql # DIV for integer division: 
query I rowsort label-9822
SELECT DISTINCT - + col0 DIV + col0 - + col0 AS col2 FROM tab0 AS cor0
----
-16
-88
-98

skipif mysql # not compatible
query I rowsort label-9822
SELECT DISTINCT - + col0 / + col0 - + col0 AS col2 FROM tab0 AS cor0
----
-16
-88
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-9823
SELECT DISTINCT - + 84 - COUNT( - col1 ) AS col2 FROM tab2 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-9823
SELECT DISTINCT - + 84 - COUNT ( - col1 ) AS col2 FROM tab2 AS cor0
----
-87

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9824
SELECT - ( - - 2 ) + - CAST( NULL AS DECIMAL ) / + COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-9824
SELECT - ( - - 2 ) + - CAST ( NULL AS REAL ) / + COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

query II rowsort
SELECT + col2 * - 65, + col1 AS col0 FROM tab0 AS cor0
----
-3055
81
-6435
1
-650
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9826
SELECT + SUM( - - 59 ) DIV - 64 FROM tab0 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-9826
SELECT + SUM ( - - 59 ) / - 64 FROM tab0 AS cor0
----
-2

query II rowsort
SELECT DISTINCT col0 AS col1, - 40 * - ( - + 98 ) * - 6 FROM tab1
----
51
23520
85
23520
91
23520

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9828
SELECT ALL CAST( NULL AS SIGNED ) * + + 11 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9828
SELECT ALL CAST ( NULL AS INTEGER ) * + + 11 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col0 + col1 > - + col2 * + + 20
----

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab0 AS cor0 WHERE NOT + col0 IS NOT NULL
----

query II rowsort
SELECT + - col2, col0 * + col1 AS col1 FROM tab0 AS cor0
----
-10
1827
-47
1215
-99
97

query I rowsort
SELECT DISTINCT col1 * + col0 * - + 21 AS col0 FROM tab2
----
-103488
-105525
-49266

onlyif mysql # aggregate syntax: 
query I rowsort label-9833
SELECT - COUNT( * ) * - COUNT( * ) + - 81 AS col0 FROM tab1 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-9833
SELECT - COUNT ( * ) * - COUNT ( * ) + - 81 AS col0 FROM tab1 AS cor0
----
-72

query II rowsort
SELECT 53 + + 18, col2 FROM tab2 AS cor0
----
71
23
71
40
71
58

query I rowsort
SELECT - 87 * + 61 * - col0 + + - col1 AS col2 FROM tab2 AS cor0
----
244071
339571
397958

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + 94 col1 FROM tab0 AS cor0
----
109
181
191

query I rowsort
SELECT ALL col2 * - col1 + - col1 FROM tab2 AS cor0
----
-1224
-3157
-3953

query III rowsort
SELECT * FROM tab0 WHERE 31 < - - ( - col2 )
----

query I rowsort
SELECT DISTINCT + 57 * 64 FROM tab1
----
3648

onlyif mysql # DIV for integer division: 
query II rowsort label-9840
SELECT ALL + col1 DIV + ( col1 ) AS col2, - 2 col1 FROM tab2
----
1
-2
1
-2
1
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9840
SELECT ALL + col1 / + ( col1 ) AS col2, - 2 col1 FROM tab2
----
1
-2
1
-2
1
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9841
SELECT ALL CAST( NULL AS DECIMAL ) / + CAST( - COUNT( * ) AS SIGNED ) col1 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9841
SELECT ALL CAST ( NULL AS REAL ) / + CAST ( - COUNT ( * ) AS INTEGER ) col1 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT + + col0 AS col2 FROM tab1 AS cor0 WHERE + 2 * - - 40 + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9843
SELECT DISTINCT - - ( + MIN( - + ( + col2 ) ) ) FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-9843
SELECT DISTINCT - - ( + MIN ( - + ( + col2 ) ) ) FROM tab2 AS cor0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-9844
SELECT ALL - - COUNT( * ) * 48 FROM tab0 AS cor0
----
144

skipif mysql # not compatible
query I rowsort label-9844
SELECT ALL - - COUNT ( * ) * 48 FROM tab0 AS cor0
----
144

query I rowsort
SELECT DISTINCT + ( - 52 ) FROM tab2 AS cor0
----
-52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 col2, - ( - 54 ) col1 FROM tab2
----
-23
54
-40
54
-58
54

query I rowsort
SELECT ALL - 76 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f8b6589bc7503fc720ca5430e3569317

onlyif mysql # aggregate syntax: 
query I rowsort label-9848
SELECT COUNT( * ) * + - SUM( ALL + ( - col1 ) ) AS col1 FROM tab2 cor0
----
585

skipif mysql # not compatible
query I rowsort label-9848
SELECT COUNT ( * ) * + - SUM ( ALL + ( - col1 ) ) AS col1 FROM tab2 cor0
----
585

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + ( 87 ) / + 13 col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - col2 * - - 31 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1457
-3069
-310

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) = + + 24
----

query I rowsort
SELECT ALL + 5 * + + col1 FROM tab2 AS cor0
----
255
335
385

query I rowsort
SELECT ALL col0 FROM tab2 AS cor0 WHERE NOT + col0 IS NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9854
SELECT MAX( DISTINCT + 34 ) AS col1 FROM tab1
----
34

skipif mysql # not compatible
query I rowsort label-9854
SELECT MAX ( DISTINCT + 34 ) AS col1 FROM tab1
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-9855
SELECT + MIN( ALL - - ( 58 ) ) AS col2 FROM tab0
----
58

skipif mysql # not compatible
query I rowsort label-9855
SELECT + MIN ( ALL - - ( 58 ) ) AS col2 FROM tab0
----
58

query I rowsort
SELECT ALL + 16 * + - col2 * + - col0 + col2 * - 27 AS col0 FROM tab2 AS cor0
----
16307
39880
68034

onlyif mysql # aggregate syntax: 
query I rowsort label-9857
SELECT + MAX( ALL - ( - - col2 ) ) + COUNT( * ) FROM tab2 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-9857
SELECT + MAX ( ALL - ( - - col2 ) ) + COUNT ( * ) FROM tab2 AS cor0
----
-20

query I rowsort
SELECT DISTINCT ( - col2 ) * 12 FROM tab1 AS cor0
----
-1152
-708
-816

query I rowsort
SELECT 43 + + - col2 FROM tab0
----
-4
-56
33

query II rowsort
SELECT ALL + col1 + - + col1 * col1, col1 AS col0 FROM tab1 cor0
----
-182
14
-20
5
-2162
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9861
SELECT ALL + - ( + MIN( + - 24 ) ) + + + 68 FROM tab0 AS cor0
----
92

skipif mysql # not compatible
query I rowsort label-9861
SELECT ALL + - ( + MIN ( + - 24 ) ) + + + 68 FROM tab0 AS cor0
----
92

query I rowsort
SELECT DISTINCT + 4 FROM tab2 AS cor0 WHERE + col0 IS NOT NULL
----
4

query I rowsort
SELECT DISTINCT - 15 + - + 62 FROM tab0 AS cor0
----
-77

query I rowsort
SELECT DISTINCT + ( - + col2 ) - - ( - - col0 ) * + + col0 + col0 FROM tab2 cor0
----
2139
4120
5642

query I rowsort
SELECT ALL - ( - + col1 ) * col1 + + col0 AS col0 FROM tab2 cor0
----
2647
4564
5993

query I rowsort
SELECT ALL + ( 46 ) + - - 87 AS col0 FROM tab2 AS cor0
----
133
133
133

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 22 - + col0 + + col0 col2 FROM tab1 AS cor0
----
22
22
22

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9868
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 * - + col0 / + + 33 / CAST( + - col0 AS SIGNED ) NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-9868
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 * - + col0 / + + 33 / CAST ( + - col0 AS INTEGER ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + col0 * - 32 AS col2 FROM tab0 AS cor0
----
-2784
-3104
-480

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - - 47 col1 FROM tab0 AS cor0
----
134
144
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9871
SELECT - COUNT( ALL + col1 ) - COUNT( * ) - - - 18 FROM tab0 cor0
----
-24

skipif mysql # not compatible
query I rowsort label-9871
SELECT - COUNT ( ALL + col1 ) - COUNT ( * ) - - - 18 FROM tab0 cor0
----
-24

query I rowsort
SELECT - col0 - - + 48 AS col0 FROM tab1 AS cor0
----
-3
-37
-43

query II rowsort
SELECT + col2 - col1 * - + ( col0 ), col1 AS col0 FROM tab0
----
1262
81
1837
21
196
1

query I rowsort
SELECT DISTINCT - ( - col0 ) * 42 - + col2 AS col2 FROM tab2
----
1909
2648
3092

onlyif mysql # aggregate syntax: 
query I rowsort label-9875
SELECT + ( - MAX( ALL - ( - 2 ) ) ) - 65 AS col1 FROM tab0
----
-67

skipif mysql # not compatible
query I rowsort label-9875
SELECT + ( - MAX ( ALL - ( - 2 ) ) ) - 65 AS col1 FROM tab0
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-9876
SELECT ALL 31 - + MAX( ALL col2 ) AS col0 FROM tab2
----
-27

skipif mysql # not compatible
query I rowsort label-9876
SELECT ALL 31 - + MAX ( ALL col2 ) AS col0 FROM tab2
----
-27

query I rowsort
SELECT + 80 - + col0 + - - 58 * + 9 * + col2 FROM tab0
----
24599
51661
5213

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9878
SELECT DISTINCT - COUNT( ALL - - col2 ) DIV - ( - 61 ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9878
SELECT DISTINCT - COUNT ( ALL - - col2 ) / - ( - 61 ) AS col0 FROM tab1
----
0

query I rowsort
SELECT - col0 FROM tab1 WHERE NOT ( NOT NULL > ( NULL ) )
----

query I rowsort
SELECT ALL 49 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9881
SELECT DISTINCT + - CAST( ( COUNT( * ) ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9881
SELECT DISTINCT + - CAST ( ( COUNT ( * ) ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-9882
SELECT - COUNT( DISTINCT + col2 ) AS col2, + ( + 81 ) FROM tab0 AS cor0
----
-3
81

skipif mysql # not compatible
query II rowsort label-9882
SELECT - COUNT ( DISTINCT + col2 ) AS col2, + ( + 81 ) FROM tab0 AS cor0
----
-3
81

onlyif mysql # DIV for integer division: 
query I rowsort label-9883
SELECT + 35 DIV - col1 AS col2 FROM tab0 AS cor0
----
-1
-35
0

skipif mysql # not compatible
query I rowsort label-9883
SELECT + 35 / - col1 AS col2 FROM tab0 AS cor0
----
-1
-35
0

query I rowsort
SELECT 71 * col0 * - 86 + + col2 AS col2 FROM tab2 AS cor0
----
-280853
-390744
-457892

query I rowsort
SELECT col0 * + ( - col1 ) * - col2 FROM tab0 AS cor0
----
18270
57105
9603

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9886
SELECT ALL * FROM tab2 AS cor0 WHERE CAST( + + col2 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-9886
SELECT ALL * FROM tab2 AS cor0 WHERE CAST ( + + col2 AS INTEGER ) IS NULL
----

query I rowsort
SELECT DISTINCT - col0 * - - 70 AS col2 FROM tab0 AS cor0
----
-1050
-6090
-6790

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9888
SELECT - - COUNT( * ) DIV - + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9888
SELECT - - COUNT ( * ) / - + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9889
SELECT DISTINCT + 48 * - + CAST( NULL AS SIGNED ) * - col1 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9889
SELECT DISTINCT + 48 * - + CAST ( NULL AS INTEGER ) * - col1 AS col1 FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT 49, col0 FROM tab0 AS cor0
----
49
15
49
87
49
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2, + 28 col0 FROM tab2
----
-23
28
-40
28
-58
28

query II rowsort
SELECT ALL + col1, - 82 FROM tab0
----
1
-82
21
-82
81
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 18 - col2 col2 FROM tab1 WHERE + col0 * col0 IS NOT NULL
----
-41
-50
-78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9894
SELECT ALL COUNT( * ) DIV + - COUNT( * ) AS col0 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-9894
SELECT ALL COUNT ( * ) / + - COUNT ( * ) AS col0 FROM tab0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9895
SELECT ALL * FROM tab2 WHERE + CAST( + - 27 AS SIGNED ) - + + col0 + - 19 <= + + 18
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9895
SELECT ALL * FROM tab2 WHERE + CAST ( + - 27 AS INTEGER ) - + + col0 + - 19 <= + + 18
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-9896
SELECT DISTINCT + col2 DIV col2 + - + col2 AS col1 FROM tab1
----
-58
-67
-95

skipif mysql # not compatible
query I rowsort label-9896
SELECT DISTINCT + col2 / col2 + - + col2 AS col1 FROM tab1
----
-58
-67
-95

query I rowsort
SELECT DISTINCT + col2 * 7 + + + col0 AS col1 FROM tab1
----
498
567
723

onlyif mysql # aggregate syntax: 
query I rowsort label-9898
SELECT - COUNT( * ) AS col0 FROM tab2 WHERE NULL > col0
----
0

skipif mysql # not compatible
query I rowsort label-9898
SELECT - COUNT ( * ) AS col0 FROM tab2 WHERE NULL > col0
----
0

query I rowsort
SELECT ALL - + col1 FROM tab2 cor0 WHERE NOT ( NULL ) = col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9900
SELECT DISTINCT - COUNT( - col1 ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9900
SELECT DISTINCT - COUNT ( - col1 ) AS col2 FROM tab2 AS cor0
----
-3

query II rowsort
SELECT ALL col0, + col2 * - - col2 * 90 + + 31 FROM tab1 AS cor0
----
51
829471
85
313321
91
416191

query I rowsort
SELECT DISTINCT - col2 + + - 89 AS col1 FROM tab2 AS cor0 WHERE NOT + col1 + - + ( - col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9903
SELECT - 51 * COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-459

skipif mysql # not compatible
query I rowsort label-9903
SELECT - 51 * COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-459

query I rowsort
SELECT - - col1 AS col0 FROM tab2 WHERE - 82 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9905
SELECT 72 * + col0 - - - 53 DIV 66 FROM tab0
----
1080
6264
6984

skipif mysql # not compatible
query I rowsort label-9905
SELECT 72 * + col0 - - - 53 / 66 FROM tab0
----
1080
6264
6984

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + col2 ) = ( NULL )
----

query I rowsort
SELECT + - col2 + 12 AS col0 FROM tab0 AS cor0
----
-35
-87
2

query I rowsort
SELECT ALL - col0 - + 85 * + col2 AS col0 FROM tab2 AS cor0
----
-2001
-3464
-5005

query II rowsort
SELECT + + col0 + - col2 AS col2, col0 FROM tab0 AS cor0
----
-2
97
-32
15
77
87

onlyif mysql # aggregate syntax: 
query I rowsort label-9910
SELECT DISTINCT COUNT( * ) - 50 * + 91 FROM tab2 AS cor0
----
-4547

skipif mysql # not compatible
query I rowsort label-9910
SELECT DISTINCT COUNT ( * ) - 50 * + 91 FROM tab2 AS cor0
----
-4547

query I rowsort
SELECT col0 AS col1 FROM tab1 WHERE 71 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 37 + - 67 * col0 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9913
SELECT DISTINCT MAX( ALL - col0 ) AS col1 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-9913
SELECT DISTINCT MAX ( ALL - col0 ) AS col1 FROM tab1
----
-51

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL <= + 20
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * 92 * col2 * - col2 col0 FROM tab0
----
-16461468
-193200
-901692

query II rowsort
SELECT - col1 AS col2, + 31 * + 58 * + col1 AS col0 FROM tab2
----
-51
91698
-67
120466
-77
138446

query II rowsort
SELECT - col0 AS col1, 7 AS col2 FROM tab0
----
-15
7
-87
7
-97
7

query I rowsort
SELECT DISTINCT - 84 * - 23 AS col2 FROM tab2 AS cor0
----
1932

query II rowsort
SELECT col1 AS col1, - 24 * col2 + col2 FROM tab1 AS cor0
----
14
-2208
47
-1564
5
-1357

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9920
SELECT + COUNT( DISTINCT - - ( + 46 ) ) DIV - 7 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9920
SELECT + COUNT ( DISTINCT - - ( + 46 ) ) / - 7 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9921
SELECT - MIN( - 42 ) AS col0 FROM tab0
----
42

skipif mysql # not compatible
query I rowsort label-9921
SELECT - MIN ( - 42 ) AS col0 FROM tab0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-9922
SELECT DISTINCT - COUNT( + ( + + col0 ) ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-9922
SELECT DISTINCT - COUNT ( + ( + + col0 ) ) AS col2 FROM tab2
----
-3

query I rowsort
SELECT ALL ( col1 ) + + col2 AS col1 FROM tab2 AS cor0
----
117
125
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9924
SELECT DISTINCT - 72 DIV + COUNT( * ), - 43 col1 FROM tab0 AS cor0
----
-24
-43

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9924
SELECT DISTINCT - 72 / + COUNT ( * ), - 43 col1 FROM tab0 AS cor0
----
-24
-43

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col0 / + col2 NOT BETWEEN - col0 AND + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9926
SELECT COUNT( + + CAST( NULL AS SIGNED ) ) * - COUNT( * ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9926
SELECT COUNT ( + + CAST ( NULL AS INTEGER ) ) * - COUNT ( * ) AS col2 FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col2 ) col2 FROM tab2
----
23
40
58

query I rowsort
SELECT DISTINCT - col0 * + col1 * + 99 + + - col0 FROM tab0
----
-120300
-180960
-9700

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9929
SELECT ALL + 78 / + 14 * CAST( NULL AS SIGNED ) + COUNT( * ) col0 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9929
SELECT ALL + 78 / + 14 * CAST ( NULL AS INTEGER ) + COUNT ( * ) col0 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 4 * + 78 col1 FROM tab1 AS cor0
----
312
312
312

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 74 + + 4 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL < 41
----

query I rowsort
SELECT + col2 * - col0 * col1 + col2 + 73 * ( + col2 ) AS col2 FROM tab1 AS cor0
----
-20709
-285804
-61440

query I rowsort
SELECT 3 * - col0 + col0 + - 88 * 4 FROM tab2
----
-444
-480
-502

onlyif mysql # aggregate syntax: 
query I rowsort label-9935
SELECT ALL COUNT( * ) + + 76 col2 FROM tab0
----
79

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9935
SELECT ALL COUNT ( * ) + + 76 col2 FROM tab0
----
79

query I rowsort
SELECT col1 - - - 48 AS col2 FROM tab1 AS cor0
----
-1
-34
-43

query I rowsort
SELECT ALL + 67 + - col2 * - 42 - col2 AS col1 FROM tab1 AS cor0
----
2486
2855
4003

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 38 + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9939
SELECT 71 * - MAX( DISTINCT - - col0 ) * + - 78 col2 FROM tab2 AS cor0
----
415350

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9939
SELECT 71 * - MAX ( DISTINCT - - col0 ) * + - 78 col2 FROM tab2 AS cor0
----
415350

query II rowsort
SELECT - + col0, + col0 * + 24 AS col2 FROM tab0 AS cor0
----
-15
360
-87
2088
-97
2328

query I rowsort
SELECT ALL + 2 FROM tab0 cor0 WHERE NOT ( ( - col0 ) ) NOT BETWEEN - 69 / - - 55 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9942
SELECT ALL - COUNT( - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9942
SELECT ALL - COUNT ( - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9943
SELECT - 29 AS col2, COUNT( * ) AS col2 FROM tab1 AS cor0
----
-29
3

skipif mysql # not compatible
query II rowsort label-9943
SELECT - 29 AS col2, COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-29
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9944
SELECT DISTINCT COUNT( * ) * + - 58 col2 FROM tab0 AS cor0
----
-174

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9944
SELECT DISTINCT COUNT ( * ) * + - 58 col2 FROM tab0 AS cor0
----
-174

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9945
SELECT + - CAST( - 71 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
71
71
71

skipif mysql # not compatible
query I rowsort label-9945
SELECT + - CAST ( - 71 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
71
71
71

onlyif mysql # aggregate syntax: 
query I rowsort label-9946
SELECT DISTINCT + MIN( ALL + ( - + 10 ) ) col1 FROM tab1
----
-10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9946
SELECT DISTINCT + MIN ( ALL + ( - + 10 ) ) col1 FROM tab1
----
-10

query I rowsort
SELECT 19 * + col0 * + 19 AS col1 FROM tab0
----
31407
35017
5415

query I rowsort
SELECT DISTINCT - 1 / + col1 + col2 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + ( 5 ) FROM tab2 AS cor0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9950
SELECT DISTINCT MIN( ALL + - col0 ) col1 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9950
SELECT DISTINCT MIN ( ALL + - col0 ) col1 FROM tab2 AS cor0
----
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-9951
SELECT DISTINCT + + MAX( 27 ), - COUNT( * ) AS col1 FROM tab1 AS cor0
----
27
-3

skipif mysql # not compatible
query II rowsort label-9951
SELECT DISTINCT + + MAX ( 27 ), - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
27
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + 3 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 38 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - ( - + 34 ) AS col0 FROM tab1 cor0
----
34
34
34

query I rowsort
SELECT ALL - col0 * - + 24 + 99 AS col1 FROM tab1 AS cor0
----
1323
2139
2283

onlyif mysql # aggregate syntax: 
query I rowsort label-9956
SELECT + - MAX( ALL + - 21 ) * - - COUNT( ALL - + 0 ) col2 FROM tab0 AS cor0
----
63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9956
SELECT + - MAX ( ALL + - 21 ) * - - COUNT ( ALL - + 0 ) col2 FROM tab0 AS cor0
----
63

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col0 <> + col0
----

query I rowsort
SELECT - col2 * - col2 * col2 + - 69 + - col2 * - col0 + - 88 FROM tab2 AS cor0
----
13068
199305
66403

query I rowsort
SELECT col0 + - + 69 FROM tab2 AS cor0
----
-23
-5
6

query III rowsort
SELECT * FROM tab1 WHERE - 51 + + col2 NOT BETWEEN - col2 + - col1 AND NULL
----

query I rowsort
SELECT ALL 96 + 32 FROM tab0
----
128
128
128

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 45 + 77 col1 FROM tab0
----
122

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9963
SELECT ALL + 46 DIV - 53 + - MAX( - col2 ) - - - COUNT( * ) FROM tab2 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-9963
SELECT ALL + 46 / - 53 + - MAX ( - col2 ) - - - COUNT ( * ) FROM tab2 AS cor0
----
20

query I rowsort
SELECT DISTINCT col2 * + 5 + + col0 AS col1 FROM tab2 AS cor0
----
161
264
365

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 * - col2 / ( - - col2 ) * 81 + + 14 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9966
SELECT DISTINCT + col1 + col0 DIV 75 FROM tab1 AS cor0
----
14
48
6

skipif mysql # not compatible
query I rowsort label-9966
SELECT DISTINCT + col1 + col0 / 75 FROM tab1 AS cor0
----
14
48
6

query I rowsort
SELECT ALL - - 89 + + 46 FROM tab1 AS cor0
----
135
135
135

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL >= + 22
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9969
SELECT DISTINCT - COUNT( DISTINCT col0 ) * - COUNT( * ) + + + ( - 59 ) AS col0 FROM tab2 AS cor0
----
-50

skipif mysql # not compatible
query I rowsort label-9969
SELECT DISTINCT - COUNT ( DISTINCT col0 ) * - COUNT ( * ) + + + ( - 59 ) AS col0 FROM tab2 AS cor0
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-9970
SELECT - COUNT( * ) * - - MIN( - col2 ) FROM tab2 WHERE NULL NOT BETWEEN col0 AND - 51
----
NULL

skipif mysql # not compatible
query I rowsort label-9970
SELECT - COUNT ( * ) * - - MIN ( - col2 ) FROM tab2 WHERE NULL NOT BETWEEN col0 AND - 51
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 31 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 * - + col1 * - + col0 AS col2 FROM tab2 cor0
----
119646
336675
379456

onlyif mysql # aggregate syntax: 
query I rowsort label-9973
SELECT ALL ( + + MIN( DISTINCT - + 76 ) ) AS col1 FROM tab0 AS cor0
----
-76

skipif mysql # not compatible
query I rowsort label-9973
SELECT ALL ( + + MIN ( DISTINCT - + 76 ) ) AS col1 FROM tab0 AS cor0
----
-76

query I rowsort
SELECT DISTINCT + - col0 FROM tab2 AS cor0 WHERE NOT col0 <= NULL
----

query II rowsort
SELECT col1 * col2 * - 19, col0 FROM tab2 AS cor0
----
-22287
46
-58520
64
-73834
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9976
SELECT ALL + 66 * - - CAST( - + CAST( col1 AS SIGNED ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-1386
-5346
-66

skipif mysql # not compatible
query I rowsort label-9976
SELECT ALL + 66 * - - CAST ( - + CAST ( col1 AS INTEGER ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-1386
-5346
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-9977
SELECT DISTINCT + COUNT( * ) * + COUNT( * ) - ( 24 ) AS col0 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-9977
SELECT DISTINCT + COUNT ( * ) * + COUNT ( * ) - ( 24 ) AS col0 FROM tab0 AS cor0
----
-15

query I rowsort
SELECT DISTINCT + 2 AS col1 FROM tab2, tab0 cor0
----
2

query I rowsort
SELECT DISTINCT - 92 * - col0 AS col2 FROM tab0
----
1380
8004
8924

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + 2 col0 FROM tab2
----
-102
-134
-154

query I rowsort
SELECT 97 * 52 AS col2 FROM tab2 AS cor0
----
5044
5044
5044

onlyif mysql # aggregate syntax: 
query II rowsort label-9982
SELECT COUNT( * ) + + COUNT( * ), 83 + 41 AS col0 FROM tab1
----
6
124

skipif mysql # not compatible
query II rowsort label-9982
SELECT COUNT ( * ) + + COUNT ( * ), 83 + 41 AS col0 FROM tab1
----
6
124

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN NULL AND - col1 - - - 39 * 81 * 22
----

query III rowsort
SELECT * FROM tab0 WHERE + + ( - 78 ) IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9985
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - CAST( NULL AS DECIMAL ) + col1 + - ( + col1 ) * - - col1 AND NULL
----

skipif mysql # not compatible
query III rowsort label-9985
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - CAST ( NULL AS REAL ) + col1 + - ( + col1 ) * - - col1 AND NULL
----

query I rowsort
SELECT 20 + - + 63 FROM tab2 AS cor0
----
-43
-43
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-9987
SELECT ALL - + col0 + + 16 + - col1 DIV + col0 FROM tab1 AS cor0
----
-35
-69
-75

skipif mysql # not compatible
query I rowsort label-9987
SELECT ALL - + col0 + + 16 + - col1 / + col0 FROM tab1 AS cor0
----
-35
-69
-75

query I rowsort
SELECT DISTINCT col2 FROM tab0 AS cor0 WHERE NOT 25 IS NULL
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9989
SELECT ALL + CAST( - col0 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-9989
SELECT ALL + CAST ( - col0 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-46
-64
-75

query I rowsort
SELECT + 37 FROM tab1 AS cor0 WHERE NULL < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9991
SELECT - - CAST( NULL AS SIGNED ) / + 4 + - 60 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9991
SELECT - - CAST ( NULL AS INTEGER ) / + 4 + - 60 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( + ( - - 11 ) ) - 6 FROM tab0 WHERE + - col0 NOT BETWEEN + - 3 + - col1 AND + - col2
----
5
5
5

query I rowsort
SELECT - col2 * + col2 * + col0 FROM tab2
----
-102400
-24334
-252300

query I rowsort
SELECT ALL + ( + 19 ) FROM tab1
----
19
19
19

query I rowsort
SELECT DISTINCT - col1 + + 18 AS col0 FROM tab0
----
-3
-63
17

query I rowsort
SELECT ALL col2 * 74 FROM tab0
----
3478
7326
740

query I rowsort
SELECT ALL + 87 * - 60 + - col2 AS col2 FROM tab2
----
-5243
-5260
-5278

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - - 1 col2 FROM tab0
----
100
11
48

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9999
SELECT * FROM tab1 WHERE CAST( + 37 AS DECIMAL ) * - 72 + + col1 * + - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9999
SELECT * FROM tab1 WHERE CAST ( + 37 AS REAL ) * - 72 + + col1 * + - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

