sqllogictest
Artifact Content
Not logged in

Artifact 9d81b4f3a0c4a1d1a6bdeec725e82468688cb764:


hash-threshold 8

statement ok
CREATE TABLE tab0(col0 INTEGER, col1 INTEGER, col2 INTEGER)

statement ok
CREATE TABLE tab1(col0 INTEGER, col1 INTEGER, col2 INTEGER)

statement ok
CREATE TABLE tab2(col0 INTEGER, col1 INTEGER, col2 INTEGER)

statement ok
INSERT INTO tab0 VALUES(97,1,99)

statement ok
INSERT INTO tab0 VALUES(15,81,47)

statement ok
INSERT INTO tab0 VALUES(87,21,10)

statement ok
INSERT INTO tab1 VALUES(51,14,96)

statement ok
INSERT INTO tab1 VALUES(85,5,59)

statement ok
INSERT INTO tab1 VALUES(91,47,68)

statement ok
INSERT INTO tab2 VALUES(64,77,40)

statement ok
INSERT INTO tab2 VALUES(75,67,58)

statement ok
INSERT INTO tab2 VALUES(46,51,23)

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

query II rowsort
SELECT ALL - col2 + - 75 AS col0, + 42 * - col1 AS col0 FROM tab1 cor0
----
-134
-210
-143
-1974
-171
-588

query I rowsort
SELECT ALL col2 - - - 3 FROM tab2 AS cor0
----
20
37
55

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4
SELECT COUNT( + col2 ) AS col0 FROM tab0 AS cor0 WHERE + col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4
SELECT COUNT ( + col2 ) AS col0 FROM tab0 AS cor0 WHERE + col0 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5
SELECT ALL - 49 - - ( 83 ) AS col0, + COUNT( + 52 ) AS col1 FROM tab2
----
34
3

skipif mysql # not compatible
query II rowsort label-5
SELECT ALL - 49 - - ( 83 ) AS col0, + COUNT ( + 52 ) AS col1 FROM tab2
----
34
3

onlyif mysql # aggregate syntax: 
query II rowsort label-6
SELECT 80 AS col1, - COUNT( ALL col0 ) + + COUNT( * ) AS col2 FROM tab1
----
80
0

skipif mysql # not compatible
query II rowsort label-6
SELECT 80 AS col1, - COUNT ( ALL col0 ) + + COUNT ( * ) AS col2 FROM tab1
----
80
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7
SELECT - COUNT( ALL 34 ) * + 29 - - 89 AS col2 FROM tab0
----
2

skipif mysql # not compatible
query I rowsort label-7
SELECT - COUNT ( ALL 34 ) * + 29 - - 89 AS col2 FROM tab0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8
SELECT DISTINCT - COUNT( * ) FROM tab0 WHERE NOT - col1 NOT IN ( 44, + 50 )
----
0

skipif mysql # not compatible
query I rowsort label-8
SELECT DISTINCT - COUNT ( * ) FROM tab0 WHERE NOT - col1 NOT IN ( 44, + 50 )
----
0

query I rowsort
SELECT DISTINCT - col1 - - 28 AS col1 FROM tab1
----
-19
14
23

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

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

query I rowsort
SELECT ALL - 22 - 42 AS col1 FROM tab0
----
-64
-64
-64

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-14
SELECT ALL + - col1 DIV col0 + + 71 AS col1 FROM tab1 AS cor0
----
71
71
71

skipif mysql # not compatible
query I rowsort label-14
SELECT ALL + - col1 / col0 + + 71 AS col1 FROM tab1 AS cor0
----
71
71
71

query I rowsort
SELECT + 72 * - - 28 AS col0 FROM tab0 AS cor0
----
2016
2016
2016

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

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

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

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

query I rowsort
SELECT col1 * - col2 * col2 * - col2 + col0 AS col0 FROM tab0 AS cor0
----
21087
8409678
970396

onlyif mysql # aggregate syntax: 
query I rowsort label-20
SELECT ALL COUNT( * ) FROM tab1 WHERE NOT + col2 BETWEEN + col2 - - col0 AND - 99
----
3

skipif mysql # not compatible
query I rowsort label-20
SELECT ALL COUNT ( * ) FROM tab1 WHERE NOT + col2 BETWEEN + col2 - - col0 AND - 99
----
3

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-22
SELECT + 44 DIV col0 FROM tab0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-22
SELECT + 44 / col0 FROM tab0
----
0
0
2

query I rowsort
SELECT col2 * - 86 * 63 * - - 62 FROM tab0
----
-15788052
-33255684
-3359160

query I rowsort
SELECT - ( + - col2 ) AS col1 FROM tab0
----
10
47
99

query II rowsort
SELECT DISTINCT + col0, col0 * + col0 + - col2 - + 76 + + + col2 AS col1 FROM tab2
----
46
2040
64
4020
75
5549

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

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

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

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

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

query I rowsort
SELECT + - col2 + + - 11 + - + 40 AS col1 FROM tab2 AS cor0
----
-109
-74
-91

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

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

query I rowsort
SELECT ALL + 94 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-32
SELECT 92 DIV + COUNT( * ) col1 FROM tab0
----
30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-32
SELECT 92 / + COUNT ( * ) col1 FROM tab0
----
30

query I rowsort
SELECT ALL + - 35 * + ( + col2 ) AS col2 FROM tab1 AS cor0
----
-2065
-2380
-3360

query I rowsort
SELECT DISTINCT + 68 AS col2 FROM tab2 AS cor0 WHERE NULL <= NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-37
SELECT DISTINCT + 74 + + col1 + + 47 * - - CAST( + col1 AS SIGNED ) * + col0 FROM tab1 AS cor0
----
20054
201140
33646

skipif mysql # not compatible
query I rowsort label-37
SELECT DISTINCT + 74 + + col1 + + 47 * - - CAST ( + col1 AS INTEGER ) * + col0 FROM tab1 AS cor0
----
20054
201140
33646

onlyif mysql # aggregate syntax: 
query I rowsort label-38
SELECT DISTINCT - 4 + + SUM( ALL + - col1 ) FROM tab1 AS cor0
----
-70

skipif mysql # not compatible
query I rowsort label-38
SELECT DISTINCT - 4 + + SUM ( ALL + - col1 ) FROM tab1 AS cor0
----
-70

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

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

query III rowsort
SELECT * FROM tab1 WHERE - 63 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-41
SELECT ALL ( - - COUNT( * ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-41
SELECT ALL ( - - COUNT ( * ) ) FROM tab2
----
3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-43
SELECT + SUM( col1 ) col2 FROM tab1 WHERE NOT + col0 < NULL
----
NULL

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

query I rowsort
SELECT + col0 * + 32 FROM tab1
----
1632
2720
2912

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-46
SELECT ALL - + MIN( DISTINCT + col1 ) col2, COUNT( * ) AS col0 FROM tab1 AS cor0
----
-5
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-46
SELECT ALL - + MIN ( DISTINCT + col1 ) col2, COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-5
3

onlyif mysql # aggregate syntax: 
query I rowsort label-47
SELECT - - 83 * - + SUM( ALL - col1 ) FROM tab2 AS cor0
----
16185

skipif mysql # not compatible
query I rowsort label-47
SELECT - - 83 * - + SUM ( ALL - col1 ) FROM tab2 AS cor0
----
16185

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-48
SELECT DISTINCT COUNT( ALL - col1 ) AS col0 FROM tab1 AS cor0 WHERE NOT ( + col1 * - col0 NOT BETWEEN ( CAST( NULL AS SIGNED ) * + ( - + col0 ) * + + 53 ) AND 21 * + - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-48
SELECT DISTINCT COUNT ( ALL - col1 ) AS col0 FROM tab1 AS cor0 WHERE NOT ( + col1 * - col0 NOT BETWEEN ( CAST ( NULL AS INTEGER ) * + ( - + col0 ) * + + 53 ) AND 21 * + - col0 )
----
0

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

query I rowsort
SELECT ALL + - 79 AS col1 FROM tab2 AS cor0
----
-79
-79
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 46 col1 FROM tab0 WHERE - col1 IS NOT NULL
----
46

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

skipif mysql # not compatible
query I rowsort label-52
SELECT MAX ( ALL - - col2 ) AS col2 FROM tab0
----
99

query I rowsort
SELECT ALL + ( 11 ) * + 95 * + col0 FROM tab1
----
53295
88825
95095

query II rowsort
SELECT 40 AS col2, - col1 + - + col0 FROM tab1 AS cor0
----
40
-138
40
-65
40
-90

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

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

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

query I rowsort
SELECT DISTINCT + 87 FROM tab2 AS cor0 WHERE NOT col2 > + ( - 22 )
----

query I rowsort
SELECT ALL + col2 * - 41 FROM tab2
----
-1640
-2378
-943

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-61
SELECT DISTINCT + ( - + col1 ) DIV 44 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-61
SELECT DISTINCT + ( - + col1 ) / 44 FROM tab2 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-62
SELECT ALL + + MAX( - col1 ) + + 81 + + 77 FROM tab0 AS cor0
----
157

skipif mysql # not compatible
query I rowsort label-62
SELECT ALL + + MAX ( - col1 ) + + 81 + + 77 FROM tab0 AS cor0
----
157

query I rowsort
SELECT DISTINCT 74 * - col1 - ( + - 33 ) AS col1 FROM tab0
----
-1521
-41
-5961

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

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

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

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

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + 72 * - - 1 NOT BETWEEN col0 + col1 * + col0 AND NULL
----

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

query I rowsort
SELECT ALL col2 * 60 AS col2 FROM tab0
----
2820
5940
600

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0, - 37 * col2 - 0 col2 FROM tab0
----
-15
-1739
-87
-370
-97
-3663

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-70
SELECT DISTINCT - CAST( col0 AS SIGNED ) * 1 col0 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-70
SELECT DISTINCT - CAST ( col0 AS INTEGER ) * 1 col0 FROM tab2
----
-46
-64
-75

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

skipif mysql # not compatible
query I rowsort label-71
SELECT ALL CAST ( NULL AS INTEGER ) * 72 AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-72
SELECT CAST( + ( - col2 ) AS SIGNED ) FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-72
SELECT CAST ( + ( - col2 ) AS INTEGER ) FROM tab2
----
-23
-40
-58

query I rowsort
SELECT - - col2 FROM tab0 WHERE NOT col1 BETWEEN - + 28 + - 26 AND + col0 * - 32
----
10
47
99

query II rowsort
SELECT ALL + col1 AS col0, 16 + col0 FROM tab1
----
14
67
47
107
5
101

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-76
SELECT ALL MIN( DISTINCT + + col0 ) * + - COUNT( * ) / CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-79
SELECT DISTINCT 63 * - - 77 + + + SUM( ALL + col2 ) AS col1 FROM tab0 AS cor0
----
5007

skipif mysql # not compatible
query I rowsort label-79
SELECT DISTINCT 63 * - - 77 + + + SUM ( ALL + col2 ) AS col1 FROM tab0 AS cor0
----
5007

query II rowsort
SELECT - + 69 AS col2, 69 AS col1 FROM tab2 cor0
----
-69
69
-69
69
-69
69

query I rowsort
SELECT - ( + + col1 ) * - 73 FROM tab1
----
1022
3431
365

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

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

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

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

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

query I rowsort
SELECT ALL + col0 + 93 + - 32 * - 33 - + 51 AS col0 FROM tab0 AS cor0
----
1113
1185
1195

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * - col2 * - col0 col0 FROM tab0 AS cor0
----
18270
57105
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-88
SELECT - 18 * - MIN( DISTINCT 5 ) * + - 90 FROM tab0 AS cor0
----
-8100

skipif mysql # not compatible
query I rowsort label-88
SELECT - 18 * - MIN ( DISTINCT 5 ) * + - 90 FROM tab0 AS cor0
----
-8100

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

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

query I rowsort
SELECT ALL - ( - col1 ) * + - col2 + col0 FROM tab0 AS cor0
----
-123
-2
-3792

onlyif mysql # aggregate syntax: 
query I rowsort label-92
SELECT + SUM( DISTINCT 95 ) * COUNT( * ) - - COUNT( * ) col1 FROM tab0 AS cor0
----
288

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-93
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL IN ( CAST( NULL AS SIGNED ), - col2 * - 36, CAST( NULL AS SIGNED ), col1, - 34 )
----

skipif mysql # not compatible
query III rowsort label-93
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL IN ( CAST ( NULL AS INTEGER ), - col2 * - 36, CAST ( NULL AS INTEGER ), col1, - 34 )
----

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col0 - - 4 * - col2 <= NULL
----

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

query I rowsort
SELECT - 72 * - + col0 FROM tab0
----
1080
6264
6984

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

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

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

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

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

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

query I rowsort
SELECT - 41 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 4ba0c102091f9cbc9fe9439b04584e70

query I rowsort
SELECT ALL 22 - col1 AS col1 FROM tab1 AS cor0
----
-25
17
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-105
SELECT + + CAST( - MIN( + CAST( NULL AS SIGNED ) ) AS SIGNED ) * - 36 - COUNT( * ) - + 9 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-105
SELECT + + CAST ( - MIN ( + CAST ( NULL AS INTEGER ) ) AS INTEGER ) * - 36 - COUNT ( * ) - + 9 FROM tab2 cor0
----
NULL

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-107
SELECT * FROM tab1 AS cor0 WHERE + - col1 BETWEEN + col2 AND NULL AND ( NULL ) >= + - 11 + - - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-107
SELECT * FROM tab1 AS cor0 WHERE + - col1 BETWEEN + col2 AND NULL AND ( NULL ) >= + - 11 + - - CAST ( NULL AS REAL )
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-110
SELECT ALL + MIN( col1 ) col2 FROM tab0 cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-110
SELECT ALL + MIN ( col1 ) col2 FROM tab0 cor0
----
1

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

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

query II rowsort
SELECT + 50 AS col0, col0 + + + col2 * 57 AS col1 FROM tab0 AS cor0
----
50
2694
50
5740
50
657

query I rowsort
SELECT ALL + 23 AS col0 FROM tab1 cor0
----
23
23
23

query I rowsort
SELECT DISTINCT 44 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-116
SELECT - MIN( - - 89 ) FROM tab2
----
-89

skipif mysql # not compatible
query I rowsort label-116
SELECT - MIN ( - - 89 ) FROM tab2
----
-89

onlyif mysql # CAST syntax: DECIMAL type: 
query IIIIII rowsort label-117
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT CAST( NULL AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-117
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT CAST ( NULL AS REAL ) IS NULL
----

query I rowsort
SELECT - 81 * col2 FROM tab2
----
-1863
-3240
-4698

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col0 * 81 <= col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-121
SELECT - COUNT( + 25 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-121
SELECT - COUNT ( + 25 ) FROM tab0
----
-3

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

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

query I rowsort
SELECT 28 AS col0 FROM tab1 cor0 WHERE NULL BETWEEN + col1 AND - 77
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-124
SELECT DISTINCT col1 * + - col2 AS col2, 75 AS col2, + ( - + CAST( - - col1 AS SIGNED ) ) AS col2 FROM tab1
----
9 values hashing to 78cdd629d87f38c72a142d486cd105c5

skipif mysql # not compatible
query III rowsort label-124
SELECT DISTINCT col1 * + - col2 AS col2, 75 AS col2, + ( - + CAST ( - - col1 AS INTEGER ) ) AS col2 FROM tab1
----
9 values hashing to 78cdd629d87f38c72a142d486cd105c5

query II rowsort
SELECT + col2 * + 84 AS col0, - 42 + - 16 FROM tab2
----
1932
-58
3360
-58
4872
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-126
SELECT - COUNT( + 11 ) * + 62 FROM tab0
----
-186

skipif mysql # not compatible
query I rowsort label-126
SELECT - COUNT ( + 11 ) * + 62 FROM tab0
----
-186

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-128
SELECT ( 90 ) - COUNT( ALL ( 24 ) ) FROM tab0 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-128
SELECT ( 90 ) - COUNT ( ALL ( 24 ) ) FROM tab0 AS cor0
----
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - 68 * - 14 col1 FROM tab0 AS cor0
----
1033
953
973

onlyif mysql # aggregate syntax: 
query I rowsort label-130
SELECT ALL + COUNT( * ) * ( 53 ) AS col2 FROM tab0 AS cor0 WHERE ( + + col2 ) IS NULL AND NOT col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-130
SELECT ALL + COUNT ( * ) * ( 53 ) AS col2 FROM tab0 AS cor0 WHERE ( + + col2 ) IS NULL AND NOT col2 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-131
SELECT DISTINCT + + 71 + - SUM( - 22 ) FROM tab0 AS cor0
----
137

skipif mysql # not compatible
query I rowsort label-131
SELECT DISTINCT + + 71 + - SUM ( - 22 ) FROM tab0 AS cor0
----
137

query I rowsort
SELECT ALL 39 + + 56 AS col0 FROM tab0
----
95
95
95

onlyif mysql # DIV for integer division: 
query I rowsort label-133
SELECT col2 DIV + col2 + - 28 DIV + 56 + - col1 FROM tab2
----
-50
-66
-76

skipif mysql # not compatible
query I rowsort label-133
SELECT col2 / + col2 + - 28 / + 56 + - col1 FROM tab2
----
-50
-66
-76

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

query II rowsort
SELECT ALL 84 AS col0, + 68 + 14 * + + col2 * col2 FROM tab0
----
84
137282
84
1468
84
30994

onlyif mysql # aggregate syntax: 
query I rowsort label-136
SELECT - + MAX( 6 ) FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-136
SELECT - + MAX ( 6 ) FROM tab2 AS cor0
----
-6

query II rowsort
SELECT ALL - - 93 AS col2, + 66 + + - col0 FROM tab2 AS cor0
----
93
-9
93
2
93
20

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 92 * - 80 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-139
SELECT - MIN( DISTINCT + 76 ) + CAST( - SUM( col2 ) AS SIGNED ) FROM tab2 cor0 WHERE NOT - col2 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-139
SELECT - MIN ( DISTINCT + 76 ) + CAST ( - SUM ( col2 ) AS INTEGER ) FROM tab2 cor0 WHERE NOT - col2 = NULL
----
NULL

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

query I rowsort
SELECT ALL 32 FROM tab0 AS cor0 WHERE NOT - 86 IS NOT NULL
----

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

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

query II rowsort
SELECT ALL - 60, + col0 * - - 18 AS col1 FROM tab1 AS cor0
----
-60
1530
-60
1638
-60
918

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-145
SELECT CAST( 65 AS SIGNED ) * - 80 col1 FROM tab2
----
-5200
-5200
-5200

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-145
SELECT CAST ( 65 AS INTEGER ) * - 80 col1 FROM tab2
----
-5200
-5200
-5200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-146
SELECT + SUM( - col1 ) col1, 68 / 53 * - - CAST( NULL AS SIGNED ) FROM tab2
----
-195
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-146
SELECT + SUM ( - col1 ) col1, 68 / 53 * - - CAST ( NULL AS INTEGER ) FROM tab2
----
-195
NULL

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

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

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

query I rowsort
SELECT ( - 87 ) FROM tab0 cor0
----
-87
-87
-87

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col0, ( + + col0 ) + - - col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

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

query I rowsort
SELECT col0 * col2 * col0 AS col0 FROM tab1 cor0
----
249696
426275
563108

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 60 * + + col0 NOT BETWEEN - - 3 + + 24 * - col2 AND NULL
----
87
21
10
97
1
99

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

query I rowsort
SELECT ALL 76 + - col1 + + col0 AS col2 FROM tab0
----
10
142
172

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-158
SELECT DISTINCT + CAST( + + SUM( DISTINCT col0 ) AS SIGNED ) + + 75 AS col1 FROM tab2
----
260

skipif mysql # not compatible
query I rowsort label-158
SELECT DISTINCT + CAST ( + + SUM ( DISTINCT col0 ) AS INTEGER ) + + 75 AS col1 FROM tab2
----
260

query I rowsort
SELECT ALL - col1 - + col0 + + 4 * + col0 + - 60 FROM tab2
----
27
55
98

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 * 91 <= - + 22
----

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

query II rowsort
SELECT ALL + 72 AS col0, col0 AS col0 FROM tab1 AS cor0
----
72
51
72
85
72
91

query I rowsort
SELECT ALL + + col2 + + - 61 FROM tab2 AS cor0
----
-21
-3
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-164
SELECT - CAST( COUNT( DISTINCT - 16 ) AS SIGNED ) FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-164
SELECT - CAST ( COUNT ( DISTINCT - 16 ) AS INTEGER ) FROM tab1
----
-1

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

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

query II rowsort
SELECT DISTINCT + col0 AS col0, col2 FROM tab0 AS cor0 WHERE NOT 10 IS NULL
----
15
47
87
10
97
99

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

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-171
SELECT DISTINCT - 61 / 79 AS col1 FROM tab0 AS cor0
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-173
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab1 WHERE NULL BETWEEN - col2 + col2 - - col2 AND + - col0
----
0

skipif mysql # not compatible
query I rowsort label-173
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab1 WHERE NULL BETWEEN - col2 + col2 - - col2 AND + - col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-174
SELECT DISTINCT MIN( + col2 ) AS col2 FROM tab0 WHERE NULL <> - 48 * col0
----
NULL

skipif mysql # not compatible
query I rowsort label-174
SELECT DISTINCT MIN ( + col2 ) AS col2 FROM tab0 WHERE NULL <> - 48 * col0
----
NULL

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

query I rowsort
SELECT ALL + + 42 + + ( + col1 ) AS col0 FROM tab2 AS cor0
----
109
119
93

onlyif mysql # aggregate syntax: 
query I rowsort label-177
SELECT - SUM( col0 ) FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-177
SELECT - SUM ( col0 ) FROM tab0 AS cor0
----
-199

query I rowsort
SELECT DISTINCT + - col1 + + 70 + + col1 * 50 AS col1 FROM tab1 AS cor0
----
2373
315
756

query I rowsort
SELECT DISTINCT + 54 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
54

query I rowsort
SELECT ALL 4 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - col2 col2 FROM tab0
----
-196
-62
-97

query I rowsort
SELECT col0 + + ( + col0 ) FROM tab0 AS cor0
----
174
194
30

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

onlyif mysql # DIV for integer division: 
query I rowsort label-184
SELECT - col0 + - 89 + 87 DIV - col1 FROM tab1 AS cor0
----
-146
-181
-191

skipif mysql # not compatible
query I rowsort label-184
SELECT - col0 + - 89 + 87 / - col1 FROM tab1 AS cor0
----
-146
-181
-191

query I rowsort
SELECT DISTINCT - - col1 + + ( 9 ) AS col2 FROM tab0 AS cor0
----
10
30
90

query I rowsort
SELECT ALL - - 16 * + AVG ( + col2 ) AS col0 FROM tab2 AS cor0 WHERE col0 IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-187
SELECT ALL - - col1 DIV - col2 + - + col0 FROM tab2 AS cor0
----
-48
-65
-76

skipif mysql # not compatible
query I rowsort label-187
SELECT ALL - - col1 / - col2 + - + col0 FROM tab2 AS cor0
----
-48
-65
-76

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

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

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

query I rowsort
SELECT ALL - col0 - - 93 * - - col1 FROM tab1
----
1251
380
4280

onlyif mysql # aggregate syntax: 
query I rowsort label-191
SELECT ALL ( 93 ) + + MAX( col1 ) FROM tab0
----
174

skipif mysql # not compatible
query I rowsort label-191
SELECT ALL ( 93 ) + + MAX ( col1 ) FROM tab0
----
174

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 33 * col1 * ( 49 ) * col1 * - 82 col1 FROM tab2
----
-344876994
-595214466
-786149826

query I rowsort
SELECT + col0 - col0 * + 77 FROM tab0
----
-1140
-6612
-7372

onlyif mysql # aggregate syntax: 
query I rowsort label-195
SELECT ALL ( - MIN( ALL + - ( + - col0 ) ) ) AS col2 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-195
SELECT ALL ( - MIN ( ALL + - ( + - col0 ) ) ) AS col2 FROM tab0 AS cor0
----
-15

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

onlyif mysql # aggregate syntax: 
query I rowsort label-197
SELECT DISTINCT MIN( 47 ) * 25 FROM tab2 cor0
----
1175

skipif mysql # not compatible
query I rowsort label-197
SELECT DISTINCT MIN ( 47 ) * 25 FROM tab2 cor0
----
1175

query II rowsort
SELECT ALL - col2 AS col0, + 28 AS col2 FROM tab2 AS cor0
----
-23
28
-40
28
-58
28

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

query II rowsort
SELECT 34, - 48 AS col0 FROM tab1
----
34
-48
34
-48
34
-48

query II rowsort
SELECT - 36, + 54 AS col1 FROM tab1 AS cor0
----
-36
54
-36
54
-36
54

query I rowsort
SELECT ( 33 ) FROM tab1 AS cor0 WHERE NOT - col2 IS NULL
----
33
33
33

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

query II rowsort
SELECT + 78 AS col0, col1 FROM tab1 AS cor0
----
78
14
78
47
78
5

query I rowsort
SELECT - col1 * + + col2 AS col2 FROM tab0
----
-210
-3807
-99

query I rowsort
SELECT DISTINCT + 7 * + + col0 * - col0 FROM tab2
----
-14812
-28672
-39375

query I rowsort
SELECT + col0 * + 8 FROM tab0
----
120
696
776

query I rowsort
SELECT + 26 * - col2 AS col2 FROM tab2
----
-1040
-1508
-598

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

onlyif mysql # aggregate syntax: 
query I rowsort label-210
SELECT ALL SUM( + + 48 ) FROM tab1
----
144

skipif mysql # not compatible
query I rowsort label-210
SELECT ALL SUM ( + + 48 ) FROM tab1
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-211
SELECT ALL MAX( ALL + 60 ) AS col1 FROM tab0
----
60

skipif mysql # not compatible
query I rowsort label-211
SELECT ALL MAX ( ALL + 60 ) AS col1 FROM tab0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-212
SELECT ALL MAX( + + col0 ) * - 15 * - 3 AS col1 FROM tab0
----
4365

skipif mysql # not compatible
query I rowsort label-212
SELECT ALL MAX ( + + col0 ) * - 15 * - 3 AS col1 FROM tab0
----
4365

query II rowsort
SELECT col1, - col1 FROM tab2 WHERE NOT NULL IS NULL
----

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

query II rowsort
SELECT ALL 88 + + + col1 + - col1, 25 - + + col1 + - col1 AS col1 FROM tab0 AS cor0
----
88
-137
88
-17
88
23

onlyif mysql # aggregate syntax: 
query I rowsort label-216
SELECT - MIN( - col1 ) + - - 18 AS col2 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-216
SELECT - MIN ( - col1 ) + - - 18 AS col2 FROM tab0 AS cor0
----
99

query I rowsort
SELECT ALL + col1 + 96 + - col0 * + + col0 * - ( - col0 ) AS col2 FROM tab0 AS cor0
----
-3198
-658386
-912576

query I rowsort
SELECT + col2 + - ( - - col0 ) AS col0 FROM tab2 AS cor0
----
-17
-23
-24

query I rowsort
SELECT + - col1 * 81 + + + col2 + + 22 FROM tab0 AS cor0
----
-1669
-6492
40

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-221
SELECT DISTINCT 65 DIV + col2 + col1 FROM tab2 AS cor0
----
53
68
78

skipif mysql # not compatible
query I rowsort label-221
SELECT DISTINCT 65 / + col2 + col1 FROM tab2 AS cor0
----
53
68
78

query I rowsort
SELECT + 29 * + col0 AS col1 FROM tab1 AS cor0
----
1479
2465
2639

onlyif mysql # aggregate syntax: 
query I rowsort label-223
SELECT + - 86 * COUNT( * ) * - 17 - + - COUNT( * ) AS col2 FROM tab0 cor0
----
4389

skipif mysql # not compatible
query I rowsort label-223
SELECT + - 86 * COUNT ( * ) * - 17 - + - COUNT ( * ) AS col2 FROM tab0 cor0
----
4389

query I rowsort
SELECT DISTINCT - col1 + - + col0 FROM tab1 AS cor0
----
-138
-65
-90

query I rowsort
SELECT ALL 23 - ( + col0 ) + - + 15 AS col0 FROM tab2 AS cor0
----
-38
-56
-67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 94 col0 FROM tab1 AS cor0 WHERE 22 * - 91 / + - col2 >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-227
SELECT + 29 DIV + + col0 * + + col1 * - 75 + - 33 * + + col1 FROM tab1
----
-1551
-165
-462

skipif mysql # not compatible
query I rowsort label-227
SELECT + 29 / + + col0 * + + col1 * - 75 + - 33 * + + col1 FROM tab1
----
-1551
-165
-462

query I rowsort
SELECT DISTINCT 70 * + col0 AS col1 FROM tab0
----
1050
6090
6790

query I rowsort
SELECT ALL + 80 - - 24 FROM tab0
----
104
104
104

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

onlyif mysql # aggregate syntax: 
query I rowsort label-231
SELECT 17 * COUNT( * ) AS col1 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-231
SELECT 17 * COUNT ( * ) AS col1 FROM tab2 AS cor0
----
51

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN 69 AND 98
----

query I rowsort
SELECT DISTINCT col0 * - 68 AS col1 FROM tab1
----
-3468
-5780
-6188

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

skipif mysql # not compatible
query I rowsort label-234
SELECT ALL - 68 * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

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

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

query II rowsort
SELECT - col1 AS col2, - col1 FROM tab1 AS cor0
----
-14
-14
-47
-47
-5
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 69 col2 FROM tab0 AS cor0
----
69
69
69

onlyif mysql # aggregate syntax: 
query II rowsort label-238
SELECT DISTINCT + - 11 AS col1, - MAX( - 91 ) AS col2 FROM tab0 AS cor0
----
-11
91

skipif mysql # not compatible
query II rowsort label-238
SELECT DISTINCT + - 11 AS col1, - MAX ( - 91 ) AS col2 FROM tab0 AS cor0
----
-11
91

onlyif mysql # aggregate syntax: 
query I rowsort label-239
SELECT + MIN( - col1 ) + 79 col0 FROM tab1 AS cor0
----
32

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

query I rowsort
SELECT ALL + 41 * - - ( + col0 ) FROM tab0
----
3567
3977
615

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

query II rowsort
SELECT - col1, - col1 AS col1 FROM tab1
----
-14
-14
-47
-47
-5
-5

query I rowsort
SELECT + col0 * + col2 * - - 43 FROM tab2
----
110080
187050
45494

query II rowsort
SELECT DISTINCT - 75 AS col1, + 86 AS col2 FROM tab1
----
-75
86

query II rowsort
SELECT + 89, ( + 82 ) + - 67 AS col0 FROM tab0
----
89
15
89
15
89
15

query I rowsort
SELECT DISTINCT - - ( col2 ) * + ( - col0 ) + - 69 + - 26 AS col0 FROM tab2 cor0
----
-1153
-2655
-4445

query I rowsort
SELECT DISTINCT col1 * - 34 + + col2 - ( col1 ) AS col2 FROM tab0 AS cor0
----
-2788
-725
64

query I rowsort
SELECT ALL ( 15 ) FROM tab0
----
15
15
15

query I rowsort
SELECT + 95 + col0 + + + col1 * + ( - 62 ) - + ( + col2 ) AS col0 FROM tab1
----
-189
-2796
-818

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

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

query I rowsort
SELECT + + 38 * + 91 + - col2 * - + 21 * + col0 + - col0 FROM tab2 AS cor0
----
25630
57154
94733

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-252
SELECT ALL ( - 54 ) AS col0, 63 * + COUNT( * ) DIV CAST( + COUNT( * ) AS SIGNED ) * - COUNT( * ) FROM tab0 cor0
----
-54
-189

skipif mysql # not compatible
query II rowsort label-252
SELECT ALL ( - 54 ) AS col0, 63 * + COUNT ( * ) / CAST ( + COUNT ( * ) AS INTEGER ) * - COUNT ( * ) FROM tab0 cor0
----
-54
-189

query I rowsort
SELECT - ( 24 ) * + col0 FROM tab1 cor0
----
-1224
-2040
-2184

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( NULL ) <> NULL
----

query I rowsort
SELECT DISTINCT - col0 + + - col1 AS col2 FROM tab1 AS cor0
----
-138
-65
-90

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

query II rowsort
SELECT + col0, 52 FROM tab2 WHERE NOT NULL IS NOT NULL
----
46
52
64
52
75
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col1, - col1 - 24 FROM tab0
----
10
-45
47
-105
99
-25

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

query I rowsort
SELECT ALL ( + + 91 ) AS col0 FROM tab0
----
91
91
91

query I rowsort
SELECT ALL - ( 20 ) FROM tab2, tab0 AS cor0
----
9 values hashing to f1cccb95c90889319e7a51e4ae9475bb

query II rowsort
SELECT DISTINCT + 74 AS col1, col0 * - + col2 FROM tab0 AS cor0 WHERE NOT + 8 < NULL
----

query III rowsort
SELECT * FROM tab0 WHERE col0 + col2 <= ( NULL )
----

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

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

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

query I rowsort
SELECT ALL - col2 FROM tab0 WHERE NULL IN ( + col0 )
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-268
SELECT ALL CAST( 84 AS SIGNED ) - col0 FROM tab1
----
-1
-7
33

skipif mysql # not compatible
query I rowsort label-268
SELECT ALL CAST ( 84 AS INTEGER ) - col0 FROM tab1
----
-1
-7
33

onlyif mysql # aggregate syntax: 
query I rowsort label-269
SELECT - COUNT( * ) + + 2 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-269
SELECT - COUNT ( * ) + + 2 FROM tab2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-270
SELECT DISTINCT - 22 * COUNT( * ) col2 FROM tab1 WHERE - 86 < ( col0 )
----
-66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-270
SELECT DISTINCT - 22 * COUNT ( * ) col2 FROM tab1 WHERE - 86 < ( col0 )
----
-66

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

query I rowsort
SELECT ALL + 25 FROM tab1 WHERE 6 >= + ( col1 )
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-273
SELECT ALL 91 + - col1 * - ( - col1 DIV + 39 + 24 * 73 ) AS col2 FROM tab1
----
24619
82388
8851

skipif mysql # not compatible
query I rowsort label-273
SELECT ALL 91 + - col1 * - ( - col1 / + 39 + 24 * 73 ) AS col2 FROM tab1
----
24619
82388
8851

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 70 - - col1 * + 26 col1 FROM tab2
----
1256
1672
1932

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

query I rowsort
SELECT ALL 26 * - 73 AS col1 FROM tab1
----
-1898
-1898
-1898

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - 19 + col1 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 86 FROM tab0 WHERE NOT col2 * col1 IS NOT NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-280
SELECT + 4 DIV col2 + 69 AS col1 FROM tab2
----
69
69
69

skipif mysql # not compatible
query I rowsort label-280
SELECT + 4 / col2 + 69 AS col1 FROM tab2
----
69
69
69

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

query I rowsort
SELECT col1 * - 92 + - 99 FROM tab2 WHERE NOT - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-283
SELECT - col2 * - CAST( - col1 AS SIGNED ) FROM tab0
----
-210
-3807
-99

skipif mysql # not compatible
query I rowsort label-283
SELECT - col2 * - CAST ( - col1 AS INTEGER ) FROM tab0
----
-210
-3807
-99

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

skipif mysql # not compatible
query I rowsort label-284
SELECT 46 * - COUNT ( DISTINCT + 86 ) FROM tab0
----
-46

query I rowsort
SELECT + 2 - 92 * + 40 AS col1 FROM tab0
----
-3678
-3678
-3678

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

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

query I rowsort
SELECT + 89 * 13 + col1 AS col1 FROM tab2 AS cor0
----
1208
1224
1234

onlyif mysql # aggregate syntax: 
query I rowsort label-288
SELECT COUNT( * ) + MIN( - col2 ) AS col1 FROM tab2 AS cor0
----
-55

skipif mysql # not compatible
query I rowsort label-288
SELECT COUNT ( * ) + MIN ( - col2 ) AS col1 FROM tab2 AS cor0
----
-55

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 * + col2 >= NULL
----

query I rowsort
SELECT - col2 + 75 AS col2 FROM tab2 AS cor0
----
17
35
52

query I rowsort
SELECT 66 + - 31 FROM tab1 AS cor0 WHERE NULL IN ( + col1 / - col2 - - 53 * - 24 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-292
SELECT ALL - 32 DIV 78 + - CAST( + ( - COUNT( * ) ) AS SIGNED ) FROM tab1 AS cor0
----
3

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

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

query I rowsort
SELECT DISTINCT 83 * col0 - - 92 AS col2 FROM tab1
----
4325
7147
7645

query I rowsort
SELECT + - col0 - 54 AS col0 FROM tab1 AS cor0
----
-105
-139
-145

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

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

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

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

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

query I rowsort
SELECT DISTINCT - col1 * - col2 + - col2 AS col2 FROM tab0 AS cor0
----
0
200
3760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col1 FROM tab2 cor0 WHERE NULL NOT BETWEEN 85 * - col1 AND - col2 + col0
----

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( + col2 ) = 56
----

onlyif mysql # DIV for integer division: 
query I rowsort label-306
SELECT DISTINCT - col0 DIV ( 98 ) col0 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-306
SELECT DISTINCT - col0 / ( 98 ) col0 FROM tab1
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-308
SELECT ALL + CAST( col1 AS SIGNED ) FROM tab2 WHERE ( - col0 ) NOT IN ( + 87 )
----
51
67
77

skipif mysql # not compatible
query I rowsort label-308
SELECT ALL + CAST ( col1 AS INTEGER ) FROM tab2 WHERE ( - col0 ) NOT IN ( + 87 )
----
51
67
77

query I rowsort
SELECT + 9 * col0 AS col0 FROM tab1
----
459
765
819

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

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

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT IN ( 77 + col2 )
----

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

query I rowsort
SELECT 20 AS col0 FROM tab1 cor0
----
20
20
20

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

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

query I rowsort
SELECT - - col2 + 65 FROM tab2 AS cor0
----
105
123
88

query I rowsort
SELECT ALL + col1 * col1 + - col0 AS col2 FROM tab0 AS cor0
----
-96
354
6546

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-319
SELECT CAST ( NULL AS REAL ) * - col1 col0 FROM tab2 cor0 WHERE - col1 * + col1 = NULL
----

query I rowsort
SELECT 56 FROM tab1 AS cor0 WHERE - 62 NOT IN ( + col2 * + col1 )
----
56
56
56

query I rowsort
SELECT DISTINCT + col1 FROM tab0 AS cor0 WHERE col2 + + col1 <= NULL
----

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

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

query I rowsort
SELECT DISTINCT - col0 + - 40 - - col1 AS col0 FROM tab2 cor0
----
-27
-35
-48

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 16 + - col2 + + ( + col0 ) <= ( - 63 )
----

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

query II rowsort
SELECT DISTINCT - col0, - 82 AS col1 FROM tab1 cor0
----
-51
-82
-85
-82
-91
-82

query I rowsort
SELECT + 48 + - col1 * col2 AS col1 FROM tab2 AS cor0 WHERE ( + 30 ) IS NOT NULL
----
-1125
-3032
-3838

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

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - + 86 > + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

skipif mysql # not compatible
query I rowsort label-332
SELECT ALL 81 + COUNT ( * ) FROM tab0
----
84

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

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

query I rowsort
SELECT + - 25 FROM tab0 WHERE NULL > - + 8
----

query I rowsort
SELECT DISTINCT ( + - 85 ) FROM tab1
----
-85

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-337
SELECT DISTINCT + col0 DIV + col2 AS col0 FROM tab0 WHERE NOT col2 = ( + - 38 )
----
0
8

skipif mysql # not compatible
query I rowsort label-337
SELECT DISTINCT + col0 / + col2 AS col0 FROM tab0 WHERE NOT col2 = ( + - 38 )
----
0
8

query I rowsort
SELECT col0 AS col2 FROM tab1 WHERE NULL NOT BETWEEN col2 + - col2 + - col0 * 13 AND col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-339
SELECT 65 * col0, ( CAST( NULL AS SIGNED ) ) AS col2 FROM tab2
----
2990
NULL
4160
NULL
4875
NULL

skipif mysql # not compatible
query II rowsort label-339
SELECT 65 * col0, ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2
----
2990
NULL
4160
NULL
4875
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE 64 / - ( 14 ) * + col2 NOT BETWEEN NULL AND ( NULL )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-343
SELECT ALL - 42 - + ( + SUM( ALL - - col1 ) ) AS col0 FROM tab0
----
-145

skipif mysql # not compatible
query I rowsort label-343
SELECT ALL - 42 - + ( + SUM ( ALL - - col1 ) ) AS col0 FROM tab0
----
-145

query I rowsort
SELECT col0 + - 27 * - + col1 AS col2 FROM tab2
----
1423
1884
2143

onlyif mysql # aggregate syntax: 
query I rowsort label-345
SELECT ALL SUM( + + 70 ) * + 57 FROM tab0
----
11970

skipif mysql # not compatible
query I rowsort label-345
SELECT ALL SUM ( + + 70 ) * + 57 FROM tab0
----
11970

query III rowsort
SELECT * FROM tab1 WHERE col0 BETWEEN ( - - 81 ) AND ( NULL )
----

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL >= - 64
----

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

query I rowsort
SELECT ALL - col2 AS col2 FROM tab1 AS cor0 WHERE - 74 NOT BETWEEN NULL AND + - 20
----

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

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

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

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

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

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

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

query II rowsort
SELECT ALL col1 AS col1, 13 AS col2 FROM tab2
----
51
13
67
13
77
13

query I rowsort
SELECT DISTINCT + 63 * col2 * - - col1 FROM tab1
----
18585
201348
84672

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-358
SELECT - SUM( 41 ) AS col1 FROM tab1
----
-123

skipif mysql # not compatible
query I rowsort label-358
SELECT - SUM ( 41 ) AS col1 FROM tab1
----
-123

onlyif mysql # aggregate syntax: 
query I rowsort label-359
SELECT ALL MAX( DISTINCT - + col2 ) * + MIN( DISTINCT + + col0 ) col0 FROM tab1
----
-3009

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-359
SELECT ALL MAX ( DISTINCT - + col2 ) * + MIN ( DISTINCT + + col0 ) col0 FROM tab1
----
-3009

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

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

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

query I rowsort
SELECT 33 + + 9 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
42
42
42

query II rowsort
SELECT - 78 + - col1 - - ( + + col0 ) AS col2, - col2 AS col1 FROM tab0 cor0
----
-12
-10
-144
-47
18
-99

query I rowsort
SELECT ALL + col1 * 82 FROM tab2
----
4182
5494
6314

query I rowsort
SELECT col1 * - 98 + - col2 AS col0 FROM tab2
----
-5021
-6624
-7586

query I rowsort
SELECT + col0 + + 30 - - + col2 FROM tab1
----
174
177
189

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

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

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

query I rowsort
SELECT DISTINCT - 49 + - col2 AS col1 FROM tab1 AS cor0
----
-108
-117
-145

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

query II rowsort
SELECT ALL - 24, ( 65 ) + 12 AS col0 FROM tab1
----
-24
77
-24
77
-24
77

query I rowsort
SELECT DISTINCT + 35 - - col1 FROM tab1
----
40
49
82

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

query II rowsort
SELECT ALL - col1 AS col1, - 37 FROM tab1
----
-14
-37
-47
-37
-5
-37

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

query I rowsort
SELECT DISTINCT - col1 * - col2 - + col0 + - col0 AS col0 FROM tab2 AS cor0
----
1081
2952
3736

query I rowsort
SELECT DISTINCT + - 14 + col0 AS col0 FROM tab2 AS cor0
----
32
50
61

query I rowsort
SELECT - - 31 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

query I rowsort
SELECT ALL - 59 * 58 AS col2 FROM tab2 AS cor0
----
-3422
-3422
-3422

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-380
SELECT CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-380
SELECT CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-382
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 97 > + CAST( - - col0 AS SIGNED ) + + 40
----
64
77
40
75
67
58

skipif mysql # not compatible
query III rowsort label-382
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 97 > + CAST ( - - col0 AS INTEGER ) + + 40
----
64
77
40
75
67
58

onlyif mysql # aggregate syntax: 
query I rowsort label-383
SELECT 30 * COUNT( * ) AS col0 FROM tab2 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-383
SELECT 30 * COUNT ( * ) AS col0 FROM tab2 AS cor0
----
90

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-386
SELECT + COUNT( 13 ) col1 FROM tab0
----
3

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

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

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

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

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

query I rowsort
SELECT + - col1 AS col2 FROM tab1 WHERE NOT NULL <> + 11
----

query I rowsort
SELECT DISTINCT - 40 * + col1 * + col1 FROM tab1
----
-1000
-7840
-88360

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

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

query I rowsort
SELECT ALL + 7 * - col1 FROM tab0
----
-147
-567
-7

query I rowsort
SELECT ALL + col1 * + 16 AS col2 FROM tab2 AS cor0
----
1072
1232
816

onlyif mysql # DIV for integer division: 
query II rowsort label-395
SELECT DISTINCT col1 DIV ( - 5 ) AS col1, - col0 + - col1 FROM tab2 AS cor0
----
-10
-97
-13
-142
-15
-141

skipif mysql # not compatible
query II rowsort label-395
SELECT DISTINCT col1 / ( - 5 ) AS col1, - col0 + - col1 FROM tab2 AS cor0
----
-10
-97
-13
-142
-15
-141

query I rowsort
SELECT ALL - col1 * - - 56 + + col2 + + col1 AS col2 FROM tab0 AS cor0
----
-1145
-4408
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-397
SELECT DISTINCT + col0 * - - 46 * CAST( col2 AS SIGNED ) AS col1 FROM tab1
----
225216
230690
284648

skipif mysql # not compatible
query I rowsort label-397
SELECT DISTINCT + col0 * - - 46 * CAST ( col2 AS INTEGER ) AS col1 FROM tab1
----
225216
230690
284648

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + + 74 ) < - 64 * - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + col1 + - - col1, + col2 FROM tab0 AS cor0
----
162
47
2
99
42
10

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

skipif mysql # not compatible
query I rowsort label-400
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + ( + 45 ) + - 18 / + col0 / ( + col0 ) AS col0 FROM tab2 AS cor0
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-402
SELECT ALL col1 DIV + 93 * - col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-402
SELECT ALL col1 / + 93 * - col1 FROM tab0 AS cor0
----
0
0
0

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

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

query I rowsort
SELECT DISTINCT 35 FROM tab1 AS cor0 WHERE 91 IS NULL
----

query I rowsort
SELECT ALL - 63 + + + col0 FROM tab1 AS cor0
----
-12
22
28

query III rowsort
SELECT * FROM tab2 cor0 WHERE 44 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-407
SELECT - 41 * - ( + COUNT( * ) ) AS col1 FROM tab1
----
123

skipif mysql # not compatible
query I rowsort label-407
SELECT - 41 * - ( + COUNT ( * ) ) AS col1 FROM tab1
----
123

onlyif mysql # DIV for integer division: 
query I rowsort label-408
SELECT DISTINCT - 1 DIV 97 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-408
SELECT DISTINCT - 1 / 97 FROM tab1
----
0

query I rowsort
SELECT + col0 * - col1 * + 3 AS col1 FROM tab1
----
-1275
-12831
-2142

onlyif mysql # aggregate syntax: 
query I rowsort label-410
SELECT + COUNT( * ) * + 25 FROM tab1
----
75

skipif mysql # not compatible
query I rowsort label-410
SELECT + COUNT ( * ) * + 25 FROM tab1
----
75

query I rowsort
SELECT - 82 * - 62 - 86 AS col2 FROM tab2
----
4998
4998
4998

onlyif mysql # aggregate syntax: 
query I rowsort label-412
SELECT DISTINCT + COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

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

query I rowsort
SELECT DISTINCT + 63 + 87 AS col1 FROM tab2 AS cor0
----
150

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-414
SELECT 62 DIV - - SUM( ALL - col0 ) * + COUNT( * ) * - 70 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-414
SELECT 62 / - - SUM ( ALL - col0 ) * + COUNT ( * ) * - 70 FROM tab0
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-416
SELECT ALL + MIN( ALL - - 16 ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
16

skipif mysql # not compatible
query I rowsort label-416
SELECT ALL + MIN ( ALL - - 16 ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
16

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 col2, - 24 FROM tab2 AS cor0
----
51
-24
67
-24
77
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-419
SELECT DISTINCT - - SUM( - 63 ) AS col1 FROM tab0 cor0
----
-189

skipif mysql # not compatible
query I rowsort label-419
SELECT DISTINCT - - SUM ( - 63 ) AS col1 FROM tab0 cor0
----
-189

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 6 * + 56 col0 FROM tab2 AS cor0
----
336

query I rowsort
SELECT - 89 * - col0 AS col0 FROM tab2 AS cor0
----
4094
5696
6675

query I rowsort
SELECT ALL - col2 * 4 * + + col1 + - + col0 AS col1 FROM tab1 AS cor0
----
-1265
-12875
-5427

onlyif mysql # DIV for integer division: 
query I rowsort label-423
SELECT - col2 DIV col0 * 51 FROM tab0
----
-153
-51
0

skipif mysql # not compatible
query I rowsort label-423
SELECT - col2 / col0 * 51 FROM tab0
----
-153
-51
0

onlyif mysql # aggregate syntax: 
query I rowsort label-424
SELECT DISTINCT 95 * COUNT( * ) AS col2 FROM tab0
----
285

skipif mysql # not compatible
query I rowsort label-424
SELECT DISTINCT 95 * COUNT ( * ) AS col2 FROM tab0
----
285

onlyif mysql # aggregate syntax: 
query I rowsort label-425
SELECT + MAX( ALL - col1 ) AS col1 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-425
SELECT + MAX ( ALL - col1 ) AS col1 FROM tab0
----
-1

query I rowsort
SELECT DISTINCT 56 * col1 + col1 * 9 FROM tab2 AS cor0
----
3315
4355
5005

query I rowsort
SELECT + ( col0 ) + - col1 AS col0 FROM tab2 AS cor0
----
-13
-5
8

query I rowsort
SELECT ALL + 96 * + + col2 FROM tab2 cor0
----
2208
3840
5568

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

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

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

skipif mysql # not compatible
query I rowsort label-431
SELECT + col0 / + + col0 FROM tab0 AS cor0
----
1
1
1

onlyif mysql # DIV for integer division: 
query II rowsort label-432
SELECT + col1, col1 + + col0 - + + col2 DIV col0 + + 49 FROM tab2 cor0
----
51
146
67
191
77
190

skipif mysql # not compatible
query II rowsort label-432
SELECT + col1, col1 + + col0 - + + col2 / col0 + + 49 FROM tab2 cor0
----
51
146
67
191
77
190

query II rowsort
SELECT - col2 AS col0, col1 * - - col1 * - 49 FROM tab0 AS cor0 WHERE + col1 / + 89 <= + col0
----
-10
-21609
-47
-321489
-99
-49

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

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

query I rowsort
SELECT col0 - + + col2 * - 68 AS col1 FROM tab0 AS cor0
----
3211
6829
767

query II rowsort
SELECT DISTINCT + col2 * + col2 * + 24 + + col2 + + - col2 AS col2, + 28 AS col0 FROM tab2 AS cor0
----
12696
28
38400
28
80736
28

query I rowsort
SELECT ALL ( + ( - + col2 ) ) + - col1 AS col1 FROM tab1 AS cor0
----
-110
-115
-64

query I rowsort
SELECT - 67 + - ( + 41 ) AS col2 FROM tab2
----
-108
-108
-108

query I rowsort
SELECT ( - col2 ) * + + 29 + - col2 + col1 * - - col2 FROM tab0
----
-2871
-90
2397

query I rowsort
SELECT DISTINCT - col0 FROM tab0 WHERE NOT + - 6 + 78 IS NULL
----
-15
-87
-97

query II rowsort
SELECT - col1 AS col1, col1 FROM tab1
----
-14
14
-47
47
-5
5

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

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

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

query I rowsort
SELECT ALL 98 AS col0 FROM tab0 cor0
----
98
98
98

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 < - + 27 + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 99 * 73 FROM tab1 AS cor0
----
7227
7227
7227

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

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

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

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

query I rowsort
SELECT - col0 * + - 74 * - col2 FROM tab0 AS cor0
----
-52170
-64380
-710622

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-450
SELECT ALL - MIN ( + - col2 ) col2 FROM tab2
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-451
SELECT ALL - SUM( - ( - - CAST( col0 AS SIGNED ) ) ) FROM tab2 WHERE + col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-451
SELECT ALL - SUM ( - ( - - CAST ( col0 AS INTEGER ) ) ) FROM tab2 WHERE + col0 IS NULL
----
NULL

query II rowsort
SELECT - 98 AS col0, + ( col2 ) FROM tab1
----
-98
59
-98
68
-98
96

query I rowsort
SELECT ALL + col1 + - - col0 AS col0 FROM tab1
----
138
65
90

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-455
SELECT ALL COUNT( * ) AS col0, - 31 FROM tab2 AS cor0
----
3
-31

skipif mysql # not compatible
query II rowsort label-455
SELECT ALL COUNT ( * ) AS col0, - 31 FROM tab2 AS cor0
----
3
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-456
SELECT CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE + col0 NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-456
SELECT CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE + col0 NOT BETWEEN NULL AND NULL
----

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-459
SELECT 22 + - - col0 + col0 DIV + 62 + + col2, col1 * col1 AS col0 FROM tab1
----
167
25
169
196
182
2209

skipif mysql # not compatible
query II rowsort label-459
SELECT 22 + - - col0 + col0 / + 62 + + col2, col1 * col1 AS col0 FROM tab1
----
167
25
169
196
182
2209

query I rowsort
SELECT DISTINCT 49 AS col1 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
49

onlyif mysql # DIV for integer division: 
query II rowsort label-461
SELECT - - col2 DIV + 97, 80 - + col1 AS col1 FROM tab2 AS cor0
----
0
13
0
29
0
3

skipif mysql # not compatible
query II rowsort label-461
SELECT - - col2 / + 97, 80 - + col1 AS col1 FROM tab2 AS cor0
----
0
13
0
29
0
3

onlyif mysql # DIV for integer division: 
query I rowsort label-462
SELECT DISTINCT + - 85 + - col1 DIV + 59 FROM tab0 cor0
----
-85
-86

skipif mysql # not compatible
query I rowsort label-462
SELECT DISTINCT + - 85 + - col1 / + 59 FROM tab0 cor0
----
-85
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-463
SELECT ALL col2 DIV 71 + 62 * col0 * col2 - + - col2 * + col0 AS col1 FROM tab2 AS cor0
----
161280
274050
66654

skipif mysql # not compatible
query I rowsort label-463
SELECT ALL col2 / 71 + 62 * col0 * col2 - + - col2 * + col0 AS col1 FROM tab2 AS cor0
----
161280
274050
66654

query I rowsort
SELECT ALL - 54 + col2 AS col1 FROM tab0 cor0
----
-44
-7
45

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

query I rowsort
SELECT DISTINCT ( + col0 ) - - 56 + - - 85 * 52 FROM tab1
----
4527
4561
4567

onlyif mysql # aggregate syntax: 
query I rowsort label-467
SELECT ALL MIN( - col0 ) + + 21 FROM tab2
----
-54

skipif mysql # not compatible
query I rowsort label-467
SELECT ALL MIN ( - col0 ) + + 21 FROM tab2
----
-54

query I rowsort
SELECT DISTINCT ( + + 29 ) FROM tab0
----
29

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

query I rowsort
SELECT ( - + col0 ) - ( 12 ) FROM tab2
----
-58
-76
-87

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

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

query I rowsort
SELECT 16 * + - col2 FROM tab0
----
-1584
-160
-752

query I rowsort
SELECT ALL 13 * - col0 AS col0 FROM tab0 AS cor0
----
-1131
-1261
-195

query I rowsort
SELECT ALL + col2 * col0 - + ( - - 28 ) AS col2 FROM tab0 cor0
----
677
842
9575

query I rowsort
SELECT - - col0 FROM tab0 AS cor0 WHERE NOT - col0 IN ( col1 + - 42 + - 86 / col1 * - col2 + - col2 + - 63, 7 * - col1 )
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-476
SELECT DISTINCT + COUNT( * ) * + COUNT( * ) * 57 + - + COUNT( * ) AS col1 FROM tab0 cor0 WHERE NULL IS NULL
----
510

skipif mysql # not compatible
query I rowsort label-476
SELECT DISTINCT + COUNT ( * ) * + COUNT ( * ) * 57 + - + COUNT ( * ) AS col1 FROM tab0 cor0 WHERE NULL IS NULL
----
510

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-477
SELECT ALL + SUM ( DISTINCT + col0 ) col2 FROM tab0
----
199

onlyif mysql # aggregate syntax: 
query I rowsort label-478
SELECT DISTINCT + MIN( + 11 ) AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
11

skipif mysql # not compatible
query I rowsort label-478
SELECT DISTINCT + MIN ( + 11 ) AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
11

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

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

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

query I rowsort
SELECT ALL - + 92 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1af709a79a3e56281ffdce4d931d5965

onlyif mysql # aggregate syntax: 
query I rowsort label-482
SELECT ALL + ( + COUNT( * ) ) AS col1 FROM tab2, tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-482
SELECT ALL + ( + COUNT ( * ) ) AS col1 FROM tab2, tab1 AS cor0
----
9

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

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

query I rowsort
SELECT DISTINCT + - 67 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-67

query II rowsort
SELECT ALL - col1 AS col2, col0 AS col1 FROM tab2 cor0
----
-51
46
-67
75
-77
64

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

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

query II rowsort
SELECT ALL - - 34 AS col1, 36 FROM tab1 AS cor0
----
34
36
34
36
34
36

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

onlyif mysql # aggregate syntax: 
query I rowsort label-489
SELECT DISTINCT SUM( + ( 16 ) ) AS col1 FROM tab1 cor0
----
48

skipif mysql # not compatible
query I rowsort label-489
SELECT DISTINCT SUM ( + ( 16 ) ) AS col1 FROM tab1 cor0
----
48

query I rowsort
SELECT ALL + 79 * 23 + + + col2 AS col0 FROM tab0 AS cor0
----
1827
1864
1916

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + - col2 ) col0 FROM tab0 AS cor0
----
-10
-47
-99

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

skipif mysql # not compatible
query I rowsort label-492
SELECT - - col0 FROM tab1 AS cor0 WHERE NOT CAST ( - col2 AS INTEGER ) IS NOT NULL
----

query II rowsort
SELECT + 41 AS col1, + 38 FROM tab1 AS cor0
----
41
38
41
38
41
38

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 19 col0, - col0 AS col2 FROM tab1 AS cor0
----
19
-51
19
-85
19
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 + + col1 col1, + 76 FROM tab2 AS cor0
----
0
76

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-498
SELECT 7 DIV + ( - COUNT( ALL - 71 ) ) AS col0 FROM tab2
----
-2

skipif mysql # not compatible
query I rowsort label-498
SELECT 7 / + ( - COUNT ( ALL - 71 ) ) AS col0 FROM tab2
----
-2

query I rowsort
SELECT DISTINCT col2 + - ( + + col2 ) AS col0 FROM tab2 cor0
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( - col0 > + - col2 )
----

query I rowsort
SELECT + - col1 + 9 FROM tab0 AS cor0
----
-12
-72
8

query I rowsort
SELECT - + 32 FROM tab2 cor0 WHERE NULL NOT BETWEEN 32 * - + col1 AND NULL
----

query I rowsort
SELECT 87 - col0 FROM tab2 AS cor0
----
12
23
41

query I rowsort
SELECT ALL + col0 * - col2 + - - col1 AS col0 FROM tab0 AS cor0
----
-624
-849
-9602

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-508
SELECT ALL - - col0 DIV col2 + - col1 + + - 52 AS col1 FROM tab1 AS cor0
----
-56
-66
-98

skipif mysql # not compatible
query I rowsort label-508
SELECT ALL - - col0 / col2 + - col1 + + - 52 AS col1 FROM tab1 AS cor0
----
-56
-66
-98

query I rowsort
SELECT DISTINCT - 97 + - col2 * - col0 AS col1 FROM tab1 AS cor0
----
4799
4918
6091

onlyif mysql # aggregate syntax: 
query I rowsort label-510
SELECT + 29 + COUNT( * ) AS col1 FROM tab2 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-510
SELECT + 29 + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
32

query I rowsort
SELECT DISTINCT ( - col1 ) * - col2 FROM tab0
----
210
3807
99

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col0 ) > col1
----
46
51
23
64
77
40

onlyif mysql # DIV for integer division: 
query I rowsort label-513
SELECT DISTINCT + 26 DIV - col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-513
SELECT DISTINCT + 26 / - col0 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-514
SELECT MIN( - 23 ) col2 FROM tab1
----
-23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-514
SELECT MIN ( - 23 ) col2 FROM tab1
----
-23

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE - ( + + col1 ) / - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + col1 * - col2 * col2 + - col2 + 61 col0, - col0 * + col0 AS col1 FROM tab1 AS cor0
----
128989
-2601
17407
-7225
217321
-8281

query I rowsort
SELECT + 39 + 13 FROM tab1 AS cor0
----
52
52
52

query I rowsort
SELECT DISTINCT + col0 * col0 + + + col1 FROM tab2 AS cor0
----
2167
4173
5692

query I rowsort
SELECT ALL - 29 * + col0 + - col1 * col1 FROM tab1 AS cor0
----
-1675
-2490
-4848

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-521
SELECT + + CAST( - COUNT( * ) AS SIGNED ) DIV 6 AS col2 FROM tab1 AS cor0 WHERE NULL < + col1 * + col0 * + ( - - 8 ) + col2
----
0

skipif mysql # not compatible
query I rowsort label-521
SELECT + + CAST ( - COUNT ( * ) AS INTEGER ) / 6 AS col2 FROM tab1 AS cor0 WHERE NULL < + col1 * + col0 * + ( - - 8 ) + col2
----
0

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col1 / col1 * + col1 * - - 48 * 52 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-524
SELECT col2 col0, col2 + CAST( NULL AS SIGNED ) + 68 + + + 95 * + 67 FROM tab1
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-524
SELECT col2 col0, col2 + CAST ( NULL AS INTEGER ) + 68 + + + 95 * + 67 FROM tab1
----
59
NULL
68
NULL
96
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-525
SELECT DISTINCT COUNT( * ) * + SUM( + - 28 ) FROM tab0
----
-252

skipif mysql # not compatible
query I rowsort label-525
SELECT DISTINCT COUNT ( * ) * + SUM ( + - 28 ) FROM tab0
----
-252

query II rowsort
SELECT 69 AS col0, + 98 AS col2 FROM tab2
----
69
98
69
98
69
98

onlyif mysql # aggregate syntax: 
query I rowsort label-527
SELECT MAX( ALL + - col0 ) FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-527
SELECT MAX ( ALL + - col0 ) FROM tab1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-528
SELECT DISTINCT MAX( + 37 ) + - MIN( ALL + 8 ) AS col2 FROM tab2 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-528
SELECT DISTINCT MAX ( + 37 ) + - MIN ( ALL + 8 ) AS col2 FROM tab2 AS cor0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-529
SELECT ALL - COUNT( * ) + - 68 - + 99 + 51 * COUNT( * ) AS col0 FROM tab2 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-529
SELECT ALL - COUNT ( * ) + - 68 - + 99 + 51 * COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-17

query I rowsort
SELECT DISTINCT - 63 + + 9 FROM tab2 cor0
----
-54

query I rowsort
SELECT ALL + - 91 + - col2 FROM tab1 cor0
----
-150
-159
-187

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-533
SELECT - 92 / + SUM( + CAST( NULL AS SIGNED ) ) + - + MAX( DISTINCT + col1 ) + - + MIN( DISTINCT + 95 ) / + COUNT( * ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-533
SELECT - 92 / + SUM ( + CAST ( NULL AS INTEGER ) ) + - + MAX ( DISTINCT + col1 ) + - + MIN ( DISTINCT + 95 ) / + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL ( + - col1 ) AS col0 FROM tab1
----
-14
-47
-5

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

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

query I rowsort
SELECT ALL col0 + + 23 AS col1 FROM tab1 AS cor0
----
108
114
74

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

onlyif mysql # aggregate syntax: 
query II rowsort label-539
SELECT ALL + - COUNT( + col1 ) + + 85 AS col2, - 89 FROM tab0 AS cor0
----
82
-89

skipif mysql # not compatible
query II rowsort label-539
SELECT ALL + - COUNT ( + col1 ) + + 85 AS col2, - 89 FROM tab0 AS cor0
----
82
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-540
SELECT COUNT( * ) DIV - 3 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-540
SELECT COUNT ( * ) / - 3 FROM tab0 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-541
SELECT DISTINCT - ( - + COUNT( * ) ) AS col1, + MAX( DISTINCT - col1 ) * + - COUNT( * ) FROM tab2 AS cor0
----
3
153

skipif mysql # not compatible
query II rowsort label-541
SELECT DISTINCT - ( - + COUNT ( * ) ) AS col1, + MAX ( DISTINCT - col1 ) * + - COUNT ( * ) FROM tab2 AS cor0
----
3
153

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-542
SELECT ALL * FROM tab1 WHERE + CAST( NULL AS SIGNED ) + - + col1 BETWEEN - + 10 AND 6
----

skipif mysql # not compatible
query III rowsort label-542
SELECT ALL * FROM tab1 WHERE + CAST ( NULL AS INTEGER ) + - + col1 BETWEEN - + 10 AND 6
----

query II rowsort
SELECT col0, - col0 * + col2 * - - 94 FROM tab2
----
46
-99452
64
-240640
75
-408900

query II rowsort
SELECT col0 AS col2, ( + 92 ) FROM tab1
----
51
92
85
92
91
92

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

query I rowsort
SELECT DISTINCT 88 * - - 54 AS col2 FROM tab1
----
4752

query II rowsort
SELECT - ( 7 ) * - + 79 AS col1, + ( col2 ) AS col2 FROM tab1
----
553
59
553
68
553
96

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

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

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

skipif mysql # not compatible
query I rowsort label-549
SELECT DISTINCT - CAST ( - 45 AS INTEGER ) FROM tab0
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-550
SELECT DISTINCT COUNT( * ) DIV + + MAX( DISTINCT - col2 ) AS col1, - SUM( ALL - + col2 ) - 29 DIV + 51 AS col2 FROM tab0 AS cor0
----
0
156

skipif mysql # not compatible
query II rowsort label-550
SELECT DISTINCT COUNT ( * ) / + + MAX ( DISTINCT - col2 ) AS col1, - SUM ( ALL - + col2 ) - 29 / + 51 AS col2 FROM tab0 AS cor0
----
0
156

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

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

query II rowsort
SELECT DISTINCT 67, - 12 AS col2 FROM tab2 AS cor0
----
67
-12

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

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

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

skipif mysql # not compatible
query I rowsort label-555
SELECT - COUNT ( * ) + + 2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-556
SELECT ALL COUNT( * ) * + COUNT( + 38 ) AS col1 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-556
SELECT ALL COUNT ( * ) * + COUNT ( + 38 ) AS col1 FROM tab1
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + col2 * + + col1 col1 FROM tab1
----
-129024
-17405
-217328

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

query I rowsort
SELECT DISTINCT + ( 33 ) + 68 AS col0 FROM tab1
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-560
SELECT ALL COUNT( + 14 ) + + - MAX( ALL + col1 ) FROM tab0 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-560
SELECT ALL COUNT ( + 14 ) + + - MAX ( ALL + col1 ) FROM tab0 AS cor0
----
-78

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

skipif mysql # not compatible
query I rowsort label-561
SELECT - + SUM ( - + col1 ) FROM tab0 AS cor0
----
103

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

query I rowsort
SELECT + 18 * + 91 FROM tab1 AS cor0
----
1638
1638
1638

onlyif mysql # DIV for integer division: 
query II rowsort label-564
SELECT - col0 * + col1, col2 DIV - - col1 + - col1 + + + 54 AS col2 FROM tab1 AS cor0
----
-425
60
-4277
8
-714
46

skipif mysql # not compatible
query II rowsort label-564
SELECT - col0 * + col1, col2 / - - col1 + - col1 + + + 54 AS col2 FROM tab1 AS cor0
----
-425
60
-4277
8
-714
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-565
SELECT ALL CAST( 77 AS SIGNED ) * - - col1 + + col0 * 65 + col2 + col1 + + col0 + col2 * + col2 + + col2 * + - col2 * 77 AS col0 FROM tab1 AS cor0
----
-258497
-341684
-695862

skipif mysql # not compatible
query I rowsort label-565
SELECT ALL CAST ( 77 AS INTEGER ) * - - col1 + + col0 * 65 + col2 + col1 + + col0 + col2 * + col2 + + col2 * + - col2 * 77 AS col0 FROM tab1 AS cor0
----
-258497
-341684
-695862

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-566
SELECT + ( - ( - col0 ) ) * 96, - CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0
----
4416
NULL
6144
NULL
7200
NULL

skipif mysql # not compatible
query II rowsort label-566
SELECT + ( - ( - col0 ) ) * 96, - CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0
----
4416
NULL
6144
NULL
7200
NULL

query II rowsort
SELECT ALL - 30, 77 AS col0 FROM tab2
----
-30
77
-30
77
-30
77

query I rowsort
SELECT + col0 + - - 81 + + ( - 52 ) * 41 FROM tab2
----
-1976
-1987
-2005

onlyif mysql # aggregate syntax: 
query I rowsort label-569
SELECT + COUNT( * ) + 69 + + SUM( 77 ) FROM tab1
----
303

skipif mysql # not compatible
query I rowsort label-569
SELECT + COUNT ( * ) + 69 + + SUM ( 77 ) FROM tab1
----
303

onlyif mysql # aggregate syntax: 
query I rowsort label-570
SELECT + COUNT( - col1 ) FROM tab0 WHERE - col2 <> - 98
----
3

skipif mysql # not compatible
query I rowsort label-570
SELECT + COUNT ( - col1 ) FROM tab0 WHERE - col2 <> - 98
----
3

query I rowsort
SELECT - 33 + + 11 FROM tab1
----
-22
-22
-22

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + ( - + 6 ) + - + 51 > - + 92
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col2 * 45 + - + col1 - - 38 FROM tab2 AS cor0
----
-1048
-1839
-2639

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

skipif mysql # not compatible
query I rowsort label-574
SELECT - MAX ( + 47 ) FROM tab1 AS cor0
----
-47

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 67 + - col1 col2 FROM tab1
----
20
53
62

query I rowsort
SELECT DISTINCT - col0 - + 9 AS col0 FROM tab2
----
-55
-73
-84

onlyif mysql # aggregate syntax: 
query II rowsort label-578
SELECT ALL - + ( 51 ) AS col2, - COUNT( * ) * + + COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-51
-81

skipif mysql # not compatible
query II rowsort label-578
SELECT ALL - + ( 51 ) AS col2, - COUNT ( * ) * + + COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-51
-81

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

query I rowsort
SELECT + + ( - - ( - col1 ) ) AS col1 FROM tab1 AS cor0
----
-14
-47
-5

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-583
SELECT - MAX( - col2 ) FROM tab0 cor0 WHERE NOT NULL >= ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-583
SELECT - MAX ( - col2 ) FROM tab0 cor0 WHERE NOT NULL >= ( NULL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-584
SELECT + ( - CAST( + + col0 AS SIGNED ) ) DIV + 80 AS col0, + 39 * - - col1 FROM tab0 AS cor0
----
-1
39
-1
819
0
3159

skipif mysql # not compatible
query II rowsort label-584
SELECT + ( - CAST ( + + col0 AS INTEGER ) ) / + 80 AS col0, + 39 * - - col1 FROM tab0 AS cor0
----
-1
39
-1
819
0
3159

query I rowsort
SELECT DISTINCT - + col0 AS col1 FROM tab2 WHERE NOT - col2 + - 85 * col1 <= - - col0
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-586
SELECT ALL MIN( DISTINCT 46 ) * COUNT( * ) AS col1 FROM tab0 WHERE + + 78 * + col2 * - - 46 + CAST( NULL AS DECIMAL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-586
SELECT ALL MIN ( DISTINCT 46 ) * COUNT ( * ) AS col1 FROM tab0 WHERE + + 78 * + col2 * - - 46 + CAST ( NULL AS REAL ) IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT col2 * - col1 * 74 * + + col1 * - + col2 FROM tab0
----
1072500426
3263400
725274

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-590
SELECT - SUM( ALL + col0 ) AS col2, + ( - 99 ) col2 FROM tab1 AS cor0
----
-227
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-590
SELECT - SUM ( ALL + col0 ) AS col2, + ( - 99 ) col2 FROM tab1 AS cor0
----
-227
-99

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-593
SELECT DISTINCT ( + + MAX( DISTINCT + 89 ) ) AS col2 FROM tab2
----
89

skipif mysql # not compatible
query I rowsort label-593
SELECT DISTINCT ( + + MAX ( DISTINCT + 89 ) ) AS col2 FROM tab2
----
89

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

query I rowsort
SELECT DISTINCT - col1 * + col1 AS col1 FROM tab1 AS cor0 WHERE + col0 - - col0 IS NOT NULL
----
-196
-2209
-25

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-596
SELECT ALL + + COUNT ( CAST ( NULL AS INTEGER ) ) + + 4 * COUNT ( * ) col1 FROM tab0 AS cor0
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-597
SELECT DISTINCT + col2 DIV + 89 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-597
SELECT DISTINCT + col2 / + 89 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-598
SELECT DISTINCT + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT - 14 + - col1 = NULL
----

skipif mysql # not compatible
query I rowsort label-598
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT - 14 + - col1 = NULL
----

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

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

query I rowsort
SELECT + col2 FROM tab1 AS cor0 WHERE NULL >= NULL
----

query I rowsort
SELECT DISTINCT col2 * - col0 * + - col1 FROM tab0
----
18270
57105
9603

query I rowsort
SELECT col0 * + + col2 * - + 86 FROM tab0
----
-60630
-74820
-825858

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

onlyif mysql # aggregate syntax: 
query I rowsort label-604
SELECT ALL MIN( - ( + - 72 ) ) AS col2 FROM tab2
----
72

skipif mysql # not compatible
query I rowsort label-604
SELECT ALL MIN ( - ( + - 72 ) ) AS col2 FROM tab2
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-605
SELECT + ( + 72 ) DIV - - 92 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-605
SELECT + ( + 72 ) / - - 92 AS col0 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-606
SELECT DISTINCT COUNT( ALL - col0 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-606
SELECT DISTINCT COUNT ( ALL - col0 ) AS col2 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-607
SELECT + 80 - - SUM( + + ( + col1 ) ) FROM tab0 WHERE NULL IS NULL
----
183

skipif mysql # not compatible
query I rowsort label-607
SELECT + 80 - - SUM ( + + ( + col1 ) ) FROM tab0 WHERE NULL IS NULL
----
183

query II rowsort
SELECT col1 * - + 5 AS col1, - 42 FROM tab1
----
-235
-42
-25
-42
-70
-42

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-610
SELECT + COUNT( * ) - ( + MAX( ALL + + 85 ) ) AS col1, + 17 col2 FROM tab0 AS cor0
----
-82
17

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-610
SELECT + COUNT ( * ) - ( + MAX ( ALL + + 85 ) ) AS col1, + 17 col2 FROM tab0 AS cor0
----
-82
17

query III rowsort
SELECT * FROM tab1 cor0 WHERE 30 >= NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NOT + col0 <> + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-613
SELECT ALL - ( + COUNT( * ) ) AS col2 FROM tab2 AS cor0 WHERE NULL NOT IN ( + col2, + ( - 13 ) - - col0, + - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-613
SELECT ALL - ( + COUNT ( * ) ) AS col2 FROM tab2 AS cor0 WHERE NULL NOT IN ( + col2, + ( - 13 ) - - col0, + - col2 )
----
0

query I rowsort
SELECT - 64 + col2 FROM tab2
----
-24
-41
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-615
SELECT DISTINCT - ( + - MIN( ALL + col1 ) ) AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-615
SELECT DISTINCT - ( + - MIN ( ALL + col1 ) ) AS col1 FROM tab0
----
1

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

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

query I rowsort
SELECT + col1 FROM tab2 cor0 WHERE NOT NULL <> ( - 7 )
----

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 98 > col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-620
SELECT ALL + SUM( - + 83 ) AS col2 FROM tab0 AS cor0
----
-249

skipif mysql # not compatible
query I rowsort label-620
SELECT ALL + SUM ( - + 83 ) AS col2 FROM tab0 AS cor0
----
-249

query I rowsort
SELECT DISTINCT - + col2 * - 39 AS col1 FROM tab2 AS cor0
----
1560
2262
897

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 col1, + col2 + + 50 FROM tab0
----
1
149
21
60
81
97

onlyif mysql # aggregate syntax: 
query II rowsort label-625
SELECT - COUNT( * ) AS col0, ( + + 16 ) FROM tab0
----
-3
16

skipif mysql # not compatible
query II rowsort label-625
SELECT - COUNT ( * ) AS col0, ( + + 16 ) FROM tab0
----
-3
16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 45 AS col1, + 45 col2 FROM tab1
----
45
45

onlyif mysql # aggregate syntax: 
query I rowsort label-627
SELECT - COUNT( * ) FROM tab2 WHERE NOT + 93 <> 2
----
0

skipif mysql # not compatible
query I rowsort label-627
SELECT - COUNT ( * ) FROM tab2 WHERE NOT + 93 <> 2
----
0

query I rowsort
SELECT 37 + + col1 AS col2 FROM tab0 cor0
----
118
38
58

query I rowsort
SELECT + col2 + 91 AS col0 FROM tab0
----
101
138
190

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-631
SELECT DISTINCT - col2 + col1 * - 85 + - col0 DIV + col1 FROM tab0 cor0
----
-1799
-281
-6932

skipif mysql # not compatible
query I rowsort label-631
SELECT DISTINCT - col2 + col1 * - 85 + - col0 / + col1 FROM tab0 cor0
----
-1799
-281
-6932

query I rowsort
SELECT ALL + 79 AS col1 FROM tab0 cor0
----
79
79
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + 92 + col0 col2, 74 FROM tab1 AS cor0
----
143
74
177
74
183
74

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

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

query I rowsort
SELECT + col1 * col0 - - ( + 8 ) AS col2 FROM tab0 AS cor0
----
105
1223
1835

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - + + col2 * + col1 col2 FROM tab1 cor0
----
-1330
-290
-3149

query II rowsort
SELECT DISTINCT + 97 + + col2 AS col0, + col2 FROM tab0 AS cor0
----
107
10
144
47
196
99

query I rowsort
SELECT + col1 + + 42 + col0 FROM tab0 AS cor0
----
138
140
150

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

query I rowsort
SELECT ALL 22 - col0 AS col2 FROM tab1
----
-29
-63
-69

query I rowsort
SELECT ALL + col0 - 1 + + + col2 FROM tab1
----
143
146
158

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 - - - col1 BETWEEN + 68 AND - col1 * - + ( 95 )
----
51
14
96

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-645
SELECT ALL * FROM tab1 WHERE - + CAST( NULL AS SIGNED ) = - col2
----

skipif mysql # not compatible
query III rowsort label-645
SELECT ALL * FROM tab1 WHERE - + CAST ( NULL AS INTEGER ) = - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-646
SELECT DISTINCT MAX( DISTINCT + col0 ) * COUNT( * ) col1 FROM tab0
----
291

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

query I rowsort
SELECT 37 * + col1 - + col0 AS col0 FROM tab0 AS cor0
----
-60
2982
690

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

query I rowsort
SELECT + col1 * - 20 * - col0 AS col1 FROM tab2 AS cor0
----
100500
46920
98560

query I rowsort
SELECT + 68 * + 45 AS col2 FROM tab0 AS cor0
----
3060
3060
3060

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-654
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) * - COUNT ( * ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - - 51 FROM tab2 cor0
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-656
SELECT - - 23 DIV col1 AS col1 FROM tab0 AS cor0
----
0
1
23

skipif mysql # not compatible
query I rowsort label-656
SELECT - - 23 / col1 AS col1 FROM tab0 AS cor0
----
0
1
23

query I rowsort
SELECT + 58 * - + col0 FROM tab1 AS cor0
----
-2958
-4930
-5278

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-658
SELECT - col1 * CAST( - + col2 AS SIGNED ) FROM tab0
----
210
3807
99

skipif mysql # not compatible
query I rowsort label-658
SELECT - col1 * CAST ( - + col2 AS INTEGER ) FROM tab0
----
210
3807
99

onlyif mysql # aggregate syntax: 
query I rowsort label-659
SELECT COUNT( * ) * + 2 AS col2 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-659
SELECT COUNT ( * ) * + 2 AS col2 FROM tab1
----
6

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-665
SELECT - ( - 61 ) DIV + col0 + 26 AS col2, - col2 FROM tab2
----
26
-40
26
-58
27
-23

skipif mysql # not compatible
query II rowsort label-665
SELECT - ( - 61 ) / + col0 + 26 AS col2, - col2 FROM tab2
----
26
-40
26
-58
27
-23

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

query II rowsort
SELECT DISTINCT + col0 + 37 AS col2, col0 - - - col0 AS col0 FROM tab0 AS cor0
----
124
0
134
0
52
0

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

query I rowsort
SELECT ALL - - 69 + + + 50 AS col1 FROM tab0 AS cor0
----
119
119
119

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 46 + col1 col0 FROM tab2 cor0
----
113
123
97

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

query I rowsort
SELECT ALL + + 72 * col1 * - 92 * 90 - - 62 + + col0 AS col2 FROM tab1 AS cor0
----
-28019367
-2980653
-8346127

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-673
SELECT ALL COUNT( 64 ) AS col1, + 55 DIV + MIN( DISTINCT - col2 ) FROM tab2
----
3
0

skipif mysql # not compatible
query II rowsort label-673
SELECT ALL COUNT ( 64 ) AS col1, + 55 / + MIN ( DISTINCT - col2 ) FROM tab2
----
3
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - col1 - + col2 * + 36 - col2 col1 FROM tab0
----
-1739
-3663
-370

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 51 - + col0 + - col2 + - + col2 col2 FROM tab2
----
-140
-41
-93

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 = - 34
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-677
SELECT CAST( - - 63 AS SIGNED ) - col2 + 91 + + 16 FROM tab2
----
112
130
147

skipif mysql # not compatible
query I rowsort label-677
SELECT CAST ( - - 63 AS INTEGER ) - col2 + 91 + + 16 FROM tab2
----
112
130
147

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

onlyif mysql # aggregate syntax: 
query I rowsort label-679
SELECT DISTINCT COUNT( * ) * + - 30 AS col0 FROM tab0
----
-90

skipif mysql # not compatible
query I rowsort label-679
SELECT DISTINCT COUNT ( * ) * + - 30 AS col0 FROM tab0
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-680
SELECT + 17 - - + COUNT( - + col1 ) AS col0 FROM tab1
----
20

skipif mysql # not compatible
query I rowsort label-680
SELECT + 17 - - + COUNT ( - + col1 ) AS col0 FROM tab1
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-681
SELECT - SUM( ALL - CAST( NULL AS SIGNED ) ) * + COUNT( * ) AS col1 FROM tab0 WHERE + + 80 + col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-681
SELECT - SUM ( ALL - CAST ( NULL AS INTEGER ) ) * + COUNT ( * ) AS col1 FROM tab0 WHERE + + 80 + col1 IS NOT NULL
----
NULL

query I rowsort
SELECT - col0 - + 4 * ( - 2 ) * col1 + - - col1 AS col0 FROM tab1 AS cor0
----
-40
332
75

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

skipif mysql # not compatible
query I rowsort label-683
SELECT ALL - COUNT ( * ) * - - MAX ( + - col0 ) + COUNT ( * ) FROM tab2 AS cor0
----
141

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-685
SELECT DISTINCT - CAST( - + col1 AS SIGNED ) FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-685
SELECT DISTINCT - CAST ( - + col1 AS INTEGER ) FROM tab2 AS cor0
----
51
67
77

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

query III rowsort
SELECT ALL * FROM tab2 WHERE - 67 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL ( col0 ) * + + col0 + - - col2 * - 71 * + - col0 * - + col2 - - + col0 + 10 FROM tab0
----
-2352335
-610034
-67489971

onlyif mysql # DIV for integer division: 
query I rowsort label-689
SELECT DISTINCT col2 DIV 59 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-689
SELECT DISTINCT col2 / 59 FROM tab1
----
1

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

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

query II rowsort
SELECT - col0 AS col0, + col2 * + col0 FROM tab2 AS cor0
----
-46
1058
-64
2560
-75
4350

query I rowsort
SELECT DISTINCT - col0 * 88 + + - ( col2 ) FROM tab0 cor0
----
-1367
-7666
-8635

query I rowsort
SELECT ALL + - ( + + col2 ) AS col2 FROM tab2 AS cor0
----
-23
-40
-58

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

onlyif mysql # aggregate syntax: 
query I rowsort label-695
SELECT DISTINCT COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL <> ( - col0 * - - col0 - col0 * 75 * - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-695
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL <> ( - col0 * - - col0 - col0 * 75 * - col0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-696
SELECT + 82 - - 29 + COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
111

skipif mysql # not compatible
query I rowsort label-696
SELECT + 82 - - 29 + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
111

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

skipif mysql # not compatible
query I rowsort label-697
SELECT DISTINCT + + COUNT ( - 34 ) FROM tab0 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-698
SELECT COUNT( * ) * + MIN( DISTINCT - + 36 ) + + ( - - 69 ) FROM tab0 AS cor0 WHERE NOT ( NOT ( NOT ( NULL ) IS NULL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-698
SELECT COUNT ( * ) * + MIN ( DISTINCT - + 36 ) + + ( - - 69 ) FROM tab0 AS cor0 WHERE NOT ( NOT ( NOT ( NULL ) IS NULL ) )
----
NULL

query II rowsort
SELECT ALL col1 AS col1, + col2 AS col1 FROM tab0 AS cor0
----
1
99
21
10
81
47

query I rowsort
SELECT ALL col2 * - 50 * + col1 FROM tab1
----
-14750
-159800
-67200

query I rowsort
SELECT 72 * - col2 AS col0 FROM tab2
----
-1656
-2880
-4176

query I rowsort
SELECT DISTINCT - col2 * - + 60 AS col0 FROM tab0
----
2820
5940
600

onlyif mysql # aggregate syntax: 
query I rowsort label-703
SELECT ALL 42 * + COUNT( col0 ) col0 FROM tab1
----
126

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

query III rowsort
SELECT ALL * FROM tab0 WHERE - ( col1 ) / - col1 - col1 + - ( - + col2 ) + - - 53 + 42 < NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - - 95 * 49 ) NOT IN ( - 36, col0 * col1, + col0, - col2 + + col1 )
----

query I rowsort
SELECT - col2 * col1 + + col1 AS col1 FROM tab1 AS cor0
----
-1330
-290
-3149

query I rowsort
SELECT ALL 0 * col1 + + ( - 33 ) AS col1 FROM tab1 AS cor0
----
-33
-33
-33

query I rowsort
SELECT col2 * + col2 + - - col2 FROM tab1 AS cor0
----
3540
4692
9312

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL <> + col0 / col2
----

query II rowsort
SELECT DISTINCT + col0, - col0 + 39 FROM tab1 AS cor0
----
51
-12
85
-46
91
-52

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

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

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

query I rowsort
SELECT col0 + - ( + 20 ) AS col2 FROM tab1 AS cor0
----
31
65
71

onlyif mysql # aggregate syntax: 
query I rowsort label-714
SELECT DISTINCT SUM( 53 ) + - COUNT( - col1 ) FROM tab1
----
156

skipif mysql # not compatible
query I rowsort label-714
SELECT DISTINCT SUM ( 53 ) + - COUNT ( - col1 ) FROM tab1
----
156

query I rowsort
SELECT 71 + + col1 FROM tab0
----
152
72
92

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

query I rowsort
SELECT ALL ( + - col2 ) FROM tab2
----
-23
-40
-58

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

onlyif mysql # aggregate syntax: 
query I rowsort label-719
SELECT + 79 * + + COUNT( * ) * - 85 FROM tab1
----
-20145

skipif mysql # not compatible
query I rowsort label-719
SELECT + 79 * + + COUNT ( * ) * - 85 FROM tab1
----
-20145

query II rowsort
SELECT DISTINCT - 74, + col2 + - + col1 AS col1 FROM tab0 AS cor0
----
-74
-11
-74
-34
-74
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-721
SELECT - MIN( ( - - 9 ) ) + - CAST( NULL AS SIGNED ) * AVG ( DISTINCT 49 ) AS col0, COUNT( - - 96 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL
0

skipif mysql # not compatible
query II rowsort label-721
SELECT - MIN ( ( - - 9 ) ) + - CAST ( NULL AS INTEGER ) * AVG ( DISTINCT 49 ) AS col0, COUNT ( - - 96 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL
0

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

query I rowsort
SELECT - 66 - - 74 * + ( 71 ) FROM ( tab1 AS cor0 CROSS JOIN tab1 cor1 )
----
9 values hashing to 4011d9319505a1e7c4c16595721b1345

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-728
SELECT - - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT col1 < + 74
----
0

skipif mysql # not compatible
query I rowsort label-728
SELECT - - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT col1 < + 74
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-730
SELECT 41 * COUNT( DISTINCT col0 ) * - COUNT( * ) - 8 - 20 * 68 FROM tab2
----
-1737

skipif mysql # not compatible
query I rowsort label-730
SELECT 41 * COUNT ( DISTINCT col0 ) * - COUNT ( * ) - 8 - 20 * 68 FROM tab2
----
-1737

onlyif mysql # aggregate syntax: 
query I rowsort label-731
SELECT COUNT( * ) * + MAX( DISTINCT - col0 ) * - - COUNT( * ) FROM tab0
----
-135

skipif mysql # not compatible
query I rowsort label-731
SELECT COUNT ( * ) * + MAX ( DISTINCT - col0 ) * - - COUNT ( * ) FROM tab0
----
-135

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-733
SELECT + col2 AS col0, + ( CAST( 82 AS SIGNED ) ) * - + col2 * - + col1 FROM tab2
----
23
96186
40
252560
58
318652

skipif mysql # not compatible
query II rowsort label-733
SELECT + col2 AS col0, + ( CAST ( 82 AS INTEGER ) ) * - + col2 * - + col1 FROM tab2
----
23
96186
40
252560
58
318652

query II rowsort
SELECT DISTINCT + - 10 + + col0, + 20 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN col2 AND 20
----

query I rowsort
SELECT ALL + 84 + + col0 AS col2 FROM tab0 cor0
----
171
181
99

query I rowsort
SELECT ALL ( - ( + col2 ) ) FROM tab1 WHERE ( ( col2 ) - 93 ) IN ( col0 )
----

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE - 81 IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-739
SELECT ALL - 5 * - COUNT( * ) AS col0 FROM tab1 WHERE col0 * col2 + 76 <> - 16
----
15

skipif mysql # not compatible
query I rowsort label-739
SELECT ALL - 5 * - COUNT ( * ) AS col0 FROM tab1 WHERE col0 * col2 + 76 <> - 16
----
15

query I rowsort
SELECT ALL col1 + 58 FROM tab0
----
139
59
79

query I rowsort
SELECT DISTINCT + col1 + ( col1 + 15 ) * + 89 AS col2 FROM tab0
----
1425
3225
8625

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

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

query I rowsort
SELECT ALL 41 FROM tab2 WHERE col1 BETWEEN NULL AND ( - col2 - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-745
SELECT + 77 * + COUNT( * ) AS col2 FROM tab2
----
231

skipif mysql # not compatible
query I rowsort label-745
SELECT + 77 * + COUNT ( * ) AS col2 FROM tab2
----
231

query I rowsort
SELECT - 66 * col2 FROM tab2
----
-1518
-2640
-3828

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

query I rowsort
SELECT 54 + - col0 AS col2 FROM tab2
----
-10
-21
8

query I rowsort
SELECT + col1 * + col0 + + col0 FROM tab1
----
4368
510
765

onlyif mysql # DIV for integer division: 
query I rowsort label-750
SELECT + 46 DIV + ( + col2 ) + - col1 FROM tab2
----
-49
-67
-76

skipif mysql # not compatible
query I rowsort label-750
SELECT + 46 / + ( + col2 ) + - col1 FROM tab2
----
-49
-67
-76

query I rowsort
SELECT - 57 + col0 FROM tab0
----
-42
30
40

onlyif mysql # DIV for integer division: 
query I rowsort label-752
SELECT col2 + + 85 DIV col1 FROM tab1
----
102
69
76

skipif mysql # not compatible
query I rowsort label-752
SELECT col2 + + 85 / col1 FROM tab1
----
102
69
76

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

query I rowsort
SELECT col0 AS col2 FROM tab1 WHERE 27 * + col1 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-755
SELECT ALL COUNT( * ) FROM tab1 WHERE NOT NULL NOT IN ( + 84 )
----
0

skipif mysql # not compatible
query I rowsort label-755
SELECT ALL COUNT ( * ) FROM tab1 WHERE NOT NULL NOT IN ( + 84 )
----
0

query I rowsort
SELECT - 80 + col2 AS col0 FROM tab0
----
-33
-70
19

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

query III rowsort
SELECT * FROM tab0 WHERE NOT + 46 BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 >= 78 / 68 - col1 * + 64
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-760
SELECT ALL 45 DIV + COUNT( * ) FROM tab2 WHERE ( + 66 * 98 + col1 ) > ( col2 )
----
15

skipif mysql # not compatible
query I rowsort label-760
SELECT ALL 45 / + COUNT ( * ) FROM tab2 WHERE ( + 66 * 98 + col1 ) > ( col2 )
----
15

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) >= - col2
----

query I rowsort
SELECT 59 + - col2 AS col0 FROM tab0
----
-40
12
49

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

query III rowsort
SELECT * FROM tab0 WHERE NOT 81 IN ( 41 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-765
SELECT MAX( col2 ) FROM tab2 WHERE NULL NOT IN ( 1 / col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-765
SELECT MAX ( col2 ) FROM tab2 WHERE NULL NOT IN ( 1 / col2 )
----
NULL

query I rowsort
SELECT col0 AS col0 FROM tab2 WHERE - col0 * + 34 BETWEEN NULL AND - col0 - + col0 * + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-767
SELECT 41 + COUNT( * ) FROM tab2 WHERE NOT ( + 28 ) NOT IN ( col0 )
----
41

skipif mysql # not compatible
query I rowsort label-767
SELECT 41 + COUNT ( * ) FROM tab2 WHERE NOT ( + 28 ) NOT IN ( col0 )
----
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col2 - - col2 col2 FROM tab1
----
4992
5074
6256

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-771
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) * - col1 NOT IN ( + col1 )
----

skipif mysql # not compatible
query III rowsort label-771
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) * - col1 NOT IN ( + col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 30 * - col0 <= ( 62 + col0 * 24 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 35 FROM tab0 AS cor0 CROSS JOIN tab0
----
35

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col2 / 45 = NULL
----

query I rowsort
SELECT ALL + 40 FROM tab1 WHERE col0 IS NULL
----

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

query I rowsort
SELECT DISTINCT col2 / 52 FROM tab0 AS cor0 WHERE NULL IN ( 41 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-778
SELECT ALL + + MIN( + 87 ) AS col2 FROM tab0 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-778
SELECT ALL + + MIN ( + 87 ) AS col2 FROM tab0 AS cor0
----
87

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 74 * col0 - + col1 * - 58 IN ( col0 / + ( 69 ) )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + 49 )
----

query I rowsort
SELECT ALL + 7 * col0 FROM tab1 AS cor0
----
357
595
637

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

query I rowsort
SELECT DISTINCT + 70 * 7 AS col2 FROM tab2
----
490

query I rowsort
SELECT ALL col1 * 81 FROM tab1
----
1134
3807
405

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

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

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

query I rowsort
SELECT col1 * - col0 + - 72 AS col0 FROM tab2
----
-2418
-5000
-5097

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 43 * + 41 col0 FROM tab0
----
-1763

query I rowsort
SELECT + ( + 83 ) FROM tab2 WHERE + 20 / - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-791
SELECT COUNT( * ) * - 84 AS col2 FROM tab2 WHERE col2 IS NOT NULL
----
-252

skipif mysql # not compatible
query I rowsort label-791
SELECT COUNT ( * ) * - 84 AS col2 FROM tab2 WHERE col2 IS NOT NULL
----
-252

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

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

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

query I rowsort
SELECT DISTINCT 33 * - + col0 + col2 AS col1 FROM tab0 AS cor0
----
-2861
-3102
-448

onlyif mysql # DIV for integer division: 
query I rowsort label-795
SELECT ALL + col0 * col1 DIV - col1 + - col0 * - col2 FROM tab1 AS cor0
----
4845
4930
6097

skipif mysql # not compatible
query I rowsort label-795
SELECT ALL + col0 * col1 / - col1 + - col0 * - col2 FROM tab1 AS cor0
----
4845
4930
6097

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-796
SELECT + + CAST( - col2 AS SIGNED ) DIV col0 + + col1 AS col2 FROM tab0 AS cor0
----
0
21
78

skipif mysql # not compatible
query I rowsort label-796
SELECT + + CAST ( - col2 AS INTEGER ) / col0 + + col1 AS col2 FROM tab0 AS cor0
----
0
21
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 + col2 col2 FROM tab0 AS cor0
----
100
128
31

query I rowsort
SELECT 36 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 28 < - 94
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 31 FROM tab0 WHERE NOT - 13 * col1 >= + 60 - + col2 * col2
----
31

query I rowsort
SELECT ALL 71 AS col1 FROM ( tab0 cor0 CROSS JOIN tab2 AS cor1 ) WHERE 65 IS NOT NULL
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-803
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 65 / - col1 + + 40 >= ( CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-803
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 65 / - col1 + + 40 >= ( CAST ( NULL AS REAL ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 AS col1, 16 col1 FROM tab1 AS cor0
----
14
16
47
16
5
16

query I rowsort
SELECT ALL 66 + + col0 AS col2 FROM tab0 AS cor0
----
153
163
81

onlyif mysql # aggregate syntax: 
query I rowsort label-806
SELECT + COUNT( * ) + 77 FROM tab1 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-806
SELECT + COUNT ( * ) + 77 FROM tab1 AS cor0
----
80

query I rowsort
SELECT ALL + 10 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - col0 * + - col1 * - col0 FROM tab2 AS cor0
----
-107916
-315392
-376875

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

query I rowsort
SELECT ALL + + col2 * 74 + col1 AS col2 FROM tab2 AS cor0
----
1753
3037
4359

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 * - 87 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-812
SELECT ALL col0 DIV - + ( ( 13 ) ) AS col0 FROM tab1 AS cor0
----
-3
-6
-7

skipif mysql # not compatible
query I rowsort label-812
SELECT ALL col0 / - + ( ( 13 ) ) AS col0 FROM tab1 AS cor0
----
-3
-6
-7

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-815
SELECT ALL + + col0 DIV + - col1 FROM tab1 AS cor0
----
-1
-17
-3

skipif mysql # not compatible
query I rowsort label-815
SELECT ALL + + col0 / + - col1 FROM tab1 AS cor0
----
-1
-17
-3

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

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

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

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

query I rowsort
SELECT DISTINCT + col1 * - 94 AS col1 FROM tab0
----
-1974
-7614
-94

query II rowsort
SELECT - ( - col2 ), + ( col0 ) FROM tab0
----
10
87
47
15
99
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-822
SELECT ALL + 2 DIV + - COUNT( * ) * COUNT( * ) col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-822
SELECT ALL + 2 / + - COUNT ( * ) * COUNT ( * ) col2 FROM tab2 AS cor0
----
0

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-826
SELECT DISTINCT col0 * - - col1 + - 7 * CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0 WHERE NOT + col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-826
SELECT DISTINCT col0 * - - col1 + - 7 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0 WHERE NOT + col2 IS NOT NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-828
SELECT - COUNT( * ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1 WHERE NULL = NULL
----
0

skipif mysql # not compatible
query I rowsort label-828
SELECT - COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1 WHERE NULL = NULL
----
0

query I rowsort
SELECT ALL + ( 59 ) AS col1 FROM tab2
----
59
59
59

query I rowsort
SELECT - 95 * 79 + + - 85 * + ( + 28 ) AS col2 FROM tab2 AS cor0
----
-9885
-9885
-9885

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

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

query I rowsort
SELECT ALL col1 + 4 FROM tab0 AS cor0
----
25
5
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-833
SELECT 25 + + MAX( ALL - col2 ) DIV + 88 - + MIN( ALL 76 ) FROM tab0 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-833
SELECT 25 + + MAX ( ALL - col2 ) / + 88 - + MIN ( ALL 76 ) FROM tab0 AS cor0
----
-51

query III rowsort
SELECT * FROM tab0 cor0 WHERE 0 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-835
SELECT 60 + COUNT( * ) FROM tab2 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-835
SELECT 60 + COUNT ( * ) FROM tab2 AS cor0
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-836
SELECT ALL CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0 WHERE ( + col0 ) BETWEEN col0 AND NULL
----

skipif mysql # not compatible
query I rowsort label-836
SELECT ALL CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0 WHERE ( + col0 ) BETWEEN col0 AND NULL
----

query I rowsort
SELECT - col2 FROM tab1 AS cor0 WHERE col1 BETWEEN - col0 + - 62 - - col1 AND ( + 72 + - col2 )
----
-59

query I rowsort
SELECT ALL - col0 + + + col0 + 45 + col0 AS col2 FROM tab2 AS cor0 WHERE ( 63 ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - col0 + + + col1 FROM tab2 AS cor0
----
-8
13
5

onlyif mysql # aggregate syntax: 
query I rowsort label-840
SELECT + + 79 + COUNT( * ) + - MAX( + 81 ) col1 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-840
SELECT + + 79 + COUNT ( * ) + - MAX ( + 81 ) col1 FROM tab2 AS cor0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-841
SELECT DISTINCT + + 64 + col1 DIV 19 AS col1 FROM tab1 AS cor0
----
64
66

skipif mysql # not compatible
query I rowsort label-841
SELECT DISTINCT + + 64 + col1 / 19 AS col1 FROM tab1 AS cor0
----
64
66

query I rowsort
SELECT DISTINCT + + 33 AS col2 FROM tab2 AS cor0
----
33

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 <> + col2
----

query I rowsort
SELECT - col1 * + + col0 FROM tab0
----
-1215
-1827
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-845
SELECT DISTINCT + 1 AS col2, COUNT( ALL - + col0 ) * + 0 AS col2 FROM tab2 WHERE + col1 IS NULL
----
1
0

skipif mysql # not compatible
query II rowsort label-845
SELECT DISTINCT + 1 AS col2, COUNT ( ALL - + col0 ) * + 0 AS col2 FROM tab2 WHERE + col1 IS NULL
----
1
0

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

skipif mysql # not compatible
query I rowsort label-846
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT + col1 NOT IN ( col0 )
----

query II rowsort
SELECT DISTINCT - - 61 + + col1, + col1 AS col1 FROM tab1 AS cor0
----
108
47
66
5
75
14

query I rowsort
SELECT - col0 * + 32 * + 5 + col2 + - col0 FROM tab2
----
-10264
-12017
-7383

onlyif mysql # DIV for integer division: 
query I rowsort label-849
SELECT DISTINCT + + 57 DIV - col2 FROM tab2 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-849
SELECT DISTINCT + + 57 / - col2 FROM tab2 AS cor0
----
-1
-2
0

query I rowsort
SELECT - - col2 * ( + + ( 35 ) ) AS col1 FROM tab2 AS cor0
----
1400
2030
805

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-851
SELECT DISTINCT + + ( - + ( - MAX( - 70 ) ) ) * 1 FROM tab2 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) + + col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-851
SELECT DISTINCT + + ( - + ( - MAX ( - 70 ) ) ) * 1 FROM tab2 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) + + col1 IS NULL
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-854
SELECT ALL - MAX( DISTINCT - col0 ) DIV + COUNT( * ) FROM tab0 cor0
----
5

skipif mysql # not compatible
query I rowsort label-854
SELECT ALL - MAX ( DISTINCT - col0 ) / + COUNT ( * ) FROM tab0 cor0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-855
SELECT - MAX( ALL + col2 ) * - 9 + + + 23 AS col2 FROM tab1
----
887

skipif mysql # not compatible
query I rowsort label-855
SELECT - MAX ( ALL + col2 ) * - 9 + + + 23 AS col2 FROM tab1
----
887

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-856
SELECT + 93, CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
93
NULL
93
NULL
93
NULL

skipif mysql # not compatible
query II rowsort label-856
SELECT + 93, CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
93
NULL
93
NULL
93
NULL

query I rowsort
SELECT ALL + col1 FROM tab0 WHERE NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-858
SELECT ALL MAX( ALL + col1 ) FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-858
SELECT ALL MAX ( ALL + col1 ) FROM tab0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-859
SELECT SUM( ALL 16 ) col2 FROM tab2 WHERE NOT - + col2 * - col1 + - - 98 <= - col1
----
48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-859
SELECT SUM ( ALL 16 ) col2 FROM tab2 WHERE NOT - + col2 * - col1 + - - 98 <= - col1
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-860
SELECT DISTINCT * FROM tab0 WHERE - CAST( + col2 AS SIGNED ) + + col2 + col0 BETWEEN col2 * + col0 + col1 * col0 AND - col2
----

skipif mysql # not compatible
query III rowsort label-860
SELECT DISTINCT * FROM tab0 WHERE - CAST ( + col2 AS INTEGER ) + + col2 + col0 BETWEEN col2 * + col0 + col1 * col0 AND - col2
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - 21 >= + 29 * + 27
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col1 * 74 AS col0 FROM tab2
----
3774
4958
5698

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 26 * - - 95 col1 FROM tab1
----
2470

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-865
SELECT * FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) = NULL
----

skipif mysql # not compatible
query III rowsort label-865
SELECT * FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) = NULL
----

query III rowsort
SELECT * FROM tab1 WHERE ( NULL BETWEEN + 95 AND - col0 )
----

query I rowsort
SELECT - 98 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f17b7008a7deae1eb5a2e707ec237638

onlyif mysql # aggregate syntax: 
query I rowsort label-868
SELECT ALL + SUM( - - col1 ) * MIN( + col2 ) FROM tab1 AS cor0 WHERE 41 IN ( + col1, ( - + col2 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-868
SELECT ALL + SUM ( - - col1 ) * MIN ( + col2 ) FROM tab1 AS cor0 WHERE 41 IN ( + col1, ( - + col2 ) )
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-870
SELECT DISTINCT - 22 + - 93 DIV col0 AS col1 FROM tab0 AS cor0
----
-22
-23
-28

skipif mysql # not compatible
query I rowsort label-870
SELECT DISTINCT - 22 + - 93 / col0 AS col1 FROM tab0 AS cor0
----
-22
-23
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-871
SELECT ALL - CAST( - col1 AS SIGNED ) col2 FROM tab2
----
51
67
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-871
SELECT ALL - CAST ( - col1 AS INTEGER ) col2 FROM tab2
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-872
SELECT COUNT( * ) FROM tab0 WHERE ( NULL ) <= ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-872
SELECT COUNT ( * ) FROM tab0 WHERE ( NULL ) <= ( NULL )
----
0

query I rowsort
SELECT 2 + - col2 AS col1 FROM tab2
----
-21
-38
-56

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-874
SELECT - CAST( NULL AS SIGNED ), - CAST( NULL AS DECIMAL ) FROM tab2 cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
query II rowsort label-874
SELECT - CAST ( NULL AS INTEGER ), - CAST ( NULL AS REAL ) FROM tab2 cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE + 18 >= - + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - ( + + 75 ) * 51 FROM tab0
----
-3825
-3825
-3825

onlyif mysql # DIV for integer division: 
query I rowsort label-877
SELECT DISTINCT + col2 DIV - 42 FROM tab1
----
-1
-2

skipif mysql # not compatible
query I rowsort label-877
SELECT DISTINCT + col2 / - 42 FROM tab1
----
-1
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-878
SELECT + 10 * - - COUNT( * ) FROM tab1
----
30

skipif mysql # not compatible
query I rowsort label-878
SELECT + 10 * - - COUNT ( * ) FROM tab1
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-879
SELECT COUNT( * ) DIV - COUNT( * ) AS col2, - COUNT( * ) FROM tab0 cor0
----
-1
-3

skipif mysql # not compatible
query II rowsort label-879
SELECT COUNT ( * ) / - COUNT ( * ) AS col2, - COUNT ( * ) FROM tab0 cor0
----
-1
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-880
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0, COUNT( * ) DIV - COUNT( ALL - 85 ) - + 26 AS col2 FROM tab2 AS cor0
----
NULL
-27

skipif mysql # not compatible
query II rowsort label-880
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0, COUNT ( * ) / - COUNT ( ALL - 85 ) - + 26 AS col2 FROM tab2 AS cor0
----
NULL
-27

query I rowsort
SELECT + - ( 45 ) * col2 FROM tab0 AS cor0
----
-2115
-4455
-450

query I rowsort
SELECT ALL - - 10 AS col1 FROM tab1 AS cor0
----
10
10
10

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-886
SELECT 29 + + 89 + + 93 * + 93 AS col1 FROM tab2 WHERE NOT - col2 + - 68 - + + CAST( NULL AS SIGNED ) * - 25 * - col2 / ( 50 ) NOT BETWEEN ( + 56 ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-886
SELECT 29 + + 89 + + 93 * + 93 AS col1 FROM tab2 WHERE NOT - col2 + - 68 - + + CAST ( NULL AS INTEGER ) * - 25 * - col2 / ( 50 ) NOT BETWEEN ( + 56 ) AND NULL
----

query I rowsort
SELECT ALL - 65 * + col2 FROM tab1
----
-3835
-4420
-6240

onlyif mysql # DIV for integer division: 
query I rowsort label-888
SELECT ALL - col1 DIV - - 12 AS col2 FROM tab2
----
-4
-5
-6

skipif mysql # not compatible
query I rowsort label-888
SELECT ALL - col1 / - - 12 AS col2 FROM tab2
----
-4
-5
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-889
SELECT ALL ( - col2 ) DIV col2 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-889
SELECT ALL ( - col2 ) / col2 FROM tab2
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-890
SELECT - + MIN( - col1 ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-890
SELECT - + MIN ( - col1 ) FROM tab0 AS cor0
----
81

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 7 * - 88 NOT IN ( - - col2 * - - 52, 85 * - 16 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 60 * + - 60 * - ( - col1 ) FROM tab0 AS cor0
----
-291600
-3600
-75600

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

query I rowsort
SELECT ALL - 70 FROM tab2 AS cor0 WHERE NULL <= + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-896
SELECT ALL MIN( ALL - 28 ) AS col1 FROM tab0
----
-28

skipif mysql # not compatible
query I rowsort label-896
SELECT ALL MIN ( ALL - 28 ) AS col1 FROM tab0
----
-28

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

onlyif mysql # DIV for integer division: 
query I rowsort label-898
SELECT ( + col0 ) + - col0 DIV - 21 col0 FROM tab0
----
101
15
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-898
SELECT ( + col0 ) + - col0 / - 21 col0 FROM tab0
----
101
15
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-899
SELECT ALL + 44 DIV + COUNT( * ) AS col2 FROM tab0 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-899
SELECT ALL + 44 / + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-900
SELECT - col0 + - 31 - + col2 DIV - - col1 * - col2 + col2 - 28 AS col2 FROM tab2 AS cor0
----
-76
-82
-83

skipif mysql # not compatible
query I rowsort label-900
SELECT - col0 + - 31 - + col2 / - - col1 * - col2 + col2 - 28 AS col2 FROM tab2 AS cor0
----
-76
-82
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-901
SELECT DISTINCT 98 DIV col0 * + - col0 FROM tab0 AS cor0
----
-87
-90
-97

skipif mysql # not compatible
query I rowsort label-901
SELECT DISTINCT 98 / col0 * + - col0 FROM tab0 AS cor0
----
-87
-90
-97

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

query I rowsort
SELECT + col1 + 43 AS col2 FROM tab0 AS cor0
----
124
44
64

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-905
SELECT SUM( - + 28 ) + + 26 DIV MIN( + - col1 ) AS col0 FROM tab1 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-905
SELECT SUM ( - + 28 ) + + 26 / MIN ( + - col1 ) AS col0 FROM tab1 AS cor0
----
-84

query I rowsort
SELECT ALL + 25 + - + 98 FROM tab1 AS cor0
----
-73
-73
-73

query I rowsort
SELECT ALL + col1 + - 64 AS col1 FROM tab0 AS cor0
----
-43
-63
17

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

query I rowsort
SELECT DISTINCT - 35 - ( - col0 ) FROM tab0 cor0
----
-20
52
62

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + + 71 col0 FROM tab2 AS cor0 WHERE - col2 * + 92 + + - col1 IN ( + + col2, - 19 * - col2, - col0, + 29 + + 2 )
----

query I rowsort
SELECT col0 * + 99 AS col1 FROM tab1
----
5049
8415
9009

query II rowsort
SELECT DISTINCT + - col0 AS col1, col0 FROM tab1 WHERE NOT - - col0 IS NOT NULL
----

query I rowsort
SELECT ALL ( col2 ) - - + 4 FROM tab1
----
100
63
72

query I rowsort
SELECT col1 * + 13 * + + ( 53 ) AS col1 FROM tab0
----
14469
55809
689

query I rowsort
SELECT + col0 - - 85 FROM tab0
----
100
172
182

onlyif mysql # aggregate syntax: 
query II rowsort label-917
SELECT DISTINCT + ( + + 59 ) - - COUNT( * ) * 49 col2, COUNT( * ) FROM tab2
----
206
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-917
SELECT DISTINCT + ( + + 59 ) - - COUNT ( * ) * 49 col2, COUNT ( * ) FROM tab2
----
206
3

query I rowsort
SELECT + col2 - - col2 * + + col0 FROM tab0 WHERE - col2 + + + col2 IS NOT NULL
----
752
880
9702

query I rowsort
SELECT ALL col2 FROM tab0 AS cor0 WHERE NOT ( + - ( col0 ) ) NOT BETWEEN ( - 28 ) AND NULL AND NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-920
SELECT ALL + 61 / + COUNT( * ) + 43 + + COUNT( * ) + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-920
SELECT ALL + 61 / + COUNT ( * ) + 43 + + COUNT ( * ) + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + + 38 AS col2 FROM tab1 AS cor0
----
38
38
38

query I rowsort
SELECT DISTINCT 92 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
92

query I rowsort
SELECT + 43 / AVG ( ALL - + col1 ) AS col2 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND + col2 - - 45
----
NULL

query I rowsort
SELECT ALL 98 * + + ( + col2 ) FROM tab2
----
2254
3920
5684

query I rowsort
SELECT DISTINCT + col1 * - 39 AS col2 FROM tab1
----
-1833
-195
-546

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

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

query I rowsort
SELECT - + 72 * - + col1 AS col1 FROM tab1 AS cor0
----
1008
3384
360

onlyif mysql # aggregate syntax: 
query I rowsort label-929
SELECT DISTINCT MIN( ALL 44 ) AS col1 FROM tab1
----
44

skipif mysql # not compatible
query I rowsort label-929
SELECT DISTINCT MIN ( ALL 44 ) AS col1 FROM tab1
----
44

query II rowsort
SELECT DISTINCT 71 AS col2, col1 FROM tab0
----
71
1
71
21
71
81

onlyif mysql # aggregate syntax: 
query I rowsort label-931
SELECT + COUNT( * ) * - 70 FROM tab1
----
-210

skipif mysql # not compatible
query I rowsort label-931
SELECT + COUNT ( * ) * - 70 FROM tab1
----
-210

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

query I rowsort
SELECT DISTINCT ( - - col1 ) * + 41 FROM tab0
----
3321
41
861

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col2 + - 21 >= - col1
----
87
21
10
97
1
99

onlyif mysql # DIV for integer division: 
query II rowsort label-935
SELECT 23 AS col2, + col0 DIV col0 FROM tab1
----
23
1
23
1
23
1

skipif mysql # not compatible
query II rowsort label-935
SELECT 23 AS col2, + col0 / col0 FROM tab1
----
23
1
23
1
23
1

query I rowsort
SELECT ALL col2 * + + 43 AS col0 FROM tab2
----
1720
2494
989

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + - col2 ) BETWEEN NULL AND + col1 + 77
----

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

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

query I rowsort
SELECT DISTINCT ( + - col1 ) * - col0 FROM tab0 AS cor0
----
1215
1827
97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 39 + 17 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( + col1 ) + + + col2 col0 FROM tab1 AS cor0
----
21
54
82

onlyif mysql # DIV for integer division: 
query II rowsort label-943
SELECT DISTINCT 71 DIV + col2, + col1 AS col2 FROM tab2
----
1
67
1
77
3
51

skipif mysql # not compatible
query II rowsort label-943
SELECT DISTINCT 71 / + col2, + col1 AS col2 FROM tab2
----
1
67
1
77
3
51

query I rowsort
SELECT ALL - col1 + + - col1 * - - col2 * 11 FROM tab0 WHERE NULL IS NULL OR ( NULL ) IS NOT NULL
----
-1090
-2331
-41958

onlyif mysql # aggregate syntax: 
query I rowsort label-945
SELECT - + ( - COUNT( * ) ) * - 87 * - 96 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
75168

skipif mysql # not compatible
query I rowsort label-945
SELECT - + ( - COUNT ( * ) ) * - 87 * - 96 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
75168

onlyif mysql # DIV for integer division: 
query I rowsort label-946
SELECT - 95 DIV - ( col1 ) AS col1 FROM tab1 cor0
----
19
2
6

skipif mysql # not compatible
query I rowsort label-946
SELECT - 95 / - ( col1 ) AS col1 FROM tab1 cor0
----
19
2
6

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

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

skipif mysql # not compatible
query I rowsort label-948
SELECT + CAST ( NULL AS INTEGER ) - + COUNT ( * ) * - - 56 AS col2 FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT col0 - - + col0, - col2 - - col2 * col1 * - 18 AS col2 FROM tab1 AS cor0
----
102
-24288
170
-5369
182
-57596

query I rowsort
SELECT - col0 - + 75 AS col1 FROM tab0 AS cor0
----
-162
-172
-90

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

onlyif mysql # DIV for integer division: 
query I rowsort label-952
SELECT DISTINCT + col1 DIV + 16 + - + 58 AS col2 FROM tab2 AS cor0
----
-54
-55

skipif mysql # not compatible
query I rowsort label-952
SELECT DISTINCT + col1 / + 16 + - + 58 AS col2 FROM tab2 AS cor0
----
-54
-55

query I rowsort
SELECT col1 + 23 AS col2 FROM tab1
----
28
37
70

query I rowsort
SELECT + 57 + + - col0 FROM tab2
----
-18
-7
11

query I rowsort
SELECT DISTINCT - col2 * + col0 - - 17 * 38 + - col2 AS col1 FROM tab2
----
-1954
-3762
-435

query I rowsort
SELECT ALL - 51 FROM tab1, tab0 AS cor0
----
9 values hashing to 08d3853e39924d3c636260a6dd856837

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

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

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

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

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

query I rowsort
SELECT DISTINCT - 53 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-53

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

skipif mysql # not compatible
query I rowsort label-962
SELECT - COUNT ( + col1 ) AS col1 FROM tab0
----
-3

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

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

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

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

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

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

query I rowsort
SELECT 32 * - col0 FROM tab2 cor0
----
-1472
-2048
-2400

query I rowsort
SELECT - col2 AS col2 FROM tab2 AS cor0 WHERE NOT col2 <> NULL
----

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

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

query II rowsort
SELECT col2 * ( col0 ) - 59 AS col0, + 27 FROM tab0 AS cor0
----
646
27
811
27
9544
27

query I rowsort
SELECT ALL - 86 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

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

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

query I rowsort
SELECT + col2 FROM tab1 AS cor0 WHERE NOT ( + 12 <> NULL )
----

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

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

skipif mysql # not compatible
query I rowsort label-974
SELECT DISTINCT + COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT - col2 * - ( - 9 ) * + + col1 AS col0 FROM tab2
----
-10557
-27720
-34974

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

skipif mysql # not compatible
query I rowsort label-976
SELECT DISTINCT SUM ( DISTINCT + - col1 ) AS col0 FROM tab1
----
-66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 col1, + col1 AS col0 FROM tab2 WHERE + + col2 / - 81 IS NOT NULL
----
-51
51
-67
67
-77
77

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

skipif mysql # not compatible
query I rowsort label-978
SELECT + CAST ( - 55 AS INTEGER ) FROM tab1
----
-55
-55
-55

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 11 < - 16 * - - col1
----

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

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

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

query I rowsort
SELECT - col2 + col1 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) < ( 62 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-983
SELECT ALL COUNT( * ) * - 49 FROM ( tab0 cor0 CROSS JOIN tab2 cor1 )
----
-441

skipif mysql # not compatible
query I rowsort label-983
SELECT ALL COUNT ( * ) * - 49 FROM ( tab0 cor0 CROSS JOIN tab2 cor1 )
----
-441

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-984
SELECT col1 * + + CAST( + 13 AS SIGNED ) + - - ( - + col2 ) FROM tab2
----
640
813
961

skipif mysql # not compatible
query I rowsort label-984
SELECT col1 * + + CAST ( + 13 AS INTEGER ) + - - ( - + col2 ) FROM tab2
----
640
813
961

query I rowsort
SELECT 80 * - - col1 * 79 + 1 FROM tab1
----
297041
31601
88481

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

query I rowsort
SELECT + + col2 * + - col1 + - 28 FROM tab0 AS cor0
----
-127
-238
-3835

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-990
SELECT DISTINCT + 85 + - MAX( col2 ) FROM tab1 AS cor0
----
-11

skipif mysql # not compatible
query I rowsort label-990
SELECT DISTINCT + 85 + - MAX ( col2 ) FROM tab1 AS cor0
----
-11

query I rowsort
SELECT DISTINCT - col0 + - + col0 + + col1 AS col1 FROM tab0 AS cor0
----
-153
-193
51

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-993
SELECT - CAST( NULL AS SIGNED ) + - + CAST( NULL AS SIGNED ) AS col0, - col0 + + col1 FROM tab0 AS cor0 WHERE + col0 IS NULL
----

skipif mysql # not compatible
query II rowsort label-993
SELECT - CAST ( NULL AS INTEGER ) + - + CAST ( NULL AS INTEGER ) AS col0, - col0 + + col1 FROM tab0 AS cor0 WHERE + col0 IS NULL
----

query I rowsort
SELECT ALL 57 + + ( - col1 ) AS col2 FROM tab2 AS cor0
----
-10
-20
6

query I rowsort
SELECT ALL + col0 * 90 + - col1 AS col0 FROM tab2 AS cor0
----
4089
5683
6683

query I rowsort
SELECT col1 FROM tab2 WHERE - 0 IS NOT NULL
----
51
67
77

onlyif mysql # DIV for integer division: 
query I rowsort label-997
SELECT ALL + 0 DIV col1 - 17 + - - 64 FROM tab2
----
47
47
47

skipif mysql # not compatible
query I rowsort label-997
SELECT ALL + 0 / col1 - 17 + - - 64 FROM tab2
----
47
47
47

query I rowsort
SELECT + col0 - col2 - - - 80 + col2 * - col0 AS col2 FROM tab2
----
-1115
-2616
-4413

query I rowsort
SELECT ALL - ( col0 ) - + col1 FROM tab0
----
-108
-96
-98

query I rowsort
SELECT + ( - 60 ) FROM tab1
----
-60
-60
-60

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

query I rowsort
SELECT ALL col2 * + - 29 * + col1 * col0 FROM tab0
----
-1656045
-278487
-529830

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 > - 52
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1004
SELECT * FROM tab2 WHERE NOT NULL IN ( col0, - ( + CAST( - col1 AS SIGNED ) ), - 26 )
----

skipif mysql # not compatible
query III rowsort label-1004
SELECT * FROM tab2 WHERE NOT NULL IN ( col0, - ( + CAST ( - col1 AS INTEGER ) ), - 26 )
----

query II rowsort
SELECT DISTINCT col0, col0 AS col0 FROM tab1
----
51
51
85
85
91
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1006
SELECT - CAST( 8 AS SIGNED ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 47f43f23dcd23959d97d8e3b0aab692e

skipif mysql # not compatible
query I rowsort label-1006
SELECT - CAST ( 8 AS INTEGER ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 47f43f23dcd23959d97d8e3b0aab692e

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1008
SELECT ALL + COUNT( * ) + + 27 AS col0 FROM tab1 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-1008
SELECT ALL + COUNT ( * ) + + 27 AS col0 FROM tab1 AS cor0
----
30

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

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

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

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

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

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

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

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

query I rowsort
SELECT 56 * + col2 FROM tab0 cor0
----
2632
5544
560

query I rowsort
SELECT col2 * + 68 FROM tab0
----
3196
6732
680

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1018
SELECT 65 * MIN( + 95 ) col0 FROM tab1
----
6175

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1018
SELECT 65 * MIN ( + 95 ) col0 FROM tab1
----
6175

onlyif mysql # aggregate syntax: 
query I rowsort label-1019
SELECT ALL + SUM( - 36 ) AS col2 FROM tab2
----
-108

skipif mysql # not compatible
query I rowsort label-1019
SELECT ALL + SUM ( - 36 ) AS col2 FROM tab2
----
-108

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

skipif mysql # not compatible
query I rowsort label-1020
SELECT + COUNT ( - col2 ) FROM tab0
----
3

query I rowsort
SELECT - ( + + 98 ) + col0 AS col1 FROM tab0
----
-1
-11
-83

query I rowsort
SELECT + col0 + - - col2 AS col0 FROM tab2
----
104
133
69

onlyif mysql # aggregate syntax: 
query I rowsort label-1023
SELECT DISTINCT COUNT( * ) AS col2 FROM tab0, tab0 cor0
----
9

skipif mysql # not compatible
query I rowsort label-1023
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab0, tab0 cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1024
SELECT - 86 * - 38 + col2 - - 63 FROM tab2 AS cor0 WHERE col2 + + + CAST( NULL AS SIGNED ) + - col2 < ( + col2 )
----

skipif mysql # not compatible
query I rowsort label-1024
SELECT - 86 * - 38 + col2 - - 63 FROM tab2 AS cor0 WHERE col2 + + + CAST ( NULL AS INTEGER ) + - col2 < ( + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1025
SELECT ALL + CAST( NULL AS SIGNED ) + - - 90 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1025
SELECT ALL + CAST ( NULL AS INTEGER ) + - - 90 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1026
SELECT 73 + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
76

skipif mysql # not compatible
query I rowsort label-1026
SELECT 73 + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
76

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

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

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

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

query I rowsort
SELECT DISTINCT ( - + col2 ) AS col2 FROM tab0
----
-10
-47
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - col1 col2 FROM tab2 WHERE NULL <> NULL
----

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 < + 36
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 63 + - 39 AS col1 FROM tab0
----
24
24
24

query I rowsort
SELECT ALL + col0 * + - col0 * + col0 AS col1 FROM tab1
----
-132651
-614125
-753571

query I rowsort
SELECT + col1 + - - col2 + 60 AS col2 FROM tab0 AS cor0
----
160
188
91

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1038
SELECT DISTINCT + - 90 DIV + - col1 - col1 AS col1 FROM tab0 AS cor0
----
-17
-80
89

skipif mysql # not compatible
query I rowsort label-1038
SELECT DISTINCT + - 90 / + - col1 - col1 AS col1 FROM tab0 AS cor0
----
-17
-80
89

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

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

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 72 col2, col2 * col0 * col1 AS col2 FROM tab2
----
72
197120
72
291450
72
53958

query I rowsort
SELECT - 68 FROM tab2 WHERE NOT NULL = NULL
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + 27 col0 FROM tab1
----
-1377
-2295
-2457

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

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

query I rowsort
SELECT ALL + col1 * ( - + col2 ) FROM tab2
----
-1173
-3080
-3886

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1051
SELECT - COUNT( * ) * - COUNT( * ) FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-1051
SELECT - COUNT ( * ) * - COUNT ( * ) FROM tab1
----
9

query II rowsort
SELECT DISTINCT - + col0 * 98 AS col2, - col2 AS col2 FROM tab1 AS cor0
----
-4998
-96
-8330
-59
-8918
-68

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

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

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

skipif mysql # not compatible
query I rowsort label-1054
SELECT - + MAX ( col0 ) AS col0 FROM tab1 AS cor0
----
-91

query II rowsort
SELECT DISTINCT + col2, + col2 * - 62 FROM tab1 AS cor0
----
59
-3658
68
-4216
96
-5952

query I rowsort
SELECT + + 6 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1057
SELECT DISTINCT 27 + - + ( + - CAST( + col0 AS SIGNED ) ) * + col2 AS col2 FROM tab2 AS cor0
----
1085
2587
4377

skipif mysql # not compatible
query I rowsort label-1057
SELECT DISTINCT 27 + - + ( + - CAST ( + col0 AS INTEGER ) ) * + col2 AS col2 FROM tab2 AS cor0
----
1085
2587
4377

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

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

query I rowsort
SELECT + + col2 + + 7 * - - col1 AS col0 FROM tab2 AS cor0
----
380
527
579

onlyif mysql # aggregate syntax: 
query I rowsort label-1060
SELECT ALL + + MAX( DISTINCT col0 ) + + COUNT( - 15 ) FROM tab0 AS cor0
----
100

skipif mysql # not compatible
query I rowsort label-1060
SELECT ALL + + MAX ( DISTINCT col0 ) + + COUNT ( - 15 ) FROM tab0 AS cor0
----
100

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 83 * - + 66 * col0 * - - col0 / - 2 * + 45 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE + 69 < 55
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 98 col0, - 87 * + 51 AS col0 FROM tab1
----
98
-4437
98
-4437
98
-4437

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

query II rowsort
SELECT ALL - col2 + + - col1 + 38 AS col1, col0 + + col2 * - + col1 + + + ( - 20 ) FROM tab1
----
-26
-230
-72
-1313
-77
-3125

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 AS col0, - ( - 47 ) col1 FROM tab2
----
23
47
40
47
58
47

query II rowsort
SELECT DISTINCT col0 AS col1, - col1 * 79 AS col1 FROM tab1 WHERE NOT - col1 IS NULL
----
51
-1106
85
-395
91
-3713

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

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE 50 / col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1070
SELECT COUNT( * ) + + + COUNT( * ) * + + SUM( DISTINCT + - col1 ) FROM tab1
----
-195

skipif mysql # not compatible
query I rowsort label-1070
SELECT COUNT ( * ) + + + COUNT ( * ) * + + SUM ( DISTINCT + - col1 ) FROM tab1
----
-195

query I rowsort
SELECT - 61 + - - ( - 31 ) - + + 3 - - 56 * - + 8 AS col2 FROM tab0
----
-543
-543
-543

query III rowsort
SELECT * FROM tab2 WHERE NULL >= + col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 * ( + + col2 ) * - 31 + - 10 + col0 BETWEEN NULL AND + 80 + - col1 + - - col2 * 48 + - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-1074
SELECT - col0 DIV - + ( 81 ) FROM tab0 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-1074
SELECT - col0 / - + ( 81 ) FROM tab0 AS cor0
----
0
1
1

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND 0 * 59 * + ( - 23 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1077
SELECT ALL + - SUM( DISTINCT + col0 ) * + 61 col2 FROM tab1 AS cor0 WHERE - 91 + - col2 BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1077
SELECT ALL + - SUM ( DISTINCT + col0 ) * + 61 col2 FROM tab1 AS cor0 WHERE - 91 + - col2 BETWEEN NULL AND NULL
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1079
SELECT ALL + + col1 AS col1 FROM tab0 WHERE NOT 22 + + + 14 + - col2 + col0 + + CAST( 92 AS SIGNED ) * col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-1079
SELECT ALL + + col1 AS col1 FROM tab0 WHERE NOT 22 + + + 14 + - col2 + col0 + + CAST ( 92 AS INTEGER ) * col0 IS NOT NULL
----

query II rowsort
SELECT ALL col0, - 31 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1081
SELECT ( MAX( ALL - 61 ) ) AS col0 FROM tab0
----
-61

skipif mysql # not compatible
query I rowsort label-1081
SELECT ( MAX ( ALL - 61 ) ) AS col0 FROM tab0
----
-61

query II rowsort
SELECT col2 AS col2, + col1 * + + 87 FROM tab0
----
10
1827
47
7047
99
87

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - 30 col2 FROM tab0
----
-2430
-30
-630

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

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

query I rowsort
SELECT DISTINCT - 68 * - 38 FROM tab1 AS cor0
----
2584

query I rowsort
SELECT - col2 * - col0 * - 81 AS col1 FROM tab1
----
-396576
-406215
-501228

query I rowsort
SELECT DISTINCT + 68 FROM tab0 WHERE col0 - + 65 - + col2 IS NOT NULL
----
68

query I rowsort
SELECT + col0 * + + 1 FROM tab1
----
51
85
91

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

skipif mysql # not compatible
query I rowsort label-1090
SELECT + 51 + MIN ( ALL - - col0 ) FROM tab2 AS cor0 WHERE 61 IS NULL
----
NULL

query I rowsort
SELECT DISTINCT 14 * + col2 + - col0 FROM tab2 cor0
----
276
496
737

query II rowsort
SELECT - + col2 AS col2, col2 + + + col1 FROM tab2 AS cor0
----
-23
74
-40
117
-58
125

query I rowsort
SELECT ALL + 18 + - + 37 FROM tab2 AS cor0
----
-19
-19
-19

query I rowsort
SELECT ALL + 42 * + col1 + + col2 FROM tab1 AS cor0
----
2042
269
684

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1095
SELECT DISTINCT + + COUNT( DISTINCT + + CAST( NULL AS SIGNED ) ) * 73 AS col1 FROM tab2 AS cor0
----
0

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 6 + 49 col2 FROM tab0
----
55
55
55

query I rowsort
SELECT col2 + + - 78 FROM tab0
----
-31
-68
21

query I rowsort
SELECT DISTINCT - 61 + + - col0 * - col1 FROM tab2
----
2285
4867
4964

query I rowsort
SELECT + 45 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ( - col1 ) + + - 70 AS col0 FROM tab0
----
-151
-71
-91

query I rowsort
SELECT ALL 58 + + - 12 AS col0 FROM tab1
----
46
46
46

query I rowsort
SELECT ALL - 64 + - col1 AS col2 FROM tab2 AS cor0
----
-115
-131
-141

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT - 67 IS NOT NULL
----

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 31 IS NOT NULL
----

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

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

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

skipif mysql # not compatible
query II rowsort label-1107
SELECT DISTINCT - COUNT ( * ), COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-3
3

query II rowsort
SELECT ALL + col1, - col0 * + col1 FROM tab1 AS cor0
----
14
-714
47
-4277
5
-425

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

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

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

skipif mysql # not compatible
query I rowsort label-1110
SELECT ALL + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE NOT + 89 * - + col0 * col0 IS NOT NULL
----

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

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1115
SELECT ALL * FROM tab2 WHERE - col0 * + col2 / CAST( NULL AS DECIMAL ) >= - col0
----

skipif mysql # not compatible
query III rowsort label-1115
SELECT ALL * FROM tab2 WHERE - col0 * + col2 / CAST ( NULL AS REAL ) >= - col0
----

query I rowsort
SELECT col2 * + 65 * col2 FROM tab1
----
226265
300560
599040

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 < + 85 AND NOT NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1118
SELECT DISTINCT - COUNT( * ) * + ( - + 64 ) AS col2 FROM tab2
----
192

skipif mysql # not compatible
query I rowsort label-1118
SELECT DISTINCT - COUNT ( * ) * + ( - + 64 ) AS col2 FROM tab2
----
192

query I rowsort
SELECT DISTINCT + ( 2 ) FROM tab1
----
2

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1120
SELECT DISTINCT - COUNT( ( + CAST( NULL AS DECIMAL ) ) ) AS col1 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-1120
SELECT DISTINCT - COUNT ( ( + CAST ( NULL AS REAL ) ) ) AS col1 FROM tab1 cor0
----
0

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL <= - 80
----

query I rowsort
SELECT 2 * - + col1 + + - col1 FROM tab0
----
-243
-3
-63

query I rowsort
SELECT ALL 45 FROM tab0 WHERE NOT + col2 * + ( col2 ) * 77 IS NULL
----
45
45
45

onlyif mysql # aggregate syntax: 
query I rowsort label-1124
SELECT 22 + - ( + + COUNT( * ) ) - - MAX( - 86 ) FROM tab1
----
-67

skipif mysql # not compatible
query I rowsort label-1124
SELECT 22 + - ( + + COUNT ( * ) ) - - MAX ( - 86 ) FROM tab1
----
-67

query I rowsort
SELECT - col1 + + - col1 AS col2 FROM tab2
----
-102
-134
-154

onlyif mysql # aggregate syntax: 
query I rowsort label-1126
SELECT - + COUNT( DISTINCT ( col1 ) ) FROM tab1 AS cor0 WHERE NULL IS NULL AND NOT col2 BETWEEN NULL AND + + col0
----
-1

skipif mysql # not compatible
query I rowsort label-1126
SELECT - + COUNT ( DISTINCT ( col1 ) ) FROM tab1 AS cor0 WHERE NULL IS NULL AND NOT col2 BETWEEN NULL AND + + col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1127
SELECT 49 + - COUNT( * ) FROM tab2 cor0
----
46

skipif mysql # not compatible
query I rowsort label-1127
SELECT 49 + - COUNT ( * ) FROM tab2 cor0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-1128
SELECT DISTINCT 29 - + ( - COUNT( * ) ) AS col2 FROM tab1 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-1128
SELECT DISTINCT 29 - + ( - COUNT ( * ) ) AS col2 FROM tab1 AS cor0
----
32

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

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

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

query II rowsort
SELECT DISTINCT - 68, + col0 FROM tab2
----
-68
46
-68
64
-68
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1132
SELECT DISTINCT + ( + 5 ) * MIN( DISTINCT 32 ) FROM tab1, tab1 AS cor0
----
160

skipif mysql # not compatible
query I rowsort label-1132
SELECT DISTINCT + ( + 5 ) * MIN ( DISTINCT 32 ) FROM tab1, tab1 AS cor0
----
160

query I rowsort
SELECT DISTINCT 34 - - col2 * col2 AS col1 FROM tab2
----
1634
3398
563

query I rowsort
SELECT ALL ( - 47 ) AS col1 FROM tab1
----
-47
-47
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 AS col0, col1 col0 FROM tab1
----
-59
5
-68
47
-96
14

query II rowsort
SELECT DISTINCT - ( + col1 ) AS col0, + col2 AS col0 FROM tab0
----
-1
99
-21
10
-81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1137
SELECT COUNT( * ) * + MIN( ALL col0 ) - + COUNT( ALL + 50 ) AS col2 FROM tab1
----
150

skipif mysql # not compatible
query I rowsort label-1137
SELECT COUNT ( * ) * + MIN ( ALL col0 ) - + COUNT ( ALL + 50 ) AS col2 FROM tab1
----
150

onlyif mysql # DIV for integer division: 
query I rowsort label-1138
SELECT col0 DIV - col0 - - 31 FROM tab2
----
30
30
30

skipif mysql # not compatible
query I rowsort label-1138
SELECT col0 / - col0 - - 31 FROM tab2
----
30
30
30

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

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

query I rowsort
SELECT col1 * - col1 + + - col2 - + + 29 FROM tab0 AS cor0
----
-129
-480
-6637

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 40 col2, 41 AS col0 FROM tab2 AS cor0
----
-40
41
-40
41
-40
41

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

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

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

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

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

query I rowsort
SELECT ALL + + 63 AS col1 FROM tab1 cor0
----
63
63
63

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1149
SELECT 28 DIV + MIN( 47 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1149
SELECT 28 / + MIN ( 47 ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT 66 * - 55 FROM tab1
----
-3630
-3630
-3630

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1152
SELECT 89 DIV 18 FROM tab2
----
4
4
4

skipif mysql # not compatible
query I rowsort label-1152
SELECT 89 / 18 FROM tab2
----
4
4
4

query I rowsort
SELECT DISTINCT - col2 * + 17 FROM tab2
----
-391
-680
-986

query I rowsort
SELECT - col2 * + col0 + + col2 * + col0 FROM tab0 WHERE NOT + + col0 / - col0 IS NULL
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1155
SELECT ALL ( - - SUM( ALL col2 ) ) AS col1 FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-1155
SELECT ALL ( - - SUM ( ALL col2 ) ) AS col1 FROM tab1
----
223

query I rowsort
SELECT DISTINCT - 4 FROM tab0 WHERE + - col2 IN ( + col2 )
----

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

query II rowsort
SELECT + 6 AS col1, 71 AS col2 FROM tab2
----
6
71
6
71
6
71

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 + col2 + + - col2 col0, - 45 * - col2 FROM tab0 cor0
----
15
2115
87
450
97
4455

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1164
SELECT - 86 + COUNT( * ) AS col2 FROM tab1 WHERE ( col2 IS NULL )
----
-86

skipif mysql # not compatible
query I rowsort label-1164
SELECT - 86 + COUNT ( * ) AS col2 FROM tab1 WHERE ( col2 IS NULL )
----
-86

query I rowsort
SELECT ALL + ( + + 66 ) FROM tab2
----
66
66
66

query I rowsort
SELECT + - 62 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f0e93f6ff5fc3cf50a14e276206dad5c

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

query I rowsort
SELECT ALL col0 + + - 66 AS col2 FROM tab2 AS cor0
----
-2
-20
9

query I rowsort
SELECT 2 * ( col2 ) FROM tab2 AS cor0
----
116
46
80

onlyif mysql # aggregate syntax: 
query I rowsort label-1170
SELECT DISTINCT + - COUNT( * ) + 59 AS col2 FROM tab1 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-1170
SELECT DISTINCT + - COUNT ( * ) + 59 AS col2 FROM tab1 AS cor0
----
56

onlyif mysql # DIV for integer division: 
query II rowsort label-1171
SELECT ALL - + 15 + 99, col1 - + 59 DIV + - ( col1 ) AS col1 FROM tab2 AS cor0
----
84
52
84
67
84
77

skipif mysql # not compatible
query II rowsort label-1171
SELECT ALL - + 15 + 99, col1 - + 59 / + - ( col1 ) AS col1 FROM tab2 AS cor0
----
84
52
84
67
84
77

query I rowsort
SELECT DISTINCT col1 - + + col2 FROM tab0 AS cor0
----
-98
11
34

query I rowsort
SELECT + - col0 * 61 + 77 FROM tab1 AS cor0
----
-3034
-5108
-5474

query I rowsort
SELECT col1 + - 72 AS col2 FROM tab2 AS cor0 WHERE - col1 IS NOT NULL
----
-21
-5
5

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1175
SELECT DISTINCT - col2 DIV + CAST( + - col1 AS SIGNED ) - + col2 DIV - 80 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1175
SELECT DISTINCT - col2 / + CAST ( + - col1 AS INTEGER ) - + col2 / - 80 AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT 88 + - col1 FROM tab1
----
41
74
83

query I rowsort
SELECT + 24 + + col0 FROM tab0
----
111
121
39

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1179
SELECT - - SUM( + + col0 ) AS col2 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1179
SELECT - - SUM ( + + col0 ) AS col2 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1180
SELECT ALL + ( + - 46 ) * - ( CAST( 1 AS SIGNED ) ) - COUNT( * ) AS col2 FROM tab0
----
43

skipif mysql # not compatible
query I rowsort label-1180
SELECT ALL + ( + - 46 ) * - ( CAST ( 1 AS INTEGER ) ) - COUNT ( * ) AS col2 FROM tab0
----
43

query I rowsort
SELECT ALL col1 * - 3 * col0 / 62 + col1 FROM tab0 WHERE NOT NULL BETWEEN - - col2 AND - - col0
----

query I rowsort
SELECT DISTINCT - 88 * + - 16 FROM tab1
----
1408

onlyif mysql # aggregate syntax: 
query I rowsort label-1183
SELECT + MIN( DISTINCT ( col0 ) ) FROM tab1 cor0 WHERE ( - col1 IS NOT NULL )
----
51

skipif mysql # not compatible
query I rowsort label-1183
SELECT + MIN ( DISTINCT ( col0 ) ) FROM tab1 cor0 WHERE ( - col1 IS NOT NULL )
----
51

query I rowsort
SELECT ALL 14 * - ( - 12 ) FROM tab0 AS cor0
----
168
168
168

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1185
SELECT + 81 * 2 * + CAST( + col0 AS SIGNED ) FROM tab1 AS cor0
----
13770
14742
8262

skipif mysql # not compatible
query I rowsort label-1185
SELECT + 81 * 2 * + CAST ( + col0 AS INTEGER ) FROM tab1 AS cor0
----
13770
14742
8262

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

query I rowsort
SELECT ALL - col0 * - 27 FROM tab0 cor0
----
2349
2619
405

query I rowsort
SELECT DISTINCT + 45 * + - col2 * + col0 FROM tab0 AS cor0
----
-31725
-39150
-432135

query II rowsort
SELECT - col2 AS col1, 54 * + col1 AS col2 FROM tab0
----
-10
1134
-47
4374
-99
54

query I rowsort
SELECT + + col0 * + 57 FROM tab1 AS cor0
----
2907
4845
5187

query II rowsort
SELECT ALL - 54 * + - col0 AS col1, 67 * - col0 AS col1 FROM tab1 AS cor0
----
2754
-3417
4590
-5695
4914
-6097

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

query I rowsort
SELECT - - col1 * + ( - 70 ) * 81 FROM tab1 cor0
----
-266490
-28350
-79380

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - 7 col1 FROM tab1 AS cor0
----
-413
-476
-672

query II rowsort
SELECT ALL 22 AS col2, col0 AS col2 FROM tab0 AS cor0
----
22
15
22
87
22
97

query II rowsort
SELECT - ( + col2 ) AS col0, - col2 FROM tab2 AS cor0
----
-23
-23
-40
-40
-58
-58

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1198
SELECT ALL + + CAST( + - col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-1198
SELECT ALL + + CAST ( + - col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-46
-64
-75

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1200
SELECT 33 AS col1, - COUNT( * ) - + COUNT( * ) FROM tab1 AS cor0
----
33
-6

skipif mysql # not compatible
query II rowsort label-1200
SELECT 33 AS col1, - COUNT ( * ) - + COUNT ( * ) FROM tab1 AS cor0
----
33
-6

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

query I rowsort
SELECT - - 31 * - 31 * col2 FROM tab2 AS cor0
----
-22103
-38440
-55738

onlyif mysql # aggregate syntax: 
query II rowsort label-1203
SELECT DISTINCT MIN( - col1 ) AS col2, - COUNT( * ) * + COUNT( ALL col0 ) col2 FROM tab0
----
-81
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1203
SELECT DISTINCT MIN ( - col1 ) AS col2, - COUNT ( * ) * + COUNT ( ALL col0 ) col2 FROM tab0
----
-81
-9

query I rowsort
SELECT ALL col0 * + + 72 FROM tab2
----
3312
4608
5400

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL >= 4 + - col0 + - col1 * + - col2 * ( + col2 ) + - - 97
----

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT + 81 > - - 28
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1208
SELECT ALL + col2 DIV 84 * col2 + 48 FROM tab0 AS cor0
----
147
48
48

skipif mysql # not compatible
query I rowsort label-1208
SELECT ALL + col2 / 84 * col2 + 48 FROM tab0 AS cor0
----
147
48
48

query I rowsort
SELECT - col1 + - col1 * + + 99 AS col0 FROM tab0
----
-100
-2100
-8100

onlyif mysql # aggregate syntax: 
query I rowsort label-1210
SELECT 4 + + 37 * + 93 * - COUNT( * ) AS col1 FROM tab1
----
-10319

skipif mysql # not compatible
query I rowsort label-1210
SELECT 4 + + 37 * + 93 * - COUNT ( * ) AS col1 FROM tab1
----
-10319

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1212
SELECT ALL - + COUNT( + 98 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1212
SELECT ALL - + COUNT ( + 98 ) FROM tab1 AS cor0
----
-3

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1215
SELECT DISTINCT + col1 + - + ( + col2 ) + - CAST( CAST( - + col0 AS SIGNED ) AS SIGNED ) FROM tab0 AS cor0
----
-1
49
98

skipif mysql # not compatible
query I rowsort label-1215
SELECT DISTINCT + col1 + - + ( + col2 ) + - CAST ( CAST ( - + col0 AS INTEGER ) AS INTEGER ) FROM tab0 AS cor0
----
-1
49
98

onlyif mysql # aggregate syntax: 
query I rowsort label-1216
SELECT - SUM( + col0 ) * + 39 FROM tab1 AS cor0
----
-8853

skipif mysql # not compatible
query I rowsort label-1216
SELECT - SUM ( + col0 ) * + 39 FROM tab1 AS cor0
----
-8853

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

query I rowsort
SELECT DISTINCT 17 + - - col2 * - col0 * - 73 FROM tab1 AS cor0
----
357425
366112
451741

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1219
SELECT ALL - 52 + - + 44 + 82 + + 72 - + + 36 * - 97 * ( + + col0 ) * 55 * + 76 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1219
SELECT ALL - 52 + - + 44 + 82 + + 72 - + + 36 * - 97 * ( + + col0 ) * 55 * + 76 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1220
SELECT - - COUNT( DISTINCT ( - - 18 ) ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-1220
SELECT - - COUNT ( DISTINCT ( - - 18 ) ) FROM tab1 AS cor0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1221
SELECT + 92, CAST( NULL AS SIGNED ) - + COUNT( * ) AS col1 FROM tab2 WHERE - - 13 >= NULL
----
92
NULL

skipif mysql # not compatible
query II rowsort label-1221
SELECT + 92, CAST ( NULL AS INTEGER ) - + COUNT ( * ) AS col1 FROM tab2 WHERE - - 13 >= NULL
----
92
NULL

query I rowsort
SELECT ALL - col0 + 75 * - + 83 AS col2 FROM tab0
----
-6240
-6312
-6322

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 44 * - - ( + - 92 ) col2 FROM tab1 WHERE col2 * - 0 <> col0
----
-4048
-4048
-4048

query I rowsort
SELECT + 9 - - col2 FROM tab2
----
32
49
67

query II rowsort
SELECT 57 - col2 AS col2, - 59 * col0 FROM tab0
----
-42
-5723
10
-885
47
-5133

query I rowsort
SELECT DISTINCT 42 + + - 77 AS col0 FROM tab1
----
-35

query I rowsort
SELECT ALL - + 45 AS col0 FROM tab1 cor0
----
-45
-45
-45

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + col0 * - 46, col2 col1 FROM tab0 AS cor0
----
4002
10
4462
99
690
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 14 col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1231
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 41 * - + CAST( - - col1 AS SIGNED ) >= 39 + + 59 - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-1231
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 41 * - + CAST ( - - col1 AS INTEGER ) >= 39 + + 59 - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query I rowsort
SELECT - + 24 * + - ( - col1 ) - + 55 * + + col1 AS col0 FROM tab2 AS cor0
----
-4029
-5293
-6083

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1234
SELECT + col2 * + - col0 - + 20 + + CAST( NULL AS DECIMAL ) / - col0 * + + 10 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1234
SELECT + col2 * + - col0 - + 20 + + CAST ( NULL AS REAL ) / - col0 * + + 10 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT - 46 * + - col1 AS col2 FROM tab0
----
3726
46
966

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1238
SELECT - CAST( + 67 AS SIGNED ) * ( - col2 ) / + - 87 + col2 FROM tab2 WHERE NOT NULL <> NULL
----

skipif mysql # not compatible
query I rowsort label-1238
SELECT - CAST ( + 67 AS INTEGER ) * ( - col2 ) / + - 87 + col2 FROM tab2 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT DISTINCT col1 * - - 4 FROM tab0
----
324
4
84

onlyif mysql # aggregate syntax: 
query I rowsort label-1240
SELECT ALL MIN( ALL - 5 ) * + 48 * - COUNT( * ) FROM tab0
----
720

skipif mysql # not compatible
query I rowsort label-1240
SELECT ALL MIN ( ALL - 5 ) * + 48 * - COUNT ( * ) FROM tab0
----
720

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1242
SELECT ALL MAX( + col0 ) AS col1 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-1242
SELECT ALL MAX ( + col0 ) AS col1 FROM tab2
----
75

query I rowsort
SELECT + - 83 + + col1 AS col1 FROM tab2 AS cor0
----
-16
-32
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-1244
SELECT - COUNT( ALL col2 ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-1244
SELECT - COUNT ( ALL col2 ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
-3

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

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT ALL col1 + - + col0 AS col1 FROM tab2 WHERE NOT 11 + - 46 IS NULL
----
-8
13
5

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1249
SELECT COUNT( * ) * 36 DIV - - 99 AS col0 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-1249
SELECT COUNT ( * ) * 36 / - - 99 AS col0 FROM tab1
----
1

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL BETWEEN + 24 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1251
SELECT DISTINCT SUM( ALL - CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1251
SELECT DISTINCT SUM ( ALL - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1252
SELECT ALL - CAST( col0 AS SIGNED ) + - - col2 * + col0 FROM tab0 cor0
----
690
783
9506

skipif mysql # not compatible
query I rowsort label-1252
SELECT ALL - CAST ( col0 AS INTEGER ) + - - col2 * + col0 FROM tab0 cor0
----
690
783
9506

query I rowsort
SELECT - 99 + + + col2 FROM tab2
----
-41
-59
-76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1254
SELECT DISTINCT + + COUNT( * ) DIV + COUNT( * ) AS col1 FROM tab2 WHERE NULL IS NULL
----
1

skipif mysql # not compatible
query I rowsort label-1254
SELECT DISTINCT + + COUNT ( * ) / + COUNT ( * ) AS col1 FROM tab2 WHERE NULL IS NULL
----
1

query IIIIII rowsort
SELECT ALL * FROM tab1, tab1 AS cor0 WHERE NULL IS NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

query I rowsort
SELECT ALL + 68 * - - col0 FROM tab1
----
3468
5780
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-1257
SELECT DISTINCT SUM( DISTINCT 16 ) - - SUM( ( + - col0 ) ) + 10 AS col0 FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
-173

skipif mysql # not compatible
query I rowsort label-1257
SELECT DISTINCT SUM ( DISTINCT 16 ) - - SUM ( ( + - col0 ) ) + 10 AS col0 FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
-173

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

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

query I rowsort
SELECT ( - col2 ) * + 58 AS col1 FROM tab1 AS cor0
----
-3422
-3944
-5568

query I rowsort
SELECT col2 * 40 FROM tab2 cor0
----
1600
2320
920

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1261
SELECT DISTINCT * FROM tab2 WHERE - col2 BETWEEN - 32 AND CAST( + col0 AS SIGNED ) + 92 * + col1
----
46
51
23

skipif mysql # not compatible
query III rowsort label-1261
SELECT DISTINCT * FROM tab2 WHERE - col2 BETWEEN - 32 AND CAST ( + col0 AS INTEGER ) + 92 * + col1
----
46
51
23

onlyif mysql # aggregate syntax: 
query I rowsort label-1262
SELECT ALL COUNT( 90 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-1262
SELECT ALL COUNT ( 90 ) AS col1 FROM tab1
----
3

query I rowsort
SELECT ALL + col2 * - col2 + 8 FROM tab1
----
-3473
-4616
-9208

query I rowsort
SELECT + col0 + - col1 * - ( col1 + + 53 * 24 ) AS col1 FROM tab2
----
103937
67519
89788

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1266
SELECT + col1 + col0 DIV + col1 FROM tab0
----
25
81
98

skipif mysql # not compatible
query I rowsort label-1266
SELECT + col1 + col0 / + col1 FROM tab0
----
25
81
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1267
SELECT DISTINCT CAST( + MIN( + col2 ) AS SIGNED ) FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-1267
SELECT DISTINCT CAST ( + MIN ( + col2 ) AS INTEGER ) FROM tab2
----
23

query I rowsort
SELECT ALL col2 AS col2 FROM tab1 WHERE NOT NULL < + col1 - - 36
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IN ( + 15 )
----

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

query III rowsort
SELECT * FROM tab2 WHERE ( col0 ) NOT BETWEEN - col1 AND col1
----
75
67
58

query I rowsort
SELECT - 54 - + 70 FROM tab1
----
-124
-124
-124

query I rowsort
SELECT DISTINCT - 95 AS col0 FROM tab0 WHERE - 41 * col1 + 3 IN ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1274
SELECT - MIN( + col2 ) + - 95 AS col0 FROM tab2
----
-118

skipif mysql # not compatible
query I rowsort label-1274
SELECT - MIN ( + col2 ) + - 95 AS col0 FROM tab2
----
-118

onlyif mysql # aggregate syntax: 
query I rowsort label-1275
SELECT ALL ( MAX( col2 ) ) - + 60 AS col1 FROM tab0
----
39

skipif mysql # not compatible
query I rowsort label-1275
SELECT ALL ( MAX ( col2 ) ) - + 60 AS col1 FROM tab0
----
39

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1277
SELECT + 79 * + ( - MIN( + col0 ) ) + - SUM( ALL col0 + col2 * 3 ) FROM tab0
----
-1852

skipif mysql # not compatible
query I rowsort label-1277
SELECT + 79 * + ( - MIN ( + col0 ) ) + - SUM ( ALL col0 + col2 * 3 ) FROM tab0
----
-1852

query I rowsort
SELECT - 44 + - col2 * 5 AS col1 FROM tab0
----
-279
-539
-94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + 85 * 8 col2 FROM tab1
----
739
748
776

query I rowsort
SELECT + 34 * 43 AS col1 FROM tab0
----
1462
1462
1462

onlyif mysql # aggregate syntax: 
query I rowsort label-1281
SELECT ALL AVG ( DISTINCT col2 ) - SUM( 46 ) AS col1 FROM tab1 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1281
SELECT ALL AVG ( DISTINCT col2 ) - SUM ( 46 ) AS col1 FROM tab1 WHERE ( NULL ) IS NOT NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE ( ( + col2 ) ) BETWEEN + ( - col1 ) * col2 AND 44
----
87
21
10

query I rowsort
SELECT ALL col2 + + 93 * + col2 AS col2 FROM tab1
----
5546
6392
9024

onlyif mysql # aggregate syntax: 
query I rowsort label-1284
SELECT 14 + COUNT( DISTINCT 66 ) FROM tab1
----
15

skipif mysql # not compatible
query I rowsort label-1284
SELECT 14 + COUNT ( DISTINCT 66 ) FROM tab1
----
15

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + 14 col1 FROM tab2
----
65
81
91

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1288
SELECT - COUNT( * ) - - 36 FROM tab0
----
33

skipif mysql # not compatible
query I rowsort label-1288
SELECT - COUNT ( * ) - - 36 FROM tab0
----
33

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL > col1 * + col0
----

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

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

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

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

query I rowsort
SELECT ALL col2 - 78 AS col0 FROM tab1 AS cor0
----
-10
-19
18

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1295
SELECT - 49 FROM tab2 WHERE ( - col2 + ( + 88 ) * CAST( NULL AS DECIMAL ) ) BETWEEN ( col1 + + 61 ) AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-1295
SELECT - 49 FROM tab2 WHERE ( - col2 + ( + 88 ) * CAST ( NULL AS REAL ) ) BETWEEN ( col1 + + 61 ) AND ( NULL )
----

query I rowsort
SELECT ALL 58 + - col0 AS col2 FROM tab1
----
-27
-33
7

query I rowsort
SELECT - 77 + col2 AS col0 FROM tab2
----
-19
-37
-54

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 WHERE NOT NULL IS NOT NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

onlyif mysql # aggregate syntax: 
query I rowsort label-1299
SELECT DISTINCT - MIN( DISTINCT 22 ) FROM tab0 AS cor0 CROSS JOIN tab2
----
-22

skipif mysql # not compatible
query I rowsort label-1299
SELECT DISTINCT - MIN ( DISTINCT 22 ) FROM tab0 AS cor0 CROSS JOIN tab2
----
-22

query I rowsort
SELECT 0 * 0 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL col2 FROM tab0 AS cor0 WHERE NOT 49 BETWEEN col2 - - col0 AND NULL
----
10
47
99

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1302
SELECT ALL - col2 + + CAST( NULL AS DECIMAL ) * col2 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-1302
SELECT ALL - col2 + + CAST ( NULL AS REAL ) * col2 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT - + col1 * - 20 FROM tab1 AS cor0
----
100
280
940

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( + ( + col2 ) ) >= 32
----
15
81
47
97
1
99

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

query I rowsort
SELECT ALL + col1 FROM tab2 AS cor0 WHERE + col0 + 9 >= ( + 64 )
----
67
77

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1309
SELECT DISTINCT * FROM tab1 WHERE ( - CAST( NULL AS SIGNED ) + - 45 ) IS NOT NULL OR - 35 * col2 IN ( col1 )
----

skipif mysql # not compatible
query III rowsort label-1309
SELECT DISTINCT * FROM tab1 WHERE ( - CAST ( NULL AS INTEGER ) + - 45 ) IS NOT NULL OR - 35 * col2 IN ( col1 )
----

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

skipif mysql # not compatible
query I rowsort label-1310
SELECT ALL SUM ( ALL col2 ) * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1312
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( col2 * col2 + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-1312
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( col2 * col2 + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1313
SELECT ALL + COUNT( * ) AS col2 FROM tab1 WHERE NOT - col1 BETWEEN NULL AND ( col0 )
----
0

skipif mysql # not compatible
query I rowsort label-1313
SELECT ALL + COUNT ( * ) AS col2 FROM tab1 WHERE NOT - col1 BETWEEN NULL AND ( col0 )
----
0

query I rowsort
SELECT DISTINCT 32 FROM tab2 AS cor0 WHERE NOT col2 + 91 BETWEEN col1 * + col1 AND NULL
----
32

query I rowsort
SELECT - 10 * + - col1 + col2 * col2 FROM tab0 cor0
----
3019
310
9811

query I rowsort
SELECT col1 * - 20 * + col1 FROM tab0
----
-131220
-20
-8820

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

query I rowsort
SELECT - 80 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 4dde3bd5652d30396b9cadd0e2cfb680

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

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

query I rowsort
SELECT DISTINCT - 29 * col2 * + 91 * 85 FROM tab0
----
-10542805
-22207185
-2243150

query I rowsort
SELECT ALL ( + col0 ) FROM tab1 AS cor0 WHERE + col0 <= ( col1 )
----

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
51
85
91

onlyif mysql # DIV for integer division: 
query I rowsort label-1323
SELECT DISTINCT - + col1 + + + col2 DIV 18 + col1 * col1 col2 FROM tab1 AS cor0
----
187
2165
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1323
SELECT DISTINCT - + col1 + + + col2 / 18 + col1 * col1 col2 FROM tab1 AS cor0
----
187
2165
23

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1326
SELECT - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0 WHERE NOT ( NULL IS NULL ) OR NULL = col2
----

skipif mysql # not compatible
query I rowsort label-1326
SELECT - CAST ( NULL AS REAL ) FROM tab1 AS cor0 WHERE NOT ( NULL IS NULL ) OR NULL = col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1327
SELECT 81 * - + MIN( + + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1327
SELECT 81 * - + MIN ( + + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL col1 * - 66 AS col0 FROM tab2 AS cor0
----
-3366
-4422
-5082

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1331
SELECT ALL 40 DIV - col2 AS col1, col2 col0 FROM tab0
----
-4
10
0
47
0
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1331
SELECT ALL 40 / - col2 AS col1, col2 col0 FROM tab0
----
-4
10
0
47
0
99

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 / - - 39 + col2 > + col0 + + col0 AND NOT col1 IS NOT NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1334
SELECT - col0 DIV + + col1 + + 79 AS col0 FROM tab1
----
62
76
78

skipif mysql # not compatible
query I rowsort label-1334
SELECT - col0 / + + col1 + + 79 AS col0 FROM tab1
----
62
76
78

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col1 FROM tab1 WHERE + col2 IS NOT NULL
----
51
85
91

query I rowsort
SELECT ALL + 94 AS col2 FROM tab1
----
94
94
94

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) <= col0 / - col0 * + 38
----

query I rowsort
SELECT DISTINCT col0 FROM tab1 AS cor0 WHERE ( NOT + + 30 >= col0 )
----
51
85
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 72 col2 FROM tab0 AS cor0
----
72
72
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1342
SELECT + 21 - - MIN( ALL + ( + CAST( NULL AS SIGNED ) ) ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1342
SELECT + 21 - - MIN ( ALL + ( + CAST ( NULL AS INTEGER ) ) ) AS col0 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE ( col2 / + col2 + - col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1344
SELECT DISTINCT + - 58 * + - MIN( DISTINCT col2 ) FROM tab0 AS cor0
----
580

skipif mysql # not compatible
query I rowsort label-1344
SELECT DISTINCT + - 58 * + - MIN ( DISTINCT col2 ) FROM tab0 AS cor0
----
580

query I rowsort
SELECT ALL - 15 * - - 73 AS col2 FROM tab2 AS cor0
----
-1095
-1095
-1095

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 > - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col1 * - + 91 AS col0 FROM tab0 AS cor0
----
1911
7371
91

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

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

query I rowsort
SELECT - col2 * - 30 FROM tab2 AS cor0
----
1200
1740
690

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

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

query I rowsort
SELECT DISTINCT + col0 FROM tab0 cor0 WHERE col0 >= ( + 68 )
----
87
97

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

skipif mysql # not compatible
query III rowsort label-1352
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( CAST ( NULL AS INTEGER ) ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1353
SELECT CAST( NULL AS SIGNED ) FROM tab1 cor0 WHERE NOT NULL BETWEEN + 50 AND NULL
----

skipif mysql # not compatible
query I rowsort label-1353
SELECT CAST ( NULL AS INTEGER ) FROM tab1 cor0 WHERE NOT NULL BETWEEN + 50 AND NULL
----

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

query II rowsort
SELECT DISTINCT col2, 41 * + - col1 AS col2 FROM tab2
----
23
-2091
40
-3157
58
-2747

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

skipif mysql # not compatible
query I rowsort label-1356
SELECT + COUNT ( * ) FROM tab2 WHERE NOT + col2 IS NOT NULL
----
0

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
51
85
91

query III rowsort
SELECT ALL * FROM tab1 WHERE + + col2 <= + 64
----
85
5
59

query I rowsort
SELECT ALL - 94 * - col1 FROM tab0
----
1974
7614
94

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

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1363
SELECT - SUM ( ALL - col0 ) col2 FROM tab2 AS cor0
----
185

query I rowsort
SELECT DISTINCT 83 * + col0 AS col1 FROM tab2 AS cor0 WHERE NOT 75 < - col2
----
3818
5312
6225

query I rowsort
SELECT 26 AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1366
SELECT ALL col2 + + CAST( 16 AS SIGNED ) FROM tab2 AS cor0
----
39
56
74

skipif mysql # not compatible
query I rowsort label-1366
SELECT ALL col2 + + CAST ( 16 AS INTEGER ) FROM tab2 AS cor0
----
39
56
74

onlyif mysql # aggregate syntax: 
query I rowsort label-1367
SELECT + COUNT( * ) FROM tab0 AS cor0 WHERE - col2 < - col0
----
2

skipif mysql # not compatible
query I rowsort label-1367
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE - col2 < - col0
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1368
SELECT - CAST( + 82 AS SIGNED ) + 86 + + ( + 34 ) - - ( + - col0 ) FROM tab0 AS cor0
----
-49
-59
23

skipif mysql # not compatible
query I rowsort label-1368
SELECT - CAST ( + 82 AS INTEGER ) + 86 + + ( + 34 ) - - ( + - col0 ) FROM tab0 AS cor0
----
-49
-59
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1369
SELECT ALL - 72 * COUNT( * ) AS col0, 80 * - - CAST( - 68 AS SIGNED ) FROM tab0 AS cor0
----
-216
-5440

skipif mysql # not compatible
query II rowsort label-1369
SELECT ALL - 72 * COUNT ( * ) AS col0, 80 * - - CAST ( - 68 AS INTEGER ) FROM tab0 AS cor0
----
-216
-5440

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 NOT BETWEEN NULL AND 48
----
15
81
47

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

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

query I rowsort
SELECT ALL - col0 + + 16 + col0 + - col1 * + col1 * col0 * 58 * + col2 AS col2 FROM tab0 cor0
----
-22252844
-268279274
-556958

query I rowsort
SELECT DISTINCT + col0 FROM tab0 AS cor0 WHERE ( ( NULL NOT BETWEEN + col1 AND ( - - 83 ) ) )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1374
SELECT ALL ( - 60 ) + 75 AS col0, 11 * 11 * - COUNT( * ) AS col1 FROM tab2
----
15
-363

skipif mysql # not compatible
query II rowsort label-1374
SELECT ALL ( - 60 ) + 75 AS col0, 11 * 11 * - COUNT ( * ) AS col1 FROM tab2
----
15
-363

query I rowsort
SELECT 17 * - col1 AS col1 FROM tab2
----
-1139
-1309
-867

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1376
SELECT + 29 * + - 34 + CAST( NULL AS SIGNED ), 76 / - - 22 col1 FROM tab0 WHERE col0 <> NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1376
SELECT + 29 * + - 34 + CAST ( NULL AS INTEGER ), 76 / - - 22 col1 FROM tab0 WHERE col0 <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1377
SELECT - 64 DIV - - col2 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1377
SELECT - 64 / - - col2 FROM tab1
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1378
SELECT DISTINCT MIN( col2 ) AS col2 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-1378
SELECT DISTINCT MIN ( col2 ) AS col2 FROM tab2
----
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 + + 31 * col1 col1, col1 AS col1 FROM tab1
----
1504
47
160
5
448
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 85 * + col0 - 21 col0 FROM tab2
----
3889
5419
6354

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL = ( col2 * col0 ) )
----

query I rowsort
SELECT DISTINCT + ( - - col1 ) - 45 AS col0 FROM tab2
----
22
32
6

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT 77 NOT IN ( + 89 + - 29, - 98 )
----

query II rowsort
SELECT DISTINCT col1 * + col2 AS col2, col0 + - col2 FROM tab2 cor0
----
1173
23
3080
24
3886
17

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

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

query I rowsort
SELECT DISTINCT - + 87 * + - 21 AS col0 FROM tab1 AS cor0
----
1827

onlyif mysql # aggregate syntax: 
query I rowsort label-1390
SELECT 13 * - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-1390
SELECT 13 * - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-39

query I rowsort
SELECT ALL - 77 * + 87 AS col1 FROM tab2
----
-6699
-6699
-6699

onlyif mysql # aggregate syntax: 
query I rowsort label-1392
SELECT ALL - SUM( ALL - - 93 ) AS col2 FROM tab0
----
-279

skipif mysql # not compatible
query I rowsort label-1392
SELECT ALL - SUM ( ALL - - 93 ) AS col2 FROM tab0
----
-279

onlyif mysql # DIV for integer division: 
query I rowsort label-1393
SELECT - 54 DIV + col0 AS col0 FROM tab0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-1393
SELECT - 54 / + col0 AS col0 FROM tab0
----
-3
0
0

query II rowsort
SELECT + col0, 55 FROM tab1
----
51
55
85
55
91
55

query I rowsort
SELECT ALL 2 * 61 FROM tab2
----
122
122
122

query II rowsort
SELECT + 33, 9 AS col0 FROM tab2
----
33
9
33
9
33
9

onlyif mysql # aggregate syntax: 
query II rowsort label-1397
SELECT - ( SUM( DISTINCT + - 53 ) ) AS col2, + COUNT( * ) * + + ( - COUNT( * ) ) AS col2 FROM tab1
----
53
-9

skipif mysql # not compatible
query II rowsort label-1397
SELECT - ( SUM ( DISTINCT + - 53 ) ) AS col2, + COUNT ( * ) * + + ( - COUNT ( * ) ) AS col2 FROM tab1
----
53
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-1398
SELECT MIN( ALL - - col2 ) FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-1398
SELECT MIN ( ALL - - col2 ) FROM tab0
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-1399
SELECT DISTINCT - - 55, COUNT( * ) * + COUNT( - - 93 ) * + MAX( col2 ) * 12 col1 FROM tab0 AS cor0
----
55
10692

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1399
SELECT DISTINCT - - 55, COUNT ( * ) * + COUNT ( - - 93 ) * + MAX ( col2 ) * 12 col1 FROM tab0 AS cor0
----
55
10692

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

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

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

query I rowsort
SELECT 72 + + col0 AS col2 FROM tab1 cor0
----
123
157
163

onlyif mysql # aggregate syntax: 
query I rowsort label-1403
SELECT DISTINCT MAX( DISTINCT 3 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-1403
SELECT DISTINCT MAX ( DISTINCT 3 ) AS col1 FROM tab2
----
3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1405
SELECT DISTINCT - + COUNT( * ) + 13 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-1405
SELECT DISTINCT - + COUNT ( * ) + 13 FROM tab0 AS cor0
----
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + - - 92 * + col1 * ( col0 ) col1 FROM tab2 AS cor0
----
215781
453299
462233

onlyif mysql # aggregate syntax: 
query I rowsort label-1407
SELECT 93 + + - SUM( ALL + + ( - 7 ) ) FROM tab1 AS cor0
----
114

skipif mysql # not compatible
query I rowsort label-1407
SELECT 93 + + - SUM ( ALL + + ( - 7 ) ) FROM tab1 AS cor0
----
114

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1409
SELECT ALL + 75 AS col0, ( - + CAST( NULL AS SIGNED ) ) * + COUNT( * ) AS col1 FROM tab0 AS cor0
----
75
NULL

skipif mysql # not compatible
query II rowsort label-1409
SELECT ALL + 75 AS col0, ( - + CAST ( NULL AS INTEGER ) ) * + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
75
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1410
SELECT ALL 1 + 49 + COUNT( * ) AS col0 FROM tab1 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-1410
SELECT ALL 1 + 49 + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
53

query I rowsort
SELECT DISTINCT col1 - col2 * + 94 AS col0 FROM tab0
----
-4337
-919
-9305

onlyif mysql # aggregate syntax: 
query I rowsort label-1412
SELECT - 90 * + + MIN( ALL + 6 ) FROM tab1 WHERE + + col2 IS NOT NULL
----
-540

skipif mysql # not compatible
query I rowsort label-1412
SELECT - 90 * + + MIN ( ALL + 6 ) FROM tab1 WHERE + + col2 IS NOT NULL
----
-540

query I rowsort
SELECT + 40 + - col0 * - 43 AS col2 FROM tab1
----
2233
3695
3953

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1414
SELECT CAST( 75 AS SIGNED ) + - + COUNT( * ) AS col2 FROM tab0
----
72

skipif mysql # not compatible
query I rowsort label-1414
SELECT CAST ( 75 AS INTEGER ) + - + COUNT ( * ) AS col2 FROM tab0
----
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + + 6 * col0 col0 FROM tab1
----
-2550
-25662
-4284

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1417
SELECT + - col0 DIV + 62 - - col0 FROM tab1 AS cor0
----
51
84
90

skipif mysql # not compatible
query I rowsort label-1417
SELECT + - col0 / + 62 - - col0 FROM tab1 AS cor0
----
51
84
90

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 28 <> NULL
----

query I rowsort
SELECT DISTINCT + col2 * - 69 AS col1 FROM tab0
----
-3243
-6831
-690

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

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

query I rowsort
SELECT col1 * + 21 AS col0 FROM tab1 AS cor0
----
105
294
987

query II rowsort
SELECT - col0, 99 AS col1 FROM tab2 AS cor0
----
-46
99
-64
99
-75
99

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL >= 17 * 96
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN col1 * + col1 + 48 + - - col0 AND - 82 / + 2 * + col2
----

query I rowsort
SELECT 61 AS col2 FROM tab1 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1428
SELECT COUNT( * ) * - 10 AS col1 FROM tab0 AS cor0
----
-30

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1429
SELECT + + col2 DIV - col0 - - 49 AS col1 FROM tab1 cor0
----
48
49
49

skipif mysql # not compatible
query I rowsort label-1429
SELECT + + col2 / - col0 - - 49 AS col1 FROM tab1 cor0
----
48
49
49

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

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

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1434
SELECT - CAST ( NULL AS REAL ) / - - 69 col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 * + 45 AS col0 FROM tab0
----
3915
4365
675

query I rowsort
SELECT ALL col2 + + 9 AS col2 FROM tab1 AS cor0
----
105
68
77

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1438
SELECT DISTINCT 33 + MAX( + col0 ) FROM tab0 AS cor0
----
130

skipif mysql # not compatible
query I rowsort label-1438
SELECT DISTINCT 33 + MAX ( + col0 ) FROM tab0 AS cor0
----
130

query I rowsort
SELECT DISTINCT + 94 * 4 * - col2 FROM tab2
----
-15040
-21808
-8648

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

query I rowsort
SELECT - + 33 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8035c665a75d22be5922be1a4e574e03

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1442
SELECT DISTINCT + 69 AS col1, - CAST( NULL AS DECIMAL ) * - col0 AS col0 FROM tab0
----
69
NULL

skipif mysql # not compatible
query II rowsort label-1442
SELECT DISTINCT + 69 AS col1, - CAST ( NULL AS REAL ) * - col0 AS col0 FROM tab0
----
69
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1443
SELECT col2 + + - col2 DIV - col2 FROM tab0 AS cor0
----
100
11
48

skipif mysql # not compatible
query I rowsort label-1443
SELECT col2 + + - col2 / - col2 FROM tab0 AS cor0
----
100
11
48

onlyif mysql # aggregate syntax: 
query I rowsort label-1444
SELECT + COUNT( * ) + + + ( - 25 ) AS col1 FROM tab2 AS cor0
----
-22

skipif mysql # not compatible
query I rowsort label-1444
SELECT + COUNT ( * ) + + + ( - 25 ) AS col1 FROM tab2 AS cor0
----
-22

query II rowsort
SELECT ALL ( - col1 ) + - col1 AS col0, col2 * + - col1 FROM tab0 AS cor0
----
-162
-3807
-2
-99
-42
-210

query I rowsort
SELECT ALL ( + + col0 ) + 92 FROM tab0 AS cor0
----
107
179
189

query II rowsort
SELECT ALL + - col1, - col0 FROM tab0 AS cor0 WHERE 29 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1448
SELECT - CAST( NULL AS DECIMAL ), col0 + col2 + - 80 * - col1 + col2 + + col1 AS col0 FROM tab0
----
NULL
1808
NULL
376
NULL
6670

skipif mysql # not compatible
query II rowsort label-1448
SELECT - CAST ( NULL AS REAL ), col0 + col2 + - 80 * - col1 + col2 + + col1 AS col0 FROM tab0
----
NULL
1808
NULL
376
NULL
6670

onlyif mysql # aggregate syntax: 
query II rowsort label-1449
SELECT DISTINCT + 66, - MAX( ( + 77 ) ) AS col1 FROM tab2
----
66
-77

skipif mysql # not compatible
query II rowsort label-1449
SELECT DISTINCT + 66, - MAX ( ( + 77 ) ) AS col1 FROM tab2
----
66
-77

query I rowsort
SELECT DISTINCT + col2 - 95 AS col1 FROM tab2
----
-37
-55
-72

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

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

query I rowsort
SELECT - 57 - + col1 * - 89 + - - col1 FROM tab2
----
4533
5973
6873

query I rowsort
SELECT ALL col0 * - + 69 FROM tab1
----
-3519
-5865
-6279

query I rowsort
SELECT + - 42 + col1 FROM tab0 AS cor0
----
-21
-41
39

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1457
SELECT ALL + + 29 + - - CAST( + col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
125
88
97

skipif mysql # not compatible
query I rowsort label-1457
SELECT ALL + + 29 + - - CAST ( + col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
125
88
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1458
SELECT SUM( DISTINCT - + 35 ) DIV - 44 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1458
SELECT SUM ( DISTINCT - + 35 ) / - 44 AS col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + col0 FROM tab1 AS cor0 WHERE NOT + 51 <= 1
----
51
85
91

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

query I rowsort
SELECT DISTINCT - 15 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-15

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

skipif mysql # not compatible
query I rowsort label-1462
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab2 WHERE NULL IS NULL
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1463
SELECT + col0 * - + 84 * + + CAST( + + col2 AS SIGNED ) FROM tab0 cor0
----
-59220
-73080
-806652

skipif mysql # not compatible
query I rowsort label-1463
SELECT + col0 * - + 84 * + + CAST ( + + col2 AS INTEGER ) FROM tab0 cor0
----
-59220
-73080
-806652

query I rowsort
SELECT ALL - - 70 AS col2 FROM tab1 cor0
----
70
70
70

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

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

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

query II rowsort
SELECT DISTINCT 63 * - col2 * - col0 AS col2, + 9 AS col1 FROM tab0
----
44415
9
54810
9
604989
9

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1469
SELECT - col2 DIV CAST( - + 77 AS SIGNED ) * + col0 FROM tab0
----
0
0
97

skipif mysql # not compatible
query I rowsort label-1469
SELECT - col2 / CAST ( - + 77 AS INTEGER ) * + col0 FROM tab0
----
0
0
97

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

skipif mysql # not compatible
query I rowsort label-1470
SELECT - MAX ( DISTINCT + col1 ) FROM tab0
----
-81

query I rowsort
SELECT ALL 49 + col2 FROM tab2
----
107
72
89

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1475
SELECT DISTINCT + - 55 DIV - COUNT( * ) FROM tab0 AS cor0 WHERE col1 <> col2
----
18

skipif mysql # not compatible
query I rowsort label-1475
SELECT DISTINCT + - 55 / - COUNT ( * ) FROM tab0 AS cor0 WHERE col1 <> col2
----
18

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1478
SELECT SUM( ALL + - 68 ) FROM tab2 WHERE CAST( NULL AS SIGNED ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1478
SELECT SUM ( ALL + - 68 ) FROM tab2 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1480
SELECT ALL + 30 + + 68 + - - ( 92 ) DIV + - col2 FROM tab2 AS cor0
----
94
96
97

skipif mysql # not compatible
query I rowsort label-1480
SELECT ALL + 30 + + 68 + - - ( 92 ) / + - col2 FROM tab2 AS cor0
----
94
96
97

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( NOT - col1 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1482
SELECT ALL + COUNT( * ) + + 4 FROM tab2 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-1482
SELECT ALL + COUNT ( * ) + + 4 FROM tab2 AS cor0
----
7

query I rowsort
SELECT ALL col2 + + col0 + + col2 FROM tab0 AS cor0
----
107
109
295

query III rowsort
SELECT ALL * FROM tab0 WHERE - + col0 + - + col1 < ( NULL )
----

query I rowsort
SELECT ( - 69 ) AS col0 FROM tab1 WHERE ( + 77 ) IS NOT NULL
----
-69
-69
-69

query I rowsort
SELECT DISTINCT - col1 - + col2 * - 0 FROM tab1
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-1487
SELECT + SUM( + + 71 ) AS col2 FROM tab2 WHERE - - 34 NOT BETWEEN ( - + col2 * - col1 * - col1 ) AND col2
----
71

skipif mysql # not compatible
query I rowsort label-1487
SELECT + SUM ( + + 71 ) AS col2 FROM tab2 WHERE - - 34 NOT BETWEEN ( - + col2 * - col1 * - col1 ) AND col2
----
71

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

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

query II rowsort
SELECT DISTINCT col2 AS col2, - 60 FROM tab2
----
23
-60
40
-60
58
-60

query I rowsort
SELECT - 66 * col2 FROM tab0 WHERE ( NULL ) IS NULL
----
-3102
-6534
-660

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

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

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

query I rowsort
SELECT col2 * + - col2 AS col1 FROM tab0 AS cor0
----
-100
-2209
-9801

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

skipif mysql # not compatible
query II rowsort label-1494
SELECT ALL + + CAST ( NULL AS INTEGER ), 68 AS col0 FROM tab0 AS cor0
----
NULL
68
NULL
68
NULL
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1495
SELECT 55 DIV COUNT( * ) * + ( + + ( - - 78 ) ) * - COUNT( + 62 ) FROM tab0 AS cor0
----
-4212

skipif mysql # not compatible
query I rowsort label-1495
SELECT 55 / COUNT ( * ) * + ( + + ( - - 78 ) ) * - COUNT ( + 62 ) FROM tab0 AS cor0
----
-4212

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col2 < col0
----
85
5
59
91
47
68

query I rowsort
SELECT - 5 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 74665fbb47d5b17da011bca567195b21

query I rowsort
SELECT DISTINCT ( - 39 ) AS col2 FROM tab1
----
-39

query I rowsort
SELECT DISTINCT + 22 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
22

query I rowsort
SELECT ALL ( - 84 ) FROM tab0
----
-84
-84
-84

onlyif mysql # aggregate syntax: 
query II rowsort label-1501
SELECT DISTINCT COUNT( * ) AS col1, 81 FROM tab2 AS cor0 WHERE col0 * col0 IS NULL
----
0
81

skipif mysql # not compatible
query II rowsort label-1501
SELECT DISTINCT COUNT ( * ) AS col1, 81 FROM tab2 AS cor0 WHERE col0 * col0 IS NULL
----
0
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1502
SELECT + COUNT( * ) * + - MAX( - + 7 ) * 49 AS col2 FROM tab1 AS cor0
----
1029

skipif mysql # not compatible
query I rowsort label-1502
SELECT + COUNT ( * ) * + - MAX ( - + 7 ) * 49 AS col2 FROM tab1 AS cor0
----
1029

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

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

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

query II rowsort
SELECT + col2 AS col0, col2 + + col0 FROM tab2 AS cor0
----
23
69
40
104
58
133

query I rowsort
SELECT - - col1 + - - 43 AS col1 FROM tab2 AS cor0
----
110
120
94

onlyif mysql # aggregate syntax: 
query I rowsort label-1507
SELECT - MAX( - - ( + col1 ) ) * + + MIN( ALL + col2 ) FROM tab1 AS cor0
----
-2773

skipif mysql # not compatible
query I rowsort label-1507
SELECT - MAX ( - - ( + col1 ) ) * + + MIN ( ALL + col2 ) FROM tab1 AS cor0
----
-2773

query I rowsort
SELECT - 94 FROM tab1 AS cor0 WHERE NOT NULL = + 85
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1511
SELECT ALL 45 * - COUNT( ALL - - 43 ) FROM tab1
----
-135

skipif mysql # not compatible
query I rowsort label-1511
SELECT ALL 45 * - COUNT ( ALL - - 43 ) FROM tab1
----
-135

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

skipif mysql # not compatible
query I rowsort label-1512
SELECT DISTINCT + COUNT ( * ) / + MIN ( - + col1 ) AS col1 FROM tab1
----
0

query I rowsort
SELECT DISTINCT - col1 * col0 AS col0 FROM tab0 WHERE NOT 16 IN ( + 64 - col2, - col1, - + 70, - col1 )
----
-1215
-1827
-97

query I rowsort
SELECT ALL + col0 * - col1 * - col0 * col0 AS col1 FROM tab1
----
1857114
3070625
35417837

query I rowsort
SELECT ALL - 34 AS col0 FROM tab2
----
-34
-34
-34

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1517
SELECT col0 DIV 53 FROM tab0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-1517
SELECT col0 / 53 FROM tab0
----
0
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1518
SELECT MIN( ALL + col1 ) AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-1518
SELECT MIN ( ALL + col1 ) AS col1 FROM tab0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1519
SELECT DISTINCT - ( - 3 ) + - - col2 + CAST( col1 AS SIGNED ) FROM tab0 AS cor0
----
103
131
34

skipif mysql # not compatible
query I rowsort label-1519
SELECT DISTINCT - ( - 3 ) + - - col2 + CAST ( col1 AS INTEGER ) FROM tab0 AS cor0
----
103
131
34

query I rowsort
SELECT DISTINCT + col2 + col0 + - ( 86 ) FROM tab2 AS cor0
----
-17
18
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + 76 col2 FROM tab1
----
29
62
71

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

query I rowsort
SELECT - 31 + - - col2 AS col0 FROM tab1
----
28
37
65

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

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

query I rowsort
SELECT 77 * - - col1 + + col0 * + - col0 * - + col2 FROM tab2
----
169769
331409
52595

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1528
SELECT DISTINCT 69 AS col1, - CAST( - MAX( DISTINCT - ( + col1 ) ) AS SIGNED ) * - 19 + - MIN( - col2 ) col2 FROM tab2 AS cor0
----
69
1027

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1528
SELECT DISTINCT 69 AS col1, - CAST ( - MAX ( DISTINCT - ( + col1 ) ) AS INTEGER ) * - 19 + - MIN ( - col2 ) col2 FROM tab2 AS cor0
----
69
1027

query I rowsort
SELECT - 25 AS col1 FROM tab1 AS cor0 WHERE NULL >= - col1 - col1 + - + 43
----

query I rowsort
SELECT ALL - - col2 + - - col2 AS col0 FROM tab2 cor0
----
116
46
80

onlyif mysql # DIV for integer division: 
query I rowsort label-1531
SELECT DISTINCT col1 + + + col1 DIV - - col2 AS col1 FROM tab0 cor0
----
1
23
82

skipif mysql # not compatible
query I rowsort label-1531
SELECT DISTINCT col1 + + + col1 / - - col2 AS col1 FROM tab0 cor0
----
1
23
82

query I rowsort
SELECT DISTINCT 20 - + col1 + - col2 FROM tab2 AS cor0
----
-105
-54
-97

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

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

query I rowsort
SELECT col1 - + 18 FROM tab2
----
33
49
59

query I rowsort
SELECT ALL col2 * + 62 - col2 AS col1 FROM tab0
----
2867
6039
610

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1536
SELECT col0 * + + CAST( - col0 AS SIGNED ) FROM tab1
----
-2601
-7225
-8281

skipif mysql # not compatible
query I rowsort label-1536
SELECT col0 * + + CAST ( - col0 AS INTEGER ) FROM tab1
----
-2601
-7225
-8281

onlyif mysql # aggregate syntax: 
query I rowsort label-1537
SELECT COUNT( * ) * - SUM( + 2 ) AS col1 FROM tab2
----
-18

skipif mysql # not compatible
query I rowsort label-1537
SELECT COUNT ( * ) * - SUM ( + 2 ) AS col1 FROM tab2
----
-18

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

query I rowsort
SELECT DISTINCT col2 * + + ( 44 ) FROM tab0
----
2068
4356
440

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

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1544
SELECT + col2 * - 82 + + CAST( col1 AS SIGNED ) AS col2, + col2 + col0 * - 27 * - - col1 - - 21 AS col0 FROM tab2 AS cor0 WHERE NOT + 0 * + col2 IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-1544
SELECT + col2 * - 82 + + CAST ( col1 AS INTEGER ) AS col2, + col2 + col0 * - 27 * - - col1 - - 21 AS col0 FROM tab2 AS cor0 WHERE NOT + 0 * + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1545
SELECT DISTINCT - 65 DIV - 76 + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-1545
SELECT DISTINCT - 65 / - 76 + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

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

query I rowsort
SELECT DISTINCT 71 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1548
SELECT * FROM tab2 cor0 WHERE NOT 32 > + ( - - 6 ) * CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1548
SELECT * FROM tab2 cor0 WHERE NOT 32 > + ( - - 6 ) * CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT 16 + - 74 AS col2 FROM tab2 AS cor0
----
-58

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 86 / + 59 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1552
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col1 / - - col2 * + - col2 * - ( + + 39 ), + CAST( - + col0 AS SIGNED ), CAST( + col1 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-1552
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col1 / - - col2 * + - col2 * - ( + + 39 ), + CAST ( - + col0 AS INTEGER ), CAST ( + col1 AS INTEGER ) )
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1554
SELECT DISTINCT + col0, - 52 - - CAST( NULL AS SIGNED ) + - 78 col1 FROM tab1
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1554
SELECT DISTINCT + col0, - 52 - - CAST ( NULL AS INTEGER ) + - 78 col1 FROM tab1
----
51
NULL
85
NULL
91
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1555
SELECT col2 * + + 30 + col1 + - + 23 DIV - col2 FROM tab2
----
1277
1807
742

skipif mysql # not compatible
query I rowsort label-1555
SELECT col2 * + + 30 + col1 + - + 23 / - col2 FROM tab2
----
1277
1807
742

query II rowsort
SELECT + ( - + 2 ) * col2 + - col0 + - 23 * ( + col2 ) AS col0, - col1 AS col2 FROM tab0
----
-1190
-81
-2572
-1
-337
-21

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

query I rowsort
SELECT DISTINCT + col0 + + col0 + col2 FROM tab0 AS cor0
----
184
293
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1559
SELECT + - COUNT( DISTINCT - - 73 ) AS col1 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1559
SELECT + - COUNT ( DISTINCT - - 73 ) AS col1 FROM tab2 AS cor0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1560
SELECT - CAST( + + CAST( + SUM( - + col1 ) AS SIGNED ) AS SIGNED ) AS col2 FROM tab0
----
103

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1561
SELECT DISTINCT COUNT( * ) + 30 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
39

skipif mysql # not compatible
query I rowsort label-1561
SELECT DISTINCT COUNT ( * ) + 30 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
39

query I rowsort
SELECT ALL + 43 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 199105619049271147956de52e7f5ed4

onlyif mysql # aggregate syntax: 
query I rowsort label-1563
SELECT ALL 27 + - 85 + + COUNT( * ) FROM tab2 AS cor0
----
-55

skipif mysql # not compatible
query I rowsort label-1563
SELECT ALL 27 + - 85 + + COUNT ( * ) FROM tab2 AS cor0
----
-55

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

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

query I rowsort
SELECT - col1 + + 17 AS col0 FROM tab0 AS cor0
----
-4
-64
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1566
SELECT DISTINCT - CAST( 10 AS SIGNED ) + + - col0 FROM tab0 AS cor0
----
-107
-25
-97

skipif mysql # not compatible
query I rowsort label-1566
SELECT DISTINCT - CAST ( 10 AS INTEGER ) + + - col0 FROM tab0 AS cor0
----
-107
-25
-97

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1568
SELECT - + MIN( DISTINCT + + col2 ) AS col2 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-1568
SELECT - + MIN ( DISTINCT + + col2 ) AS col2 FROM tab2 AS cor0
----
-23

query II rowsort
SELECT 61 * 12 AS col0, - col1 AS col0 FROM tab2 AS cor0
----
732
-51
732
-67
732
-77

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

skipif mysql # not compatible
query I rowsort label-1570
SELECT + - SUM ( - col0 ) FROM tab0 AS cor0
----
199

query II rowsort
SELECT ALL - 42 AS col0, col1 AS col0 FROM tab0
----
-42
1
-42
21
-42
81

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

query I rowsort
SELECT ALL + ( - + 40 ) * - col2 + + 46 FROM tab2 AS cor0
----
1646
2366
966

query II rowsort
SELECT DISTINCT - + col2, - ( - col0 ) * col0 AS col0 FROM tab0 AS cor0
----
-10
7569
-47
225
-99
9409

onlyif mysql # aggregate syntax: 
query I rowsort label-1575
SELECT COUNT( * ) FROM tab0 cor0 WHERE NOT ( NOT NULL NOT BETWEEN 34 AND + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-1575
SELECT COUNT ( * ) FROM tab0 cor0 WHERE NOT ( NOT NULL NOT BETWEEN 34 AND + col1 )
----
0

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1577
SELECT CAST( - + 96 AS SIGNED ) + - MAX( - - col0 ) col0 FROM tab0
----
-193

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1577
SELECT CAST ( - + 96 AS INTEGER ) + - MAX ( - - col0 ) col0 FROM tab0
----
-193

query I rowsort
SELECT ALL - col2 + + col0 + + col2 * 20 FROM tab1 AS cor0
----
1206
1383
1875

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

query I rowsort
SELECT + 11 + - ( col1 ) FROM tab1 cor0
----
-3
-36
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1581
SELECT ALL COUNT( * ) + + + 85 FROM tab0 cor0 WHERE NULL IS NULL
----
88

skipif mysql # not compatible
query I rowsort label-1581
SELECT ALL COUNT ( * ) + + + 85 FROM tab0 cor0 WHERE NULL IS NULL
----
88

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1583
SELECT ALL 25 + - + col1 + + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1583
SELECT ALL 25 + - + col1 + + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

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

skipif mysql # not compatible
query I rowsort label-1584
SELECT DISTINCT - 13 - + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-16

query I rowsort
SELECT + col0 + + 85 + 86 AS col2 FROM tab0 AS cor0
----
186
258
268

onlyif mysql # DIV for integer division: 
query I rowsort label-1586
SELECT ALL - - 85 DIV - + col1 - - col0 AS col2 FROM tab2 AS cor0
----
45
63
74

skipif mysql # not compatible
query I rowsort label-1586
SELECT ALL - - 85 / - + col1 - - col0 AS col2 FROM tab2 AS cor0
----
45
63
74

query II rowsort
SELECT DISTINCT - col1, col1 FROM tab1 WHERE col0 IS NOT NULL
----
-14
14
-47
47
-5
5

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1589
SELECT - - COUNT( * ) AS col0 FROM tab1 WHERE NULL BETWEEN NULL AND + 54
----
0

skipif mysql # not compatible
query I rowsort label-1589
SELECT - - COUNT ( * ) AS col0 FROM tab1 WHERE NULL BETWEEN NULL AND + 54
----
0

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1594
SELECT DISTINCT COUNT ( * ) * - - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1595
SELECT ALL + COUNT( * ) FROM tab1 AS cor0 WHERE ( 67 ) <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-1595
SELECT ALL + COUNT ( * ) FROM tab1 AS cor0 WHERE ( 67 ) <> NULL
----
0

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

skipif mysql # not compatible
query I rowsort label-1596
SELECT + 78 / + col1 FROM tab2 AS cor0
----
1
1
1

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

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

query II rowsort
SELECT ALL + col0 * + 80, + col1 + - ( col1 ) AS col2 FROM tab2
----
3680
0
5120
0
6000
0

query I rowsort
SELECT ALL - 52 * 44 FROM tab1
----
-2288
-2288
-2288

query I rowsort
SELECT - 71 * - col0 * col2 AS col0 FROM tab1
----
347616
356065
439348

onlyif mysql # DIV for integer division: 
query II rowsort label-1601
SELECT ALL col1 * - 93 * + - col0 AS col2, col0 DIV + col2 FROM tab0
----
112995
0
169911
8
9021
0

skipif mysql # not compatible
query II rowsort label-1601
SELECT ALL col1 * - 93 * + - col0 AS col2, col0 / + col2 FROM tab0
----
112995
0
169911
8
9021
0

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( + col1 / - col2, col0 * + 21 / - + col2 + col1 + col0 / - col1, + + ( - - col1 ) )
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - ( col2 ) AS col0, + col2 * - + col0 col1 FROM tab1 AS cor0
----
59
-5015
68
-6188
96
-4896

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1607
SELECT ALL + - MAX( DISTINCT - - 10 ) FROM tab1 AS cor0 WHERE NOT - col2 <> - - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1607
SELECT ALL + - MAX ( DISTINCT - - 10 ) FROM tab1 AS cor0 WHERE NOT - col2 <> - - col1
----
NULL

query I rowsort
SELECT ALL col0 * - + col0 AS col1 FROM tab2
----
-2116
-4096
-5625

query I rowsort
SELECT - 69 AS col0 FROM tab1 WHERE NOT ( NOT - ( + col1 ) IS NOT NULL )
----
-69
-69
-69

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1611
SELECT ALL - CAST( - col0 AS SIGNED ) + - col1 + - 85 DIV - 29 col0 FROM tab0 AS cor0
----
-64
68
98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1611
SELECT ALL - CAST ( - col0 AS INTEGER ) + - col1 + - 85 / - 29 col0 FROM tab0 AS cor0
----
-64
68
98

query I rowsort
SELECT DISTINCT - + col0 * - + col1 + - + 93 + + - col2 * - - ( 18 ) * col0 * - col2 + - 41 FROM tab2 cor0
----
1847994
440224
4546291

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

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

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

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

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

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

query I rowsort
SELECT + col2 + col1 * col0 + - col0 + + col2 FROM tab0 AS cor0
----
1294
1760
198

query I rowsort
SELECT col1 + col2 + - + 79 FROM tab2
----
-5
38
46

onlyif mysql # DIV for integer division: 
query I rowsort label-1619
SELECT DISTINCT - col0 DIV 19 * col0 * - 50 * + col1 AS col1 FROM tab2
----
234600
739200
753750

skipif mysql # not compatible
query I rowsort label-1619
SELECT DISTINCT - col0 / 19 * col0 * - 50 * + col1 AS col1 FROM tab2
----
234600
739200
753750

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1621
SELECT + CAST( + + AVG ( - + col1 ) AS SIGNED ) FROM tab2 AS cor0
----
-65

skipif mysql # not compatible
query I rowsort label-1621
SELECT + CAST ( + + AVG ( - + col1 ) AS INTEGER ) FROM tab2 AS cor0
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-1622
SELECT DISTINCT - - 96 * 93 + SUM( ALL + 58 ) FROM tab0 AS cor0
----
9102

skipif mysql # not compatible
query I rowsort label-1622
SELECT DISTINCT - - 96 * 93 + SUM ( ALL + 58 ) FROM tab0 AS cor0
----
9102

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

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

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

query I rowsort
SELECT DISTINCT - col2 + - + col1 + + 99 AS col1 FROM tab1 AS cor0
----
-11
-16
35

query I rowsort
SELECT col0 - 38 * - 64 + - + col0 AS col0 FROM tab0
----
2432
2432
2432

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT col1 > - + col0
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1632
SELECT - MIN( + col2 ) AS col1 FROM tab1 AS cor0 WHERE NOT + col2 BETWEEN NULL AND - 69 + col1
----
-59

skipif mysql # not compatible
query I rowsort label-1632
SELECT - MIN ( + col2 ) AS col1 FROM tab1 AS cor0 WHERE NOT + col2 BETWEEN NULL AND - 69 + col1
----
-59

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

query I rowsort
SELECT ALL - - col0 * ( 38 ) AS col2 FROM tab1 AS cor0
----
1938
3230
3458

query II rowsort
SELECT DISTINCT - 94 AS col2, + col1 AS col1 FROM tab1
----
-94
14
-94
47
-94
5

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL <> NULL )
----

query I rowsort
SELECT ALL 69 * - ( col2 ) FROM tab1
----
-4071
-4692
-6624

onlyif mysql # aggregate syntax: 
query I rowsort label-1638
SELECT COUNT( * ) * + 76 AS col1 FROM tab0, tab1 cor0
----
684

skipif mysql # not compatible
query I rowsort label-1638
SELECT COUNT ( * ) * + 76 AS col1 FROM tab0, tab1 cor0
----
684

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 91 * col0 col0 FROM tab0
----
1365
7917
8827

onlyif mysql # DIV for integer division: 
query II rowsort label-1640
SELECT + col2 DIV - col1 + + - col0 AS col0, 15 FROM tab0 WHERE NOT - col1 IS NULL
----
-15
15
-196
15
-87
15

skipif mysql # not compatible
query II rowsort label-1640
SELECT + col2 / - col1 + + - col0 AS col0, 15 FROM tab0 WHERE NOT - col1 IS NULL
----
-15
15
-196
15
-87
15

query I rowsort
SELECT ALL + col1 * + 73 AS col0 FROM tab2
----
3723
4891
5621

query I rowsort
SELECT DISTINCT 53 * - col0 FROM tab0
----
-4611
-5141
-795

query II rowsort
SELECT DISTINCT col2, col0 * - col0 FROM tab2
----
23
-2116
40
-4096
58
-5625

onlyif mysql # aggregate syntax: 
query I rowsort label-1644
SELECT DISTINCT COUNT( + + 94 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-1644
SELECT DISTINCT COUNT ( + + 94 ) AS col2 FROM tab1
----
3

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1648
SELECT ALL MAX( + col2 ) FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-1648
SELECT ALL MAX ( + col2 ) FROM tab0
----
99

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

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

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

query I rowsort
SELECT ALL col0 * + - ( col2 ) FROM tab2 AS cor0
----
-1058
-2560
-4350

query II rowsort
SELECT ALL col2, col1 * - + col2 + - col2 FROM tab0 cor0
----
10
-220
47
-3854
99
-198

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1656
SELECT ALL - ( 78 ) * - - MIN( ALL col0 ) + + MAX( + - ( col2 ) ) + 70 * - COUNT( * ) + + - 89 * 57 DIV 26 FROM tab2 AS cor0
----
-4016

skipif mysql # not compatible
query I rowsort label-1656
SELECT ALL - ( 78 ) * - - MIN ( ALL col0 ) + + MAX ( + - ( col2 ) ) + 70 * - COUNT ( * ) + + - 89 * 57 / 26 FROM tab2 AS cor0
----
-4016

onlyif mysql # aggregate syntax: 
query I rowsort label-1657
SELECT ALL - 99 * - + 41 * COUNT( - + col2 ) FROM tab1 AS cor0
----
12177

skipif mysql # not compatible
query I rowsort label-1657
SELECT ALL - 99 * - + 41 * COUNT ( - + col2 ) FROM tab1 AS cor0
----
12177

query I rowsort
SELECT DISTINCT + 49 + col0 AS col0 FROM tab1 AS cor0
----
100
134
140

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1659
SELECT DISTINCT - + CAST( - + col2 AS SIGNED ) DIV + col0 AS col0, - col1 AS col1 FROM tab0 cor0
----
0
-21
1
-1
3
-81

skipif mysql # not compatible
query II rowsort label-1659
SELECT DISTINCT - + CAST ( - + col2 AS INTEGER ) / + col0 AS col0, - col1 AS col1 FROM tab0 cor0
----
0
-21
1
-1
3
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-1660
SELECT ALL col2 DIV + + col1 + col2 FROM tab0 cor0
----
10
198
47

skipif mysql # not compatible
query I rowsort label-1660
SELECT ALL col2 / + + col1 + col2 FROM tab0 cor0
----
10
198
47

query III rowsort
SELECT * FROM tab1 WHERE - - col2 <> NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1663
SELECT ALL MAX( DISTINCT 4 ) * - 75 FROM tab1
----
-300

skipif mysql # not compatible
query I rowsort label-1663
SELECT ALL MAX ( DISTINCT 4 ) * - 75 FROM tab1
----
-300

query I rowsort
SELECT 74 - 99 AS col2 FROM tab1
----
-25
-25
-25

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1665
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col2, + 5 col0 FROM tab1
----
NULL
5

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1667
SELECT 60 * - 60 * + 37 * - - 35 + - COUNT( * ) * + + COUNT( * ) * 5 col2 FROM tab0 WHERE col0 IS NOT NULL
----
-4662045

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1667
SELECT 60 * - 60 * + 37 * - - 35 + - COUNT ( * ) * + + COUNT ( * ) * 5 col2 FROM tab0 WHERE col0 IS NOT NULL
----
-4662045

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

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

query I rowsort
SELECT ALL - col2 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) <= - col1
----

query I rowsort
SELECT + 81 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267

query I rowsort
SELECT - + 83 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d55748f39f403ec273099c0d87b0bfbb

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

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

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

skipif mysql # not compatible
query I rowsort label-1673
SELECT DISTINCT MAX ( 76 ) AS col2 FROM tab2 cor0
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1674
SELECT DISTINCT - + 12 AS col2 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN CAST( NULL AS SIGNED ) AND + - col0
----

skipif mysql # not compatible
query I rowsort label-1674
SELECT DISTINCT - + 12 AS col2 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN CAST ( NULL AS INTEGER ) AND + - col0
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1677
SELECT - - 90 DIV + + 56 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1677
SELECT - - 90 / + + 56 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1678
SELECT + ( + + col1 ) * - - CAST( - col1 AS SIGNED ) + 96 FROM tab1 AS cor0
----
-100
-2113
71

skipif mysql # not compatible
query I rowsort label-1678
SELECT + ( + + col1 ) * - - CAST ( - col1 AS INTEGER ) + 96 FROM tab1 AS cor0
----
-100
-2113
71

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

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

query II rowsort
SELECT + col1, + 98 - col2 FROM tab0
----
1
-1
21
88
81
51

query I rowsort
SELECT - ( - + 86 ) FROM tab0
----
86
86
86

query I rowsort
SELECT DISTINCT + col0 + + col1 - 21 FROM tab1 WHERE NULL IS NULL
----
117
44
69

query I rowsort
SELECT + col1 + - col2 AS col1 FROM tab1 AS cor0 WHERE NOT - 28 >= - - col1
----
-21
-54
-82

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1686
SELECT DISTINCT + col0 DIV - col1 + + + ( - 75 ) AS col2 FROM tab1 AS cor0
----
-76
-78
-92

skipif mysql # not compatible
query I rowsort label-1686
SELECT DISTINCT + col0 / - col1 + + + ( - 75 ) AS col2 FROM tab1 AS cor0
----
-76
-78
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-1687
SELECT ALL + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 87 BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-1687
SELECT ALL + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 87 BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT + 30 * - 20 AS col0 FROM tab0
----
-600
-600
-600

onlyif mysql # aggregate syntax: 
query I rowsort label-1689
SELECT ALL MIN( - col0 ) AS col1 FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-1689
SELECT ALL MIN ( - col0 ) AS col1 FROM tab0
----
-97

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

query II rowsort
SELECT DISTINCT - col1, 20 AS col1 FROM tab2 cor0
----
-51
20
-67
20
-77
20

onlyif mysql # DIV for integer division: 
query I rowsort label-1692
SELECT DISTINCT - - col2 + col2 + - + col1 DIV - ( + + col0 ) - + 14 + - col2 FROM tab1 AS cor0
----
45
54
82

skipif mysql # not compatible
query I rowsort label-1692
SELECT DISTINCT - - col2 + col2 + - + col1 / - ( + + col0 ) - + 14 + - col2 FROM tab1 AS cor0
----
45
54
82

query I rowsort
SELECT ALL 8 + - col0 * + + 76 FROM tab0 AS cor0
----
-1132
-6604
-7364

query I rowsort
SELECT - col2 + 45 FROM tab1 AS cor0
----
-14
-23
-51

query II rowsort
SELECT - - ( - 20 ) * 38 + + col0, - col0 AS col0 FROM tab2 AS cor0
----
-685
-75
-696
-64
-714
-46

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1698
SELECT - 56 * - + 81 + - 93 + + + 26 DIV + ( + + col0 ) AS col1 FROM tab2
----
4443
4443
4443

skipif mysql # not compatible
query I rowsort label-1698
SELECT - 56 * - + 81 + - 93 + + + 26 / + ( + + col0 ) AS col1 FROM tab2
----
4443
4443
4443

query I rowsort
SELECT - ( col1 ) * - col2 / ( - col2 ) + + col2 + 65 * - + col1 + - col2 * - - 33 FROM tab2 WHERE - - col0 - - col2 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1700
SELECT DISTINCT + COUNT( ALL + CAST( + + col2 AS SIGNED ) ) + + 52 AS col2 FROM tab2 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-1700
SELECT DISTINCT + COUNT ( ALL + CAST ( + + col2 AS INTEGER ) ) + + 52 AS col2 FROM tab2 AS cor0
----
55

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 79 <= - 73 + - col1 * + 63
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

query II rowsort
SELECT ALL col1 AS col2, + 50 AS col2 FROM tab2
----
51
50
67
50
77
50

query I rowsort
SELECT + ( + 79 ) FROM tab0
----
79
79
79

query I rowsort
SELECT DISTINCT - - 35 * + + col0 FROM tab2 AS cor0
----
1610
2240
2625

query I rowsort
SELECT - col1 * col0 * col0 * - 78 + + 27 FROM tab0 AS cor0
----
12398049
1421577
733929

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1708
SELECT + CAST( - 50 AS SIGNED ) FROM tab1 AS cor0
----
-50
-50
-50

skipif mysql # not compatible
query I rowsort label-1708
SELECT + CAST ( - 50 AS INTEGER ) FROM tab1 AS cor0
----
-50
-50
-50

query I rowsort
SELECT 13 * col1 AS col1 FROM tab1 AS cor0
----
182
611
65

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1711
SELECT ( + 41 ) * + + COUNT( * ) AS col0 FROM tab0
----
123

skipif mysql # not compatible
query I rowsort label-1711
SELECT ( + 41 ) * + + COUNT ( * ) AS col0 FROM tab0
----
123

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 31 col2 FROM tab1
----
31
31
31

query I rowsort
SELECT DISTINCT col1 + - 60 FROM tab2
----
-9
17
7

query I rowsort
SELECT ALL - ( + - col2 ) FROM tab0 AS cor0
----
10
47
99

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1716
SELECT + SUM ( - 81 ) col0 FROM tab1 AS cor0
----
-243

query I rowsort
SELECT DISTINCT 39 + + col0 AS col2 FROM tab0 AS cor0
----
126
136
54

onlyif mysql # DIV for integer division: 
query I rowsort label-1718
SELECT DISTINCT 54 DIV 62 + col1 + - ( - + ( - 68 ) ) - - + col2 * + + col1 FROM tab1
----
1290
232
3175

skipif mysql # not compatible
query I rowsort label-1718
SELECT DISTINCT 54 / 62 + col1 + - ( - + ( - 68 ) ) - - + col2 * + + col1 FROM tab1
----
1290
232
3175

onlyif mysql # aggregate syntax: 
query I rowsort label-1719
SELECT MIN( - 71 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-71

skipif mysql # not compatible
query I rowsort label-1719
SELECT MIN ( - 71 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-71

query I rowsort
SELECT ALL col0 * + + col2 FROM tab1 WHERE NOT ( NOT col2 >= NULL )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1722
SELECT - 95 + + MAX( - - 37 ) FROM tab1 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-1722
SELECT - 95 + + MAX ( - - 37 ) FROM tab1 AS cor0
----
-58

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1725
SELECT DISTINCT col0 DIV - 89 + 37 FROM tab1 AS cor0
----
36
37

skipif mysql # not compatible
query I rowsort label-1725
SELECT DISTINCT col0 / - 89 + 37 FROM tab1 AS cor0
----
36
37

query I rowsort
SELECT DISTINCT + - col0 + - 37 FROM tab2 AS cor0
----
-101
-112
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-1727
SELECT ALL COUNT( + col0 ) - - + 99 col2 FROM tab1 cor0
----
102

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1727
SELECT ALL COUNT ( + col0 ) - - + 99 col2 FROM tab1 cor0
----
102

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

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

query II rowsort
SELECT ALL col1 + - 42 + + + col2 + 65 AS col1, 63 * - col0 FROM tab0
----
123
-6111
151
-945
54
-5481

query I rowsort
SELECT DISTINCT col0 * + col2 * + 45 - + + 65 AS col1 FROM tab2
----
115135
195685
47545

onlyif mysql # DIV for integer division: 
query I rowsort label-1732
SELECT + col1 DIV + + 56 * + + col1 - + ( + col0 ) AS col2 FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-1732
SELECT + col1 / + + 56 * + + col1 - + ( + col0 ) AS col2 FROM tab1
----
-51
-85
-91

query I rowsort
SELECT col0 - + 11 FROM tab2
----
35
53
64

query I rowsort
SELECT ALL - 13 * - + col0 * + + col1 FROM tab0
----
1261
15795
23751

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

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

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

query I rowsort
SELECT DISTINCT ( - col1 ) * - 71 AS col0 FROM tab2
----
3621
4757
5467

query I rowsort
SELECT ALL + col2 * - - 93 FROM tab2
----
2139
3720
5394

query I rowsort
SELECT col2 * 9 * + col0 * col1 * - - ( + col1 ) FROM tab1 AS cor0
----
1128375
123023628
8636544

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 col2, 12 + ( col0 ) FROM tab0 AS cor0
----
-10
99
-47
27
-99
109

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 24 + + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1744
SELECT SUM( - + 13 ) FROM tab0 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-1744
SELECT SUM ( - + 13 ) FROM tab0 AS cor0
----
-39

query I rowsort
SELECT ALL + 59 * + 16 AS col0 FROM tab0 AS cor0
----
944
944
944

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 <= + - 68
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 + + 7 AS col1 FROM tab2 cor0 WHERE NOT col0 IS NULL
----
53
71
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1748
SELECT ALL CAST( col2 AS SIGNED ) / + CAST( col0 AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE NOT 31 / - ( col0 ) + - 52 * - 11 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-1748
SELECT ALL CAST ( col2 AS INTEGER ) / + CAST ( col0 AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE NOT 31 / - ( col0 ) + - 52 * - 11 IS NOT NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1751
SELECT DISTINCT MIN( - 32 ) FROM tab1
----
-32

skipif mysql # not compatible
query I rowsort label-1751
SELECT DISTINCT MIN ( - 32 ) FROM tab1
----
-32

query I rowsort
SELECT ALL + col2 FROM tab1 WHERE NOT + 56 IS NULL
----
59
68
96

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

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

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

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

query I rowsort
SELECT 52 + col0 * + 80 AS col0 FROM tab1
----
4132
6852
7332

query I rowsort
SELECT ALL - 26 + + - 3 + col0 FROM tab2 AS cor0
----
17
35
46

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1758
SELECT ALL - AVG ( + + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0 WHERE NULL = - 8
----
NULL

skipif mysql # not compatible
query I rowsort label-1758
SELECT ALL - AVG ( + + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0 WHERE NULL = - 8
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1759
SELECT - - COUNT( ALL 77 ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-1759
SELECT - - COUNT ( ALL 77 ) FROM tab1 cor0
----
3

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - col1 * 73 ) IS NOT NULL
----

query I rowsort
SELECT 28 + col2 FROM tab0 WHERE NULL IS NULL
----
127
38
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1762
SELECT + 97 DIV CAST( COUNT( * ) AS SIGNED ) + + 71 DIV COUNT( col1 * ( + col0 ) ) FROM tab1
----
55

skipif mysql # not compatible
query I rowsort label-1762
SELECT + 97 / CAST ( COUNT ( * ) AS INTEGER ) + + 71 / COUNT ( col1 * ( + col0 ) ) FROM tab1
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-1763
SELECT 59 DIV 86 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1763
SELECT 59 / 86 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1764
SELECT ALL col1 + + ( CAST( col1 AS SIGNED ) ) FROM tab2
----
102
134
154

skipif mysql # not compatible
query I rowsort label-1764
SELECT ALL col1 + + ( CAST ( col1 AS INTEGER ) ) FROM tab2
----
102
134
154

query I rowsort
SELECT 2 * + 51 AS col0 FROM tab1
----
102
102
102

query I rowsort
SELECT ALL + 72 * - col0 FROM tab0
----
-1080
-6264
-6984

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - 81 ) = ( NULL )
----

query I rowsort
SELECT DISTINCT - 90 + + col2 * 27 AS col1 FROM tab0
----
1179
180
2583

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1770
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab0 WHERE ( ( col1 ) ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1770
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab0 WHERE ( ( col1 ) ) IS NULL
----
0

query I rowsort
SELECT - col0 * - 90 AS col2 FROM tab0
----
1350
7830
8730

onlyif mysql # aggregate syntax: 
query I rowsort label-1772
SELECT - 31 + - COUNT( * ) FROM tab1
----
-34

skipif mysql # not compatible
query I rowsort label-1772
SELECT - 31 + - COUNT ( * ) FROM tab1
----
-34

query I rowsort
SELECT + col0 * ( col1 * col2 ) AS col0 FROM tab0
----
18270
57105
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-1774
SELECT + SUM( ALL 65 ) + - COUNT( * ) FROM tab1
----
192

skipif mysql # not compatible
query I rowsort label-1774
SELECT + SUM ( ALL 65 ) + - COUNT ( * ) FROM tab1
----
192

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1775
SELECT * FROM tab2 WHERE ( NULL ) BETWEEN CAST( NULL AS SIGNED ) AND col0
----

skipif mysql # not compatible
query III rowsort label-1775
SELECT * FROM tab2 WHERE ( NULL ) BETWEEN CAST ( NULL AS INTEGER ) AND col0
----

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1778
SELECT CAST( + col1 AS SIGNED ) - + 72 FROM tab0
----
-51
-71
9

skipif mysql # not compatible
query I rowsort label-1778
SELECT CAST ( + col1 AS INTEGER ) - + 72 FROM tab0
----
-51
-71
9

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1781
SELECT - col1 - 50 DIV - col1 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-1781
SELECT - col1 - 50 / - col1 FROM tab2
----
-51
-67
-77

query I rowsort
SELECT ALL - col0 FROM tab1 WHERE NOT ( - col1 ) = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1783
SELECT + COUNT( * ) FROM tab2 WHERE - col0 + + 27 / + 41 NOT IN ( + CAST( 25 AS SIGNED ) )
----
3

skipif mysql # not compatible
query I rowsort label-1783
SELECT + COUNT ( * ) FROM tab2 WHERE - col0 + + 27 / + 41 NOT IN ( + CAST ( 25 AS INTEGER ) )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1784
SELECT ALL COUNT( * ) AS col1 FROM tab1 WHERE NOT + col2 NOT BETWEEN ( NULL ) AND 76
----
0

skipif mysql # not compatible
query I rowsort label-1784
SELECT ALL COUNT ( * ) AS col1 FROM tab1 WHERE NOT + col2 NOT BETWEEN ( NULL ) AND 76
----
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1786
SELECT + 97 DIV col1 FROM tab1 AS cor0
----
19
2
6

skipif mysql # not compatible
query I rowsort label-1786
SELECT + 97 / col1 FROM tab1 AS cor0
----
19
2
6

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

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

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

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

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

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

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

query I rowsort
SELECT 69 FROM tab1 AS cor0 CROSS JOIN tab1
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

onlyif mysql # aggregate syntax: 
query I rowsort label-1792
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab1 WHERE col0 < ( + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-1792
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab1 WHERE col0 < ( + col1 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1793
SELECT MAX( DISTINCT + 90 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1
----
90

skipif mysql # not compatible
query I rowsort label-1793
SELECT MAX ( DISTINCT + 90 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1
----
90

query I rowsort
SELECT - col0 FROM tab0 WHERE NOT col0 = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1795
SELECT - COUNT( * ) * + 30 + + 23 AS col0 FROM tab1 AS cor0
----
-67

skipif mysql # not compatible
query I rowsort label-1795
SELECT - COUNT ( * ) * + 30 + + 23 AS col0 FROM tab1 AS cor0
----
-67

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

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

query I rowsort
SELECT - 72 + + col2 * + col0 FROM tab0 AS cor0
----
633
798
9531

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - col2 ) <= ( 27 * 57 )
----

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

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

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

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

query I rowsort
SELECT DISTINCT + col0 * + 77 AS col0 FROM tab2
----
3542
4928
5775

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

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

query I rowsort
SELECT + col0 * - ( col1 ) AS col0 FROM tab0
----
-1215
-1827
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-1805
SELECT DISTINCT SUM( ALL + - ( 11 ) ) AS col0 FROM tab1
----
-33

skipif mysql # not compatible
query I rowsort label-1805
SELECT DISTINCT SUM ( ALL + - ( 11 ) ) AS col0 FROM tab1
----
-33

query I rowsort
SELECT ALL - col1 * - - 4 AS col1 FROM tab0
----
-324
-4
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1807
SELECT DISTINCT 69 + - + CAST( col0 AS SIGNED ) AS col1 FROM tab2
----
-6
23
5

skipif mysql # not compatible
query I rowsort label-1807
SELECT DISTINCT 69 + - + CAST ( col0 AS INTEGER ) AS col1 FROM tab2
----
-6
23
5

query III rowsort
SELECT * FROM tab2 WHERE - col0 BETWEEN + col2 AND + col1 * 10 + ( 95 - + col1 * + col1 )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1810
SELECT + ( + 45 ) + SUM( DISTINCT col2 ) AS col2 FROM tab2 WHERE - 48 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1810
SELECT + ( + 45 ) + SUM ( DISTINCT col2 ) AS col2 FROM tab2 WHERE - 48 IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 42 col2 FROM tab0
----
42
42
42

onlyif mysql # aggregate syntax: 
query I rowsort label-1812
SELECT ALL MIN( DISTINCT - col0 ) * 56 + + 32 FROM tab2
----
-4168

skipif mysql # not compatible
query I rowsort label-1812
SELECT ALL MIN ( DISTINCT - col0 ) * 56 + + 32 FROM tab2
----
-4168

query I rowsort
SELECT + col0 * col0 * - col1 FROM tab1
----
-36125
-36414
-389207

onlyif mysql # aggregate syntax: 
query I rowsort label-1814
SELECT - + COUNT( * ) - + + 16 + + 30 FROM tab2 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-1814
SELECT - + COUNT ( * ) - + + 16 + + 30 FROM tab2 AS cor0
----
11

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1815
SELECT DISTINCT - col1 + + + CAST ( NULL AS INTEGER ) + + 50 col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1816
SELECT - + col0 DIV - col2 + - col2 * - 32 AS col2 FROM tab1 AS cor0
----
1889
2177
3072

skipif mysql # not compatible
query I rowsort label-1816
SELECT - + col0 / - col2 + - col2 * - 32 AS col2 FROM tab1 AS cor0
----
1889
2177
3072

query I rowsort
SELECT col2 AS col2 FROM tab0 WHERE - - col0 + + col1 = NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1818
SELECT - 44 DIV COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-4

skipif mysql # not compatible
query I rowsort label-1818
SELECT - 44 / COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-4

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

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

skipif mysql # not compatible
query I rowsort label-1820
SELECT - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT + col0 * + col2 + 90 FROM tab2 AS cor0 WHERE NOT + 77 * - col0 NOT IN ( 93 )
----

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL < col2
----

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

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

query I rowsort
SELECT ALL 59 * - col1 FROM tab1
----
-2773
-295
-826

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + ( + col0 ) col2, - col1 FROM tab0
----
15
-81
87
-21
97
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - 86 * - col2 col0 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + col0 * - 64 AS col1 FROM tab1 WHERE NOT NULL NOT IN ( + 63 )
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1830
SELECT * FROM tab0 WHERE NOT - CAST( NULL AS SIGNED ) / - + 44 IS NULL
----

skipif mysql # not compatible
query III rowsort label-1830
SELECT * FROM tab0 WHERE NOT - CAST ( NULL AS INTEGER ) / - + 44 IS NULL
----

query I rowsort
SELECT 86 * + - col1 FROM tab1 AS cor0
----
-1204
-4042
-430

onlyif mysql # aggregate syntax: 
query I rowsort label-1832
SELECT ALL MAX( 36 ) FROM tab0 AS cor0 WHERE NOT col2 >= - - col2 / + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1832
SELECT ALL MAX ( 36 ) FROM tab0 AS cor0 WHERE NOT col2 >= - - col2 / + col0
----
NULL

query I rowsort
SELECT 94 * - + 70 FROM tab2
----
-6580
-6580
-6580

onlyif mysql # aggregate syntax: 
query I rowsort label-1834
SELECT SUM( DISTINCT + 19 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
19

skipif mysql # not compatible
query I rowsort label-1834
SELECT SUM ( DISTINCT + 19 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
19

query I rowsort
SELECT DISTINCT - col2 * + 57 + + 70 AS col0 FROM tab0 AS cor0
----
-2609
-500
-5573

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1837
SELECT - ( COUNT( * ) ) * 93 AS col0, - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-279
-3

skipif mysql # not compatible
query II rowsort label-1837
SELECT - ( COUNT ( * ) ) * 93 AS col0, - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-279
-3

query I rowsort
SELECT ALL 27 * col1 - - - 99 * - + 65 FROM tab1 AS cor0
----
6570
6813
7704

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 48 <= ( - - 89 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + + 63 + + col2 AS col2 FROM tab2 AS cor0
----
103
121
86

query I rowsort
SELECT DISTINCT ( - col2 ) * col2 + - 39 * - 61 FROM tab2 AS cor0
----
-985
1850
779

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1844
SELECT DISTINCT 32 DIV 22 * - ( - - ( - col0 ) ) FROM tab0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-1844
SELECT DISTINCT 32 / 22 * - ( - - ( - col0 ) ) FROM tab0
----
15
87
97

query I rowsort
SELECT 88 + - - 40 FROM tab1
----
128
128
128

query I rowsort
SELECT - col2 + - - col2 AS col2 FROM tab2
----
0
0
0

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

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

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

query III rowsort
SELECT * FROM tab0 WHERE - col0 * col2 + + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1850
SELECT DISTINCT * FROM tab0 WHERE NULL BETWEEN + ( CAST( NULL AS SIGNED ) ) AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-1850
SELECT DISTINCT * FROM tab0 WHERE NULL BETWEEN + ( CAST ( NULL AS INTEGER ) ) AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1851
SELECT ALL * FROM tab0 WHERE NOT - CAST( - - col0 AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1851
SELECT ALL * FROM tab0 WHERE NOT - CAST ( - - col0 AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - + col1 - 27 FROM tab2 AS cor0
----
-104
-78
-94

query I rowsort
SELECT - ( - - col1 ) AS col2 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-1854
SELECT DISTINCT + + COUNT( * ) + + - COUNT( * ) + - 68 AS col2 FROM tab0 AS cor0
----
-68

skipif mysql # not compatible
query I rowsort label-1854
SELECT DISTINCT + + COUNT ( * ) + + - COUNT ( * ) + - 68 AS col2 FROM tab0 AS cor0
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-1855
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE - col0 + + col2 * + col0 + + 73 NOT BETWEEN col2 AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-1855
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE - col0 + + col2 * + col0 + + 73 NOT BETWEEN col2 AND ( NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1856
SELECT DISTINCT - MIN( + - col0 ) * - COUNT( * ) - + 74 AS col1 FROM tab0
----
-365

skipif mysql # not compatible
query I rowsort label-1856
SELECT DISTINCT - MIN ( + - col0 ) * - COUNT ( * ) - + 74 AS col1 FROM tab0
----
-365

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 12 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - + 53 AS col2 FROM tab0 AS cor0
----
-53
-53
-53

query I rowsort
SELECT ALL col2 * - - col2 * + col0 * 34 FROM tab0 AS cor0
----
1126590
295800
32323698

onlyif mysql # aggregate syntax: 
query I rowsort label-1860
SELECT + SUM( DISTINCT col2 ) FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-1860
SELECT + SUM ( DISTINCT col2 ) FROM tab2 AS cor0
----
121

query I rowsort
SELECT - col1 * + - col2 * + col2 FROM tab0 AS cor0
----
178929
2100
9801

onlyif mysql # aggregate syntax: 
query I rowsort label-1862
SELECT DISTINCT + MAX( ALL 61 ) FROM tab1 AS cor0
----
61

skipif mysql # not compatible
query I rowsort label-1862
SELECT DISTINCT + MAX ( ALL 61 ) FROM tab1 AS cor0
----
61

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1864
SELECT DISTINCT + - COUNT( 74 ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1864
SELECT DISTINCT + - COUNT ( 74 ) AS col1 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT ALL - + 28 FROM tab1 AS cor0
----
-28
-28
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-1866
SELECT + SUM( DISTINCT + ( col1 ) ) AS col0 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-1866
SELECT + SUM ( DISTINCT + ( col1 ) ) AS col0 FROM tab2 AS cor0
----
195

query I rowsort
SELECT - 10 FROM tab0 WHERE NOT - 21 + + + col0 IS NULL
----
-10
-10
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-1868
SELECT - 97 DIV col1 AS col1 FROM tab0
----
-1
-4
-97

skipif mysql # not compatible
query I rowsort label-1868
SELECT - 97 / col1 AS col1 FROM tab0
----
-1
-4
-97

query I rowsort
SELECT - ( + + 3 ) FROM tab1 WHERE NOT - col1 IS NOT NULL
----

query II rowsort
SELECT + col2, 65 AS col1 FROM tab0
----
10
65
47
65
99
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1871
SELECT ALL CAST( - - COUNT( * ) AS SIGNED ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-1871
SELECT ALL CAST ( - - COUNT ( * ) AS INTEGER ) AS col1 FROM tab0
----
3

query II rowsort
SELECT DISTINCT col2 AS col2, - col2 AS col1 FROM tab2
----
23
-23
40
-40
58
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-1873
SELECT DISTINCT - MIN( ALL col1 ) AS col2 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-1873
SELECT DISTINCT - MIN ( ALL col1 ) AS col2 FROM tab2 AS cor0
----
-51

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 NOT BETWEEN NULL AND + col2
----

query II rowsort
SELECT - - 91, + col1 FROM tab2 AS cor0
----
91
51
91
67
91
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1876
SELECT + CAST( - + col0 AS SIGNED ) * - 76 * col1 + + col0 + + - col1 FROM tab0 AS cor0
----
138918
7468
92274

skipif mysql # not compatible
query I rowsort label-1876
SELECT + CAST ( - + col0 AS INTEGER ) * - 76 * col1 + + col0 + + - col1 FROM tab0 AS cor0
----
138918
7468
92274

query I rowsort
SELECT ALL - + 68 AS col2 FROM tab2 AS cor0
----
-68
-68
-68

query I rowsort
SELECT ( - ( - + col2 ) ) FROM tab1 AS cor0
----
59
68
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1879
SELECT + 55 * - SUM( + CAST( col2 AS SIGNED ) ) AS col2 FROM tab0 AS cor0 WHERE NOT - col1 * + col0 * - - col2 * + col2 IN ( col2 + + col2 )
----
-8580

skipif mysql # not compatible
query I rowsort label-1879
SELECT + 55 * - SUM ( + CAST ( col2 AS INTEGER ) ) AS col2 FROM tab0 AS cor0 WHERE NOT - col1 * + col0 * - - col2 * + col2 IN ( col2 + + col2 )
----
-8580

onlyif mysql # aggregate syntax: 
query I rowsort label-1880
SELECT 42 * - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-126

skipif mysql # not compatible
query I rowsort label-1880
SELECT 42 * - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-126

query I rowsort
SELECT - 70 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 35707a5d99c98b2657c084a50ff1b073

query I rowsort
SELECT DISTINCT - 66 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-66

query I rowsort
SELECT - ( - + 88 ) + - + col2 + col0 * 18 + + + col1 * 59 * - - col2 FROM tab1 AS cor0
----
18964
190222
80206

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NULL > 31 * col0 * 80
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1885
SELECT ALL - + col2 + - col0 + - CAST( NULL AS SIGNED ) - - + col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1885
SELECT ALL - + col2 + - col0 + - CAST ( NULL AS INTEGER ) - - + col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 - - - col1 AS col2 FROM tab1 AS cor0 WHERE col1 IS NULL
----

query II rowsort
SELECT - + col1 + col0 AS col0, - col2 FROM tab1 AS cor0
----
37
-96
44
-68
80
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + AVG ( DISTINCT - - 3 ) col0 FROM tab2 AS cor0 WHERE col0 + 25 <= NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1889
SELECT ALL - CAST( NULL AS SIGNED ) / - col0 + + 41 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1889
SELECT ALL - CAST ( NULL AS INTEGER ) / - col0 + + 41 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + col2 ) + col1 col2 FROM tab1 cor0
----
110
115
64

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 * col0 * - col2 * col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1892
SELECT 39 * - COUNT( * ) FROM tab0
----
-117

skipif mysql # not compatible
query I rowsort label-1892
SELECT 39 * - COUNT ( * ) FROM tab0
----
-117

query I rowsort
SELECT DISTINCT 10 + col2 AS col1 FROM tab0 WHERE NOT NULL = ( + 51 + - - 27 + + 30 - + col0 + - col0 * - + col1 * + 96 + col0 * - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 3 col1, + col0 + 58 FROM tab1
----
-3
109
-3
143
-3
149

onlyif mysql # aggregate syntax: 
query I rowsort label-1895
SELECT DISTINCT - MAX( + + ( 14 ) ) col1 FROM tab2
----
-14

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1895
SELECT DISTINCT - MAX ( + + ( 14 ) ) col1 FROM tab2
----
-14

query I rowsort
SELECT ALL col1 * 32 * 91 FROM tab2
----
148512
195104
224224

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1897
SELECT DISTINCT MIN( + - CAST( NULL AS DECIMAL ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1897
SELECT DISTINCT MIN ( + - CAST ( NULL AS REAL ) ) FROM tab2
----
NULL

query I rowsort
SELECT + 54 - + + 86 FROM tab1
----
-32
-32
-32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1899
SELECT + 50 + + COUNT( DISTINCT - col1 ) DIV - 3 AS col0 FROM tab0 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-1899
SELECT + 50 + + COUNT ( DISTINCT - col1 ) / - 3 AS col0 FROM tab0 AS cor0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-1900
SELECT COUNT( * ) + - - COUNT( * ) AS col0 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-1900
SELECT COUNT ( * ) + - - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1901
SELECT DISTINCT 68 + COUNT( * ) AS col1 FROM tab2 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-1901
SELECT DISTINCT 68 + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
71

query I rowsort
SELECT - col2 FROM tab1 WHERE + 54 - + - 83 IS NOT NULL
----
-59
-68
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-1903
SELECT ALL col0 - + col0 DIV - col0 FROM tab1
----
52
86
92

skipif mysql # not compatible
query I rowsort label-1903
SELECT ALL col0 - + col0 / - col0 FROM tab1
----
52
86
92

query I rowsort
SELECT DISTINCT 56 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
56

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL > NULL
----

query I rowsort
SELECT + col2 * 59 FROM tab1 AS cor0
----
3481
4012
5664

query I rowsort
SELECT ALL 0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1908
SELECT DISTINCT MIN( + - col2 ) AS col1 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-1908
SELECT DISTINCT MIN ( + - col2 ) AS col1 FROM tab0 AS cor0
----
-99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 45 * + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1910
SELECT DISTINCT 1 DIV - COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1910
SELECT DISTINCT 1 / - COUNT ( * ) FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 9 col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1912
SELECT + COUNT( col0 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-1912
SELECT + COUNT ( col0 ) FROM tab0
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1913
SELECT col0 / + + CAST( NULL AS DECIMAL ) * - col1 * 56 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1913
SELECT col0 / + + CAST ( NULL AS REAL ) * - col1 * 56 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 48 * col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1915
SELECT + MAX( 72 ) AS col2 FROM tab2
----
72

skipif mysql # not compatible
query I rowsort label-1915
SELECT + MAX ( 72 ) AS col2 FROM tab2
----
72

query I rowsort
SELECT ALL + col2 / + col0 * - - 16 FROM tab1 WHERE - col2 IS NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( NULL ) <= + col2 + + + col1 * + col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 78 IS NOT NULL
----

query I rowsort
SELECT ALL col1 + + + 55 FROM tab0 AS cor0
----
136
56
76

onlyif mysql # aggregate syntax: 
query I rowsort label-1920
SELECT DISTINCT - SUM( ALL 43 ) + + - 55 + SUM( DISTINCT + + 66 ) FROM tab2 AS cor0
----
-118

skipif mysql # not compatible
query I rowsort label-1920
SELECT DISTINCT - SUM ( ALL 43 ) + + - 55 + SUM ( DISTINCT + + 66 ) FROM tab2 AS cor0
----
-118

onlyif mysql # aggregate syntax: 
query I rowsort label-1921
SELECT DISTINCT COUNT( * ) FROM tab1 AS cor0 WHERE - 14 * - col2 NOT IN ( - col0 )
----
3

skipif mysql # not compatible
query I rowsort label-1921
SELECT DISTINCT COUNT ( * ) FROM tab1 AS cor0 WHERE - 14 * - col2 NOT IN ( - col0 )
----
3

query I rowsort
SELECT ALL - - col1 * - 97 - col0 + - 19 FROM tab1 cor0
----
-1428
-4669
-589

query I rowsort
SELECT col0 + - - 43 FROM tab1 cor0
----
128
134
94

onlyif mysql # DIV for integer division: 
query II rowsort label-1924
SELECT + + col2 + col2 DIV + col1 AS col2, + col2 * - 14 AS col0 FROM tab2 AS cor0
----
23
-322
40
-560
58
-812

skipif mysql # not compatible
query II rowsort label-1924
SELECT + + col2 + col2 / + col1 AS col2, + col2 * - 14 AS col0 FROM tab2 AS cor0
----
23
-322
40
-560
58
-812

query I rowsort
SELECT DISTINCT ( - ( + - 65 ) ) FROM tab1
----
65

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 * + - col0 + - + 26 * + 96 BETWEEN + 94 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 + - 38 FROM tab2
----
13
29
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1928
SELECT ALL + CAST( NULL AS SIGNED ) * ( + MAX( DISTINCT - 73 ) ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1928
SELECT ALL + CAST ( NULL AS INTEGER ) * ( + MAX ( DISTINCT - 73 ) ) AS col0 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE - col0 + col1 = - ( + - col1 )
----

query II rowsort
SELECT ALL col0 + - col2 AS col2, 83 FROM tab2
----
17
83
23
83
24
83

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + ( - + col2 ) ) < ( NULL )
----

query I rowsort
SELECT DISTINCT - 32 + - + col2 * + ( + - col0 ) FROM tab0 AS cor0
----
673
838
9571

onlyif mysql # DIV for integer division: 
query II rowsort label-1933
SELECT DISTINCT - col2 - 92 * col2 DIV 77 AS col1, + 58 FROM tab2 AS cor0
----
-127
58
-50
58
-87
58

skipif mysql # not compatible
query II rowsort label-1933
SELECT DISTINCT - col2 - 92 * col2 / 77 AS col1, + 58 FROM tab2 AS cor0
----
-127
58
-50
58
-87
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 76 col2 FROM tab1 AS cor0
----
-76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 61 col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 07149905a72bd87553381f34d19ed290

query I rowsort
SELECT 64 * + 78 FROM tab2
----
4992
4992
4992

query I rowsort
SELECT - col0 FROM tab1 AS cor0 WHERE NOT 70 <> ( NULL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 + col0 NOT BETWEEN NULL AND + 49
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1939
SELECT + CAST( NULL AS SIGNED ) * - COUNT( * ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1939
SELECT + CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1940
SELECT ALL CAST( NULL AS DECIMAL ) / - col2 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1940
SELECT ALL CAST ( NULL AS REAL ) / - col2 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

query II rowsort
SELECT + col1 AS col2, - 48 FROM tab2 AS cor0
----
51
-48
67
-48
77
-48

query I rowsort
SELECT + - col2 * - 29 + - col1 - 17 FROM tab2 cor0
----
1066
1598
599

query I rowsort
SELECT col1 * - + col2 FROM tab0 cor0
----
-210
-3807
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1944
SELECT + + CAST( NULL AS SIGNED ) * 7 + - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1944
SELECT + + CAST ( NULL AS INTEGER ) * 7 + - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 60 * 69 * - col0 FROM tab2 cor0
----
-190440
-264960
-310500

query I rowsort
SELECT ALL 57 FROM tab2 AS cor0 WHERE NOT - 32 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1947
SELECT ALL MIN( - ( - - col2 ) ) FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-1947
SELECT ALL MIN ( - ( - - col2 ) ) FROM tab0
----
-99

query I rowsort
SELECT DISTINCT - - col2 FROM tab1 WHERE NULL = - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1949
SELECT DISTINCT + 79 * - + MAX( + col1 ) FROM tab2
----
-6083

skipif mysql # not compatible
query I rowsort label-1949
SELECT DISTINCT + 79 * - + MAX ( + col1 ) FROM tab2
----
-6083

query I rowsort
SELECT 9 FROM tab2 WHERE NOT - 14 * - + col0 < NULL
----

query I rowsort
SELECT ALL + - col0 + + + col1 AS col0 FROM tab0 AS cor0
----
-66
-96
66

query I rowsort
SELECT - - 9 * 22 + - - 88 FROM tab2 AS cor0
----
286
286
286

query I rowsort
SELECT DISTINCT + 19 + + col2 AS col1 FROM tab2 AS cor0
----
42
59
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1954
SELECT + SUM( ALL col1 ) AS col1 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-1954
SELECT + SUM ( ALL col1 ) AS col1 FROM tab0 AS cor0
----
103

query I rowsort
SELECT ALL - 30 + 26 AS col2 FROM tab1 AS cor0
----
-4
-4
-4

query I rowsort
SELECT ALL + col0 * - + col0 + + - ( - - 21 ) FROM tab1 AS cor0
----
-2622
-7246
-8302

query II rowsort
SELECT ALL col0 * - col0 AS col2, - 75 AS col0 FROM tab2
----
-2116
-75
-4096
-75
-5625
-75

query IIIIII rowsort
SELECT DISTINCT * FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE + 16 - - 24 IS NULL
----

query I rowsort
SELECT ALL + 95 * 79 + + 82 AS col2 FROM tab1 AS cor0
----
7587
7587
7587

onlyif mysql # DIV for integer division: 
query I rowsort label-1960
SELECT - 40 DIV + ( + + col1 ) FROM tab0 AS cor0
----
-1
-40
0

skipif mysql # not compatible
query I rowsort label-1960
SELECT - 40 / + ( + + col1 ) FROM tab0 AS cor0
----
-1
-40
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 19 <= + - col0 * - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + + ( 33 ) FROM tab2 AS cor0
----
33
33
33

onlyif mysql # aggregate syntax: 
query I rowsort label-1963
SELECT ALL COUNT( * ) + + - 40 AS col1 FROM tab2 AS cor0
----
-37

skipif mysql # not compatible
query I rowsort label-1963
SELECT ALL COUNT ( * ) + + - 40 AS col1 FROM tab2 AS cor0
----
-37

query I rowsort
SELECT DISTINCT + col1 - + - col1 FROM tab0
----
162
2
42

query I rowsort
SELECT col2 - + 93 FROM tab1
----
-25
-34
3

query I rowsort
SELECT ALL col0 * 62 AS col2 FROM tab2
----
2852
3968
4650

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 62 - - - col0 col0 FROM tab2
----
-108
-126
-137

query I rowsort
SELECT + col1 AS col2 FROM tab0 WHERE ( NULL ) <= col1
----

query I rowsort
SELECT - 80 - - 27 AS col1 FROM tab2
----
-53
-53
-53

query I rowsort
SELECT ALL + col2 * - - col1 - col0 AS col1 FROM tab1
----
1293
210
3105

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1971
SELECT ALL col0 AS col2, - col1 + + col1 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-1971
SELECT ALL col0 AS col2, - col1 + + col1 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1972
SELECT - + CAST( - col1 AS SIGNED ) FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-1972
SELECT - + CAST ( - col1 AS INTEGER ) FROM tab0 AS cor0
----
1
21
81

onlyif mysql # DIV for integer division: 
query I rowsort label-1973
SELECT - 86 DIV - + col1 AS col2 FROM tab0 AS cor0
----
1
4
86

skipif mysql # not compatible
query I rowsort label-1973
SELECT - 86 / - + col1 AS col2 FROM tab0 AS cor0
----
1
4
86

query II rowsort
SELECT ALL col1 * + col2 AS col0, + 29 * - ( col0 ) AS col0 FROM tab0
----
210
-2523
3807
-435
99
-2813

query I rowsort
SELECT 31 * + col0 AS col1 FROM tab1 AS cor0
----
1581
2635
2821

query I rowsort
SELECT + ( + - ( - 48 ) ) * + col1 AS col1 FROM tab2 cor0
----
2448
3216
3696

onlyif mysql # aggregate syntax: 
query I rowsort label-1977
SELECT DISTINCT + COUNT( DISTINCT - + 91 ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-1977
SELECT DISTINCT + COUNT ( DISTINCT - + 91 ) FROM tab2 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1978
SELECT + - COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN - col1 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-1978
SELECT + - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN - col1 AND NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1979
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( CAST( - col2 AS SIGNED ) - + 36 ) BETWEEN NULL AND + col1
----

skipif mysql # not compatible
query III rowsort label-1979
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( CAST ( - col2 AS INTEGER ) - + 36 ) BETWEEN NULL AND + col1
----

query I rowsort
SELECT DISTINCT + 55 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1981
SELECT - col2 DIV + - col0 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1981
SELECT - col2 / + - col0 FROM tab1
----
0
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1982
SELECT ( + 75 ) DIV col2 FROM tab0
----
0
1
7

skipif mysql # not compatible
query I rowsort label-1982
SELECT ( + 75 ) / col2 FROM tab0
----
0
1
7

query I rowsort
SELECT ALL + 54 * - col0 FROM tab2
----
-2484
-3456
-4050

onlyif mysql # DIV for integer division: 
query I rowsort label-1984
SELECT - 52 DIV + col0 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1984
SELECT - 52 / + col0 FROM tab2
----
-1
0
0

query I rowsort
SELECT col0 * + 2 AS col2 FROM tab2
----
128
150
92

onlyif mysql # aggregate syntax: 
query I rowsort label-1986
SELECT COUNT( ALL - 26 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-1986
SELECT COUNT ( ALL - 26 ) AS col0 FROM tab2
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 13 * + col0 * - col1 col2, 25 AS col1 FROM tab1
----
-5525
25
-55601
25
-9282
25

query I rowsort
SELECT + 19 + - 61 AS col2 FROM tab2
----
-42
-42
-42

query I rowsort
SELECT ALL 11 * + col0 + - - 13 AS col1 FROM tab2
----
519
717
838

query III rowsort
SELECT * FROM tab1 WHERE NOT - - 71 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT - 74 < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1992
SELECT col0 DIV - 4 AS col2 FROM tab1
----
-12
-21
-22

skipif mysql # not compatible
query I rowsort label-1992
SELECT col0 / - 4 AS col2 FROM tab1
----
-12
-21
-22

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1993
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 47 * - CAST( NULL AS SIGNED ) BETWEEN - col0 AND 83
----

skipif mysql # not compatible
query III rowsort label-1993
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 47 * - CAST ( NULL AS INTEGER ) BETWEEN - col0 AND 83
----

query I rowsort
SELECT DISTINCT + + col0 AS col1 FROM tab1 AS cor0 WHERE NULL <= ( NULL )
----

query I rowsort
SELECT DISTINCT - - 16 + col2 FROM tab2 cor0
----
39
56
74

query I rowsort
SELECT DISTINCT - col2 + - 16 FROM tab1 AS cor0
----
-112
-75
-84

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 60 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1998
SELECT ALL + 38 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1998
SELECT ALL + 38 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1999
SELECT DISTINCT CAST( - col2 AS SIGNED ) + 74 FROM tab1 AS cor0
----
-22
15
6

skipif mysql # not compatible
query I rowsort label-1999
SELECT DISTINCT CAST ( - col2 AS INTEGER ) + 74 FROM tab1 AS cor0
----
-22
15
6

query II rowsort
SELECT ALL + col2 + col0 AS col1, + 92 + - col2 FROM tab0 AS cor0
----
196
-7
62
45
97
82

query I rowsort
SELECT ALL col2 FROM tab0 cor0 WHERE - col0 IS NOT NULL
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2002
SELECT col0 + - 79 * + - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2002
SELECT col0 + - 79 * + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 * + 90 * + + col1 - - 13 AS col0 FROM tab1
----
17653
198823
2263

query I rowsort
SELECT ALL 78 - - 98 AS col2 FROM tab1
----
176
176
176

query I rowsort
SELECT DISTINCT + 19 + - 25 - - - col0 * - col1 - + col2 FROM tab1
----
360
4203
612

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2006
SELECT DISTINCT + CAST( + COUNT( ALL CAST( + col1 AS DECIMAL ) ) AS SIGNED ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2006
SELECT DISTINCT + CAST ( + COUNT ( ALL CAST ( + col1 AS REAL ) ) AS INTEGER ) AS col2 FROM tab2
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 col2 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + col2 * + 69 FROM tab2
----
1587
2760
4002

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2009
SELECT ALL 84 + COUNT( * ) FROM tab2 cor0 WHERE NOT CAST( NULL AS SIGNED ) - + col1 <> col2
----
84

skipif mysql # not compatible
query I rowsort label-2009
SELECT ALL 84 + COUNT ( * ) FROM tab2 cor0 WHERE NOT CAST ( NULL AS INTEGER ) - + col1 <> col2
----
84

query II rowsort
SELECT ALL - ( col2 ) AS col2, col2 * col0 * - - col0 * - col2 FROM tab1 AS cor0
----
-59
-25150225
-68
-38291344
-96
-23970816

onlyif mysql # aggregate syntax: 
query I rowsort label-2011
SELECT ALL + COUNT( DISTINCT col2 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2011
SELECT ALL + COUNT ( DISTINCT col2 ) FROM tab2 cor0
----
3

query I rowsort
SELECT + 34 * - - col0 AS col2 FROM tab2 AS cor0
----
1564
2176
2550

query I rowsort
SELECT + + 84 + + + 17 AS col1 FROM tab0 cor0
----
101
101
101

query II rowsort
SELECT DISTINCT col1 AS col2, col0 FROM tab0 AS cor0
----
1
97
21
87
81
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0, col1 * + + col0 col2 FROM tab0 AS cor0
----
15
1215
87
1827
97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2016
SELECT ALL ( - COUNT( * ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2016
SELECT ALL ( - COUNT ( * ) ) FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2017
SELECT ALL - + col0 FROM tab2 AS cor0 WHERE NOT + CAST( NULL AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-2017
SELECT ALL - + col0 FROM tab2 AS cor0 WHERE NOT + CAST ( NULL AS REAL ) IS NULL
----

query I rowsort
SELECT - + col0 FROM tab2 WHERE + 26 * + 0 + - - 84 * + col1 - + - col2 * - col0 + - - ( - - 26 ) IS NOT NULL
----
-46
-64
-75

query I rowsort
SELECT ALL col0 * + - 26 * col1 FROM tab2
----
-128128
-130650
-60996

onlyif mysql # aggregate syntax: 
query I rowsort label-2020
SELECT + COUNT( DISTINCT + + 72 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-2020
SELECT + COUNT ( DISTINCT + + 72 ) FROM tab2
----
1

query I rowsort
SELECT DISTINCT - + 18 * col2 + + col2 + col0 FROM tab2 AS cor0
----
-345
-616
-911

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 94 + col2 col0 FROM tab1
----
153
162
190

query I rowsort
SELECT - - col1 FROM tab1 WHERE - col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2024
SELECT + - 10 * - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2024
SELECT + - 10 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2025
SELECT - col1 DIV - + 87 AS col0 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2025
SELECT - col1 / - + 87 AS col0 FROM tab0 cor0
----
0
0
0

query II rowsort
SELECT DISTINCT col0 AS col1, - col0 FROM tab1 AS cor0
----
51
-51
85
-85
91
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2027
SELECT + + 60 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE ( ( NOT NULL <> - col0 ) )
----

skipif mysql # not compatible
query I rowsort label-2027
SELECT + + 60 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE ( ( NOT NULL <> - col0 ) )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 72 / + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col2 * - - 75 - col1 + - col1 + - - 27 * col0 FROM tab0 AS cor0
----
-3282
-4808
1557

onlyif mysql # DIV for integer division: 
query I rowsort label-2030
SELECT ALL + col1 DIV + - col1 AS col2 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2030
SELECT ALL + col1 / + - col1 AS col2 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT + col0 * + 20 AS col0 FROM tab0
----
1740
1940
300

onlyif mysql # aggregate syntax: 
query II rowsort label-2032
SELECT DISTINCT SUM( DISTINCT - col2 ) AS col0, + 73 AS col0 FROM tab2
----
-121
73

skipif mysql # not compatible
query II rowsort label-2032
SELECT DISTINCT SUM ( DISTINCT - col2 ) AS col0, + 73 AS col0 FROM tab2
----
-121
73

query II rowsort
SELECT - col2, - col0 AS col0 FROM tab2
----
-23
-46
-40
-64
-58
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2034
SELECT DISTINCT SUM( + col0 ) AS col1 FROM tab2 AS cor0 WHERE NOT + 2 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2034
SELECT DISTINCT SUM ( + col0 ) AS col1 FROM tab2 AS cor0 WHERE NOT + 2 = NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2035
SELECT - ( + + ( CAST( NULL AS SIGNED ) ) ) / - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2035
SELECT - ( + + ( CAST ( NULL AS INTEGER ) ) ) / - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2036
SELECT ALL - ( + COUNT( * ) ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2036
SELECT ALL - ( + COUNT ( * ) ) AS col1 FROM tab0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2037
SELECT ALL COUNT( * ) * - + 38 + SUM( DISTINCT - CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2037
SELECT ALL COUNT ( * ) * - + 38 + SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2038
SELECT DISTINCT + + COUNT( ALL + - col0 ) col1 FROM tab1 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2038
SELECT DISTINCT + + COUNT ( ALL + - col0 ) col1 FROM tab1 cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * 3 col1 FROM tab0 AS cor0
----
141
297
30

onlyif mysql # aggregate syntax: 
query I rowsort label-2040
SELECT - MAX( DISTINCT - - col0 ) AS col2 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-2040
SELECT - MAX ( DISTINCT - - col0 ) AS col2 FROM tab2 AS cor0
----
-75

query I rowsort
SELECT + + ( - + 19 ) AS col2 FROM tab0 WHERE + col2 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2042
SELECT - ( + COUNT( * ) ) + - - CAST( 35 AS SIGNED ) FROM tab2
----
32

skipif mysql # not compatible
query I rowsort label-2042
SELECT - ( + COUNT ( * ) ) + - - CAST ( 35 AS INTEGER ) FROM tab2
----
32

query I rowsort
SELECT + col1 + - 18 + - 95 * + - col1 AS col2 FROM tab0
----
1998
7758
78

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2044
SELECT ALL - col1, + CAST( NULL AS DECIMAL ) + + - CAST( NULL AS DECIMAL ) col2 FROM tab2
----
-51
NULL
-67
NULL
-77
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2044
SELECT ALL - col1, + CAST ( NULL AS REAL ) + + - CAST ( NULL AS REAL ) col2 FROM tab2
----
-51
NULL
-67
NULL
-77
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2045
SELECT + ( + - MIN( DISTINCT + 20 ) ) * + 13 + 9 FROM tab2
----
-251

skipif mysql # not compatible
query I rowsort label-2045
SELECT + ( + - MIN ( DISTINCT + 20 ) ) * + 13 + 9 FROM tab2
----
-251

query I rowsort
SELECT DISTINCT + col1 * - 70 AS col2 FROM tab2
----
-3570
-4690
-5390

query I rowsort
SELECT - col2 + - + col0 AS col2 FROM tab1
----
-144
-147
-159

query I rowsort
SELECT ALL + 53 AS col1 FROM tab0
----
53
53
53

onlyif mysql # aggregate syntax: 
query II rowsort label-2049
SELECT DISTINCT + COUNT( * ) AS col0, COUNT( * ) AS col2 FROM tab2
----
3
3

skipif mysql # not compatible
query II rowsort label-2049
SELECT DISTINCT + COUNT ( * ) AS col0, COUNT ( * ) AS col2 FROM tab2
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2050
SELECT MIN( 26 ) AS col0 FROM tab1 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-2050
SELECT MIN ( 26 ) AS col0 FROM tab1 AS cor0
----
26

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE ( - - col1 BETWEEN col2 / - 95 + - col2 AND + col1 - - 49 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 93 + - - 47 FROM tab2 AS cor0
----
-46

query III rowsort
SELECT * FROM tab2 WHERE ( - 17 ) + - + col1 IS NULL
----

query I rowsort
SELECT - col1 + + + col2 AS col2 FROM tab1 AS cor0
----
21
54
82

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 40 < - + col0 * col2 * + col1 * + - 17 AND NOT ( NULL ) BETWEEN + col2 + - col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2056
SELECT ALL + CAST( - 92 AS SIGNED ) * - 0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2056
SELECT ALL + CAST ( - 92 AS INTEGER ) * - 0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2057
SELECT ALL + col1 DIV + + 29 + - col2 FROM tab1 AS cor0
----
-59
-67
-96

skipif mysql # not compatible
query I rowsort label-2057
SELECT ALL + col1 / + + 29 + - col2 FROM tab1 AS cor0
----
-59
-67
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-2058
SELECT + SUM( + - col0 ), + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-199
3

skipif mysql # not compatible
query II rowsort label-2058
SELECT + SUM ( + - col0 ), + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-199
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 27 * + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2060
SELECT - + MAX( ALL - - col0 ) AS col2 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-2060
SELECT - + MAX ( ALL - - col0 ) AS col2 FROM tab2 AS cor0
----
-75

query I rowsort
SELECT - col1 + - col1 AS col1 FROM tab1 WHERE NOT - + 51 + + + col2 / - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2062
SELECT + COUNT( * ) DIV - - 68 + - COUNT( * ) + 58 + + - 10 FROM tab1, tab2 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-2062
SELECT + COUNT ( * ) / - - 68 + - COUNT ( * ) + 58 + + - 10 FROM tab1, tab2 AS cor0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-2063
SELECT DISTINCT + COUNT( ALL + - 97 ) * - 80 * ( COUNT( * ) ) AS col0 FROM tab0, tab2 AS cor0
----
-6480

skipif mysql # not compatible
query I rowsort label-2063
SELECT DISTINCT + COUNT ( ALL + - 97 ) * - 80 * ( COUNT ( * ) ) AS col0 FROM tab0, tab2 AS cor0
----
-6480

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL < + ( - col2 )
----

query I rowsort
SELECT ALL + - col0 * + + 62 AS col2 FROM tab0 AS cor0
----
-5394
-6014
-930

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2066
SELECT DISTINCT - 89 DIV COUNT( * ) FROM tab2 AS cor0
----
-29

skipif mysql # not compatible
query I rowsort label-2066
SELECT DISTINCT - 89 / COUNT ( * ) FROM tab2 AS cor0
----
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-2067
SELECT col1 DIV - 58 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2067
SELECT col1 / - 58 FROM tab0
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 49 col0 FROM tab2
----
49

query I rowsort
SELECT DISTINCT - - 29 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
29

query I rowsort
SELECT col0 AS col1 FROM tab2 AS cor0 WHERE NOT col1 + - col2 > + col1
----
46
64
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 66 + - col2 + col1 col2 FROM tab1 AS cor0
----
-16
12
45

onlyif mysql # DIV for integer division: 
query I rowsort label-2072
SELECT + 71 + + col0 + - 87 - + - col2 DIV 19 DIV 36 FROM tab0 cor0
----
-1
71
81

skipif mysql # not compatible
query I rowsort label-2072
SELECT + 71 + + col0 + - 87 - + - col2 / 19 / 36 FROM tab0 cor0
----
-1
71
81

query I rowsort
SELECT ALL - - col2 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) >= NULL
----

query I rowsort
SELECT ALL + col2 + 56 + col2 AS col2 FROM tab0 AS cor0
----
150
254
76

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 87 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL + 85 AS col2, + col0 - + 82 AS col0 FROM tab1 AS cor0
----
85
-31
85
3
85
9

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2077
SELECT DISTINCT + ( + COUNT( * ) ) + - - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2077
SELECT DISTINCT + ( + COUNT ( * ) ) + - - CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT + + 51 * - 61 * - ( + col0 ), col1 * col1 AS col0 FROM tab0 AS cor0
----
270657
441
301767
1
46665
6561

query I rowsort
SELECT ALL + + col2 + - - col0 AS col2 FROM tab1 AS cor0
----
144
147
159

onlyif mysql # aggregate syntax: 
query I rowsort label-2080
SELECT + MIN( + - col2 ) + + COUNT( * ) AS col1 FROM tab1 WHERE NULL IS NULL
----
-93

skipif mysql # not compatible
query I rowsort label-2080
SELECT + MIN ( + - col2 ) + + COUNT ( * ) AS col1 FROM tab1 WHERE NULL IS NULL
----
-93

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col0 * + + col1 * - 54 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2082
SELECT MAX( ALL col2 ) - - COUNT( * ) AS col0 FROM tab2
----
61

skipif mysql # not compatible
query I rowsort label-2082
SELECT MAX ( ALL col2 ) - - COUNT ( * ) AS col0 FROM tab2
----
61

query I rowsort
SELECT DISTINCT 55 FROM tab1 AS cor0 WHERE NULL IS NULL AND NOT NULL = NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2084
SELECT DISTINCT - + 66, 2 + ( - ( - SUM( DISTINCT + col0 ) ) ) AS col0 FROM tab2 AS cor0
----
-66
187

skipif mysql # not compatible
query II rowsort label-2084
SELECT DISTINCT - + 66, 2 + ( - ( - SUM ( DISTINCT + col0 ) ) ) AS col0 FROM tab2 AS cor0
----
-66
187

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * 21 + + 84 + - + col1 col2 FROM tab2 AS cor0
----
1104
1424
1624

onlyif mysql # DIV for integer division: 
query I rowsort label-2086
SELECT - - ( + col0 ) DIV - - col0 + + col0 FROM tab1 AS cor0
----
52
86
92

skipif mysql # not compatible
query I rowsort label-2086
SELECT - - ( + col0 ) / - - col0 + + col0 FROM tab1 AS cor0
----
52
86
92

query I rowsort
SELECT DISTINCT ( col2 ) + + + col0 * + ( + col0 ) FROM tab1 AS cor0 WHERE NOT + col0 = NULL
----

query I rowsort
SELECT + - col0 + 86 AS col0 FROM tab1 cor0 WHERE NOT + 68 * - 33 IS NOT NULL
----

query I rowsort
SELECT - col1 AS col2 FROM tab0 cor0 WHERE NOT ( - 51 + + col0 / + + col0 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col1 - + 17 - - col1 IS NULL
----

query I rowsort
SELECT DISTINCT col1 * + col1 * 20 AS col1 FROM tab2
----
118580
52020
89780

query I rowsort
SELECT - - col0 FROM tab2 WHERE NOT - + 15 / + col2 * + col2 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2093
SELECT CAST( + + col2 AS SIGNED ) AS col2 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-2093
SELECT CAST ( + + col2 AS INTEGER ) AS col2 FROM tab1
----
59
68
96

query II rowsort
SELECT DISTINCT col1 * - col2 AS col0, + col0 * col0 FROM tab0
----
-210
7569
-3807
225
-99
9409

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2095
SELECT - + COUNT( * ) FROM tab1 WHERE NOT + CAST( NULL AS SIGNED ) > 45
----
0

skipif mysql # not compatible
query I rowsort label-2095
SELECT - + COUNT ( * ) FROM tab1 WHERE NOT + CAST ( NULL AS INTEGER ) > 45
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 42 col1 FROM tab1 AS cor0 WHERE NOT col1 * col0 * 12 <= + + col2
----
42
42
42

query I rowsort
SELECT col2 AS col1 FROM tab2 cor0 WHERE NOT - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2098
SELECT - SUM( + col2 ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL BETWEEN NULL AND NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2098
SELECT - SUM ( + col2 ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL BETWEEN NULL AND NULL )
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL <> - col0
----

query I rowsort
SELECT col1 * + 76 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE NOT col2 + - 5 / + + col0 IS NULL
----
23
40
58

query I rowsort
SELECT ALL + - col0 AS col2 FROM tab0 WHERE NOT - col0 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2103
SELECT COUNT( * ) * COUNT( * ) AS col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
81

skipif mysql # not compatible
query I rowsort label-2103
SELECT COUNT ( * ) * COUNT ( * ) AS col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
81

query II rowsort
SELECT + 13 * + col2 * 77 AS col1, + 42 + + + 12 AS col2 FROM tab2
----
23023
54
40040
54
58058
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2105
SELECT ALL COUNT( * ) DIV - + 49 * + COUNT( * ) + - 57 + - COUNT( * ) FROM tab2 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-2105
SELECT ALL COUNT ( * ) / - + 49 * + COUNT ( * ) + - 57 + - COUNT ( * ) FROM tab2 AS cor0
----
-60

query I rowsort
SELECT ALL + col2 + - - 93 FROM tab0 AS cor0
----
103
140
192

query II rowsort
SELECT - col1 * + - col2 + + 25 AS col0, col1 FROM tab2 AS cor0
----
1198
51
3105
77
3911
67

query I rowsort
SELECT DISTINCT ( - 4 ) + - 93 FROM tab2
----
-97

query I rowsort
SELECT DISTINCT col2 * + 64 AS col2 FROM tab0
----
3008
6336
640

onlyif mysql # DIV for integer division: 
query II rowsort label-2110
SELECT DISTINCT col1 DIV 52 AS col0, 77 FROM tab2
----
0
77
1
77

skipif mysql # not compatible
query II rowsort label-2110
SELECT DISTINCT col1 / 52 AS col0, 77 FROM tab2
----
0
77
1
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2111
SELECT ALL CAST( - + COUNT( * ) AS SIGNED ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-2111
SELECT ALL CAST ( - + COUNT ( * ) AS INTEGER ) AS col2 FROM tab2
----
-3

query I rowsort
SELECT ALL - col1 + + + 94 FROM tab1 AS cor0
----
47
80
89

query II rowsort
SELECT + + col2 AS col1, col1 + + + col1 AS col0 FROM tab1 AS cor0
----
59
10
68
94
96
28

query I rowsort
SELECT DISTINCT - col1 - - + col0 * + ( + col2 ) FROM tab0 AS cor0
----
624
849
9602

query I rowsort
SELECT - 87 - + ( + + 68 ) + col0 AS col0 FROM tab2 AS cor0
----
-109
-80
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2116
SELECT COUNT( * ) * + - COUNT( * ) * - + CAST( - COUNT( * ) AS SIGNED ) AS col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
-729

skipif mysql # not compatible
query I rowsort label-2116
SELECT COUNT ( * ) * + - COUNT ( * ) * - + CAST ( - COUNT ( * ) AS INTEGER ) AS col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
-729

query I rowsort
SELECT DISTINCT + 44 * + col2 AS col2 FROM tab2
----
1012
1760
2552

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2118
SELECT DISTINCT * FROM tab1 WHERE NOT + 66 <> CAST( NULL AS SIGNED ) + - col2
----

skipif mysql # not compatible
query III rowsort label-2118
SELECT DISTINCT * FROM tab1 WHERE NOT + 66 <> CAST ( NULL AS INTEGER ) + - col2
----

query I rowsort
SELECT 83 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

query I rowsort
SELECT 12 * + col2 * - col2 AS col0 FROM tab1 AS cor0
----
-110592
-41772
-55488

query I rowsort
SELECT - 4 AS col1 FROM tab0 cor0
----
-4
-4
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-2122
SELECT 48 * COUNT( * ) AS col2 FROM tab0 AS cor0
----
144

skipif mysql # not compatible
query I rowsort label-2122
SELECT 48 * COUNT ( * ) AS col2 FROM tab0 AS cor0
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-2123
SELECT MAX( ALL + + col0 ) AS col1 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-2123
SELECT MAX ( ALL + + col0 ) AS col1 FROM tab0 AS cor0
----
97

query I rowsort
SELECT + + col2 + - 88 AS col1 FROM tab2 AS cor0 WHERE NOT ( NOT NULL <= NULL )
----

query I rowsort
SELECT col1 * + + col2 FROM tab2 AS cor0
----
1173
3080
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-2126
SELECT DISTINCT + MAX( DISTINCT 13 ) AS col1 FROM tab2 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-2126
SELECT DISTINCT + MAX ( DISTINCT 13 ) AS col1 FROM tab2 AS cor0
----
13

query I rowsort
SELECT - col2 * + col0 + - - col1 AS col1 FROM tab0 AS cor0
----
-624
-849
-9602

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2128
SELECT 52 * CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2128
SELECT 52 * CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT 73 AS col2 FROM tab1 WHERE NOT NULL NOT BETWEEN + col1 * + 40 * + ( - - col2 ) / - 2 AND - - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2130
SELECT DISTINCT ( 90 ) * - COUNT( * ) col1 FROM tab0
----
-270

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2130
SELECT DISTINCT ( 90 ) * - COUNT ( * ) col1 FROM tab0
----
-270

query II rowsort
SELECT ALL + col0 AS col2, col2 + 81 * + col0 AS col2 FROM tab2
----
46
3749
64
5224
75
6133

query II rowsort
SELECT + - col1 AS col0, + col2 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2133
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + - 94 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2133
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + - 94 AS col1 FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT - 86 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 * + + ( - + col0 ) col0, 54 FROM tab1
----
2601
54
7225
54
8281
54

query I rowsort
SELECT + 85 * + col0 AS col1 FROM tab1 AS cor0
----
4335
7225
7735

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab0 cor0 WHERE NOT NULL <= col2 * - 50 * + 82
----

query I rowsort
SELECT ALL + 11 * + col0 FROM tab2 AS cor0
----
506
704
825

query I rowsort
SELECT - 84 FROM tab1 AS cor0 WHERE NOT + col0 BETWEEN - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2140
SELECT SUM( ALL + + ( - 2 ) ) FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-2140
SELECT SUM ( ALL + + ( - 2 ) ) FROM tab2
----
-6

query I rowsort
SELECT ALL - 71 * 93 AS col2 FROM tab1
----
-6603
-6603
-6603

onlyif mysql # DIV for integer division: 
query I rowsort label-2142
SELECT DISTINCT col2 DIV + + col2 AS col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-2142
SELECT DISTINCT col2 / + + col2 AS col2 FROM tab0
----
1

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 LEFT JOIN tab0 AS cor1 ON NULL > NULL, tab2 AS cor2
----
81 values hashing to c01934a9cd69658294b1062b628e10e3

query I rowsort
SELECT DISTINCT - - 18 + + 24 AS col2 FROM tab1 AS cor0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-2145
SELECT - - COUNT( * ) + COUNT( * ) col0 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2145
SELECT - - COUNT ( * ) + COUNT ( * ) col0 FROM tab0 AS cor0
----
6

query I rowsort
SELECT - - 35 + + 42 * + + ( - - col0 ) + - col1 FROM tab0 AS cor0
----
3668
4108
584

query II rowsort
SELECT ALL col2 / - - 47 AS col2, + 43 AS col1 FROM tab2 cor0 WHERE ( NULL ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT ALL - 1 * col0 + - 72 + col2 + 48, col1 * col2 AS col0, col0 col2 FROM tab1 AS cor0
----
9 values hashing to d9e77d0c486e41ba84ccffe2e1852d40

query II rowsort
SELECT ALL + 61 + 84 AS col0, + col2 AS col1 FROM tab1 cor0
----
145
59
145
68
145
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2150
SELECT DISTINCT + ( + - COUNT( * ) ) + - 23 FROM tab1 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-2150
SELECT DISTINCT + ( + - COUNT ( * ) ) + - 23 FROM tab1 AS cor0
----
-26

query I rowsort
SELECT - 80 + + - AVG ( col2 ) AS col0 FROM tab2 cor0 WHERE + 97 = ( + ( 79 ) )
----
NULL

query I rowsort
SELECT DISTINCT - 72 + - 42 + - col2 FROM tab0 cor0
----
-124
-161
-213

onlyif mysql # DIV for integer division: 
query I rowsort label-2153
SELECT ALL col0 + - 23 * col2 DIV col2 FROM tab0
----
-8
64
74

skipif mysql # not compatible
query I rowsort label-2153
SELECT ALL col0 + - 23 * col2 / col2 FROM tab0
----
-8
64
74

query I rowsort
SELECT DISTINCT 49 - + col0 AS col1 FROM tab2
----
-15
-26
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2155
SELECT - col1 - ( col2 ) DIV 27 col0 FROM tab2
----
-51
-69
-78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2155
SELECT - col1 - ( col2 ) / 27 col0 FROM tab2
----
-51
-69
-78

query I rowsort
SELECT ALL col1 - - + ( - 18 ) * - col2 FROM tab1
----
1067
1271
1742

onlyif mysql # aggregate syntax: 
query I rowsort label-2157
SELECT - COUNT( * ) * + 0 - - MAX( DISTINCT - col1 ) AS col0 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-2157
SELECT - COUNT ( * ) * + 0 - - MAX ( DISTINCT - col1 ) AS col0 FROM tab2
----
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2158
SELECT ALL - 32 + - COUNT( * ) DIV - 46 AS col2 FROM tab2
----
-32

skipif mysql # not compatible
query I rowsort label-2158
SELECT ALL - 32 + - COUNT ( * ) / - 46 AS col2 FROM tab2
----
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2159
SELECT 37 + - CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT NULL IS NULL AND - + 27 NOT BETWEEN NULL AND + col2
----

skipif mysql # not compatible
query I rowsort label-2159
SELECT 37 + - CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT NULL IS NULL AND - + 27 NOT BETWEEN NULL AND + col2
----

query I rowsort
SELECT col2 * col2 + + col1 + + col1 AS col2 FROM tab1
----
3491
4718
9244

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 35 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2162
SELECT ALL - SUM( DISTINCT + + col0 ) FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-2162
SELECT ALL - SUM ( DISTINCT + + col0 ) FROM tab0 AS cor0
----
-199

onlyif mysql # aggregate syntax: 
query I rowsort label-2163
SELECT DISTINCT 36 * + COUNT( * ) AS col2 FROM tab2
----
108

skipif mysql # not compatible
query I rowsort label-2163
SELECT DISTINCT 36 * + COUNT ( * ) AS col2 FROM tab2
----
108

query II rowsort
SELECT + col1, ( + 29 ) AS col2 FROM tab2
----
51
29
67
29
77
29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT + - 17 col2, + col0 + + 96 * + col0 AS col2, - col0 AS col2 FROM tab0 cor0
----
9 values hashing to af2fa0e2b4afe8f7ec86045eaf543314

onlyif mysql # DIV for integer division: 
query II rowsort label-2166
SELECT + + col1 AS col1, col1 DIV + 54 col1 FROM tab2 AS cor0
----
51
0
67
1
77
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2166
SELECT + + col1 AS col1, col1 / + 54 col1 FROM tab2 AS cor0
----
51
0
67
1
77
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2167
SELECT DISTINCT + COUNT( * ), + 25 * - MAX( DISTINCT 92 ) col0 FROM tab0 AS cor0
----
3
-2300

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2167
SELECT DISTINCT + COUNT ( * ), + 25 * - MAX ( DISTINCT 92 ) col0 FROM tab0 AS cor0
----
3
-2300

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2168
SELECT DISTINCT ( - + ( CAST( NULL AS SIGNED ) ) ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2168
SELECT DISTINCT ( - + ( CAST ( NULL AS INTEGER ) ) ) FROM tab1 cor0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) <= col1 / + + col1 + + - 22 * - 47
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2170
SELECT DISTINCT + ( SUM( - col1 ) ) AS col1 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-2170
SELECT DISTINCT + ( SUM ( - col1 ) ) AS col1 FROM tab1 AS cor0
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2171
SELECT - + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-2171
SELECT - + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col1 FROM tab0 AS cor0 WHERE NOT col0 - 91 >= 57
----
-10
-47
-99

query I rowsort
SELECT ALL + col1 * + + col2 AS col0 FROM tab0 AS cor0 WHERE NOT - col2 > - col2
----
210
3807
99

query I rowsort
SELECT 69 + - + 33 AS col1 FROM tab2
----
36
36
36

query I rowsort
SELECT - col0 * - col0 + col1 FROM tab0
----
306
7590
9410

query I rowsort
SELECT ALL + - col0 * + + col1 FROM tab1 WHERE - - col2 IS NOT NULL
----
-425
-4277
-714

query I rowsort
SELECT - + col2 + + col1 + col0 FROM tab1 AS cor0
----
-31
31
70

onlyif mysql # aggregate syntax: 
query I rowsort label-2178
SELECT - SUM( 98 ) FROM tab2 AS cor0
----
-294

skipif mysql # not compatible
query I rowsort label-2178
SELECT - SUM ( 98 ) FROM tab2 AS cor0
----
-294

onlyif mysql # aggregate syntax: 
query I rowsort label-2179
SELECT MIN( ALL - 66 ) AS col0 FROM tab2
----
-66

skipif mysql # not compatible
query I rowsort label-2179
SELECT MIN ( ALL - 66 ) AS col0 FROM tab2
----
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-2180
SELECT - col1 DIV + + 82 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2180
SELECT - col1 / + + 82 FROM tab0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2181
SELECT ALL + COUNT( * ), CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-2181
SELECT ALL + COUNT ( * ), CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
3
NULL

query I rowsort
SELECT DISTINCT - col0 + + 2 FROM tab1 AS cor0
----
-49
-83
-89

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN - col2 AND + col2
----

query I rowsort
SELECT col0 + + col2 AS col1 FROM tab2 cor0
----
104
133
69

query I rowsort
SELECT ALL 10 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2186
SELECT DISTINCT - 40 * CAST( - col2 AS SIGNED ) - col1 AS col1 FROM tab2 AS cor0
----
1523
2253
869

skipif mysql # not compatible
query I rowsort label-2186
SELECT DISTINCT - 40 * CAST ( - col2 AS INTEGER ) - col1 AS col1 FROM tab2 AS cor0
----
1523
2253
869

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab1 cor0 WHERE ( NOT 78 IS NOT NULL )
----

query I rowsort
SELECT 66 + - + col1 AS col0 FROM tab0 AS cor0
----
-15
45
65

query I rowsort
SELECT ALL + 31 - + - 64 FROM tab0
----
95
95
95

query I rowsort
SELECT + 92 + + col2 AS col2 FROM tab2
----
115
132
150

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 + + 60, col0 * col2 col2 FROM tab1
----
107
6188
65
5015
74
4896

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 31 col0 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2193
SELECT ALL + MAX( 25 ) FROM tab2
----
25

skipif mysql # not compatible
query I rowsort label-2193
SELECT ALL + MAX ( 25 ) FROM tab2
----
25

query III rowsort
SELECT * FROM tab1 WHERE - col0 >= 11 + - 27
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2195
SELECT ALL + CAST( ( + + 13 ) AS SIGNED ) FROM tab0 AS cor0
----
13
13
13

skipif mysql # not compatible
query I rowsort label-2195
SELECT ALL + CAST ( ( + + 13 ) AS INTEGER ) FROM tab0 AS cor0
----
13
13
13

query I rowsort
SELECT + + col2 * col0 * - col0 FROM tab0 AS cor0
----
-10575
-75690
-931491

onlyif mysql # aggregate syntax: 
query I rowsort label-2197
SELECT - + 99 * + MIN( DISTINCT col1 ) AS col1 FROM tab1 AS cor0
----
-495

skipif mysql # not compatible
query I rowsort label-2197
SELECT - + 99 * + MIN ( DISTINCT col1 ) AS col1 FROM tab1 AS cor0
----
-495

onlyif mysql # aggregate syntax: 
query I rowsort label-2198
SELECT ALL - COUNT( * ) FROM tab1 AS cor0 WHERE NOT + col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2198
SELECT ALL - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT + col1 IS NOT NULL
----
0

query I rowsort
SELECT ALL - - col0 * ( - col0 ) * - col2 AS col0 FROM tab1 AS cor0
----
249696
426275
563108

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 98 AS col0, col1 col1 FROM tab0 AS cor0
----
-98
1
-98
21
-98
81

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 + + ( - - ( + 38 ) ) + + col0 + + ( + + col1 ) + - - col0 <> 91 * col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2202
SELECT - - SUM( - ( - - col0 ) ) * - 73 AS col1 FROM tab2 AS cor0
----
13505

skipif mysql # not compatible
query I rowsort label-2202
SELECT - - SUM ( - ( - - col0 ) ) * - 73 AS col1 FROM tab2 AS cor0
----
13505

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 81 NOT BETWEEN - - ( 77 ) AND + col1 + col2
----
64
77
40
75
67
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2204
SELECT DISTINCT ( + - MIN( + col2 ) ) AS col2 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-2204
SELECT DISTINCT ( + - MIN ( + col2 ) ) AS col2 FROM tab2 AS cor0
----
-23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2, + col1 col2 FROM tab0 AS cor0
----
10
21
47
81
99
1

query I rowsort
SELECT ALL + col0 AS col2 FROM tab2 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query II rowsort label-2207
SELECT 51 AS col2, SUM( - 59 ) FROM tab2 AS cor0
----
51
-177

skipif mysql # not compatible
query II rowsort label-2207
SELECT 51 AS col2, SUM ( - 59 ) FROM tab2 AS cor0
----
51
-177

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2208
SELECT - COUNT( * ) + 13 AS col1, - MIN( DISTINCT CAST( 94 AS SIGNED ) ) * + COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
10
-282

skipif mysql # not compatible
query II rowsort label-2208
SELECT - COUNT ( * ) + 13 AS col1, - MIN ( DISTINCT CAST ( 94 AS INTEGER ) ) * + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
10
-282

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT col1 <= NULL
----

query I rowsort
SELECT DISTINCT + col0 FROM tab2 WHERE NOT - + 9 >= col1
----
46
64
75

query I rowsort
SELECT + col0 FROM tab2 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2212
SELECT COUNT( * ) col0 FROM tab2 WHERE NULL > NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2212
SELECT COUNT ( * ) col0 FROM tab2 WHERE NULL > NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2213
SELECT ALL - col2 + - + col1 + + 80 DIV - 28 AS col2 FROM tab2
----
-119
-127
-76

skipif mysql # not compatible
query I rowsort label-2213
SELECT ALL - col2 + - + col1 + + 80 / - 28 AS col2 FROM tab2
----
-119
-127
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2214
SELECT DISTINCT + - CAST( + COUNT( * ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2214
SELECT DISTINCT + - CAST ( + COUNT ( * ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT ( + 26 ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
26
26
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2216
SELECT ALL CAST( - 38 AS SIGNED ) - + col2 AS col0 FROM tab0 AS cor0 WHERE NOT 75 <= + col2
----
-48
-85

skipif mysql # not compatible
query I rowsort label-2216
SELECT ALL CAST ( - 38 AS INTEGER ) - + col2 AS col0 FROM tab0 AS cor0 WHERE NOT 75 <= + col2
----
-48
-85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 19 col1 FROM tab0 AS cor0
----
-19

query I rowsort
SELECT 87 + - + col1 AS col1 FROM tab1
----
40
73
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2219
SELECT + SUM( ALL + 60 ) DIV ( - 70 ) + + + SUM( DISTINCT - 63 ) AS col1 FROM tab2
----
-65

skipif mysql # not compatible
query I rowsort label-2219
SELECT + SUM ( ALL + 60 ) / ( - 70 ) + + + SUM ( DISTINCT - 63 ) AS col1 FROM tab2
----
-65

query I rowsort
SELECT - col2 * col1 + - ( - col1 ) FROM tab2
----
-1122
-3003
-3819

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2221
SELECT 35 + + CAST( + CAST( NULL AS SIGNED ) AS DECIMAL ) AS col2, CAST( col0 AS SIGNED ) FROM tab2
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-2221
SELECT 35 + + CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) AS col2, CAST ( col0 AS INTEGER ) FROM tab2
----
NULL
46
NULL
64
NULL
75

query I rowsort
SELECT - 5 AS col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 74665fbb47d5b17da011bca567195b21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2223
SELECT ( + 26 ) * + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2223
SELECT ( + 26 ) * + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2224
SELECT ALL + CAST( NULL AS DECIMAL ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2224
SELECT ALL + CAST ( NULL AS REAL ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( - + 95 ) + 4 FROM tab2 AS cor0
----
-91
-91
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-2226
SELECT col2 DIV - 26 FROM tab2 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-2226
SELECT col2 / - 26 FROM tab2 AS cor0
----
-1
-2
0

query I rowsort
SELECT DISTINCT - 12 * - 94 + - 53 AS col2 FROM tab1 AS cor0
----
1075

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 80 IS NULL
----

query I rowsort
SELECT 61 FROM tab0 AS cor0 WHERE col2 * - col2 + - col2 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col1 + + + col0 NOT BETWEEN NULL AND - - col2 + 12 AND 29 <> - - col2
----
15
81
47
87
21
10

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2231
SELECT - 8 * - - col0 - + - 68 * col0, CAST( NULL AS SIGNED ) col2 FROM tab2
----
2760
NULL
3840
NULL
4500
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2231
SELECT - 8 * - - col0 - + - 68 * col0, CAST ( NULL AS INTEGER ) col2 FROM tab2
----
2760
NULL
3840
NULL
4500
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 9 col1 FROM tab1 WHERE + col0 + - 40 IS NOT NULL
----
9
9
9

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + 36 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2234
SELECT SUM( ALL - col1 ) FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-2234
SELECT SUM ( ALL - col1 ) FROM tab0
----
-103

query II rowsort
SELECT ALL col2 AS col1, + col2 FROM tab2
----
23
23
40
40
58
58

query I rowsort
SELECT - ( + 75 ) AS col1 FROM tab0
----
-75
-75
-75

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 24 BETWEEN + - 40 AND + + col2
----
46
51
23

onlyif mysql # DIV for integer division: 
query I rowsort label-2238
SELECT DISTINCT col1 DIV + 40 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2238
SELECT DISTINCT col1 / + 40 FROM tab2 AS cor0
----
1

query I rowsort
SELECT + col1 - ( - col1 ) FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2240
SELECT ALL COUNT( DISTINCT + + col1 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2240
SELECT ALL COUNT ( DISTINCT + + col1 ) FROM tab2 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2241
SELECT DISTINCT - COUNT( * ) col0 FROM tab1 AS cor0 WHERE + 38 IS NOT NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2241
SELECT DISTINCT - COUNT ( * ) col0 FROM tab1 AS cor0 WHERE + 38 IS NOT NULL
----
-3

query I rowsort
SELECT - 86 AS col1 FROM tab1 WHERE ( NULL ) > col1 / col2
----

query I rowsort
SELECT - 69 + col2 * + col0 FROM tab0
----
636
801
9534

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) NOT BETWEEN - col2 + 60 AND - col2
----

query I rowsort
SELECT DISTINCT 15 - 59 AS col1 FROM tab1
----
-44

query III rowsort
SELECT ALL * FROM tab0 WHERE - 35 / + col1 IN ( - col0 )
----

query I rowsort
SELECT DISTINCT + 34 + - col2 AS col1 FROM tab1
----
-25
-34
-62

query I rowsort
SELECT 45 + 60 * ( col2 ) AS col1 FROM tab2
----
1425
2445
3525

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - col1 * col2 + - col1 ) IS NULL
----

query I rowsort
SELECT 82 + col1 AS col2 FROM tab0
----
103
163
83

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2251
SELECT * FROM tab0 WHERE NOT + CAST( NULL AS SIGNED ) + 25 IS NULL
----

skipif mysql # not compatible
query III rowsort label-2251
SELECT * FROM tab0 WHERE NOT + CAST ( NULL AS INTEGER ) + 25 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2252
SELECT CAST( - 33 AS SIGNED ) * - COUNT( * ) AS col0 FROM tab0 WHERE NULL IS NULL
----
99

skipif mysql # not compatible
query I rowsort label-2252
SELECT CAST ( - 33 AS INTEGER ) * - COUNT ( * ) AS col0 FROM tab0 WHERE NULL IS NULL
----
99

query I rowsort
SELECT col0 + - col0 FROM tab0 WHERE ( 92 + + ( + col1 ) ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2254
SELECT + COUNT( ALL - col2 ) * 71 FROM tab0 WHERE NOT - col2 IS NULL
----
213

skipif mysql # not compatible
query I rowsort label-2254
SELECT + COUNT ( ALL - col2 ) * 71 FROM tab0 WHERE NOT - col2 IS NULL
----
213

query I rowsort
SELECT DISTINCT - col1 * + 27 AS col0 FROM tab0
----
-2187
-27
-567

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2256
SELECT + MIN( ALL CAST( NULL AS DECIMAL ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2256
SELECT + MIN ( ALL CAST ( NULL AS REAL ) ) FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 56 col2 FROM tab0
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2258
SELECT col2 FROM tab0 WHERE NOT 15 * + ( col0 ) + CAST( NULL AS SIGNED ) NOT IN ( - col0 * 71 - - col0 )
----

skipif mysql # not compatible
query I rowsort label-2258
SELECT col2 FROM tab0 WHERE NOT 15 * + ( col0 ) + CAST ( NULL AS INTEGER ) NOT IN ( - col0 * 71 - - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2259
SELECT + ( - COUNT( * ) ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-2259
SELECT + ( - COUNT ( * ) ) AS col0 FROM tab2
----
-3

query I rowsort
SELECT 12 - + col2 AS col0 FROM tab2
----
-11
-28
-46

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2261
SELECT ALL * FROM tab2 WHERE NOT + CAST( col1 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2261
SELECT ALL * FROM tab2 WHERE NOT + CAST ( col1 AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT + 91 + - 63 FROM tab0
----
28
28
28

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col0 = ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2264
SELECT - MIN( + col2 ) AS col0 FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-2264
SELECT - MIN ( + col2 ) AS col0 FROM tab2
----
-23

query I rowsort
SELECT - col2 AS col1 FROM tab2 WHERE + col0 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col0 ) IS NOT NULL
----

query I rowsort
SELECT col0 * + ( col2 ) FROM tab2
----
1058
2560
4350

query I rowsort
SELECT ALL + 39 - 17 * col2 AS col0 FROM tab2
----
-352
-641
-947

query I rowsort
SELECT 23 + - col0 AS col0 FROM tab0
----
-64
-74
8

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 79 * col2 IN ( col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2271
SELECT 29 + - 91 DIV col1 FROM tab2
----
28
28
28

skipif mysql # not compatible
query I rowsort label-2271
SELECT 29 + - 91 / col1 FROM tab2
----
28
28
28

query I rowsort
SELECT ALL 39 FROM tab1 WHERE - col0 NOT IN ( + col0 * 98 )
----
39
39
39

onlyif mysql # aggregate syntax: 
query I rowsort label-2273
SELECT DISTINCT ( 51 ) + COUNT( * ) AS col2 FROM tab1 WHERE ( - col2 - - col2 ) NOT IN ( + col1 * col1 )
----
54

skipif mysql # not compatible
query I rowsort label-2273
SELECT DISTINCT ( 51 ) + COUNT ( * ) AS col2 FROM tab1 WHERE ( - col2 - - col2 ) NOT IN ( + col1 * col1 )
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-2274
SELECT - 62 * - 32 + - SUM( - ( - ( col2 ) ) ) FROM tab1
----
1761

skipif mysql # not compatible
query I rowsort label-2274
SELECT - 62 * - 32 + - SUM ( - ( - ( col2 ) ) ) FROM tab1
----
1761

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( 77 ) <= + col0
----
87
21
10
97
1
99

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 / 10 >= col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col1 + col2 FROM tab1 WHERE col0 + col0 * + col2 IS NOT NULL
----
21
54
82

query I rowsort
SELECT 2 / + col2 AS col2 FROM tab0 WHERE NOT col1 NOT BETWEEN col2 + col0 AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 / 31 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE ( col1 + 30 ) NOT IN ( + col2 )
----
10
47
99

query I rowsort
SELECT ALL + 18 * - col2 + - col1 * 83 AS col0 FROM tab0 AS cor0
----
-1865
-1923
-7569

query I rowsort
SELECT + 28 - col1 FROM tab1
----
-19
14
23

query I rowsort
SELECT - 89 AS col0 FROM tab2 WHERE ( NULL ) BETWEEN + col2 AND + 8
----

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN 71 * + col1 AND NULL
----

query I rowsort
SELECT - col0 AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2286
SELECT ALL + + CAST( NULL AS SIGNED ) * + AVG ( DISTINCT - 25 ) + + AVG ( ALL col0 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2286
SELECT ALL + + CAST ( NULL AS INTEGER ) * + AVG ( DISTINCT - 25 ) + + AVG ( ALL col0 ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - 64 + 95 AS col0 FROM tab1 cor0
----
31
31
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + 72 col1 FROM tab0 AS cor0
----
159
169
87

query I rowsort
SELECT DISTINCT + col0 * + 18 AS col0 FROM tab0 cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT ( ( - col0 ) ) * col1 + col1 AS col2 FROM tab2 AS cor0
----
-2295
-4851
-4958

query I rowsort
SELECT - col0 + + ( + col2 + col2 ) AS col0 FROM tab0 AS cor0
----
-67
101
79

query I rowsort
SELECT + col2 + 97 AS col1 FROM tab1 AS cor0
----
156
165
193

onlyif mysql # aggregate syntax: 
query I rowsort label-2293
SELECT 85 * - COUNT( * ) + - MAX( col1 ) AS col0 FROM tab2 AS cor0
----
-332

skipif mysql # not compatible
query I rowsort label-2293
SELECT 85 * - COUNT ( * ) + - MAX ( col1 ) AS col0 FROM tab2 AS cor0
----
-332

query I rowsort
SELECT + 67 FROM tab0 AS cor0 WHERE - col0 + - ( - 52 ) IS NOT NULL
----
67
67
67

query I rowsort
SELECT DISTINCT - + col1 + + col2 * col0 AS col1 FROM tab2 AS cor0
----
1007
2483
4283

onlyif mysql # aggregate syntax: 
query I rowsort label-2296
SELECT DISTINCT + 35 - + COUNT( * ) FROM tab1 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-2296
SELECT DISTINCT + 35 - + COUNT ( * ) FROM tab1 AS cor0
----
32

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - col1 + 69 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2298
SELECT DISTINCT - SUM( DISTINCT 6 ) + + 80 FROM tab1 WHERE NOT ( 57 ) IS NULL
----
74

skipif mysql # not compatible
query I rowsort label-2298
SELECT DISTINCT - SUM ( DISTINCT 6 ) + + 80 FROM tab1 WHERE NOT ( 57 ) IS NULL
----
74

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 BETWEEN - 61 * col0 AND NULL
----

query I rowsort
SELECT DISTINCT 18 AS col0 FROM tab0 WHERE - col2 * - 57 < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2301
SELECT AVG ( - col2 ) + COUNT( * ) col2 FROM tab0 WHERE NOT NULL = NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2301
SELECT AVG ( - col2 ) + COUNT ( * ) col2 FROM tab0 WHERE NOT NULL = NULL
----
NULL

query I rowsort
SELECT DISTINCT col1 * - col1 * col0 FROM tab0
----
-38367
-97
-98415

query I rowsort
SELECT ALL - col0 * 1 FROM tab0
----
-15
-87
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2304
SELECT + MIN( ALL + CAST( 95 AS SIGNED ) ) col0 FROM tab0 AS cor0
----
95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2304
SELECT + MIN ( ALL + CAST ( 95 AS INTEGER ) ) col0 FROM tab0 AS cor0
----
95

query I rowsort
SELECT DISTINCT - 81 AS col1 FROM tab2 AS cor0
----
-81

query I rowsort
SELECT DISTINCT - col0 FROM tab1 cor0 WHERE NOT - col0 NOT BETWEEN ( col2 ) AND + col0
----

query I rowsort
SELECT ALL + col0 * + ( + col2 ) * col0 AS col1 FROM tab2
----
163840
326250
48668

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2308
SELECT CAST( NULL AS SIGNED ) AS col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2308
SELECT CAST ( NULL AS INTEGER ) AS col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT - 48 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 31c94943c073954e4ca20b170ab61f8c

onlyif mysql # aggregate syntax: 
query I rowsort label-2310
SELECT - COUNT( * ) + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2310
SELECT - COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2311
SELECT ALL + + 21 * + COUNT( * ) FROM tab0 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-2311
SELECT ALL + + 21 * + COUNT ( * ) FROM tab0 AS cor0
----
63

query I rowsort
SELECT 15 * - + col1 FROM tab1 AS cor0
----
-210
-705
-75

query I rowsort
SELECT DISTINCT + col1 + 8 + + + col2 AS col0 FROM tab0 AS cor0
----
108
136
39

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 81 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2315
SELECT + + CAST( + 59 AS SIGNED ) FROM tab2 AS cor0
----
59
59
59

skipif mysql # not compatible
query I rowsort label-2315
SELECT + + CAST ( + 59 AS INTEGER ) FROM tab2 AS cor0
----
59
59
59

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - 91 ) = + col1
----

query I rowsort
SELECT DISTINCT - + ( - - ( - + col1 ) ) FROM tab2 cor0
----
51
67
77

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL = 80
----

query I rowsort
SELECT ALL col1 + - + col1 AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT ( col1 ) FROM tab0 WHERE - - col2 <> 5 * - col0 + + col1
----
1
21
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - col2 + 31 col1 FROM tab0 WHERE - col0 IS NOT NULL
----
-2178
-69
-9770

query I rowsort
SELECT col2 AS col1 FROM tab0 WHERE NULL BETWEEN 37 * 45 * 35 + 91 * 97 + 98 AND col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2323
SELECT DISTINCT col2 DIV + - col1 + - col0 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-2323
SELECT DISTINCT col2 / + - col1 + - col0 FROM tab2
----
-46
-64
-75

query III rowsort
SELECT ALL * FROM tab1 WHERE ( 97 ) NOT BETWEEN - ( - col0 ) AND 25
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-2325
SELECT + 24 DIV - col2, col0 FROM tab1
----
0
51
0
85
0
91

skipif mysql # not compatible
query II rowsort label-2325
SELECT + 24 / - col2, col0 FROM tab1
----
0
51
0
85
0
91

query I rowsort
SELECT DISTINCT col2 + + + col2 AS col2 FROM tab1
----
118
136
192

query I rowsort
SELECT - 51 + col0 FROM tab2 WHERE - col0 IS NOT NULL
----
-5
13
24

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL IN ( + 80 * - col2 )
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE col1 + + + 26 * - - col2 <> ( - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-2330
SELECT ALL - 76 * - - 97 + + + 98 - + - col1 DIV 30 FROM tab2 cor0
----
-7272
-7272
-7273

skipif mysql # not compatible
query I rowsort label-2330
SELECT ALL - 76 * - - 97 + + + 98 - + - col1 / 30 FROM tab2 cor0
----
-7272
-7272
-7273

query I rowsort
SELECT 24 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
24
24
24

query I rowsort
SELECT DISTINCT 57 - + col1 FROM tab0
----
-24
36
56

onlyif mysql # DIV for integer division: 
query I rowsort label-2333
SELECT DISTINCT 45 DIV - - col1 - - col0 FROM tab1
----
54
91
94

skipif mysql # not compatible
query I rowsort label-2333
SELECT DISTINCT 45 / - - col1 - - col0 FROM tab1
----
54
91
94

query I rowsort
SELECT - 44 * - col0 AS col1 FROM tab0
----
3828
4268
660

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 - - 90 NOT IN ( - - col0 + - 99 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 44 col2 FROM tab1 AS cor0
----
-44
-44
-44

query I rowsort
SELECT + col1 + - 78 FROM tab2 AS cor0 WHERE - col2 IS NOT NULL
----
-1
-11
-27

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 >= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2339
SELECT ALL col2 AS col1 FROM tab0 cor0 WHERE NOT NULL IN ( col2, ( - CAST( col1 AS SIGNED ) ) - col1 * col2 )
----

skipif mysql # not compatible
query I rowsort label-2339
SELECT ALL col2 AS col1 FROM tab0 cor0 WHERE NOT NULL IN ( col2, ( - CAST ( col1 AS INTEGER ) ) - col1 * col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 27 col1 FROM tab2 AS cor0
----
27
27
27

onlyif mysql # aggregate syntax: 
query II rowsort label-2341
SELECT DISTINCT - + MAX( DISTINCT + ( + col1 ) ), - COUNT( * ) * 76 AS col0 FROM tab2 cor0
----
-77
-228

skipif mysql # not compatible
query II rowsort label-2341
SELECT DISTINCT - + MAX ( DISTINCT + ( + col1 ) ), - COUNT ( * ) * 76 AS col0 FROM tab2 cor0
----
-77
-228

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 <= ( NULL )
----

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab1 WHERE NULL > + ( + + col1 ) + col0 * 24
----

query I rowsort
SELECT col0 FROM tab0 WHERE NOT col2 * - col2 * - + col1 * + ( - col2 ) IS NULL
----
15
87
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2345
SELECT CAST( + COUNT( * ) AS SIGNED ) col0 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2345
SELECT CAST ( + COUNT ( * ) AS INTEGER ) col0 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2346
SELECT DISTINCT + MAX( ALL - col2 ) FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-2346
SELECT DISTINCT + MAX ( ALL - col2 ) FROM tab1
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-2347
SELECT DISTINCT - COUNT( * ) * + 22 col2 FROM tab1
----
-66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2347
SELECT DISTINCT - COUNT ( * ) * + 22 col2 FROM tab1
----
-66

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( 56 * + 12 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2349
SELECT ALL - + 59 * - - COUNT( * ) + 54 FROM tab2 AS cor0 WHERE NOT - 30 IS NULL
----
-123

skipif mysql # not compatible
query I rowsort label-2349
SELECT ALL - + 59 * - - COUNT ( * ) + 54 FROM tab2 AS cor0 WHERE NOT - 30 IS NULL
----
-123

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2350
SELECT + col1 * + col0 col2, CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
1215
NULL
1827
NULL
97
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2350
SELECT + col1 * + col0 col2, CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
1215
NULL
1827
NULL
97
NULL

query I rowsort
SELECT + 89 - + - col2 + col0 AS col2 FROM tab2 AS cor0 WHERE NOT + ( - 67 ) = ( + - col1 )
----
158
193

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 * - col1, 5 col2 FROM tab0 AS cor0
----
210
5
3807
5
99
5

query II rowsort
SELECT ALL - + 52 AS col0, - col2 FROM tab0 cor0
----
-52
-10
-52
-47
-52
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2354
SELECT - COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-2354
SELECT - COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

query I rowsort
SELECT - col2 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-10
-47
-99

query I rowsort
SELECT + col2 FROM tab1 WHERE NOT + 34 + + col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 49 * - col1 * - 26 AS col0, - 37 col0 FROM tab2
----
64974
-37
85358
-37
98098
-37

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 21 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2359
SELECT DISTINCT + 5 + COUNT( * ) * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2359
SELECT DISTINCT + 5 + COUNT ( * ) * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT 23 + - + 12 * + col2 * 98 AS col0 FROM tab2 AS cor0
----
-27025
-47017
-68185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2361
SELECT ALL - col0 + + + 86 + ( 69 ) * - 30 FROM tab0 WHERE + + CAST( NULL AS SIGNED ) * col1 - - 45 = - - col0
----

skipif mysql # not compatible
query I rowsort label-2361
SELECT ALL - col0 + + + 86 + ( 69 ) * - 30 FROM tab0 WHERE + + CAST ( NULL AS INTEGER ) * col1 - - 45 = - - col0
----

query III rowsort
SELECT * FROM tab2 WHERE col1 NOT BETWEEN - 30 * + - 13 + col0 AND + 60 * - col2 * + col1 + col1 - - 60
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col1 + - 5 - + col2 * + 67 * - col1 AS col0 FROM tab2
----
206432
260424
78637

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col2 FROM tab2 WHERE ( col2 * - + 90 + + - col0 * - 30 ) IS NOT NULL
----
51
67
77

query I rowsort
SELECT DISTINCT + 18 * - 47 FROM tab2 WHERE NULL IS NULL
----
-846

onlyif mysql # aggregate syntax: 
query I rowsort label-2366
SELECT ALL - MIN( - ( col1 ) ) FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-2366
SELECT ALL - MIN ( - ( col1 ) ) FROM tab0
----
81

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 1 <= + 77
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-2368
SELECT DISTINCT col0 + 51 + + col0 DIV - col1 + 3 * + + col0 + col0 AS col0 FROM tab0 cor0
----
126
439
482

skipif mysql # not compatible
query I rowsort label-2368
SELECT DISTINCT col0 + 51 + + col0 / - col1 + 3 * + + col0 + col0 AS col0 FROM tab0 cor0
----
126
439
482

query II rowsort
SELECT + + 25 AS col1, - col2 + + col2 FROM tab0 AS cor0
----
25
0
25
0
25
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2370
SELECT - - 76 - ( MIN( - - 57 ) ) + + COUNT( * ) FROM tab2 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-2370
SELECT - - 76 - ( MIN ( - - 57 ) ) + + COUNT ( * ) FROM tab2 AS cor0
----
22

query I rowsort
SELECT - col1 - - - 0 AS col2 FROM tab1 AS cor0
----
-14
-47
-5

query I rowsort
SELECT ALL - col0 - + 54 AS col0 FROM tab1 AS cor0
----
-105
-139
-145

query III rowsort
SELECT * FROM tab2 WHERE - 95 + - col2 * - + col1 / - 57 - + 15 + - col2 + + + 98 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 71 - + 41 FROM tab1
----
30
30
30

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2375
SELECT CAST( NULL AS DECIMAL ) AS col2, col2 col0 FROM tab2 WHERE col1 IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2375
SELECT CAST ( NULL AS REAL ) AS col2, col2 col0 FROM tab2 WHERE col1 IS NULL
----

query I rowsort
SELECT + + ( - - 39 ) * - + col1 FROM tab0 AS cor0
----
-3159
-39
-819

onlyif mysql # aggregate syntax: 
query I rowsort label-2377
SELECT - 5 * - SUM( + col2 ) AS col0 FROM tab1 AS cor0
----
1115

skipif mysql # not compatible
query I rowsort label-2377
SELECT - 5 * - SUM ( + col2 ) AS col0 FROM tab1 AS cor0
----
1115

query I rowsort
SELECT + - col1 * + col1 + + col0 - col2 * ( - ( + col0 ) ) FROM tab1 AS cor0
----
4070
4751
5075

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col0 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2380
SELECT COUNT( ALL - - col1 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2380
SELECT COUNT ( ALL - - col1 ) FROM tab0 AS cor0
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND ( - + col0 )
----

query I rowsort
SELECT DISTINCT ( - 58 ) FROM tab2
----
-58

query I rowsort
SELECT ALL ( - col1 ) FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2384
SELECT ALL + MIN( + - col1 ) FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-2384
SELECT ALL + MIN ( + - col1 ) FROM tab2
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-2385
SELECT + MAX( + 93 ) FROM tab2
----
93

skipif mysql # not compatible
query I rowsort label-2385
SELECT + MAX ( + 93 ) FROM tab2
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-2386
SELECT - + COUNT( DISTINCT - 77 ) col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2386
SELECT - + COUNT ( DISTINCT - 77 ) col0 FROM tab0 AS cor0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2387
SELECT - + CAST( NULL AS SIGNED ) * + - COUNT( * ) + - COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2387
SELECT - + CAST ( NULL AS INTEGER ) * + - COUNT ( * ) + - COUNT ( * ) FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT ALL - col1 AS col2, col1 FROM tab2 AS cor0
----
-51
51
-67
67
-77
77

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 66 < col1
----
46
51
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 col2, ( - col1 ) * - col1 AS col0 FROM tab2
----
51
2601
67
4489
77
5929

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2391
SELECT DISTINCT 89 * - + CAST( + - ( col0 ) AS SIGNED ) * + + ( + + 85 ) + - col0 AS col0, 92 * + - 73 AS col0 FROM tab0
----
113460
-6716
658068
-6716
733708
-6716

skipif mysql # not compatible
query II rowsort label-2391
SELECT DISTINCT 89 * - + CAST ( + - ( col0 ) AS INTEGER ) * + + ( + + 85 ) + - col0 AS col0, 92 * + - 73 AS col0 FROM tab0
----
113460
-6716
658068
-6716
733708
-6716

query I rowsort
SELECT - col2 + + 89 FROM tab2 AS cor0
----
31
49
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2393
SELECT + MIN( ALL - col2 ) AS col2 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-2393
SELECT + MIN ( ALL - col2 ) AS col2 FROM tab1 AS cor0
----
-96

query II rowsort
SELECT + col1 AS col1, - col2 * - + 17 FROM tab1 cor0
----
14
1632
47
1156
5
1003

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 * + 13 + + col0 col2 FROM tab0 AS cor0
----
-1038
-186
84

query I rowsort
SELECT DISTINCT - col2 * col1 * col2 + + - 67 FROM tab2 AS cor0
----
-123267
-225455
-27046

query I rowsort
SELECT + col1 FROM tab0 AS cor0 WHERE col1 + - + col2 NOT BETWEEN ( - 0 ) AND NULL
----
1

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col1 > NULL
----

query II rowsort
SELECT ALL ( col1 ) * col0 + - 49 + + col1, col1 FROM tab1
----
381
5
4275
47
679
14

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2400
SELECT * FROM tab1 WHERE col2 * - + col1 + col2 * + CAST( - 72 AS SIGNED ) * + - col2 * - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2400
SELECT * FROM tab1 WHERE col2 * - + col1 + col2 * + CAST ( - 72 AS INTEGER ) * + - col2 * - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE + 46 IS NULL
----

query I rowsort
SELECT ALL ( - - col2 ) AS col1 FROM tab2
----
23
40
58

query II rowsort
SELECT 82 - - + 72, + ( - col2 ) AS col1 FROM tab2
----
154
-23
154
-40
154
-58

query I rowsort
SELECT col2 - + + 40 FROM tab2
----
-17
0
18

query III rowsort
SELECT * FROM tab2 WHERE ( NOT - 80 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 + + col0, - col0 col2 FROM tab1
----
-45
-51
23
-91
26
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-2407
SELECT + COUNT( * ) + - - COUNT( + - col2 ) AS col2 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-2407
SELECT + COUNT ( * ) + - - COUNT ( + - col2 ) AS col2 FROM tab2
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2408
SELECT CAST( CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab1 AS cor0 WHERE NULL <= NULL
----

skipif mysql # not compatible
query I rowsort label-2408
SELECT CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab1 AS cor0 WHERE NULL <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + 7 AND - 92 / + - 52 * - 45 + - col0 + - - ( col0 ) + - col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 < ( + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 22 > + 62
----

query I rowsort
SELECT ALL + col0 + 61 FROM tab1 cor0
----
112
146
152

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2413
SELECT DISTINCT ( - CAST( NULL AS SIGNED ) ) / - col0 - col1 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2413
SELECT DISTINCT ( - CAST ( NULL AS INTEGER ) ) / - col0 - col1 AS col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2414
SELECT DISTINCT MIN( - 74 ) AS col1 FROM tab0
----
-74

skipif mysql # not compatible
query I rowsort label-2414
SELECT DISTINCT MIN ( - 74 ) AS col1 FROM tab0
----
-74

query I rowsort
SELECT col0 * - 86 * + 19 FROM tab2
----
-104576
-122550
-75164

onlyif mysql # aggregate syntax: 
query I rowsort label-2416
SELECT DISTINCT + ( - MIN( ALL + ( - 29 ) ) ) AS col0 FROM tab0
----
29

skipif mysql # not compatible
query I rowsort label-2416
SELECT DISTINCT + ( - MIN ( ALL + ( - 29 ) ) ) AS col0 FROM tab0
----
29

query I rowsort
SELECT col1 * - - 93 FROM tab1
----
1302
4371
465

query I rowsort
SELECT ALL - col2 FROM tab1 WHERE NOT + - ( col1 ) * - + col0 + + 76 >= + 74 * - + 23 / + 74
----

query II rowsort
SELECT DISTINCT col0, 98 FROM tab1
----
51
98
85
98
91
98

onlyif mysql # aggregate syntax: 
query I rowsort label-2420
SELECT - - SUM( ALL + 77 ) FROM tab2 AS cor0
----
231

skipif mysql # not compatible
query I rowsort label-2420
SELECT - - SUM ( ALL + 77 ) FROM tab2 AS cor0
----
231

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2421
SELECT ALL + ( - + COUNT( - - 27 ) ) + - CAST( MIN( + + col0 ) AS SIGNED ) AS col0 FROM tab1 cor0 WHERE NOT col0 IS NULL
----
-54

skipif mysql # not compatible
query I rowsort label-2421
SELECT ALL + ( - + COUNT ( - - 27 ) ) + - CAST ( MIN ( + + col0 ) AS INTEGER ) AS col0 FROM tab1 cor0 WHERE NOT col0 IS NULL
----
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-2422
SELECT ALL - col2 DIV + 92 * - + 68 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2422
SELECT ALL - col2 / + 92 * - + 68 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2423
SELECT - SUM( + 3 ) FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-2423
SELECT - SUM ( + 3 ) FROM tab2
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2424
SELECT DISTINCT * FROM tab1 WHERE NOT CAST( - 86 AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2424
SELECT DISTINCT * FROM tab1 WHERE NOT CAST ( - 86 AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 65 * - col2 * + col0 AS col2 FROM tab0
----
45825
56550
624195

query III rowsort
SELECT * FROM tab1 WHERE NOT - - ( - + col1 ) <= 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-2428
SELECT DISTINCT - COUNT( ALL - col2 ) + - 93 AS col0 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-2428
SELECT DISTINCT - COUNT ( ALL - col2 ) + - 93 AS col0 FROM tab1 AS cor0
----
-96

query I rowsort
SELECT - + 75 AS col0 FROM tab2 AS cor0 WHERE NOT 92 IS NULL
----
-75
-75
-75

query II rowsort
SELECT col2 AS col0, col0 * - col2 FROM tab0
----
10
-870
47
-705
99
-9603

query I rowsort
SELECT 87 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL col1 * 49 * 15 + ( + col0 ) AS col0 FROM tab2 AS cor0
----
37531
49320
56659

query I rowsort
SELECT - 49 + - + col2 FROM tab1 AS cor0
----
-108
-117
-145

onlyif mysql # DIV for integer division: 
query I rowsort label-2434
SELECT DISTINCT - 64 DIV + col2 + col1 col2 FROM tab0 AS cor0
----
1
15
80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2434
SELECT DISTINCT - 64 / + col2 + col1 col2 FROM tab0 AS cor0
----
1
15
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2435
SELECT + + ( 17 ) + SUM( - col2 ) col1 FROM tab2 AS cor0
----
-104

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2435
SELECT + + ( 17 ) + SUM ( - col2 ) col1 FROM tab2 AS cor0
----
-104

query I rowsort
SELECT ALL 62 + + + col2 * 39 FROM tab1 AS cor0
----
2363
2714
3806

onlyif mysql # aggregate syntax: 
query I rowsort label-2437
SELECT DISTINCT - MAX( DISTINCT col1 ) FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-2437
SELECT DISTINCT - MAX ( DISTINCT col1 ) FROM tab2 AS cor0
----
-77

query I rowsort
SELECT - col1 * + - 31 + - 87 FROM tab0 AS cor0
----
-56
2424
564

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2439
SELECT ALL col0 FROM tab0 AS cor0 WHERE col0 * - 74 + 59 + - CAST( col1 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-2439
SELECT ALL col0 FROM tab0 AS cor0 WHERE col0 * - 74 + 59 + - CAST ( col1 AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2440
SELECT ALL - COUNT( ALL + + 71 ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-2440
SELECT ALL - COUNT ( ALL + + 71 ) AS col1 FROM tab1
----
-3

query I rowsort
SELECT - ( - 68 ) * 6 FROM tab1
----
408
408
408

onlyif mysql # aggregate syntax: 
query I rowsort label-2442
SELECT DISTINCT - COUNT( DISTINCT - col1 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-2442
SELECT DISTINCT - COUNT ( DISTINCT - col1 ) FROM tab2
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 49 - 84 col1 FROM tab0 AS cor0
----
-35
-35
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-2444
SELECT - MAX( ALL col2 ) AS col0 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-2444
SELECT - MAX ( ALL col2 ) AS col0 FROM tab0 AS cor0
----
-99

query I rowsort
SELECT DISTINCT ( - ( - col1 ) ) FROM tab0
----
1
21
81

query I rowsort
SELECT DISTINCT - 34 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-2447
SELECT DISTINCT MIN( + col0 ) FROM tab1 cor0
----
51

skipif mysql # not compatible
query I rowsort label-2447
SELECT DISTINCT MIN ( + col0 ) FROM tab1 cor0
----
51

query I rowsort
SELECT + - col0 * - col1 + 89 FROM tab1 AS cor0
----
4366
514
803

query II rowsort
SELECT - col0 * - - col1, - 62 AS col1 FROM tab0 cor0
----
-1215
-62
-1827
-62
-97
-62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2450
SELECT - 50 * COUNT( * ) DIV ( - 7 ) FROM tab1 cor0
----
21

skipif mysql # not compatible
query I rowsort label-2450
SELECT - 50 * COUNT ( * ) / ( - 7 ) FROM tab1 cor0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-2451
SELECT ALL + COUNT( ALL - - col2 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2451
SELECT ALL + COUNT ( ALL - - col2 ) AS col0 FROM tab0 AS cor0
----
3

query I rowsort
SELECT col2 * - - col0 AS col1 FROM tab0 AS cor0
----
705
870
9603

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2453
SELECT DISTINCT COUNT( * ) DIV COUNT( DISTINCT - col1 ) AS col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2453
SELECT DISTINCT COUNT ( * ) / COUNT ( DISTINCT - col1 ) AS col0 FROM tab0 AS cor0
----
1

query I rowsort
SELECT ALL - col2 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2455
SELECT DISTINCT - ( COUNT( * ) ) FROM tab2, tab1 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-2455
SELECT DISTINCT - ( COUNT ( * ) ) FROM tab2, tab1 cor0
----
-9

query II rowsort
SELECT ALL - 76, col0 FROM tab1
----
-76
51
-76
85
-76
91

query II rowsort
SELECT ALL + 50 AS col2, col0 * - col2 FROM tab2
----
50
-1058
50
-2560
50
-4350

query I rowsort
SELECT - col1 AS col2 FROM tab1 WHERE NOT + 59 NOT BETWEEN NULL AND - + 79
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2459
SELECT - 20 DIV + col0 * + col2 * + 28 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2459
SELECT - 20 / + col0 * + col2 * + 28 AS col2 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2460
SELECT DISTINCT CAST( NULL AS SIGNED ) * - + 82 * - 19 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2460
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - + 82 * - 19 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT - col0 + 25 * - - col0 + col0 FROM tab0
----
2175
2425
375

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE NULL IS NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

query III rowsort
SELECT * FROM tab0 WHERE NOT ( 82 ) IS NULL AND NOT 32 BETWEEN + + 24 AND col0
----
15
81
47

query I rowsort
SELECT + 87 + + + col2 FROM tab1
----
146
155
183

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2465
SELECT * FROM tab1 WHERE NULL < - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2465
SELECT * FROM tab1 WHERE NULL < - - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2466
SELECT COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9

skipif mysql # not compatible
query I rowsort label-2466
SELECT COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 59 * + col1 col0 FROM tab0
----
1239
4779
59

query I rowsort
SELECT + + 16 AS col0 FROM tab2 cor0
----
16
16
16

query I rowsort
SELECT - - 49 AS col2 FROM tab0 cor0
----
49
49
49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + col2 IN ( - col0 + col1, - 22 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2471
SELECT DISTINCT COUNT( * ) FROM tab0 AS cor0 WHERE NOT - ( - col2 ) NOT IN ( - 16, + 62, + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-2471
SELECT DISTINCT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT - ( - col2 ) NOT IN ( - 16, + 62, + col0 )
----
0

query II rowsort
SELECT ALL - - 66 - - + col0, ( + col1 ) AS col2 FROM tab2 AS cor0
----
112
51
130
77
141
67

query I rowsort
SELECT ALL - ( AVG ( ALL - 83 ) ) FROM tab2 AS cor0 WHERE + 52 < NULL
----
NULL

query I rowsort
SELECT DISTINCT - 59 - + col0 * + 5 AS col0 FROM tab1 AS cor0
----
-314
-484
-514

query I rowsort
SELECT DISTINCT 74 + - col0 + - - 46 + + - col1 FROM tab1
----
-18
30
55

query I rowsort
SELECT - + 62 AS col0 FROM tab1 WHERE NULL >= col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2477
SELECT ALL + col1 - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2477
SELECT ALL + col1 - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + 94 * - - col1 - + col1 AS col0 FROM tab1
----
1302
4371
465

query I rowsort
SELECT 15 - col1 - - - 74 * - col2 * + col1 AS col0 FROM tab0
----
15534
281652
7340

query I rowsort
SELECT - col1 + 14 FROM tab1
----
-33
0
9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2481
SELECT * FROM tab0 WHERE + + CAST( NULL AS SIGNED ) - - col0 * - ( 40 ) + col1 >= - - 17 * + CAST( NULL AS SIGNED ) * - + col1 * + CAST( + 83 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2481
SELECT * FROM tab0 WHERE + + CAST ( NULL AS INTEGER ) - - col0 * - ( 40 ) + col1 >= - - 17 * + CAST ( NULL AS INTEGER ) * - + col1 * + CAST ( + 83 AS INTEGER )
----

query I rowsort
SELECT - 87 * - col1 FROM tab0 AS cor0
----
1827
7047
87

query I rowsort
SELECT DISTINCT + ( - 25 ) AS col0 FROM tab1 AS cor0
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2484
SELECT DISTINCT - col0 FROM tab1 WHERE ( + CAST( + col0 AS SIGNED ) ) IS NOT NULL
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-2484
SELECT DISTINCT - col0 FROM tab1 WHERE ( + CAST ( + col0 AS INTEGER ) ) IS NOT NULL
----
-51
-85
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( - - col0 ) AS col2, 97 * - 6 col0 FROM tab0
----
15
-582
87
-582
97
-582

onlyif mysql # aggregate syntax: 
query II rowsort label-2486
SELECT COUNT( * ) AS col2, 92 FROM tab0
----
3
92

skipif mysql # not compatible
query II rowsort label-2486
SELECT COUNT ( * ) AS col2, 92 FROM tab0
----
3
92

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 90 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 99 col1 FROM tab2 cor0
----
-99
-99
-99

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 > + + col2
----
87
21
10

query I rowsort
SELECT + col2 * - - col0 AS col1 FROM tab0 AS cor0
----
705
870
9603

onlyif mysql # aggregate syntax: 
query II rowsort label-2491
SELECT DISTINCT - COUNT( * ) AS col2, SUM( - col1 ) * - - 29 * + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-3
-5742

skipif mysql # not compatible
query II rowsort label-2491
SELECT DISTINCT - COUNT ( * ) AS col2, SUM ( - col1 ) * - - 29 * + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-3
-5742

onlyif mysql # aggregate syntax: 
query I rowsort label-2492
SELECT ALL - 15 * - 19 * - COUNT( * ) FROM tab0 AS cor0
----
-855

skipif mysql # not compatible
query I rowsort label-2492
SELECT ALL - 15 * - 19 * - COUNT ( * ) FROM tab0 AS cor0
----
-855

onlyif mysql # aggregate syntax: 
query I rowsort label-2493
SELECT DISTINCT + COUNT( ALL + col2 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2493
SELECT DISTINCT + COUNT ( ALL + col2 ) AS col1 FROM tab0 AS cor0
----
3

query I rowsort
SELECT + - 87 + + - 79 FROM tab0 AS cor0 WHERE NOT - col2 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2495
SELECT ALL 4 * - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-2495
SELECT ALL 4 * - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-12

query I rowsort
SELECT col2 + 65 * + 80 FROM tab0
----
5210
5247
5299

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2497
SELECT DISTINCT CAST( NULL AS SIGNED ) * - - COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2497
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - - COUNT ( * ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2498
SELECT COUNT( * ) + - + 39 - + 33 col2 FROM tab0
----
-69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2498
SELECT COUNT ( * ) + - + 39 - + 33 col2 FROM tab0
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2499
SELECT ALL + CAST( NULL AS SIGNED ) * + 92 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2499
SELECT ALL + CAST ( NULL AS INTEGER ) * + 92 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT + col0 + - + ( 37 ) - + - col1 * + col2, col1 FROM tab2
----
1182
51
3107
77
3924
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2501
SELECT DISTINCT col0 + CAST( + + 77 AS SIGNED ) * - col0 AS col1 FROM tab0 AS cor0
----
-1140
-6612
-7372

skipif mysql # not compatible
query I rowsort label-2501
SELECT DISTINCT col0 + CAST ( + + 77 AS INTEGER ) * - col0 AS col1 FROM tab0 AS cor0
----
-1140
-6612
-7372

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 * - col2 * - col1 col0, - 94 FROM tab2 AS cor0
----
237160
-94
260362
-94
59823
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-2503
SELECT - 54 * + ( + MAX( DISTINCT + col2 ) ) col1 FROM tab0 AS cor0
----
-5346

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2503
SELECT - 54 * + ( + MAX ( DISTINCT + col2 ) ) col1 FROM tab0 AS cor0
----
-5346

onlyif mysql # DIV for integer division: 
query I rowsort label-2504
SELECT - col0 DIV + col1 + + + 43 AS col1 FROM tab1 AS cor0
----
26
40
42

skipif mysql # not compatible
query I rowsort label-2504
SELECT - col0 / + col1 + + + 43 AS col1 FROM tab1 AS cor0
----
26
40
42

onlyif mysql # aggregate syntax: 
query I rowsort label-2505
SELECT ALL - MIN( DISTINCT - - 59 ) FROM tab2 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-2505
SELECT ALL - MIN ( DISTINCT - - 59 ) FROM tab2 AS cor0
----
-59

query I rowsort
SELECT DISTINCT - 61 + + - col0 AS col0 FROM tab1 AS cor0
----
-112
-146
-152

onlyif mysql # aggregate syntax: 
query I rowsort label-2507
SELECT ALL - + 95 + COUNT( * ) * + MAX( - col0 ) - + ( - - COUNT( * ) ) FROM tab0 AS cor0
----
-143

skipif mysql # not compatible
query I rowsort label-2507
SELECT ALL - + 95 + COUNT ( * ) * + MAX ( - col0 ) - + ( - - COUNT ( * ) ) FROM tab0 AS cor0
----
-143

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( col2 ) <> 23
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2509
SELECT COUNT( * ) * + 14 FROM tab2 cor0
----
42

skipif mysql # not compatible
query I rowsort label-2509
SELECT COUNT ( * ) * + 14 FROM tab2 cor0
----
42

query I rowsort
SELECT DISTINCT - col2 + - + col1 AS col2 FROM tab2
----
-117
-125
-74

query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( + col1 * - 73 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2512
SELECT CAST( NULL AS SIGNED ) * - ( COUNT( * ) ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2512
SELECT CAST ( NULL AS INTEGER ) * - ( COUNT ( * ) ) AS col1 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2513
SELECT DISTINCT * FROM tab2 WHERE NOT col1 + - CAST( NULL AS SIGNED ) BETWEEN NULL AND + + 75
----

skipif mysql # not compatible
query III rowsort label-2513
SELECT DISTINCT * FROM tab2 WHERE NOT col1 + - CAST ( NULL AS INTEGER ) BETWEEN NULL AND + + 75
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + 84 - - - 45 * + + 76 / - - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + - col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT - + 47 - - - col2 + - - ( + + col0 ) * + 39 FROM tab0 WHERE NOT ( col0 < col2 )
----
3336

onlyif mysql # aggregate syntax: 
query I rowsort label-2517
SELECT ALL + COUNT( * ) AS col2 FROM tab1 WHERE NOT 26 * ( col2 ) + 36 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2517
SELECT ALL + COUNT ( * ) AS col2 FROM tab1 WHERE NOT 26 * ( col2 ) + 36 IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2518
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - CAST( + col1 AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2518
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - CAST ( + col1 AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT 66 + + 9 + + 57 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2520
SELECT - COUNT( * ) * MAX( col2 ) * - COUNT( * ) AS col1 FROM tab1 AS cor0
----
864

skipif mysql # not compatible
query I rowsort label-2520
SELECT - COUNT ( * ) * MAX ( col2 ) * - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
864

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2521
SELECT - COUNT( * ) DIV - COUNT( * ) + - 80 FROM tab0 AS cor0
----
-79

skipif mysql # not compatible
query I rowsort label-2521
SELECT - COUNT ( * ) / - COUNT ( * ) + - 80 FROM tab0 AS cor0
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-2522
SELECT ALL - MAX( ALL - col2 ) AS col2 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-2522
SELECT ALL - MAX ( ALL - col2 ) AS col2 FROM tab0
----
10

query I rowsort
SELECT DISTINCT + - ( + ( + + col2 ) ) FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT + ( + - 11 ) AS col1 FROM tab1 AS cor0
----
-11
-11
-11

query I rowsort
SELECT DISTINCT - col2 * - - 66 AS col0 FROM tab2 AS cor0
----
-1518
-2640
-3828

onlyif mysql # aggregate syntax: 
query I rowsort label-2526
SELECT DISTINCT - 43 * - COUNT( * ) * + ( - ( 26 ) ) * + - MIN( - col0 ) AS col1 FROM tab0 AS cor0
----
-325338

skipif mysql # not compatible
query I rowsort label-2526
SELECT DISTINCT - 43 * - COUNT ( * ) * + ( - ( 26 ) ) * + - MIN ( - col0 ) AS col1 FROM tab0 AS cor0
----
-325338

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + + 10 = - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE + col2 NOT BETWEEN + col0 + - + col0 AND - 94 + + 88 + - col2 + - + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE + 33 + + + col2 + col1 IS NULL
----

query I rowsort
SELECT ALL - col0 * 94 AS col0 FROM tab2
----
-4324
-6016
-7050

onlyif mysql # aggregate syntax: 
query I rowsort label-2531
SELECT - COUNT( + col1 ) + + 91 * - - 75 FROM tab0 WHERE 96 * + - col2 IS NULL
----
6825

skipif mysql # not compatible
query I rowsort label-2531
SELECT - COUNT ( + col1 ) + + 91 * - - 75 FROM tab0 WHERE 96 * + - col2 IS NULL
----
6825

onlyif mysql # DIV for integer division: 
query I rowsort label-2532
SELECT col1 DIV + + col0 * + col1 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2532
SELECT col1 / + + col0 * + col1 AS col1 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2533
SELECT ALL COUNT( ALL - 96 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2533
SELECT ALL COUNT ( ALL - 96 ) AS col1 FROM tab1
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2534
SELECT col2 DIV 20 AS col2 FROM tab1
----
2
3
4

skipif mysql # not compatible
query I rowsort label-2534
SELECT col2 / 20 AS col2 FROM tab1
----
2
3
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2535
SELECT - SUM( - 74 ) FROM tab0
----
222

skipif mysql # not compatible
query I rowsort label-2535
SELECT - SUM ( - 74 ) FROM tab0
----
222

query I rowsort
SELECT ALL 96 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT + 64 + col0 FROM tab1 AS cor0
----
115
149
155

query I rowsort
SELECT col0 + + - 23 AS col1 FROM tab0 cor0
----
-8
64
74

query I rowsort
SELECT DISTINCT + 23 + - col0 + col1 AS col2 FROM tab1 AS cor0
----
-14
-21
-57

query I rowsort
SELECT ALL col1 + + 1 FROM tab0 AS cor0
----
2
22
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 80 col0 FROM tab0
----
-80
-80
-80

query II rowsort
SELECT DISTINCT + 26 AS col0, 89 FROM tab2 WHERE NOT NULL IS NOT NULL
----
26
89

onlyif mysql # aggregate syntax: 
query I rowsort label-2543
SELECT DISTINCT + - 4 + COUNT( * ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2543
SELECT DISTINCT + - 4 + COUNT ( * ) FROM tab0 AS cor0
----
-1

query I rowsort
SELECT DISTINCT + 93 + + 31 FROM tab0 AS cor0
----
124

query III rowsort
SELECT DISTINCT 76 + 2 AS col0, 18 * col1 * + + col2, col1 FROM tab2 AS cor0
----
9 values hashing to d0dc7cde3f6ce211bded36b6bf42bec7

query I rowsort
SELECT col0 - - 36 * - col0 FROM tab0 AS cor0
----
-3045
-3395
-525

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2547
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - + 67 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2547
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - + 67 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2548
SELECT 60 + - + COUNT( * ) col2 FROM tab1 AS cor0 WHERE NOT col2 * - 21 / + col0 * ( - ( - - 86 ) ) * + + ( + - 13 ) NOT IN ( CAST( col2 AS SIGNED ) )
----
60

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2548
SELECT 60 + - + COUNT ( * ) col2 FROM tab1 AS cor0 WHERE NOT col2 * - 21 / + col0 * ( - ( - - 86 ) ) * + + ( + - 13 ) NOT IN ( CAST ( col2 AS INTEGER ) )
----
60

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2549
SELECT ALL - col1 DIV + CAST( col0 AS SIGNED ) FROM tab0 AS cor0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-2549
SELECT ALL - col1 / + CAST ( col0 AS INTEGER ) FROM tab0 AS cor0
----
-5
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2550
SELECT 67 * - COUNT( * ) col2 FROM tab0
----
-201

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2550
SELECT 67 * - COUNT ( * ) col2 FROM tab0
----
-201

query II rowsort
SELECT ALL - col0 AS col0, + col2 * + - col0 * col2 FROM tab0
----
-15
-33135
-87
-8700
-97
-950697

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2552
SELECT DISTINCT - col1 * - col0 AS col0 FROM tab2 WHERE + CAST( NULL AS SIGNED ) < NULL
----

skipif mysql # not compatible
query I rowsort label-2552
SELECT DISTINCT - col1 * - col0 AS col0 FROM tab2 WHERE + CAST ( NULL AS INTEGER ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2553
SELECT ALL COUNT( * ) AS col1 FROM tab0 WHERE NOT + + ( col1 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2553
SELECT ALL COUNT ( * ) AS col1 FROM tab0 WHERE NOT + + ( col1 ) IS NULL
----
3

query I rowsort
SELECT ALL + ( + + 55 ) FROM tab0
----
55
55
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2, + 11 col0 FROM tab1
----
59
11
68
11
96
11

query II rowsort
SELECT - col1 AS col1, + 27 + - - col0 AS col0 FROM tab2 WHERE NOT - 56 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2557
SELECT ( 28 ) * - MAX( ALL + 26 ) + - ( - MIN( DISTINCT - 51 ) ) FROM tab1
----
-779

skipif mysql # not compatible
query I rowsort label-2557
SELECT ( 28 ) * - MAX ( ALL + 26 ) + - ( - MIN ( DISTINCT - 51 ) ) FROM tab1
----
-779

query I rowsort
SELECT ALL - ( + col1 ) * - col2 - col1 + - col1 FROM tab1 WHERE NOT - + 19 + - + col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2559
SELECT DISTINCT - 46 AS col1, + col0 DIV 40 * - + col0 - - + 37 AS col1 FROM tab1 AS cor0
----
-46
-133
-46
-14
-46
-145

skipif mysql # not compatible
query II rowsort label-2559
SELECT DISTINCT - 46 AS col1, + col0 / 40 * - + col0 - - + 37 AS col1 FROM tab1 AS cor0
----
-46
-133
-46
-14
-46
-145

query II rowsort
SELECT - col1 AS col2, ( - col1 ) + - col1 AS col2 FROM tab1 AS cor0
----
-14
-28
-47
-94
-5
-10

query II rowsort
SELECT ALL col2 AS col2, - 86 + col0 FROM tab0 AS cor0
----
10
1
47
-71
99
11

query I rowsort
SELECT DISTINCT - + 67 + - col1 + - col1 AS col2 FROM tab2 AS cor0
----
-169
-201
-221

query I rowsort
SELECT DISTINCT + + ( - col2 ) + - col0 AS col1 FROM tab2 AS cor0
----
-104
-133
-69

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 * + col2 * + 60 > NULL
----

query I rowsort
SELECT DISTINCT 83 + col0 FROM tab1 AS cor0
----
134
168
174

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 86 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 68 + + + col2 FROM tab1 AS cor0
----
-9
0
28

onlyif mysql # aggregate syntax: 
query I rowsort label-2568
SELECT + MAX( 95 ) + + - ( - SUM( DISTINCT 53 ) ) col1 FROM tab0
----
148

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2568
SELECT + MAX ( 95 ) + + - ( - SUM ( DISTINCT 53 ) ) col1 FROM tab0
----
148

onlyif mysql # DIV for integer division: 
query I rowsort label-2569
SELECT - col0 * col2 DIV - 46 + - 43 FROM tab1
----
63
66
91

skipif mysql # not compatible
query I rowsort label-2569
SELECT - col0 * col2 / - 46 + - 43 FROM tab1
----
63
66
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2570
SELECT 40 * - 75 * + COUNT( * ) * COUNT( * ) + COUNT( * ) FROM tab0
----
-26997

skipif mysql # not compatible
query I rowsort label-2570
SELECT 40 * - 75 * + COUNT ( * ) * COUNT ( * ) + COUNT ( * ) FROM tab0
----
-26997

onlyif mysql # aggregate syntax: 
query I rowsort label-2571
SELECT ALL - ( + - ( + + COUNT( * ) ) ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2571
SELECT ALL - ( + - ( + + COUNT ( * ) ) ) AS col2 FROM tab0
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( 34 * ( 45 ) ) = + 13
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - - 31 - - 83 AS col2 FROM tab2 AS cor0
----
114

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 col0 FROM tab1 AS cor0 WHERE NULL BETWEEN 67 * + 9 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2575
SELECT ALL + - CAST( NULL AS SIGNED ) - + 99 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2575
SELECT ALL + - CAST ( NULL AS INTEGER ) - + 99 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 61 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-61
-61
-61

query I rowsort
SELECT ALL col1 * + - 7 + + col1 AS col2 FROM tab0 AS cor0
----
-126
-486
-6

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2578
SELECT ALL * FROM tab2 cor0 WHERE NOT 45 * + col2 + CAST( NULL AS DECIMAL ) + ( 49 ) / - col2 + - col2 NOT IN ( + - col1, col2, - 79 )
----

skipif mysql # not compatible
query III rowsort label-2578
SELECT ALL * FROM tab2 cor0 WHERE NOT 45 * + col2 + CAST ( NULL AS REAL ) + ( 49 ) / - col2 + - col2 NOT IN ( + - col1, col2, - 79 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2579
SELECT DISTINCT - + 27 + COUNT( * ) FROM tab1 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-2579
SELECT DISTINCT - + 27 + COUNT ( * ) FROM tab1 AS cor0
----
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-2580
SELECT ALL - col1 * col0 DIV - col2 FROM tab2 AS cor0
----
102
123
86

skipif mysql # not compatible
query I rowsort label-2580
SELECT ALL - col1 * col0 / - col2 FROM tab2 AS cor0
----
102
123
86

query I rowsort
SELECT + col2 + - 72 FROM tab2 AS cor0
----
-14
-32
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-2582
SELECT DISTINCT + COUNT( * ) * + 15 FROM tab1 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-2582
SELECT DISTINCT + COUNT ( * ) * + 15 FROM tab1 AS cor0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-2583
SELECT ALL COUNT( * ) * MIN( ALL 92 ) AS col0 FROM tab0 AS cor0
----
276

skipif mysql # not compatible
query I rowsort label-2583
SELECT ALL COUNT ( * ) * MIN ( ALL 92 ) AS col0 FROM tab0 AS cor0
----
276

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab0 AS cor0 WHERE NOT ( - 0 IS NULL )
----
15
87
97

query I rowsort
SELECT ALL + + 59 AS col1 FROM tab2 AS cor0
----
59
59
59

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT 56 * + + 9 + - 47 + - col1 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2587
SELECT DISTINCT + 22 DIV + COUNT( * ) FROM tab2 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-2587
SELECT DISTINCT + 22 / + COUNT ( * ) FROM tab2 AS cor0
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2588
SELECT 16 FROM tab1 WHERE NOT + CAST( - - ( - ( + col2 ) ) AS SIGNED ) * + - col0 * + col1 IS NULL
----
16
16
16

skipif mysql # not compatible
query I rowsort label-2588
SELECT 16 FROM tab1 WHERE NOT + CAST ( - - ( - ( + col2 ) ) AS INTEGER ) * + - col0 * + col1 IS NULL
----
16
16
16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 66 col0 FROM tab0
----
66
66
66

query I rowsort
SELECT + 96 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
96
96
96

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - + 97 NOT IN ( + col0, col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + ( + + col1 ) FROM tab0
----
1
21
81

query I rowsort
SELECT col1 * + 42 AS col2 FROM tab2
----
2142
2814
3234

onlyif mysql # aggregate syntax: 
query III rowsort label-2594
SELECT COUNT( DISTINCT + col2 ), 83 AS col0, + COUNT( * ) FROM tab2 AS cor0
----
3
83
3

skipif mysql # not compatible
query III rowsort label-2594
SELECT COUNT ( DISTINCT + col2 ), 83 AS col0, + COUNT ( * ) FROM tab2 AS cor0
----
3
83
3

query I rowsort
SELECT - col2 * 54 * - col1 + - - col0 AS col0 FROM tab1 AS cor0
----
16015
172675
72627

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( + col1 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + ( + + ( - col0 ) ) col2 FROM tab2 WHERE NOT + 50 IS NOT NULL
----

query I rowsort
SELECT ALL + col2 + - col2 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab0 WHERE ( NULL IS NULL )
----
15
87
97

query II rowsort
SELECT DISTINCT + 43 AS col2, 83 - 99 AS col0 FROM tab1 AS cor0
----
43
-16

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE NULL >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT NULL BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2603
SELECT ALL 50 + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-2603
SELECT ALL 50 + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
47

query I rowsort
SELECT - col2 * - + col1 AS col2 FROM tab1 AS cor0
----
1344
295
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-2605
SELECT DISTINCT ( + COUNT( * ) ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2605
SELECT DISTINCT ( + COUNT ( * ) ) AS col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT - col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ( + col0 ) FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
46
64
75

query I rowsort
SELECT DISTINCT - 7 + col2 FROM tab0
----
3
40
92

query III rowsort
SELECT * FROM tab1 WHERE + 94 <= + - ( + + 48 ) + - 93
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2610
SELECT MIN( DISTINCT - - col1 ) AS col2 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-2610
SELECT MIN ( DISTINCT - - col1 ) AS col2 FROM tab2
----
51

query I rowsort
SELECT - col1 - 42 AS col2 FROM tab1
----
-47
-56
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2612
SELECT DISTINCT - - CAST( NULL AS SIGNED ) + - col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2612
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) + - col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2613
SELECT ALL + ( + 30 ) + - - COUNT( * ) DIV 97 * + MIN( - col1 ) FROM tab0 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-2613
SELECT ALL + ( + 30 ) + - - COUNT ( * ) / 97 * + MIN ( - col1 ) FROM tab0 AS cor0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-2614
SELECT + + MIN( ALL col0 ) + + COUNT( * ) FROM tab2 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-2614
SELECT + + MIN ( ALL col0 ) + + COUNT ( * ) FROM tab2 AS cor0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-2615
SELECT ALL - 99 + + COUNT( - + col2 ) AS col1 FROM tab1 cor0
----
-96

skipif mysql # not compatible
query I rowsort label-2615
SELECT ALL - 99 + + COUNT ( - + col2 ) AS col1 FROM tab1 cor0
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2616
SELECT DISTINCT COUNT( * ) - 17 + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2616
SELECT DISTINCT COUNT ( * ) - 17 + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE - + col2 NOT BETWEEN 24 * 63 / + 28 + - - 64 AND - ( + + 22 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2618
SELECT ALL col0 - + ( - CAST( NULL AS SIGNED ) ) - col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2618
SELECT ALL col0 - + ( - CAST ( NULL AS INTEGER ) ) - col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 * - 71 FROM tab2
----
-1633
-2840
-4118

onlyif mysql # aggregate syntax: 
query I rowsort label-2620
SELECT + MAX( - col2 ) + + 75 AS col1 FROM tab0 WHERE NULL > - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2620
SELECT + MAX ( - col2 ) + + 75 AS col1 FROM tab0 WHERE NULL > - col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2621
SELECT - COUNT( * ) + - 98 - + - 77 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NOT NULL
----
-21

skipif mysql # not compatible
query I rowsort label-2621
SELECT - COUNT ( * ) + - 98 - + - 77 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NOT NULL
----
-21

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 56 IS NULL
----

query I rowsort
SELECT ALL + + col0 FROM tab0 WHERE NOT ( + col2 ) * - 93 * + 70 <> col1
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL IS NOT NULL AND 33 + + col2 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 14 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 96 / col2 + - col2 IS NOT NULL
----

query I rowsort
SELECT ALL 38 * - - col2 FROM tab1 AS cor0
----
2242
2584
3648

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2628
SELECT + col0 AS col0, - 82 + - col0 * + CAST( + 71 AS SIGNED ) FROM tab2
----
46
-3348
64
-4626
75
-5407

skipif mysql # not compatible
query II rowsort label-2628
SELECT + col0 AS col0, - 82 + - col0 * + CAST ( + 71 AS INTEGER ) FROM tab2
----
46
-3348
64
-4626
75
-5407

onlyif mysql # aggregate syntax: 
query I rowsort label-2629
SELECT ( - + COUNT( * ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2629
SELECT ( - + COUNT ( * ) ) FROM tab0
----
-3

query I rowsort
SELECT + col1 * - + col0 + col1 AS col0 FROM tab2 WHERE NOT + - 12 <= - ( col1 )
----
-2295
-4851
-4958

onlyif mysql # aggregate syntax: 
query I rowsort label-2631
SELECT ALL + 67 * COUNT( * ) * - 95 AS col2 FROM tab2
----
-19095

skipif mysql # not compatible
query I rowsort label-2631
SELECT ALL + 67 * COUNT ( * ) * - 95 AS col2 FROM tab2
----
-19095

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2632
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * - AVG ( + col2 ) * - 62 col1 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2632
SELECT DISTINCT - CAST ( NULL AS REAL ) * - AVG ( + col2 ) * - 62 col1 FROM tab2
----
NULL

query I rowsort
SELECT ( - 73 ) AS col1 FROM tab2
----
-73
-73
-73

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2634
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col2 NOT BETWEEN + + CAST( NULL AS SIGNED ) * - col0 + 83 * + 52 / + + 7 + - 74 AND NULL
----

skipif mysql # not compatible
query III rowsort label-2634
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col2 NOT BETWEEN + + CAST ( NULL AS INTEGER ) * - col0 + 83 * + 52 / + + 7 + - 74 AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 35 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2636
SELECT DISTINCT ( - ( - COUNT( * ) ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2636
SELECT DISTINCT ( - ( - COUNT ( * ) ) ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2637
SELECT ALL + MIN( DISTINCT - - col1 ) FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-2637
SELECT ALL + MIN ( DISTINCT - - col1 ) FROM tab1 AS cor0
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-2638
SELECT 60 DIV + 36 AS col2 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2638
SELECT 60 / + 36 AS col2 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT col0 / - 29 AS col2 FROM tab1 WHERE col1 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + col0 col1 FROM tab2
----
104
133
69

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL >= - col2
----

query I rowsort
SELECT DISTINCT - - col0 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 85 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2644
SELECT DISTINCT - SUM( + col1 ) AS col0 FROM tab1 AS cor0 WHERE NOT col2 * col0 + - col0 * + col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2644
SELECT DISTINCT - SUM ( + col1 ) AS col0 FROM tab1 AS cor0 WHERE NOT col2 * col0 + - col0 * + col2 IS NOT NULL
----
NULL

query I rowsort
SELECT ALL - col1 * + 57 + + 33 * + col2 FROM tab2 AS cor0
----
-1905
-2148
-3069

query I rowsort
SELECT + - col1 + ( + col2 ) * + 41 AS col2 FROM tab0 cor0
----
1846
389
4058

query I rowsort
SELECT ALL col1 + + - 50 FROM tab1
----
-3
-36
-45

query I rowsort
SELECT ALL col0 * 77 FROM tab0
----
1155
6699
7469

query I rowsort
SELECT ALL col1 + + - col0 FROM tab0
----
-66
-96
66

query II rowsort
SELECT ALL col2 AS col1, - 78 AS col1 FROM tab1
----
59
-78
68
-78
96
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-2651
SELECT ALL - - COUNT( * ) - + 15 FROM tab0 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-2651
SELECT ALL - - COUNT ( * ) - + 15 FROM tab0 AS cor0
----
-12

query I rowsort
SELECT DISTINCT + + col1 + col1 AS col1 FROM tab0 cor0
----
162
2
42

query I rowsort
SELECT 75 - + + 57 FROM tab2 AS cor0
----
18
18
18

query I rowsort
SELECT DISTINCT 76 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2655
SELECT ALL CAST( NULL AS SIGNED ) col0 FROM tab0 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2655
SELECT ALL CAST ( NULL AS INTEGER ) col0 FROM tab0 WHERE NULL IS NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2656
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 / CAST( - + col0 AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2656
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 / CAST ( - + col0 AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + ( + 38 ) AS col1 FROM tab0 AS cor0
----
38

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 42 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2659
SELECT - - 48 DIV MAX( DISTINCT - - col2 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2659
SELECT - - 48 / MAX ( DISTINCT - - col2 ) FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2660
SELECT DISTINCT - COUNT( ALL + col2 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2660
SELECT DISTINCT - COUNT ( ALL + col2 ) FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-2661
SELECT ( + + 47 ) col2, + ( + 39 ) * 42 - - - COUNT( * ) * 50 + 74 FROM tab2 AS cor0
----
47
1562

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2661
SELECT ( + + 47 ) col2, + ( + 39 ) * 42 - - - COUNT ( * ) * 50 + 74 FROM tab2 AS cor0
----
47
1562

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2662
SELECT - + MIN( DISTINCT + + 69 ) DIV + + 31 AS col1 FROM tab0 cor0
----
-2

skipif mysql # not compatible
query I rowsort label-2662
SELECT - + MIN ( DISTINCT + + 69 ) / + + 31 AS col1 FROM tab0 cor0
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-2663
SELECT ALL 99 AS col1, COUNT( * ) AS col2 FROM tab0
----
99
3

skipif mysql # not compatible
query II rowsort label-2663
SELECT ALL 99 AS col1, COUNT ( * ) AS col2 FROM tab0
----
99
3

query I rowsort
SELECT ALL - col0 * - 54 AS col2 FROM tab2
----
2484
3456
4050

query III rowsort
SELECT * FROM tab2 WHERE NOT - - 12 + + 67 = col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col1 * + - col0 AS col2 FROM tab1
----
425
4277
714

onlyif mysql # aggregate syntax: 
query I rowsort label-2667
SELECT ALL MIN( DISTINCT - - 14 ) * - - COUNT( * ) FROM tab1
----
42

skipif mysql # not compatible
query I rowsort label-2667
SELECT ALL MIN ( DISTINCT - - 14 ) * - - COUNT ( * ) FROM tab1
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-2668
SELECT - 37 * - - 75 * - MIN( DISTINCT - col1 ) col0 FROM tab2
----
-213675

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2668
SELECT - 37 * - - 75 * - MIN ( DISTINCT - col1 ) col0 FROM tab2
----
-213675

onlyif mysql # aggregate syntax: 
query II rowsort label-2669
SELECT ALL + 6 AS col1, COUNT( * ) AS col0 FROM tab2 WHERE NULL IS NULL
----
6
3

skipif mysql # not compatible
query II rowsort label-2669
SELECT ALL + 6 AS col1, COUNT ( * ) AS col0 FROM tab2 WHERE NULL IS NULL
----
6
3

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( col1, + col1 + - 36 )
----

query II rowsort
SELECT 75, + col2 FROM tab0 AS cor0
----
75
10
75
47
75
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 6 + - 23 col2 FROM tab2 AS cor0
----
-17

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT 91 * - col1 / + col2 BETWEEN + 91 AND - + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL <> col2 * + 97 * + - col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2675
SELECT ( CAST( NULL AS SIGNED ) ) + + SUM( 69 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2675
SELECT ( CAST ( NULL AS INTEGER ) ) + + SUM ( 69 ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2676
SELECT + SUM( DISTINCT 37 ) AS col2 FROM tab2 AS cor0
----
37

skipif mysql # not compatible
query I rowsort label-2676
SELECT + SUM ( DISTINCT 37 ) AS col2 FROM tab2 AS cor0
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2677
SELECT DISTINCT col2 - + 40 - + ( - CAST( NULL AS SIGNED ) ) FROM tab2 cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2677
SELECT DISTINCT col2 - + 40 - + ( - CAST ( NULL AS INTEGER ) ) FROM tab2 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2678
SELECT + CAST( NULL AS SIGNED ), - col2 AS col1 FROM tab0 AS cor0
----
NULL
-10
NULL
-47
NULL
-99

skipif mysql # not compatible
query II rowsort label-2678
SELECT + CAST ( NULL AS INTEGER ), - col2 AS col1 FROM tab0 AS cor0
----
NULL
-10
NULL
-47
NULL
-99

query I rowsort
SELECT DISTINCT - + 3 + + - col1 + col0 FROM tab1 AS cor0
----
34
41
77

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 76 * - col2 <> + 91
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col0 * + - 67 - - + col2 FROM tab2 cor0
----
-3059
-4248
-4967

query I rowsort
SELECT ALL - col1 + - - 26 * - - 8 FROM tab0 AS cor0
----
127
187
207

query I rowsort
SELECT DISTINCT - col2 + + + ( - - col1 ) * 38 AS col1 FROM tab2
----
1915
2488
2886

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2684
SELECT * FROM tab1 WHERE + + ( CAST( NULL AS SIGNED ) ) * - col1 IN ( col1, + col2, - 52 + + col0 )
----

skipif mysql # not compatible
query III rowsort label-2684
SELECT * FROM tab1 WHERE + + ( CAST ( NULL AS INTEGER ) ) * - col1 IN ( col1, + col2, - 52 + + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2685
SELECT 85 * col0 DIV - 32 - col1 + + 86 * + col0 FROM tab2
----
3783
5257
6184

skipif mysql # not compatible
query I rowsort label-2685
SELECT 85 * col0 / - 32 - col1 + + 86 * + col0 FROM tab2
----
3783
5257
6184

onlyif mysql # aggregate syntax: 
query I rowsort label-2686
SELECT + ( 79 ) + - COUNT( ALL - - col1 ) FROM tab2
----
76

skipif mysql # not compatible
query I rowsort label-2686
SELECT + ( 79 ) + - COUNT ( ALL - - col1 ) FROM tab2
----
76

onlyif mysql # DIV for integer division: 
query I rowsort label-2687
SELECT col2 DIV + col0 + col2 + - 7 AS col2 FROM tab0
----
3
43
93

skipif mysql # not compatible
query I rowsort label-2687
SELECT col2 / + col0 + col2 + - 7 AS col2 FROM tab0
----
3
43
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2688
SELECT 47 + - ( - - 68 ) + + CAST( NULL AS SIGNED ) * ( - col2 ) col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2688
SELECT 47 + - ( - - 68 ) + + CAST ( NULL AS INTEGER ) * ( - col2 ) col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2689
SELECT DISTINCT + SUM( DISTINCT + - 89 ) FROM tab0 AS cor0
----
-89

skipif mysql # not compatible
query I rowsort label-2689
SELECT DISTINCT + SUM ( DISTINCT + - 89 ) FROM tab0 AS cor0
----
-89

query II rowsort
SELECT + col0, col1 FROM tab0
----
15
81
87
21
97
1

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( - 55 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2692
SELECT DISTINCT - MIN( DISTINCT - col2 ) FROM tab1 cor0
----
96

skipif mysql # not compatible
query I rowsort label-2692
SELECT DISTINCT - MIN ( DISTINCT - col2 ) FROM tab1 cor0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2693
SELECT + - COUNT( + col2 ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2693
SELECT + - COUNT ( + col2 ) FROM tab2 cor0
----
-3

query II rowsort
SELECT ALL + col2 AS col2, - 96 * + col1 FROM tab1 AS cor0
----
59
-480
68
-4512
96
-1344

query II rowsort
SELECT ALL - col2 AS col1, + 13 * + + 26 + col2 AS col0 FROM tab0 AS cor0
----
-10
348
-47
385
-99
437

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 79 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col0 FROM tab2 AS cor0 WHERE NOT ( + 89 IS NULL )
----
46
64
75

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT ( NOT NULL <= - 29 * + col1 / 62 * - - col2 * - ( - 16 ) * + 2 + - + 40 )
----

query I rowsort
SELECT col1 * 81 * - 64 AS col2 FROM tab0
----
-108864
-419904
-5184

onlyif mysql # aggregate syntax: 
query I rowsort label-2700
SELECT DISTINCT - 96 * COUNT( ALL col0 ) col1 FROM tab0
----
-288

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2700
SELECT DISTINCT - 96 * COUNT ( ALL col0 ) col1 FROM tab0
----
-288

onlyif mysql # aggregate syntax: 
query I rowsort label-2701
SELECT COUNT( * ) + + - COUNT( * ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2701
SELECT COUNT ( * ) + + - COUNT ( * ) FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2702
SELECT col1 / + + CAST( NULL AS SIGNED ) + - + col0 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2702
SELECT col1 / + + CAST ( NULL AS INTEGER ) + - + col0 AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2703
SELECT DISTINCT + + CAST( NULL AS SIGNED ) * 64 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2703
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * 64 FROM tab1 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2704
SELECT ALL col2 - CAST( - col0 AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND - 87 + 7
----

skipif mysql # not compatible
query I rowsort label-2704
SELECT ALL col2 - CAST ( - col0 AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND - 87 + 7
----

query I rowsort
SELECT - 75 * + 98 * + + 82 + ( + + 9 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c8845cdb6393d9f232b261bbbe1309e1

query I rowsort
SELECT + 45 * - + col1 FROM tab0
----
-3645
-45
-945

onlyif mysql # aggregate syntax: 
query I rowsort label-2707
SELECT MIN( DISTINCT - + col2 ) FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-2707
SELECT MIN ( DISTINCT - + col2 ) FROM tab2
----
-58

query I rowsort
SELECT + col1 + - + col0 FROM tab1 AS cor0
----
-37
-44
-80

query I rowsort
SELECT DISTINCT - 75 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN + 86 AND col1
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 23 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query II rowsort label-2711
SELECT ALL + col2 + + 81 DIV - col2 AS col1, - col0 AS col2 FROM tab2 AS cor0
----
20
-46
38
-64
57
-75

skipif mysql # not compatible
query II rowsort label-2711
SELECT ALL + col2 + + 81 / - col2 AS col1, - col0 AS col2 FROM tab2 AS cor0
----
20
-46
38
-64
57
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + - ( + + col1 ) ) - - col2 col1 FROM tab0
----
-11
-34
98

onlyif mysql # aggregate syntax: 
query II rowsort label-2713
SELECT 45, COUNT( * ) * + + COUNT( DISTINCT col2 ) AS col2 FROM tab2
----
45
9

skipif mysql # not compatible
query II rowsort label-2713
SELECT 45, COUNT ( * ) * + + COUNT ( DISTINCT col2 ) AS col2 FROM tab2
----
45
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2714
SELECT - COUNT( * ) AS col1, CAST( NULL AS SIGNED ) FROM tab1 WHERE 20 IS NULL
----
0
NULL

skipif mysql # not compatible
query II rowsort label-2714
SELECT - COUNT ( * ) AS col1, CAST ( NULL AS INTEGER ) FROM tab1 WHERE 20 IS NULL
----
0
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2715
SELECT ( col2 ) * + col1 * CAST( NULL AS SIGNED ) * - 8 + - col1 * - col2 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2715
SELECT ( col2 ) * + col1 * CAST ( NULL AS INTEGER ) * - 8 + - col1 * - col2 AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2716
SELECT ALL + MAX( - 34 ) FROM tab1
----
-34

skipif mysql # not compatible
query I rowsort label-2716
SELECT ALL + MAX ( - 34 ) FROM tab1
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-2717
SELECT COUNT( * ) AS col0 FROM tab1 WHERE ( NULL ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2717
SELECT COUNT ( * ) AS col0 FROM tab1 WHERE ( NULL ) IS NULL
----
3

query I rowsort
SELECT - col0 AS col2 FROM tab1 WHERE col2 * - 99 * + col2 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE - - 98 * col0 IS NULL
----

query I rowsort
SELECT - col0 * - 18 AS col1 FROM tab2 AS cor0
----
1152
1350
828

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 col2, + 37 * + + 23 + - col1 AS col0 FROM tab1 AS cor0
----
-51
837
-85
846
-91
804

query II rowsort
SELECT ALL col0 AS col2, 98 FROM tab1 AS cor0
----
51
98
85
98
91
98

query I rowsort
SELECT ALL - - 86 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

query II rowsort
SELECT ALL - ( - col0 ) AS col2, - col1 FROM tab2
----
46
-51
64
-77
75
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2725
SELECT DISTINCT - CAST( + col0 AS SIGNED ) FROM tab1 WHERE + col1 <> NULL
----

skipif mysql # not compatible
query I rowsort label-2725
SELECT DISTINCT - CAST ( + col0 AS INTEGER ) FROM tab1 WHERE + col1 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2726
SELECT SUM( ALL col0 ) AS col0 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-2726
SELECT SUM ( ALL col0 ) AS col0 FROM tab0 AS cor0
----
199

onlyif mysql # DIV for integer division: 
query I rowsort label-2727
SELECT + ( ( + col2 ) ) DIV 87 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2727
SELECT + ( ( + col2 ) ) / 87 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2728
SELECT ALL - ( + 47 ) * - - COUNT( * ) FROM tab2 AS cor0
----
-141

skipif mysql # not compatible
query I rowsort label-2728
SELECT ALL - ( + 47 ) * - - COUNT ( * ) FROM tab2 AS cor0
----
-141

query I rowsort
SELECT col2 * 62 AS col2 FROM tab1 AS cor0
----
3658
4216
5952

query I rowsort
SELECT - 65 * - col2 + ( - + col1 ) AS col1 FROM tab0 AS cor0
----
2974
629
6434

onlyif mysql # aggregate syntax: 
query I rowsort label-2731
SELECT 82 * - - COUNT( * ) FROM tab1
----
246

skipif mysql # not compatible
query I rowsort label-2731
SELECT 82 * - - COUNT ( * ) FROM tab1
----
246

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL >= + col2
----

query I rowsort
SELECT ALL ( - + ( - 99 ) ) AS col0 FROM tab1
----
99
99
99

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 49 / - col0 + - 23 BETWEEN - - col1 AND + col2 + - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col1 NOT BETWEEN NULL AND col1
----

query II rowsort
SELECT ALL + col2 AS col2, col2 AS col1 FROM tab1
----
59
59
68
68
96
96

query I rowsort
SELECT ALL - 28 + - - col0 FROM tab2
----
18
36
47

query I rowsort
SELECT 64 * + col2 + - col2 AS col2 FROM tab1 WHERE ( col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2739
SELECT COUNT( * ) AS col0 FROM tab2 WHERE NOT col0 * 87 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2739
SELECT COUNT ( * ) AS col0 FROM tab2 WHERE NOT col0 * 87 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2740
SELECT ALL COUNT( * ) + + ( 31 ) AS col2 FROM tab2
----
34

skipif mysql # not compatible
query I rowsort label-2740
SELECT ALL COUNT ( * ) + + ( 31 ) AS col2 FROM tab2
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2741
SELECT - 56 * AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2741
SELECT - 56 * AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT - col1 - col2 * 1 AS col1 FROM tab1 WHERE NULL NOT IN ( 85 * col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2743
SELECT - 90 * COUNT( * ) FROM tab1
----
-270

skipif mysql # not compatible
query I rowsort label-2743
SELECT - 90 * COUNT ( * ) FROM tab1
----
-270

query I rowsort
SELECT DISTINCT col0 + - col0 * + 67 FROM tab2
----
-3036
-4224
-4950

onlyif mysql # aggregate syntax: 
query I rowsort label-2745
SELECT ALL MAX( ALL - col2 ) FROM tab2 WHERE NULL IS NULL
----
-23

skipif mysql # not compatible
query I rowsort label-2745
SELECT ALL MAX ( ALL - col2 ) FROM tab2 WHERE NULL IS NULL
----
-23

query I rowsort
SELECT + 46 * - 50 AS col0 FROM tab2
----
-2300
-2300
-2300

query I rowsort
SELECT DISTINCT col2 + col2 * - 58 FROM tab1
----
-3363
-3876
-5472

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab2 WHERE NOT col0 <= col1 + col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 >= ( - col2 * 91 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( 24 ) BETWEEN col0 / - 89 AND ( col1 + - col0 )
----
87
21
10
97
1
99

query I rowsort
SELECT DISTINCT - 94 * col2 FROM tab0
----
-4418
-9306
-940

query I rowsort
SELECT ALL - 34 * col0 FROM tab2
----
-1564
-2176
-2550

onlyif mysql # aggregate syntax: 
query I rowsort label-2753
SELECT 43 + COUNT( - col2 ) FROM tab0
----
46

skipif mysql # not compatible
query I rowsort label-2753
SELECT 43 + COUNT ( - col2 ) FROM tab0
----
46

query I rowsort
SELECT DISTINCT + 75 * - 44 AS col0 FROM tab1
----
-3300

query I rowsort
SELECT ALL + 6 * col1 FROM tab1
----
282
30
84

onlyif mysql # DIV for integer division: 
query I rowsort label-2756
SELECT ALL - 50 DIV - col0 AS col1 FROM tab0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-2756
SELECT ALL - 50 / - col0 AS col1 FROM tab0
----
0
0
3

query I rowsort
SELECT - col2 AS col0 FROM tab1 WHERE NOT - col0 * col0 BETWEEN + col0 AND + col0
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2758
SELECT + COUNT( * ) + - 59 * 66 FROM tab0
----
-3891

skipif mysql # not compatible
query I rowsort label-2758
SELECT + COUNT ( * ) + - 59 * 66 FROM tab0
----
-3891

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2759
SELECT DISTINCT - 91 DIV - COUNT( * ) AS col2 FROM tab2
----
30

skipif mysql # not compatible
query I rowsort label-2759
SELECT DISTINCT - 91 / - COUNT ( * ) AS col2 FROM tab2
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-2760
SELECT DISTINCT 84 DIV col1 AS col2 FROM tab1
----
1
16
6

skipif mysql # not compatible
query I rowsort label-2760
SELECT DISTINCT 84 / col1 AS col2 FROM tab1
----
1
16
6

onlyif mysql # DIV for integer division: 
query I rowsort label-2761
SELECT + col1 DIV col1 col0 FROM tab0
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2761
SELECT + col1 / col1 col0 FROM tab0
----
1
1
1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 21 NOT IN ( + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE ( 25 ) NOT IN ( col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col0 * + col1 FROM tab2 WHERE ( NULL ) IS NULL
----
-2346
-4928
-5025

onlyif mysql # aggregate syntax: 
query I rowsort label-2765
SELECT MAX( - 80 ) AS col1 FROM tab1
----
-80

skipif mysql # not compatible
query I rowsort label-2765
SELECT MAX ( - 80 ) AS col1 FROM tab1
----
-80

query III rowsort
SELECT ALL * FROM tab2 WHERE - 81 IS NULL
----

query I rowsort
SELECT - ( ( + 4 ) ) FROM tab0
----
-4
-4
-4

query I rowsort
SELECT DISTINCT - col1 + - 98 FROM tab2
----
-149
-165
-175

query I rowsort
SELECT ALL - col0 * - col0 AS col0 FROM tab1 WHERE NOT ( - 34 ) >= ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col1 NOT BETWEEN col2 AND 77
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2771
SELECT ALL COUNT( 96 ) FROM tab1 WHERE NOT ( 42 * - 16 ) NOT BETWEEN + 61 * + col0 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-2771
SELECT ALL COUNT ( 96 ) FROM tab1 WHERE NOT ( 42 * - 16 ) NOT BETWEEN + 61 * + col0 AND NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2772
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col1 + CAST( NULL AS SIGNED ) NOT IN ( - 6 )
----

skipif mysql # not compatible
query III rowsort label-2772
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col1 + CAST ( NULL AS INTEGER ) NOT IN ( - 6 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2773
SELECT - SUM( DISTINCT + col2 ) * CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2773
SELECT - SUM ( DISTINCT + col2 ) * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2774
SELECT 36 DIV COUNT( * ) FROM tab0 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-2774
SELECT 36 / COUNT ( * ) FROM tab0 AS cor0
----
12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 66 * col1 col0 FROM tab0 cor0
----
1386
5346
66

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2776
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + col1 AND ( + CAST( NULL AS DECIMAL ) / - 87 )
----

skipif mysql # not compatible
query III rowsort label-2776
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + col1 AND ( + CAST ( NULL AS REAL ) / - 87 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2777
SELECT - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE NOT + col2 + - 92 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2777
SELECT - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE NOT + col2 + - 92 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2778
SELECT col2 DIV - col1 AS col2 FROM tab1 AS cor0 WHERE NOT + 61 IS NULL
----
-1
-11
-6

skipif mysql # not compatible
query I rowsort label-2778
SELECT col2 / - col1 AS col2 FROM tab1 AS cor0 WHERE NOT + 61 IS NULL
----
-1
-11
-6

query I rowsort
SELECT 63 FROM tab1 AS cor0 CROSS JOIN tab2
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2780
SELECT + CAST( NULL AS DECIMAL ) / - 70 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2780
SELECT + CAST ( NULL AS REAL ) / - 70 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 38 / col2 + - col2 IS NOT NULL
----

query I rowsort
SELECT ALL col1 * 88 FROM tab2
----
4488
5896
6776

onlyif mysql # aggregate syntax: 
query I rowsort label-2783
SELECT DISTINCT 35 * + COUNT( * ) AS col2 FROM tab1 AS cor0
----
105

skipif mysql # not compatible
query I rowsort label-2783
SELECT DISTINCT 35 * + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
105

onlyif mysql # DIV for integer division: 
query I rowsort label-2784
SELECT DISTINCT - + col1 DIV col2 AS col0 FROM tab0 cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-2784
SELECT DISTINCT - + col1 / col2 AS col0 FROM tab0 cor0
----
-1
-2
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 NOT BETWEEN - 30 AND col2 * - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2786
SELECT ALL MAX( DISTINCT + col0 ) AS col0 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-2786
SELECT ALL MAX ( DISTINCT + col0 ) AS col0 FROM tab1 AS cor0
----
91

query I rowsort
SELECT DISTINCT + 12 + - 68 AS col2 FROM tab1 AS cor0 WHERE NOT + 29 IS NOT NULL
----

query I rowsort
SELECT ALL col0 AS col0 FROM tab1 AS cor0 WHERE NOT ( + col1 / 2 ) NOT BETWEEN - col0 - col1 AND - col1
----

query I rowsort
SELECT + col2 * - col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT 54 * 8 AS col0 FROM tab1 AS cor0
----
432
432
432

query I rowsort
SELECT + - col2 * col1 + - 80 FROM tab1 AS cor0
----
-1424
-3276
-375

onlyif mysql # DIV for integer division: 
query I rowsort label-2792
SELECT - ( + 24 ) DIV col0 + + col2 FROM tab0
----
10
46
99

skipif mysql # not compatible
query I rowsort label-2792
SELECT - ( + 24 ) / col0 + + col2 FROM tab0
----
10
46
99

query I rowsort
SELECT ALL col0 FROM tab0 WHERE NOT ( col2 + - col1 * - col2 ) BETWEEN NULL AND + col1
----
15
87
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2794
SELECT ALL AVG ( - 10 ) + - ( - SUM( DISTINCT CAST( NULL AS SIGNED ) ) ) FROM tab2 WHERE NOT col0 * - 58 + col2 BETWEEN CAST( NULL AS SIGNED ) AND + 18 / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2794
SELECT ALL AVG ( - 10 ) + - ( - SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) ) FROM tab2 WHERE NOT col0 * - 58 + col2 BETWEEN CAST ( NULL AS INTEGER ) AND + 18 / - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - col2 + - + col2 * - col0 AS col2 FROM tab1
----
4800
4956
6120

query I rowsort
SELECT col0 + + 70 AS col1 FROM tab2
----
116
134
145

onlyif mysql # aggregate syntax: 
query I rowsort label-2797
SELECT - MIN( + col0 ) + - 70 col0 FROM tab1
----
-121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2797
SELECT - MIN ( + col0 ) + - 70 col0 FROM tab1
----
-121

onlyif mysql # DIV for integer division: 
query I rowsort label-2798
SELECT 12 DIV + col2 + col0 * - col1 AS col1 FROM tab2
----
-2346
-4928
-5025

skipif mysql # not compatible
query I rowsort label-2798
SELECT 12 / + col2 + col0 * - col1 AS col1 FROM tab2
----
-2346
-4928
-5025

query I rowsort
SELECT 27 + - - col2 AS col0 FROM tab0
----
126
37
74

onlyif mysql # aggregate syntax: 
query I rowsort label-2800
SELECT DISTINCT 73 + + + MAX( ALL + col2 ) AS col1 FROM tab0
----
172

skipif mysql # not compatible
query I rowsort label-2800
SELECT DISTINCT 73 + + + MAX ( ALL + col2 ) AS col1 FROM tab0
----
172

onlyif mysql # aggregate syntax: 
query I rowsort label-2801
SELECT + SUM( + - 79 ) + COUNT( * ) FROM tab1
----
-234

skipif mysql # not compatible
query I rowsort label-2801
SELECT + SUM ( + - 79 ) + COUNT ( * ) FROM tab1
----
-234

query III rowsort
SELECT * FROM tab2 WHERE - col2 > ( col0 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col2 + - 91 NOT BETWEEN NULL AND - col2
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( col1 * col1 ) NOT BETWEEN ( - 48 / col1 ) AND col2
----
15
81
47
87
21
10

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 99 BETWEEN NULL AND ( col0 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( ( 2 ) ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2807
SELECT ALL + - 8 DIV + - col0 + CAST( 70 AS SIGNED ) FROM tab0 AS cor0
----
70
70
70

skipif mysql # not compatible
query I rowsort label-2807
SELECT ALL + - 8 / + - col0 + CAST ( 70 AS INTEGER ) FROM tab0 AS cor0
----
70
70
70

query I rowsort
SELECT - col0 * + + 78 FROM tab1 AS cor0
----
-3978
-6630
-7098

query I rowsort
SELECT + col0 * + 84 AS col1 FROM tab2 AS cor0
----
3864
5376
6300

onlyif mysql # aggregate syntax: 
query I rowsort label-2810
SELECT ALL COUNT( * ) - ( + SUM( col1 ) ) AS col1 FROM tab1
----
-63

skipif mysql # not compatible
query I rowsort label-2810
SELECT ALL COUNT ( * ) - ( + SUM ( col1 ) ) AS col1 FROM tab1
----
-63

query III rowsort
SELECT * FROM tab1 WHERE ( NOT - 43 + + col2 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 WHERE ( col2 / - ( 70 + 70 ) ) < NULL
----

query II rowsort
SELECT DISTINCT col1 AS col1, 19 * - col1 AS col2 FROM tab1
----
14
-266
47
-893
5
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 99 col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
99

query I rowsort
SELECT - col2 * col2 AS col0 FROM tab2 cor0 WHERE 64 NOT IN ( col2 + col1 )
----
-1600
-3364
-529

query I rowsort
SELECT col0 + ( col0 ) + - col0 * + col0 FROM tab1 AS cor0
----
-2499
-7055
-8099

query I rowsort
SELECT DISTINCT - - col0 * - col2 AS col2 FROM tab2 cor0
----
-1058
-2560
-4350

query I rowsort
SELECT DISTINCT - col1 + 75 FROM tab1 AS cor0
----
28
61
70

query I rowsort
SELECT - 26 * + 89 AS col2 FROM tab0 AS cor0
----
-2314
-2314
-2314

query II rowsort
SELECT + 51 AS col1, - col1 AS col0 FROM tab2 AS cor0
----
51
-51
51
-67
51
-77

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 > ( NULL )
----

query II rowsort
SELECT - ( col2 ), - 77 * + col1 AS col2 FROM tab1
----
-59
-385
-68
-3619
-96
-1078

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + ( 15 ) ) < - 78
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE NOT 78 > + 35
----

query I rowsort
SELECT ALL col2 * - 20 AS col0 FROM tab2
----
-1160
-460
-800

query II rowsort
SELECT ALL + col1 * 56, col2 AS col2 FROM tab0
----
1176
10
4536
47
56
99

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) <> 95 * 16
----

query I rowsort
SELECT DISTINCT + col1 * col0 AS col1 FROM tab2 WHERE NULL < - - col2
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 > ( col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col0 * - col0 * col2 FROM tab2 cor0
----
-163840
-326250
-48668

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col2 FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2832
SELECT ALL + + col2 * col2 + - 37 + CAST( + 20 AS SIGNED ) * col0 AS col0 FROM tab1 AS cor0
----
10199
5144
6407

skipif mysql # not compatible
query I rowsort label-2832
SELECT ALL + + col2 * col2 + - 37 + CAST ( + 20 AS INTEGER ) * col0 AS col0 FROM tab1 AS cor0
----
10199
5144
6407

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2833
SELECT * FROM tab2 AS cor0 WHERE NOT CAST( col2 AS SIGNED ) > + 1
----

skipif mysql # not compatible
query III rowsort label-2833
SELECT * FROM tab2 AS cor0 WHERE NOT CAST ( col2 AS INTEGER ) > + 1
----

query I rowsort
SELECT ALL + col0 * - col0 * col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - 83 ) IS NULL
----

query I rowsort
SELECT DISTINCT col1 * + 74 FROM tab2
----
3774
4958
5698

query I rowsort
SELECT ALL + 36 FROM tab0 WHERE NOT - - 87 IS NULL
----
36
36
36

query III rowsort
SELECT * FROM tab2 WHERE NOT + - 53 NOT BETWEEN 94 AND NULL
----

query I rowsort
SELECT - 78 * col1 + - 1 * - - 53 FROM tab2 AS cor0
----
-4031
-5279
-6059

onlyif mysql # DIV for integer division: 
query I rowsort label-2840
SELECT ALL - col2 DIV + + col1 * + 37 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2840
SELECT ALL - col2 / + + col1 * + 37 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - - 44 * + col1 + - + 64 FROM tab0 AS cor0
----
-20
3500
860

onlyif mysql # aggregate syntax: 
query I rowsort label-2842
SELECT - ( - - MAX( + col1 ) ) AS col2 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-2842
SELECT - ( - - MAX ( + col1 ) ) AS col2 FROM tab1 AS cor0
----
-47

query I rowsort
SELECT DISTINCT + ( + 64 ) FROM tab2 AS cor0
----
64

query I rowsort
SELECT - 5 * - col1 AS col2 FROM tab1 AS cor0
----
235
25
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2845
SELECT DISTINCT + SUM( DISTINCT + CAST( + ( + col2 ) AS DECIMAL ) ) * - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2845
SELECT DISTINCT + SUM ( DISTINCT + CAST ( + ( + col2 ) AS REAL ) ) * - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 49 * 52, - col0 col2 FROM tab1
----
2548
-51
2548
-85
2548
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2847
SELECT DISTINCT + MAX( + + ( CAST( NULL AS SIGNED ) ) ) FROM tab0 WHERE NOT + + 77 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2847
SELECT DISTINCT + MAX ( + + ( CAST ( NULL AS INTEGER ) ) ) FROM tab0 WHERE NOT + + 77 IS NULL
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE - col0 >= - col2 * - col0 + + - col0
----

query III rowsort
SELECT * FROM tab1 WHERE + ( + 82 ) * + 2 IS NULL
----

query I rowsort
SELECT + 84 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8

query I rowsort
SELECT ALL - ( - col1 ) FROM tab1 WHERE NOT + - col0 + + col1 * - 28 NOT IN ( + 23 )
----

query I rowsort
SELECT 36 + - 0 AS col0 FROM tab2 WHERE ( - col2 < + col0 + - col2 )
----
36
36
36

onlyif mysql # aggregate syntax: 
query I rowsort label-2853
SELECT - - COUNT( * ) * - - 19 + + + 37 + + COUNT( * ) + - COUNT( * ) + - - 13 AS col1 FROM tab2 AS cor0
----
107

skipif mysql # not compatible
query I rowsort label-2853
SELECT - - COUNT ( * ) * - - 19 + + + 37 + + COUNT ( * ) + - COUNT ( * ) + - - 13 AS col1 FROM tab2 AS cor0
----
107

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2854
SELECT ALL - col0 + + CAST( + + ( 58 ) AS SIGNED ), - ( + - col2 ) col2 FROM tab2 AS cor0
----
-17
58
-6
40
12
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2854
SELECT ALL - col0 + + CAST ( + + ( 58 ) AS INTEGER ), - ( + - col2 ) col2 FROM tab2 AS cor0
----
-17
58
-6
40
12
23

query I rowsort
SELECT - - col0 + - 32 FROM tab0 AS cor0
----
-17
55
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 col1 FROM tab2 AS cor0 WHERE + 37 NOT BETWEEN - col0 AND + 58 + 18
----

query I rowsort
SELECT ALL col1 + - - 41 * col2 - + col0 FROM tab1 AS cor0 WHERE NULL <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2858
SELECT DISTINCT col1 + - 38 AS col0, CAST( NULL AS SIGNED ) FROM tab1
----
-24
NULL
-33
NULL
9
NULL

skipif mysql # not compatible
query II rowsort label-2858
SELECT DISTINCT col1 + - 38 AS col0, CAST ( NULL AS INTEGER ) FROM tab1
----
-24
NULL
-33
NULL
9
NULL

query I rowsort
SELECT + 7 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2860
SELECT ALL - + ( + - 38 ) AS col2, col1 + + + CAST( + 55 AS SIGNED ) col2 FROM tab2 AS cor0
----
38
106
38
122
38
132

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2860
SELECT ALL - + ( + - 38 ) AS col2, col1 + + + CAST ( + 55 AS INTEGER ) col2 FROM tab2 AS cor0
----
38
106
38
122
38
132

onlyif mysql # aggregate syntax: 
query I rowsort label-2861
SELECT ALL - 99 + COUNT( * ) - 81 AS col1 FROM tab1 AS cor0
----
-177

skipif mysql # not compatible
query I rowsort label-2861
SELECT ALL - 99 + COUNT ( * ) - 81 AS col1 FROM tab1 AS cor0
----
-177

query I rowsort
SELECT + 2 - + 24 + - col0 + col1 AS col0 FROM tab2 AS cor0
----
-17
-30
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2863
SELECT - - ( - + SUM( + 15 ) ) AS col0 FROM tab1 cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2863
SELECT - - ( - + SUM ( + 15 ) ) AS col0 FROM tab1 cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

query I rowsort
SELECT 38 * - - 44 * - 18 FROM tab2 AS cor0
----
-30096
-30096
-30096

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 / + col0 * col1 = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2866
SELECT ALL - ( CAST( NULL AS SIGNED ) ), COUNT( * ) AS col2 FROM tab2 cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-2866
SELECT ALL - ( CAST ( NULL AS INTEGER ) ), COUNT ( * ) AS col2 FROM tab2 cor0
----
NULL
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2867
SELECT CAST( NULL AS SIGNED ) col1, ( ( + col2 ) ) - 7 AS col2 FROM tab2
----
NULL
16
NULL
33
NULL
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2867
SELECT CAST ( NULL AS INTEGER ) col1, ( ( + col2 ) ) - 7 AS col2 FROM tab2
----
NULL
16
NULL
33
NULL
51

query II rowsort
SELECT + 59 AS col1, col1 AS col1 FROM tab1
----
59
14
59
47
59
5

query II rowsort
SELECT ALL - 90, - 28 AS col0 FROM tab2 AS cor0
----
-90
-28
-90
-28
-90
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-2870
SELECT - COUNT( * ) * + 72 AS col2 FROM tab2 AS cor0
----
-216

skipif mysql # not compatible
query I rowsort label-2870
SELECT - COUNT ( * ) * + 72 AS col2 FROM tab2 AS cor0
----
-216

onlyif mysql # aggregate syntax: 
query I rowsort label-2871
SELECT DISTINCT - COUNT( - - 74 ) col0 FROM tab2 cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2871
SELECT DISTINCT - COUNT ( - - 74 ) col0 FROM tab2 cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 * col0 + + + col1 IN ( - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 cor0 WHERE - col0 IN ( 97 * + + col1 ) AND ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2874
SELECT ALL + MAX( ALL col1 ) + - 58 col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2874
SELECT ALL + MAX ( ALL col1 ) + - 58 col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT ALL 19 * - - 13 * + + col2 FROM tab2 AS cor0
----
14326
5681
9880

query I rowsort
SELECT ALL - col0 * - + col0 AS col1 FROM tab1
----
2601
7225
8281

query I rowsort
SELECT DISTINCT ( + - 97 ) * col1 FROM tab1
----
-1358
-4559
-485

query I rowsort
SELECT DISTINCT - ( + - col2 ) AS col1 FROM tab2
----
23
40
58

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + + 54 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2880
SELECT + MIN( + - col1 ) FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-2880
SELECT + MIN ( + - col1 ) FROM tab2
----
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 col2 FROM tab0 AS cor0 WHERE col1 IS NULL
----

query I rowsort
SELECT ALL - 86 + + 83 + + 51 FROM tab0 AS cor0
----
48
48
48

query I rowsort
SELECT ALL - - col0 + 68 FROM tab2 AS cor0
----
114
132
143

query I rowsort
SELECT DISTINCT - ( - col2 ) + - - col1 AS col0 FROM tab1 AS cor0
----
110
115
64

query I rowsort
SELECT ALL + col1 * + + col0 FROM tab1 AS cor0
----
425
4277
714

query I rowsort
SELECT - + 13 + 27 + - + 95 FROM tab1 cor0
----
-81
-81
-81

query II rowsort
SELECT DISTINCT 99 * - 82 * col0 + - + col2 AS col2, col1 FROM tab0 AS cor0
----
-121817
81
-706276
21
-787545
1

query I rowsort
SELECT ALL + col2 FROM tab2 WHERE NOT 13 IS NULL
----
23
40
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2889
SELECT ALL MIN( - - col0 ) DIV + COUNT( ALL - col2 ) FROM tab1
----
17

skipif mysql # not compatible
query I rowsort label-2889
SELECT ALL MIN ( - - col0 ) / + COUNT ( ALL - col2 ) FROM tab1
----
17

query I rowsort
SELECT - col1 + col1 + col2 AS col0 FROM tab1
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2891
SELECT ALL COUNT( * ) * + COUNT( * ) col2 FROM tab2
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2891
SELECT ALL COUNT ( * ) * + COUNT ( * ) col2 FROM tab2
----
9

query I rowsort
SELECT + 79 + - - col2 FROM tab1
----
138
147
175

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 BETWEEN - + col0 + + col1 AND col2
----
51
14
96
91
47
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2894
SELECT DISTINCT COUNT( CAST( - + col1 AS SIGNED ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2894
SELECT DISTINCT COUNT ( CAST ( - + col1 AS INTEGER ) ) FROM tab0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + + - col2 + + col1 col2 FROM tab2
----
51
67
77

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + ( - ( + - ( - - col2 ) ) ) * + col2 * - - 51 <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( + col2 ) * ( - col1 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2898
SELECT ALL + ( 70 ) * + col1 + - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2898
SELECT ALL + ( 70 ) * + col1 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 53 + col1 * - + col0 FROM tab2 AS cor0
----
-2293
-4875
-4972

query I rowsort
SELECT + + col1 - - col0 * col0 + - col0 FROM tab2 AS cor0
----
2121
4109
5617

onlyif mysql # aggregate syntax: 
query I rowsort label-2901
SELECT ALL + - COUNT( DISTINCT + + 77 ) AS col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2901
SELECT ALL + - COUNT ( DISTINCT + + 77 ) AS col1 FROM tab0 AS cor0
----
-1

query III rowsort
SELECT * FROM tab1 WHERE col1 <> - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2903
SELECT + 59 - + 86 + - SUM( + ( + col1 ) ) AS col0 FROM tab2
----
-222

skipif mysql # not compatible
query I rowsort label-2903
SELECT + 59 - + 86 + - SUM ( + ( + col1 ) ) AS col0 FROM tab2
----
-222

query II rowsort
SELECT ALL - 78, col1 AS col2 FROM tab1
----
-78
14
-78
47
-78
5

query II rowsort
SELECT + 45, col2 FROM tab0 WHERE NOT + - 27 IS NULL
----
45
10
45
47
45
99

query I rowsort
SELECT DISTINCT - col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-46
-64
-75

query II rowsort
SELECT ALL + col2 AS col2, - col1 * - 69 * 69 AS col2 FROM tab0 AS cor0
----
10
99981
47
385641
99
4761

onlyif mysql # aggregate syntax: 
query I rowsort label-2908
SELECT - COUNT( + 6 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2908
SELECT - COUNT ( + 6 ) FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2909
SELECT MAX( DISTINCT - - col0 ) AS col2 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-2909
SELECT MAX ( DISTINCT - - col0 ) AS col2 FROM tab2 AS cor0
----
75

query III rowsort
SELECT * FROM tab2 WHERE NOT - 92 + 73 * col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 98 * 39 AS col1 FROM tab1
----
3822

query I rowsort
SELECT - 36 + - + 85 FROM tab2, tab2 cor0
----
9 values hashing to 6c392c025e0783bc17c0d2ce80445d43

query I rowsort
SELECT DISTINCT ( - - col2 ) AS col1 FROM tab1 cor0
----
59
68
96

query I rowsort
SELECT + col2 * - col0 * - 52 + 49 * - + 98 AS col1 FROM tab0 AS cor0 WHERE NOT 36 * + - col0 BETWEEN 5 AND ( col1 - - col1 )
----
31858
40438
494554

query I rowsort
SELECT - col0 * - 22 AS col0 FROM tab1 AS cor0
----
1122
1870
2002

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2916
SELECT ALL CAST( NULL AS SIGNED ) * col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2916
SELECT ALL CAST ( NULL AS INTEGER ) * col2 FROM tab1 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 + + col0 * - - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 * col2 BETWEEN - - ( + 76 ) AND - col1 * col1 + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + - col0 > + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT col2 AS col2, col1 FROM tab2
----
23
51
40
77
58
67

onlyif mysql # aggregate syntax: 
query I rowsort label-2921
SELECT - 24 + + COUNT( * ) FROM tab2
----
-21

skipif mysql # not compatible
query I rowsort label-2921
SELECT - 24 + + COUNT ( * ) FROM tab2
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-2922
SELECT ALL COUNT( * ) + - MIN( ALL + 69 ) + - 73 FROM tab0 WHERE NOT NULL >= + + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2922
SELECT ALL COUNT ( * ) + - MIN ( ALL + 69 ) + - 73 FROM tab0 WHERE NOT NULL >= + + col1
----
NULL

query I rowsort
SELECT ALL - col1 + - col0 AS col1 FROM tab2 cor0
----
-141
-142
-97

query II rowsort
SELECT ( ( - ( - - 62 ) ) ), col2 * + col2 AS col0 FROM tab2 AS cor0
----
-62
1600
-62
3364
-62
529

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2925
SELECT DISTINCT col0 + + col0 + - col1 + 88 + - + col0 + - CAST( NULL AS SIGNED ) AS col0, - 34 FROM tab1 AS cor0
----
NULL
-34

skipif mysql # not compatible
query II rowsort label-2925
SELECT DISTINCT col0 + + col0 + - col1 + 88 + - + col0 + - CAST ( NULL AS INTEGER ) AS col0, - 34 FROM tab1 AS cor0
----
NULL
-34

query I rowsort
SELECT col2 * + 26 AS col0 FROM tab2 cor0
----
1040
1508
598

query II rowsort
SELECT col0 AS col2, col1 AS col2 FROM tab1 cor0
----
51
14
85
5
91
47

query I rowsort
SELECT DISTINCT + + col2 + + 43 FROM tab0 AS cor0
----
142
53
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2929
SELECT ALL 30 FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) < NULL
----

skipif mysql # not compatible
query I rowsort label-2929
SELECT ALL 30 FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) < NULL
----

query I rowsort
SELECT ALL - col1 * + - col2 AS col2 FROM tab2 AS cor0
----
1173
3080
3886

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2931
SELECT DISTINCT 61 + + + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2931
SELECT DISTINCT 61 + + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 + - col2 - + col1 BETWEEN col1 AND col0 + - col1 / - col2 - + + 49
----

query I rowsort
SELECT + col1 AS col0 FROM tab1 WHERE - + ( + col1 ) * + + col1 + - + col0 IS NULL
----

query I rowsort
SELECT + 10 * + col1 * + ( - 69 ) AS col0 FROM tab2
----
-35190
-46230
-53130

onlyif mysql # DIV for integer division: 
query I rowsort label-2935
SELECT ALL col2 DIV + 79 col0 FROM tab0
----
0
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2935
SELECT ALL col2 / + 79 col0 FROM tab0
----
0
0
1

query I rowsort
SELECT DISTINCT - ( - + col2 ) AS col0 FROM tab2
----
23
40
58

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2937
SELECT ALL SUM( CAST( NULL AS DECIMAL ) ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2937
SELECT ALL SUM ( CAST ( NULL AS REAL ) ) AS col2 FROM tab1
----
NULL

query I rowsort
SELECT + 15 * - 62 + - - col2 + - ( + col2 ) - - 82 - + - col0 * - col1 AS col0 FROM tab0
----
-2063
-2675
-945

query I rowsort
SELECT col0 + + ( + - col2 ) FROM tab2
----
17
23
24

onlyif mysql # DIV for integer division: 
query I rowsort label-2940
SELECT 85 DIV - col2 + - 47 AS col0 FROM tab0
----
-47
-48
-55

skipif mysql # not compatible
query I rowsort label-2940
SELECT 85 / - col2 + - 47 AS col0 FROM tab0
----
-47
-48
-55

query I rowsort
SELECT col1 + + col0 + - 30 FROM tab2 AS cor0
----
111
112
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2942
SELECT ALL + - CAST( + - col0 AS SIGNED ) + col1 FROM tab1 AS cor0
----
138
65
90

skipif mysql # not compatible
query I rowsort label-2942
SELECT ALL + - CAST ( + - col0 AS INTEGER ) + col1 FROM tab1 AS cor0
----
138
65
90

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 <> - 42
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + + ( - - 11 ) - - - 81 FROM tab0 AS cor0
----
-70

query I rowsort
SELECT DISTINCT - 96 + col1 AS col1 FROM tab0 AS cor0
----
-15
-75
-95

query I rowsort
SELECT + col2 AS col0 FROM tab2 AS cor0 WHERE + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2947
SELECT DISTINCT + 12 + COUNT( * ) AS col1 FROM tab2 cor0
----
15

skipif mysql # not compatible
query I rowsort label-2947
SELECT DISTINCT + 12 + COUNT ( * ) AS col1 FROM tab2 cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2948
SELECT DISTINCT MIN( - 86 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-86

skipif mysql # not compatible
query I rowsort label-2948
SELECT DISTINCT MIN ( - 86 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-86

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT - ( - - col1 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + + 30 * + col2 AS col1 FROM tab2 AS cor0
----
1200
1740
690

query II rowsort
SELECT DISTINCT - - ( + - col1 ) * - col1 AS col0, - 82 FROM tab0 AS cor0
----
1
-82
441
-82
6561
-82

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2953
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( ( - ( - - col0 ) ) * - - col1 + + + CAST( - col0 AS SIGNED ) * col0 * + 12 )
----

skipif mysql # not compatible
query III rowsort label-2953
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( ( - ( - - col0 ) ) * - - col1 + + + CAST ( - col0 AS INTEGER ) * col0 * + 12 )
----

query I rowsort
SELECT col2 - + + col2 FROM tab1 AS cor0 WHERE NOT col0 + col0 * + col2 IS NULL
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2955
SELECT - MIN( ALL - + CAST( - col0 AS SIGNED ) ) FROM tab0 WHERE NOT + col1 IS NULL
----
-15

skipif mysql # not compatible
query I rowsort label-2955
SELECT - MIN ( ALL - + CAST ( - col0 AS INTEGER ) ) FROM tab0 WHERE NOT + col1 IS NULL
----
-15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 46, + 32 col1 FROM tab0
----
46
32
46
32
46
32

query I rowsort
SELECT col1 + - - 19 + - - col2 FROM tab1
----
129
134
83

onlyif mysql # aggregate syntax: 
query I rowsort label-2958
SELECT - 93 + - MAX( + - 0 ) FROM tab1
----
-93

skipif mysql # not compatible
query I rowsort label-2958
SELECT - 93 + - MAX ( + - 0 ) FROM tab1
----
-93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col0 FROM tab2 AS cor0 WHERE NOT - col0 * - col1 >= 45
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL BETWEEN + col0 AND + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2961
SELECT ALL - CAST( 86 AS SIGNED ) + - - col0 FROM tab1 AS cor0
----
-1
-35
5

skipif mysql # not compatible
query I rowsort label-2961
SELECT ALL - CAST ( 86 AS INTEGER ) + - - col0 FROM tab1 AS cor0
----
-1
-35
5

query I rowsort
SELECT DISTINCT - + col0 + - 36 FROM tab0 AS cor0
----
-123
-133
-51

query I rowsort
SELECT DISTINCT + 31 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
31

query I rowsort
SELECT DISTINCT - 74 AS col2 FROM tab0 cor0
----
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2965
SELECT ALL ( - col0 ) * + 33 + col1 * + CAST( - - col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-2430
-3200
6066

skipif mysql # not compatible
query I rowsort label-2965
SELECT ALL ( - col0 ) * + 33 + col1 * + CAST ( - - col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-2430
-3200
6066

query I rowsort
SELECT - + col1 + - col2 + + 25 AS col0 FROM tab2 AS cor0
----
-100
-49
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-2967
SELECT ALL - 59 + COUNT( * ) FROM tab0 AS cor0
----
-56

skipif mysql # not compatible
query I rowsort label-2967
SELECT ALL - 59 + COUNT ( * ) FROM tab0 AS cor0
----
-56

query I rowsort
SELECT DISTINCT col1 - + + col2 FROM tab2 AS cor0
----
28
37
9

onlyif mysql # aggregate syntax: 
query II rowsort label-2969
SELECT + COUNT( * ) + + 18, - COUNT( * ) AS col2 FROM tab2 AS cor0
----
21
-3

skipif mysql # not compatible
query II rowsort label-2969
SELECT + COUNT ( * ) + + 18, - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
21
-3

query I rowsort
SELECT DISTINCT + col1 + + + col1 AS col0 FROM tab2
----
102
134
154

onlyif mysql # aggregate syntax: 
query I rowsort label-2971
SELECT DISTINCT - MIN( ALL col2 ) FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-2971
SELECT DISTINCT - MIN ( ALL col2 ) FROM tab0
----
-10

query I rowsort
SELECT col2 * + + 53 FROM tab0
----
2491
5247
530

query II rowsort
SELECT ALL col1, + 80 - + - col0 * 72 * - - 37 AS col2 FROM tab0
----
1
258488
21
231848
81
40040

query I rowsort
SELECT ALL + col2 * + - 78 * + + col0 FROM tab1
----
-381888
-391170
-482664

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2975
SELECT DISTINCT 33 AS col1, col1 * - col1 / + CAST( NULL AS SIGNED ) FROM tab2
----
33
NULL

skipif mysql # not compatible
query II rowsort label-2975
SELECT DISTINCT 33 AS col1, col1 * - col1 / + CAST ( NULL AS INTEGER ) FROM tab2
----
33
NULL

query I rowsort
SELECT - col1 * - + 34 + - col2 FROM tab1 cor0 WHERE 6 * - col1 <> + col2
----
111
1530
380

query II rowsort
SELECT col1 * - 98, - col1 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-2058
-21
-7938
-81
-98
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2978
SELECT - 79 * + 14 * + - 57 - + + ( + MAX( - col1 ) ) FROM tab1 AS cor0
----
63047

skipif mysql # not compatible
query I rowsort label-2978
SELECT - 79 * + 14 * + - 57 - + + ( + MAX ( - col1 ) ) FROM tab1 AS cor0
----
63047

query II rowsort
SELECT - + 64 AS col0, 14 * col1 FROM tab1 cor0
----
-64
196
-64
658
-64
70

query II rowsort
SELECT - 50, col2 FROM tab1 AS cor0
----
-50
59
-50
68
-50
96

query I rowsort
SELECT ALL col2 * - + col0 FROM tab1
----
-4896
-5015
-6188

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2982
SELECT ALL * FROM tab2 WHERE NOT NULL IN ( - CAST( - - col0 AS SIGNED ) + + col1, 13 - 1 )
----

skipif mysql # not compatible
query III rowsort label-2982
SELECT ALL * FROM tab2 WHERE NOT NULL IN ( - CAST ( - - col0 AS INTEGER ) + + col1, 13 - 1 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( ( ( NULL ) = col2 ) )
----

query I rowsort
SELECT DISTINCT 36 * - 45 AS col0 FROM tab1 cor0
----
-1620

onlyif mysql # aggregate syntax: 
query I rowsort label-2985
SELECT - - COUNT( * ) * - - 88 AS col1 FROM tab1 AS cor0
----
264

skipif mysql # not compatible
query I rowsort label-2985
SELECT - - COUNT ( * ) * - - 88 AS col1 FROM tab1 AS cor0
----
264

query I rowsort
SELECT ALL - 93 * - col0 FROM tab2 AS cor0
----
4278
5952
6975

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2987
SELECT + - col1 * - CAST( NULL AS SIGNED ), col1 + - col2 + + ( col0 ) AS col1 FROM tab2 AS cor0
----
NULL
101
NULL
74
NULL
84

skipif mysql # not compatible
query II rowsort label-2987
SELECT + - col1 * - CAST ( NULL AS INTEGER ), col1 + - col2 + + ( col0 ) AS col1 FROM tab2 AS cor0
----
NULL
101
NULL
74
NULL
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2988
SELECT + COUNT( * ) * 38 FROM tab1 cor0
----
114

skipif mysql # not compatible
query I rowsort label-2988
SELECT + COUNT ( * ) * 38 FROM tab1 cor0
----
114

onlyif mysql # DIV for integer division: 
query I rowsort label-2989
SELECT ALL - col1 DIV - 83 * - + col0 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2989
SELECT ALL - col1 / - 83 * - + col0 AS col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2990
SELECT ALL + + CAST( + col0 AS SIGNED ) col0 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2990
SELECT ALL + + CAST ( + col0 AS INTEGER ) col0 FROM tab2 AS cor0
----
46
64
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2991
SELECT DISTINCT - COUNT( * ) DIV - - 41 AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2991
SELECT DISTINCT - COUNT ( * ) / - - 41 AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - col1 * + 25 + ( + 5 ) * - + 37 FROM tab2 AS cor0
----
-1460
-1860
-2110

query II rowsort
SELECT ALL ( + - col0 ), col2 AS col2 FROM tab2 AS cor0
----
-46
23
-64
40
-75
58

query I rowsort
SELECT ALL col1 * - col1 * col0 AS col2 FROM tab2
----
-119646
-336675
-379456

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 88 col0 FROM tab1
----
88
88
88

query I rowsort
SELECT ALL - ( 89 ) + + col0 + col0 AS col0 FROM tab1 AS cor0
----
13
81
93

query I rowsort
SELECT ALL - + 73 FROM tab0 cor0
----
-73
-73
-73

query I rowsort
SELECT ALL - col0 + 77 FROM tab0 AS cor0
----
-10
-20
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 41 col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4ba0c102091f9cbc9fe9439b04584e70

query I rowsort
SELECT DISTINCT 75 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
75

onlyif mysql # DIV for integer division: 
query II rowsort label-3001
SELECT DISTINCT + 62 DIV - ( - col2 ) + col0 * + + col1 + - col1, - ( + col1 ) AS col2 FROM tab0 AS cor0
----
1135
-81
1812
-21
96
-1

skipif mysql # not compatible
query II rowsort label-3001
SELECT DISTINCT + 62 / - ( - col2 ) + col0 * + + col1 + - col1, - ( + col1 ) AS col2 FROM tab0 AS cor0
----
1135
-81
1812
-21
96
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - + 8 col0 FROM tab0 AS cor0
----
-7
13
73

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 NOT IN ( + - col1, - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3004
SELECT - COUNT( * ) DIV 81 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-3004
SELECT - COUNT ( * ) / 81 FROM tab1 cor0
----
0

query I rowsort
SELECT DISTINCT + col1 + 67 AS col1 FROM tab2 AS cor0
----
118
134
144

query II rowsort
SELECT + - 46, + 22 AS col0 FROM tab1 AS cor0
----
-46
22
-46
22
-46
22

query I rowsort
SELECT ALL + + 44 - + col1 FROM tab0 AS cor0
----
-37
23
43

onlyif mysql # DIV for integer division: 
query I rowsort label-3008
SELECT DISTINCT 2 + + 11 DIV col2 AS col1 FROM tab1 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-3008
SELECT DISTINCT 2 + + 11 / col2 AS col1 FROM tab1 AS cor0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3009
SELECT ALL - MIN( ALL 11 ) - + - COUNT( * ) AS col2 FROM tab0
----
-8

skipif mysql # not compatible
query I rowsort label-3009
SELECT ALL - MIN ( ALL 11 ) - + - COUNT ( * ) AS col2 FROM tab0
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-3010
SELECT ALL 59 * + - COUNT( * ) + + - COUNT( * ) FROM tab0
----
-180

skipif mysql # not compatible
query I rowsort label-3010
SELECT ALL 59 * + - COUNT ( * ) + + - COUNT ( * ) FROM tab0
----
-180

query III rowsort
SELECT * FROM tab1 WHERE NULL <> - - 54
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3012
SELECT - COUNT( * ) + - 2 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-3012
SELECT - COUNT ( * ) + - 2 FROM tab1
----
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 + - - col0 AS col2, col0 col0 FROM tab0
----
108
87
96
15
98
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3014
SELECT + COUNT( * ) + + + 43 AS col0 FROM tab1
----
46

skipif mysql # not compatible
query I rowsort label-3014
SELECT + COUNT ( * ) + + + 43 AS col0 FROM tab1
----
46

query II rowsort
SELECT DISTINCT + col2 - - + col2, col2 AS col0 FROM tab0
----
198
99
20
10
94
47

query I rowsort
SELECT ALL - col1 * + - ( + + 12 ) FROM tab0
----
12
252
972

query I rowsort
SELECT ALL + + col0 * - + 81 FROM tab2 AS cor0
----
-3726
-5184
-6075

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT + col0 = NULL
----

query I rowsort
SELECT + - 88 AS col0 FROM tab0 cor0
----
-88
-88
-88

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 95 + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3021
SELECT - - COUNT( 15 ) AS col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-3021
SELECT - - COUNT ( 15 ) AS col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9

query III rowsort
SELECT * FROM tab1 WHERE NOT + + col2 = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3023
SELECT - COUNT( CAST( NULL AS SIGNED ) ) DIV + 81 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3023
SELECT - COUNT ( CAST ( NULL AS INTEGER ) ) / + 81 FROM tab1
----
0

query I rowsort
SELECT 9 * - col0 * - col1 AS col1 FROM tab0
----
10935
16443
873

query II rowsort
SELECT + 20 AS col1, + 52 - - col0 - + + 85 + - + col1 FROM tab2
----
20
-25
20
-38
20
-46

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL > + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3027
SELECT - 10 * - col2 + - - col2 FROM tab1 AS cor0 WHERE NOT + CAST( col0 AS SIGNED ) IS NULL
----
1056
649
748

skipif mysql # not compatible
query I rowsort label-3027
SELECT - 10 * - col2 + - - col2 FROM tab1 AS cor0 WHERE NOT + CAST ( col0 AS INTEGER ) IS NULL
----
1056
649
748

query II rowsort
SELECT DISTINCT - col1, + col0 FROM tab1 AS cor0
----
-14
51
-47
91
-5
85

query I rowsort
SELECT ALL - 17 * + col2 FROM tab0 AS cor0
----
-1683
-170
-799

query I rowsort
SELECT ALL - col0 * + - col1 FROM tab2 AS cor0
----
2346
4928
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-3031
SELECT DISTINCT COUNT( + + col2 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3031
SELECT DISTINCT COUNT ( + + col2 ) AS col1 FROM tab2
----
3

query I rowsort
SELECT - col2 + - 80 FROM tab1
----
-139
-148
-176

query I rowsort
SELECT ALL + ( + col2 ) * - col0 + + - col1 + - + col1 FROM tab0
----
-867
-912
-9605

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 34 + + 93 * 26 col1 FROM tab2
----
2452
2452
2452

query II rowsort
SELECT 93 + + 98, col0 - - col0 AS col0 FROM tab0
----
191
174
191
194
191
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3036
SELECT 95 + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3036
SELECT 95 + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 * + - ( 12 ) FROM tab0
----
-12
-252
-972

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL > + 7
----

query I rowsort
SELECT + col0 + 96 * + col0 FROM tab2
----
4462
6208
7275

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 67 + - col1 col0 FROM tab0
----
-148
-68
-88

query III rowsort
SELECT * FROM tab1 WHERE NULL <= + 24
----

query I rowsort
SELECT + col2 + col1 FROM tab2 AS cor0 WHERE ( - ( - col1 ) IS NOT NULL )
----
117
125
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT AVG ( + col1 ) col2 FROM tab1 AS cor0 WHERE ( NULL ) < NULL
----
NULL

query I rowsort
SELECT + col1 * - - col2 * + - col0 + col1 AS col1 FROM tab2 AS cor0
----
-197043
-291383
-53907

query I rowsort
SELECT ALL - 19 + + 60 FROM tab2 AS cor0
----
41
41
41

query I rowsort
SELECT DISTINCT - col2 + 78 AS col2 FROM tab0 AS cor0
----
-21
31
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col0 ) - + ( - col1 ) col2 FROM tab2 AS cor0
----
141
142
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3048
SELECT ALL COUNT( * ) * + + MAX( DISTINCT + col2 ) + + COUNT( * ) + CAST( - ( - COUNT( * ) ) AS SIGNED ) FROM tab2 AS cor0
----
180

skipif mysql # not compatible
query I rowsort label-3048
SELECT ALL COUNT ( * ) * + + MAX ( DISTINCT + col2 ) + + COUNT ( * ) + CAST ( - ( - COUNT ( * ) ) AS INTEGER ) FROM tab2 AS cor0
----
180

query I rowsort
SELECT + 7 * - + col2 AS col0 FROM tab1
----
-413
-476
-672

query II rowsort
SELECT ALL + col0, + col0 FROM tab0
----
15
15
87
87
97
97

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + - 37 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col2 * + 15 FROM tab2
----
-345
-600
-870

onlyif mysql # aggregate syntax: 
query I rowsort label-3053
SELECT DISTINCT - ( + MIN( DISTINCT col1 ) ) FROM tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3053
SELECT DISTINCT - ( + MIN ( DISTINCT col1 ) ) FROM tab0 cor0
----
-1

query II rowsort
SELECT + + 41 AS col2, + col0 + col1 - - - col2 - - col1 FROM tab1 AS cor0
----
41
-17
41
117
41
36

onlyif mysql # aggregate syntax: 
query I rowsort label-3055
SELECT SUM( - 68 ) AS col1 FROM tab1 AS cor0
----
-204

skipif mysql # not compatible
query I rowsort label-3055
SELECT SUM ( - 68 ) AS col1 FROM tab1 AS cor0
----
-204

query I rowsort
SELECT DISTINCT - + 40 AS col0 FROM tab1 AS cor0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-3057
SELECT + ( COUNT( - + 24 ) ) * + 94 * SUM( 58 ) FROM tab1 AS cor0
----
49068

skipif mysql # not compatible
query I rowsort label-3057
SELECT + ( COUNT ( - + 24 ) ) * + 94 * SUM ( 58 ) FROM tab1 AS cor0
----
49068

onlyif mysql # aggregate syntax: 
query II rowsort label-3058
SELECT ALL - 50 * + COUNT( * ) AS col2, - COUNT( * ) FROM tab2 AS cor0
----
-150
-3

skipif mysql # not compatible
query II rowsort label-3058
SELECT ALL - 50 * + COUNT ( * ) AS col2, - COUNT ( * ) FROM tab2 AS cor0
----
-150
-3

query I rowsort
SELECT - - 4 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

query III rowsort
SELECT * FROM tab1 WHERE NOT + 93 + + 86 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3061
SELECT DISTINCT + col1 FROM tab2 WHERE + - CAST( NULL AS SIGNED ) BETWEEN col0 AND NULL
----

skipif mysql # not compatible
query I rowsort label-3061
SELECT DISTINCT + col1 FROM tab2 WHERE + - CAST ( NULL AS INTEGER ) BETWEEN col0 AND NULL
----

query I rowsort
SELECT ALL 69 AS col0 FROM tab0 cor0
----
69
69
69

query I rowsort
SELECT - col0 * - - col0 * + 52 + + col0 + + + col0 + + + 73 * col0 + + - 71 AS col1 FROM tab1 AS cor0
----
-131498
-369396
-423858

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3064
SELECT ( - col2 ) / + - col2 - + 76 * - col1 * - CAST( NULL AS SIGNED ) * - 36 * 0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3064
SELECT ( - col2 ) / + - col2 - + 76 * - col1 * - CAST ( NULL AS INTEGER ) * - 36 * 0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3065
SELECT DISTINCT + 45 + CAST( - col0 AS SIGNED ) FROM tab0 AS cor0
----
-42
-52
30

skipif mysql # not compatible
query I rowsort label-3065
SELECT DISTINCT + 45 + CAST ( - col0 AS INTEGER ) FROM tab0 AS cor0
----
-42
-52
30

query I rowsort
SELECT ALL - col0 + - + col2 + - + ( - - 69 ) FROM tab2 AS cor0
----
-138
-173
-202

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3067
SELECT DISTINCT - CAST( - COUNT( DISTINCT + - col0 ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3067
SELECT DISTINCT - CAST ( - COUNT ( DISTINCT + - col0 ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3068
SELECT ALL COUNT( * ) * + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3068
SELECT ALL COUNT ( * ) * + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-9

query I rowsort
SELECT ALL + col0 * - + 69 * - 14 AS col2 FROM tab0
----
14490
84042
93702

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3070
SELECT ALL + CAST( NULL AS SIGNED ) * + col2 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3070
SELECT ALL + CAST ( NULL AS INTEGER ) * + col2 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE NOT + col1 IN ( + - col0, + col1, - 61, + 77 + + - col0, col0 )
----

query III rowsort
SELECT * FROM tab1 WHERE - col0 + + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT 3, 23 FROM tab0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT DISTINCT col0 AS col0, col0 FROM tab0
----
15
15
87
87
97
97

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col0 + + col1 + 95 IS NULL
----

query I rowsort
SELECT DISTINCT col0 * - + col2 AS col2 FROM tab1
----
-4896
-5015
-6188

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT BETWEEN NULL AND + - col1 * + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3078
SELECT - - 55 + COUNT( * ) FROM tab1 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-3078
SELECT - - 55 + COUNT ( * ) FROM tab1 AS cor0
----
58

query II rowsort
SELECT 40 * - col0 + - col1, col2 FROM tab2 AS cor0
----
-1891
23
-2637
40
-3067
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3080
SELECT DISTINCT + + COUNT( * ) FROM tab1 cor0 WHERE - col2 / + col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3080
SELECT DISTINCT + + COUNT ( * ) FROM tab1 cor0 WHERE - col2 / + col2 IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 + + - ( + 57 ) col1, col1 FROM tab1 AS cor0
----
-10
47
-43
14
-52
5

query I rowsort
SELECT ALL - - col2 + - + col2 AS col1 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab0 WHERE - 38 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL IN ( 27 + 19 )
----

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT ( NULL ) < - 55
----

query I rowsort
SELECT + col0 - col1 + col2 AS col1 FROM tab1 AS cor0
----
112
133
139

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 <> - - 1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <> + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3089
SELECT DISTINCT - MAX( ALL + col2 ) FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-3089
SELECT DISTINCT - MAX ( ALL + col2 ) FROM tab1
----
-96

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE NOT + 49 * - col2 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3092
SELECT ALL SUM( DISTINCT + col2 ) FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-3092
SELECT ALL SUM ( DISTINCT + col2 ) FROM tab0 AS cor0
----
156

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + col0 AND + - col0 * 61 + 85 + - col0 / col2 + - col0 + + - col1 + col2
----

query II rowsort
SELECT col0 AS col2, col0 * - col2 * - col0 * - 49 AS col0 FROM tab2
----
46
-2384732
64
-8028160
75
-15986250

query II rowsort
SELECT DISTINCT 35 AS col0, 62 AS col0 FROM tab2
----
35
62

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3096
SELECT DISTINCT * FROM tab1 WHERE CAST( NULL AS SIGNED ) = + + col1 * + ( + 15 ) * col0 / ( - + col1 ) - + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) * col1 - col2
----

skipif mysql # not compatible
query III rowsort label-3096
SELECT DISTINCT * FROM tab1 WHERE CAST ( NULL AS INTEGER ) = + + col1 * + ( + 15 ) * col0 / ( - + col1 ) - + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * col1 - col2
----

query I rowsort
SELECT ALL ( + - col2 ) AS col2 FROM tab2 AS cor0
----
-23
-40
-58

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT ( NULL ) NOT IN ( - + col2 )
----

query II rowsort
SELECT DISTINCT - - 54, 59 AS col2 FROM tab0 AS cor0
----
54
59

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col2 <> - - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3101
SELECT + COUNT( * ) + + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3101
SELECT + COUNT ( * ) + + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + + 69 + + 27 - - - 42 AS col2 FROM tab2 AS cor0
----
54
54
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3103
SELECT DISTINCT CAST( + col2 AS SIGNED ) col1 FROM tab1
----
59
68
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3103
SELECT DISTINCT CAST ( + col2 AS INTEGER ) col1 FROM tab1
----
59
68
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 65 + + col1, 15 col2 FROM tab1
----
-18
15
-51
15
-60
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3105
SELECT SUM( + col2 ) col0 FROM tab1 WHERE NULL IS NULL
----
223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3105
SELECT SUM ( + col2 ) col0 FROM tab1 WHERE NULL IS NULL
----
223

onlyif mysql # aggregate syntax: 
query I rowsort label-3106
SELECT + COUNT( + col1 ) * ( + 33 ) * + 52 + + COUNT( * ) FROM tab2
----
5151

skipif mysql # not compatible
query I rowsort label-3106
SELECT + COUNT ( + col1 ) * ( + 33 ) * + 52 + + COUNT ( * ) FROM tab2
----
5151

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3107
SELECT ALL + 93 AS col2 FROM tab2 AS cor0 WHERE - CAST( NULL AS DECIMAL ) IS NULL
----
93
93
93

skipif mysql # not compatible
query I rowsort label-3107
SELECT ALL + 93 AS col2 FROM tab2 AS cor0 WHERE - CAST ( NULL AS REAL ) IS NULL
----
93
93
93

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 - - + col2 * - - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3109
SELECT DISTINCT + 74 - SUM( - + col0 ) AS col2 FROM tab0 AS cor0
----
273

skipif mysql # not compatible
query I rowsort label-3109
SELECT DISTINCT + 74 - SUM ( - + col0 ) AS col2 FROM tab0 AS cor0
----
273

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3110
SELECT ALL - CAST( NULL AS SIGNED ) + 80 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3110
SELECT ALL - CAST ( NULL AS INTEGER ) + 80 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 86 - 21 AS col0 FROM tab0 AS cor0
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3112
SELECT ALL + col1 - + - 96 + ( - CAST( NULL AS SIGNED ) ) * + 44 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3112
SELECT ALL + col1 - + - 96 + ( - CAST ( NULL AS INTEGER ) ) * + 44 AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3113
SELECT DISTINCT COUNT( * ) DIV + ( - COUNT( * ) ) - + 20 AS col0 FROM tab1
----
-21

skipif mysql # not compatible
query I rowsort label-3113
SELECT DISTINCT COUNT ( * ) / + ( - COUNT ( * ) ) - + 20 AS col0 FROM tab1
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-3114
SELECT ALL - + COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-3114
SELECT ALL - + COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-3115
SELECT - 8 DIV - col0 + + col2 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-3115
SELECT - 8 / - col0 + + col2 FROM tab2
----
23
40
58

query I rowsort
SELECT 60 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col1, col0 FROM tab1 AS cor0
----
51
51
85
85
91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3118
SELECT + ( + + COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3118
SELECT + ( + + COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
3

query II rowsort
SELECT DISTINCT 27, col0 AS col1 FROM tab1 AS cor0
----
27
51
27
85
27
91

query I rowsort
SELECT ALL + col2 / + - 12 AS col1 FROM tab1 AS cor0 WHERE col0 / col2 <> NULL
----

query I rowsort
SELECT + + 93 FROM tab1 cor0
----
93
93
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3122
SELECT ALL + - ( + + COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3122
SELECT ALL + - ( + + COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT DISTINCT - col0 FROM tab2 WHERE - 26 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3124
SELECT - COUNT( * ) AS col1 FROM tab1 WHERE NOT NULL < col2
----
0

skipif mysql # not compatible
query I rowsort label-3124
SELECT - COUNT ( * ) AS col1 FROM tab1 WHERE NOT NULL < col2
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 <= + + col0
----

query I rowsort
SELECT col1 FROM tab1 WHERE NOT NULL <= + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3127
SELECT - + ( - MAX( - 49 ) ) FROM tab0 AS cor0
----
-49

skipif mysql # not compatible
query I rowsort label-3127
SELECT - + ( - MAX ( - 49 ) ) FROM tab0 AS cor0
----
-49

query I rowsort
SELECT + 17 * - 4 AS col2 FROM tab1 AS cor0
----
-68
-68
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-3129
SELECT - MIN( ALL + 83 ) AS col2 FROM tab0 cor0
----
-83

skipif mysql # not compatible
query I rowsort label-3129
SELECT - MIN ( ALL + 83 ) AS col2 FROM tab0 cor0
----
-83

query I rowsort
SELECT - col0 * ( + - col1 ) AS col1 FROM tab0 AS cor0
----
1215
1827
97

query I rowsort
SELECT DISTINCT - 99 + col2 FROM tab0 AS cor0
----
-52
-89
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3132
SELECT ALL COUNT( * ) + - + COUNT( * ) AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3132
SELECT ALL COUNT ( * ) + - + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT - 32 * + 82 + 6 AS col2 FROM tab2 AS cor0
----
-2618

onlyif mysql # aggregate syntax: 
query I rowsort label-3134
SELECT SUM( DISTINCT col1 ) AS col0 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-3134
SELECT SUM ( DISTINCT col1 ) AS col0 FROM tab1 AS cor0
----
66

query I rowsort
SELECT ALL + - 25 + + + col2 AS col0 FROM tab1 AS cor0
----
34
43
71

query I rowsort
SELECT + - 86 * - 66 FROM tab2 cor0
----
5676
5676
5676

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 91 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + ( - col1 ) <> - 56 + - 94
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT 46, - col2 AS col0 FROM tab0
----
46
-10
46
-47
46
-99

query I rowsort
SELECT col1 + - - col0 AS col0 FROM tab1
----
138
65
90

query I rowsort
SELECT ALL + + 16 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3142
SELECT - CAST( NULL AS DECIMAL ) + - - col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3142
SELECT - CAST ( NULL AS REAL ) + - - col2 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3143
SELECT 23 + - COUNT( * ) - - COUNT( * ) FROM tab0 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-3143
SELECT 23 + - COUNT ( * ) - - COUNT ( * ) FROM tab0 AS cor0
----
23

query I rowsort
SELECT + col1 + + + col1 FROM tab0 cor0
----
162
2
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + + 72 col0 FROM tab0 AS cor0
----
153
73
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3146
SELECT DISTINCT - 21 * - 61 * + COUNT( * ) FROM tab1
----
3843

skipif mysql # not compatible
query I rowsort label-3146
SELECT DISTINCT - 21 * - 61 * + COUNT ( * ) FROM tab1
----
3843

query I rowsort
SELECT ALL - + 48 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 31c94943c073954e4ca20b170ab61f8c

query II rowsort
SELECT ALL - col0 * + 21 AS col0, ( col0 ) FROM tab1 WHERE - - col1 IS NOT NULL
----
-1071
51
-1785
85
-1911
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3149
SELECT DISTINCT - COUNT( * ) * + - COUNT( DISTINCT ( col1 ) ) AS col2 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3149
SELECT DISTINCT - COUNT ( * ) * + - COUNT ( DISTINCT ( col1 ) ) AS col2 FROM tab2 AS cor0
----
9

query I rowsort
SELECT DISTINCT + col2 * - 50 FROM tab1 AS cor0
----
-2950
-3400
-4800

query II rowsort
SELECT ALL col1, - 45 AS col2 FROM tab1
----
14
-45
47
-45
5
-45

query II rowsort
SELECT DISTINCT - col0 AS col1, - col1 FROM tab1
----
-51
-14
-85
-5
-91
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3153
SELECT - CAST( col0 AS SIGNED ) * + - 60 FROM tab0 WHERE NOT NULL = - col0
----

skipif mysql # not compatible
query I rowsort label-3153
SELECT - CAST ( col0 AS INTEGER ) * + - 60 FROM tab0 WHERE NOT NULL = - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 AS col2, + col2 * + 63 * - - col2 col2 FROM tab0
----
10
6300
47
139167
99
617463

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 27, - 26 col2 FROM tab0
----
27
-26
27
-26
27
-26

query I rowsort
SELECT DISTINCT + col0 * - 74 FROM tab2
----
-3404
-4736
-5550

onlyif mysql # DIV for integer division: 
query I rowsort label-3157
SELECT ALL col2 DIV + + 90 AS col1 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3157
SELECT ALL col2 / + + 90 AS col1 FROM tab1
----
0
0
1

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) <= + + 38
----

query I rowsort
SELECT ALL + ( - 41 ) AS col2 FROM tab2 AS cor0
----
-41
-41
-41

onlyif mysql # aggregate syntax: 
query II rowsort label-3160
SELECT + COUNT( * ) AS col1, 41 AS col0 FROM tab2 AS cor0
----
3
41

skipif mysql # not compatible
query II rowsort label-3160
SELECT + COUNT ( * ) AS col1, 41 AS col0 FROM tab2 AS cor0
----
3
41

query I rowsort
SELECT ALL + - 77 * + - 61 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2566573031a745584dbea662ef4b130c

onlyif mysql # aggregate syntax: 
query I rowsort label-3162
SELECT ALL + 73 + - COUNT( * ) - - 9 AS col2 FROM tab1 cor0
----
79

skipif mysql # not compatible
query I rowsort label-3162
SELECT ALL + 73 + - COUNT ( * ) - - 9 AS col2 FROM tab1 cor0
----
79

query I rowsort
SELECT ALL - - col1 + - - col1 - + 25 AS col1 FROM tab0 AS cor0
----
-23
137
17

query I rowsort
SELECT DISTINCT + 7 * - col0 + - 56 - - - 16 * - 80 FROM tab0 AS cor0
----
1119
545
615

onlyif mysql # DIV for integer division: 
query I rowsort label-3165
SELECT DISTINCT + - col1 + - col0 + - + ( 69 ) + + - col1 + + col2 * col1 DIV + - col0 col0 FROM tab2 AS cor0
----
-242
-329
-335

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3165
SELECT DISTINCT + - col1 + - col0 + - + ( 69 ) + + - col1 + + col2 * col1 / + - col0 col0 FROM tab2 AS cor0
----
-242
-329
-335

query I rowsort
SELECT - col2 + + + col1 + - col0 FROM tab0
----
-195
-76
19

query III rowsort
SELECT * FROM tab2 WHERE + 85 >= - + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ( + 20 ) + - col1 + col2 + - - col2 * + + col2 AS col1 FROM tab0
----
109
2195
9919

query I rowsort
SELECT DISTINCT + + col2 AS col0 FROM tab0 WHERE NOT + col0 NOT BETWEEN NULL AND - + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3170
SELECT ALL COUNT( - - col2 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3170
SELECT ALL COUNT ( - - col2 ) FROM tab2
----
3

query II rowsort
SELECT - col0 AS col0, col1 FROM tab0
----
-15
81
-87
21
-97
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3172
SELECT + 15 * + COUNT( * ) FROM tab2
----
45

skipif mysql # not compatible
query I rowsort label-3172
SELECT + 15 * + COUNT ( * ) FROM tab2
----
45

query III rowsort
SELECT * FROM tab0 WHERE 36 IS NULL
----

query I rowsort
SELECT DISTINCT - 33 - + + 33 + col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 50 - col2 FROM tab2 AS cor0
----
-108
-73
-90

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 23 * - + 89 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - - 97 * + 76 * - 50 AS col1 FROM tab1 cor0
----
-368600
-368600
-368600

query II rowsort
SELECT ALL + col2, col0 + + col2 FROM tab0 AS cor0
----
10
97
47
62
99
196

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3179
SELECT CAST( NULL AS DECIMAL ) * + col0 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-3179
SELECT CAST ( NULL AS REAL ) * + col0 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + 29 * col1 FROM tab0 AS cor0
----
2349
29
609

query II rowsort
SELECT ALL - ( - 97 ), col1 * - - col0 AS col0 FROM tab2 AS cor0
----
97
2346
97
4928
97
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-3182
SELECT + - COUNT( * ) AS col2 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3182
SELECT + - COUNT ( * ) AS col2 FROM tab0 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3183
SELECT - + COUNT( - 16 ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3183
SELECT - + COUNT ( - 16 ) AS col1 FROM tab0 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - 53 * - + 7 < NULL
----

query II rowsort
SELECT - col0 AS col1, col2 + - - col2 AS col1 FROM tab1 AS cor0
----
-51
192
-85
118
-91
136

query II rowsort
SELECT ALL col1 AS col1, - 15 AS col2 FROM tab2 AS cor0
----
51
-15
67
-15
77
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3187
SELECT ALL + CAST( + col1 AS SIGNED ) col0 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3187
SELECT ALL + CAST ( + col1 AS INTEGER ) col0 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3188
SELECT 40 DIV MAX( + col0 ) FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-3188
SELECT 40 / MAX ( + col0 ) FROM tab1 cor0
----
0

query I rowsort
SELECT col1 * + col0 + + 86 AS col2 FROM tab0 cor0
----
1301
183
1913

query II rowsort
SELECT ALL - col0, 28 AS col0 FROM tab0 AS cor0
----
-15
28
-87
28
-97
28

query I rowsort
SELECT + - ( + + 34 ) * - 26 FROM tab1 cor0
----
884
884
884

query II rowsort
SELECT col1 AS col1, + col0 FROM tab2 AS cor0
----
51
46
67
75
77
64

query I rowsort
SELECT ALL 87 * ( + + 87 ) AS col0 FROM tab2
----
7569
7569
7569

query I rowsort
SELECT ALL + col0 * + 68 FROM tab1
----
3468
5780
6188

query III rowsort
SELECT * FROM tab2 WHERE NOT + 93 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3196
SELECT ALL col2 DIV - - 28 AS col1 FROM tab2 WHERE + col0 NOT IN ( - col0 * - col1 - - 45 )
----
0
1
2

skipif mysql # not compatible
query I rowsort label-3196
SELECT ALL col2 / - - 28 AS col1 FROM tab2 WHERE + col0 NOT IN ( - col0 * - col1 - - 45 )
----
0
1
2

query I rowsort
SELECT DISTINCT + 69 * + col1 AS col1 FROM tab2
----
3519
4623
5313

query I rowsort
SELECT ALL - 23 AS col1 FROM tab1 AS cor0
----
-23
-23
-23

query I rowsort
SELECT + + 92 AS col2 FROM tab0 AS cor0
----
92
92
92

query II rowsort
SELECT + col2 AS col2, 60 + - col0 FROM tab0 AS cor0 WHERE NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3201
SELECT - COUNT( * ) AS col1 FROM tab1 WHERE NOT + col0 <> + col2 AND NOT ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3201
SELECT - COUNT ( * ) AS col1 FROM tab1 WHERE NOT + col0 <> + col2 AND NOT ( NULL ) IS NOT NULL
----
0

query I rowsort
SELECT - + 2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ec11209ab257030053484fc13a1f6d17

query II rowsort
SELECT col2 + - 32 * + 66 AS col2, - col1 AS col0 FROM tab2
----
-2054
-67
-2072
-77
-2089
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3204
SELECT DISTINCT COUNT( + + col2 ) DIV + - MAX( + - col0 ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3204
SELECT DISTINCT COUNT ( + + col2 ) / + - MAX ( + - col0 ) AS col1 FROM tab1
----
0

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT + 77 IS NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

onlyif mysql # aggregate syntax: 
query I rowsort label-3206
SELECT + + SUM( DISTINCT + + col1 ) AS col1 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-3206
SELECT + + SUM ( DISTINCT + + col1 ) AS col1 FROM tab1 AS cor0
----
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col0, + col1 AS col2 FROM tab0 AS cor0
----
1
1
21
21
81
81

query I rowsort
SELECT DISTINCT + 1 + - + 87 AS col2 FROM tab1 AS cor0
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-3209
SELECT ALL - + COUNT( * ) + 22 FROM tab1 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-3209
SELECT ALL - + COUNT ( * ) + 22 FROM tab1 AS cor0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-3210
SELECT COUNT( * ) * - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3210
SELECT COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-9

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 >= 30
----
64
77
40
75
67
58

query I rowsort
SELECT - - 72 * - 18 * - ( - col2 ) AS col0 FROM tab2 AS cor0 WHERE NULL > - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3213
SELECT ALL COUNT( * ) * COUNT( * ) + - ( + COUNT( * ) ) AS col2 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-3213
SELECT ALL COUNT ( * ) * COUNT ( * ) + - ( + COUNT ( * ) ) AS col2 FROM tab2
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3214
SELECT ALL * FROM tab1 WHERE CAST( NULL AS SIGNED ) * - col0 BETWEEN - col0 AND NULL
----

skipif mysql # not compatible
query III rowsort label-3214
SELECT ALL * FROM tab1 WHERE CAST ( NULL AS INTEGER ) * - col0 BETWEEN - col0 AND NULL
----

query I rowsort
SELECT + col1 * col2 + + ( + ( + col0 ) ) + 47 AS col2 FROM tab2
----
1266
3191
4008

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 col2 FROM tab2 WHERE NOT ( - - col0 ) * col1 / - + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3217
SELECT ALL - MIN( - - 48 ) - COUNT( * ) AS col2 FROM tab0
----
-51

skipif mysql # not compatible
query I rowsort label-3217
SELECT ALL - MIN ( - - 48 ) - COUNT ( * ) AS col2 FROM tab0
----
-51

query I rowsort
SELECT ALL ( + + col2 ) AS col0 FROM tab2
----
23
40
58

query I rowsort
SELECT - col2 + + + ( + 17 ) AS col0 FROM tab2
----
-23
-41
-6

query I rowsort
SELECT DISTINCT + col1 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
1
21
81

query I rowsort
SELECT + + col1 + + col2 * - - 31 AS col2 FROM tab0 AS cor0
----
1538
3070
331

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3222
SELECT - CAST( - col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-3222
SELECT - CAST ( - col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT + col0 - + 42 AS col0 FROM tab2 AS cor0 WHERE NOT ( - 99 ) * col1 + + - 99 = + col2
----
22
33
4

query I rowsort
SELECT - + 45 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 71160abf09589695379a70558726f0ba

query I rowsort
SELECT ALL - col0 AS col2 FROM tab0 WHERE ( NULL ) BETWEEN + col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3226
SELECT + - MAX( DISTINCT - - col0 ) AS col1 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-3226
SELECT + - MAX ( DISTINCT - - col0 ) AS col1 FROM tab0 AS cor0
----
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0, - 79 col1 FROM tab1 AS cor0
----
51
-79
85
-79
91
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-3228
SELECT ALL ( - COUNT( * ) ) col0 FROM tab2 cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3228
SELECT ALL ( - COUNT ( * ) ) col0 FROM tab2 cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 60 col1 FROM tab0 cor0
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3230
SELECT + col0 col2 FROM tab1 AS cor0 WHERE NOT CAST( - + 63 AS SIGNED ) * col2 = - + col0 + + + 67
----
51
85
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3230
SELECT + col0 col2 FROM tab1 AS cor0 WHERE NOT CAST ( - + 63 AS INTEGER ) * col2 = - + col0 + + + 67
----
51
85
91

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col1 * + col1 <> NULL
----

query I rowsort
SELECT - col1 * + - 24 FROM tab0
----
1944
24
504

query III rowsort
SELECT * FROM tab2 WHERE NOT - + col1 <> col2
----

query I rowsort
SELECT DISTINCT - 21 * + col0 AS col0 FROM tab0
----
-1827
-2037
-315

query I rowsort
SELECT 68 + + col2 FROM tab1
----
127
136
164

query I rowsort
SELECT ALL + 52 * - col2 * - col2 FROM tab1
----
181012
240448
479232

query II rowsort
SELECT + col1 + col2 AS col1, - 48 AS col1 FROM tab1
----
110
-48
115
-48
64
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3238
SELECT + SUM( ALL - CAST( col0 AS SIGNED ) ) AS col1 FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-3238
SELECT + SUM ( ALL - CAST ( col0 AS INTEGER ) ) AS col1 FROM tab0
----
-199

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL > + 61
----

query I rowsort
SELECT ALL - + 47 * - col2 FROM tab2 AS cor0 WHERE NOT 27 = NULL
----

query I rowsort
SELECT ALL + col0 * 30 * + 2 AS col1 FROM tab2
----
2760
3840
4500

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3242
SELECT SUM( + 20 ) AS col0, CAST( - CAST( - 33 AS SIGNED ) AS SIGNED ) * - + MAX( ALL + - 53 ) AS col2 FROM tab1
----
60
1749

skipif mysql # not compatible
query II rowsort label-3242
SELECT SUM ( + 20 ) AS col0, CAST ( - CAST ( - 33 AS INTEGER ) AS INTEGER ) * - + MAX ( ALL + - 53 ) AS col2 FROM tab1
----
60
1749

query II rowsort
SELECT - 3 * + - 15 AS col2, col2 * + - ( col1 ) * + col1 AS col2 FROM tab2
----
45
-237160
45
-260362
45
-59823

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3244
SELECT ALL - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3244
SELECT ALL - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-3245
SELECT DISTINCT - COUNT( * ) * + 18 AS col1 FROM tab1
----
-54

skipif mysql # not compatible
query I rowsort label-3245
SELECT DISTINCT - COUNT ( * ) * + 18 AS col1 FROM tab1
----
-54

query I rowsort
SELECT ALL - col0 FROM tab1 AS cor0 WHERE col0 < - 34 - col2 + - 92 / + - col1 * - col1
----

query I rowsort
SELECT - ( - col0 ) + + 40 AS col2 FROM tab1 AS cor0
----
125
131
91

query I rowsort
SELECT - 66 + col1 AS col0 FROM tab0 AS cor0
----
-45
-65
15

query I rowsort
SELECT DISTINCT col1 * + col2 - + col1 FROM tab2
----
1122
3003
3819

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3250
SELECT col0 AS col1, + ( - col2 ) / + + ( + ( CAST( NULL AS SIGNED ) ) ) + - 3 AS col1 FROM tab1
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-3250
SELECT col0 AS col1, + ( - col2 ) / + + ( + ( CAST ( NULL AS INTEGER ) ) ) + - 3 AS col1 FROM tab1
----
51
NULL
85
NULL
91
NULL

query I rowsort
SELECT ALL col0 * + - col2 - col1 FROM tab1
----
-4910
-5020
-6235

query I rowsort
SELECT - 57 + 1 - + col0 FROM tab2 WHERE NULL NOT IN ( + 56 * + 16 * col2 + 65 + + 5 )
----

query I rowsort
SELECT - - col1 AS col1 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT 61 * + col0 AS col1 FROM tab2
----
2806
3904
4575

query II rowsort
SELECT + 49 AS col2, + col1 FROM tab0 AS cor0
----
49
1
49
21
49
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3256
SELECT ALL + SUM( ALL - 99 ) FROM tab0 AS cor0
----
-297

skipif mysql # not compatible
query I rowsort label-3256
SELECT ALL + SUM ( ALL - 99 ) FROM tab0 AS cor0
----
-297

onlyif mysql # aggregate syntax: 
query I rowsort label-3257
SELECT + 82 * + + COUNT( - + col2 ) FROM tab0 AS cor0
----
246

skipif mysql # not compatible
query I rowsort label-3257
SELECT + 82 * + + COUNT ( - + col2 ) FROM tab0 AS cor0
----
246

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3258
SELECT ALL CAST( - 82 AS SIGNED ) FROM tab1
----
-82
-82
-82

skipif mysql # not compatible
query I rowsort label-3258
SELECT ALL CAST ( - 82 AS INTEGER ) FROM tab1
----
-82
-82
-82

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 20 + - col2 * 27 < col1 - + col1
----

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) BETWEEN + 45 AND ( NULL )
----

query I rowsort
SELECT - 43 + col2 FROM tab1
----
16
25
53

query I rowsort
SELECT col1 AS col1 FROM tab2 WHERE 77 + - col1 * col2 > col0 * col1 + - col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3263
SELECT 44 + - MIN( DISTINCT - CAST( col0 AS SIGNED ) ) AS col2 FROM tab0
----
141

skipif mysql # not compatible
query I rowsort label-3263
SELECT 44 + - MIN ( DISTINCT - CAST ( col0 AS INTEGER ) ) AS col2 FROM tab0
----
141

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3264
SELECT ( CAST( MIN( + col1 ) AS SIGNED ) ) FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-3264
SELECT ( CAST ( MIN ( + col1 ) AS INTEGER ) ) FROM tab1
----
5

query I rowsort
SELECT DISTINCT - ( 79 ) FROM tab1
----
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3266
SELECT - CAST( NULL AS SIGNED ) + + 33 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3266
SELECT - CAST ( NULL AS INTEGER ) + + 33 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3267
SELECT MAX( ALL - 4 ) FROM tab1
----
-4

skipif mysql # not compatible
query I rowsort label-3267
SELECT MAX ( ALL - 4 ) FROM tab1
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-3268
SELECT ( MIN( ALL 88 ) ) FROM tab2
----
88

skipif mysql # not compatible
query I rowsort label-3268
SELECT ( MIN ( ALL 88 ) ) FROM tab2
----
88

query III rowsort
SELECT * FROM tab1 WHERE NOT 63 IS NOT NULL
----

query I rowsort
SELECT col0 * + 59 + col1 FROM tab2
----
2765
3853
4492

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col2 + + 86 * + col0 <> NULL
----

query I rowsort
SELECT DISTINCT - col1 + col0 * + col1 FROM tab1 WHERE ( col2 * 7 ) <= ( - col1 )
----

query I rowsort
SELECT DISTINCT - col2 - 77 FROM tab2
----
-100
-117
-135

query I rowsort
SELECT 2 * col0 + + 67 FROM tab2
----
159
195
217

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT BETWEEN col2 AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3276
SELECT col2 DIV - col0 col2 FROM tab1 WHERE - col1 DIV 46 + CAST( NULL AS SIGNED ) IS NULL
----
-1
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3276
SELECT col2 / - col0 col2 FROM tab1 WHERE - col1 / 46 + CAST ( NULL AS INTEGER ) IS NULL
----
-1
0
0

query I rowsort
SELECT DISTINCT col0 + 30 AS col1 FROM tab1
----
115
121
81

query I rowsort
SELECT 63 AS col2 FROM tab1 WHERE NULL NOT IN ( + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3279
SELECT 20 * CAST( + col1 AS SIGNED ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
1020
1340
1540

skipif mysql # not compatible
query I rowsort label-3279
SELECT 20 * CAST ( + col1 AS INTEGER ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
1020
1340
1540

query I rowsort
SELECT - col2 * col1 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3281
SELECT 17 / CAST( NULL AS SIGNED ) + COUNT( * ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3281
SELECT 17 / CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3282
SELECT - COUNT( DISTINCT - 80 ) FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-3282
SELECT - COUNT ( DISTINCT - 80 ) FROM tab2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3283
SELECT ALL - COUNT( * ) + SUM( ALL col0 ) FROM tab1 WHERE - col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3283
SELECT ALL - COUNT ( * ) + SUM ( ALL col0 ) FROM tab1 WHERE - col0 IS NULL
----
NULL

query I rowsort
SELECT DISTINCT + 83 + + col2 AS col2 FROM tab1
----
142
151
179

onlyif mysql # aggregate syntax: 
query I rowsort label-3285
SELECT ALL COUNT( * ) FROM tab1 WHERE NOT col2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3285
SELECT ALL COUNT ( * ) FROM tab1 WHERE NOT col2 IS NULL
----
3

query I rowsort
SELECT + col1 + 18 * - col1 FROM tab2
----
-1139
-1309
-867

query I rowsort
SELECT ALL 65 + - 95 * + col0 FROM tab1 WHERE NOT col2 + + col0 * - col2 IS NULL
----
-4780
-8010
-8580

query I rowsort
SELECT DISTINCT + col1 * col1 FROM tab1 WHERE NOT - ( 26 ) + - col1 = NULL
----

query I rowsort
SELECT DISTINCT + col0 + col1 AS col1 FROM tab0 WHERE NOT + col2 / 80 BETWEEN ( 9 ) AND 68
----
108
96
98

onlyif mysql # DIV for integer division: 
query I rowsort label-3290
SELECT ( + col2 ) DIV col2 - - col1 FROM tab1
----
15
48
6

skipif mysql # not compatible
query I rowsort label-3290
SELECT ( + col2 ) / col2 - - col1 FROM tab1
----
15
48
6

query I rowsort
SELECT + col2 FROM tab2 WHERE NULL NOT BETWEEN 87 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3292
SELECT col0 DIV - col0 + ( + col0 ) FROM tab2
----
45
63
74

skipif mysql # not compatible
query I rowsort label-3292
SELECT col0 / - col0 + ( + col0 ) FROM tab2
----
45
63
74

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3293
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - 93 + col2 ) >= + CAST( NULL AS SIGNED ) / col0
----

skipif mysql # not compatible
query III rowsort label-3293
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - 93 + col2 ) >= + CAST ( NULL AS INTEGER ) / col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3294
SELECT SUM( ALL col1 ) + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE - col2 / 24 > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3294
SELECT SUM ( ALL col1 ) + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE - col2 / 24 > NULL
----
NULL

query I rowsort
SELECT + col2 + - 52 FROM tab0 AS cor0 WHERE ( + col1 / 11 ) BETWEEN 99 AND NULL
----

query I rowsort
SELECT col1 + 73 * + 76 FROM tab1 cor0
----
5553
5562
5595

onlyif mysql # aggregate syntax: 
query I rowsort label-3297
SELECT DISTINCT - COUNT( * ) * COUNT( + 66 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2
----
-81

skipif mysql # not compatible
query I rowsort label-3297
SELECT DISTINCT - COUNT ( * ) * COUNT ( + 66 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2
----
-81

query I rowsort
SELECT + 19 * - col0 AS col0 FROM tab0
----
-1653
-1843
-285

onlyif mysql # aggregate syntax: 
query I rowsort label-3299
SELECT ALL + COUNT( ALL 2 ) AS col1 FROM tab0 cor0 CROSS JOIN tab2
----
9

skipif mysql # not compatible
query I rowsort label-3299
SELECT ALL + COUNT ( ALL 2 ) AS col1 FROM tab0 cor0 CROSS JOIN tab2
----
9

query I rowsort
SELECT - 86 * col2 AS col0 FROM tab1
----
-5074
-5848
-8256

onlyif mysql # aggregate syntax: 
query I rowsort label-3301
SELECT ALL COUNT( * ) * COUNT( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab2
----
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3301
SELECT ALL COUNT ( * ) * COUNT ( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab2
----
81

query I rowsort
SELECT ALL - 14 * col0 + col2 * + 12 FROM tab1 AS cor0
----
-458
-482
438

query I rowsort
SELECT + col2 * + 74 FROM tab0 AS cor0
----
3478
7326
740

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 = + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3305
SELECT - COUNT( * ) * + MIN( + col2 ) AS col1 FROM tab1 AS cor0
----
-177

skipif mysql # not compatible
query I rowsort label-3305
SELECT - COUNT ( * ) * + MIN ( + col2 ) AS col1 FROM tab1 AS cor0
----
-177

query I rowsort
SELECT ALL + - 67 + + 19 AS col0 FROM tab0 AS cor0
----
-48
-48
-48

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 81 + 86 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 37 col2 FROM tab0 AS cor0 WHERE - col2 > - ( col0 )
----
-37

query I rowsort
SELECT ALL - 78 + + col2 FROM tab0 AS cor0
----
-31
-68
21

query I rowsort
SELECT ALL + col0 - 18 * + 25 FROM tab2 AS cor0
----
-375
-386
-404

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 0 * col2 NOT BETWEEN - col1 AND + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 27 - col1 FROM tab0 AS cor0
----
-54
26
6

query I rowsort
SELECT DISTINCT col1 FROM tab1 AS cor0 WHERE col1 * col2 - 82 IS NULL
----

query I rowsort
SELECT ALL + col1 + - col2 * + 85 FROM tab2 AS cor0
----
-1904
-3323
-4863

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3316
SELECT ALL + + col0 / CAST( NULL AS SIGNED ) - + 39 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3316
SELECT ALL + + col0 / CAST ( NULL AS INTEGER ) - + 39 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 5 - 35 FROM tab1 AS cor0
----
-30

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 BETWEEN NULL AND - col2 * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3319
SELECT DISTINCT + 92 * + + COUNT( * ) FROM tab0
----
276

skipif mysql # not compatible
query I rowsort label-3319
SELECT DISTINCT + 92 * + + COUNT ( * ) FROM tab0
----
276

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3321
SELECT CAST( NULL AS SIGNED ) * + 96 * + COUNT( * ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3321
SELECT CAST ( NULL AS INTEGER ) * + 96 * + COUNT ( * ) AS col1 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <= col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3323
SELECT MAX( DISTINCT - 72 ) * + 62 AS col1 FROM tab2
----
-4464

skipif mysql # not compatible
query I rowsort label-3323
SELECT MAX ( DISTINCT - 72 ) * + 62 AS col1 FROM tab2
----
-4464

query I rowsort
SELECT ALL - col0 * + 5 AS col2 FROM tab0
----
-435
-485
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3325
SELECT DISTINCT + col0 * + + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3325
SELECT DISTINCT + col0 * + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT 58 * + + col1 FROM tab1
----
2726
290
812

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL > - 56
----

query I rowsort
SELECT ALL col1 * col2 AS col0 FROM tab0 AS cor0 WHERE NOT NULL = + col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3329
SELECT DISTINCT - COUNT( * ) DIV - 97 AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3329
SELECT DISTINCT - COUNT ( * ) / - 97 AS col2 FROM tab0 AS cor0
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL = - 90 AND col2 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE ( + - 13 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3332
SELECT ALL - CAST( col1 AS SIGNED ) col1 FROM tab1 WHERE ( NULL ) IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3332
SELECT ALL - CAST ( col1 AS INTEGER ) col1 FROM tab1 WHERE ( NULL ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - 97 + + col1 * col2 col2 FROM tab1 WHERE NOT - col1 >= NULL
----

query I rowsort
SELECT 81 * - col1 AS col0 FROM tab2
----
-4131
-5427
-6237

onlyif mysql # aggregate syntax: 
query I rowsort label-3335
SELECT + SUM( DISTINCT col1 ) col1 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3335
SELECT + SUM ( DISTINCT col1 ) col1 FROM tab2 AS cor0
----
195

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL = col0 * 62
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3337
SELECT DISTINCT + COUNT( * ) DIV CAST( - COUNT( * ) AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE NOT 18 IS NULL
----
-1

skipif mysql # not compatible
query I rowsort label-3337
SELECT DISTINCT + COUNT ( * ) / CAST ( - COUNT ( * ) AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE NOT 18 IS NULL
----
-1

query I rowsort
SELECT DISTINCT col1 + - 66 + + + col0 * + 46 FROM tab0 cor0
----
3957
4397
705

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 * + col2 + + 36 * col1 col2 FROM tab2 AS cor0
----
-1474
-308
663

query I rowsort
SELECT ALL ( + + col1 ) AS col0 FROM tab1 AS cor0
----
14
47
5

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN ( + 17 ) AND + col1 / 18
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3342
SELECT DISTINCT + MIN( + col0 ) FROM tab2 cor0
----
46

skipif mysql # not compatible
query I rowsort label-3342
SELECT DISTINCT + MIN ( + col0 ) FROM tab2 cor0
----
46

query I rowsort
SELECT + 0 * - 22 + col0 AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL BETWEEN ( + col2 ) AND col1 * col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3345
SELECT 31 * 73 + - - col1 - - CAST( 90 AS SIGNED ) FROM tab2
----
2404
2420
2430

skipif mysql # not compatible
query I rowsort label-3345
SELECT 31 * 73 + - - col1 - - CAST ( 90 AS INTEGER ) FROM tab2
----
2404
2420
2430

onlyif mysql # DIV for integer division: 
query I rowsort label-3346
SELECT col2 + + col0 DIV - + ( - + col2 ) + - col1 AS col0 FROM tab2
----
-26
-36
-8

skipif mysql # not compatible
query I rowsort label-3346
SELECT col2 + + col0 / - + ( - + col2 ) + - col1 AS col0 FROM tab2
----
-26
-36
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-3347
SELECT COUNT( * ) AS col1 FROM tab2 WHERE ( - col1 ) >= + col1
----
0

skipif mysql # not compatible
query I rowsort label-3347
SELECT COUNT ( * ) AS col1 FROM tab2 WHERE ( - col1 ) >= + col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3348
SELECT COUNT( * ) + 74 FROM tab0
----
77

skipif mysql # not compatible
query I rowsort label-3348
SELECT COUNT ( * ) + 74 FROM tab0
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3349
SELECT CAST( - + 98 AS SIGNED ) + - + col1 AS col0 FROM tab1
----
-103
-112
-145

skipif mysql # not compatible
query I rowsort label-3349
SELECT CAST ( - + 98 AS INTEGER ) + - + col1 AS col0 FROM tab1
----
-103
-112
-145

query I rowsort
SELECT ALL + col0 * + 11 + - - col1 FROM tab0
----
1068
246
978

query I rowsort
SELECT ALL 15 AS col0 FROM tab0
----
15
15
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3352
SELECT DISTINCT CAST( + - 68 AS SIGNED ) * - - ( 39 ) - ( 11 ) * + 78 + + 23 FROM tab1 cor0
----
-3487

skipif mysql # not compatible
query I rowsort label-3352
SELECT DISTINCT CAST ( + - 68 AS INTEGER ) * - - ( 39 ) - ( 11 ) * + 78 + + 23 FROM tab1 cor0
----
-3487

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3353
SELECT ALL + col0 + CAST( - 63 AS SIGNED ) col1 FROM tab0 AS cor0
----
-48
24
34

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3353
SELECT ALL + col0 + CAST ( - 63 AS INTEGER ) col1 FROM tab0 AS cor0
----
-48
24
34

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3354
SELECT DISTINCT + 32 * + col2 FROM tab2 AS cor0 WHERE ( NOT ( NOT 90 NOT BETWEEN - CAST( NULL AS DECIMAL ) AND - col2 ) )
----
1280
1856
736

skipif mysql # not compatible
query I rowsort label-3354
SELECT DISTINCT + 32 * + col2 FROM tab2 AS cor0 WHERE ( NOT ( NOT 90 NOT BETWEEN - CAST ( NULL AS REAL ) AND - col2 ) )
----
1280
1856
736

query I rowsort
SELECT ALL col2 * + - col2 AS col2 FROM tab1 WHERE NOT - - 65 IS NOT NULL
----

query I rowsort
SELECT - 36 + 57 - + 63 AS col1 FROM tab1 AS cor0
----
-42
-42
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-3357
SELECT DISTINCT + + MAX( col0 ) + + - 50 AS col2 FROM tab2 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-3357
SELECT DISTINCT + + MAX ( col0 ) + + - 50 AS col2 FROM tab2 AS cor0
----
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 11 * 89 col1 FROM tab2 cor0
----
979

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 49 + + ( - 30 ) IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( - col1 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3361
SELECT ALL + 70 + - + 21 * + COUNT( * ) + - - SUM( + col1 ) FROM tab1 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-3361
SELECT ALL + 70 + - + 21 * + COUNT ( * ) + - - SUM ( + col1 ) FROM tab1 AS cor0
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3362
SELECT DISTINCT + + col0 AS col2, CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-3362
SELECT DISTINCT + + col0 AS col2, CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col0 / - ( col0 ) IS NULL
----

query II rowsort
SELECT DISTINCT - col0, 50 * + + col0 * + 97 AS col2 FROM tab1 WHERE col2 IS NULL
----

query I rowsort
SELECT DISTINCT ( + 96 ) AS col0 FROM tab1
----
96

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN - + 2 + + 1 * + + col1 AND + col1 / - col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col2 = NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE col0 * - col1 + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 46 FROM tab1, tab1 cor0
----
9 values hashing to 491ad1fb79fec0b5715ea54949d1aa2d

onlyif mysql # aggregate syntax: 
query I rowsort label-3370
SELECT + - COUNT( * ) + 30 FROM tab1 WHERE NOT ( ( col1 ) ) = 56
----
27

skipif mysql # not compatible
query I rowsort label-3370
SELECT + - COUNT ( * ) + 30 FROM tab1 WHERE NOT ( ( col1 ) ) = 56
----
27

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT ( + col1 / ( + 57 ) IS NULL ) )
----

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab0 AS cor0 WHERE NOT - ( - 10 ) IN ( - col2 / col2 * - col1 + + col2 * col1 + - col2 / col0 )
----
1
21
81

query I rowsort
SELECT DISTINCT col2 * - 82 * + col1 - col1 AS col0 FROM tab0 AS cor0
----
-17241
-312255
-8119

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 80 - - + col0 * col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 38 * col0 AS col2 FROM tab2 AS cor0
----
1748
2432
2850

onlyif mysql # aggregate syntax: 
query I rowsort label-3376
SELECT DISTINCT MIN( - col2 ) AS col1 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-3376
SELECT DISTINCT MIN ( - col2 ) AS col1 FROM tab1 AS cor0
----
-96

query I rowsort
SELECT 70 * - 95 FROM tab2 cor0
----
-6650
-6650
-6650

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3378
SELECT - 41 + + CAST( + - 38 AS SIGNED ) + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3378
SELECT - 41 + + CAST ( + - 38 AS INTEGER ) + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT + col0 + + 29, 31 AS col1 FROM tab1
----
114
31
120
31
80
31

query I rowsort
SELECT ALL - + col2 * + 89 * - 10 * + col2 + + 26 FROM tab1 AS cor0
----
3098116
4115386
8202266

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3381
SELECT DISTINCT + 76 * CAST( col0 AS SIGNED ) + - + col1 + - col1 + + ( - col0 ) + + 75 * + col1 AS col1 FROM tab1 AS cor0
----
10256
4847
6740

skipif mysql # not compatible
query I rowsort label-3381
SELECT DISTINCT + 76 * CAST ( col0 AS INTEGER ) + - + col1 + - col1 + + ( - col0 ) + + 75 * + col1 AS col1 FROM tab1 AS cor0
----
10256
4847
6740

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 * col2, + 2 col0 FROM tab2 AS cor0
----
-1058
2
-2560
2
-4350
2

query I rowsort
SELECT ALL + - 56 + col1 + + col2 * 43 - + 88 + col2 AS col1 FROM tab1 AS cor0
----
2457
2895
4094

query I rowsort
SELECT - + 57 AS col2 FROM tab0 cor0
----
-57
-57
-57

query I rowsort
SELECT ALL - - col0 - - + col0 AS col2 FROM tab2 cor0 WHERE NOT NULL >= col0
----

query I rowsort
SELECT DISTINCT + col1 + + 29 FROM tab0 AS cor0
----
110
30
50

onlyif mysql # aggregate syntax: 
query I rowsort label-3387
SELECT 39 * COUNT( * ) AS col0 FROM tab0 AS cor0
----
117

skipif mysql # not compatible
query I rowsort label-3387
SELECT 39 * COUNT ( * ) AS col0 FROM tab0 AS cor0
----
117

query I rowsort
SELECT col2 * + col1 * ( col1 ) AS col1 FROM tab2 AS cor0
----
237160
260362
59823

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 16 * + - 37 + - col2 NOT IN ( - - col0 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL BETWEEN col1 + 78 AND + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 72 col0 FROM tab0
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3392
SELECT + 41 * - + MIN( - - 47 ) - + ( + CAST( - MAX( ALL - - 23 ) AS SIGNED ) ) AS col2 FROM tab2
----
-1904

skipif mysql # not compatible
query I rowsort label-3392
SELECT + 41 * - + MIN ( - - 47 ) - + ( + CAST ( - MAX ( ALL - - 23 ) AS INTEGER ) ) AS col2 FROM tab2
----
-1904

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 col1, - 60 FROM tab2
----
23
-60
40
-60
58
-60

query I rowsort
SELECT col1 - col1 AS col1 FROM tab0 WHERE + col1 NOT IN ( - 19 * - 6 - col0, col1 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 68 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - + col0 + + - col0 + col1 AS col1 FROM tab1 AS cor0
----
-135
-165
-88

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 66 IN ( + 25 + - 78 * + col0 )
----

query I rowsort
SELECT + 7 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

query I rowsort
SELECT ALL - col2 AS col1 FROM tab1 WHERE NOT ( + col0 * + 74 = ( NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3400
SELECT - - ( 88 ) * MIN( - 53 ) FROM tab2 AS cor0
----
-4664

skipif mysql # not compatible
query I rowsort label-3400
SELECT - - ( 88 ) * MIN ( - 53 ) FROM tab2 AS cor0
----
-4664

query I rowsort
SELECT + col0 * - 57 AS col1 FROM tab0 AS cor0
----
-4959
-5529
-855

query I rowsort
SELECT DISTINCT + ( - col2 ) * - col2 FROM tab1 AS cor0
----
3481
4624
9216

onlyif mysql # aggregate syntax: 
query I rowsort label-3403
SELECT 14 * COUNT( * ) + 19 FROM tab1 AS cor0 WHERE NOT ( + col1 * + 51 * - 63 ) = col0 + + col1 / 81
----
61

skipif mysql # not compatible
query I rowsort label-3403
SELECT 14 * COUNT ( * ) + 19 FROM tab1 AS cor0 WHERE NOT ( + col1 * + 51 * - 63 ) = col0 + + col1 / 81
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3404
SELECT ALL - CAST( + + MAX( ALL 30 ) AS SIGNED ) FROM tab1 cor0
----
-30

skipif mysql # not compatible
query I rowsort label-3404
SELECT ALL - CAST ( + + MAX ( ALL 30 ) AS INTEGER ) FROM tab1 cor0
----
-30

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( ( 65 ) - 56 + + - 4 ) > NULL
----

query II rowsort
SELECT ALL ( + col0 ) AS col2, 23 FROM tab1 AS cor0
----
51
23
85
23
91
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3407
SELECT COUNT( DISTINCT + ( + 70 ) ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-3407
SELECT COUNT ( DISTINCT + ( + 70 ) ) AS col0 FROM tab0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3408
SELECT ALL - col2 DIV 65 AS col1 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3408
SELECT ALL - col2 / 65 AS col1 FROM tab0
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2, col2 col1 FROM tab2
----
23
23
40
40
58
58

query II rowsort
SELECT ALL 27, + 19 AS col0 FROM tab0 WHERE ( ( - col2 ) ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3411
SELECT ALL CAST( + AVG ( - 23 ) AS SIGNED ) AS col1 FROM tab0
----
-23

skipif mysql # not compatible
query I rowsort label-3411
SELECT ALL CAST ( + AVG ( - 23 ) AS INTEGER ) AS col1 FROM tab0
----
-23

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 * - + col1 * + + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3413
SELECT - SUM( col2 ) * 11 FROM tab0
----
-1716

skipif mysql # not compatible
query I rowsort label-3413
SELECT - SUM ( col2 ) * 11 FROM tab0
----
-1716

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col0 + 26 * - col0 <> + 94
----

query I rowsort
SELECT DISTINCT - 39 FROM tab0 cor0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-3416
SELECT + SUM( ALL - 86 ) * + + 95 FROM tab0
----
-24510

skipif mysql # not compatible
query I rowsort label-3416
SELECT + SUM ( ALL - 86 ) * + + 95 FROM tab0
----
-24510

query I rowsort
SELECT 1 / 86 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3418
SELECT ALL + + col0 AS col0 FROM tab0 WHERE + col1 > + col2 / CAST( NULL AS DECIMAL ) + col2 + - col0 / + col1
----

skipif mysql # not compatible
query I rowsort label-3418
SELECT ALL + + col0 AS col0 FROM tab0 WHERE + col1 > + col2 / CAST ( NULL AS REAL ) + col2 + - col0 / + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3419
SELECT DISTINCT + 48 DIV - + col0 AS col0 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-3419
SELECT DISTINCT + 48 / - + col0 AS col0 FROM tab1 cor0
----
0

query I rowsort
SELECT DISTINCT col2 * + 46 + 55 * - 69 + - + ( + 9 ) * col1 FROM tab2 AS cor0
----
-1730
-2648
-3196

query I rowsort
SELECT ALL + col0 + - 78 * - col2 AS col0 FROM tab0 AS cor0
----
3681
7819
867

query II rowsort
SELECT ALL - col0 + - col2 AS col1, col2 FROM tab2 AS cor0
----
-104
40
-133
58
-69
23

onlyif mysql # aggregate syntax: 
query II rowsort label-3423
SELECT - 76, - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-76
-3

skipif mysql # not compatible
query II rowsort label-3423
SELECT - 76, - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-76
-3

query I rowsort
SELECT DISTINCT col1 * - 6 AS col2 FROM tab2 cor0
----
-306
-402
-462

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3425
SELECT DISTINCT + + col1 + + - CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3425
SELECT DISTINCT + + col1 + + - CAST ( NULL AS REAL ) AS col2 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + + col2 col1 FROM tab0 AS cor0
----
198
20
94

query II rowsort
SELECT col2 + + col2 AS col0, - 43 + - col0 FROM tab2
----
116
-118
46
-89
80
-107

query I rowsort
SELECT ( - - 71 ) FROM tab0
----
71
71
71

onlyif mysql # DIV for integer division: 
query I rowsort label-3429
SELECT DISTINCT 23 DIV - col2 AS col0 FROM tab0
----
-2
0

skipif mysql # not compatible
query I rowsort label-3429
SELECT DISTINCT 23 / - col2 AS col0 FROM tab0
----
-2
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 23 / - 7 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - + col0 FROM tab2 AS cor0 WHERE 81 IS NOT NULL
----
-46
-64
-75

query I rowsort
SELECT ALL - + 34 + + + 62 + col0 - + col0 - + 96 FROM tab0 AS cor0
----
-68
-68
-68

query I rowsort
SELECT - 19 - - + 82 + + - col0 FROM tab0 AS cor0
----
-24
-34
48

onlyif mysql # DIV for integer division: 
query II rowsort label-3434
SELECT ALL + 51 AS col2, 23 DIV 18 FROM tab2 cor0
----
51
1
51
1
51
1

skipif mysql # not compatible
query II rowsort label-3434
SELECT ALL + 51 AS col2, 23 / 18 FROM tab2 cor0
----
51
1
51
1
51
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 10 col1 FROM tab1 AS cor0 WHERE NOT 65 * - - col2 IS NOT NULL
----

query II rowsort
SELECT ALL - 22, ( - 41 ) AS col1 FROM tab0 cor0
----
-22
-41
-22
-41
-22
-41

onlyif mysql # aggregate syntax: 
query II rowsort label-3437
SELECT DISTINCT 90 AS col2, + MIN( + + col0 ) FROM tab0 AS cor0
----
90
15

skipif mysql # not compatible
query II rowsort label-3437
SELECT DISTINCT 90 AS col2, + MIN ( + + col0 ) FROM tab0 AS cor0
----
90
15

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 99 NOT BETWEEN NULL AND + + 99 - - 1 + - col0 * + col1 + + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 37 col0 FROM tab0 AS cor0
----
37

query I rowsort
SELECT - + 77 * + + col2 AS col1 FROM tab1 AS cor0
----
-4543
-5236
-7392

onlyif mysql # DIV for integer division: 
query I rowsort label-3441
SELECT - + 47 DIV - - 29 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3441
SELECT - + 47 / - - 29 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL 41 * - 34 FROM tab1
----
-1394
-1394
-1394

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) > col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3444
SELECT MAX( + 18 ) FROM tab2
----
18

skipif mysql # not compatible
query I rowsort label-3444
SELECT MAX ( + 18 ) FROM tab2
----
18

query I rowsort
SELECT ALL - col1 * - + 8 FROM tab0
----
168
648
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3446
SELECT DISTINCT - MAX( - + col2 ) FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-3446
SELECT DISTINCT - MAX ( - + col2 ) FROM tab2
----
23

query I rowsort
SELECT - col0 AS col0 FROM tab2 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE - ( col2 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3449
SELECT CAST( - col1 AS SIGNED ) FROM tab2 WHERE NOT - col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3449
SELECT CAST ( - col1 AS INTEGER ) FROM tab2 WHERE NOT - col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - - col1 ) - - col1 <= + 54
----
15
81
47

query I rowsort
SELECT - col0 * - - col2 FROM tab2 AS cor0
----
-1058
-2560
-4350

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3452
SELECT ALL + COUNT( ALL 32 ) DIV ( + 77 ) DIV - 21 - + 93 + 46 FROM tab0
----
-47

skipif mysql # not compatible
query I rowsort label-3452
SELECT ALL + COUNT ( ALL 32 ) / ( + 77 ) / - 21 - + 93 + 46 FROM tab0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-3453
SELECT COUNT( + 0 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3453
SELECT COUNT ( + 0 ) FROM tab2 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3454
SELECT DISTINCT - 38 + + + ( + - col2 ) * - - 26 + ( - col1 ) DIV + 31 AS col2 FROM tab1 AS cor0
----
-1572
-1807
-2534

skipif mysql # not compatible
query I rowsort label-3454
SELECT DISTINCT - 38 + + + ( + - col2 ) * - - 26 + ( - col1 ) / + 31 AS col2 FROM tab1 AS cor0
----
-1572
-1807
-2534

onlyif mysql # DIV for integer division: 
query I rowsort label-3455
SELECT ALL + - 66 DIV 21 AS col2 FROM tab0 AS cor0
----
-3
-3
-3

skipif mysql # not compatible
query I rowsort label-3455
SELECT ALL + - 66 / 21 AS col2 FROM tab0 AS cor0
----
-3
-3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3456
SELECT DISTINCT + COUNT( + + col2 ) col2 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3456
SELECT DISTINCT + COUNT ( + + col2 ) col2 FROM tab2
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3457
SELECT SUM( 12 ) DIV - MAX( + ( - col2 ) ) + - COUNT( * ) * - + 48 FROM tab2
----
145

skipif mysql # not compatible
query I rowsort label-3457
SELECT SUM ( 12 ) / - MAX ( + ( - col2 ) ) + - COUNT ( * ) * - + 48 FROM tab2
----
145

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3458
SELECT 37 + + + COUNT( + CAST( 77 AS SIGNED ) ) FROM tab1
----
40

skipif mysql # not compatible
query I rowsort label-3458
SELECT 37 + + + COUNT ( + CAST ( 77 AS INTEGER ) ) FROM tab1
----
40

query III rowsort
SELECT * FROM tab0 WHERE - 16 + - 55 + 98 * + 38 <> + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3460
SELECT DISTINCT + - MIN( DISTINCT + col1 ) FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-3460
SELECT DISTINCT + - MIN ( DISTINCT + col1 ) FROM tab2 AS cor0
----
-51

query I rowsort
SELECT ALL - col0 * - col1 * + 24 FROM tab2 cor0
----
118272
120600
56304

query III rowsort
SELECT * FROM tab1 WHERE NOT + + 39 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 58 * + col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col1 NOT BETWEEN col2 AND NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 + col2 NOT BETWEEN + col1 * - col0 + col0 + col1 AND + col1
----
15
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3466
SELECT DISTINCT COUNT( * ) * - COUNT( * ) FROM tab1 AS cor0 WHERE NOT col2 BETWEEN + col2 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-3466
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT col2 BETWEEN + col2 AND NULL
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3467
SELECT * FROM tab2 cor0 WHERE NOT ( 28 ) NOT BETWEEN + 41 * + - CAST( - col2 AS DECIMAL ) AND - col2 - + 28
----

skipif mysql # not compatible
query III rowsort label-3467
SELECT * FROM tab2 cor0 WHERE NOT ( 28 ) NOT BETWEEN + 41 * + - CAST ( - col2 AS REAL ) AND - col2 - + 28
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( ( + col0 ) IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 61 col1, col1 FROM tab2
----
-61
51
-61
67
-61
77

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 49 = 18
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3471
SELECT ALL - COUNT( DISTINCT + + col1 ) col2 FROM tab2
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3471
SELECT ALL - COUNT ( DISTINCT + + col1 ) col2 FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-3472
SELECT ALL COUNT( * ) AS col2, - ( COUNT( * ) ) FROM tab0 AS cor0
----
3
-3

skipif mysql # not compatible
query II rowsort label-3472
SELECT ALL COUNT ( * ) AS col2, - ( COUNT ( * ) ) FROM tab0 AS cor0
----
3
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 >= + col0 + 69
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3474
SELECT CAST( NULL AS SIGNED ) + + + COUNT( - col1 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3474
SELECT CAST ( NULL AS INTEGER ) + + + COUNT ( - col1 ) FROM tab0
----
NULL

query I rowsort
SELECT + col0 + + - col1 + + col0 * + 67 FROM tab1 AS cor0
----
3454
5775
6141

query I rowsort
SELECT + + col2 + 59 * + 80 * - - col1 FROM tab0 AS cor0
----
382367
4819
99130

onlyif mysql # DIV for integer division: 
query I rowsort label-3477
SELECT DISTINCT + 71 + col0 - - col2 - - 88 DIV ( - col0 ) * - - col1 * col0 FROM tab0 AS cor0
----
-1659
-5942
267

skipif mysql # not compatible
query I rowsort label-3477
SELECT DISTINCT + 71 + col0 - - col2 - - 88 / ( - col0 ) * - - col1 * col0 FROM tab0 AS cor0
----
-1659
-5942
267

query I rowsort
SELECT - col2 * + col0 + + - ( - - 76 ) AS col2 FROM tab0 AS cor0
----
-781
-946
-9679

query I rowsort
SELECT ALL - 67 + + col0 AS col0 FROM tab2 AS cor0
----
-21
-3
8

query I rowsort
SELECT DISTINCT + col2 - - + col2 AS col2 FROM tab1
----
118
136
192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 - + + 23 + + + col0 col0 FROM tab0
----
173
39
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3482
SELECT DISTINCT COUNT( DISTINCT + 35 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-3482
SELECT DISTINCT COUNT ( DISTINCT + 35 ) FROM tab2
----
1

query I rowsort
SELECT - 57 * + - col0 FROM tab1
----
2907
4845
5187

query I rowsort
SELECT ALL - ( + + col0 ) * + ( col2 ) FROM tab2
----
-1058
-2560
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-3485
SELECT + 24 * COUNT( * ) FROM tab2
----
72

skipif mysql # not compatible
query I rowsort label-3485
SELECT + 24 * COUNT ( * ) FROM tab2
----
72

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + - 31 + - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3487
SELECT ALL + - COUNT( * ) * - + 26 AS col0 FROM tab2 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-3487
SELECT ALL + - COUNT ( * ) * - + 26 AS col0 FROM tab2 AS cor0
----
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 72 * col1 col1 FROM tab1 AS cor0
----
1008
3384
360

query IIIIII rowsort
SELECT ALL * FROM tab2, tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3490
SELECT DISTINCT - COUNT( * ) + COUNT( * ) - COUNT( * ) * + COUNT( * ) * COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-729

skipif mysql # not compatible
query I rowsort label-3490
SELECT DISTINCT - COUNT ( * ) + COUNT ( * ) - COUNT ( * ) * + COUNT ( * ) * COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-729

onlyif mysql # aggregate syntax: 
query I rowsort label-3491
SELECT + COUNT( * ) * 60 AS col1 FROM tab0
----
180

skipif mysql # not compatible
query I rowsort label-3491
SELECT + COUNT ( * ) * 60 AS col1 FROM tab0
----
180

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT ( NOT NULL NOT BETWEEN NULL AND 29 ) )
----

query I rowsort
SELECT DISTINCT + 89 / - col1 FROM tab0 AS cor0 WHERE NOT col0 <> + - col0
----

query II rowsort
SELECT + 84, + col1 AS col0 FROM tab0 AS cor0
----
84
1
84
21
84
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 41 col1, - col0 FROM tab0 AS cor0
----
41
-15
41
-87
41
-97

query II rowsort
SELECT ALL + - 93 AS col1, + col0 + + + col2 FROM tab2 AS cor0
----
-93
104
-93
133
-93
69

onlyif mysql # DIV for integer division: 
query I rowsort label-3497
SELECT ALL + + col2 * col0 DIV col0 FROM tab1 AS cor0 WHERE NOT + col1 IS NULL
----
59
68
96

skipif mysql # not compatible
query I rowsort label-3497
SELECT ALL + + col2 * col0 / col0 FROM tab1 AS cor0 WHERE NOT + col1 IS NULL
----
59
68
96

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3498
SELECT ALL col1, CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-3498
SELECT ALL col1, CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3499
SELECT ALL 4 AS col0, - SUM( - col0 ) AS col1 FROM tab0 cor0
----
4
199

skipif mysql # not compatible
query II rowsort label-3499
SELECT ALL 4 AS col0, - SUM ( - col0 ) AS col1 FROM tab0 cor0
----
4
199

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 37 / + 55 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col0 BETWEEN + col2 + - col1 AND ( 9 + - + 49 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + - col1 / 57 / + 54 ) IN ( 51, + 67 + + + col1, + - 29 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3503
SELECT DISTINCT SUM( 3 ) AS col1 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-3503
SELECT DISTINCT SUM ( 3 ) AS col1 FROM tab0
----
9

query II rowsort
SELECT col2 AS col0, + col2 * ( - ( - 80 ) ) - - - 41 + - + col2 AS col0 FROM tab1 WHERE col1 BETWEEN NULL AND ( - 63 )
----

query I rowsort
SELECT + col2 * + col1 / + - col0 + - + col1 FROM tab1 AS cor0 WHERE ( - col2 ) > ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 86 col2 FROM tab2 AS cor0
----
86
86
86

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( 64 ) BETWEEN ( + - 85 + + col2 ) AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3508
SELECT DISTINCT 63 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN + CAST( + col0 AS SIGNED ) AND + - ( + + col1 ) + + + 84
----

skipif mysql # not compatible
query I rowsort label-3508
SELECT DISTINCT 63 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN + CAST ( + col0 AS INTEGER ) AND + - ( + + col1 ) + + + 84
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3509
SELECT - COUNT( * ), - COUNT( ALL + col2 ) AS col0 FROM tab0 AS cor0 WHERE ( col0 ) IS NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-3509
SELECT - COUNT ( * ), - COUNT ( ALL + col2 ) AS col0 FROM tab0 AS cor0 WHERE ( col0 ) IS NULL
----
0
0

query I rowsort
SELECT + col1 AS col2 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3511
SELECT SUM( - col2 ) FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-3511
SELECT SUM ( - col2 ) FROM tab0
----
-156

query I rowsort
SELECT + + 3 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

query I rowsort
SELECT + 2 * - 35 * - col0 * + col1 FROM tab2
----
164220
344960
351750

query II rowsort
SELECT + 90 AS col1, 30 * + col1 AS col1 FROM tab1 AS cor0
----
90
1410
90
150
90
420

query I rowsort
SELECT ALL 4 + 45 FROM tab0 AS cor0
----
49
49
49

onlyif mysql # aggregate syntax: 
query I rowsort label-3516
SELECT + MIN( DISTINCT - - col0 ) * + 61 FROM tab1 AS cor0
----
3111

skipif mysql # not compatible
query I rowsort label-3516
SELECT + MIN ( DISTINCT - - col0 ) * + 61 FROM tab1 AS cor0
----
3111

query I rowsort
SELECT ALL + col2 + - 94 AS col1 FROM tab2 AS cor0
----
-36
-54
-71

query II rowsort
SELECT DISTINCT col0 + 78 + - col0 + + col2 AS col1, + 59 FROM tab1 AS cor0
----
137
59
146
59
174
59

query I rowsort
SELECT DISTINCT + + col1 - + col1 AS col0 FROM tab0 cor0
----
0

query I rowsort
SELECT + - col0 + - + 24 AS col2 FROM tab0 cor0 WHERE - col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3521
SELECT ALL + col1 - 78 + + col2 + + - 98 DIV + 4 AS col2 FROM tab0 AS cor0
----
-2
-71
26

skipif mysql # not compatible
query I rowsort label-3521
SELECT ALL + col1 - 78 + + col2 + + - 98 / + 4 AS col2 FROM tab0 AS cor0
----
-2
-71
26

onlyif mysql # DIV for integer division: 
query I rowsort label-3522
SELECT ALL 65 DIV - - 44 - + 32 FROM tab1
----
-31
-31
-31

skipif mysql # not compatible
query I rowsort label-3522
SELECT ALL 65 / - - 44 - + 32 FROM tab1
----
-31
-31
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-3523
SELECT col1 * - col2 DIV - - col2 AS col2 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-3523
SELECT col1 * - col2 / - - col2 AS col2 FROM tab2
----
-51
-67
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + + col2 col1 FROM tab1
----
-1344
-295
-3196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3525
SELECT col2 / + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3525
SELECT col2 / + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 53 col2 FROM tab2 WHERE NULL BETWEEN - + col0 * + col0 AND + + col2 * - col0
----

query II rowsort
SELECT 73, col1 FROM tab2
----
73
51
73
67
73
77

query I rowsort
SELECT ALL + + 78 FROM tab1 AS cor0 WHERE NOT - col1 IN ( - - col2 + - col2, col2 )
----
78
78
78

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3529
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 + - CAST( - col2 AS SIGNED ) * col0 * - col1 >= col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3529
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 + - CAST ( - col2 AS INTEGER ) * col0 * - col1 >= col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + 69 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col1 FROM tab2 AS cor0 WHERE NOT NULL < 67
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT - col1 * col2 + - col2 * ( + - col2 ) IS NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3533
SELECT 53 + CAST( COUNT( ALL + - 45 ) AS SIGNED ) AS col0 FROM tab1
----
56

skipif mysql # not compatible
query I rowsort label-3533
SELECT 53 + CAST ( COUNT ( ALL + - 45 ) AS INTEGER ) AS col0 FROM tab1
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-3534
SELECT ALL 91 * + COUNT( DISTINCT ( + - col0 ) ) AS col0 FROM tab0
----
273

skipif mysql # not compatible
query I rowsort label-3534
SELECT ALL 91 * + COUNT ( DISTINCT ( + - col0 ) ) AS col0 FROM tab0
----
273

onlyif mysql # aggregate syntax: 
query I rowsort label-3535
SELECT DISTINCT COUNT( - - col0 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3535
SELECT DISTINCT COUNT ( - - col0 ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3536
SELECT ALL COUNT( * ) FROM tab1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3536
SELECT ALL COUNT ( * ) FROM tab1 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT ALL col0 FROM tab2 WHERE + - col2 IS NOT NULL
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3538
SELECT ( + + 50 ) + - - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3538
SELECT ( + + 50 ) + - - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + 24 + - col1 + - 59 FROM tab2
----
-102
-112
-86

query I rowsort
SELECT DISTINCT + col1 + - - col2 FROM tab1
----
110
115
64

query I rowsort
SELECT ALL 65 * col2 * + col0 FROM tab2
----
166400
282750
68770

onlyif mysql # DIV for integer division: 
query I rowsort label-3542
SELECT DISTINCT - + col0 DIV - 68 col1 FROM tab1 cor0
----
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3542
SELECT DISTINCT - + col0 / - 68 col1 FROM tab1 cor0
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3543
SELECT ALL - MAX( ALL 41 ) + + ( - 18 ) FROM tab2 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-3543
SELECT ALL - MAX ( ALL 41 ) + + ( - 18 ) FROM tab2 AS cor0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-3544
SELECT DISTINCT COUNT( * ) + - 22 AS col0 FROM tab2 cor0
----
-19

skipif mysql # not compatible
query I rowsort label-3544
SELECT DISTINCT COUNT ( * ) + - 22 AS col0 FROM tab2 cor0
----
-19

query I rowsort
SELECT DISTINCT col1 - - 42 FROM tab0 AS cor0
----
123
43
63

query II rowsort
SELECT ( + - col1 ) AS col2, col2 AS col1 FROM tab1
----
-14
96
-47
68
-5
59

onlyif mysql # DIV for integer division: 
query I rowsort label-3547
SELECT + 80 DIV - col0 - + + col2 FROM tab2
----
-24
-41
-59

skipif mysql # not compatible
query I rowsort label-3547
SELECT + 80 / - col0 - + + col2 FROM tab2
----
-24
-41
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-3548
SELECT + COUNT( * ) + 7 FROM tab2
----
10

skipif mysql # not compatible
query I rowsort label-3548
SELECT + COUNT ( * ) + 7 FROM tab2
----
10

query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( + ( + - col1 ) * + col0 + + 85 + - + col0 * - + col0, - col0 + - - col2 )
----

query II rowsort
SELECT col0 * 22 + col1 AS col1, - col1 + + col2 AS col2 FROM tab2
----
1063
-28
1485
-37
1717
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3551
SELECT DISTINCT - 23 / col1 + - 62 + - - col2 + CAST( NULL AS SIGNED ) * col2 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3551
SELECT DISTINCT - 23 / col1 + - 62 + - - col2 + CAST ( NULL AS INTEGER ) * col2 AS col2 FROM tab2
----
NULL

query I rowsort
SELECT ALL + + ( + 32 ) * + col0 AS col0 FROM tab2 cor0
----
1472
2048
2400

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3553
SELECT DISTINCT + CAST( col0 AS SIGNED ) + + + col0 FROM tab0 AS cor0
----
174
194
30

skipif mysql # not compatible
query I rowsort label-3553
SELECT DISTINCT + CAST ( col0 AS INTEGER ) + + + col0 FROM tab0 AS cor0
----
174
194
30

query I rowsort
SELECT ALL 82 + - 39 + - col2 * - ( col1 ) + + 80 AS col1 FROM tab0 AS cor0
----
222
333
3930

onlyif mysql # DIV for integer division: 
query I rowsort label-3555
SELECT ALL + col1 + + + 74 DIV - + col2 AS col1 FROM tab0 AS cor0
----
1
14
80

skipif mysql # not compatible
query I rowsort label-3555
SELECT ALL + col1 + + + 74 / - + col2 AS col1 FROM tab0 AS cor0
----
1
14
80

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col1 - 20 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + ( + 39 ) * + 61 * - col0 - + col1 FROM tab1 cor0
----
-121343
-202220
-216536

onlyif mysql # DIV for integer division: 
query I rowsort label-3558
SELECT DISTINCT col2 DIV 59 + - - col1 - col1 AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3558
SELECT DISTINCT col2 / 59 + - - col1 - col1 AS col1 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3559
SELECT - - COUNT( DISTINCT + + col2 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3559
SELECT - - COUNT ( DISTINCT + + col2 ) AS col0 FROM tab0 AS cor0
----
3

query I rowsort
SELECT col0 * + + col1 AS col0 FROM tab0
----
1215
1827
97

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN NULL AND + col0 - - + ( - col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3562
SELECT ALL 29 col0, - MIN( DISTINCT - col2 ) * - - CAST( NULL AS SIGNED ) AS col0 FROM tab0 WHERE NULL IS NULL
----
29
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3562
SELECT ALL 29 col0, - MIN ( DISTINCT - col2 ) * - - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 WHERE NULL IS NULL
----
29
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 94 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 1 * col2 col1 FROM tab1
----
59
68
96

query I rowsort
SELECT ALL - 65 AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-65
-65
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-3566
SELECT DISTINCT COUNT( * ) FROM tab1 AS cor0 WHERE NOT col0 * + col1 >= - - 81
----
0

skipif mysql # not compatible
query I rowsort label-3566
SELECT DISTINCT COUNT ( * ) FROM tab1 AS cor0 WHERE NOT col0 * + col1 >= - - 81
----
0

query I rowsort
SELECT - - 21 AS col2 FROM tab0 cor0
----
21
21
21

onlyif mysql # aggregate syntax: 
query I rowsort label-3568
SELECT ALL - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE 70 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-3568
SELECT ALL - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE 70 >= NULL
----
0

query I rowsort
SELECT DISTINCT + col1 * - + col0 FROM tab0
----
-1215
-1827
-97

query I rowsort
SELECT ALL 78 + + col1 FROM tab0 AS cor0
----
159
79
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3571
SELECT DISTINCT - + COUNT( * ) + - + SUM( DISTINCT 31 ) AS col2 FROM tab2 AS cor0
----
-34

skipif mysql # not compatible
query I rowsort label-3571
SELECT DISTINCT - + COUNT ( * ) + - + SUM ( DISTINCT 31 ) AS col2 FROM tab2 AS cor0
----
-34

query II rowsort
SELECT - + 68 * col2, + 45 - - col1 AS col0 FROM tab1 cor0
----
-4012
50
-4624
92
-6528
59

onlyif mysql # aggregate syntax: 
query II rowsort label-3573
SELECT DISTINCT - COUNT( DISTINCT - - ( + col1 ) ) + + COUNT( * ) + + + 32 * - ( + 63 ), 57 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IN ( col0 - - col1 + 89 / + - col1, + 84 * - + col1 )
----
-2016
57

skipif mysql # not compatible
query II rowsort label-3573
SELECT DISTINCT - COUNT ( DISTINCT - - ( + col1 ) ) + + COUNT ( * ) + + + 32 * - ( + 63 ), 57 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IN ( col0 - - col1 + 89 / + - col1, + 84 * - + col1 )
----
-2016
57

query I rowsort
SELECT ALL + 88 * 40 AS col2 FROM tab1 AS cor0
----
3520
3520
3520

onlyif mysql # aggregate syntax: 
query I rowsort label-3575
SELECT COUNT( * ) * - 75 + + COUNT( * ) FROM tab2 AS cor0
----
-222

skipif mysql # not compatible
query I rowsort label-3575
SELECT COUNT ( * ) * - 75 + + COUNT ( * ) FROM tab2 AS cor0
----
-222

query I rowsort
SELECT DISTINCT - + col1 * + + col1 AS col1 FROM tab0 AS cor0
----
-1
-441
-6561

query I rowsort
SELECT ALL + col1 * - 13 FROM tab2 AS cor0
----
-1001
-663
-871

query I rowsort
SELECT DISTINCT + col0 * 86 * - col2 FROM tab0
----
-60630
-74820
-825858

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3579
SELECT ALL - 84 * - - ( - CAST( - col1 AS SIGNED ) ) * - + col0 + + + col0 AS col2 FROM tab2
----
197110
414016
422175

skipif mysql # not compatible
query I rowsort label-3579
SELECT ALL - 84 * - - ( - CAST ( - col1 AS INTEGER ) ) * - + col0 + + + col0 AS col2 FROM tab2
----
197110
414016
422175

query I rowsort
SELECT ALL + ( + 53 ) * col0 - + col0 FROM tab2
----
2392
3328
3900

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3581
SELECT DISTINCT - col0 * - CAST( NULL AS DECIMAL ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3581
SELECT DISTINCT - col0 * - CAST ( NULL AS REAL ) FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3582
SELECT + col2 + - col0 DIV + - 42 - + 88 AS col0 FROM tab2
----
-29
-47
-64

skipif mysql # not compatible
query I rowsort label-3582
SELECT + col2 + - col0 / + - 42 - + 88 AS col0 FROM tab2
----
-29
-47
-64

query I rowsort
SELECT 89 + + + col0 - col0 + col1 AS col1 FROM tab1
----
103
136
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3584
SELECT + 86 * + - 38 / col0 * col0 + CAST( NULL AS SIGNED ) * + 70 + + 46 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3584
SELECT + 86 * + - 38 / col0 * col0 + CAST ( NULL AS INTEGER ) * + 70 + + 46 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + ( + + col0 ) FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT DISTINCT - + 12 - + + 90 + + + col2 FROM tab1 cor0
----
-34
-43
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3587
SELECT + CAST( 12 AS SIGNED ) FROM tab1
----
12
12
12

skipif mysql # not compatible
query I rowsort label-3587
SELECT + CAST ( 12 AS INTEGER ) FROM tab1
----
12
12
12

onlyif mysql # aggregate syntax: 
query I rowsort label-3588
SELECT DISTINCT + MIN( DISTINCT + col0 ) FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-3588
SELECT DISTINCT + MIN ( DISTINCT + col0 ) FROM tab1
----
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 79 AS col2, - col2 * 91 col0 FROM tab1
----
79
-5369
79
-6188
79
-8736

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3590
SELECT + CAST( - col2 AS SIGNED ) col2 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3590
SELECT + CAST ( - col2 AS INTEGER ) col2 FROM tab2
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3591
SELECT COUNT( * ) - + COUNT( - col0 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3591
SELECT COUNT ( * ) - + COUNT ( - col0 ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL - + col2 + col0 + + 26 FROM tab1 AS cor0
----
-19
49
52

query I rowsort
SELECT - col2 * + + col0 - + 72 * col2 * + col2 AS col2 FROM tab2 AS cor0
----
-117760
-246558
-39146

onlyif mysql # aggregate syntax: 
query II rowsort label-3594
SELECT ALL + + ( - + COUNT( * ) ), COUNT( * ) col2 FROM tab1 cor0
----
-3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3594
SELECT ALL + + ( - + COUNT ( * ) ), COUNT ( * ) col2 FROM tab1 cor0
----
-3
3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL BETWEEN col2 AND + col0
----

query I rowsort
SELECT DISTINCT - + 58 FROM tab0 AS cor0
----
-58

query I rowsort
SELECT DISTINCT col1 * + + 35 * - + col1 FROM tab2
----
-157115
-207515
-91035

query I rowsort
SELECT col2 FROM tab0 WHERE NOT 65 IS NULL
----
10
47
99

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 38 BETWEEN + col2 * + 37 AND + ( - ( + - col0 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE NOT + - 46 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3601
SELECT + MIN( - + ( - + col0 ) ) col0 FROM tab2
----
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3601
SELECT + MIN ( - + ( - + col0 ) ) col0 FROM tab2
----
46

query III rowsort
SELECT * FROM tab2 WHERE NOT + ( + 63 ) * + ( col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - 10 ) col0 FROM tab0
----
10
10
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3604
SELECT + COUNT( * ) * SUM( ( - col1 ) ) FROM tab2
----
-585

skipif mysql # not compatible
query I rowsort label-3604
SELECT + COUNT ( * ) * SUM ( ( - col1 ) ) FROM tab2
----
-585

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 40 col1 FROM tab2 AS cor0
----
-40

query II rowsort
SELECT DISTINCT + ( - 8 ) AS col2, 87 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-8
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3607
SELECT + MIN( DISTINCT - 66 ) DIV + - COUNT( * ) AS col1 FROM tab2
----
22

skipif mysql # not compatible
query I rowsort label-3607
SELECT + MIN ( DISTINCT - 66 ) / + - COUNT ( * ) AS col1 FROM tab2
----
22

query I rowsort
SELECT 77 + + 15 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 28 col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
28

query I rowsort
SELECT + ( + - 65 ) AS col0 FROM tab0
----
-65
-65
-65

query I rowsort
SELECT DISTINCT + col2 + - col0 - + 48 AS col2 FROM tab2 AS cor0
----
-65
-71
-72

query I rowsort
SELECT DISTINCT - 30 FROM tab1 cor0 WHERE - col1 * + + col2 IS NOT NULL
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-3613
SELECT ALL + - col1 + 99 DIV - col0 col1 FROM tab1 AS cor0
----
-15
-48
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3613
SELECT ALL + - col1 + 99 / - col0 col1 FROM tab1 AS cor0
----
-15
-48
-6

query II rowsort
SELECT + 32, - 32 - - col0 AS col1 FROM tab0 AS cor0
----
32
-17
32
55
32
65

onlyif mysql # aggregate syntax: 
query I rowsort label-3615
SELECT DISTINCT + COUNT( * ) FROM tab1 cor0 WHERE NULL BETWEEN ( ( + 47 ) * + + col2 ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-3615
SELECT DISTINCT + COUNT ( * ) FROM tab1 cor0 WHERE NULL BETWEEN ( ( + 47 ) * + + col2 ) AND NULL
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 56 / col0 * + - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-3617
SELECT ALL + + col2 DIV col0 AS col0 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3617
SELECT ALL + + col2 / col0 AS col0 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT ALL col2 AS col1 FROM tab2 cor0 WHERE NULL IS NULL
----
23
40
58

query I rowsort
SELECT ALL 66 * 72 FROM tab0
----
4752
4752
4752

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3620
SELECT AVG ( + CAST( NULL AS SIGNED ) ) + - 46 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3620
SELECT AVG ( + CAST ( NULL AS INTEGER ) ) + - 46 FROM tab0
----
NULL

query I rowsort
SELECT - col2 + + 98 AS col1 FROM tab0
----
-1
51
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 68 col1 FROM tab2
----
68
68
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3623
SELECT + COUNT( * ) * - + 77 FROM tab0
----
-231

skipif mysql # not compatible
query I rowsort label-3623
SELECT + COUNT ( * ) * - + 77 FROM tab0
----
-231

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3624
SELECT - AVG ( - CAST( NULL AS SIGNED ) ) * COUNT( * ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3624
SELECT - AVG ( - CAST ( NULL AS INTEGER ) ) * COUNT ( * ) AS col0 FROM tab1
----
NULL

query I rowsort
SELECT - 37 FROM tab2 WHERE col0 + - 94 >= - col1 * + - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 * - 69 * ( - - col2 ) + + col2 + - - col2 * - + col2 col1, col0 * col2 AS col1 FROM tab0
----
46483
705
59940
870
652905
9603

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 - - + 47 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3628
SELECT DISTINCT + + 18 + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-3628
SELECT DISTINCT + + 18 + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
21

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3629
SELECT + - CAST( NULL AS DECIMAL ) - + 8 * - ( + COUNT( * ) ) col1, 77 AS col2 FROM tab1 AS cor0
----
NULL
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3629
SELECT + - CAST ( NULL AS REAL ) - + 8 * - ( + COUNT ( * ) ) col1, 77 AS col2 FROM tab1 AS cor0
----
NULL
77

onlyif mysql # DIV for integer division: 
query II rowsort label-3630
SELECT + col2 - - col2, 21 DIV col1 AS col1 FROM tab0 AS cor0
----
198
21
20
1
94
0

skipif mysql # not compatible
query II rowsort label-3630
SELECT + col2 - - col2, 21 / col1 AS col1 FROM tab0 AS cor0
----
198
21
20
1
94
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + + ( - col1 ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3632
SELECT COUNT( DISTINCT + 78 ) col1 FROM tab1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3632
SELECT COUNT ( DISTINCT + 78 ) col1 FROM tab1 WHERE NULL IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3633
SELECT 5 / CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3633
SELECT 5 / CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT - col1 * + col2 * + col1 * - - col1 + - 79, + col2 FROM tab1 AS cor0
----
-263503
96
-7060043
68
-7454
59

onlyif mysql # DIV for integer division: 
query I rowsort label-3635
SELECT + col1 DIV 40 AS col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3635
SELECT + col1 / 40 AS col1 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT ALL + - col0 * + 57 AS col0 FROM tab0 AS cor0
----
-4959
-5529
-855

query I rowsort
SELECT - col2 * - + 84 FROM tab0 cor0
----
3948
8316
840

query I rowsort
SELECT DISTINCT + 70 FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3639
SELECT DISTINCT + SUM( - col2 ) FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-3639
SELECT DISTINCT + SUM ( - col2 ) FROM tab1 AS cor0
----
-223

query I rowsort
SELECT ALL + + 90 * col0 AS col0 FROM tab1 AS cor0
----
4590
7650
8190

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - 66 + - 7 + - col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3642
SELECT col0 DIV col1 * col0 * - col1 FROM tab1 cor0
----
-2142
-4277
-7225

skipif mysql # not compatible
query I rowsort label-3642
SELECT col0 / col1 * col0 * - col1 FROM tab1 cor0
----
-2142
-4277
-7225

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3643
SELECT + CAST( NULL AS SIGNED ) * - + CAST( - col1 AS SIGNED ) * + + CAST( NULL AS DECIMAL ) / + 44 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3643
SELECT + CAST ( NULL AS INTEGER ) * - + CAST ( - col1 AS INTEGER ) * + + CAST ( NULL AS REAL ) / + 44 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3644
SELECT DISTINCT - 21 DIV - 34 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3644
SELECT DISTINCT - 21 / - 34 AS col0 FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 4 col0, + col2 AS col0 FROM tab0
----
-4
10
-4
47
-4
99

query I rowsort
SELECT ALL 55 + + 88 FROM tab0, tab0 AS cor0
----
9 values hashing to 750c11171f0669c2fa0d412d84db5fa1

query I rowsort
SELECT ALL - + 41 FROM tab2 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - col1 BETWEEN - col0 + 58 AND + 6
----
15
81
47

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN + ( - 28 ) AND col0 + - col2 / - + col2
----

query II rowsort
SELECT - - col2 AS col1, 8 * + - col1 AS col0 FROM tab0 AS cor0
----
10
-168
47
-648
99
-8

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - ( - 10 ) <> NULL
----

query I rowsort
SELECT 60 * + 29 FROM tab2 AS cor0
----
1740
1740
1740

query I rowsort
SELECT ALL ( + 94 ) AS col2 FROM tab2
----
94
94
94

query I rowsort
SELECT DISTINCT + + col2 + + + col2 + - 22 AS col2 FROM tab2 AS cor0
----
24
58
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3655
SELECT ALL - - SUM( - col1 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3655
SELECT ALL - - SUM ( - col1 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( NULL )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3656
SELECT ALL 23 + + - COUNT( * ), 51 AS col0 FROM tab1 AS cor0
----
20
51

skipif mysql # not compatible
query II rowsort label-3656
SELECT ALL 23 + + - COUNT ( * ), 51 AS col0 FROM tab1 AS cor0
----
20
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3657
SELECT ALL - ( - + SUM( ALL + 47 ) ) FROM tab0 cor0
----
141

skipif mysql # not compatible
query I rowsort label-3657
SELECT ALL - ( - + SUM ( ALL + 47 ) ) FROM tab0 cor0
----
141

query II rowsort
SELECT DISTINCT + ( + - col1 ), + col0 AS col2 FROM tab0 AS cor0
----
-1
97
-21
87
-81
15

query II rowsort
SELECT DISTINCT - - 97 + - col1, - col2 * - + col0 AS col0 FROM tab0 AS cor0
----
16
705
76
870
96
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-3660
SELECT DISTINCT + - 50 + COUNT( * ) FROM tab0 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-3660
SELECT DISTINCT + - 50 + COUNT ( * ) FROM tab0 AS cor0
----
-47

query II rowsort
SELECT DISTINCT col0 AS col2, - col0 FROM tab2
----
46
-46
64
-64
75
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + + 99 col1 FROM tab2 WHERE - 1 IS NULL
----

query I rowsort
SELECT DISTINCT - 97 FROM tab2 WHERE NULL NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 63 <> - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3665
SELECT - COUNT( * ) + - 60 FROM tab0
----
-63

skipif mysql # not compatible
query I rowsort label-3665
SELECT - COUNT ( * ) + - 60 FROM tab0
----
-63

query I rowsort
SELECT 9 * 53 + - + ( 41 ) FROM tab0
----
436
436
436

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3667
SELECT ALL 13 * CAST( 16 AS SIGNED ) + 17 + + - col2 AS col1 FROM tab1 WHERE NULL IS NULL
----
129
157
166

skipif mysql # not compatible
query I rowsort label-3667
SELECT ALL 13 * CAST ( 16 AS INTEGER ) + 17 + + - col2 AS col1 FROM tab1 WHERE NULL IS NULL
----
129
157
166

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3668
SELECT CAST( NULL AS SIGNED ) + + 14 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3668
SELECT CAST ( NULL AS INTEGER ) + + 14 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 + - 99 FROM tab2 AS cor0
----
-41
-59
-76

query I rowsort
SELECT - col0 + col0 + 81 AS col2 FROM tab1 cor0
----
81
81
81

query I rowsort
SELECT DISTINCT + 30 - col1 FROM tab0 AS cor0
----
-51
29
9

query I rowsort
SELECT ALL + + 82 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

query I rowsort
SELECT DISTINCT - ( 0 ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-3674
SELECT ALL 34 * - - 90 * + col0 * + 95 AS col0, + col0 DIV 82 FROM tab2 AS cor0
----
13372200
0
18604800
0
21802500
0

skipif mysql # not compatible
query II rowsort label-3674
SELECT ALL 34 * - - 90 * + col0 * + 95 AS col0, + col0 / 82 FROM tab2 AS cor0
----
13372200
0
18604800
0
21802500
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3675
SELECT + + ( - - COUNT( * ) ) DIV + - 78 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3675
SELECT + + ( - - COUNT ( * ) ) / + - 78 FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3676
SELECT DISTINCT + 59 DIV + col0 AS col1 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-3676
SELECT DISTINCT + 59 / + col0 AS col1 FROM tab1 AS cor0
----
0
1

query I rowsort
SELECT - 9 * - col0 AS col1 FROM tab2 AS cor0
----
414
576
675

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col1 * + col2 + 42 NOT BETWEEN col1 AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + + 18 + - + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3680
SELECT + ( + - COUNT( * ) ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-3680
SELECT + ( + - COUNT ( * ) ) AS col0 FROM tab1
----
-3

query II rowsort
SELECT DISTINCT + 29 AS col2, col0 FROM tab0
----
29
15
29
87
29
97

query I rowsort
SELECT DISTINCT - 3 AS col2 FROM tab1
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3683
SELECT + ( - - CAST( col1 AS SIGNED ) ) FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-3683
SELECT + ( - - CAST ( col1 AS INTEGER ) ) FROM tab1
----
14
47
5

query I rowsort
SELECT + col2 * - - 1 AS col1 FROM tab2
----
23
40
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 * + col1 * - ( + - 55 ) col0 FROM tab1 AS cor0
----
16225
175780
73920

query I rowsort
SELECT ALL 56 * - 8 + 24 * col1 AS col0 FROM tab0 cor0
----
-424
1496
56

query I rowsort
SELECT ALL + col1 * - + col2 * col0 FROM tab0
----
-18270
-57105
-9603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3688
SELECT + col0 * + CAST( - - 0 AS SIGNED ) AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3688
SELECT + col0 * + CAST ( - - 0 AS INTEGER ) AS col2 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3689
SELECT - ( - - 15 ) * COUNT( * ) AS col1 FROM tab1
----
-45

skipif mysql # not compatible
query I rowsort label-3689
SELECT - ( - - 15 ) * COUNT ( * ) AS col1 FROM tab1
----
-45

query III rowsort
SELECT * FROM tab2 WHERE col2 + col2 + - 37 + 44 BETWEEN NULL AND - 23 / + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3691
SELECT - 72 + - COUNT( DISTINCT + - 52 ) FROM tab1
----
-73

skipif mysql # not compatible
query I rowsort label-3691
SELECT - 72 + - COUNT ( DISTINCT + - 52 ) FROM tab1
----
-73

onlyif mysql # aggregate syntax: 
query II rowsort label-3692
SELECT - COUNT( * ), 44 + 96 col1 FROM tab2 WHERE NULL IN ( - - 70 + col1, + col0 )
----
0
140

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3692
SELECT - COUNT ( * ), 44 + 96 col1 FROM tab2 WHERE NULL IN ( - - 70 + col1, + col0 )
----
0
140

onlyif mysql # aggregate syntax: 
query I rowsort label-3693
SELECT ALL COUNT( + 70 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3693
SELECT ALL COUNT ( + 70 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL + col0 + + - 37 + col1 FROM tab0 cor0
----
59
61
71

query I rowsort
SELECT ALL 5 + - - col1 FROM tab0 AS cor0
----
26
6
86

query I rowsort
SELECT DISTINCT - col0 * + col2 + - - col1 AS col1 FROM tab1 cor0
----
-4882
-5010
-6141

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 75 <> - 74
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3698
SELECT ALL + - AVG ( - - CAST( NULL AS SIGNED ) ) + - COUNT( ALL + 40 ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3698
SELECT ALL + - AVG ( - - CAST ( NULL AS INTEGER ) ) + - COUNT ( ALL + 40 ) AS col1 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 69 col1 FROM tab0 AS cor0
----
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3700
SELECT ALL + 45 DIV + 70 * COUNT( * ) + + - 0 DIV + 31 AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3700
SELECT ALL + 45 / + 70 * COUNT ( * ) + + - 0 / + 31 AS col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT + col0 - - 93 AS col2 FROM tab0 AS cor0
----
108
180
190

query I rowsort
SELECT + 27 + col0 + - - 12 FROM tab0
----
126
136
54

query I rowsort
SELECT DISTINCT - 39 * - - 63 FROM tab1
----
-2457

query I rowsort
SELECT DISTINCT col1 + + col0 + - 90 FROM tab2
----
51
52
7

query I rowsort
SELECT 76 - - col0 * - 18 FROM tab2 AS cor0
----
-1076
-1274
-752

query I rowsort
SELECT ALL - + 48 * + 86 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 7ce3614c98afdc233e8b078daa277a9e

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 BETWEEN - + col1 AND + col0
----
15
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3708
SELECT ALL + MIN( ALL + + col0 ) FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-3708
SELECT ALL + MIN ( ALL + + col0 ) FROM tab0 AS cor0
----
15

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + col1 ) >= + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col1 * col0 * - col0 AS col2 FROM tab2 AS cor0
----
-107916
-315392
-376875

onlyif mysql # aggregate syntax: 
query II rowsort label-3711
SELECT ALL 66 AS col0, - COUNT( * ) * COUNT( * ) AS col1 FROM tab1 AS cor0
----
66
-9

skipif mysql # not compatible
query II rowsort label-3711
SELECT ALL 66 AS col0, - COUNT ( * ) * COUNT ( * ) AS col1 FROM tab1 AS cor0
----
66
-9

query I rowsort
SELECT - + col2 * col0 * + col0 FROM tab1 AS cor0
----
-249696
-426275
-563108

query I rowsort
SELECT DISTINCT + - 59 AS col1 FROM tab1 AS cor0
----
-59

query II rowsort
SELECT + + col1 AS col2, 53 + + 72 FROM tab0 AS cor0
----
1
125
21
125
81
125

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col1 > - - col2
----
97
1
99

query I rowsort
SELECT ALL 71 * 71 AS col2 FROM tab2 AS cor0
----
5041
5041
5041

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 < NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE - col1 NOT BETWEEN 27 AND - - 43
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL - col1 * col2 AS col2, col2 * + 89 AS col2 FROM tab1
----
-1344
8544
-295
5251
-3196
6052

query I rowsort
SELECT DISTINCT 63 * + col2 FROM tab1
----
3717
4284
6048

query I rowsort
SELECT 16 * + col0 AS col2 FROM tab2
----
1024
1200
736

query III rowsort
SELECT * FROM tab2 WHERE NOT + - col0 * - + 62 > + - col1
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col0 / + col2 * - 11 NOT BETWEEN NULL AND + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - ( + + col2 ) col0 FROM tab2
----
-1600
-3364
-529

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3725
SELECT DISTINCT CAST( - - col2 AS SIGNED ) * - 48 FROM tab0
----
-2256
-4752
-480

skipif mysql # not compatible
query I rowsort label-3725
SELECT DISTINCT CAST ( - - col2 AS INTEGER ) * - 48 FROM tab0
----
-2256
-4752
-480

query I rowsort
SELECT 23 * 81 FROM tab0
----
1863
1863
1863

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3727
SELECT DISTINCT + col2 * - CAST( - col0 AS SIGNED ) + - + col1 + - col0 * - + col0 FROM tab1 AS cor0
----
12235
14422
7483

skipif mysql # not compatible
query I rowsort label-3727
SELECT DISTINCT + col2 * - CAST ( - col0 AS INTEGER ) + - + col1 + - col0 * - + col0 FROM tab1 AS cor0
----
12235
14422
7483

onlyif mysql # aggregate syntax: 
query I rowsort label-3728
SELECT - - 88 * - COUNT( * ) AS col2 FROM tab0 cor0
----
-264

skipif mysql # not compatible
query I rowsort label-3728
SELECT - - 88 * - COUNT ( * ) AS col2 FROM tab0 cor0
----
-264

query I rowsort
SELECT DISTINCT + col2 * - 24 + - + 71 FROM tab1 AS cor0
----
-1487
-1703
-2375

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT + 39 IS NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

query I rowsort
SELECT DISTINCT - col1 * + - col0 AS col0 FROM tab0 AS cor0
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3732
SELECT ALL + + MIN( 51 ) + - 73 AS col1 FROM tab1 AS cor0
----
-22

skipif mysql # not compatible
query I rowsort label-3732
SELECT ALL + + MIN ( 51 ) + - 73 AS col1 FROM tab1 AS cor0
----
-22

query I rowsort
SELECT DISTINCT + col1 * + + col2 + - 35 FROM tab2 AS cor0
----
1138
3045
3851

onlyif mysql # DIV for integer division: 
query I rowsort label-3734
SELECT ALL col2 * col0 - - ( - col0 ) + - 6 DIV - ( + col1 ) AS col2 FROM tab1 AS cor0
----
4845
4931
6097

skipif mysql # not compatible
query I rowsort label-3734
SELECT ALL col2 * col0 - - ( - col0 ) + - 6 / - ( + col1 ) AS col2 FROM tab1 AS cor0
----
4845
4931
6097

query II rowsort
SELECT - + 9 * 71 + - 57 AS col1, - col2 AS col2 FROM tab2 AS cor0
----
-696
-23
-696
-40
-696
-58

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3736
SELECT DISTINCT + - COUNT( * ) * - + 71 * + COUNT( * ) + - - CAST( NULL AS DECIMAL ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3736
SELECT DISTINCT + - COUNT ( * ) * - + 71 * + COUNT ( * ) + - - CAST ( NULL AS REAL ) FROM tab0 cor0
----
NULL

query I rowsort
SELECT ALL - 20 * + col1 - - - 97 FROM tab1
----
-1037
-197
-377

query I rowsort
SELECT ALL + ( 97 ) FROM tab1
----
97
97
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3739
SELECT COUNT( * ) + CAST( - - 99 AS SIGNED ) + - SUM( + col2 ) FROM tab1
----
-121

skipif mysql # not compatible
query I rowsort label-3739
SELECT COUNT ( * ) + CAST ( - - 99 AS INTEGER ) + - SUM ( + col2 ) FROM tab1
----
-121

query I rowsort
SELECT + 76 + - col1 FROM tab2
----
-1
25
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 96 col1 FROM tab2 AS cor0
----
-96

query II rowsort
SELECT DISTINCT + + 6, col1 FROM tab1 cor0
----
6
14
6
47
6
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3743
SELECT DISTINCT - + ( + COUNT( * ) ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3743
SELECT DISTINCT - + ( + COUNT ( * ) ) AS col2 FROM tab1 AS cor0
----
-3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 <> + col1 * - 37
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col2, 84 col0 FROM tab0 AS cor0
----
10
84
47
84
99
84

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3747
SELECT + MIN( DISTINCT + ( 42 ) ) col1 FROM tab1
----
42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3747
SELECT + MIN ( DISTINCT + ( 42 ) ) col1 FROM tab1
----
42

query I rowsort
SELECT ALL - + 75 AS col1 FROM tab0 cor0
----
-75
-75
-75

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col0 = 57 + - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-3750
SELECT - + 36 DIV col1 * + col1 + + col1 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-3750
SELECT - + 36 / col1 * + col1 + + col1 FROM tab2 AS cor0
----
51
67
77

query II rowsort
SELECT col1 * + - col0 AS col2, - 22 AS col2 FROM tab1 cor0
----
-425
-22
-4277
-22
-714
-22

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( - - 45 ) - col2 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3753
SELECT DISTINCT - - MAX( DISTINCT + - col0 ) * + ( + SUM( ALL - + col0 ) ) AS col0 FROM tab0 AS cor0
----
2985

skipif mysql # not compatible
query I rowsort label-3753
SELECT DISTINCT - - MAX ( DISTINCT + - col0 ) * + ( + SUM ( ALL - + col0 ) ) AS col0 FROM tab0 AS cor0
----
2985

query I rowsort
SELECT ALL + 9 + - col0 AS col2 FROM tab0 WHERE NOT ( NOT NULL NOT BETWEEN col2 AND - - col1 )
----

query II rowsort
SELECT ALL col2 * - + col1 * 80 AS col0, col0 - + ( + - col1 ) FROM tab1
----
-107520
65
-23600
90
-255680
138

query I rowsort
SELECT col0 + - + 80 FROM tab2
----
-16
-34
-5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3757
SELECT DISTINCT * FROM tab2 WHERE NOT + CAST( NULL AS SIGNED ) * + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3757
SELECT DISTINCT * FROM tab2 WHERE NOT + CAST ( NULL AS INTEGER ) * + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ( + col2 ) + + - col2 - - col2 FROM tab1
----
59
68
96

query I rowsort
SELECT 27 * + 38 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to c436fe82e7eed5cb971cbbef3f7a5e9f

query I rowsort
SELECT DISTINCT - 77 * - + col0 AS col1 FROM tab1
----
3927
6545
7007

query I rowsort
SELECT DISTINCT - col0 * - - col1 * + col0 AS col0 FROM tab1
----
-36125
-36414
-389207

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3762
SELECT + MAX( DISTINCT + CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3762
SELECT + MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3763
SELECT ALL + 66 DIV col0 + - + col2 + col0 AS col1 FROM tab2 AS cor0
----
17
24
25

skipif mysql # not compatible
query I rowsort label-3763
SELECT ALL + 66 / col0 + - + col2 + col0 AS col1 FROM tab2 AS cor0
----
17
24
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3764
SELECT DISTINCT + col1 * col0 - + + col1 + + + col1 + + + col0 * - CAST( NULL AS SIGNED ) / col0 AS col0 FROM tab1 AS cor0 WHERE - col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-3764
SELECT DISTINCT + col1 * col0 - + + col1 + + + col1 + + + col0 * - CAST ( NULL AS INTEGER ) / col0 AS col0 FROM tab1 AS cor0 WHERE - col1 IS NULL
----

query I rowsort
SELECT ALL + + 21 * - + col1 FROM tab1 AS cor0
----
-105
-294
-987

query I rowsort
SELECT + col2 AS col1 FROM tab2 WHERE NOT + ( + col0 ) - - 94 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3767
SELECT - 93 + - col2 AS col0 FROM tab2 WHERE - CAST( ( ( col0 ) ) AS SIGNED ) IS NOT NULL
----
-116
-133
-151

skipif mysql # not compatible
query I rowsort label-3767
SELECT - 93 + - col2 AS col0 FROM tab2 WHERE - CAST ( ( ( col0 ) ) AS INTEGER ) IS NOT NULL
----
-116
-133
-151

query III rowsort
SELECT * FROM tab1 WHERE col2 * col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3769
SELECT * FROM tab2 WHERE - CAST( NULL AS DECIMAL ) * col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3769
SELECT * FROM tab2 WHERE - CAST ( NULL AS REAL ) * col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3770
SELECT - ( 92 ) * col0 + CAST( col2 AS SIGNED ) * 91 AS col1 FROM tab0
----
-7094
2897
85

skipif mysql # not compatible
query I rowsort label-3770
SELECT - ( 92 ) * col0 + CAST ( col2 AS INTEGER ) * 91 AS col1 FROM tab0
----
-7094
2897
85

query I rowsort
SELECT - col2 FROM tab0 WHERE + 84 IS NOT NULL
----
-10
-47
-99

query I rowsort
SELECT 30 * col1 + - col2 * col1 AS col0 FROM tab2
----
-1876
-770
357

query I rowsort
SELECT + 20 + col2 AS col1 FROM tab1
----
116
79
88

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3774
SELECT ALL * FROM tab1 WHERE NULL < ( - 15 + CAST( + 19 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3774
SELECT ALL * FROM tab1 WHERE NULL < ( - 15 + CAST ( + 19 AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT - 79 + + col2 * col2 AS col1 FROM tab1
----
3402
4545
9137

onlyif mysql # aggregate syntax: 
query I rowsort label-3776
SELECT + MAX( 33 ) * COUNT( col0 ) AS col1 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-3776
SELECT + MAX ( 33 ) * COUNT ( col0 ) AS col1 FROM tab0
----
99

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 95 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 97 + - col1 AS col2 FROM tab1
----
-102
-111
-144

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL <> - 21
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 79 + 13 col1 FROM tab2
----
92
92
92

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col1 NOT BETWEEN - 21 * 6 + col0 * - col2 AND + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3782
SELECT ALL MAX( + col2 ) + SUM( + 11 ) FROM tab0
----
132

skipif mysql # not compatible
query I rowsort label-3782
SELECT ALL MAX ( + col2 ) + SUM ( + 11 ) FROM tab0
----
132

query I rowsort
SELECT ALL 0 * + col0 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3784
SELECT ALL + col0 * col1 + - ( col2 - - 85 DIV col0 ) FROM tab2
----
2322
4887
4966

skipif mysql # not compatible
query I rowsort label-3784
SELECT ALL + col0 * col1 + - ( col2 - - 85 / col0 ) FROM tab2
----
2322
4887
4966

query I rowsort
SELECT ALL + ( + col0 ) * col0 FROM tab2
----
2116
4096
5625

query I rowsort
SELECT + col2 * 22 FROM tab1
----
1298
1496
2112

query I rowsort
SELECT ALL col0 + - ( + col2 ) AS col2 FROM tab1
----
-45
23
26

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( 68 ) <> 90 / + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3789
SELECT COUNT( * ) col2 FROM tab1 WHERE NULL NOT BETWEEN ( NULL ) AND ( + col2 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3789
SELECT COUNT ( * ) col2 FROM tab1 WHERE NULL NOT BETWEEN ( NULL ) AND ( + col2 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3790
SELECT ALL 67 * + COUNT( * ) col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
201

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3790
SELECT ALL 67 * + COUNT ( * ) col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
201

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( col0 + + col0 ) NOT BETWEEN NULL AND + col2 + + 70
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3792
SELECT DISTINCT + MIN( ALL ( col2 ) ) AS col2 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-3792
SELECT DISTINCT + MIN ( ALL ( col2 ) ) AS col2 FROM tab2
----
23

query I rowsort
SELECT AVG ( ( - col2 ) ) AS col0 FROM tab0 WHERE 12 = ( col0 / - col2 + 80 )
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT ( 87 * - ( col1 / + col2 ) ) IS NOT NULL
----

query I rowsort
SELECT col0 + - ( col2 ) AS col0 FROM tab2
----
17
23
24

onlyif mysql # DIV for integer division: 
query I rowsort label-3796
SELECT DISTINCT - col0 DIV + col0 col0 FROM tab1
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3796
SELECT DISTINCT - col0 / + col0 col0 FROM tab1
----
-1

query I rowsort
SELECT - col1 * + 55 FROM tab1 WHERE NOT col0 / + col0 + - col1 * - col0 IS NULL
----
-2585
-275
-770

query III rowsort
SELECT ALL * FROM tab2 WHERE col2 * 66 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 72 * - ( + col2 ) + + 86 AS col1 FROM tab2
----
-1570
-2794
-4090

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL BETWEEN ( + col1 ) AND 21
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( 11 ) col1 FROM tab1 cor0
----
11
11
11

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col1 * + 54 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3803
SELECT DISTINCT COUNT( col0 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3803
SELECT DISTINCT COUNT ( col0 ) FROM tab1 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col1 + + col1 col2 FROM tab0 WHERE NOT NULL >= + 78 - 22
----

query III rowsort
SELECT * FROM tab2 WHERE NOT 37 IS NOT NULL
----

query I rowsort
SELECT + 65 - 60 AS col0 FROM tab2 cor0 CROSS JOIN tab0
----
9 values hashing to 6035628694bdea36f584f3649088551d

query I rowsort
SELECT ALL 61 FROM tab2 WHERE + ( - col0 ) = col1 * - ( ( - col2 ) )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 = col1 / + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3809
SELECT DISTINCT + COUNT( * ) + + MIN( - col0 ) * - 27 FROM tab2 AS cor0
----
2028

skipif mysql # not compatible
query I rowsort label-3809
SELECT DISTINCT + COUNT ( * ) + + MIN ( - col0 ) * - 27 FROM tab2 AS cor0
----
2028

onlyif mysql # aggregate syntax: 
query I rowsort label-3810
SELECT ALL MAX( + 45 ) FROM tab1 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-3810
SELECT ALL MAX ( + 45 ) FROM tab1 AS cor0
----
45

query I rowsort
SELECT col1 * 45 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( 65 ) AND col1 + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3812
SELECT + 18 * - COUNT( * ) AS col0 FROM tab0 cor0
----
-54

skipif mysql # not compatible
query I rowsort label-3812
SELECT + 18 * - COUNT ( * ) AS col0 FROM tab0 cor0
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-3813
SELECT ALL + COUNT( * ) * + COUNT( * ) AS col1 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3813
SELECT ALL + COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 27 * + col2 + col1 col2 FROM tab1 AS cor0 WHERE NOT - ( col2 ) >= NULL
----

query I rowsort
SELECT + 27 * + col0 FROM tab2 AS cor0
----
1242
1728
2025

query I rowsort
SELECT DISTINCT - 24 * - 93 AS col2 FROM tab2 AS cor0
----
2232

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3817
SELECT ALL - CAST( col1 AS SIGNED ) * col0 FROM tab2 AS cor0
----
-2346
-4928
-5025

skipif mysql # not compatible
query I rowsort label-3817
SELECT ALL - CAST ( col1 AS INTEGER ) * col0 FROM tab2 AS cor0
----
-2346
-4928
-5025

onlyif mysql # aggregate syntax: 
query I rowsort label-3818
SELECT + SUM( ALL + 95 ) * + COUNT( * ) FROM tab2 AS cor0
----
855

skipif mysql # not compatible
query I rowsort label-3818
SELECT + SUM ( ALL + 95 ) * + COUNT ( * ) FROM tab2 AS cor0
----
855

query I rowsort
SELECT ALL - 4 - col1 AS col0 FROM tab1 WHERE NOT NULL IN ( + 96 * col2 )
----

query I rowsort
SELECT + 80 AS col2 FROM tab1 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL 56 * + col1 AS col2 FROM tab0
----
1176
4536
56

query I rowsort
SELECT DISTINCT col1 * - col2 + + 48 AS col1 FROM tab1
----
-1296
-247
-3148

onlyif mysql # aggregate syntax: 
query I rowsort label-3823
SELECT 62 + + SUM( - col0 ) FROM tab2
----
-123

skipif mysql # not compatible
query I rowsort label-3823
SELECT 62 + + SUM ( - col0 ) FROM tab2
----
-123

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3824
SELECT - 60 + - MAX( + col1 ) - COUNT( * ) * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3824
SELECT - 60 + - MAX ( + col1 ) - COUNT ( * ) * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + - ( - col0 ) + 6 AS col2 FROM tab1 AS cor0
----
57
91
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3826
SELECT DISTINCT - ( + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3826
SELECT DISTINCT - ( + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + 60 + - col0 + - col0 * col0 FROM tab1 cor0
----
-2592
-7250
-8312

onlyif mysql # aggregate syntax: 
query I rowsort label-3828
SELECT ALL - COUNT( - 92 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3828
SELECT ALL - COUNT ( - 92 ) FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3829
SELECT ( - CAST( - COUNT( * ) AS SIGNED ) ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
query I rowsort label-3829
SELECT ( - CAST ( - COUNT ( * ) AS INTEGER ) ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9

query I rowsort
SELECT ALL + 39 + - 42 * + col0 FROM tab2
----
-1893
-2649
-3111

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3831
SELECT + + CAST( NULL AS SIGNED ) * - + 79 - col0 * col1 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3831
SELECT + + CAST ( NULL AS INTEGER ) * - + 79 - col0 * col1 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 39 - + - col0 AS col2 FROM tab2 AS cor0
----
103
114
85

query I rowsort
SELECT - col1 AS col1 FROM tab2 AS cor0 WHERE - col2 BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT + col2 - + 49 FROM tab1 AS cor0
----
10
19
47

query I rowsort
SELECT 68 - col0 AS col2 FROM tab1 AS cor0
----
-17
-23
17

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 43 = ( + - col2 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 73 + col0 + col2 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3838
SELECT ALL * FROM tab1 AS cor0 WHERE - col2 NOT BETWEEN ( + + CAST( - 42 AS DECIMAL ) ) AND ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3838
SELECT ALL * FROM tab1 AS cor0 WHERE - col2 NOT BETWEEN ( + + CAST ( - 42 AS REAL ) ) AND ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( col0 ) NOT IN ( - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL + col1 * 28 AS col1, - col2 AS col1 FROM tab1
----
1316
-68
140
-59
392
-96

query I rowsort
SELECT - - col0 FROM tab2 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3842
SELECT DISTINCT - 16 DIV + 62 AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3842
SELECT DISTINCT - 16 / + 62 AS col2 FROM tab0
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL < ( + + 89 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3844
SELECT - 62 * + col0 DIV + + col0 AS col2 FROM tab1
----
-62
-62
-62

skipif mysql # not compatible
query I rowsort label-3844
SELECT - 62 * + col0 / + + col0 AS col2 FROM tab1
----
-62
-62
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-3845
SELECT DISTINCT + MAX( DISTINCT col1 ) AS col2 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-3845
SELECT DISTINCT + MAX ( DISTINCT col1 ) AS col2 FROM tab2
----
77

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL BETWEEN ( NULL ) AND 5
----

query I rowsort
SELECT col1 * + + col1 AS col0 FROM tab2
----
2601
4489
5929

query I rowsort
SELECT + ( - 4 ) * - 65 FROM tab1 AS cor0
----
260
260
260

onlyif mysql # aggregate syntax: 
query I rowsort label-3849
SELECT DISTINCT - + 93 * - 96 + - COUNT( * ) FROM tab1 AS cor0
----
8925

skipif mysql # not compatible
query I rowsort label-3849
SELECT DISTINCT - + 93 * - 96 + - COUNT ( * ) FROM tab1 AS cor0
----
8925

query I rowsort
SELECT DISTINCT + 79 FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3851
SELECT DISTINCT col0, - 2 * ( - CAST( NULL AS SIGNED ) ) FROM tab1
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-3851
SELECT DISTINCT col0, - 2 * ( - CAST ( NULL AS INTEGER ) ) FROM tab1
----
51
NULL
85
NULL
91
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3852
SELECT CAST( - AVG ( - - ( - col1 ) ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-3852
SELECT CAST ( - AVG ( - - ( - col1 ) ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
22

query I rowsort
SELECT DISTINCT ( + + col1 ) FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT ALL col2 * + col1 + 19 - - + col1 + col2 FROM tab0 cor0
----
218
260
3954

query I rowsort
SELECT - col0 AS col1 FROM tab2 AS cor0 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3856
SELECT ALL - 7 * COUNT( * ) AS col1 FROM tab1 cor0
----
-21

skipif mysql # not compatible
query I rowsort label-3856
SELECT ALL - 7 * COUNT ( * ) AS col1 FROM tab1 cor0
----
-21

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL IN ( col2, col0 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3858
SELECT - 11 * - - AVG ( col2 ) + - AVG ( col1 ) + + 13 + 79 * CAST( NULL AS DECIMAL ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3858
SELECT - 11 * - - AVG ( col2 ) + - AVG ( col1 ) + + 13 + 79 * CAST ( NULL AS REAL ) FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - - ( - 8 ) + - + col2 col2 FROM tab0
----
-106
26
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3860
SELECT ALL + COUNT( * ) * - COUNT( * ) FROM tab0 WHERE ( 51 NOT IN ( + + 26 ) )
----
-9

skipif mysql # not compatible
query I rowsort label-3860
SELECT ALL + COUNT ( * ) * - COUNT ( * ) FROM tab0 WHERE ( 51 NOT IN ( + + 26 ) )
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3861
SELECT + MAX( DISTINCT - - CAST( NULL AS SIGNED ) ) * - 20 + CAST( NULL AS SIGNED ) + - SUM( + 36 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3861
SELECT + MAX ( DISTINCT - - CAST ( NULL AS INTEGER ) ) * - 20 + CAST ( NULL AS INTEGER ) + - SUM ( + 36 ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3862
SELECT ALL - MAX( DISTINCT + col1 ) FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-3862
SELECT ALL - MAX ( DISTINCT + col1 ) FROM tab1
----
-47

query I rowsort
SELECT ( ( col1 ) ) AS col0 FROM tab1
----
14
47
5

query I rowsort
SELECT DISTINCT col1 FROM tab2 WHERE + col2 * - col2 < - - col1
----
51
67
77

query I rowsort
SELECT col0 AS col2 FROM tab1 WHERE NULL BETWEEN col2 / col0 + ( - - col1 ) * - col0 AND 19
----

query I rowsort
SELECT DISTINCT - 83 + - + col2 FROM tab1
----
-142
-151
-179

query I rowsort
SELECT + - 30 FROM tab1 AS cor0 WHERE NULL <= col0
----

query I rowsort
SELECT + 23 - - col0 AS col0 FROM tab0 AS cor0
----
110
120
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3869
SELECT + 21 DIV - + COUNT( * ) + COUNT( * ) AS col1 FROM tab0
----
-4

skipif mysql # not compatible
query I rowsort label-3869
SELECT + 21 / - + COUNT ( * ) + COUNT ( * ) AS col1 FROM tab0
----
-4

query I rowsort
SELECT 20 * 33 + + col0 FROM tab2 WHERE ( - col0 ) <= ( + col0 - + - ( - 87 ) )
----
706
724
735

onlyif mysql # aggregate syntax: 
query I rowsort label-3871
SELECT DISTINCT + + COUNT( * ) * + 59 + + MAX( - col1 ) + - COUNT( * ) * + 36 FROM tab1 AS cor0
----
64

skipif mysql # not compatible
query I rowsort label-3871
SELECT DISTINCT + + COUNT ( * ) * + 59 + + MAX ( - col1 ) + - COUNT ( * ) * + 36 FROM tab1 AS cor0
----
64

query I rowsort
SELECT col1 * + + col1 FROM tab0 AS cor0
----
1
441
6561

query I rowsort
SELECT + 66 FROM tab1 cor0 WHERE NOT - col2 + col1 + - col2 * col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 * - ( - 93 ) AS col0 FROM tab0 AS cor0
----
1395
8091
9021

query I rowsort
SELECT ALL + ( - 56 ) FROM tab0 AS cor0
----
-56
-56
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-3876
SELECT 56 * - COUNT( * ) FROM tab0 cor0
----
-168

skipif mysql # not compatible
query I rowsort label-3876
SELECT 56 * - COUNT ( * ) FROM tab0 cor0
----
-168

onlyif mysql # aggregate syntax: 
query I rowsort label-3877
SELECT ALL - - SUM( + col1 ) * - MIN( DISTINCT col1 + + col2 ) FROM tab2 cor0 WHERE NULL BETWEEN ( NULL ) AND - ( + 34 ) + 31
----
NULL

skipif mysql # not compatible
query I rowsort label-3877
SELECT ALL - - SUM ( + col1 ) * - MIN ( DISTINCT col1 + + col2 ) FROM tab2 cor0 WHERE NULL BETWEEN ( NULL ) AND - ( + 34 ) + 31
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3878
SELECT - MIN( ALL - + col1 ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-3878
SELECT - MIN ( ALL - + col1 ) FROM tab2 AS cor0
----
77

query II rowsort
SELECT + col1 AS col0, - 87 FROM tab0
----
1
-87
21
-87
81
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-3880
SELECT ALL - SUM( DISTINCT - col1 ) AS col0 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-3880
SELECT ALL - SUM ( DISTINCT - col1 ) AS col0 FROM tab1
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3881
SELECT + ( + CAST( - col1 AS SIGNED ) ) FROM tab2 WHERE NOT 11 * - 89 * + col0 + - col2 < + col0 - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-3881
SELECT + ( + CAST ( - col1 AS INTEGER ) ) FROM tab2 WHERE NOT 11 * - 89 * + col0 + - col2 < + col0 - - CAST ( NULL AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 4 col0 FROM tab2
----
-4
-4
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3883
SELECT + CAST( - 49 AS SIGNED ) col1 FROM tab2
----
-49
-49
-49

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3883
SELECT + CAST ( - 49 AS INTEGER ) col1 FROM tab2
----
-49
-49
-49

query III rowsort
SELECT * FROM tab2 WHERE NOT + - col2 + + - 85 NOT BETWEEN NULL AND + - 68
----

query III rowsort
SELECT * FROM tab0 WHERE NOT 84 NOT IN ( + 92, col2 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - 28 ) = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - ( 61 ) col2 FROM tab2 AS cor0
----
3111
4087
4697

onlyif mysql # aggregate syntax: 
query I rowsort label-3888
SELECT ALL COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( + ( col0 ) ) <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-3888
SELECT ALL COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( + ( col0 ) ) <> NULL
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE + - 65 + - + 40 IS NULL
----

query I rowsort
SELECT DISTINCT + - 39 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-39

query I rowsort
SELECT 93 * - col2 + + - col2 FROM tab2 WHERE NOT NULL <> ( + col2 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 * col0 + + col1 + - - col0 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3893
SELECT - - ( + - CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3893
SELECT - - ( + - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT 66 + - 83 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 490d008f3fb5b70d3971cfc6d84503f4

onlyif mysql # aggregate syntax: 
query I rowsort label-3895
SELECT DISTINCT - COUNT( * ) FROM ( tab1 AS cor0 CROSS JOIN tab0 cor1 )
----
-9

skipif mysql # not compatible
query I rowsort label-3895
SELECT DISTINCT - COUNT ( * ) FROM ( tab1 AS cor0 CROSS JOIN tab0 cor1 )
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + col2 col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3897
SELECT DISTINCT COUNT( * ) + + 8 AS col0, COUNT( * ) col2 FROM tab1 cor0
----
11
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3897
SELECT DISTINCT COUNT ( * ) + + 8 AS col0, COUNT ( * ) col2 FROM tab1 cor0
----
11
3

query I rowsort
SELECT - - col1 * + 85 * - - col2 AS col2 FROM tab0 AS cor0
----
17850
323595
8415

query I rowsort
SELECT - col0 * - col2 * + - col0 FROM tab0 AS cor0
----
-10575
-75690
-931491

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3900
SELECT + + 5 DIV + SUM( + col2 ) AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3900
SELECT + + 5 / + SUM ( + col2 ) AS col1 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3901
SELECT - - SUM( - col2 ) FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-3901
SELECT - - SUM ( - col2 ) FROM tab0 AS cor0
----
-156

query I rowsort
SELECT DISTINCT + 65 + - + col2 - col2 AS col2 FROM tab2 AS cor0
----
-15
-51
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3903
SELECT - 72 * AVG ( DISTINCT CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3903
SELECT - 72 * AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col0 * - ( - - col1 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE NULL IS NULL AND NOT + + 89 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE + 13 + - 74 = ( NULL )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL < NULL AND NOT - + col2 + + 84 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE col2 <= + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3909
SELECT + + COUNT( * ) * + + 80 / + + 57 + + - COUNT( * ) + + + MIN( 18 ) * - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3909
SELECT + + COUNT ( * ) * + + 80 / + + 57 + + - COUNT ( * ) + + + MIN ( 18 ) * - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3910
SELECT ALL COUNT( ALL - 48 ) col1 FROM tab0 cor0 WHERE NULL NOT BETWEEN ( + col2 ) AND NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3910
SELECT ALL COUNT ( ALL - 48 ) col1 FROM tab0 cor0 WHERE NULL NOT BETWEEN ( + col2 ) AND NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3911
SELECT * FROM tab2 cor0 WHERE - ( + CAST( NULL AS SIGNED ) ) * - + 33 * + ( - 40 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3911
SELECT * FROM tab2 cor0 WHERE - ( + CAST ( NULL AS INTEGER ) ) * - + 33 * + ( - 40 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col2 FROM tab0 AS cor0 WHERE 92 IS NOT NULL
----
10
47
99

query I rowsort
SELECT + 17 - + col0 FROM tab2
----
-29
-47
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-3914
SELECT ALL + ( + 8 ) * + 78 + - MIN( - col0 ) * + COUNT( * ), COUNT( * ) - - 69 AS col1 FROM tab2
----
849
72

skipif mysql # not compatible
query II rowsort label-3914
SELECT ALL + ( + 8 ) * + 78 + - MIN ( - col0 ) * + COUNT ( * ), COUNT ( * ) - - 69 AS col1 FROM tab2
----
849
72

onlyif mysql # aggregate syntax: 
query I rowsort label-3915
SELECT DISTINCT ( + MAX( DISTINCT + 61 ) ) FROM tab0
----
61

skipif mysql # not compatible
query I rowsort label-3915
SELECT DISTINCT ( + MAX ( DISTINCT + 61 ) ) FROM tab0
----
61

query I rowsort
SELECT DISTINCT + 84 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IN ( + col2, 95 * + 54 )
----

query I rowsort
SELECT DISTINCT col1 + col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
138
65
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3918
SELECT DISTINCT + CAST( - + COUNT( * ) AS SIGNED ), + 35 AS col2 FROM tab1 AS cor0
----
-3
35

skipif mysql # not compatible
query II rowsort label-3918
SELECT DISTINCT + CAST ( - + COUNT ( * ) AS INTEGER ), + 35 AS col2 FROM tab1 AS cor0
----
-3
35

query I rowsort
SELECT - - col2 * - - col2 + col2 AS col0 FROM tab2 AS cor0
----
1640
3422
552

query II rowsort
SELECT DISTINCT - - col0, col1 AS col1 FROM tab2 AS cor0 WHERE NOT col2 > col1
----
46
51
64
77
75
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3921
SELECT - COUNT( + - col0 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3921
SELECT - COUNT ( + - col0 ) FROM tab0 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) IN ( 64 )
----

query I rowsort
SELECT + - col0 * 95 * + col1 FROM tab0 AS cor0
----
-115425
-173565
-9215

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3924
SELECT DISTINCT CAST( + col1 AS SIGNED ) col0 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3924
SELECT DISTINCT CAST ( + col1 AS INTEGER ) col0 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3925
SELECT col2 FROM tab0 AS cor0 WHERE NOT ( - CAST( NULL AS DECIMAL ) ) >= NULL
----

skipif mysql # not compatible
query I rowsort label-3925
SELECT col2 FROM tab0 AS cor0 WHERE NOT ( - CAST ( NULL AS REAL ) ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3926
SELECT + MIN( - + col0 ) AS col2 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-3926
SELECT + MIN ( - + col0 ) AS col2 FROM tab0 AS cor0
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3927
SELECT CAST( - col2 AS SIGNED ), - col1 AS col0 FROM tab2
----
-23
-51
-40
-77
-58
-67

skipif mysql # not compatible
query II rowsort label-3927
SELECT CAST ( - col2 AS INTEGER ), - col1 AS col0 FROM tab2
----
-23
-51
-40
-77
-58
-67

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL = + col2
----

query I rowsort
SELECT ALL ( - col1 ) * ( - col2 ) AS col1 FROM tab0
----
210
3807
99

onlyif mysql # aggregate syntax: 
query II rowsort label-3930
SELECT - COUNT( + 91 ) col1, - ( 17 ) AS col0 FROM tab1
----
-3
-17

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3930
SELECT - COUNT ( + 91 ) col1, - ( 17 ) AS col0 FROM tab1
----
-3
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-3931
SELECT ALL + COUNT( * ) * + + MAX( - 44 ) col2 FROM tab0
----
-132

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3931
SELECT ALL + COUNT ( * ) * + + MAX ( - 44 ) col2 FROM tab0
----
-132

query II rowsort
SELECT DISTINCT 69 * - 6, col0 AS col0 FROM tab2
----
-414
46
-414
64
-414
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3933
SELECT DISTINCT SUM( - - ( col0 ) ) FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-3933
SELECT DISTINCT SUM ( - - ( col0 ) ) FROM tab1
----
227

query I rowsort
SELECT - + col2 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3935
SELECT ALL + - MAX( ( 81 ) ) FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-3935
SELECT ALL + - MAX ( ( 81 ) ) FROM tab0 AS cor0
----
-81

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 < - + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col2 * col2 + - + col0 + col0 * + col1 AS col2 FROM tab1
----
3821
8810
9879

query I rowsort
SELECT ALL + - col2 + - 32 AS col0 FROM tab2 AS cor0
----
-55
-72
-90

query I rowsort
SELECT DISTINCT + - col2 * - col2 + + ( - + col2 ) * col2 * + col1 + 26 AS col0 FROM tab1 AS cor0
----
-119782
-13898
-212678

query I rowsort
SELECT - col2 + + col2 + - col2 FROM tab0 AS cor0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3941
SELECT COUNT( * ) + - 18 FROM tab1 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-3941
SELECT COUNT ( * ) + - 18 FROM tab1 AS cor0
----
-15

query I rowsort
SELECT DISTINCT - 91 AS col1 FROM tab2 cor0
----
-91

query I rowsort
SELECT ALL col0 * - 58 + - 6 + col0 FROM tab2 cor0
----
-2628
-3654
-4281

query III rowsort
SELECT * FROM tab1 WHERE - - 71 = NULL
----

query I rowsort
SELECT DISTINCT - col1 - - + col2 FROM tab2
----
-28
-37
-9

query I rowsort
SELECT - col1 * - - col0 AS col1 FROM tab1
----
-425
-4277
-714

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 2 NOT BETWEEN + + col2 AND col1 + - - col2
----

query I rowsort
SELECT + - col2 FROM tab1 WHERE 38 > - - col0
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3949
SELECT ALL col2 DIV + + CAST( col1 AS SIGNED ) FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3949
SELECT ALL col2 / + + CAST ( col1 AS INTEGER ) FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT 63 * 10 - - - col2 FROM tab1 AS cor0
----
534
562
571

query II rowsort
SELECT + col0 + 10 AS col1, + 87 AS col2 FROM tab1 AS cor0
----
101
87
61
87
95
87

query I rowsort
SELECT DISTINCT + ( + + 23 ) - + - 10 * - - col2 AS col2 FROM tab0
----
1013
123
493

query I rowsort
SELECT ( - 72 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ad521144c976ff25e77cdf10a84d1dc6

query I rowsort
SELECT + 78 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3955
SELECT - CAST( NULL AS SIGNED ) FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3955
SELECT - CAST ( NULL AS INTEGER ) FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-3956
SELECT DISTINCT - 33 + - MAX( - + 5 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-28

skipif mysql # not compatible
query I rowsort label-3956
SELECT DISTINCT - 33 + - MAX ( - + 5 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-28

query II rowsort
SELECT DISTINCT - 99, col2 FROM tab1 AS cor0
----
-99
59
-99
68
-99
96

query I rowsort
SELECT ALL col1 * col1 * - col1 AS col1 FROM tab1 AS cor0
----
-103823
-125
-2744

onlyif mysql # aggregate syntax: 
query I rowsort label-3959
SELECT - SUM( + ( col2 ) ) FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-3959
SELECT - SUM ( + ( col2 ) ) FROM tab1 AS cor0
----
-223

query II rowsort
SELECT DISTINCT - col1 AS col0, - 42 AS col0 FROM tab1 AS cor0
----
-14
-42
-47
-42
-5
-42

query I rowsort
SELECT DISTINCT - ( + + col0 ) AS col0 FROM tab0
----
-15
-87
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3962
SELECT ALL + MIN( DISTINCT - CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3962
SELECT ALL + MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3963
SELECT + COUNT( * ) + - COUNT( * ) FROM tab1 WHERE NOT ( - - 41 ) / + - col2 + - col1 NOT BETWEEN NULL AND col0
----
0

skipif mysql # not compatible
query I rowsort label-3963
SELECT + COUNT ( * ) + - COUNT ( * ) FROM tab1 WHERE NOT ( - - 41 ) / + - col2 + - col1 NOT BETWEEN NULL AND col0
----
0

query I rowsort
SELECT DISTINCT + col1 + + col2 FROM tab1 WHERE NULL <> 71 - + ( + + col1 ) / - - col1
----

query I rowsort
SELECT DISTINCT - col0 * - ( - 8 ) FROM tab1
----
-408
-680
-728

query I rowsort
SELECT - - 34 * - 56 FROM tab0 AS cor0
----
-1904
-1904
-1904

query II rowsort
SELECT - 81, col1 FROM tab1 AS cor0
----
-81
14
-81
47
-81
5

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL >= col2
----

query I rowsort
SELECT + 79 + 44 FROM tab2 AS cor0
----
123
123
123

query I rowsort
SELECT ALL + ( 48 ) * - + 80 AS col0 FROM tab2
----
-3840
-3840
-3840

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 56 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3972
SELECT ( CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3972
SELECT ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + AVG ( 22 ) FROM tab1 AS cor0 WHERE 98 + + - col0 < - + 61
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col0 ) + - + col2 col0 FROM tab0 AS cor0
----
-2
-32
77

query I rowsort
SELECT DISTINCT - 50 + + 79 AS col2 FROM tab2 AS cor0
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3976
SELECT DISTINCT - + CAST( NULL AS SIGNED ) / + col0 + + + 46 + + col2 / - + col2 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3976
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) / + col0 + + + 46 + + col2 / - + col2 AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3977
SELECT ALL + col1 * + CAST( NULL AS SIGNED ) + - - 92 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3977
SELECT ALL + col1 * + CAST ( NULL AS INTEGER ) + - - 92 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT + 4 - - - col0 AS col2, ( 87 ) AS col0 FROM tab1 cor0
----
-47
87
-81
87
-87
87

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL IN ( - - col1 * - col1, 19 )
----

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab2 WHERE NOT col1 BETWEEN NULL AND NULL
----

query II rowsort
SELECT + col2 AS col2, col0 FROM tab1 cor0
----
59
85
68
91
96
51

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE NULL > ( + 14 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3983
SELECT ALL 43 DIV col1 FROM tab0
----
0
2
43

skipif mysql # not compatible
query I rowsort label-3983
SELECT ALL 43 / col1 FROM tab0
----
0
2
43

query I rowsort
SELECT DISTINCT - + 35 FROM tab0 AS cor0
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-3985
SELECT - COUNT( * ) * 31 FROM tab2 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-3985
SELECT - COUNT ( * ) * 31 FROM tab2 AS cor0
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-3986
SELECT ALL COUNT( * ) col0 FROM tab1 AS cor0 WHERE NOT ( + col1 + - + col1 ) IS NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3986
SELECT ALL COUNT ( * ) col0 FROM tab1 AS cor0 WHERE NOT ( + col1 + - + col1 ) IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3987
SELECT MAX( ALL - + 94 ) AS col2 FROM tab0 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-3987
SELECT MAX ( ALL - + 94 ) AS col2 FROM tab0 AS cor0
----
-94

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 76 + - col2 * + col0 NOT BETWEEN - col2 AND 27
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( ( NOT ( + col0 ) IS NOT NULL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 6 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3991
SELECT MAX( - - col0 ) FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-3991
SELECT MAX ( - - col0 ) FROM tab2 AS cor0
----
75

query II rowsort
SELECT - 84, col2 FROM tab1
----
-84
59
-84
68
-84
96

query I rowsort
SELECT ( - col0 ) * - 22 + - 56 FROM tab1
----
1066
1814
1946

onlyif mysql # aggregate syntax: 
query I rowsort label-3994
SELECT - 76 + - COUNT( * ) FROM tab0
----
-79

skipif mysql # not compatible
query I rowsort label-3994
SELECT - 76 + - COUNT ( * ) FROM tab0
----
-79

query II rowsort
SELECT ( - + 44 ) + - col1 AS col1, col1 AS col0 FROM tab1
----
-49
5
-58
14
-91
47

query I rowsort
SELECT DISTINCT ( 80 ) - + - col0 FROM tab2 WHERE NULL <> ( 66 / + 47 + + col0 + - 85 )
----

query I rowsort
SELECT - ( + + 85 ) AS col1 FROM tab0
----
-85
-85
-85

onlyif mysql # aggregate syntax: 
query II rowsort label-3998
SELECT - 91 AS col1, COUNT( ALL + col0 ) FROM tab2
----
-91
3

skipif mysql # not compatible
query II rowsort label-3998
SELECT - 91 AS col1, COUNT ( ALL + col0 ) FROM tab2
----
-91
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3999
SELECT + SUM( ALL - col0 ) FROM tab0 cor0
----
-199

skipif mysql # not compatible
query I rowsort label-3999
SELECT + SUM ( ALL - col0 ) FROM tab0 cor0
----
-199

onlyif mysql # DIV for integer division: 
query I rowsort label-4000
SELECT col1 + - col0 DIV 39 AS col1 FROM tab1
----
13
3
45

skipif mysql # not compatible
query I rowsort label-4000
SELECT col1 + - col0 / 39 AS col1 FROM tab1
----
13
3
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4001
SELECT - COUNT( ALL - - 36 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-4001
SELECT - COUNT ( ALL - - 36 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

query I rowsort
SELECT col2 AS col1 FROM tab1 WHERE - col0 <> - + col0 * + col2 * - 65
----
59
68
96

query I rowsort
SELECT - 9 * + col2 * + 64 + ( - + 22 ) AS col0 FROM tab2
----
-13270
-23062
-33430

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - col0 ) + - - col1 col0 FROM tab1 AS cor0
----
-37
-44
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4005
SELECT ALL + col2 + - - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4005
SELECT ALL + col2 + - - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4006
SELECT col1 * + 60 + + col2 / - CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0 WHERE 52 * col1 - + + col1 BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-4006
SELECT col1 * + 60 + + col2 / - CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0 WHERE 52 * col1 - + + col1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT - col2 * + + 7 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-161
-280
-406

onlyif mysql # aggregate syntax: 
query I rowsort label-4008
SELECT - - MAX( - col1 ) FROM tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4008
SELECT - - MAX ( - col1 ) FROM tab0 cor0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4009
SELECT - CAST( NULL AS SIGNED ) * 55 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4009
SELECT - CAST ( NULL AS INTEGER ) * 55 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 - - col0 + + col0 * - 62 AS col0 FROM tab0
----
-5220
-5820
-900

query II rowsort
SELECT ALL col2 * + col1, - col1 AS col0 FROM tab2
----
1173
-51
3080
-77
3886
-67

query II rowsort
SELECT + col0 AS col2, col0 FROM tab2 WHERE NULL IS NULL
----
46
46
64
64
75
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4013
SELECT ALL + SUM( - col0 ) AS col1 FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-4013
SELECT ALL + SUM ( - col0 ) AS col1 FROM tab1
----
-227

onlyif mysql # aggregate syntax: 
query I rowsort label-4014
SELECT DISTINCT 82 * COUNT( DISTINCT 73 ) * 54 FROM tab1
----
4428

skipif mysql # not compatible
query I rowsort label-4014
SELECT DISTINCT 82 * COUNT ( DISTINCT 73 ) * 54 FROM tab1
----
4428

onlyif mysql # aggregate syntax: 
query II rowsort label-4015
SELECT - MIN( DISTINCT col0 ) AS col2, - MAX( col0 ) FROM tab0 AS cor0
----
-15
-97

skipif mysql # not compatible
query II rowsort label-4015
SELECT - MIN ( DISTINCT col0 ) AS col2, - MAX ( col0 ) FROM tab0 AS cor0
----
-15
-97

query I rowsort
SELECT ALL - - 99 * + col0 * - - ( col0 ) FROM tab2 AS cor0
----
209484
405504
556875

onlyif mysql # aggregate syntax: 
query I rowsort label-4017
SELECT + + MAX( DISTINCT + col1 ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-4017
SELECT + + MAX ( DISTINCT + col1 ) FROM tab2 AS cor0
----
77

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 20 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4019
SELECT + SUM( ( 76 ) ) FROM tab2
----
228

skipif mysql # not compatible
query I rowsort label-4019
SELECT + SUM ( ( 76 ) ) FROM tab2
----
228

query I rowsort
SELECT DISTINCT 86 * + + col2 FROM tab0
----
4042
8514
860

onlyif mysql # aggregate syntax: 
query II rowsort label-4021
SELECT - - COUNT( * ) AS col0, COUNT( DISTINCT + col0 ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
3
3

skipif mysql # not compatible
query II rowsort label-4021
SELECT - - COUNT ( * ) AS col0, COUNT ( DISTINCT + col0 ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
3
3

query III rowsort
SELECT * FROM tab2 WHERE NOT + ( + - col1 ) <> - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 79 col2 FROM tab1
----
-79

query I rowsort
SELECT DISTINCT - ( 97 ) AS col0 FROM tab0 AS cor0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4025
SELECT 92 * + COUNT( * ) FROM tab2 AS cor0
----
276

skipif mysql # not compatible
query I rowsort label-4025
SELECT 92 * + COUNT ( * ) FROM tab2 AS cor0
----
276

query I rowsort
SELECT ALL col1 * + 76 AS col1 FROM tab0 AS cor0
----
1596
6156
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4027
SELECT DISTINCT ( + - COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4027
SELECT DISTINCT ( + - COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4028
SELECT * FROM tab2 AS cor0 WHERE NOT + CAST( + + 82 AS SIGNED ) / - + 69 NOT BETWEEN NULL AND 17 AND + 96 * - col1 <> col1
----

skipif mysql # not compatible
query III rowsort label-4028
SELECT * FROM tab2 AS cor0 WHERE NOT + CAST ( + + 82 AS INTEGER ) / - + 69 NOT BETWEEN NULL AND 17 AND + 96 * - col1 <> col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4029
SELECT + 94 * + MAX( col0 ) FROM tab0 AS cor0
----
9118

skipif mysql # not compatible
query I rowsort label-4029
SELECT + 94 * + MAX ( col0 ) FROM tab0 AS cor0
----
9118

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4030
SELECT + - ( - col1 ) / - CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4030
SELECT + - ( - col1 ) / - CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4031
SELECT ALL - - CAST( NULL AS SIGNED ) AS col0, 13 FROM tab1 AS cor0
----
NULL
13
NULL
13
NULL
13

skipif mysql # not compatible
query II rowsort label-4031
SELECT ALL - - CAST ( NULL AS INTEGER ) AS col0, 13 FROM tab1 AS cor0
----
NULL
13
NULL
13
NULL
13

query III rowsort
SELECT * FROM tab1 WHERE NOT + 45 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4033
SELECT - COUNT( * ) FROM tab2 WHERE NOT ( NOT 74 IS NOT NULL )
----
-3

skipif mysql # not compatible
query I rowsort label-4033
SELECT - COUNT ( * ) FROM tab2 WHERE NOT ( NOT 74 IS NOT NULL )
----
-3

query I rowsort
SELECT DISTINCT + ( 74 ) FROM tab1
----
74

onlyif mysql # aggregate syntax: 
query II rowsort label-4035
SELECT DISTINCT COUNT( DISTINCT + - col1 ) AS col2, + 24 + + COUNT( * ) FROM tab1
----
3
27

skipif mysql # not compatible
query II rowsort label-4035
SELECT DISTINCT COUNT ( DISTINCT + - col1 ) AS col2, + 24 + + COUNT ( * ) FROM tab1
----
3
27

query I rowsort
SELECT ALL col0 * - 67 + col2 FROM tab2
----
-3059
-4248
-4967

onlyif mysql # aggregate syntax: 
query I rowsort label-4037
SELECT 14 + MIN( DISTINCT - 71 ) AS col0 FROM tab0 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-4037
SELECT 14 + MIN ( DISTINCT - 71 ) AS col0 FROM tab0 AS cor0
----
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 + col2 col2, - col2 AS col1 FROM tab1 cor0
----
118
-59
136
-68
192
-96

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( NULL ) NOT BETWEEN ( 14 ) * + + 42 AND + ( + col1 )
----

query I rowsort
SELECT DISTINCT - col0 * + ( 85 ) + - col2 * + col2 + col0 AS col2 FROM tab2 AS cor0
----
-4393
-6976
-9664

query I rowsort
SELECT ALL - 56 + col0 FROM tab0 AS cor0
----
-41
31
41

query I rowsort
SELECT ALL 46 * 38 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 7c45ca01779fbc6bd6de8d9ff6b2d0e1

onlyif mysql # aggregate syntax: 
query I rowsort label-4043
SELECT DISTINCT - + COUNT( * ) FROM tab1 WHERE + + ( 49 ) / + 25 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-4043
SELECT DISTINCT - + COUNT ( * ) FROM tab1 WHERE + + ( 49 ) / + 25 > NULL
----
0

query I rowsort
SELECT ALL - - col1 * + + 50 FROM tab0 AS cor0
----
1050
4050
50

query I rowsort
SELECT ALL + ( - 84 ) * col2 * + ( + col1 ) + - ( - 16 ) AS col1 FROM tab2 AS cor0
----
-258704
-326408
-98516

onlyif mysql # aggregate syntax: 
query II rowsort label-4046
SELECT + 78 AS col2, + 3 + COUNT( * ) FROM tab1 AS cor0
----
78
6

skipif mysql # not compatible
query II rowsort label-4046
SELECT + 78 AS col2, + 3 + COUNT ( * ) FROM tab1 AS cor0
----
78
6

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 * col1 * + + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4048
SELECT + COUNT( * ) * 92 - - - COUNT( * ) AS col1 FROM tab2 cor0
----
273

skipif mysql # not compatible
query I rowsort label-4048
SELECT + COUNT ( * ) * 92 - - - COUNT ( * ) AS col1 FROM tab2 cor0
----
273

query I rowsort
SELECT ALL + 11 + col0 FROM tab1 AS cor0
----
102
62
96

query I rowsort
SELECT DISTINCT + col2 + - + col1 AS col0 FROM tab1 AS cor0
----
21
54
82

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT IN ( 86 )
----

query II rowsort
SELECT ALL + 32 * 2 - col0 * - col1 + + 92 AS col1, col1 FROM tab0 AS cor0
----
1371
81
1983
21
253
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4053
SELECT ALL 71 + - COUNT( * ) col0 FROM tab0 AS cor0
----
68

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4053
SELECT ALL 71 + - COUNT ( * ) col0 FROM tab0 AS cor0
----
68

query I rowsort
SELECT DISTINCT ( + col0 ) * - - 50 + - ( - col1 ) + col1 - + + 51 + + - col2 + - - col1 FROM tab2
----
2379
3340
3842

query III rowsort
SELECT * FROM tab2 WHERE col0 + - col1 + + 90 * 9 >= + ( ( col0 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col1 * + + col0 AS col1 FROM tab0
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4057
SELECT + COUNT( * ) * + - COUNT( * ) AS col0 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-4057
SELECT + COUNT ( * ) * + - COUNT ( * ) AS col0 FROM tab0
----
-9

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND - 56
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 65 * - col1 col1 FROM tab1
----
3055
325
910

onlyif mysql # aggregate syntax: 
query I rowsort label-4060
SELECT DISTINCT SUM( col2 ) * + COUNT( * ) FROM tab1
----
669

skipif mysql # not compatible
query I rowsort label-4060
SELECT DISTINCT SUM ( col2 ) * + COUNT ( * ) FROM tab1
----
669

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4061
SELECT - col0 * + CAST( + col1 AS SIGNED ) FROM tab1
----
-425
-4277
-714

skipif mysql # not compatible
query I rowsort label-4061
SELECT - col0 * + CAST ( + col1 AS INTEGER ) FROM tab1
----
-425
-4277
-714

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col2 FROM tab1 AS cor0 WHERE NOT NULL = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4063
SELECT ALL - COUNT( * ) * - COUNT( * ) AS col2 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-4063
SELECT ALL - COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4064
SELECT ALL - 1 / + CAST( - 64 AS SIGNED ) + - CAST( NULL AS SIGNED ) + + 43 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4064
SELECT ALL - 1 / + CAST ( - 64 AS INTEGER ) + - CAST ( NULL AS INTEGER ) + + 43 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 83 * col0 AS col2 FROM tab1
----
4233
7055
7553

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 83 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 * + col0 col2 FROM tab2 AS cor0
----
-1058
-2560
-4350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4068
SELECT + CAST( NULL AS SIGNED ) * + - 8 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4068
SELECT + CAST ( NULL AS INTEGER ) * + - 8 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + 93 * col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4070
SELECT DISTINCT - + col2 + + 49 DIV col0 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-4070
SELECT DISTINCT - + col2 + + 49 / col0 FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4071
SELECT ALL - COUNT( * ) col1 FROM tab2 AS cor0 WHERE NOT - 67 / + col2 IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4071
SELECT ALL - COUNT ( * ) col1 FROM tab2 AS cor0 WHERE NOT - 67 / + col2 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4072
SELECT ALL SUM( - - ( + - ( + col2 ) ) ) AS col0 FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-4072
SELECT ALL SUM ( - - ( + - ( + col2 ) ) ) AS col0 FROM tab0
----
-156

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4073
SELECT CAST( NULL AS DECIMAL ) + - 76 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4073
SELECT CAST ( NULL AS REAL ) + - 76 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col2 * + 34 FROM tab0
----
1598
3366
340

query I rowsort
SELECT ALL ( - - 70 ) * 2 * - col0 + 9 AS col2 FROM tab2
----
-10491
-6431
-8951

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4076
SELECT - MAX( DISTINCT - - ( col1 ) ) / + ( + ( CAST( NULL AS SIGNED ) ) ) * - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4076
SELECT - MAX ( DISTINCT - - ( col1 ) ) / + ( + ( CAST ( NULL AS INTEGER ) ) ) * - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4077
SELECT + col2 DIV - - col2 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4077
SELECT + col2 / - - col2 FROM tab1
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4078
SELECT DISTINCT 56 * + - COUNT( * ) AS col0 FROM tab2
----
-168

skipif mysql # not compatible
query I rowsort label-4078
SELECT DISTINCT 56 * + - COUNT ( * ) AS col0 FROM tab2
----
-168

query I rowsort
SELECT ALL ( col2 ) * 61 + + col2 FROM tab2
----
1426
2480
3596

onlyif mysql # aggregate syntax: 
query I rowsort label-4080
SELECT MIN( + + col0 ) FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-4080
SELECT MIN ( + + col0 ) FROM tab2
----
46

query II rowsort
SELECT ALL - + col2, - col0 AS col2 FROM tab1 AS cor0
----
-59
-85
-68
-91
-96
-51

query II rowsort
SELECT DISTINCT - 61 * - 45 + 91 AS col2, 25 * + col1 FROM tab1 cor0
----
2836
1175
2836
125
2836
350

onlyif mysql # aggregate syntax: 
query II rowsort label-4083
SELECT - 49 col1, COUNT( * ) AS col0 FROM tab1 AS cor0
----
-49
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4083
SELECT - 49 col1, COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-49
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4084
SELECT DISTINCT COUNT( col1 ) AS col2 FROM tab0 AS cor0 WHERE NOT col0 = - + 15 * - col2 * - col2
----
3

skipif mysql # not compatible
query I rowsort label-4084
SELECT DISTINCT COUNT ( col1 ) AS col2 FROM tab0 AS cor0 WHERE NOT col0 = - + 15 * - col2 * - col2
----
3

query I rowsort
SELECT ALL + - 77 AS col2 FROM tab1 cor0
----
-77
-77
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4086
SELECT DISTINCT - COUNT( * ) + + MIN( DISTINCT + + 33 ) FROM tab2 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-4086
SELECT DISTINCT - COUNT ( * ) + + MIN ( DISTINCT + + 33 ) FROM tab2 AS cor0
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4087
SELECT ALL - ( - 88 ) + - - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4087
SELECT ALL - ( - 88 ) + - - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 58 BETWEEN + - col0 AND - + col1 + - - 91
----
64
77
40
75
67
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4089
SELECT + - col1 AS col1 FROM tab1 cor0 WHERE ( NULL ) IN ( col0 * + col0, CAST( NULL AS SIGNED ) * col1 + col1 / - + 38 + + col0 - + col1 )
----

skipif mysql # not compatible
query I rowsort label-4089
SELECT + - col1 AS col1 FROM tab1 cor0 WHERE ( NULL ) IN ( col0 * + col0, CAST ( NULL AS INTEGER ) * col1 + col1 / - + 38 + + col0 - + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4090
SELECT ALL * FROM tab0 WHERE - col1 + - CAST( NULL AS SIGNED ) <> col0
----

skipif mysql # not compatible
query III rowsort label-4090
SELECT ALL * FROM tab0 WHERE - col1 + - CAST ( NULL AS INTEGER ) <> col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4091
SELECT ALL COUNT( ALL - col0 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4091
SELECT ALL COUNT ( ALL - col0 ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4092
SELECT ALL + COUNT( * ) * + + SUM( 44 ) AS col1 FROM tab0
----
396

skipif mysql # not compatible
query I rowsort label-4092
SELECT ALL + COUNT ( * ) * + + SUM ( 44 ) AS col1 FROM tab0
----
396

query I rowsort
SELECT ALL - col2 * - 14 FROM tab0 AS cor0
----
1386
140
658

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4094
SELECT DISTINCT COUNT( * ) + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4094
SELECT DISTINCT COUNT ( * ) + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + col2 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
10
47
99

query I rowsort
SELECT - col2 * - 93 FROM tab2 AS cor0
----
2139
3720
5394

query I rowsort
SELECT DISTINCT + 40 AS col1 FROM tab1 AS cor0 WHERE - 97 <> - + col1 + - 28
----
40

query II rowsort
SELECT - - col1 AS col0, + col1 + col0 FROM tab2 AS cor0
----
51
97
67
142
77
141

onlyif mysql # aggregate syntax: 
query I rowsort label-4099
SELECT - MAX( - ( ( col1 ) ) ) + ( + SUM( ALL - col0 ) ) AS col0 FROM tab1 AS cor0 WHERE ( + - col1 IS NOT NULL )
----
-222

skipif mysql # not compatible
query I rowsort label-4099
SELECT - MAX ( - ( ( col1 ) ) ) + ( + SUM ( ALL - col0 ) ) AS col0 FROM tab1 AS cor0 WHERE ( + - col1 IS NOT NULL )
----
-222

onlyif mysql # aggregate syntax: 
query I rowsort label-4100
SELECT - + SUM( - col0 ) AS col1 FROM tab1 cor0
----
227

skipif mysql # not compatible
query I rowsort label-4100
SELECT - + SUM ( - col0 ) AS col1 FROM tab1 cor0
----
227

query I rowsort
SELECT DISTINCT - col1 * - - col2 * + + col2 FROM tab1
----
-129024
-17405
-217328

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4102
SELECT col2 AS col0 FROM tab0 WHERE + - CAST( NULL AS SIGNED ) * + col1 * + 54 + + - col0 >= col1
----

skipif mysql # not compatible
query I rowsort label-4102
SELECT col2 AS col0 FROM tab0 WHERE + - CAST ( NULL AS INTEGER ) * + col1 * + 54 + + - col0 >= col1
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - col0 = - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4104
SELECT DISTINCT * FROM tab2 WHERE NOT - CAST( NULL AS SIGNED ) + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4104
SELECT DISTINCT * FROM tab2 WHERE NOT - CAST ( NULL AS INTEGER ) + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4105
SELECT COUNT( * ) + - - 12 AS col2 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-4105
SELECT COUNT ( * ) + - - 12 AS col2 FROM tab0
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4106
SELECT ALL + 13 DIV COUNT( * ) FROM tab2
----
4

skipif mysql # not compatible
query I rowsort label-4106
SELECT ALL + 13 / COUNT ( * ) FROM tab2
----
4

query I rowsort
SELECT DISTINCT - 40 + - 0 AS col1 FROM tab1 AS cor0
----
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-4108
SELECT + + 60 * 87 DIV - - col1 + + - col1 + - col0 AS col1 FROM tab0 AS cor0
----
-32
140
5122

skipif mysql # not compatible
query I rowsort label-4108
SELECT + + 60 * 87 / - - col1 + + - col1 + - col0 AS col1 FROM tab0 AS cor0
----
-32
140
5122

query I rowsort
SELECT - - 15 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

query I rowsort
SELECT DISTINCT - ( 94 ) + - col1 + + 30 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN ( NULL ) AND + col0 * col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + - col0 col1 FROM tab1 AS cor0
----
-23
-26
45

query II rowsort
SELECT DISTINCT + 47 AS col2, col0 FROM tab1 AS cor0
----
47
51
47
85
47
91

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - col0 AS col1 FROM tab0 WHERE - + 93 + + + col1 * + col0 < NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE - 95 + + 9 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col2 * + 34 >= - 56
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4117
SELECT + MIN( - col1 ) AS col1 FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-4117
SELECT + MIN ( - col1 ) AS col1 FROM tab2
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4118
SELECT - ( 22 ) * - CAST( NULL AS SIGNED ) - col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4118
SELECT - ( 22 ) * - CAST ( NULL AS INTEGER ) - col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab0 WHERE NOT - col2 IS NULL
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4120
SELECT ALL SUM( - ( + + 18 ) ) AS col0 FROM tab1
----
-54

skipif mysql # not compatible
query I rowsort label-4120
SELECT ALL SUM ( - ( + + 18 ) ) AS col0 FROM tab1
----
-54

query I rowsort
SELECT col2 * + + 12 FROM tab1
----
1152
708
816

query III rowsort
SELECT * FROM tab1 WHERE NOT + 20 IS NOT NULL
----

query I rowsort
SELECT + ( + ( + col0 ) ) FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT DISTINCT + + 86 AS col2 FROM tab0 AS cor0
----
86

query I rowsort
SELECT ALL - 88 AS col0 FROM tab0 AS cor0
----
-88
-88
-88

query I rowsort
SELECT DISTINCT + 56 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
56

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL <= col2
----

query II rowsort
SELECT - col0 + + 35, + ( + col1 ) + col0 + - + col2 AS col0 FROM tab1 WHERE NOT + col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 49 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4130
SELECT DISTINCT + + col0 * + col2 / 57 + CAST( NULL AS SIGNED ) + - col1 * ( - 24 ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4130
SELECT DISTINCT + + col0 * + col2 / 57 + CAST ( NULL AS INTEGER ) + - col1 * ( - 24 ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - - col0 + + - 63 FROM tab0 AS cor0
----
-48
24
34

query II rowsort
SELECT DISTINCT + col2 AS col2, - 3 FROM tab0 AS cor0 WHERE 1 IS NULL
----

query I rowsort
SELECT DISTINCT col0 + + 32 + + 46 FROM tab2 AS cor0
----
124
142
153

onlyif mysql # aggregate syntax: 
query I rowsort label-4134
SELECT - SUM( + + col1 ) + + COUNT( * ) * + 78 FROM tab1 AS cor0
----
168

skipif mysql # not compatible
query I rowsort label-4134
SELECT - SUM ( + + col1 ) + + COUNT ( * ) * + 78 FROM tab1 AS cor0
----
168

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 94 + + - col0 col2 FROM tab0 AS cor0
----
-109
-181
-191

onlyif mysql # aggregate syntax: 
query I rowsort label-4136
SELECT ALL - + COUNT( DISTINCT + col2 ) + + COUNT( * ) + + 80 + + 43 AS col1 FROM tab1 cor0
----
123

skipif mysql # not compatible
query I rowsort label-4136
SELECT ALL - + COUNT ( DISTINCT + col2 ) + + COUNT ( * ) + + 80 + + 43 AS col1 FROM tab1 cor0
----
123

query I rowsort
SELECT 56 + + + col2 AS col0 FROM tab0 AS cor0
----
103
155
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col1 FROM tab0 WHERE NOT ( - - col2 ) IS NOT NULL
----

query I rowsort
SELECT + - ( - col0 ) AS col2 FROM tab1 WHERE - 87 IS NULL
----

query I rowsort
SELECT 68 + 70 - col1 AS col2 FROM tab2
----
61
71
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4141
SELECT - 63 + + - COUNT( * ) FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-4141
SELECT - 63 + + - COUNT ( * ) FROM tab1
----
-66

query I rowsort
SELECT DISTINCT + col2 * + + col2 AS col0 FROM tab0
----
100
2209
9801

onlyif mysql # aggregate syntax: 
query I rowsort label-4143
SELECT ALL MIN( - - col0 ) * + - 68 * + 65 col2 FROM tab2
----
-203320

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4143
SELECT ALL MIN ( - - col0 ) * + - 68 * + 65 col2 FROM tab2
----
-203320

onlyif mysql # aggregate syntax: 
query I rowsort label-4144
SELECT ALL MAX( - + 17 ) FROM tab1
----
-17

skipif mysql # not compatible
query I rowsort label-4144
SELECT ALL MAX ( - + 17 ) FROM tab1
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-4145
SELECT col1 DIV - - col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4145
SELECT col1 / - - col2 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT + 97 + + col0 * col1 FROM tab2
----
2443
5025
5122

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4147
SELECT ALL + CAST( col2 AS SIGNED ) + - col0 * col2 * 19 AS col0 FROM tab2 AS cor0
----
-20079
-48600
-82592

skipif mysql # not compatible
query I rowsort label-4147
SELECT ALL + CAST ( col2 AS INTEGER ) + - col0 * col2 * 19 AS col0 FROM tab2 AS cor0
----
-20079
-48600
-82592

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4148
SELECT DISTINCT + 48 + + CAST( NULL AS SIGNED ) * col0 + - + col2, + 22 * - col1 col1 FROM tab1 cor0
----
NULL
-1034
NULL
-110
NULL
-308

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4148
SELECT DISTINCT + 48 + + CAST ( NULL AS INTEGER ) * col0 + - + col2, + 22 * - col1 col1 FROM tab1 cor0
----
NULL
-1034
NULL
-110
NULL
-308

query I rowsort
SELECT 42 - + col0 + - col2 AS col1 FROM tab0 AS cor0
----
-154
-20
-55

query I rowsort
SELECT ALL - col2 - - - col0 * + + col2 AS col1 FROM tab2 AS cor0
----
-1081
-2600
-4408

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4151
SELECT - CAST( NULL AS SIGNED ) * 67 - + 77 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4151
SELECT - CAST ( NULL AS INTEGER ) * 67 - + 77 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 >= col2
----

query I rowsort
SELECT DISTINCT 57 - - - col2 AS col2 FROM tab2 AS cor0
----
-1
17
34

onlyif mysql # DIV for integer division: 
query I rowsort label-4154
SELECT DISTINCT - col2 DIV + col2 + + 69 AS col1 FROM tab1
----
68

skipif mysql # not compatible
query I rowsort label-4154
SELECT DISTINCT - col2 / + col2 + + 69 AS col1 FROM tab1
----
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 49 - 70 col1 FROM tab0
----
-21

query I rowsort
SELECT ALL ( + 93 ) FROM tab2
----
93
93
93

query I rowsort
SELECT ALL + 84 - + col1 - + + col2 * - col0 AS col2 FROM tab0
----
708
933
9686

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4158
SELECT col0 DIV - - 61 + - + col2 + + col1 + + CAST( - ( - - 57 ) AS SIGNED ) * - ( 18 ) + - + col2, col0 AS col2 FROM tab0
----
1013
15
1028
87
830
97

skipif mysql # not compatible
query II rowsort label-4158
SELECT col0 / - - 61 + - + col2 + + col1 + + CAST ( - ( - - 57 ) AS INTEGER ) * - ( 18 ) + - + col2, col0 AS col2 FROM tab0
----
1013
15
1028
87
830
97

query I rowsort
SELECT + col0 FROM tab0 WHERE + 81 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4160
SELECT + col0 + + col0 + col1 * + ( - col1 ), 6 FROM tab2 AS cor0 WHERE NOT - col2 < - - 76 / + + CAST( - col1 AS SIGNED ) + + 12 / - 61
----

skipif mysql # not compatible
query II rowsort label-4160
SELECT + col0 + + col0 + col1 * + ( - col1 ), 6 FROM tab2 AS cor0 WHERE NOT - col2 < - - 76 / + + CAST ( - col1 AS INTEGER ) + + 12 / - 61
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4161
SELECT * FROM tab0 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-4161
SELECT * FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4162
SELECT + ( - COUNT( * ) ) * 8 * + 64 FROM tab2 AS cor0
----
-1536

skipif mysql # not compatible
query I rowsort label-4162
SELECT + ( - COUNT ( * ) ) * 8 * + 64 FROM tab2 AS cor0
----
-1536

onlyif mysql # DIV for integer division: 
query II rowsort label-4163
SELECT - col1 DIV 81 + + + 59 AS col2, + 83 + col0 AS col2 FROM tab1 AS cor0
----
59
134
59
168
59
174

skipif mysql # not compatible
query II rowsort label-4163
SELECT - col1 / 81 + + + 59 AS col2, + 83 + col0 AS col2 FROM tab1 AS cor0
----
59
134
59
168
59
174

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4164
SELECT ALL + MIN( ALL - 39 ) DIV + COUNT( * ) FROM tab0 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-4164
SELECT ALL + MIN ( ALL - 39 ) / + COUNT ( * ) FROM tab0 AS cor0
----
-13

query I rowsort
SELECT + - 37 AS col2 FROM tab2 AS cor0
----
-37
-37
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-4166
SELECT ALL col1 DIV + - 62 + - - col1 * + col2 AS col0 FROM tab0 AS cor0
----
210
3806
99

skipif mysql # not compatible
query I rowsort label-4166
SELECT ALL col1 / + - 62 + - - col1 * + col2 AS col0 FROM tab0 AS cor0
----
210
3806
99

onlyif mysql # DIV for integer division: 
query I rowsort label-4167
SELECT + + col0 DIV - + 17 col2 FROM tab1 cor0
----
-3
-5
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4167
SELECT + + col0 / - + 17 col2 FROM tab1 cor0
----
-3
-5
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4168
SELECT - - SUM( - col2 ) FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-4168
SELECT - - SUM ( - col2 ) FROM tab1 AS cor0
----
-223

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 NOT IN ( - col0, + col0 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + ( col2 ) + + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 57 + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + col2, - col2 * col1 FROM tab1
----
59
-295
68
-3196
96
-1344

query I rowsort
SELECT DISTINCT - col2 * + - col1 FROM tab2
----
1173
3080
3886

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4174
SELECT - - 71 DIV - ( - 11 ) + CAST( - - col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
57
73
83

skipif mysql # not compatible
query I rowsort label-4174
SELECT - - 71 / - ( - 11 ) + CAST ( - - col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
57
73
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4175
SELECT + - COUNT( * ) + COUNT( - 76 ) - + 14 DIV 74 AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4175
SELECT + - COUNT ( * ) + COUNT ( - 76 ) - + 14 / 74 AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT col2 * + 56 * - + col2 + - 71 FROM tab1
----
-195007
-259015
-516167

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4177
SELECT - CAST( + + 23 AS SIGNED ) FROM tab0
----
-23
-23
-23

skipif mysql # not compatible
query I rowsort label-4177
SELECT - CAST ( + + 23 AS INTEGER ) FROM tab0
----
-23
-23
-23

query II rowsort
SELECT ALL - + ( col2 ), - col2 * + col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4179
SELECT ALL - 95 + - col2 * col1 * col1 DIV col2 FROM tab2 AS cor0
----
-2696
-4584
-6024

skipif mysql # not compatible
query I rowsort label-4179
SELECT ALL - 95 + - col2 * col1 * col1 / col2 FROM tab2 AS cor0
----
-2696
-4584
-6024

onlyif mysql # aggregate syntax: 
query I rowsort label-4180
SELECT DISTINCT + COUNT( * ) + 78 + - + COUNT( * ) FROM tab1 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-4180
SELECT DISTINCT + COUNT ( * ) + 78 + - + COUNT ( * ) FROM tab1 AS cor0
----
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
46
64
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4182
SELECT - ( - - CAST( - COUNT( * ) AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4182
SELECT - ( - - CAST ( - COUNT ( * ) AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4183
SELECT DISTINCT - + col0 AS col2 FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4183
SELECT DISTINCT - + col0 AS col2 FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT - 75 - + 20 + + col2 FROM tab1 AS cor0
----
-27
-36
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4185
SELECT ALL + MAX( + col1 ) AS col0 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-4185
SELECT ALL + MAX ( + col1 ) AS col0 FROM tab1
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4186
SELECT ALL col2 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IN ( + 46, CAST( NULL AS SIGNED ), - col0, - col0 * - col2 )
----

skipif mysql # not compatible
query I rowsort label-4186
SELECT ALL col2 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IN ( + 46, CAST ( NULL AS INTEGER ), - col0, - col0 * - col2 )
----

query II rowsort
SELECT - col0, col0 AS col0 FROM tab0 AS cor0
----
-15
15
-87
87
-97
97

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( ( - + col1 ) IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col1 - col0 * col0 AS col2 FROM tab0 AS cor0
----
-144
-7548
-9408

query I rowsort
SELECT ALL + 68 - - + 82 FROM tab2
----
150
150
150

onlyif mysql # DIV for integer division: 
query I rowsort label-4191
SELECT col1 DIV + - col0 AS col1 FROM tab0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-4191
SELECT col1 / + - col0 AS col1 FROM tab0
----
-5
0
0

query II rowsort
SELECT + 1, col1 AS col1 FROM tab0 cor0
----
1
1
1
21
1
81

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4194
SELECT COUNT( * ) * + SUM( + col0 ) + + 16 AS col2 FROM tab1 cor0
----
697

skipif mysql # not compatible
query I rowsort label-4194
SELECT COUNT ( * ) * + SUM ( + col0 ) + + 16 AS col2 FROM tab1 cor0
----
697

query I rowsort
SELECT DISTINCT col1 * + ( + col2 ) AS col0 FROM tab1 AS cor0
----
1344
295
3196

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 > - 70
----

query I rowsort
SELECT 41 * + col0 + + - 69 + col1 * + col2 FROM tab1 AS cor0
----
3366
3711
6858

query I rowsort
SELECT ALL + 98 * + 50 * col1 FROM tab0 AS cor0
----
102900
396900
4900

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 77 IN ( + - col0, - 99, - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4200
SELECT DISTINCT col2 / + col1 * CAST( NULL AS DECIMAL ) + col1 + + ( - 65 ) * + + ( col0 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4200
SELECT DISTINCT col2 / + col1 * CAST ( NULL AS REAL ) + col1 + + ( - 65 ) * + + ( col0 ) FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 65 col1 FROM tab1 AS cor0
----
-65
-65
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-4202
SELECT ALL COUNT( * ) - - + COUNT( * ) FROM tab2, tab1 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-4202
SELECT ALL COUNT ( * ) - - + COUNT ( * ) FROM tab2, tab1 AS cor0
----
18

query II rowsort
SELECT - ( - 83 ), + col1 FROM tab1
----
83
14
83
47
83
5

query II rowsort
SELECT col1 * + 48 AS col0, + col2 AS col0 FROM tab0
----
1008
10
3888
47
48
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4205
SELECT ALL - col0 * - CAST( NULL AS SIGNED ) AS col2, - 64 AS col1 FROM tab1
----
NULL
-64
NULL
-64
NULL
-64

skipif mysql # not compatible
query II rowsort label-4205
SELECT ALL - col0 * - CAST ( NULL AS INTEGER ) AS col2, - 64 AS col1 FROM tab1
----
NULL
-64
NULL
-64
NULL
-64

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 47 * 38 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4207
SELECT DISTINCT COUNT( ALL + + col2 ) DIV COUNT( * ) AS col1 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-4207
SELECT DISTINCT COUNT ( ALL + + col2 ) / COUNT ( * ) AS col1 FROM tab2
----
1

query II rowsort
SELECT DISTINCT + col2 * + - col2 AS col2, + 22 * + col0 FROM tab0
----
-100
1914
-2209
330
-9801
2134

onlyif mysql # DIV for integer division: 
query I rowsort label-4209
SELECT ALL col2 DIV - - 19 FROM tab2
----
1
2
3

skipif mysql # not compatible
query I rowsort label-4209
SELECT ALL col2 / - - 19 FROM tab2
----
1
2
3

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE - col2 * - + col2 * - - 85 < 80
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4211
SELECT ALL + - 44 + - + 28 AS col1, + MIN( DISTINCT - col2 ) AS col2 FROM tab2 AS cor0
----
-72
-58

skipif mysql # not compatible
query II rowsort label-4211
SELECT ALL + - 44 + - + 28 AS col1, + MIN ( DISTINCT - col2 ) AS col2 FROM tab2 AS cor0
----
-72
-58

query I rowsort
SELECT DISTINCT - 88 FROM tab1 WHERE NOT - ( + - col0 ) * col0 IS NULL
----
-88

query I rowsort
SELECT 55 * + col2 AS col1 FROM tab2
----
1265
2200
3190

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - - col0 * col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4215
SELECT COUNT( * ) + - 91 FROM tab0
----
-88

skipif mysql # not compatible
query I rowsort label-4215
SELECT COUNT ( * ) + - 91 FROM tab0
----
-88

query I rowsort
SELECT ALL col1 + 49 AS col1 FROM tab1
----
54
63
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4217
SELECT ALL COUNT( + 46 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4217
SELECT ALL COUNT ( + 46 ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4218
SELECT DISTINCT 6 + MIN( ALL + col1 ) AS col2 FROM tab0 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-4218
SELECT DISTINCT 6 + MIN ( ALL + col1 ) AS col2 FROM tab0 AS cor0
----
7

query I rowsort
SELECT DISTINCT - 8 * + col2 + - ( - ( - col0 ) ) FROM tab0 cor0
----
-167
-391
-889

query I rowsort
SELECT DISTINCT - col2 * col1 * + - col2 + col2 AS col2 FROM tab2 cor0
----
123240
225446
27002

query I rowsort
SELECT ALL + 54 + - ( col1 ) FROM tab2 AS cor0
----
-13
-23
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4222
SELECT DISTINCT 59 + SUM( - + col0 ) FROM tab1 AS cor0
----
-168

skipif mysql # not compatible
query I rowsort label-4222
SELECT DISTINCT 59 + SUM ( - + col0 ) FROM tab1 AS cor0
----
-168

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 - + + 54 + col0 col0 FROM tab1 AS cor0
----
11
36
84

query I rowsort
SELECT ALL + col1 + - 63 - + col2 * + + col2 FROM tab0 AS cor0
----
-142
-2191
-9863

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4225
SELECT DISTINCT - 59 + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-4225
SELECT DISTINCT - 59 + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col1 BETWEEN NULL AND col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 24 col2 FROM tab2
----
24

query III rowsort
SELECT * FROM tab1 WHERE + + col2 * - col0 <= - col1 * + + ( - - col0 ) + + - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col0 * - 28 * col0 FROM tab2
----
-114688
-157500
-59248

query I rowsort
SELECT ALL ( - col1 ) - + col2 AS col1 FROM tab1
----
-110
-115
-64

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4231
SELECT MAX( + CAST( NULL AS DECIMAL ) ), + 88 AS col0 FROM tab0
----
NULL
88

skipif mysql # not compatible
query II rowsort label-4231
SELECT MAX ( + CAST ( NULL AS REAL ) ), + 88 AS col0 FROM tab0
----
NULL
88

query I rowsort
SELECT ALL 50 + - - col2 FROM tab2
----
108
73
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4233
SELECT ( - ( + CAST( - + AVG ( + col1 ) AS SIGNED ) ) ) / - COUNT( * ) + + 89 AS col0 FROM tab2 WHERE NULL NOT BETWEEN - col1 AND 6
----
NULL

skipif mysql # not compatible
query I rowsort label-4233
SELECT ( - ( + CAST ( - + AVG ( + col1 ) AS INTEGER ) ) ) / - COUNT ( * ) + + 89 AS col0 FROM tab2 WHERE NULL NOT BETWEEN - col1 AND 6
----
NULL

query I rowsort
SELECT DISTINCT ( - ( + + col1 ) ) FROM tab0
----
-1
-21
-81

query I rowsort
SELECT ALL - 94 + 68 + col0 AS col0 FROM tab0 cor0
----
-11
61
71

onlyif mysql # aggregate syntax: 
query I rowsort label-4236
SELECT ALL + 44 + COUNT( - col2 ) AS col1 FROM tab0 cor0
----
47

skipif mysql # not compatible
query I rowsort label-4236
SELECT ALL + 44 + COUNT ( - col2 ) AS col1 FROM tab0 cor0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4237
SELECT - + SUM( DISTINCT + col1 ) FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-4237
SELECT - + SUM ( DISTINCT + col1 ) FROM tab2 AS cor0
----
-195

query I rowsort
SELECT + 22 * - col2 AS col1 FROM tab0
----
-1034
-2178
-220

query I rowsort
SELECT ALL ( - - ( + col2 ) ) FROM tab2
----
23
40
58

query I rowsort
SELECT 21 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

query I rowsort
SELECT DISTINCT - col2 * - - col2 AS col0 FROM tab2
----
-1600
-3364
-529

query I rowsort
SELECT ALL 57 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

onlyif mysql # aggregate syntax: 
query I rowsort label-4243
SELECT ALL - COUNT( * ) * - COUNT( * ) AS col2 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-4243
SELECT ALL - COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab1
----
9

query I rowsort
SELECT DISTINCT + + col2 * 5 AS col0 FROM tab2 AS cor0
----
115
200
290

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 77 col2 FROM tab1 AS cor0
----
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 77 col0 FROM tab1 AS cor0
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4247
SELECT - - ( - + CAST( + col0 AS SIGNED ) ) AS col2, col0 AS col1 FROM tab0 AS cor0
----
-15
15
-87
87
-97
97

skipif mysql # not compatible
query II rowsort label-4247
SELECT - - ( - + CAST ( + col0 AS INTEGER ) ) AS col2, col0 AS col1 FROM tab0 AS cor0
----
-15
15
-87
87
-97
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4248
SELECT DISTINCT - - 1 DIV + COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4248
SELECT DISTINCT - - 1 / + COUNT ( * ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT - 44 FROM tab0 AS cor0 WHERE NOT - col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - ( - col2 ) AS col0 FROM tab1 cor0 WHERE col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4251
SELECT ALL SUM( ALL + 21 ) * + COUNT( * ) FROM tab0
----
189

skipif mysql # not compatible
query I rowsort label-4251
SELECT ALL SUM ( ALL + 21 ) * + COUNT ( * ) FROM tab0
----
189

query III rowsort
SELECT * FROM tab0 WHERE NOT - 54 / + col0 IS NOT NULL
----

query I rowsort
SELECT ALL + - 95 + + + col0 FROM tab0 AS cor0
----
-8
-80
2

query I rowsort
SELECT - 1 * col0 + - + 85 + + col1 + + 78 AS col0 FROM tab1 AS cor0
----
-44
-51
-87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 + + 9, + col2 * 41 col2 FROM tab1 AS cor0
----
-50
2419
-59
2788
-87
3936

onlyif mysql # aggregate syntax: 
query I rowsort label-4256
SELECT DISTINCT ( + MIN( ALL - col1 ) ) AS col0 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-4256
SELECT DISTINCT ( + MIN ( ALL - col1 ) ) AS col0 FROM tab1 AS cor0
----
-47

query I rowsort
SELECT col2 + - - col2 AS col0 FROM tab2 AS cor0
----
116
46
80

query I rowsort
SELECT + - 43 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ab0c314d2b589ccedb9a875beeb1f86a

query I rowsort
SELECT + + 49 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55

query IIIIII rowsort
SELECT ALL * FROM tab0 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-4261
SELECT ALL + col2 + - 82 + col2 * - - CAST( NULL AS SIGNED ) * + col2 + col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4261
SELECT ALL + col2 + - 82 + col2 * - - CAST ( NULL AS INTEGER ) * + col2 + col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 + - 27 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) >= col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4263
SELECT SUM( ALL - col0 ) AS col2, 87 AS col2 FROM tab0 AS cor0
----
-199
87

skipif mysql # not compatible
query II rowsort label-4263
SELECT SUM ( ALL - col0 ) AS col2, 87 AS col2 FROM tab0 AS cor0
----
-199
87

query I rowsort
SELECT - 41 * - col0 FROM tab0 AS cor0
----
3567
3977
615

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4265
SELECT - ( + + CAST( col2 AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-4265
SELECT - ( + + CAST ( col2 AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
-10
-47
-99

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT + col2 * + - col0 BETWEEN NULL AND + col2
----

query II rowsort
SELECT ALL - col0 + - col1 AS col1, - col0 FROM tab1 AS cor0
----
-138
-91
-65
-51
-90
-85

query I rowsort
SELECT col0 * col2 - + 77 AS col0 FROM tab1 cor0
----
4819
4938
6111

onlyif mysql # DIV for integer division: 
query I rowsort label-4269
SELECT + 17 DIV - ( - 6 ) - - + col1 * col0 AS col0 FROM tab2 AS cor0
----
2348
4930
5027

skipif mysql # not compatible
query I rowsort label-4269
SELECT + 17 / - ( - 6 ) - - + col1 * col0 AS col0 FROM tab2 AS cor0
----
2348
4930
5027

onlyif mysql # aggregate syntax: 
query I rowsort label-4270
SELECT ALL COUNT( * ) - - MIN( - col2 ) AS col0 FROM tab0
----
-96

skipif mysql # not compatible
query I rowsort label-4270
SELECT ALL COUNT ( * ) - - MIN ( - col2 ) AS col0 FROM tab0
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4271
SELECT + col2 + + col1 * - + col1 * CAST( col2 AS SIGNED ) AS col2 FROM tab1
----
-1416
-150144
-18720

skipif mysql # not compatible
query I rowsort label-4271
SELECT + col2 + + col1 * - + col1 * CAST ( col2 AS INTEGER ) AS col2 FROM tab1
----
-1416
-150144
-18720

query I rowsort
SELECT DISTINCT + 75 - - col1 AS col2 FROM tab1
----
122
80
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 AS col0, + col0 col0 FROM tab1
----
14
51
47
91
5
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4274
SELECT ALL + 36 + - - COUNT( * ) FROM tab0
----
39

skipif mysql # not compatible
query I rowsort label-4274
SELECT ALL + 36 + - - COUNT ( * ) FROM tab0
----
39

query I rowsort
SELECT col2 * - + col0 FROM tab1
----
-4896
-5015
-6188

query I rowsort
SELECT DISTINCT col1 * + 46 AS col1 FROM tab0
----
3726
46
966

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NOT ( NULL ) = NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4278
SELECT DISTINCT + + MIN( - 36 ) AS col2 FROM tab1 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-4278
SELECT DISTINCT + + MIN ( - 36 ) AS col2 FROM tab1 AS cor0
----
-36

query III rowsort
SELECT ALL * FROM tab2 WHERE + 33 IN ( - 60 / - col2 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4281
SELECT * FROM tab1 WHERE col2 * col2 NOT BETWEEN NULL AND ( CAST( - 8 AS SIGNED ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4281
SELECT * FROM tab1 WHERE col2 * col2 NOT BETWEEN NULL AND ( CAST ( - 8 AS INTEGER ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col0 + - 69 FROM tab1
----
-18
16
22

query I rowsort
SELECT ALL 24 FROM tab1 WHERE ( - 78 / col0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4284
SELECT COUNT( * ) AS col0 FROM tab1 WHERE + 1 NOT BETWEEN ( + 89 ) AND - 88
----
3

skipif mysql # not compatible
query I rowsort label-4284
SELECT COUNT ( * ) AS col0 FROM tab1 WHERE + 1 NOT BETWEEN ( + 89 ) AND - 88
----
3

query I rowsort
SELECT 22 + + col1 AS col0 FROM tab0
----
103
23
43

onlyif mysql # DIV for integer division: 
query I rowsort label-4286
SELECT col1 + + col2 DIV - col1 FROM tab1
----
-6
46
8

skipif mysql # not compatible
query I rowsort label-4286
SELECT col1 + + col2 / - col1 FROM tab1
----
-6
46
8

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - col0 ) NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT col0 + ( ( 81 ) ) * + col1 AS col1 FROM tab2
----
4177
5502
6301

query I rowsort
SELECT ALL - col1 + - 67 AS col2 FROM tab1
----
-114
-72
-81

query I rowsort
SELECT col1 + + col2 * + col1 FROM tab0
----
100
231
3888

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col1 * - 88 ) IN ( col1 * + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col1 FROM tab2 WHERE NOT ( col1 * col0 ) IN ( - 93 )
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4293
SELECT DISTINCT + CAST( 2 AS SIGNED ) FROM tab1
----
2

skipif mysql # not compatible
query I rowsort label-4293
SELECT DISTINCT + CAST ( 2 AS INTEGER ) FROM tab1
----
2

query I rowsort
SELECT DISTINCT - col2 FROM tab2 WHERE NOT - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4295
SELECT + MAX( DISTINCT col1 ) AS col2 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-4295
SELECT + MAX ( DISTINCT col1 ) AS col2 FROM tab2
----
77

query I rowsort
SELECT - col1 + + 32 FROM tab2 WHERE + col2 NOT IN ( col2 * ( + col1 ) )
----
-19
-35
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-4297
SELECT DISTINCT ( COUNT( * ) ) + - COUNT( * ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4297
SELECT DISTINCT ( COUNT ( * ) ) + - COUNT ( * ) FROM tab1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4298
SELECT ( COUNT( ALL - CAST( NULL AS SIGNED ) ) ) * - MIN( col2 DIV - col1 ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4298
SELECT ( COUNT ( ALL - CAST ( NULL AS INTEGER ) ) ) * - MIN ( col2 / - col1 ) AS col1 FROM tab2
----
0

query I rowsort
SELECT col1 * - 62 FROM tab0
----
-1302
-5022
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-4300
SELECT col0 + + col0 DIV col0 FROM tab0
----
16
88
98

skipif mysql # not compatible
query I rowsort label-4300
SELECT col0 + + col0 / col0 FROM tab0
----
16
88
98

query I rowsort
SELECT ALL ( 68 ) AS col1 FROM tab1
----
68
68
68

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col1 BETWEEN ( 57 + col0 ) AND col2
----

query I rowsort
SELECT DISTINCT 25 + + 6 AS col1 FROM tab0
----
31

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL > 68 / + 46
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 70 - + 83 col1 FROM tab2
----
-153
-153
-153

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4306
SELECT DISTINCT + ( CAST( NULL AS SIGNED ) ) * - COUNT( DISTINCT + col1 + col2 * col0 ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4306
SELECT DISTINCT + ( CAST ( NULL AS INTEGER ) ) * - COUNT ( DISTINCT + col1 + col2 * col0 ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT ALL 38 + + col2 FROM tab0 AS cor0
----
137
48
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4308
SELECT MIN( ALL 44 ) - + 41 AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4308
SELECT MIN ( ALL 44 ) - + 41 AS col0 FROM tab2
----
3

query I rowsort
SELECT DISTINCT - 57 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2
----
-57

query I rowsort
SELECT col0 + - col1 * + col2 AS col1 FROM tab0
----
-123
-2
-3792

query I rowsort
SELECT - ( + 26 ) + 37 * - col0 FROM tab2
----
-1728
-2394
-2801

onlyif mysql # aggregate syntax: 
query I rowsort label-4312
SELECT DISTINCT + MAX( DISTINCT 7 ) FROM tab1
----
7

skipif mysql # not compatible
query I rowsort label-4312
SELECT DISTINCT + MAX ( DISTINCT 7 ) FROM tab1
----
7

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( - col1 * col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col1 + - 94 AS col0 FROM tab1 cor0
----
-47
-80
-89

query I rowsort
SELECT DISTINCT 94 + ( + col1 ) AS col2 FROM tab1 AS cor0
----
108
141
99

query I rowsort
SELECT DISTINCT - - 42 + - col1 FROM tab0 AS cor0
----
-39
21
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4317
SELECT + MIN( ALL 12 ) AS col0 FROM tab0 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-4317
SELECT + MIN ( ALL 12 ) AS col0 FROM tab0 AS cor0
----
12

query I rowsort
SELECT ALL - col1 - + 86 * 60 FROM tab1
----
-5165
-5174
-5207

query I rowsort
SELECT DISTINCT 56 - + + ( - col2 ) FROM tab2
----
114
79
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4320
SELECT DISTINCT + MAX( + - col2 ) FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-4320
SELECT DISTINCT + MAX ( + - col2 ) FROM tab1
----
-59

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4321
SELECT ALL + ( - + CAST( NULL AS DECIMAL ) ) / - 50 - + 57 * COUNT( col2 / + col0 ) col2 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4321
SELECT ALL + ( - + CAST ( NULL AS REAL ) ) / - 50 - + 57 * COUNT ( col2 / + col0 ) col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4322
SELECT DISTINCT ( - - MAX( - col2 ) ) AS col2 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-4322
SELECT DISTINCT ( - - MAX ( - col2 ) ) AS col2 FROM tab0
----
-10

query III rowsort
SELECT * FROM tab2 WHERE NOT ( 62 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4324
SELECT + SUM( - ( col2 ) ) col0 FROM tab0
----
-156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4324
SELECT + SUM ( - ( col2 ) ) col0 FROM tab0
----
-156

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - col0 ) NOT BETWEEN NULL AND ( col0 * - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4326
SELECT - CAST( NULL AS SIGNED ) AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4326
SELECT - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4327
SELECT DISTINCT - COUNT( + 51 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-4327
SELECT DISTINCT - COUNT ( + 51 ) FROM tab2
----
-3

query I rowsort
SELECT DISTINCT ( + 27 ) FROM tab1
----
27

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( 68 * + col2 ) >= NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 82 BETWEEN ( - 15 ) AND ( 22 + 98 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 58 * - ( + col0 ) + 1 col0 FROM tab1 cor0 WHERE NOT ( 14 / + 20 ) IS NOT NULL
----

query I rowsort
SELECT - 59 * + col1 * col2 FROM tab0 cor0
----
-12390
-224613
-5841

query II rowsort
SELECT col0, 46 * 55 AS col0 FROM tab2
----
46
2530
64
2530
75
2530

query IIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

query I rowsort
SELECT DISTINCT - 69 * + col1 FROM tab1 WHERE col0 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4336
SELECT - 93 - - COUNT( * ) FROM tab1, tab1 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-4336
SELECT - 93 - - COUNT ( * ) FROM tab1, tab1 AS cor0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-4337
SELECT ALL MAX( - col0 ) AS col2 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-4337
SELECT ALL MAX ( - col0 ) AS col2 FROM tab1
----
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col0 + + col2 * + ( - col0 ) col1 FROM tab2 WHERE NOT NULL NOT BETWEEN + col0 AND + col1
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( NULL ) > 0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4340
SELECT ALL MAX( + - col1 ) AS col1 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-4340
SELECT ALL MAX ( + - col1 ) AS col1 FROM tab1 AS cor0
----
-5

query I rowsort
SELECT DISTINCT 15 * - ( - + col2 ) * - col1 AS col0 FROM tab0 AS cor0
----
-1485
-3150
-57105

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4342
SELECT + CAST( - 89 AS SIGNED ) FROM tab1 AS cor0 WHERE NOT - col2 / + col0 * 71 + + col2 <= NULL
----

skipif mysql # not compatible
query I rowsort label-4342
SELECT + CAST ( - 89 AS INTEGER ) FROM tab1 AS cor0 WHERE NOT - col2 / + col0 * 71 + + col2 <= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4343
SELECT + 33 AS col2, COUNT( ALL - - col0 ) * MIN( - col1 ) AS col1 FROM tab0 AS cor0
----
33
-243

skipif mysql # not compatible
query II rowsort label-4343
SELECT + 33 AS col2, COUNT ( ALL - - col0 ) * MIN ( - col1 ) AS col1 FROM tab0 AS cor0
----
33
-243

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4344
SELECT 33 * ( - CAST( NULL AS DECIMAL ) ) * - SUM( DISTINCT CAST( NULL AS SIGNED ) ) + COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4344
SELECT 33 * ( - CAST ( NULL AS REAL ) ) * - SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) + COUNT ( * ) FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT ALL col0 AS col0, col0 FROM tab1 AS cor0
----
51
51
85
85
91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4346
SELECT - MAX( ALL col2 ) FROM tab0 WHERE + 72 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4346
SELECT - MAX ( ALL col2 ) FROM tab0 WHERE + 72 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4347
SELECT ALL SUM( ALL - col0 ) FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-4347
SELECT ALL SUM ( ALL - col0 ) FROM tab2
----
-185

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4348
SELECT * FROM tab0 WHERE + 68 - + col0 * + CAST( ( - 25 ) * - col0 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-4348
SELECT * FROM tab0 WHERE + 68 - + col0 * + CAST ( ( - 25 ) * - col0 AS INTEGER ) IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NULL <> + 70
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4350
SELECT - col2 + - + col2, + 86 DIV + col1 col1 FROM tab1 AS cor0
----
-118
17
-136
1
-192
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4350
SELECT - col2 + - + col2, + 86 / + col1 col1 FROM tab1 AS cor0
----
-118
17
-136
1
-192
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4351
SELECT DISTINCT + 23 DIV + COUNT( * ) AS col2, 81 * COUNT( * ) AS col1 FROM tab2 AS cor0
----
7
243

skipif mysql # not compatible
query II rowsort label-4351
SELECT DISTINCT + 23 / + COUNT ( * ) AS col2, 81 * COUNT ( * ) AS col1 FROM tab2 AS cor0
----
7
243

onlyif mysql # aggregate syntax: 
query I rowsort label-4352
SELECT - 54 * COUNT( * ) AS col1 FROM tab0
----
-162

skipif mysql # not compatible
query I rowsort label-4352
SELECT - 54 * COUNT ( * ) AS col1 FROM tab0
----
-162

query II rowsort
SELECT col2 - - col1 * col1, col1 FROM tab1
----
2277
47
292
14
84
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4354
SELECT DISTINCT - AVG ( CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4354
SELECT DISTINCT - AVG ( CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4355
SELECT DISTINCT + COUNT( * ) + + CAST( NULL AS SIGNED ) col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4355
SELECT DISTINCT + COUNT ( * ) + + CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4356
SELECT 39 + + + CAST( NULL AS SIGNED ) / 74 FROM tab1 cor0 WHERE NULL <> + ( - 18 )
----

skipif mysql # not compatible
query I rowsort label-4356
SELECT 39 + + + CAST ( NULL AS INTEGER ) / 74 FROM tab1 cor0 WHERE NULL <> + ( - 18 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 32 - + col2 col2 FROM tab2 AS cor0
----
-55
-72
-90

query I rowsort
SELECT + + col1 - + col1 + - 95 FROM tab2 AS cor0
----
-95
-95
-95

query I rowsort
SELECT DISTINCT + 8 - + + col2 + + col0 FROM tab1 AS cor0
----
-37
31
34

query I rowsort
SELECT - col0 AS col1 FROM tab2 AS cor0 WHERE NOT + 75 * + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4361
SELECT ALL COUNT( * ) DIV ( + 60 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4361
SELECT ALL COUNT ( * ) / ( + 60 ) FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4362
SELECT ( - COUNT( * ) ) FROM tab0, tab2 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4362
SELECT ( - COUNT ( * ) ) FROM tab0, tab2 cor0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4363
SELECT ALL CAST( + col2 AS SIGNED ) AS col1, - col0 FROM tab2
----
23
-46
40
-64
58
-75

skipif mysql # not compatible
query II rowsort label-4363
SELECT ALL CAST ( + col2 AS INTEGER ) AS col1, - col0 FROM tab2
----
23
-46
40
-64
58
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4364
SELECT ALL col1 FROM tab2 WHERE + CAST( + col2 AS SIGNED ) NOT BETWEEN NULL AND - 0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-4364
SELECT ALL col1 FROM tab2 WHERE + CAST ( + col2 AS INTEGER ) NOT BETWEEN NULL AND - 0
----
51
67
77

query I rowsort
SELECT DISTINCT - 89 AS col1 FROM tab1, tab1 AS cor0
----
-89

query I rowsort
SELECT + - col1 AS col1 FROM tab2 WHERE NOT + 9 IS NULL
----
-51
-67
-77

query I rowsort
SELECT + + col2 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - + col0 col0 FROM tab0
----
-705
-870
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-4369
SELECT ALL + MAX( DISTINCT 49 ) FROM tab1 cor0
----
49

skipif mysql # not compatible
query I rowsort label-4369
SELECT ALL + MAX ( DISTINCT 49 ) FROM tab1 cor0
----
49

query I rowsort
SELECT col2 * - 1 FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4371
SELECT DISTINCT COUNT( * ) + + ( - COUNT( * ) ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4371
SELECT DISTINCT COUNT ( * ) + + ( - COUNT ( * ) ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4372
SELECT ALL ( COUNT( * ) ) AS col2 FROM tab1 WHERE + col0 * - col0 - 7 NOT IN ( col2 )
----
3

skipif mysql # not compatible
query I rowsort label-4372
SELECT ALL ( COUNT ( * ) ) AS col2 FROM tab1 WHERE + col0 * - col0 - 7 NOT IN ( col2 )
----
3

query III rowsort
SELECT ALL * FROM tab2 WHERE - - 35 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 15 IS NOT NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query I rowsort
SELECT DISTINCT - col2 FROM tab2 WHERE NOT 77 + - 72 - - col0 + col0 / col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4376
SELECT DISTINCT + MIN( DISTINCT + 13 ) + + COUNT( * ) + - - COUNT( col2 ) FROM tab0 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-4376
SELECT DISTINCT + MIN ( DISTINCT + 13 ) + + COUNT ( * ) + - - COUNT ( col2 ) FROM tab0 AS cor0
----
19

query I rowsort
SELECT DISTINCT - col1 * - col0 + col2 + - - col0 * - col1 * + col1 AS col0 FROM tab2 AS cor0
----
-117277
-331592
-374488

onlyif mysql # aggregate syntax: 
query I rowsort label-4378
SELECT - COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( + col1 ) AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-4378
SELECT - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( + col1 ) AND ( NULL )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 30 col0 FROM tab1 cor0
----
30
30
30

query I rowsort
SELECT DISTINCT col0 + + - col1 FROM tab1 AS cor0
----
37
44
80

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - col0 IN ( + - col1 * - col2 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4382
SELECT DISTINCT - CAST( 40 AS SIGNED ) * + 11 - + + col2 AS col1 FROM tab2
----
-463
-480
-498

skipif mysql # not compatible
query I rowsort label-4382
SELECT DISTINCT - CAST ( 40 AS INTEGER ) * + 11 - + + col2 AS col1 FROM tab2
----
-463
-480
-498

query I rowsort
SELECT - 73 * + 43 + + 96 AS col2 FROM tab2
----
-3043
-3043
-3043

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4384
SELECT ALL CAST( COUNT( * ) AS SIGNED ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4384
SELECT ALL CAST ( COUNT ( * ) AS INTEGER ) AS col1 FROM tab2
----
3

query I rowsort
SELECT col2 + 85 FROM tab1
----
144
153
181

query I rowsort
SELECT col1 FROM tab0 WHERE + col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 16 col0, + col0 AS col2 FROM tab2
----
16
46
16
64
16
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col1 ) col2 FROM tab0
----
1
21
81

query I rowsort
SELECT DISTINCT 91 + - 6 FROM tab1
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4390
SELECT DISTINCT SUM( - - col2 ) FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-4390
SELECT DISTINCT SUM ( - - col2 ) FROM tab2
----
121

query III rowsort
SELECT ALL * FROM tab1 WHERE + col2 * - col2 * + - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4392
SELECT col1 col1, - ( + + CAST( NULL AS SIGNED ) ) FROM tab1
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4392
SELECT col1 col1, - ( + + CAST ( NULL AS INTEGER ) ) FROM tab1
----
14
NULL
47
NULL
5
NULL

query I rowsort
SELECT DISTINCT + col0 + + + col0 FROM tab2 AS cor0
----
128
150
92

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE - 62 >= NULL
----

query I rowsort
SELECT ALL - ( - col0 ) - - 45 FROM tab1
----
130
136
96

query I rowsort
SELECT DISTINCT + 60 AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab1 cor1 ) WHERE NOT NULL = NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4397
SELECT ALL MAX( DISTINCT 10 ), 56 AS col0 FROM tab2 cor0
----
10
56

skipif mysql # not compatible
query II rowsort label-4397
SELECT ALL MAX ( DISTINCT 10 ), 56 AS col0 FROM tab2 cor0
----
10
56

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 + - col1 / - col0 NOT BETWEEN - + 17 + ( - 68 ) * - col1 AND + col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4399
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * - col1 + + + 66 AS col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4399
SELECT DISTINCT - CAST ( NULL AS REAL ) * - col1 + + + 66 AS col0 FROM tab1 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4400
SELECT - - COUNT( * ) * + - ( - 44 ) AS col0 FROM tab2 AS cor0
----
132

skipif mysql # not compatible
query I rowsort label-4400
SELECT - - COUNT ( * ) * + - ( - 44 ) AS col0 FROM tab2 AS cor0
----
132

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + 36 NOT BETWEEN - col2 * + 48 AND NULL
----

query I rowsort
SELECT ALL 88 * + 22 * col0 FROM tab0 AS cor0
----
168432
187792
29040

query I rowsort
SELECT DISTINCT + AVG ( + col1 ) AS col0 FROM tab0 AS cor0 WHERE NOT col2 + - col1 IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4404
SELECT DISTINCT + 2 DIV + 15 + - col2 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-4404
SELECT DISTINCT + 2 / + 15 + - col2 FROM tab2 AS cor0
----
-23
-40
-58

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 + + 82 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4406
SELECT + + SUM( DISTINCT + col1 ) FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-4406
SELECT + + SUM ( DISTINCT + col1 ) FROM tab1 AS cor0
----
66

query III rowsort
SELECT ALL * FROM tab0 WHERE - - 55 NOT BETWEEN 92 AND + - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 64 * - ( + - col1 ) * + col1 AS col2 FROM tab1
----
12544
141376
1600

query I rowsort
SELECT DISTINCT - - col1 AS col1 FROM tab1 WHERE NULL <> NULL
----

query I rowsort
SELECT ALL + col1 * + ( + - col2 ) AS col2 FROM tab1
----
-1344
-295
-3196

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL = + - col1
----

query I rowsort
SELECT ALL + + col2 * - + col1 AS col2 FROM tab0 cor0
----
-210
-3807
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4413
SELECT DISTINCT + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT ( ( NULL ) >= col1 )
----

skipif mysql # not compatible
query I rowsort label-4413
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT ( ( NULL ) >= col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 * - + 52 * - + 88 - col0 + - - col0 col1, + 75 FROM tab1 cor0
----
215072
75
22880
75
64064
75

query I rowsort
SELECT + - 4 AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab0 cor1 )
----
9 values hashing to 5784540a5af6ca2be84399d314acd2fd

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-4416
SELECT * FROM tab0 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT CAST( NULL AS SIGNED ) <> NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-4416
SELECT * FROM tab0 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT CAST ( NULL AS INTEGER ) <> NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col0 + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col1 + + - col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT + 79 * col1 FROM tab1 AS cor0
----
1106
3713
395

query II rowsort
SELECT - - col1 AS col2, col0 FROM tab0 AS cor0
----
1
97
21
87
81
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4421
SELECT ALL MIN( 17 ) + - 60 FROM tab2 AS cor0
----
-43

skipif mysql # not compatible
query I rowsort label-4421
SELECT ALL MIN ( 17 ) + - 60 FROM tab2 AS cor0
----
-43

query I rowsort
SELECT DISTINCT + ( col0 ) + + 97 FROM tab1 AS cor0
----
148
182
188

onlyif mysql # DIV for integer division: 
query I rowsort label-4423
SELECT + + col1 * - 45 - + col2 DIV - + 53 AS col2 FROM tab0 AS cor0
----
-3645
-44
-945

skipif mysql # not compatible
query I rowsort label-4423
SELECT + + col1 * - 45 - + col2 / - + 53 AS col2 FROM tab0 AS cor0
----
-3645
-44
-945

query I rowsort
SELECT - - col2 + - - col1 AS col2 FROM tab0 WHERE - col1 = 27 * + col0 + - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4425
SELECT * FROM tab0 WHERE ( + + 19 ) NOT BETWEEN - 11 * - + col0 + - + col0 AND ( CAST( + - 10 AS SIGNED ) / col0 + - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4425
SELECT * FROM tab0 WHERE ( + + 19 ) NOT BETWEEN - 11 * - + col0 + - + col0 AND ( CAST ( + - 10 AS INTEGER ) / col0 + - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4426
SELECT DISTINCT COUNT( - col2 ) FROM tab1 WHERE NOT col0 * + 41 / + col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4426
SELECT DISTINCT COUNT ( - col2 ) FROM tab1 WHERE NOT col0 * + 41 / + col1 IS NOT NULL
----
0

query I rowsort
SELECT + col0 + - + col2 FROM tab2
----
17
23
24

query I rowsort
SELECT + ( - col2 ) + + 24 AS col1 FROM tab1 cor0
----
-35
-44
-72

query I rowsort
SELECT DISTINCT col1 + - - 41 FROM tab0 AS cor0
----
122
42
62

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col1 * - col0 * + 73 IS NOT NULL AND 11 / + col2 * + col2 * col0 IN ( - 91, + 11 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4431
SELECT SUM( 32 ) AS col1 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-4431
SELECT SUM ( 32 ) AS col1 FROM tab1
----
96

query I rowsort
SELECT ( + + col2 ) FROM tab2 cor0
----
23
40
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - 7 * 63 + - col2 + + 33, 41 + + col1 col1 FROM tab2 AS cor0
----
-431
92
-448
118
-466
108

onlyif mysql # aggregate syntax: 
query I rowsort label-4434
SELECT ALL ( - COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4434
SELECT ALL ( - COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT ALL + 14 FROM tab0 AS cor0 WHERE + 94 = col2 - + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4436
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT + + CAST( NULL AS SIGNED ) IS NOT NULL )
----

skipif mysql # not compatible
query III rowsort label-4436
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT + + CAST ( NULL AS INTEGER ) IS NOT NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4437
SELECT 52 DIV col1 * col0 FROM tab2
----
0
0
46

skipif mysql # not compatible
query I rowsort label-4437
SELECT 52 / col1 * col0 FROM tab2
----
0
0
46

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - col1 + - col0 IS NULL
----

query II rowsort
SELECT DISTINCT col2 * - + col2, + 21 AS col0 FROM tab0
----
-100
21
-2209
21
-9801
21

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL >= + 39 - + + col0
----

query I rowsort
SELECT DISTINCT + col2 * - ( + col1 ) FROM tab2
----
-1173
-3080
-3886

query I rowsort
SELECT DISTINCT 79 * + 91 * + col0 FROM tab2
----
330694
460096
539175

query I rowsort
SELECT + 27 * col2 AS col1 FROM tab0
----
1269
2673
270

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4444
SELECT DISTINCT + CAST( NULL AS SIGNED ) / col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4444
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / col0 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4445
SELECT ALL CAST( NULL AS SIGNED ) * ( - col0 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4445
SELECT ALL CAST ( NULL AS INTEGER ) * ( - col0 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4446
SELECT ALL 82 + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4446
SELECT ALL 82 + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4447
SELECT col0 DIV + 84 col1 FROM tab0
----
0
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4447
SELECT col0 / + 84 col1 FROM tab0
----
0
1
1

query I rowsort
SELECT - ( - + 73 ) FROM tab2, tab0 AS cor0
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

query I rowsort
SELECT - 33 + col1 * + - col1 FROM tab2
----
-2634
-4522
-5962

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) <> - - col0
----

query I rowsort
SELECT ALL - + ( - col2 ) + - col1 FROM tab2 AS cor0
----
-28
-37
-9

query I rowsort
SELECT ALL - col2 * - 17 * col1 AS col2 FROM tab1
----
22848
5015
54332

query I rowsort
SELECT + col0 * - - col2 * - 61 AS col2 FROM tab1
----
-298656
-305915
-377468

onlyif mysql # DIV for integer division: 
query I rowsort label-4454
SELECT 94 DIV + 6 AS col0 FROM tab2
----
15
15
15

skipif mysql # not compatible
query I rowsort label-4454
SELECT 94 / + 6 AS col0 FROM tab2
----
15
15
15

query I rowsort
SELECT DISTINCT ( + 68 ) AS col2 FROM tab0
----
68

onlyif mysql # aggregate syntax: 
query II rowsort label-4456
SELECT COUNT( * ), + 11 AS col1 FROM tab0
----
3
11

skipif mysql # not compatible
query II rowsort label-4456
SELECT COUNT ( * ), + 11 AS col1 FROM tab0
----
3
11

query II rowsort
SELECT + 14, col0 + col2 AS col0 FROM tab0
----
14
196
14
62
14
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4458
SELECT - CAST( + col2 AS SIGNED ) + - ( + ( + + 30 ) ) * + ( - + CAST( NULL AS SIGNED ) ) AS col1, col2 AS col1 FROM tab0 WHERE - col2 - col0 IS NULL
----

skipif mysql # not compatible
query II rowsort label-4458
SELECT - CAST ( + col2 AS INTEGER ) + - ( + ( + + 30 ) ) * + ( - + CAST ( NULL AS INTEGER ) ) AS col1, col2 AS col1 FROM tab0 WHERE - col2 - col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4459
SELECT DISTINCT + CAST( - + col1 AS SIGNED ) + + col2 AS col0 FROM tab0
----
-11
-34
98

skipif mysql # not compatible
query I rowsort label-4459
SELECT DISTINCT + CAST ( - + col1 AS INTEGER ) + + col2 AS col0 FROM tab0
----
-11
-34
98

query I rowsort
SELECT - + 15 - + col1 FROM tab0 AS cor0
----
-16
-36
-96

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 * - col2 * - 45 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4462
SELECT - + 92 + col0 DIV - + 96 - - + col1 FROM tab1 AS cor0
----
-45
-78
-87

skipif mysql # not compatible
query I rowsort label-4462
SELECT - + 92 + col0 / - + 96 - - + col1 FROM tab1 AS cor0
----
-45
-78
-87

query I rowsort
SELECT DISTINCT + col1 FROM tab1 WHERE NULL BETWEEN NULL AND - 68 * - 56
----

query I rowsort
SELECT ALL + col1 + - - col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
110
115
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4465
SELECT COUNT( * ) * + COUNT( * ) col0 FROM tab2
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4465
SELECT COUNT ( * ) * + COUNT ( * ) col0 FROM tab2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4466
SELECT ALL - COUNT( * ) FROM tab1 AS cor0 WHERE NOT - 72 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4466
SELECT ALL - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT - 72 IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4467
SELECT DISTINCT + + MIN( col2 ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-4467
SELECT DISTINCT + + MIN ( col2 ) FROM tab0 AS cor0
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4468
SELECT + CAST( NULL AS SIGNED ) * + col0 AS col2, + ( - 18 ) AS col2 FROM tab2 AS cor0
----
NULL
-18
NULL
-18
NULL
-18

skipif mysql # not compatible
query II rowsort label-4468
SELECT + CAST ( NULL AS INTEGER ) * + col0 AS col2, + ( - 18 ) AS col2 FROM tab2 AS cor0
----
NULL
-18
NULL
-18
NULL
-18

query I rowsort
SELECT - col1 * - - 98 FROM tab1 AS cor0
----
-1372
-4606
-490

query I rowsort
SELECT - col2 * - 27 + 25 AS col2 FROM tab2 AS cor0
----
1105
1591
646

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4471
SELECT - CAST( - COUNT( * ) AS SIGNED ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4471
SELECT - CAST ( - COUNT ( * ) AS INTEGER ) FROM tab1 cor0
----
3

query I rowsort
SELECT + - col2 FROM tab0 WHERE NOT + 59 + + col0 IS NULL
----
-10
-47
-99

query I rowsort
SELECT ALL + col2 * - 9 FROM tab1
----
-531
-612
-864

onlyif mysql # DIV for integer division: 
query I rowsort label-4474
SELECT DISTINCT - col1 DIV ( 52 ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4474
SELECT DISTINCT - col1 / ( 52 ) AS col1 FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - 55 * 11 col1 FROM tab2 AS cor0
----
-528
-538
-554

onlyif mysql # aggregate syntax: 
query I rowsort label-4476
SELECT ALL + SUM( col0 ) AS col1 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-4476
SELECT ALL + SUM ( col0 ) AS col1 FROM tab1 AS cor0
----
227

query I rowsort
SELECT DISTINCT + col0 * - + col0 FROM tab2 AS cor0
----
-2116
-4096
-5625

onlyif mysql # DIV for integer division: 
query I rowsort label-4478
SELECT DISTINCT col2 DIV + 61 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-4478
SELECT DISTINCT col2 / + 61 FROM tab1
----
0
1

query I rowsort
SELECT ALL - col0 * + + 75 * - 40 FROM tab0
----
261000
291000
45000

onlyif mysql # DIV for integer division: 
query I rowsort label-4480
SELECT ( col1 ) DIV col1 AS col0 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4480
SELECT ( col1 ) / col1 AS col0 FROM tab2
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4481
SELECT + MAX( + 38 ) FROM tab1 cor0
----
38

skipif mysql # not compatible
query I rowsort label-4481
SELECT + MAX ( + 38 ) FROM tab1 cor0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-4482
SELECT DISTINCT - 82 + + SUM( + 58 ) FROM tab0 AS cor0
----
92

skipif mysql # not compatible
query I rowsort label-4482
SELECT DISTINCT - 82 + + SUM ( + 58 ) FROM tab0 AS cor0
----
92

query I rowsort
SELECT ALL + col0 + + col0 * + - 51 FROM tab2 AS cor0
----
-2300
-3200
-3750

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4484
SELECT ALL - CAST( NULL AS SIGNED ) + - - 13 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4484
SELECT ALL - CAST ( NULL AS INTEGER ) + - - 13 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT col2 - - col1 AS col2, - col1 FROM tab0 cor0
----
100
-1
128
-81
31
-21

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL IN ( - 6 / + - col1, 81, + - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4487
SELECT ALL + CAST( NULL AS SIGNED ) / + col0 * - col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4487
SELECT ALL + CAST ( NULL AS INTEGER ) / + col0 * - col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 - + 20 FROM tab1
----
-15
-6
27

query I rowsort
SELECT DISTINCT + ( - 46 ) FROM tab0
----
-46

query I rowsort
SELECT 43 + - col1 FROM tab2
----
-24
-34
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-4491
SELECT 26 DIV - + 23 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4491
SELECT 26 / - + 23 FROM tab2 AS cor0
----
-1
-1
-1

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL < NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE - col0 * + - 83 * + col2 * + - 55 IN ( + - col0, - col0 )
----

query II rowsort
SELECT + + col2, col2 * col1 FROM tab0 AS cor0
----
10
210
47
3807
99
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4495
SELECT DISTINCT - MIN( + 1 ) AS col2 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4495
SELECT DISTINCT - MIN ( + 1 ) AS col2 FROM tab1 AS cor0
----
-1

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + - col0 * + - col2 FROM tab1 AS cor0
----
4896
5015
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-4498
SELECT DISTINCT + COUNT( + col0 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4498
SELECT DISTINCT + COUNT ( + col0 ) AS col2 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4499
SELECT * FROM tab1 AS cor0 WHERE NOT 11 BETWEEN CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-4499
SELECT * FROM tab1 AS cor0 WHERE NOT 11 BETWEEN CAST ( NULL AS INTEGER ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col1 BETWEEN NULL AND + ( ( col1 ) )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - 49 * + - ( - - col0 ) AND NULL
----

query I rowsort
SELECT - col1 + + + col1 * - col0 FROM tab2
----
-2397
-5005
-5092

onlyif mysql # DIV for integer division: 
query I rowsort label-4503
SELECT - col1 DIV + col1 FROM tab1 WHERE NOT - - 38 DIV - col2 * - col2 + - col1 * col2 IS NULL
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4503
SELECT - col1 / + col1 FROM tab1 WHERE NOT - - 38 / - col2 * - col2 + - col1 * col2 IS NULL
----
-1
-1
-1

query II rowsort
SELECT DISTINCT col1 * + col0 * - col0, + col0 * + 47 + - col2 AS col1 FROM tab1
----
-36125
3936
-36414
2301
-389207
4209

query II rowsort
SELECT + ( + 98 ), + col0 AS col1 FROM tab0
----
98
15
98
87
98
97

query I rowsort
SELECT DISTINCT + 94 + - col0 AS col1 FROM tab2 AS cor0
----
19
30
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 + + col2 + + - col2 * + + col0 col1, + col2 col0 FROM tab1 AS cor0 WHERE ( NULL ) <= 10
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4509
SELECT ALL col0 * + CAST( 27 AS SIGNED ) col2 FROM tab2
----
1242
1728
2025

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4509
SELECT ALL col0 * + CAST ( 27 AS INTEGER ) col2 FROM tab2
----
1242
1728
2025

query III rowsort
SELECT * FROM tab2 WHERE 96 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL - 87 AS col1, + 43 * + col0 FROM tab0
----
-87
3741
-87
4171
-87
645

query I rowsort
SELECT col0 * - 44 + col0 FROM tab1 AS cor0
----
-2193
-3655
-3913

query I rowsort
SELECT DISTINCT - col1 * + 91 - + col1 - 43 + - 53 AS col1 FROM tab1 cor0
----
-1384
-4420
-556

query I rowsort
SELECT ALL col0 - - 30 + + col1 * + + col0 FROM tab2 AS cor0
----
2422
5022
5130

query I rowsort
SELECT + col2 + col2 * - - 71 FROM tab1 AS cor0
----
4248
4896
6912

onlyif mysql # aggregate syntax: 
query I rowsort label-4516
SELECT DISTINCT + SUM( ALL + col1 ) + 19 FROM tab0 cor0
----
122

skipif mysql # not compatible
query I rowsort label-4516
SELECT DISTINCT + SUM ( ALL + col1 ) + 19 FROM tab0 cor0
----
122

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <= col2
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 17 * - + col1 NOT IN ( - 16 * - + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4519
SELECT ALL CAST( NULL AS SIGNED ) + + + 26 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4519
SELECT ALL CAST ( NULL AS INTEGER ) + + + 26 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4520
SELECT 17 * + 8 * + COUNT( * ) FROM tab1
----
408

skipif mysql # not compatible
query I rowsort label-4520
SELECT 17 * + 8 * + COUNT ( * ) FROM tab1
----
408

query I rowsort
SELECT - 59 * + col1 * + - col2 AS col2 FROM tab0
----
12390
224613
5841

query I rowsort
SELECT col2 * - - col2 FROM tab1
----
3481
4624
9216

onlyif mysql # aggregate syntax: 
query I rowsort label-4523
SELECT ALL 59 * - - COUNT( * ) - + - COUNT( * ) AS col1 FROM tab1
----
180

skipif mysql # not compatible
query I rowsort label-4523
SELECT ALL 59 * - - COUNT ( * ) - + - COUNT ( * ) AS col1 FROM tab1
----
180

query I rowsort
SELECT DISTINCT col0 + + + col1 FROM tab0
----
108
96
98

onlyif mysql # DIV for integer division: 
query I rowsort label-4525
SELECT - ( 76 ) DIV - 5 FROM tab2 cor0
----
15
15
15

skipif mysql # not compatible
query I rowsort label-4525
SELECT - ( 76 ) / - 5 FROM tab2 cor0
----
15
15
15

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 + + ( col1 ) * col1 / - 88 * - + col0 NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT DISTINCT + 37, 43 AS col1 FROM tab1
----
37
43

query II rowsort
SELECT 84, col1 FROM tab1
----
84
14
84
47
84
5

query I rowsort
SELECT DISTINCT 42 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
42

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab1 AS cor0 WHERE NULL < col1
----

query I rowsort
SELECT DISTINCT - ( + ( + col2 ) ) FROM tab2 AS cor0 WHERE NOT ( NOT - + ( + + ( - ( - col2 ) ) ) = NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4532
SELECT CAST( 61 AS SIGNED ) FROM tab2 AS cor0
----
61
61
61

skipif mysql # not compatible
query I rowsort label-4532
SELECT CAST ( 61 AS INTEGER ) FROM tab2 AS cor0
----
61
61
61

onlyif mysql # DIV for integer division: 
query I rowsort label-4533
SELECT ALL + 47 DIV col2 + - col2 col1 FROM tab2 AS cor0
----
-21
-39
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4533
SELECT ALL + 47 / col2 + - col2 col1 FROM tab2 AS cor0
----
-21
-39
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4534
SELECT - MAX( DISTINCT + col1 ) AS col0 FROM tab0 cor0
----
-81

skipif mysql # not compatible
query I rowsort label-4534
SELECT - MAX ( DISTINCT + col1 ) AS col0 FROM tab0 cor0
----
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-4535
SELECT COUNT( * ), 19 AS col2 FROM tab1 AS cor0
----
3
19

skipif mysql # not compatible
query II rowsort label-4535
SELECT COUNT ( * ), 19 AS col2 FROM tab1 AS cor0
----
3
19

onlyif mysql # aggregate syntax: 
query I rowsort label-4536
SELECT ALL - + 52 * + + MIN( col1 ) + - - 69 FROM tab2 AS cor0
----
-2583

skipif mysql # not compatible
query I rowsort label-4536
SELECT ALL - + 52 * + + MIN ( col1 ) + - - 69 FROM tab2 AS cor0
----
-2583

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4537
SELECT ALL + CAST( + + col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-4537
SELECT ALL + CAST ( + + col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4538
SELECT DISTINCT + MAX( + 4 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4538
SELECT DISTINCT + MAX ( + 4 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL < NULL
----
NULL

query II rowsort
SELECT + 79 AS col1, + col1 * + + 77 * - - 15 FROM tab2 AS cor0
----
79
58905
79
77385
79
88935

query III rowsort
SELECT * FROM tab2 WHERE NOT - 57 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-4541
SELECT 57 DIV - col2 AS col1 FROM tab2
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-4541
SELECT 57 / - col2 AS col1 FROM tab2
----
-1
-2
0

query II rowsort
SELECT ALL col0 AS col0, col0 AS col0 FROM tab0
----
15
15
87
87
97
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4543
SELECT DISTINCT col1, - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-4543
SELECT DISTINCT col1, - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
1
NULL
21
NULL
81
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE - ( - col1 ) + + 22 * - col2 + + 77 - - col1 IN ( - - col0 )
----

query I rowsort
SELECT col2 + - + col0 FROM tab0
----
-77
2
32

onlyif mysql # aggregate syntax: 
query I rowsort label-4546
SELECT SUM( ALL + - col2 ) + + COUNT( ALL + + col0 ) AS col2 FROM tab0 cor0
----
-153

skipif mysql # not compatible
query I rowsort label-4546
SELECT SUM ( ALL + - col2 ) + + COUNT ( ALL + + col0 ) AS col2 FROM tab0 cor0
----
-153

onlyif mysql # aggregate syntax: 
query I rowsort label-4547
SELECT - + ( - 11 ) + - 62 * ( + COUNT( * ) ) AS col2 FROM tab2 cor0
----
-175

skipif mysql # not compatible
query I rowsort label-4547
SELECT - + ( - 11 ) + - 62 * ( + COUNT ( * ) ) AS col2 FROM tab2 cor0
----
-175

query I rowsort
SELECT - col1 * - 16 + + col1 AS col0 FROM tab0 AS cor0
----
1377
17
357

query I rowsort
SELECT DISTINCT - 27 AS col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
-27

query I rowsort
SELECT - col1 AS col2 FROM tab0 WHERE ( NOT ( NULL ) NOT BETWEEN ( - col1 ) + + 23 / - col2 * - col1 AND NULL )
----

query I rowsort
SELECT ALL - + 24 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc

query II rowsort
SELECT DISTINCT col1 * col1 AS col2, 79 * - 25 * - col2 AS col0 FROM tab1
----
196
189600
2209
134300
25
116525

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN NULL AND - + col1
----

query II rowsort
SELECT ALL + 42 + col2, col1 + - col2 AS col2 FROM tab2 AS cor0
----
100
9
65
28
82
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4555
SELECT DISTINCT + - CAST( + + 22 AS SIGNED ) - + 36 col0 FROM tab0 AS cor0
----
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4555
SELECT DISTINCT + - CAST ( + + 22 AS INTEGER ) - + 36 col0 FROM tab0 AS cor0
----
-58

query I rowsort
SELECT - 56 - + col0 + 80 * - - col2 + + 69 AS col1 FROM tab0 AS cor0
----
3758
726
7836

query II rowsort
SELECT ALL col2 + col0 + col1 AS col0, col1 FROM tab2 cor0
----
120
51
181
77
200
67

query II rowsort
SELECT DISTINCT - col0, + col2 * 50 AS col2 FROM tab0
----
-15
2350
-87
500
-97
4950

onlyif mysql # aggregate syntax: 
query II rowsort label-4559
SELECT 40 AS col0, + COUNT( * ) AS col0 FROM tab2
----
40
3

skipif mysql # not compatible
query II rowsort label-4559
SELECT 40 AS col0, + COUNT ( * ) AS col0 FROM tab2
----
40
3

onlyif mysql # DIV for integer division: 
query II rowsort label-4560
SELECT col2 AS col1, 31 DIV col0 + col2 AS col0 FROM tab0
----
10
10
47
49
99
99

skipif mysql # not compatible
query II rowsort label-4560
SELECT col2 AS col1, 31 / col0 + col2 AS col0 FROM tab0
----
10
10
47
49
99
99

query II rowsort
SELECT DISTINCT col2, col1 * + col2 FROM tab0
----
10
210
47
3807
99
99

query II rowsort
SELECT 57 AS col1, - col1 AS col0 FROM tab1
----
57
-14
57
-47
57
-5

query I rowsort
SELECT col2 * - 23 * - col0 * + col1 FROM tab2
----
1241034
4533760
6703350

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 * - 34 * + + col1 * + 34 col0 FROM tab0 AS cor0
----
114444
242760
4400892

onlyif mysql # DIV for integer division: 
query I rowsort label-4565
SELECT ALL - col0 DIV + 19 AS col2 FROM tab2 AS cor0
----
-2
-3
-3

skipif mysql # not compatible
query I rowsort label-4565
SELECT ALL - col0 / + 19 AS col2 FROM tab2 AS cor0
----
-2
-3
-3

query I rowsort
SELECT + col0 * - - col2 * - - col1 FROM tab0 AS cor0
----
18270
57105
9603

query I rowsort
SELECT ( - 45 ) + + - col1 FROM tab0 AS cor0
----
-126
-46
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4568
SELECT col2 + + + 85 * - ( CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4568
SELECT col2 + + + 85 * - ( CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4569
SELECT COUNT( * ) + 82 FROM tab2
----
85

skipif mysql # not compatible
query I rowsort label-4569
SELECT COUNT ( * ) + 82 FROM tab2
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4570
SELECT + + SUM( DISTINCT - + col0 ) AS col2 FROM tab0 WHERE + col1 NOT BETWEEN - ( + 36 ) + - 53 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4570
SELECT + + SUM ( DISTINCT - + col0 ) AS col2 FROM tab0 WHERE + col1 NOT BETWEEN - ( + 36 ) + - 53 AND NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4571
SELECT DISTINCT + col1 DIV + + 33 FROM tab2
----
1
2

skipif mysql # not compatible
query I rowsort label-4571
SELECT DISTINCT + col1 / + + 33 FROM tab2
----
1
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col0, - col2 AS col0 FROM tab2
----
23
-23
40
-40
58
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 13 col1 FROM tab1
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4574
SELECT ALL - MAX( DISTINCT col1 ) AS col0 FROM tab1 WHERE col2 NOT BETWEEN - 27 + col1 / col1 + + 28 * + col0 / col1 AND - 87
----
-47

skipif mysql # not compatible
query I rowsort label-4574
SELECT ALL - MAX ( DISTINCT col1 ) AS col0 FROM tab1 WHERE col2 NOT BETWEEN - 27 + col1 / col1 + + 28 * + col0 / col1 AND - 87
----
-47

query III rowsort
SELECT * FROM tab2 WHERE + 52 + + 76 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 89 FROM tab1 AS cor0 WHERE ( - + 4 ) * - + 86 >= - col0
----
89
89
89

query I rowsort
SELECT + col0 AS col0 FROM tab0 cor0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 + + col2 = + + col0
----

query I rowsort
SELECT - col1 * + col1 + - col0 FROM tab2
----
-2647
-4564
-5993

query II rowsort
SELECT - - 15 AS col1, 83 AS col0 FROM tab0 AS cor0
----
15
83
15
83
15
83

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col0 + - - ( col2 ) = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) > + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4583
SELECT - MAX( + col2 ) FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-4583
SELECT - MAX ( + col2 ) FROM tab0 AS cor0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4584
SELECT - + SUM( DISTINCT + col1 ) AS col0 FROM tab0 cor0
----
-103

skipif mysql # not compatible
query I rowsort label-4584
SELECT - + SUM ( DISTINCT + col1 ) AS col0 FROM tab0 cor0
----
-103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4585
SELECT MAX( ALL - CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4585
SELECT MAX ( ALL - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <= col0 + + - ( + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4587
SELECT + col2, - ( - + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-4587
SELECT + col2, - ( - + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
59
NULL
68
NULL
96
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE - - 29 + col2 / - - col1 IS NULL
----

query I rowsort
SELECT col2 * - - 65 AS col2 FROM tab0
----
3055
6435
650

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4590
SELECT ALL + + 45 AS col2 FROM tab0 WHERE NOT CAST( NULL AS SIGNED ) * + ( col0 ) + ( - col2 ) * col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-4590
SELECT ALL + + 45 AS col2 FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) * + ( col0 ) + ( - col2 ) * col2 IS NULL
----

query II rowsort
SELECT ( + 82 ), + col2 FROM tab2
----
82
23
82
40
82
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4592
SELECT DISTINCT - 4 * - COUNT( * ) FROM tab0
----
12

skipif mysql # not compatible
query I rowsort label-4592
SELECT DISTINCT - 4 * - COUNT ( * ) FROM tab0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-4593
SELECT DISTINCT ( + + SUM( DISTINCT - 80 ) ) col1 FROM tab2
----
-80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4593
SELECT DISTINCT ( + + SUM ( DISTINCT - 80 ) ) col1 FROM tab2
----
-80

query I rowsort
SELECT ALL 51 * - col2 AS col0 FROM tab0
----
-2397
-5049
-510

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4595
SELECT DISTINCT - + CAST( col0 AS SIGNED ) * - - CAST( + col0 AS SIGNED ) FROM tab0 AS cor0
----
-225
-7569
-9409

skipif mysql # not compatible
query I rowsort label-4595
SELECT DISTINCT - + CAST ( col0 AS INTEGER ) * - - CAST ( + col0 AS INTEGER ) FROM tab0 AS cor0
----
-225
-7569
-9409

onlyif mysql # DIV for integer division: 
query II rowsort label-4596
SELECT ALL + 27 * - - col1 DIV - + col1, - 29 * - col0 AS col0 FROM tab0
----
-27
2523
-27
2813
-27
435

skipif mysql # not compatible
query II rowsort label-4596
SELECT ALL + 27 * - - col1 / - + col1, - 29 * - col0 AS col0 FROM tab0
----
-27
2523
-27
2813
-27
435

onlyif mysql # CAST syntax: DECIMAL type: 
query IIIIII rowsort label-4597
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE - CAST( NULL AS DECIMAL ) <> NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-4597
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE - CAST ( NULL AS REAL ) <> NULL
----

query I rowsort
SELECT ALL - col2 * - - 74 FROM tab2
----
-1702
-2960
-4292

query I rowsort
SELECT - 36 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to afecaf209e79e23b6674a73fffa3e837

onlyif mysql # aggregate syntax: 
query I rowsort label-4600
SELECT - 36 * + COUNT( * ) + COUNT( DISTINCT col2 ) FROM tab0 AS cor0
----
-105

skipif mysql # not compatible
query I rowsort label-4600
SELECT - 36 * + COUNT ( * ) + COUNT ( DISTINCT col2 ) FROM tab0 AS cor0
----
-105

query I rowsort
SELECT col2 * col0 - + col0 FROM tab0 AS cor0
----
690
783
9506

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4602
SELECT + MAX( ALL + col2 ) * + 86 * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4602
SELECT + MAX ( ALL + col2 ) * + 86 * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - ( + col2 ) * + + col1 + - + 76 + - - 48 col0 FROM tab1 AS cor0
----
-1372
-3224
-323

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0, + col0 col1 FROM tab0 AS cor0
----
-15
15
-87
87
-97
97

query I rowsort
SELECT - - ( + 58 ) FROM tab2 cor0
----
58
58
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4606
SELECT - COUNT( 97 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4606
SELECT - COUNT ( 97 ) FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4607
SELECT + SUM( col0 ) FROM tab2 WHERE - - col1 / + col1 IN ( + 69 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4607
SELECT + SUM ( col0 ) FROM tab2 WHERE - - col1 / + col1 IN ( + 69 )
----
NULL

query I rowsort
SELECT - col1 + ( 96 ) FROM tab1
----
49
82
91

query I rowsort
SELECT ALL + col1 * + - 24 + + 4 * + col2 AS col1 FROM tab1
----
-856
116
48

onlyif mysql # aggregate syntax: 
query II rowsort label-4610
SELECT + 28 AS col0, + MAX( DISTINCT + - col0 ) AS col2 FROM tab1 WHERE 80 NOT IN ( 9 )
----
28
-51

skipif mysql # not compatible
query II rowsort label-4610
SELECT + 28 AS col0, + MAX ( DISTINCT + - col0 ) AS col2 FROM tab1 WHERE 80 NOT IN ( 9 )
----
28
-51

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col1 * + col1 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4612
SELECT - MAX( ALL col0 ) + - 96 FROM tab0 cor0
----
-193

skipif mysql # not compatible
query I rowsort label-4612
SELECT - MAX ( ALL col0 ) + - 96 FROM tab0 cor0
----
-193

query I rowsort
SELECT - + ( 41 ) FROM tab2 AS cor0
----
-41
-41
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4614
SELECT + MAX( DISTINCT - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-4614
SELECT + MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4615
SELECT MAX( DISTINCT - 61 ) - - 77 * ( + 66 ) AS col0 FROM tab1
----
5021

skipif mysql # not compatible
query I rowsort label-4615
SELECT MAX ( DISTINCT - 61 ) - - 77 * ( + 66 ) AS col0 FROM tab1
----
5021

onlyif mysql # aggregate syntax: 
query I rowsort label-4616
SELECT + COUNT( * ) - 71 * 38 + - 57 + + 4 * - ( + 83 ) AS col1 FROM tab0
----
-3084

skipif mysql # not compatible
query I rowsort label-4616
SELECT + COUNT ( * ) - 71 * 38 + - 57 + + 4 * - ( + 83 ) AS col1 FROM tab0
----
-3084

query I rowsort
SELECT - col0 * - - ( + col2 ) - + 28 AS col0 FROM tab0 AS cor0
----
-733
-898
-9631

onlyif mysql # DIV for integer division: 
query I rowsort label-4618
SELECT col0 DIV col2 * - col2 FROM tab2 AS cor0
----
-40
-46
-58

skipif mysql # not compatible
query I rowsort label-4618
SELECT col0 / col2 * - col2 FROM tab2 AS cor0
----
-40
-46
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-4619
SELECT 55 DIV 49 - col1 FROM tab1 AS cor0
----
-13
-4
-46

skipif mysql # not compatible
query I rowsort label-4619
SELECT 55 / 49 - col1 FROM tab1 AS cor0
----
-13
-4
-46

query I rowsort
SELECT + - 71 AS col1 FROM tab0 AS cor0
----
-71
-71
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-4621
SELECT ALL 75 + + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE ( 41 ) > NULL
----
75

skipif mysql # not compatible
query I rowsort label-4621
SELECT ALL 75 + + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE ( 41 ) > NULL
----
75

query II rowsort
SELECT ALL col0, ( col2 ) AS col2 FROM tab2
----
46
23
64
40
75
58

query I rowsort
SELECT DISTINCT + 71 * col1 FROM tab2
----
3621
4757
5467

query I rowsort
SELECT - 90 AS col0 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 * - + col0, 1 col1 FROM tab1
----
425
1
4277
1
714
1

query II rowsort
SELECT DISTINCT - col1 AS col1, col0 AS col2 FROM tab1
----
-14
51
-47
91
-5
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + 86, col0 + - 37 col0 FROM tab0 AS cor0
----
86
-22
86
50
86
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4628
SELECT - 31 FROM tab2 AS cor0 WHERE NOT + col0 BETWEEN ( NULL ) AND 39 + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-4628
SELECT - 31 FROM tab2 AS cor0 WHERE NOT + col0 BETWEEN ( NULL ) AND 39 + - CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - - col0 NOT BETWEEN NULL AND - + col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4630
SELECT DISTINCT + 75 + - col2 / col2 + - col0 / - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4630
SELECT DISTINCT + 75 + - col2 / col2 + - col0 / - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4631
SELECT - + MIN( + + ( 14 ) ) AS col0 FROM tab2 AS cor0 WHERE - col2 = + - col2
----
-14

skipif mysql # not compatible
query I rowsort label-4631
SELECT - + MIN ( + + ( 14 ) ) AS col0 FROM tab2 AS cor0 WHERE - col2 = + - col2
----
-14

query I rowsort
SELECT ALL + col1 * - col1 + - 33 + + 19 FROM tab0 cor0
----
-15
-455
-6575

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + - + 27 - + 33 * + 80 * + + 15 + + 82 col2 FROM tab2 AS cor0
----
-39487
-39505
-39522

query I rowsort
SELECT DISTINCT ( col1 ) + + - 99 FROM tab1 AS cor0
----
-52
-85
-94

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4635
SELECT CAST( + col0 AS DECIMAL ) AS col2 FROM tab2 AS cor0 WHERE - col2 >= + col0
----

skipif mysql # not compatible
query I rowsort label-4635
SELECT CAST ( + col0 AS REAL ) AS col2 FROM tab2 AS cor0 WHERE - col2 >= + col0
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE col2 BETWEEN + col0 AND 77
----

query I rowsort
SELECT ALL - col0 * + ( + 59 ) + - - col1 AS col2 FROM tab0
----
-5112
-5722
-804

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN - - col1 + col2 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4639
SELECT + 0 DIV - + 84 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4639
SELECT + 0 / - + 84 FROM tab0
----
0
0
0

onlyif mysql # DIV for integer division: 
query II rowsort label-4640
SELECT ALL ( - 56 ) DIV + 60 AS col2, 36 AS col1 FROM tab2
----
0
36
0
36
0
36

skipif mysql # not compatible
query II rowsort label-4640
SELECT ALL ( - 56 ) / + 60 AS col2, 36 AS col1 FROM tab2
----
0
36
0
36
0
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4641
SELECT 49 * - COUNT( * ) FROM tab1
----
-147

skipif mysql # not compatible
query I rowsort label-4641
SELECT 49 * - COUNT ( * ) FROM tab1
----
-147

onlyif mysql # aggregate syntax: 
query I rowsort label-4642
SELECT + ( + COUNT( * ) ) * - - 60 * COUNT( * ) FROM tab1
----
540

skipif mysql # not compatible
query I rowsort label-4642
SELECT + ( + COUNT ( * ) ) * - - 60 * COUNT ( * ) FROM tab1
----
540

onlyif mysql # aggregate syntax: 
query I rowsort label-4643
SELECT ALL MAX( DISTINCT - 40 ) FROM tab0
----
-40

skipif mysql # not compatible
query I rowsort label-4643
SELECT ALL MAX ( DISTINCT - 40 ) FROM tab0
----
-40

query I rowsort
SELECT 97 * - 41 FROM tab2
----
-3977
-3977
-3977

onlyif mysql # aggregate syntax: 
query I rowsort label-4645
SELECT ( - + COUNT( * ) ) AS col0 FROM tab2 WHERE - 41 + - + col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4645
SELECT ( - + COUNT ( * ) ) AS col0 FROM tab2 WHERE - 41 + - + col0 IS NULL
----
0

query III rowsort
SELECT * FROM tab0 cor0 WHERE + col0 IS NULL AND NOT + 26 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4647
SELECT DISTINCT * FROM tab0 WHERE NOT 76 IN ( - col1, CAST( col2 AS SIGNED ), - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4647
SELECT DISTINCT * FROM tab0 WHERE NOT 76 IN ( - col1, CAST ( col2 AS INTEGER ), - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 43 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 199105619049271147956de52e7f5ed4

onlyif mysql # aggregate syntax: 
query I rowsort label-4649
SELECT DISTINCT + + COUNT( DISTINCT 68 ) FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-4649
SELECT DISTINCT + + COUNT ( DISTINCT 68 ) FROM tab0 cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4650
SELECT DISTINCT + COUNT( * ) * 2 FROM tab1 cor0
----
6

skipif mysql # not compatible
query I rowsort label-4650
SELECT DISTINCT + COUNT ( * ) * 2 FROM tab1 cor0
----
6

query I rowsort
SELECT + 5 * - - col0 FROM tab0
----
435
485
75

query I rowsort
SELECT DISTINCT - 69 AS col0 FROM tab0 WHERE NULL >= - + 84 + + + col2
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN + - 12 AND + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4655
SELECT ALL + COUNT( + 81 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4655
SELECT ALL + COUNT ( + 81 ) FROM tab1
----
3

query II rowsort
SELECT ALL + col0, col0 AS col0 FROM tab1
----
51
51
85
85
91
91

query I rowsort
SELECT ALL + 55 FROM tab0 WHERE NOT + col1 IS NOT NULL
----

query I rowsort
SELECT 2 + - - 61 FROM tab1 AS cor0
----
63
63
63

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 NOT BETWEEN + col0 AND NULL
----

query I rowsort
SELECT + + 47 * - col1 * col0 + - col0 AS col0 FROM tab1 AS cor0
----
-20060
-201110
-33609

query IIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) IS NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

query II rowsort
SELECT ( - ( + col0 ) ) + - col1 AS col1, + col2 AS col2 FROM tab2
----
-141
40
-142
58
-97
23

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 83 / + - 23 * - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 WHERE col2 / + col0 + - - col2 > NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE - col1 * 71 * 14 BETWEEN NULL AND + + 11 + + + 32
----

query I rowsort
SELECT ALL col2 * - col0 + - ( col2 ) FROM tab1 AS cor0
----
-4992
-5074
-6256

query III rowsort
SELECT * FROM tab0 cor0 WHERE col0 + - + col0 <> - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 37 ) col1 FROM tab0 AS cor0
----
37
37
37

query I rowsort
SELECT ALL + col1 + col1 + + 72 * + col2 * - col2 AS col1 FROM tab0 AS cor0
----
-158886
-705670
-7158

query I rowsort
SELECT ALL - col1 * - + col2 * + + 0 AS col2 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT - col0 * 37 * 79 + + - col0 + - col0, + col0 + - col1 + - col1, - + col1 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT 95 + 25 FROM tab0 AS cor0
----
120

query I rowsort
SELECT + - ( col0 ) * ( + 46 ) - - ( + col2 ) - + 39 + - col1 AS col1 FROM tab2 AS cor0
----
-2183
-3020
-3498

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4674
SELECT CAST( col0 AS SIGNED ) AS col1, col2 * + 34 + - CAST( - 10 AS SIGNED ) FROM tab0 AS cor0 WHERE - col2 * - - col0 + - col2 + - col2 + + - col0 IS NULL AND NOT ( 8 ) > NULL
----

skipif mysql # not compatible
query II rowsort label-4674
SELECT CAST ( col0 AS INTEGER ) AS col1, col2 * + 34 + - CAST ( - 10 AS INTEGER ) FROM tab0 AS cor0 WHERE - col2 * - - col0 + - col2 + - col2 + + - col0 IS NULL AND NOT ( 8 ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4675
SELECT - - COUNT( 9 ) + - - 35 FROM tab2 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-4675
SELECT - - COUNT ( 9 ) + - - 35 FROM tab2 AS cor0
----
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 33 col2 FROM tab0 WHERE NOT + + col1 * + col0 * + + col0 <> NULL
----

query I rowsort
SELECT ALL col2 * - 57 - + col2 + - 47 FROM tab1
----
-3469
-3991
-5615

query I rowsort
SELECT DISTINCT - 61 AS col1 FROM tab2, tab0 cor0
----
-61

query I rowsort
SELECT ( - 43 ) + + + col1 FROM tab1
----
-29
-38
4

onlyif mysql # DIV for integer division: 
query I rowsort label-4680
SELECT 23 DIV col1 + + - ( - 87 ) AS col2 FROM tab0
----
110
87
88

skipif mysql # not compatible
query I rowsort label-4680
SELECT 23 / col1 + + - ( - 87 ) AS col2 FROM tab0
----
110
87
88

query I rowsort
SELECT col1 + - col2 * col0 * col1 AS col0 FROM tab0 AS cor0
----
-18249
-57024
-9602

query I rowsort
SELECT DISTINCT + col1 + - col1 AS col1 FROM tab2 WHERE 74 IS NOT NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4683
SELECT ALL + MAX( DISTINCT + CAST( NULL AS DECIMAL ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4683
SELECT ALL + MAX ( DISTINCT + CAST ( NULL AS REAL ) ) FROM tab0
----
NULL

query II rowsort
SELECT - col1 * + 41 * + 7 AS col2, 25 - - col2 AS col2 FROM tab2 cor0
----
-14637
48
-19229
83
-22099
65

onlyif mysql # DIV for integer division: 
query I rowsort label-4685
SELECT ALL + + col1 DIV 52 FROM tab2 cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4685
SELECT ALL + + col1 / 52 FROM tab2 cor0
----
0
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4686
SELECT ALL + 90 * col1 DIV - col1 AS col2 FROM tab0 AS cor0
----
-90
-90
-90

skipif mysql # not compatible
query I rowsort label-4686
SELECT ALL + 90 * col1 / - col1 AS col2 FROM tab0 AS cor0
----
-90
-90
-90

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4687
SELECT * FROM tab0 AS cor0 WHERE NOT - CAST( - 65 AS SIGNED ) NOT BETWEEN + + 53 AND - col1 + + + col1
----

skipif mysql # not compatible
query III rowsort label-4687
SELECT * FROM tab0 AS cor0 WHERE NOT - CAST ( - 65 AS INTEGER ) NOT BETWEEN + + 53 AND - col1 + + + col1
----

query I rowsort
SELECT - + 56 * col0 AS col2 FROM tab1 cor0
----
-2856
-4760
-5096

onlyif mysql # aggregate syntax: 
query I rowsort label-4689
SELECT DISTINCT + ( - - COUNT( * ) ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4689
SELECT DISTINCT + ( - - COUNT ( * ) ) FROM tab1 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4690
SELECT DISTINCT ( - - COUNT( * ) ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4690
SELECT DISTINCT ( - - COUNT ( * ) ) AS col1 FROM tab2
----
3

query I rowsort
SELECT DISTINCT - 87 * - - 23 AS col2 FROM tab1
----
-2001

query I rowsort
SELECT DISTINCT + ( + - col2 ) AS col0 FROM tab0
----
-10
-47
-99

query I rowsort
SELECT DISTINCT - - col1 + - 22 FROM tab2 AS cor0
----
29
45
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4694
SELECT DISTINCT CAST( NULL AS SIGNED ) / - - col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4694
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - - col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4695
SELECT COUNT( ALL - 61 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4695
SELECT COUNT ( ALL - 61 ) AS col0 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4696
SELECT ALL MIN( DISTINCT + 34 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
34

skipif mysql # not compatible
query I rowsort label-4696
SELECT ALL MIN ( DISTINCT + 34 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
34

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 23 * col2 + - col1 + + col0 + + col0 * - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4698
SELECT 70 + COUNT( DISTINCT - + col2 ) AS col0 FROM tab0
----
73

skipif mysql # not compatible
query I rowsort label-4698
SELECT 70 + COUNT ( DISTINCT - + col2 ) AS col0 FROM tab0
----
73

query I rowsort
SELECT DISTINCT + 64 * + 86 + - col2 AS col2 FROM tab2 AS cor0
----
5446
5464
5481

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 * - + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4701
SELECT + + ( - - COUNT( * ) ) AS col1 FROM tab0 cor0 WHERE ( NULL ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4701
SELECT + + ( - - COUNT ( * ) ) AS col1 FROM tab0 cor0 WHERE ( NULL ) IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4702
SELECT ALL 64 + + SUM( + + 0 ) FROM tab1 AS cor0
----
64

skipif mysql # not compatible
query I rowsort label-4702
SELECT ALL 64 + + SUM ( + + 0 ) FROM tab1 AS cor0
----
64

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 12 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4704
SELECT + MAX( + col0 ) FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-4704
SELECT + MAX ( + col0 ) FROM tab1 AS cor0
----
91

query I rowsort
SELECT ALL col2 * + - col0 - - col1 + ( + - col2 ) + - 99 + 28 AS col0 FROM tab2 AS cor0
----
-1101
-2594
-4412

onlyif mysql # aggregate syntax: 
query I rowsort label-4706
SELECT + MIN( + 10 ) * + - COUNT( * ) FROM tab2
----
-30

skipif mysql # not compatible
query I rowsort label-4706
SELECT + MIN ( + 10 ) * + - COUNT ( * ) FROM tab2
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4707
SELECT CAST( + - col2 AS SIGNED ) AS col0 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-4707
SELECT CAST ( + - col2 AS INTEGER ) AS col0 FROM tab1
----
-59
-68
-96

query III rowsort
SELECT * FROM tab0 WHERE 26 BETWEEN NULL AND + col1 - - - col2
----

query I rowsort
SELECT col0 - - - col1 FROM tab0
----
-66
66
96

query I rowsort
SELECT DISTINCT + 53 * - col1 FROM tab2 AS cor0
----
-2703
-3551
-4081

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 < col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4712
SELECT - MAX( ALL + col0 ) AS col2 FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-4712
SELECT - MAX ( ALL + col0 ) AS col2 FROM tab1
----
-91

query I rowsort
SELECT ALL ( - 45 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4714
SELECT DISTINCT + ( + 37 ) * - COUNT( * ) * - 73 col1 FROM tab2 AS cor0
----
8103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4714
SELECT DISTINCT + ( + 37 ) * - COUNT ( * ) * - 73 col1 FROM tab2 AS cor0
----
8103

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col0 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4716
SELECT - 55 * - 96 * + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-15840

skipif mysql # not compatible
query I rowsort label-4716
SELECT - 55 * - 96 * + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-15840

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4717
SELECT + - CAST( SUM( DISTINCT col0 ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-4717
SELECT + - CAST ( SUM ( DISTINCT col0 ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-199

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4718
SELECT - 11 * - + col0 AS col2, + col0 * - col2 * - + col0 + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
1001
NULL
561
NULL
935
NULL

skipif mysql # not compatible
query II rowsort label-4718
SELECT - 11 * - + col0 AS col2, + col0 * - col2 * - + col0 + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
1001
NULL
561
NULL
935
NULL

query I rowsort
SELECT DISTINCT - - col0 FROM tab0 WHERE + 17 + - col1 * + 10 * + 62 NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT 19 AS col0, col2 * - 51 + - ( - 85 ) + + col0 FROM tab2
----
19
-1042
19
-1891
19
-2798

onlyif mysql # aggregate syntax: 
query I rowsort label-4721
SELECT COUNT( * ) * + 74 AS col2 FROM tab0
----
222

skipif mysql # not compatible
query I rowsort label-4721
SELECT COUNT ( * ) * + 74 AS col2 FROM tab0
----
222

query III rowsort
SELECT * FROM tab2 WHERE NOT + - 56 + + col0 >= ( + 10 )
----
46
51
23
64
77
40

query I rowsort
SELECT DISTINCT - ( col1 ) + col0 * + col1 + 93 + - 26 - - + col2 + + col2 + - ( + 78 ) AS col2 FROM tab1
----
4355
527
881

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 AS col1, col1 + - col2 col1 FROM tab0
----
15
34
87
11
97
-98

query I rowsort
SELECT ALL + col0 * - + col0 AS col2 FROM tab0 WHERE - 19 * - col0 IS NOT NULL
----
-225
-7569
-9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - - + col1 col1 FROM tab2 WHERE NOT ( + + 0 ) IS NOT NULL
----

query I rowsort
SELECT ALL 0 + + + 91 FROM tab2 AS cor0
----
91
91
91

query I rowsort
SELECT 54 * - 8 + - col0 + + 42 * + col2 FROM tab1 AS cor0
----
1961
2333
3549

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4729
SELECT CAST( - 12 AS SIGNED ) * - col1 + - + col2 FROM tab1 AS cor0
----
1
496
72

skipif mysql # not compatible
query I rowsort label-4729
SELECT CAST ( - 12 AS INTEGER ) * - col1 + - + col2 FROM tab1 AS cor0
----
1
496
72

onlyif mysql # aggregate syntax: 
query I rowsort label-4730
SELECT + 59 + + COUNT( * ) AS col2 FROM tab2
----
62

skipif mysql # not compatible
query I rowsort label-4730
SELECT + 59 + + COUNT ( * ) AS col2 FROM tab2
----
62

query I rowsort
SELECT ALL 86 + 82 * 45 FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4732
SELECT * FROM tab1 WHERE NOT + col2 < - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-4732
SELECT * FROM tab1 WHERE NOT + col2 < - CAST ( NULL AS REAL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4733
SELECT DISTINCT - 42 * + COUNT( + ( col1 ) ) AS col0 FROM tab0
----
-126

skipif mysql # not compatible
query I rowsort label-4733
SELECT DISTINCT - 42 * + COUNT ( + ( col1 ) ) AS col0 FROM tab0
----
-126

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 14 + - col1 col1 FROM tab2
----
-37
-53
-63

query I rowsort
SELECT ALL - 83 * + 99 FROM tab2
----
-8217
-8217
-8217

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 - col2 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4737
SELECT 36 * COUNT( * ) AS col2 FROM tab0 WHERE NOT ( col2 / - ( ( + col2 ) ) ) >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-4737
SELECT 36 * COUNT ( * ) AS col2 FROM tab0 WHERE NOT ( col2 / - ( ( + col2 ) ) ) >= NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4738
SELECT MAX( DISTINCT col1 ) AS col2 FROM tab2 WHERE NOT + col2 <> ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4738
SELECT MAX ( DISTINCT col1 ) AS col2 FROM tab2 WHERE NOT + col2 <> ( NULL )
----
NULL

query I rowsort
SELECT + 18 FROM tab0 WHERE NOT NULL BETWEEN 19 AND 7
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4740
SELECT DISTINCT - col0 - + 93 / - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4740
SELECT DISTINCT - col0 - + 93 / - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4741
SELECT + 52 DIV + ( - ( + COUNT( * ) ) ) AS col1 FROM tab0
----
-17

skipif mysql # not compatible
query I rowsort label-4741
SELECT + 52 / + ( - ( + COUNT ( * ) ) ) AS col1 FROM tab0
----
-17

query I rowsort
SELECT - 42 * col0 FROM tab2
----
-1932
-2688
-3150

query III rowsort
SELECT ALL * FROM tab1 WHERE col0 >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4744
SELECT ALL COUNT( * ) * COUNT( * ) AS col2 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-4744
SELECT ALL COUNT ( * ) * COUNT ( * ) AS col2 FROM tab1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4745
SELECT DISTINCT MAX( 15 ) FROM tab1 WHERE 61 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4745
SELECT DISTINCT MAX ( 15 ) FROM tab1 WHERE 61 IS NULL
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE ( + col2 ) < - ( 11 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( 45 )
----

query I rowsort
SELECT ALL 91 AS col2 FROM tab0 WHERE NULL IS NULL
----
91
91
91

query I rowsort
SELECT ALL - 85 * ( 79 ) + + 34 * - col2 AS col1 FROM tab0
----
-10081
-7055
-8313

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4750
SELECT CAST( AVG ( - col0 ) AS SIGNED ) * ( - MIN( 72 ) * + 36 ) AS col2 FROM tab0 WHERE NOT ( 15 ) NOT BETWEEN ( CAST( NULL AS SIGNED ) ) AND - 44 * + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4750
SELECT CAST ( AVG ( - col0 ) AS INTEGER ) * ( - MIN ( 72 ) * + 36 ) AS col2 FROM tab0 WHERE NOT ( 15 ) NOT BETWEEN ( CAST ( NULL AS INTEGER ) ) AND - 44 * + col2
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE col0 NOT BETWEEN ( col2 ) AND NULL
----
15
81
47
97
1
99

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN ( NULL ) AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4753
SELECT SUM( col0 ) * 2 AS col1 FROM tab1
----
454

skipif mysql # not compatible
query I rowsort label-4753
SELECT SUM ( col0 ) * 2 AS col1 FROM tab1
----
454

query I rowsort
SELECT + 37 * col0 + - 55 FROM tab2
----
1647
2313
2720

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4755
SELECT + col1 * + CAST( NULL AS SIGNED ) + + col2 / col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4755
SELECT + col1 * + CAST ( NULL AS INTEGER ) + + col2 / col2 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 * - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4757
SELECT - CAST( NULL AS SIGNED ) AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-4757
SELECT - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ( 10 ) FROM tab2 WHERE NULL IS NULL
----
10
10
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4759
SELECT DISTINCT SUM( DISTINCT - col0 ) AS col0 FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-4759
SELECT DISTINCT SUM ( DISTINCT - col0 ) AS col0 FROM tab0
----
-199

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT + 94 NOT BETWEEN NULL AND col1
----

query I rowsort
SELECT 96 FROM tab0 AS cor0 WHERE NOT ( - col0 ) <= col2 * col2 + 65 * - col0
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4762
SELECT - SUM( col0 ) * CAST( COUNT( * ) AS SIGNED ) FROM tab0 AS cor0
----
-597

skipif mysql # not compatible
query I rowsort label-4762
SELECT - SUM ( col0 ) * CAST ( COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0
----
-597

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col1 + col0 BETWEEN col0 + col2 * + col0 AND + col1 + + ( col0 - col0 ) / ( 46 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4764
SELECT - SUM( ALL col1 ) + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) > + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4764
SELECT - SUM ( ALL col1 ) + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) > + col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4765
SELECT DISTINCT - COUNT( ALL col0 ) col1 FROM tab0 WHERE + 37 - + 46 < ( NULL )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4765
SELECT DISTINCT - COUNT ( ALL col0 ) col1 FROM tab0 WHERE + 37 - + 46 < ( NULL )
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT + 4 >= col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 * + 57 FROM tab1
----
2907
4845
5187

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4768
SELECT DISTINCT + CAST( + COUNT( * ) AS SIGNED ) - 62 FROM tab0 AS cor0 CROSS JOIN tab0
----
-53

skipif mysql # not compatible
query I rowsort label-4768
SELECT DISTINCT + CAST ( + COUNT ( * ) AS INTEGER ) - 62 FROM tab0 AS cor0 CROSS JOIN tab0
----
-53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 4 col0 FROM tab1 cor0 CROSS JOIN tab1
----
9 values hashing to 5784540a5af6ca2be84399d314acd2fd

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4770
SELECT - CAST( SUM( ALL col1 ) AS SIGNED ) FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-4770
SELECT - CAST ( SUM ( ALL col1 ) AS INTEGER ) FROM tab0 AS cor0
----
-103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4771
SELECT col1 / - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4771
SELECT col1 / - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 + + 22 AS col2 FROM tab2 AS cor0
----
-1
-18
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-4773
SELECT DISTINCT - MAX( DISTINCT col1 ) FROM tab1 AS cor0 WHERE NOT NULL IN ( + col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4773
SELECT DISTINCT - MAX ( DISTINCT col1 ) FROM tab1 AS cor0 WHERE NOT NULL IN ( + col1 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4774
SELECT - 26 * COUNT( * ) FROM tab2 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-4774
SELECT - 26 * COUNT ( * ) FROM tab2 AS cor0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-4775
SELECT DISTINCT COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL >= 56 * col0
----
0

skipif mysql # not compatible
query I rowsort label-4775
SELECT DISTINCT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL >= 56 * col0
----
0

query I rowsort
SELECT 53 FROM tab1 AS cor0 WHERE NOT - col2 = NULL
----

query I rowsort
SELECT 26 + + col2 * col0 FROM tab2 AS cor0
----
1084
2586
4376

query I rowsort
SELECT ALL col2 FROM tab0 AS cor0 WHERE NOT col0 + + col0 NOT IN ( 98 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4779
SELECT ALL 82 + COUNT( 12 + col0 * col1 ) AS col1 FROM tab2 AS cor0 WHERE NOT col0 <= col0
----
82

skipif mysql # not compatible
query I rowsort label-4779
SELECT ALL 82 + COUNT ( 12 + col0 * col1 ) AS col1 FROM tab2 AS cor0 WHERE NOT col0 <= col0
----
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4780
SELECT COUNT( * ) + + 17 DIV COUNT( * ) FROM tab2
----
8

skipif mysql # not compatible
query I rowsort label-4780
SELECT COUNT ( * ) + + 17 / COUNT ( * ) FROM tab2
----
8

query I rowsort
SELECT + col2 AS col2 FROM tab0 WHERE NOT + col0 < - 16
----
10
47
99

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 <> + 84
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4783
SELECT ALL + ( CAST( + COUNT( * ) AS SIGNED ) ) * COUNT( * ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-4783
SELECT ALL + ( CAST ( + COUNT ( * ) AS INTEGER ) ) * COUNT ( * ) FROM tab2
----
9

query I rowsort
SELECT ALL col0 * col1 FROM tab0 WHERE ( col0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4785
SELECT COUNT( ALL + col1 ) * + COUNT( * ) AS col2 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-4785
SELECT COUNT ( ALL + col1 ) * + COUNT ( * ) AS col2 FROM tab2
----
9

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4786
SELECT ALL col0 / + CAST( NULL AS DECIMAL ) * + 37 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4786
SELECT ALL col0 / + CAST ( NULL AS REAL ) * + 37 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT 70 AS col0 FROM tab0 WHERE ( col1 + + col2 ) IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4788
SELECT + COUNT( * ) DIV 99 AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4788
SELECT + COUNT ( * ) / 99 AS col2 FROM tab0
----
0

query I rowsort
SELECT DISTINCT 34 FROM tab0 WHERE NOT NULL IN ( - 95 )
----

query I rowsort
SELECT ALL + col0 * - 89 FROM tab0
----
-1335
-7743
-8633

query I rowsort
SELECT col0 FROM tab2 WHERE 31 IS NOT NULL
----
46
64
75

query I rowsort
SELECT DISTINCT - 98 * col2 AS col0 FROM tab2
----
-2254
-3920
-5684

query I rowsort
SELECT DISTINCT + 92 + + + col0 AS col2 FROM tab1
----
143
177
183

query III rowsort
SELECT ALL * FROM tab1 WHERE 84 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL >= col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4796
SELECT + + COUNT( * ) + COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
18

skipif mysql # not compatible
query I rowsort label-4796
SELECT + + COUNT ( * ) + COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4797
SELECT ( MIN( DISTINCT + col1 ) ) AS col2 FROM tab0 WHERE ( 81 ) >= - 87 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4797
SELECT ( MIN ( DISTINCT + col1 ) ) AS col2 FROM tab0 WHERE ( 81 ) >= - 87 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4798
SELECT COUNT( * ) + + SUM( + - 24 ) AS col0 FROM tab1
----
-69

skipif mysql # not compatible
query I rowsort label-4798
SELECT COUNT ( * ) + + SUM ( + - 24 ) AS col0 FROM tab1
----
-69

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 39 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4800
SELECT DISTINCT + 67 * + COUNT( * ) + - COUNT( * ) AS col1 FROM tab2
----
198

skipif mysql # not compatible
query I rowsort label-4800
SELECT DISTINCT + 67 * + COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab2
----
198

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4801
SELECT - CAST( NULL AS SIGNED ) + MAX( ALL + CAST( 83 AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4801
SELECT - CAST ( NULL AS INTEGER ) + MAX ( ALL + CAST ( 83 AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4802
SELECT DISTINCT COUNT( * ) + - 53 FROM tab2 AS cor0
----
-50

skipif mysql # not compatible
query I rowsort label-4802
SELECT DISTINCT COUNT ( * ) + - 53 FROM tab2 AS cor0
----
-50

onlyif mysql # aggregate syntax: 
query II rowsort label-4803
SELECT ALL - COUNT( * ), + 56 AS col0 FROM tab2 AS cor0
----
-3
56

skipif mysql # not compatible
query II rowsort label-4803
SELECT ALL - COUNT ( * ), + 56 AS col0 FROM tab2 AS cor0
----
-3
56

onlyif mysql # DIV for integer division: 
query I rowsort label-4804
SELECT ALL - - col0 DIV - col2 + - col2 col1 FROM tab1 AS cor0
----
-60
-69
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4804
SELECT ALL - - col0 / - col2 + - col2 col1 FROM tab1 AS cor0
----
-60
-69
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4805
SELECT - CAST( - SUM( col2 ) AS SIGNED ) + 55 AS col2 FROM tab2 AS cor0 WHERE ( + col2 ) NOT BETWEEN ( NULL ) AND ( - 76 * - col2 + 66 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4805
SELECT - CAST ( - SUM ( col2 ) AS INTEGER ) + 55 AS col2 FROM tab2 AS cor0 WHERE ( + col2 ) NOT BETWEEN ( NULL ) AND ( - 76 * - col2 + 66 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4806
SELECT DISTINCT - col1 DIV col2 + - 81 col2 FROM tab0 AS cor0
----
-81
-82
-83

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4806
SELECT DISTINCT - col1 / col2 + - 81 col2 FROM tab0 AS cor0
----
-81
-82
-83

query II rowsort
SELECT + col2 AS col0, - col2 FROM tab1 AS cor0
----
59
-59
68
-68
96
-96

query I rowsort
SELECT ALL + 42 AS col2 FROM tab1 AS cor0 WHERE col0 * 13 - col1 > NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 22 + - + col2 < col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col0 + - + 20 + + ( col2 ) * col1 FROM tab2 AS cor0
----
1107
2996
3791

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + col1 ) col2 FROM tab1
----
-14
-47
-5

query III rowsort
SELECT * FROM tab1 WHERE NOT + 67 NOT BETWEEN col2 AND 25
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4813
SELECT DISTINCT - MIN( 81 ) FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-4813
SELECT DISTINCT - MIN ( 81 ) FROM tab0
----
-81

query III rowsort
SELECT ALL * FROM tab0 WHERE - ( - ( - col2 ) ) = - col0
----

query I rowsort
SELECT DISTINCT - ( + - 31 ) FROM tab2
----
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col1 FROM tab1 WHERE NOT - col0 IS NOT NULL
----

query I rowsort
SELECT ALL 94 - - 63 AS col0 FROM tab0 WHERE NOT - + ( + col0 ) BETWEEN - col2 AND 52 + 78 * + 48
----
157

onlyif mysql # aggregate syntax: 
query I rowsort label-4818
SELECT - - COUNT( * ) * + COUNT( * ) FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-4818
SELECT - - COUNT ( * ) * + COUNT ( * ) FROM tab0 AS cor0
----
9

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 74 - - col2 BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT + - col1 * - col2 * + col0 - - - col0 AS col0 FROM tab0 AS cor0
----
18183
57090
9506

query I rowsort
SELECT ALL - - 44 AS col1 FROM tab1 cor0
----
44
44
44

query I rowsort
SELECT - - col2 * + 62 FROM tab1 AS cor0
----
3658
4216
5952

onlyif mysql # aggregate syntax: 
query I rowsort label-4823
SELECT ALL MAX( - 19 ) AS col2 FROM tab0 cor0 WHERE - col2 < ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4823
SELECT ALL MAX ( - 19 ) AS col2 FROM tab0 cor0 WHERE - col2 < ( NULL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4824
SELECT ALL + MAX( ALL - col1 ) AS col1 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-4824
SELECT ALL + MAX ( ALL - col1 ) AS col1 FROM tab0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4825
SELECT - COUNT( * ) + + + 11 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
2

skipif mysql # not compatible
query I rowsort label-4825
SELECT - COUNT ( * ) + + + 11 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
2

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN + - col0 AND NULL
----

query I rowsort
SELECT ALL - col0 * - 41 + + col2 + + + 97 FROM tab0 cor0
----
3674
4173
759

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( col0 - - col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + col1 * - col0 + + col0 ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4830
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE - ( - col0 ) + - - col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4830
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE - ( - col0 ) + - - col2 IS NOT NULL
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - 61 + - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4832
SELECT + MAX( DISTINCT + + col1 ) AS col1 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-4832
SELECT + MAX ( DISTINCT + + col1 ) AS col1 FROM tab2 AS cor0
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-4833
SELECT 66 DIV 32 FROM tab0 AS cor0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-4833
SELECT 66 / 32 FROM tab0 AS cor0
----
2
2
2

query I rowsort
SELECT + col2 AS col0 FROM tab0 AS cor0 WHERE NULL NOT IN ( 62, col1 )
----

query I rowsort
SELECT + - col1 AS col1 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - col2 + + - 31 - - 17 AS col1 FROM tab1
----
-110
-73
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-4837
SELECT DISTINCT + ( - + MIN( DISTINCT - 1 ) ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-4837
SELECT DISTINCT + ( - + MIN ( DISTINCT - 1 ) ) FROM tab1
----
1

query I rowsort
SELECT ALL + col0 AS col0 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - col0 + + 11 + col1 * - 59 FROM tab0
----
-1315
-145
-4783

query II rowsort
SELECT DISTINCT + 22 AS col0, + 63 - + 30 AS col0 FROM tab1
----
22
33

onlyif mysql # aggregate syntax: 
query I rowsort label-4841
SELECT ALL + ( + + ( + COUNT( * ) ) ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4841
SELECT ALL + ( + + ( + COUNT ( * ) ) ) AS col0 FROM tab0
----
3

query I rowsort
SELECT - - 54 + col0 FROM tab0 AS cor0
----
141
151
69

query I rowsort
SELECT DISTINCT + col0 + + 57 FROM tab1 AS cor0
----
108
142
148

onlyif mysql # DIV for integer division: 
query I rowsort label-4844
SELECT ALL - 85 + 43 DIV + ( + + 46 ) + + ( col1 ) + + col1 AS col2 FROM tab0 AS cor0
----
-43
-83
77

skipif mysql # not compatible
query I rowsort label-4844
SELECT ALL - 85 + 43 / + ( + + 46 ) + + ( col1 ) + + col1 AS col2 FROM tab0 AS cor0
----
-43
-83
77

query I rowsort
SELECT DISTINCT + 8 AS col0 FROM tab1
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4846
SELECT + CAST( NULL AS SIGNED ) - + + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4846
SELECT + CAST ( NULL AS INTEGER ) - + + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4847
SELECT ALL ( 40 ) * 96 DIV + col0 + - col0 DIV - col0 AS col2 FROM tab2 AS cor0
----
52
61
84

skipif mysql # not compatible
query I rowsort label-4847
SELECT ALL ( 40 ) * 96 / + col0 + - col0 / - col0 AS col2 FROM tab2 AS cor0
----
52
61
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4848
SELECT + 92 FROM tab0 AS cor0 WHERE 29 = - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-4848
SELECT + 92 FROM tab0 AS cor0 WHERE 29 = - CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( col1 >= NULL )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4850
SELECT DISTINCT + - 31 + + CAST( NULL AS DECIMAL ) - - + col1 * + 1 * - 85 * + - ( col2 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4850
SELECT DISTINCT + - 31 + + CAST ( NULL AS REAL ) - - + col1 * + 1 * - 85 * + - ( col2 ) FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4851
SELECT DISTINCT + CAST( NULL AS SIGNED ) / - - 88 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4851
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / - - 88 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4852
SELECT - CAST( NULL AS SIGNED ) / - - col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4852
SELECT - CAST ( NULL AS INTEGER ) / - - col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4853
SELECT - col0 AS col2 FROM tab0 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) + - - col1 IS NOT NULL
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-4853
SELECT - col0 AS col2 FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) + - - col1 IS NOT NULL
----
-15
-87
-97

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + col0 * - 41 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + + col1 + + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4856
SELECT DISTINCT COUNT( * ), + COUNT( * ) AS col0 FROM tab1
----
3
3

skipif mysql # not compatible
query II rowsort label-4856
SELECT DISTINCT COUNT ( * ), + COUNT ( * ) AS col0 FROM tab1
----
3
3

query II rowsort
SELECT ALL + col2 AS col0, 83 * - ( - 21 ) FROM tab1
----
59
1743
68
1743
96
1743

query III rowsort
SELECT ALL * FROM tab0 WHERE - col2 * - col0 * - - ( - 86 ) > - 37
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4859
SELECT DISTINCT + col1 DIV 44 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-4859
SELECT DISTINCT + col1 / 44 FROM tab1
----
0
1

query I rowsort
SELECT col0 * - 55 * + + 37 FROM tab1
----
-103785
-172975
-185185

query II rowsort
SELECT + col0, - col1 + - 86 FROM tab2
----
46
-137
64
-163
75
-153

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4862
SELECT - CAST( - col2 AS SIGNED ) * + 73 AS col2, col0 DIV col1 AS col2 FROM tab1
----
4307
17
4964
1
7008
3

skipif mysql # not compatible
query II rowsort label-4862
SELECT - CAST ( - col2 AS INTEGER ) * + 73 AS col2, col0 / col1 AS col2 FROM tab1
----
4307
17
4964
1
7008
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4863
SELECT DISTINCT - SUM( col1 ) AS col0 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-4863
SELECT DISTINCT - SUM ( col1 ) AS col0 FROM tab2
----
-195

query I rowsort
SELECT + col1 FROM tab1 WHERE NOT ( + col0 * + - 87 * + 79 ) <> + col1 * + col1 * - col0
----

query I rowsort
SELECT ALL - col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4866
SELECT ALL + COUNT( + 93 ) * - 33 col0 FROM tab2 AS cor0
----
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4866
SELECT ALL + COUNT ( + 93 ) * - 33 col0 FROM tab2 AS cor0
----
-99

query I rowsort
SELECT DISTINCT + ( - 18 ) AS col2 FROM tab1 AS cor0
----
-18

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + 65 * - - col2 ) = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4869
SELECT DISTINCT - - 51 + + - 60 * + 56 + + COUNT( * ) col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-3300

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4869
SELECT DISTINCT - - 51 + + - 60 * + 56 + + COUNT ( * ) col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-3300

onlyif mysql # aggregate syntax: 
query I rowsort label-4870
SELECT ALL + MAX( - + col0 ) AS col2 FROM tab0 AS cor0 WHERE col0 / col1 + - - ( 13 ) > - ( - col2 )
----
-87

skipif mysql # not compatible
query I rowsort label-4870
SELECT ALL + MAX ( - + col0 ) AS col2 FROM tab0 AS cor0 WHERE col0 / col1 + - - ( 13 ) > - ( - col2 )
----
-87

query I rowsort
SELECT + ( - - col2 ) + + - col1 * - col2 AS col1 FROM tab1 AS cor0
----
1440
3264
354

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4872
SELECT DISTINCT - ( + - 84 ) + - col1 / - - CAST( NULL AS SIGNED ) * - - col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4872
SELECT DISTINCT - ( + - 84 ) + - col1 / - - CAST ( NULL AS INTEGER ) * - - col1 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 10 * - col0 IS NULL
----

query I rowsort
SELECT DISTINCT + ( + + 38 ) AS col1 FROM tab2 AS cor0 WHERE NOT + 97 IS NOT NULL
----

query I rowsort
SELECT ALL + col0 * + ( + + col1 ) FROM tab2 AS cor0
----
2346
4928
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-4876
SELECT + SUM( DISTINCT 55 ) AS col1 FROM tab2 WHERE col1 IN ( + col2 / col0, + col0 - - 70 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4876
SELECT + SUM ( DISTINCT 55 ) AS col1 FROM tab2 WHERE col1 IN ( + col2 / col0, + col0 - - 70 )
----
NULL

query I rowsort
SELECT + 3 * - col0 AS col2 FROM tab2
----
-138
-192
-225

query I rowsort
SELECT DISTINCT ( + - ( col2 ) ) FROM tab1
----
-59
-68
-96

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - ( - 18 ) ) = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4880
SELECT 99 DIV col1 AS col0 FROM tab1
----
19
2
7

skipif mysql # not compatible
query I rowsort label-4880
SELECT 99 / col1 AS col0 FROM tab1
----
19
2
7

query I rowsort
SELECT - 87 FROM tab1 WHERE ( + + col1 ) IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4882
SELECT + CAST( - ( + col0 ) AS DECIMAL ) FROM tab2 WHERE NULL <= NULL
----

skipif mysql # not compatible
query I rowsort label-4882
SELECT + CAST ( - ( + col0 ) AS REAL ) FROM tab2 WHERE NULL <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4883
SELECT CAST( NULL AS SIGNED ) AS col1, CAST( + - ( - 4 ) AS SIGNED ) FROM tab2
----
NULL
4
NULL
4
NULL
4

skipif mysql # not compatible
query II rowsort label-4883
SELECT CAST ( NULL AS INTEGER ) AS col1, CAST ( + - ( - 4 ) AS INTEGER ) FROM tab2
----
NULL
4
NULL
4
NULL
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4884
SELECT ALL - CAST( NULL AS SIGNED ) * 60 + + 55 - col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4884
SELECT ALL - CAST ( NULL AS INTEGER ) * 60 + + 55 - col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 18 + col0 AS col1 FROM tab1 cor0
----
103
109
69

query I rowsort
SELECT + 90 + col0 AS col0 FROM tab1 AS cor0
----
141
175
181

query I rowsort
SELECT + col1 FROM tab1 WHERE + col0 IS NULL
----

query I rowsort
SELECT - col2 + - 66 FROM tab1
----
-125
-134
-162

query I rowsort
SELECT ALL col0 * + + col1 * col2 AS col2 FROM tab0
----
18270
57105
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-4890
SELECT + + COUNT( DISTINCT + + 94 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
1

skipif mysql # not compatible
query I rowsort label-4890
SELECT + + COUNT ( DISTINCT + + 94 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4891
SELECT DISTINCT + COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL < col2 * 79
----
0

skipif mysql # not compatible
query I rowsort label-4891
SELECT DISTINCT + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL < col2 * 79
----
0

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL BETWEEN col2 * col0 AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4893
SELECT DISTINCT - + MAX( ALL col1 ) * COUNT( * ) AS col2 FROM tab0 AS cor0
----
-243

skipif mysql # not compatible
query I rowsort label-4893
SELECT DISTINCT - + MAX ( ALL col1 ) * COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-243

onlyif mysql # aggregate syntax: 
query I rowsort label-4894
SELECT DISTINCT COUNT( * ) AS col0 FROM tab2 cor0 WHERE NULL NOT BETWEEN col1 / + 83 AND + - 26
----
0

skipif mysql # not compatible
query I rowsort label-4894
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab2 cor0 WHERE NULL NOT BETWEEN col1 / + 83 AND + - 26
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4895
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IN ( 92 + + CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-4895
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IN ( 92 + + CAST ( NULL AS REAL ) )
----

query I rowsort
SELECT DISTINCT 23 AS col1 FROM tab1 cor0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4897
SELECT - - MAX( DISTINCT - + 80 ) FROM tab2 AS cor0
----
-80

skipif mysql # not compatible
query I rowsort label-4897
SELECT - - MAX ( DISTINCT - + 80 ) FROM tab2 AS cor0
----
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-4898
SELECT ALL col0 DIV + - ( + + 83 ) * + 71 AS col2 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4898
SELECT ALL col0 / + - ( + + 83 ) * + 71 AS col2 FROM tab2 cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4899
SELECT col2 AS col2 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( - CAST( col1 AS SIGNED ) + - col0 )
----

skipif mysql # not compatible
query I rowsort label-4899
SELECT col2 AS col2 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( - CAST ( col1 AS INTEGER ) + - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4900
SELECT + MAX( - 97 ) FROM tab1 cor0
----
-97

skipif mysql # not compatible
query I rowsort label-4900
SELECT + MAX ( - 97 ) FROM tab1 cor0
----
-97

query II rowsort
SELECT + + col1 AS col1, 80 AS col0 FROM tab1 cor0
----
14
80
47
80
5
80

query I rowsort
SELECT DISTINCT + col0 * + 46 FROM tab1 AS cor0
----
2346
3910
4186

onlyif mysql # aggregate syntax: 
query I rowsort label-4903
SELECT DISTINCT SUM( ALL - 96 ) FROM tab0
----
-288

skipif mysql # not compatible
query I rowsort label-4903
SELECT DISTINCT SUM ( ALL - 96 ) FROM tab0
----
-288

onlyif mysql # aggregate syntax: 
query I rowsort label-4904
SELECT COUNT( - + 74 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4904
SELECT COUNT ( - + 74 ) FROM tab1
----
3

query II rowsort
SELECT ALL - col0 * - col2 AS col0, - 72 * - 81 FROM tab1
----
4896
5832
5015
5832
6188
5832

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4906
SELECT * FROM tab1 WHERE NOT NULL >= - CAST( + + 66 AS SIGNED ) * + 5 + + 20
----

skipif mysql # not compatible
query III rowsort label-4906
SELECT * FROM tab1 WHERE NOT NULL >= - CAST ( + + 66 AS INTEGER ) * + 5 + + 20
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4907
SELECT - ( + 29 ) + + COUNT( * ) FROM tab2 WHERE NOT NULL = NULL
----
-29

skipif mysql # not compatible
query I rowsort label-4907
SELECT - ( + 29 ) + + COUNT ( * ) FROM tab2 WHERE NOT NULL = NULL
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-4908
SELECT DISTINCT ( - - ( + COUNT( * ) ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4908
SELECT DISTINCT ( - - ( + COUNT ( * ) ) ) FROM tab0
----
3

query I rowsort
SELECT + col1 * - col2 * - - ( + - 82 ) FROM tab1 cor0
----
110208
24190
262072

query I rowsort
SELECT + col0 + - 4 AS col0 FROM tab0 AS cor0
----
11
83
93

query II rowsort
SELECT ALL col2, - 84 * ( + 25 ) AS col0 FROM tab0
----
10
-2100
47
-2100
99
-2100

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4912
SELECT DISTINCT + CAST( NULL AS SIGNED ), 26 AS col1 FROM tab1 AS cor0
----
NULL
26

skipif mysql # not compatible
query II rowsort label-4912
SELECT DISTINCT + CAST ( NULL AS INTEGER ), 26 AS col1 FROM tab1 AS cor0
----
NULL
26

query I rowsort
SELECT - col2 * col0 * 93 AS col2 FROM tab1 AS cor0
----
-455328
-466395
-575484

query I rowsort
SELECT ALL + 25 AS col0 FROM tab1 AS cor0
----
25
25
25

query I rowsort
SELECT + + col1 * + 15 * - col1 - 33 FROM tab1 AS cor0
----
-2973
-33168
-408

query I rowsort
SELECT 36 * - ( - + col1 ) + - 10 FROM tab0 cor0
----
26
2906
746

onlyif mysql # aggregate syntax: 
query I rowsort label-4917
SELECT ALL + SUM( DISTINCT col2 ) FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-4917
SELECT ALL + SUM ( DISTINCT col2 ) FROM tab2 AS cor0
----
121

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4918
SELECT DISTINCT - 6 + + 33 * ( - col1 ) * + - CAST( + col0 AS SIGNED ) - + 9 AS col1, 69 AS col2 FROM tab2 WHERE NOT - col2 >= NULL
----

skipif mysql # not compatible
query II rowsort label-4918
SELECT DISTINCT - 6 + + 33 * ( - col1 ) * + - CAST ( + col0 AS INTEGER ) - + 9 AS col1, 69 AS col2 FROM tab2 WHERE NOT - col2 >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL IN ( - col2, - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4920
SELECT 52 + + COUNT( * ) AS col2 FROM tab1
----
55

skipif mysql # not compatible
query I rowsort label-4920
SELECT 52 + + COUNT ( * ) AS col2 FROM tab1
----
55

query I rowsort
SELECT 60 + + 79 AS col2 FROM tab0
----
139
139
139

query I rowsort
SELECT DISTINCT - col1 + + 46 FROM tab2
----
-21
-31
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4923
SELECT DISTINCT - 45 + - CAST( + col1 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-126
-46
-66

skipif mysql # not compatible
query I rowsort label-4923
SELECT DISTINCT - 45 + - CAST ( + col1 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-126
-46
-66

query I rowsort
SELECT - 76 FROM tab0 AS cor0 WHERE - 66 IN ( 19 + + - col1 / + col0 + + 36 * - 91 )
----

query I rowsort
SELECT + 86 FROM tab1 AS cor0 WHERE col0 * 79 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4926
SELECT + SUM( - col0 ) FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-4926
SELECT + SUM ( - col0 ) FROM tab2 AS cor0
----
-185

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col0 NOT BETWEEN - col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4928
SELECT ALL 52 - - COUNT( * ) FROM tab0
----
55

skipif mysql # not compatible
query I rowsort label-4928
SELECT ALL 52 - - COUNT ( * ) FROM tab0
----
55

query I rowsort
SELECT ALL - + 4 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5784540a5af6ca2be84399d314acd2fd

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4930
SELECT DISTINCT 97 * + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4930
SELECT DISTINCT 97 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( ( + col1 ) * + col0 ) NOT IN ( 66, + col0 )
----
97
1
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + ( - ( - col1 ) ) AS col0, + 96 col2 FROM tab1 AS cor0
----
14
96
47
96
5
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + - col1 * 69 col1 FROM tab2 AS cor0
----
212520
268134
80937

query II rowsort
SELECT + col1 AS col0, col1 * 77 AS col2 FROM tab0 AS cor0
----
1
77
21
1617
81
6237

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4935
SELECT + CAST( - + 50 AS DECIMAL ) FROM tab1 AS cor0 WHERE NOT 82 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4935
SELECT + CAST ( - + 50 AS REAL ) FROM tab1 AS cor0 WHERE NOT 82 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 41 FROM tab0 cor0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4937
SELECT + MAX( + col2 ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-4937
SELECT + MAX ( + col2 ) FROM tab1 AS cor0
----
96

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( 12 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 FROM tab0 WHERE col0 * col2 IS NULL
----

query I rowsort
SELECT DISTINCT 71 * + + col2 FROM tab2
----
1633
2840
4118

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4941
SELECT ( + + col2 ) AS col1, - CAST( NULL AS SIGNED ) FROM tab1
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-4941
SELECT ( + + col2 ) AS col1, - CAST ( NULL AS INTEGER ) FROM tab1
----
59
NULL
68
NULL
96
NULL

query I rowsort
SELECT DISTINCT + col1 * + col1 * + col0 AS col1 FROM tab2
----
119646
336675
379456

onlyif mysql # DIV for integer division: 
query II rowsort label-4943
SELECT DISTINCT + col0 DIV - col1, - ( - + col0 ) AS col2 FROM tab1
----
-1
91
-17
85
-3
51

skipif mysql # not compatible
query II rowsort label-4943
SELECT DISTINCT + col0 / - col1, - ( - + col0 ) AS col2 FROM tab1
----
-1
91
-17
85
-3
51

query II rowsort
SELECT 12, + col1 AS col1 FROM tab1
----
12
14
12
47
12
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4945
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE NOT col1 / - col2 * + 63 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4945
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE NOT col1 / - col2 * + 63 IS NULL
----
3

query II rowsort
SELECT 64 AS col2, - col0 * col1 * + col1 AS col2 FROM tab2 cor0
----
64
-119646
64
-336675
64
-379456

query I rowsort
SELECT + col0 * - - col1 + - + col2 FROM tab2 AS cor0
----
2323
4888
4967

onlyif mysql # aggregate syntax: 
query I rowsort label-4948
SELECT ALL MAX( ALL + + 26 ) FROM tab0 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-4948
SELECT ALL MAX ( ALL + + 26 ) FROM tab0 AS cor0
----
26

query I rowsort
SELECT - 10 FROM tab0 AS cor0 WHERE NOT ( - - col2 NOT IN ( - col0, col0, + col1 ) )
----

query I rowsort
SELECT DISTINCT + ( + + 28 ) AS col0 FROM tab0
----
28

query I rowsort
SELECT ALL 57 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) <= NULL
----

query I rowsort
SELECT + col1 FROM tab0 AS cor0 WHERE ( - 10 ) * 17 + + col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4953
SELECT - - col0 DIV - col0 + col2 - + 11 FROM tab0 AS cor0
----
-2
35
87

skipif mysql # not compatible
query I rowsort label-4953
SELECT - - col0 / - col0 + col2 - + 11 FROM tab0 AS cor0
----
-2
35
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4954
SELECT DISTINCT - COUNT( - 82 ) AS col1 FROM tab1 AS cor0 WHERE ( NULL ) <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-4954
SELECT DISTINCT - COUNT ( - 82 ) AS col1 FROM tab1 AS cor0 WHERE ( NULL ) <= NULL
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4955
SELECT 42 * - col2 / - CAST( NULL AS DECIMAL ) col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4955
SELECT 42 * - col2 / - CAST ( NULL AS REAL ) col1 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 91 ) * - ( - 33 ) * - - col1 col2 FROM tab1
----
141141
15015
42042

onlyif mysql # aggregate syntax: 
query I rowsort label-4957
SELECT MAX( ALL - col2 ) AS col1 FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-4957
SELECT MAX ( ALL - col2 ) AS col1 FROM tab2
----
-23

query I rowsort
SELECT DISTINCT 89 + col0 AS col0 FROM tab0
----
104
176
186

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4959
SELECT - 51 + CAST( + 60 AS SIGNED ) AS col0, col1 FROM tab2 AS cor0
----
9
51
9
67
9
77

skipif mysql # not compatible
query II rowsort label-4959
SELECT - 51 + CAST ( + 60 AS INTEGER ) AS col0, col1 FROM tab2 AS cor0
----
9
51
9
67
9
77

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN 5 * 7 AND NULL
----

query I rowsort
SELECT ALL - ( - + col2 ) AS col1 FROM tab0
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4962
SELECT DISTINCT CAST( - 22 AS SIGNED ) AS col0, - col2 + - + col0 FROM tab2
----
-22
-104
-22
-133
-22
-69

skipif mysql # not compatible
query II rowsort label-4962
SELECT DISTINCT CAST ( - 22 AS INTEGER ) AS col0, - col2 + - + col0 FROM tab2
----
-22
-104
-22
-133
-22
-69

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 39 < - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-4964
SELECT DISTINCT - - COUNT( DISTINCT + + 85 ) AS col0, 53 FROM tab0 cor0
----
1
53

skipif mysql # not compatible
query II rowsort label-4964
SELECT DISTINCT - - COUNT ( DISTINCT + + 85 ) AS col0, 53 FROM tab0 cor0
----
1
53

onlyif mysql # aggregate syntax: 
query I rowsort label-4965
SELECT - ( - COUNT( * ) ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4965
SELECT - ( - COUNT ( * ) ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4966
SELECT ALL + + SUM( DISTINCT - 62 ) AS col0 FROM tab2 AS cor0
----
-62

skipif mysql # not compatible
query I rowsort label-4966
SELECT ALL + + SUM ( DISTINCT - 62 ) AS col0 FROM tab2 AS cor0
----
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-4967
SELECT + col2 DIV - 74 FROM tab0 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4967
SELECT + col2 / - 74 FROM tab0 cor0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4968
SELECT + + 55 * + - SUM( - + ( + col1 ) ) FROM tab0 AS cor0
----
5665

skipif mysql # not compatible
query I rowsort label-4968
SELECT + + 55 * + - SUM ( - + ( + col1 ) ) FROM tab0 AS cor0
----
5665

query I rowsort
SELECT DISTINCT - + ( - 23 ) AS col1 FROM tab1 AS cor0
----
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * + + col0 + + + col0 col2 FROM tab1 cor0
----
-4845
-4930
-6097

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4971
SELECT * FROM tab1 WHERE NOT + col1 BETWEEN + col0 AND + CAST( - col2 AS SIGNED )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4971
SELECT * FROM tab1 WHERE NOT + col1 BETWEEN + col0 AND + CAST ( - col2 AS INTEGER )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4972
SELECT DISTINCT - COUNT( - - 64 ) FROM tab2 WHERE - 66 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4972
SELECT DISTINCT - COUNT ( - - 64 ) FROM tab2 WHERE - 66 IS NOT NULL
----
-3

query I rowsort
SELECT DISTINCT col1 * + + col1 * - col2 FROM tab1
----
-1475
-150212
-18816

query II rowsort
SELECT col0 AS col1, - col0 AS col2 FROM tab2 WHERE NOT NULL NOT BETWEEN col0 * - col0 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4975
SELECT DISTINCT SUM( DISTINCT col0 ) + + - ( COUNT( * ) ) AS col1 FROM tab2
----
182

skipif mysql # not compatible
query I rowsort label-4975
SELECT DISTINCT SUM ( DISTINCT col0 ) + + - ( COUNT ( * ) ) AS col1 FROM tab2
----
182

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 86 col2 FROM tab2 WHERE NOT ( - - col1 ) IS NOT NULL
----

query I rowsort
SELECT ALL 26 * col1 + + + col1 FROM tab1
----
1269
135
378

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 9 col2 FROM tab2 AS cor0
----
-9
-9
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4979
SELECT MIN( + + 18 ) AS col1 FROM tab2 WHERE - col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4979
SELECT MIN ( + + 18 ) AS col1 FROM tab2 WHERE - col0 IS NULL
----
NULL

query I rowsort
SELECT ALL - + 1 FROM tab0 WHERE NULL IS NULL
----
-1
-1
-1

query I rowsort
SELECT ALL - col2 + - col0 * - ( 1 ) + - col2 AS col1 FROM tab0 AS cor0
----
-101
-79
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4982
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - + 91 FROM tab0 cor0 WHERE NULL <= NULL
----

skipif mysql # not compatible
query I rowsort label-4982
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - + 91 FROM tab0 cor0 WHERE NULL <= NULL
----

query I rowsort
SELECT DISTINCT + - ( + 98 ) + - 6 * - col2 * - col2 AS col2 FROM tab1 AS cor0
----
-20984
-27842
-55394

query I rowsort
SELECT DISTINCT + 1 - + col2 FROM tab0 AS cor0
----
-46
-9
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-4985
SELECT DISTINCT + + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE + col0 NOT BETWEEN col1 + + + 59 AND + + col0
----
2

skipif mysql # not compatible
query I rowsort label-4985
SELECT DISTINCT + + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE + col0 NOT BETWEEN col1 + + + 59 AND + + col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4986
SELECT ALL - ( + MAX( ALL - - col1 ) ) FROM tab0 cor0 WHERE 6 IN ( + 63 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4986
SELECT ALL - ( + MAX ( ALL - - col1 ) ) FROM tab0 cor0 WHERE 6 IN ( + 63 )
----
NULL

query I rowsort
SELECT 54 + col0 FROM tab0 AS cor0
----
141
151
69

query I rowsort
SELECT ALL 6 - + + col1 AS col2 FROM tab2 AS cor0
----
-45
-61
-71

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4989
SELECT DISTINCT + + CAST( NULL AS SIGNED ), col0 AS col0 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-4989
SELECT DISTINCT + + CAST ( NULL AS INTEGER ), col0 AS col0 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4990
SELECT 19 + 80 - col0 + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4990
SELECT 19 + 80 - col0 + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4991
SELECT ALL + 85 DIV - - 36 - COUNT( DISTINCT - - col2 ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-4991
SELECT ALL + 85 / - - 36 - COUNT ( DISTINCT - - col2 ) FROM tab0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4992
SELECT ALL + COUNT( ALL + ( - col0 ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4992
SELECT ALL + COUNT ( ALL + ( - col0 ) ) FROM tab2
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 * - col2 + - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col1 AS col1 FROM tab1 AS cor0 WHERE NOT NULL <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4995
SELECT SUM( + - 96 ) AS col0 FROM tab1 AS cor0
----
-288

skipif mysql # not compatible
query I rowsort label-4995
SELECT SUM ( + - 96 ) AS col0 FROM tab1 AS cor0
----
-288

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( + col0 ) IS NULL
----

query I rowsort
SELECT 85 + - ( - col1 ) AS col1 FROM tab2 AS cor0 WHERE NOT - col1 = - col2
----
136
152
162

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4998
SELECT - - SUM( + + col1 ) DIV + CAST( - COUNT( * ) AS SIGNED ) FROM tab2 AS cor0
----
-65

skipif mysql # not compatible
query I rowsort label-4998
SELECT - - SUM ( + + col1 ) / + CAST ( - COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0
----
-65

query I rowsort
SELECT col2 + col2 FROM tab2 AS cor0 WHERE NOT + col0 <= col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5000
SELECT 27 * - + COUNT( * ) FROM tab2 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-5000
SELECT 27 * - + COUNT ( * ) FROM tab2 AS cor0
----
-81

query II rowsort
SELECT ALL - col0, col0 AS col2 FROM tab1 AS cor0
----
-51
51
-85
85
-91
91

query II rowsort
SELECT DISTINCT + col0, 13 AS col2 FROM tab0 AS cor0
----
15
13
87
13
97
13

query I rowsort
SELECT DISTINCT ( - - 39 ) FROM tab0 AS cor0
----
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 93 col2 FROM tab0 AS cor0
----
93
93
93

query I rowsort
SELECT ALL + ( + - 76 ) AS col0 FROM tab2 AS cor0
----
-76
-76
-76

query I rowsort
SELECT ( + + 99 ) FROM tab2 AS cor0 WHERE NOT col2 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5007
SELECT ALL 20 * 15 * COUNT( * ) FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
900

skipif mysql # not compatible
query I rowsort label-5007
SELECT ALL 20 * 15 * COUNT ( * ) FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
900

query I rowsort
SELECT - col1 FROM tab0 WHERE NOT + 43 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5009
SELECT ALL + 23 AS col2 FROM tab0 WHERE NOT ( NOT CAST( + - 13 AS SIGNED ) IS NOT NULL )
----
23
23
23

skipif mysql # not compatible
query I rowsort label-5009
SELECT ALL + 23 AS col2 FROM tab0 WHERE NOT ( NOT CAST ( + - 13 AS INTEGER ) IS NOT NULL )
----
23
23
23

onlyif mysql # aggregate syntax: 
query I rowsort label-5010
SELECT ALL - COUNT( DISTINCT + col0 ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-5010
SELECT ALL - COUNT ( DISTINCT + col0 ) AS col0 FROM tab2
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5011
SELECT DISTINCT col0 + + CAST( + col1 AS SIGNED ) FROM tab1
----
138
65
90

skipif mysql # not compatible
query I rowsort label-5011
SELECT DISTINCT col0 + + CAST ( + col1 AS INTEGER ) FROM tab1
----
138
65
90

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL IN ( 12, col2 * + col1 + + ( - + col2 ), - col0 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5013
SELECT + CAST( NULL AS DECIMAL ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5013
SELECT + CAST ( NULL AS REAL ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 96 + + + 83 + - - 45 col1 FROM tab2
----
224
224
224

onlyif mysql # aggregate syntax: 
query I rowsort label-5015
SELECT MAX( - 28 ) + - + COUNT( DISTINCT - col1 ) AS col0 FROM tab1
----
-31

skipif mysql # not compatible
query I rowsort label-5015
SELECT MAX ( - 28 ) + - + COUNT ( DISTINCT - col1 ) AS col0 FROM tab1
----
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-5016
SELECT ALL - ( col1 ) + col1 DIV col2 AS col1 FROM tab0 AS cor0
----
-1
-19
-80

skipif mysql # not compatible
query I rowsort label-5016
SELECT ALL - ( col1 ) + col1 / col2 AS col1 FROM tab0 AS cor0
----
-1
-19
-80

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 56 + 44 > NULL
----

query I rowsort
SELECT ALL + + 36 + + col1 FROM tab0 cor0
----
117
37
57

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5019
SELECT ALL - col1 - + col2 * - + 0 AS col2, 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-5019
SELECT ALL - col1 - + col2 * - + 0 AS col2, CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0
----
-14
NULL
-47
NULL
-5
NULL

query I rowsort
SELECT 26 FROM tab2 AS cor0 WHERE + ( 12 ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5021
SELECT ALL - - COUNT( * ) + + COUNT( * ) FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-5021
SELECT ALL - - COUNT ( * ) + + COUNT ( * ) FROM tab1 AS cor0
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col2, - ( col0 ) * - 65 * + + col2 col2 FROM tab0
----
1
624195
21
56550
81
45825

query I rowsort
SELECT DISTINCT + 51 - + col0 AS col0 FROM tab2
----
-13
-24
5

query II rowsort
SELECT ALL - col1 AS col2, 38 + col0 AS col0 FROM tab2
----
-51
84
-67
113
-77
102

query II rowsort
SELECT DISTINCT col2, col2 FROM tab1
----
59
59
68
68
96
96

query I rowsort
SELECT - col2 - - 8 FROM tab1
----
-51
-60
-88

query II rowsort
SELECT ALL col2 AS col0, + col1 FROM tab1
----
59
5
68
47
96
14

query I rowsort
SELECT ( + 38 ) AS col0 FROM tab0
----
38
38
38

query I rowsort
SELECT DISTINCT - col2 * - + col1 FROM tab2
----
1173
3080
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-5030
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL > col2 / - ( + ( 72 ) )
----
0

skipif mysql # not compatible
query I rowsort label-5030
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL > col2 / - ( + ( 72 ) )
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 65 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5032
SELECT ( - col1 ), CAST( + - col2 AS SIGNED ) * + col2 - col1 * col0 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND ( NULL )
----

skipif mysql # not compatible
query II rowsort label-5032
SELECT ( - col1 ), CAST ( + - col2 AS INTEGER ) * + col2 - col1 * col0 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND ( NULL )
----

query I rowsort
SELECT - 41 FROM tab0 AS cor0 WHERE NOT col0 * - col0 * - col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5034
SELECT DISTINCT - + 8 DIV + 28, - 46 + - col1 AS col1 FROM tab1 AS cor0
----
0
-51
0
-60
0
-93

skipif mysql # not compatible
query II rowsort label-5034
SELECT DISTINCT - + 8 / + 28, - 46 + - col1 AS col1 FROM tab1 AS cor0
----
0
-51
0
-60
0
-93

query I rowsort
SELECT DISTINCT - - 62 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 76 col1 FROM tab2 AS cor0
----
76

query I rowsort
SELECT ALL + ( - - ( + - 46 ) ) AS col2 FROM tab0 cor0
----
-46
-46
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-5038
SELECT DISTINCT - COUNT( * ) * + 46 FROM tab0 AS cor0
----
-138

skipif mysql # not compatible
query I rowsort label-5038
SELECT DISTINCT - COUNT ( * ) * + 46 FROM tab0 AS cor0
----
-138

query II rowsort
SELECT ALL - 54, 98 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT DISTINCT + 97 AS col0, + col1 AS col0 FROM tab1
----
97
14
97
47
97
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5041
SELECT + MIN( + - col1 ) AS col0 FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-5041
SELECT + MIN ( + - col1 ) AS col0 FROM tab2
----
-77

query II rowsort
SELECT 32, + col0 FROM tab0
----
32
15
32
87
32
97

query III rowsort
SELECT * FROM tab0 WHERE col0 - - + col0 + 90 - + - col0 * - + col2 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NULL <> + 26 / + - 57
----

query II rowsort
SELECT DISTINCT + 79, col2 + + + col1 * + + 54 + - - 4 AS col2 FROM tab2
----
79
2781
79
3680
79
4202

onlyif mysql # aggregate syntax: 
query I rowsort label-5046
SELECT ALL + 23 + COUNT( * ) + - MIN( DISTINCT + ( - - col1 ) ) FROM tab1
----
21

skipif mysql # not compatible
query I rowsort label-5046
SELECT ALL + 23 + COUNT ( * ) + - MIN ( DISTINCT + ( - - col1 ) ) FROM tab1
----
21

query I rowsort
SELECT ALL - col0 + - 37 * + 68 + - col2 FROM tab0 AS cor0
----
-2578
-2613
-2712

query I rowsort
SELECT ALL col2 - + + col0 AS col1 FROM tab0
----
-77
2
32

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5049
SELECT col1 DIV - CAST( NULL AS SIGNED ) AS col2, 42 DIV col1 AS col1 FROM tab0
----
NULL
0
NULL
2
NULL
42

skipif mysql # not compatible
query II rowsort label-5049
SELECT col1 / - CAST ( NULL AS INTEGER ) AS col2, 42 / col1 AS col1 FROM tab0
----
NULL
0
NULL
2
NULL
42

query I rowsort
SELECT 14 - + + col0 AS col0 FROM tab0
----
-1
-73
-83

query I rowsort
SELECT 58 - col0 FROM tab2
----
-17
-6
12

query I rowsort
SELECT - col0 - 4 FROM tab0 AS cor0
----
-101
-19
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5053
SELECT + COUNT( * ) - - 90 FROM tab1 cor0
----
93

skipif mysql # not compatible
query I rowsort label-5053
SELECT + COUNT ( * ) - - 90 FROM tab1 cor0
----
93

query I rowsort
SELECT DISTINCT 64 * + + 6 + col1 * - col2 AS col0 FROM tab0 AS cor0
----
-3423
174
285

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( + col0 ) NOT BETWEEN NULL AND - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + + 32 + + 59 AS col2 FROM tab0 AS cor0
----
91
91
91

query I rowsort
SELECT DISTINCT - + 69 + + col0 * col2 AS col0 FROM tab0 AS cor0
----
636
801
9534

onlyif mysql # aggregate syntax: 
query I rowsort label-5058
SELECT COUNT( * ) * - COUNT( * ) + - 57 AS col2 FROM tab0 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-5058
SELECT COUNT ( * ) * - COUNT ( * ) + - 57 AS col2 FROM tab0 AS cor0
----
-66

query I rowsort
SELECT + col2 + + 87 AS col2 FROM tab2 AS cor0
----
110
127
145

onlyif mysql # aggregate syntax: 
query I rowsort label-5060
SELECT ALL - COUNT( * ) + - ( - - 3 ) FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-5060
SELECT ALL - COUNT ( * ) + - ( - - 3 ) FROM tab2 AS cor0
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5061
SELECT DISTINCT col0 * - - col1 * + col2 + - - col0 + - CAST( NULL AS SIGNED ) + - col2 * + + 93 - - + 24 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5061
SELECT DISTINCT col0 * - - col1 * + col2 + - - col0 + - CAST ( NULL AS INTEGER ) + - col2 * + + 93 - - + 24 AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5062
SELECT ALL + COUNT( DISTINCT 44 ) AS col0 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-5062
SELECT ALL + COUNT ( DISTINCT 44 ) AS col0 FROM tab1
----
1

query II rowsort
SELECT DISTINCT col2, col1 FROM tab0
----
10
21
47
81
99
1

query I rowsort
SELECT DISTINCT - 17 * 22 FROM tab2
----
-374

query I rowsort
SELECT DISTINCT - - 26 * - - 71 - + 65 AS col1 FROM tab2 WHERE NOT NULL < NULL
----

query I rowsort
SELECT + col0 * + 50 FROM tab0
----
4350
4850
750

query I rowsort
SELECT - col1 AS col2 FROM tab1 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT - col1 * 70 AS col0 FROM tab0
----
-1470
-5670
-70

query I rowsort
SELECT ALL - col0 * ( - ( + col0 ) ) AS col2 FROM tab1
----
2601
7225
8281

onlyif mysql # aggregate syntax: 
query I rowsort label-5070
SELECT DISTINCT + 90 * - - COUNT( * ) AS col0 FROM tab1
----
270

skipif mysql # not compatible
query I rowsort label-5070
SELECT DISTINCT + 90 * - - COUNT ( * ) AS col0 FROM tab1
----
270

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col0 BETWEEN NULL AND - 45
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5072
SELECT DISTINCT + col2 DIV + - 47 AS col2 FROM tab2 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-5072
SELECT DISTINCT + col2 / + - 47 AS col2 FROM tab2 AS cor0
----
-1
0

query I rowsort
SELECT + col0 * - col0 * - col2 AS col2 FROM tab2 AS cor0
----
163840
326250
48668

onlyif mysql # aggregate syntax: 
query I rowsort label-5074
SELECT DISTINCT - ( - COUNT( 64 ) ) * + - 59 col1 FROM tab2 AS cor0
----
-177

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5074
SELECT DISTINCT - ( - COUNT ( 64 ) ) * + - 59 col1 FROM tab2 AS cor0
----
-177

onlyif mysql # aggregate syntax: 
query I rowsort label-5075
SELECT DISTINCT + - COUNT( + 22 ) AS col0 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND 14
----
0

skipif mysql # not compatible
query I rowsort label-5075
SELECT DISTINCT + - COUNT ( + 22 ) AS col0 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND 14
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5076
SELECT ALL + + COUNT( * ) col0 FROM ( tab2 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-5076
SELECT ALL + + COUNT ( * ) col0 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9

query II rowsort
SELECT DISTINCT + 54 AS col2, 87 AS col1 FROM tab1
----
54
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5078
SELECT + SUM( + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5078
SELECT + SUM ( + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT col1 FROM tab0 cor0 WHERE NOT + col1 IS NOT NULL
----

query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE NOT 45 * 74 NOT BETWEEN NULL AND - + 8
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5081
SELECT + col0 + - CAST( + - 62 AS SIGNED ) + - col2 FROM tab0 AS cor0
----
139
30
60

skipif mysql # not compatible
query I rowsort label-5081
SELECT + col0 + - CAST ( + - 62 AS INTEGER ) + - col2 FROM tab0 AS cor0
----
139
30
60

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5082
SELECT * FROM tab0 AS cor0 WHERE NOT col1 * - col1 NOT IN ( + 77 + + + CAST( NULL AS SIGNED ) + + col2 * col2 )
----

skipif mysql # not compatible
query III rowsort label-5082
SELECT * FROM tab0 AS cor0 WHERE NOT col1 * - col1 NOT IN ( + 77 + + + CAST ( NULL AS INTEGER ) + + col2 * col2 )
----

query I rowsort
SELECT col2 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col0 * ( - - 30 ) - col2 AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5085
SELECT - col1 DIV + 19 FROM tab1
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-5085
SELECT - col1 / + 19 FROM tab1
----
-2
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5086
SELECT MAX( - - CAST( NULL AS SIGNED ) ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5086
SELECT MAX ( - - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - + col0 ) col2 FROM tab1
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5088
SELECT DISTINCT - - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5088
SELECT DISTINCT - - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + 52 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 7f4ae30893ab330784829711032ae599

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5090
SELECT - col2 / + - CAST( NULL AS SIGNED ) + 80 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5090
SELECT - col2 / + - CAST ( NULL AS INTEGER ) + 80 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5091
SELECT - col2 DIV 71 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5091
SELECT - col2 / 71 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + col0 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + + col2 * + 43 FROM tab2 AS cor0
----
1720
2494
989

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 - - + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5095
SELECT DISTINCT COUNT( ALL col2 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5095
SELECT DISTINCT COUNT ( ALL col2 ) FROM tab0 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-5096
SELECT - ( - col1 ), col0 - col1 DIV + col0 AS col1 FROM tab1
----
14
51
47
91
5
85

skipif mysql # not compatible
query II rowsort label-5096
SELECT - ( - col1 ), col0 - col1 / + col0 AS col1 FROM tab1
----
14
51
47
91
5
85

query I rowsort
SELECT - 2 AS col0 FROM tab2
----
-2
-2
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5098
SELECT DISTINCT CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) * - 16 * col0 col1 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5098
SELECT DISTINCT CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) * - 16 * col0 col1 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5099
SELECT DISTINCT - 57 * + 93, + 20 * + COUNT( * ) AS col0 FROM tab2
----
-5301
60

skipif mysql # not compatible
query II rowsort label-5099
SELECT DISTINCT - 57 * + 93, + 20 * + COUNT ( * ) AS col0 FROM tab2
----
-5301
60

onlyif mysql # aggregate syntax: 
query I rowsort label-5100
SELECT DISTINCT - + COUNT( * ) FROM tab2 WHERE NOT + - col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5100
SELECT DISTINCT - + COUNT ( * ) FROM tab2 WHERE NOT + - col2 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5101
SELECT ( COUNT( * ) ) DIV + 86 + + + 17 AS col1 FROM tab2
----
17

skipif mysql # not compatible
query I rowsort label-5101
SELECT ( COUNT ( * ) ) / + 86 + + + 17 AS col1 FROM tab2
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-5102
SELECT + 7 * + 84 * COUNT( * ) AS col0 FROM tab1
----
1764

skipif mysql # not compatible
query I rowsort label-5102
SELECT + 7 * + 84 * COUNT ( * ) AS col0 FROM tab1
----
1764

query III rowsort
SELECT * FROM tab0 WHERE NOT + 90 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 67 AS col1 FROM tab0 AS cor0 WHERE NOT 42 + + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5105
SELECT + 41 * ( - 62 ), + COUNT( - 77 ) AS col1 FROM tab1 AS cor0
----
-2542
3

skipif mysql # not compatible
query II rowsort label-5105
SELECT + 41 * ( - 62 ), + COUNT ( - 77 ) AS col1 FROM tab1 AS cor0
----
-2542
3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 64 IN ( - 63 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5107
SELECT + MIN( - + col1 ) AS col0 FROM tab0 AS cor0 WHERE col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5107
SELECT + MIN ( - + col1 ) AS col0 FROM tab0 AS cor0 WHERE col1 IS NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE 53 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + - 55 AS col0 FROM tab2 AS cor0
----
-55
-55
-55

query I rowsort
SELECT ALL - ( + + col1 ) * + 16 * - 66 FROM tab2 AS cor0
----
53856
70752
81312

onlyif mysql # DIV for integer division: 
query I rowsort label-5111
SELECT - 10 DIV - + col0 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5111
SELECT - 10 / - + col0 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col2 * + 57 * + col1 FROM tab1 AS cor0
----
-16815
-182172
-76608

query I rowsort
SELECT ALL col0 * col0 * + ( col2 ) AS col0 FROM tab1
----
249696
426275
563108

query III rowsort
SELECT * FROM tab2 WHERE ( NOT + col1 BETWEEN 66 AND - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 + + - 12 FROM tab0
----
-11
69
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5116
SELECT DISTINCT COUNT( DISTINCT 64 ) + + 61 FROM tab1
----
62

skipif mysql # not compatible
query I rowsort label-5116
SELECT DISTINCT COUNT ( DISTINCT 64 ) + + 61 FROM tab1
----
62

query I rowsort
SELECT 4 + - 72 FROM tab2
----
-68
-68
-68

query I rowsort
SELECT ALL - 55 + - col1 AS col1 FROM tab0
----
-136
-56
-76

query I rowsort
SELECT DISTINCT - col0 + + col2 + col1 * col2 * - + col1 AS col2 FROM tab0
----
-308335
-4487
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5120
SELECT DISTINCT + CAST( NULL AS SIGNED ) + col0 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5120
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + col0 AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5121
SELECT - + 12 AS col2, COUNT( ALL - col1 ) FROM tab2 AS cor0
----
-12
3

skipif mysql # not compatible
query II rowsort label-5121
SELECT - + 12 AS col2, COUNT ( ALL - col1 ) FROM tab2 AS cor0
----
-12
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 13 col1 FROM tab1 cor0
----
-13
-13
-13

query I rowsort
SELECT DISTINCT - 83 - - 98 AS col1 FROM tab0 AS cor0
----
15

query I rowsort
SELECT ALL + - 11 * - - col1 * + + col2 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab2 AS cor1 WHERE NULL < NULL
----

query I rowsort
SELECT 0 * - + col1 FROM tab2 cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5127
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 14 + - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-5127
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 14 + - CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5128
SELECT ALL 94 * + + COUNT( + - 0 ) AS col0 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col0 AND - col2
----
0

skipif mysql # not compatible
query I rowsort label-5128
SELECT ALL 94 * + + COUNT ( + - 0 ) AS col0 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col0 AND - col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5129
SELECT - - 92 * + col2 * - CAST( - 74 AS SIGNED ) FROM tab1 AS cor0
----
401672
462944
653568

skipif mysql # not compatible
query I rowsort label-5129
SELECT - - 92 * + col2 * - CAST ( - 74 AS INTEGER ) FROM tab1 AS cor0
----
401672
462944
653568

query I rowsort
SELECT + + 23 * - 99 * - col2 AS col1 FROM tab2 AS cor0
----
132066
52371
91080

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL < col2
----

query III rowsort
SELECT ALL * FROM tab0 WHERE 24 + + 76 NOT BETWEEN + - col0 AND - col0 OR ( NULL ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5133
SELECT - - col1 + - col0, col0 / - col1 FROM tab2 WHERE NOT NULL NOT BETWEEN - 70 AND + CAST( + ( + col2 ) AS SIGNED )
----

skipif mysql # not compatible
query II rowsort label-5133
SELECT - - col1 + - col0, col0 / - col1 FROM tab2 WHERE NOT NULL NOT BETWEEN - 70 AND + CAST ( + ( + col2 ) AS INTEGER )
----

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab2 WHERE - + col0 = - + ( 13 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE col1 BETWEEN col2 AND NULL
----

query II rowsort
SELECT + col1 AS col0, - 57 FROM tab1
----
14
-57
47
-57
5
-57

query I rowsort
SELECT ( - + col0 ) FROM tab2 AS cor0 WHERE NOT - col1 IS NULL
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-5138
SELECT ALL COUNT( - col0 ) col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5138
SELECT ALL COUNT ( - col0 ) col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT 74 FROM tab0 AS cor0 WHERE NOT ( NULL ) < - 10
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 NOT BETWEEN - - col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5141
SELECT ALL - 4 * MAX( + + ( + col1 ) ) AS col0 FROM tab1 cor0
----
-188

skipif mysql # not compatible
query I rowsort label-5141
SELECT ALL - 4 * MAX ( + + ( + col1 ) ) AS col0 FROM tab1 cor0
----
-188

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + - 11 IS NULL
----

query I rowsort
SELECT ALL col0 * col0 + + 99 AS col0 FROM tab1
----
2700
7324
8380

onlyif mysql # aggregate syntax: 
query I rowsort label-5144
SELECT DISTINCT + + COUNT( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5144
SELECT DISTINCT + + COUNT ( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5145
SELECT DISTINCT - SUM( + + col1 ) FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-5145
SELECT DISTINCT - SUM ( + + col1 ) FROM tab1 AS cor0
----
-66

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 39 * + col0 IS NULL
----

query I rowsort
SELECT ALL col2 * + 15 FROM tab1 AS cor0
----
1020
1440
885

query I rowsort
SELECT ALL - + 35 + - + col0 AS col0 FROM tab1 cor0
----
-120
-126
-86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5149
SELECT ALL MAX( ALL + col1 ) DIV + 30 col0 FROM tab2
----
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5149
SELECT ALL MAX ( ALL + col1 ) / + 30 col0 FROM tab2
----
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 50 col2 FROM tab1
----
50
50
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5151
SELECT DISTINCT CAST( col0 AS SIGNED ) * - + col0 FROM tab1
----
-2601
-7225
-8281

skipif mysql # not compatible
query I rowsort label-5151
SELECT DISTINCT CAST ( col0 AS INTEGER ) * - + col0 FROM tab1
----
-2601
-7225
-8281

onlyif mysql # DIV for integer division: 
query I rowsort label-5152
SELECT ALL 78 DIV col0 AS col1 FROM tab0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-5152
SELECT ALL 78 / col0 AS col1 FROM tab0
----
0
0
5

query I rowsort
SELECT + col1 * - + col2 - - col2 AS col2 FROM tab1
----
-1248
-236
-3128

query I rowsort
SELECT + col1 - + col1 * - + 20 * - col1 AS col0 FROM tab1 AS cor0 WHERE NULL >= + 70 * + 42
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5155
SELECT ALL 29 - - - COUNT( * ) AS col2 FROM tab0 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-5155
SELECT ALL 29 - - - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
26

query I rowsort
SELECT DISTINCT + col2 * + 8 FROM tab2
----
184
320
464

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 79 * col1 col1 FROM tab2 cor0
----
4029
5293
6083

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col0 * - col2 * 50 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN 0 AND 40
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5160
SELECT DISTINCT - - 95 AS col0, CAST( NULL AS SIGNED ) - + + col2 AS col2 FROM tab0 AS cor0
----
95
NULL

skipif mysql # not compatible
query II rowsort label-5160
SELECT DISTINCT - - 95 AS col0, CAST ( NULL AS INTEGER ) - + + col2 AS col2 FROM tab0 AS cor0
----
95
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 62 col0 FROM tab2 AS cor0
----
-62

query II rowsort
SELECT + col0, + col1 FROM tab1 AS cor0
----
51
14
85
5
91
47

query II rowsort
SELECT + 71 * + 93 AS col2, - col2 + - - ( - + 88 ) * col1 * - - 26 + - 64 FROM tab2 AS cor0
----
6603
-116775
6603
-153418
6603
-176280

onlyif mysql # aggregate syntax: 
query I rowsort label-5164
SELECT DISTINCT ( SUM( DISTINCT - col0 ) ) FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-5164
SELECT DISTINCT ( SUM ( DISTINCT - col0 ) ) FROM tab2
----
-185

onlyif mysql # DIV for integer division: 
query II rowsort label-5165
SELECT DISTINCT + col2 DIV + 42, col2 FROM tab1
----
1
59
1
68
2
96

skipif mysql # not compatible
query II rowsort label-5165
SELECT DISTINCT + col2 / + 42, col2 FROM tab1
----
1
59
1
68
2
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5166
SELECT ALL + SUM( DISTINCT + col0 ) FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-5166
SELECT ALL + SUM ( DISTINCT + col0 ) FROM tab2
----
185

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL > + 58
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) = + col0 * + 73
----

query I rowsort
SELECT ALL + col2 * col2 * - col0 * - + col0 FROM tab2
----
1119364
18922500
6553600

query I rowsort
SELECT DISTINCT + col0 + col1 + col1 * - - 83 FROM tab0 AS cor0
----
181
1851
6819

onlyif mysql # aggregate syntax: 
query I rowsort label-5171
SELECT 4 - - ( MAX( - col2 ) ) AS col0 FROM tab1 AS cor0
----
-55

skipif mysql # not compatible
query I rowsort label-5171
SELECT 4 - - ( MAX ( - col2 ) ) AS col0 FROM tab1 AS cor0
----
-55

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5172
SELECT * FROM tab2 AS cor0 WHERE col0 * - 72 = + - ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5172
SELECT * FROM tab2 AS cor0 WHERE col0 * - 72 = + - ( - CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT - 42 + 72 FROM tab2 AS cor0
----
30
30
30

onlyif mysql # DIV for integer division: 
query II rowsort label-5174
SELECT ALL - 33 DIV - - 60 * 51 - - col1, col1 AS col2 FROM tab0
----
1
1
21
21
81
81

skipif mysql # not compatible
query II rowsort label-5174
SELECT ALL - 33 / - - 60 * 51 - - col1, col1 AS col2 FROM tab0
----
1
1
21
21
81
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5175
SELECT SUM( + + col1 ) col1 FROM tab1 WHERE + col0 IS NOT NULL
----
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5175
SELECT SUM ( + + col1 ) col1 FROM tab1 WHERE + col0 IS NOT NULL
----
66

query II rowsort
SELECT DISTINCT ( + 73 ) * col2 - + col2 + - col1 AS col2, col2 AS col0 FROM tab0
----
3303
47
699
10
7127
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 41 * col2 col2 FROM tab0
----
-1927
-4059
-410

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5178
SELECT ( + ( + CAST( NULL AS DECIMAL ) ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5178
SELECT ( + ( + CAST ( NULL AS REAL ) ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5179
SELECT + MAX( + col1 ) AS col1, 42 * + 41 FROM tab0 AS cor0
----
81
1722

skipif mysql # not compatible
query II rowsort label-5179
SELECT + MAX ( + col1 ) AS col1, 42 * + 41 FROM tab0 AS cor0
----
81
1722

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT - 21 / col0 BETWEEN - 19 / - - 72 AND NULL )
----

query I rowsort
SELECT DISTINCT - + col0 * + + col0 FROM tab1 AS cor0
----
-2601
-7225
-8281

onlyif mysql # DIV for integer division: 
query I rowsort label-5182
SELECT col0 DIV col0 DIV + col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5182
SELECT col0 / col0 / + col2 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5183
SELECT - - col1 * + CAST( - - 73 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
3723
4891
5621

skipif mysql # not compatible
query I rowsort label-5183
SELECT - - col1 * + CAST ( - - 73 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
3723
4891
5621

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + - 25 col1 FROM tab2 AS cor0
----
1275
1675
1925

query I rowsort
SELECT - 65 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-65
-65
-65

query II rowsort
SELECT ALL - col2 AS col0, - 77 AS col0 FROM tab1
----
-59
-77
-68
-77
-96
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-5187
SELECT ALL + 18 AS col1, COUNT( * ) col2 FROM tab0
----
18
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5187
SELECT ALL + 18 AS col1, COUNT ( * ) col2 FROM tab0
----
18
3

query II rowsort
SELECT + 89 AS col1, col0 - col2 AS col0 FROM tab2
----
89
17
89
23
89
24

query III rowsort
SELECT ALL * FROM tab1 WHERE - col2 = col2
----

query I rowsort
SELECT DISTINCT - 95 AS col0 FROM tab2 AS cor0 WHERE NOT + 54 + - - col2 * - col1 IS NOT NULL
----

query II rowsort
SELECT 18, + col1 FROM tab0 AS cor0
----
18
1
18
21
18
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5192
SELECT ALL - - MAX( ALL col0 ) FROM tab1 cor0
----
91

skipif mysql # not compatible
query I rowsort label-5192
SELECT ALL - - MAX ( ALL col0 ) FROM tab1 cor0
----
91

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5193
SELECT ALL - 91 * CAST( col2 AS SIGNED ) DIV - col2 + - 23 + + + col1 FROM tab2
----
119
135
145

skipif mysql # not compatible
query I rowsort label-5193
SELECT ALL - 91 * CAST ( col2 AS INTEGER ) / - col2 + - 23 + + + col1 FROM tab2
----
119
135
145

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5194
SELECT COUNT( * ) * - COUNT( DISTINCT CAST( col2 AS SIGNED ) ) + - 97 AS col1 FROM tab1
----
-106

skipif mysql # not compatible
query I rowsort label-5194
SELECT COUNT ( * ) * - COUNT ( DISTINCT CAST ( col2 AS INTEGER ) ) + - 97 AS col1 FROM tab1
----
-106

query I rowsort
SELECT DISTINCT - 89 + - 84 AS col0 FROM tab2 AS cor0
----
-173

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL <= - 45
----

query I rowsort
SELECT ( + + ( + + 90 ) ) AS col1 FROM tab0 cor0 WHERE 6 + - - 2 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 72 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 AS col2 FROM tab1 WHERE ( NULL ) IS NOT NULL
----

query II rowsort
SELECT + 73, col0 + + + 28 AS col2 FROM tab0
----
73
115
73
125
73
43

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5201
SELECT - col1 - col2 DIV CAST( - - col1 AS SIGNED ) FROM tab0
----
-100
-21
-81

skipif mysql # not compatible
query I rowsort label-5201
SELECT - col1 - col2 / CAST ( - - col1 AS INTEGER ) FROM tab0
----
-100
-21
-81

query I rowsort
SELECT ALL - 86 * - col2 - - 51 FROM tab0
----
4093
8565
911

query I rowsort
SELECT + col0 - + ( - col1 ) * 12 * - - col0 AS col0 FROM tab0
----
1261
14595
22011

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NOT - ( - col2 ) >= - 7 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col0 - + col0 + col2 + + col0 FROM tab2
----
104
133
69

query I rowsort
SELECT ALL 84 * + 26 * - col2 FROM tab2
----
-126672
-50232
-87360

query I rowsort
SELECT - 89 + + col0 FROM tab0 AS cor0
----
-2
-74
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5208
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 0 * 22 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5208
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 0 * 22 FROM tab2 cor0
----
NULL

query I rowsort
SELECT + - ( - 43 ) AS col2 FROM tab2 AS cor0
----
43
43
43

query III rowsort
SELECT * FROM tab2 WHERE NOT - 28 + 91 IN ( col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE col0 - - col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col1 FROM tab0 WHERE NOT - col0 IS NOT NULL
----

query I rowsort
SELECT ALL - 88 AS col2 FROM tab1
----
-88
-88
-88

query I rowsort
SELECT ALL - col0 + - col2 * - col1 AS col0 FROM tab0 WHERE NOT - col2 * + col1 IS NULL
----
123
2
3792

query I rowsort
SELECT DISTINCT col2 + 78 * - ( col1 + - col1 ) FROM tab0
----
10
47
99

query I rowsort
SELECT ALL col2 * 82 - col1 FROM tab0
----
3773
799
8117

onlyif mysql # aggregate syntax: 
query I rowsort label-5217
SELECT 32 + COUNT( ALL col0 ) FROM tab2
----
35

skipif mysql # not compatible
query I rowsort label-5217
SELECT 32 + COUNT ( ALL col0 ) FROM tab2
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5218
SELECT * FROM tab0 WHERE NOT CAST( NULL AS SIGNED ) * - col2 NOT IN ( - col0 )
----

skipif mysql # not compatible
query III rowsort label-5218
SELECT * FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) * - col2 NOT IN ( - col0 )
----

query I rowsort
SELECT ALL - 71 * - 10 + + 91 FROM tab1
----
801
801
801

onlyif mysql # aggregate syntax: 
query I rowsort label-5220
SELECT DISTINCT MIN( - 74 ) AS col2 FROM tab1 WHERE ( - col2 ) NOT IN ( - col1 )
----
-74

skipif mysql # not compatible
query I rowsort label-5220
SELECT DISTINCT MIN ( - 74 ) AS col2 FROM tab1 WHERE ( - col2 ) NOT IN ( - col1 )
----
-74

query III rowsort
SELECT * FROM tab1 WHERE NOT 40 + ( + 39 ) * - 6 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col0 + - 6 * - 22 FROM tab0
----
147
219
229

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5223
SELECT ALL CAST( NULL AS SIGNED ) col1 FROM tab1 WHERE NOT ( NULL ) BETWEEN col1 AND - col0 * col0
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5223
SELECT ALL CAST ( NULL AS INTEGER ) col1 FROM tab1 WHERE NOT ( NULL ) BETWEEN col1 AND - col0 * col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5224
SELECT ALL CAST( - COUNT( * ) AS SIGNED ) FROM tab1 WHERE NOT 16 + col2 NOT BETWEEN ( CAST( col2 AS SIGNED ) ) AND + 63
----
0

skipif mysql # not compatible
query I rowsort label-5224
SELECT ALL CAST ( - COUNT ( * ) AS INTEGER ) FROM tab1 WHERE NOT 16 + col2 NOT BETWEEN ( CAST ( col2 AS INTEGER ) ) AND + 63
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5225
SELECT DISTINCT COUNT( * ) AS col0 FROM tab1 WHERE NOT NULL BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-5225
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab1 WHERE NOT NULL BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT col0 FROM tab0 WHERE + col0 / col1 <= ( NULL )
----

query I rowsort
SELECT col1 - - 0 AS col2 FROM tab1
----
14
47
5

query I rowsort
SELECT - ( - 69 ) AS col1 FROM tab1
----
69
69
69

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 NOT BETWEEN + col1 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 84 + 20 col2 FROM tab1
----
104
104
104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5231
SELECT COUNT( * ) FROM tab2 WHERE NOT - CAST( NULL AS SIGNED ) BETWEEN ( - 74 / 35 ) AND col2
----
0

skipif mysql # not compatible
query I rowsort label-5231
SELECT COUNT ( * ) FROM tab2 WHERE NOT - CAST ( NULL AS INTEGER ) BETWEEN ( - 74 / 35 ) AND col2
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 * 25 <> - 60 * col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN ( NULL ) AND 13 * col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5234
SELECT ALL + col2 + CAST( NULL AS SIGNED ) * + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5234
SELECT ALL + col2 + CAST ( NULL AS INTEGER ) * + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5235
SELECT COUNT( * ) + + 16 FROM tab0 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-5235
SELECT COUNT ( * ) + + 16 FROM tab0 AS cor0
----
19

query I rowsort
SELECT col1 + + 2 AS col1 FROM tab2 AS cor0
----
53
69
79

onlyif mysql # aggregate syntax: 
query I rowsort label-5237
SELECT DISTINCT SUM( ALL - col1 ) AS col2 FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-5237
SELECT DISTINCT SUM ( ALL - col1 ) AS col2 FROM tab0 AS cor0
----
-103

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5238
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) >= + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5238
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) >= + CAST ( NULL AS INTEGER )
----

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 WHERE NOT 81 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE 80 BETWEEN ( ( col1 ) ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5241
SELECT MIN( DISTINCT 21 ) + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE ( ( + col2 ) ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5241
SELECT MIN ( DISTINCT 21 ) + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE ( ( + col2 ) ) IS NULL
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 / col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-5243
SELECT DISTINCT - 11 + col2 DIV - col2 AS col1 FROM tab0 cor0
----
-12

skipif mysql # not compatible
query I rowsort label-5243
SELECT DISTINCT - 11 + col2 / - col2 AS col1 FROM tab0 cor0
----
-12

query I rowsort
SELECT - + col1 - + col2 * col0 AS col0 FROM tab1 AS cor0
----
-4910
-5020
-6235

query I rowsort
SELECT + - 57 - + ( + col0 ) * col1 AS col2 FROM tab2 AS cor0
----
-2403
-4985
-5082

onlyif mysql # aggregate syntax: 
query I rowsort label-5246
SELECT COUNT( + col2 ) FROM tab1 cor0 WHERE NULL IN ( col0 )
----
0

skipif mysql # not compatible
query I rowsort label-5246
SELECT COUNT ( + col2 ) FROM tab1 cor0 WHERE NULL IN ( col0 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5247
SELECT 42 * + 48 - - CAST( NULL AS SIGNED ) * - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5247
SELECT 42 * + 48 - - CAST ( NULL AS INTEGER ) * - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( + col0 ) IN ( col1 * - 9 )
----

query I rowsort
SELECT + col2 FROM tab1 AS cor0 WHERE ( 47 ) IS NOT NULL
----
59
68
96

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT - 77 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5251
SELECT + col0 + CAST( + ( col2 ) AS SIGNED ) FROM tab1 AS cor0
----
144
147
159

skipif mysql # not compatible
query I rowsort label-5251
SELECT + col0 + CAST ( + ( col2 ) AS INTEGER ) FROM tab1 AS cor0
----
144
147
159

query I rowsort
SELECT - 27 + col1 * 77 FROM tab1 AS cor0
----
1051
358
3592

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 * + col2 IS NULL
----

query I rowsort
SELECT - ( 95 ) + + 20 FROM tab0 cor0
----
-75
-75
-75

query I rowsort
SELECT ALL + col2 FROM tab0 AS cor0 WHERE col0 NOT IN ( col1 * col1 )
----
10
47
99

query I rowsort
SELECT 83 * col2 + - col2 AS col1 FROM tab1 AS cor0
----
4838
5576
7872

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE col0 <> ( 68 )
----
46
64
75

query I rowsort
SELECT ALL - col2 + + ( 7 ) FROM tab1 AS cor0
----
-52
-61
-89

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5259
SELECT * FROM tab0 WHERE ( ( + CAST( - 53 AS DECIMAL ) ) / - col2 ) > ( 77 ) + + col1
----

skipif mysql # not compatible
query III rowsort label-5259
SELECT * FROM tab0 WHERE ( ( + CAST ( - 53 AS REAL ) ) / - col2 ) > ( 77 ) + + col1
----

query I rowsort
SELECT ALL col1 * + - col0 - 85 FROM tab2
----
-2431
-5013
-5110

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5261
SELECT DISTINCT + AVG ( col1 ) - + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5261
SELECT DISTINCT + AVG ( col1 ) - + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT ALL 48 * + 32 * 87 FROM tab1
----
133632
133632
133632

query I rowsort
SELECT ALL + col1 * - col0 FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN - col0 * - col1 AND + 98
----

query I rowsort
SELECT DISTINCT col1 * - - col1 FROM tab0
----
1
441
6561

query I rowsort
SELECT DISTINCT - 88 FROM tab2 WHERE NOT ( NULL ) NOT IN ( + col2 * - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5266
SELECT * FROM tab0 WHERE NOT 75 + + col2 BETWEEN NULL AND ( + CAST( NULL AS SIGNED ) / 15 )
----

skipif mysql # not compatible
query III rowsort label-5266
SELECT * FROM tab0 WHERE NOT 75 + + col2 BETWEEN NULL AND ( + CAST ( NULL AS INTEGER ) / 15 )
----

query I rowsort
SELECT col1 * - 31 * - 87 AS col1 FROM tab0
----
218457
2697
56637

query I rowsort
SELECT - col0 AS col0 FROM tab2 WHERE NOT col0 * - col1 + col2 * - 18 NOT IN ( 2 + + ( + col0 - - col0 ) * col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5269
SELECT COUNT( ALL - col1 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5269
SELECT COUNT ( ALL - col1 ) AS col2 FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5270
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col1 * CAST( - 51 AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5270
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col1 * CAST ( - 51 AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5271
SELECT - ( + 97 ) - col2 FROM tab2 AS cor0 WHERE NOT - ( CAST( NULL AS DECIMAL ) ) > NULL
----

skipif mysql # not compatible
query I rowsort label-5271
SELECT - ( + 97 ) - col2 FROM tab2 AS cor0 WHERE NOT - ( CAST ( NULL AS REAL ) ) > NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL < ( 42 )
----

query I rowsort
SELECT DISTINCT - ( + + col0 ) FROM tab0
----
-15
-87
-97

query I rowsort
SELECT ( - + 61 ) * + col1 - col2 AS col0 FROM tab0
----
-1291
-160
-4988

query I rowsort
SELECT 92 AS col1 FROM tab0 WHERE NOT 36 BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col1 / 78 ) BETWEEN + 7 + + col0 * col1 AND 26
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + ( + 55 ) FROM tab0 AS cor0 WHERE col1 NOT BETWEEN col0 AND - col2
----
55
55
55

onlyif mysql # aggregate syntax: 
query I rowsort label-5278
SELECT DISTINCT ( - 87 ) * COUNT( * ) FROM tab2 cor0
----
-261

skipif mysql # not compatible
query I rowsort label-5278
SELECT DISTINCT ( - 87 ) * COUNT ( * ) FROM tab2 cor0
----
-261

query I rowsort
SELECT DISTINCT - + col0 * + - col0 + + col1 AS col1 FROM tab2 AS cor0
----
2167
4173
5692

onlyif mysql # aggregate syntax: 
query I rowsort label-5280
SELECT - - COUNT( * ) * + - 86 + 65 FROM tab1 AS cor0
----
-193

skipif mysql # not compatible
query I rowsort label-5280
SELECT - - COUNT ( * ) * + - 86 + 65 FROM tab1 AS cor0
----
-193

query I rowsort
SELECT col2 AS col2 FROM tab2 AS cor0 WHERE NOT + ( 30 ) > ( 83 )
----
23
40
58

query I rowsort
SELECT ALL - ( + ( col2 ) ) * col1 AS col1 FROM tab2 AS cor0
----
-1173
-3080
-3886

onlyif mysql # DIV for integer division: 
query I rowsort label-5283
SELECT + col0 DIV - col0 + - col2 + + col1 * - col1 FROM tab0 AS cor0
----
-101
-452
-6609

skipif mysql # not compatible
query I rowsort label-5283
SELECT + col0 / - col0 + - col2 + + col1 * - col1 FROM tab0 AS cor0
----
-101
-452
-6609

query I rowsort
SELECT - 55 * - col2 * - 94 AS col1 FROM tab1
----
-305030
-351560
-496320

query I rowsort
SELECT ( + ( + col0 ) ) * - 87 + col0 FROM tab2
----
-3956
-5504
-6450

query I rowsort
SELECT ALL ( - + ( + 34 ) ) * - col0 FROM tab0 WHERE NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT 53 + + - 63 FROM tab2
----
-10

query I rowsort
SELECT - col0 * - col0 * 64 FROM tab1
----
166464
462400
529984

query I rowsort
SELECT DISTINCT - col1 + - col2 * + ( 25 ) AS col1 FROM tab2 WHERE ( + 68 ) IS NOT NULL
----
-1077
-1517
-626

query I rowsort
SELECT + col2 * + + 45 FROM tab1
----
2655
3060
4320

query I rowsort
SELECT + 43 FROM tab1 WHERE NULL BETWEEN + col0 AND + + col0 * + col1
----

query I rowsort
SELECT 33 FROM tab0 WHERE + ( - col0 ) NOT IN ( col1 - 34 * col2 )
----
33
33
33

query I rowsort
SELECT - col2 + + col0 FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
-45
23
26

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - col2 ) <= - 49 + - col1
----
51
14
96
85
5
59

query I rowsort
SELECT + 52 + - 19 FROM tab0
----
33
33
33

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( col2 ) BETWEEN - col0 AND 5
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 >= - col2 * - + 60
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5298
SELECT + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NULL > col2 + + - 46 / + 21
----
0

skipif mysql # not compatible
query I rowsort label-5298
SELECT + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NULL > col2 + + - 46 / + 21
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5299
SELECT ALL col0 + - col1 + - 51 * - 67 + - col0 DIV 84 col2 FROM tab0 cor0
----
3351
3482
3512

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5299
SELECT ALL col0 + - col1 + - 51 * - 67 + - col0 / 84 col2 FROM tab0 cor0
----
3351
3482
3512

query I rowsort
SELECT DISTINCT - + 78 - + - col1 AS col0 FROM tab2 AS cor0
----
-1
-11
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-5301
SELECT ALL - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NULL >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-5301
SELECT ALL - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NULL >= NULL
----
0

query I rowsort
SELECT - ( - + 52 ) - - 24 FROM tab0 cor0
----
76
76
76

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5303
SELECT ALL * FROM tab0 WHERE + CAST( NULL AS SIGNED ) = - 50
----

skipif mysql # not compatible
query III rowsort label-5303
SELECT ALL * FROM tab0 WHERE + CAST ( NULL AS INTEGER ) = - 50
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5304
SELECT DISTINCT - col2 * + CAST( NULL AS DECIMAL ) * - + col2 / col0 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5304
SELECT DISTINCT - col2 * + CAST ( NULL AS REAL ) * - + col2 / col0 AS col2 FROM tab2
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - 99 + + col2 - 54 * + col0 / + 84 ) IN ( 89 * - col2 + + col0 * - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5306
SELECT ALL - MIN( + - col2 ) FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-5306
SELECT ALL - MIN ( + - col2 ) FROM tab0
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5307
SELECT ALL - CAST( + - col2 AS SIGNED ) col1 FROM tab0
----
10
47
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5307
SELECT ALL - CAST ( + - col2 AS INTEGER ) col1 FROM tab0
----
10
47
99

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( 87 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + ( - col2 ) AS col1, - col1 FROM tab0 AS cor0
----
-10
-21
-47
-81
-99
-1

query III rowsort
SELECT * FROM tab1 WHERE NOT + - col1 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5311
SELECT + MAX( - 16 ) FROM ( tab1 cor0 CROSS JOIN tab1 cor1 )
----
-16

skipif mysql # not compatible
query I rowsort label-5311
SELECT + MAX ( - 16 ) FROM ( tab1 cor0 CROSS JOIN tab1 cor1 )
----
-16

query I rowsort
SELECT ALL - 12 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to e698dd57d3aac30af14ce35da434bb45

onlyif mysql # aggregate syntax: 
query I rowsort label-5313
SELECT ALL COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( - col1 ) / col1 + - col0 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-5313
SELECT ALL COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( - col1 ) / col1 + - col0 < NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 96 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col0 + + - col2 - 9 FROM tab0 AS cor0
----
-11
-41
68

query I rowsort
SELECT - 62 * - 8 AS col0 FROM tab0 AS cor0
----
496
496
496

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5317
SELECT ALL + 67 * CAST( + MAX( - 50 ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-3350

skipif mysql # not compatible
query I rowsort label-5317
SELECT ALL + 67 * CAST ( + MAX ( - 50 ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-3350

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 <> - - 68 + - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 11 * - col0 + col0 FROM tab0 cor0
----
-150
-870
-970

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5320
SELECT ALL + - CAST( col2 AS SIGNED ) * col0 FROM tab1 AS cor0
----
-4896
-5015
-6188

skipif mysql # not compatible
query I rowsort label-5320
SELECT ALL + - CAST ( col2 AS INTEGER ) * col0 FROM tab1 AS cor0
----
-4896
-5015
-6188

onlyif mysql # DIV for integer division: 
query I rowsort label-5321
SELECT ALL col2 DIV + + ( - - col0 ) FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5321
SELECT ALL col2 / + + ( - - col0 ) FROM tab2
----
0
0
0

query I rowsort
SELECT - 64 * + - 85 AS col0 FROM tab2
----
5440
5440
5440

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 27 col2, + ( col1 ) FROM tab1
----
27
14
27
47
27
5

query II rowsort
SELECT ALL + col1, - col2 + col1 + - ( - col2 ) FROM tab2
----
51
51
67
67
77
77

onlyif mysql # DIV for integer division: 
query I rowsort label-5325
SELECT col2 + - + 97 + + 5 DIV ( col1 ) AS col1 FROM tab1
----
-1
-29
-37

skipif mysql # not compatible
query I rowsort label-5325
SELECT col2 + - + 97 + + 5 / ( col1 ) AS col1 FROM tab1
----
-1
-29
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-5326
SELECT DISTINCT - COUNT( - col0 ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-5326
SELECT DISTINCT - COUNT ( - col0 ) AS col0 FROM tab1
----
-3

query I rowsort
SELECT - col1 FROM tab1 WHERE + + col1 IN ( + - col1 + - col1 + col1, + col0 )
----

query I rowsort
SELECT DISTINCT + 95 * col0 AS col1 FROM tab2
----
4370
6080
7125

query I rowsort
SELECT ALL 10 + - 87 * 2 * - col2 FROM tab0
----
17236
1750
8188

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5330
SELECT - 64 DIV - + COUNT( * ) AS col0 FROM tab0 WHERE col2 + - col0 IS NOT NULL
----
21

skipif mysql # not compatible
query I rowsort label-5330
SELECT - 64 / - + COUNT ( * ) AS col0 FROM tab0 WHERE col2 + - col0 IS NOT NULL
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-5331
SELECT DISTINCT 50 * + COUNT( * ) col0 FROM tab1
----
150

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5331
SELECT DISTINCT 50 * + COUNT ( * ) col0 FROM tab1
----
150

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5332
SELECT DISTINCT 95 + - CAST( + col2 AS SIGNED ) AS col0 FROM tab2
----
37
55
72

skipif mysql # not compatible
query I rowsort label-5332
SELECT DISTINCT 95 + - CAST ( + col2 AS INTEGER ) AS col0 FROM tab2
----
37
55
72

query I rowsort
SELECT 85 + col0 AS col1 FROM tab1
----
136
170
176

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5334
SELECT ALL - ( 32 ) * - + col1 + col2 - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5334
SELECT ALL - ( 32 ) * - + col1 + col2 - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 FROM tab1 AS cor0 WHERE NULL BETWEEN ( NULL ) AND ( + col0 - + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5336
SELECT DISTINCT COUNT( 56 ) col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5336
SELECT DISTINCT COUNT ( 56 ) col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT IN ( + 95, - col1 / - - col1, + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5338
SELECT + + MIN( DISTINCT + - col0 ) AS col1 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-5338
SELECT + + MIN ( DISTINCT + - col0 ) AS col1 FROM tab0 AS cor0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5339
SELECT + MIN( - + col0 ) AS col0 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-5339
SELECT + MIN ( - + col0 ) AS col0 FROM tab1 AS cor0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5340
SELECT ALL - COUNT( * ) * COUNT( * ) - COUNT( - 33 ) FROM tab0 cor0 WHERE NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-5340
SELECT ALL - COUNT ( * ) * COUNT ( * ) - COUNT ( - 33 ) FROM tab0 cor0 WHERE NULL < NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5341
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL BETWEEN CAST( 38 AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-5341
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL BETWEEN CAST ( 38 AS INTEGER ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5342
SELECT ALL - + 62 * - 84 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5342
SELECT ALL - + 62 * - 84 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 96 - - col0 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 13 col2 FROM tab1
----
13
13
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5345
SELECT DISTINCT COUNT( * ) DIV + + COUNT( * ) AS col2 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-5345
SELECT DISTINCT COUNT ( * ) / + + COUNT ( * ) AS col2 FROM tab2
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 50 col2 FROM tab2
----
50

query II rowsort
SELECT - col1 AS col1, + 74 FROM tab2
----
-51
74
-67
74
-77
74

query I rowsort
SELECT DISTINCT ( - ( + ( col2 ) ) ) AS col2 FROM tab2
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5349
SELECT DISTINCT SUM( col1 ) FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-5349
SELECT DISTINCT SUM ( col1 ) FROM tab1
----
66

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + col2 - + 1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 col0, - col1 AS col0 FROM tab0 AS cor0
----
10
-21
47
-81
99
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5352
SELECT ALL COUNT( * ) FROM tab2 AS cor0 WHERE NOT col1 * col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5352
SELECT ALL COUNT ( * ) FROM tab2 AS cor0 WHERE NOT col1 * col1 IS NOT NULL
----
0

query I rowsort
SELECT - + col1 FROM tab2 WHERE NOT + 96 + - - 83 IS NULL
----
-51
-67
-77

query I rowsort
SELECT ALL - col2 * + - col0 FROM tab2
----
1058
2560
4350

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5355
SELECT + CAST( NULL AS SIGNED ) col0, - 94 FROM tab2 WHERE NOT - 74 IS NULL
----
NULL
-94
NULL
-94
NULL
-94

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5355
SELECT + CAST ( NULL AS INTEGER ) col0, - 94 FROM tab2 WHERE NOT - 74 IS NULL
----
NULL
-94
NULL
-94
NULL
-94

query I rowsort
SELECT DISTINCT + col1 * col1 + + 46 + + - col0 FROM tab0
----
-50
400
6592

query I rowsort
SELECT + + col2 + - - col0 FROM tab1 AS cor0
----
144
147
159

query II rowsort
SELECT + + ( - + col2 ) + + - ( + 32 ) AS col1, col2 FROM tab1 AS cor0
----
-100
68
-128
96
-91
59

query I rowsort
SELECT DISTINCT + 29 * + ( - + col0 ) + + 19 FROM tab1 AS cor0
----
-1460
-2446
-2620

query II rowsort
SELECT ALL + col0 AS col2, + col1 * - 6 FROM tab0 AS cor0
----
15
-486
87
-126
97
-6

query I rowsort
SELECT DISTINCT ( 51 ) FROM tab2 AS cor0
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5362
SELECT - CAST( NULL AS SIGNED ) + COUNT( * ) FROM tab1 AS cor0 WHERE + col2 > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5362
SELECT - CAST ( NULL AS INTEGER ) + COUNT ( * ) FROM tab1 AS cor0 WHERE + col2 > NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5363
SELECT DISTINCT 25 * + + SUM( 57 ) + + 65 * + + COUNT( * ) + + + 59 * - + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5363
SELECT DISTINCT 25 * + + SUM ( 57 ) + + 65 * + + COUNT ( * ) + + + 59 * - + CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL

query I rowsort
SELECT ALL - - col0 * + col1 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT 67 * + col2 AS col1, col0 AS col2 FROM tab1
----
3953
85
4556
91
6432
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5366
SELECT ALL col2 + + CAST( - 60 AS SIGNED ) FROM tab0
----
-13
-50
39

skipif mysql # not compatible
query I rowsort label-5366
SELECT ALL col2 + + CAST ( - 60 AS INTEGER ) FROM tab0
----
-13
-50
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5367
SELECT DISTINCT + CAST( - - 42 AS SIGNED ) + - + col2 FROM tab0
----
-5
-57
32

skipif mysql # not compatible
query I rowsort label-5367
SELECT DISTINCT + CAST ( - - 42 AS INTEGER ) + - + col2 FROM tab0
----
-5
-57
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5368
SELECT DISTINCT - col0 - - col0 AS col2 FROM tab0 AS cor0 WHERE NULL NOT IN ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-5368
SELECT DISTINCT - col0 - - col0 AS col2 FROM tab0 AS cor0 WHERE NULL NOT IN ( - CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT col2 - col1 + col1 * 4 FROM tab2
----
176
259
271

onlyif mysql # aggregate syntax: 
query I rowsort label-5370
SELECT - 43 * 3 * + - 58 * - + COUNT( * ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
-67338

skipif mysql # not compatible
query I rowsort label-5370
SELECT - 43 * 3 * + - 58 * - + COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
-67338

onlyif mysql # aggregate syntax: 
query I rowsort label-5371
SELECT DISTINCT + MAX( DISTINCT + col1 ) AS col2 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-5371
SELECT DISTINCT + MAX ( DISTINCT + col1 ) AS col2 FROM tab0
----
81

query I rowsort
SELECT DISTINCT - - 16 * + 95 FROM tab1 cor0
----
1520

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5373
SELECT DISTINCT - 65 DIV COUNT( * ) + 82 AS col2 FROM tab2 cor0
----
61

skipif mysql # not compatible
query I rowsort label-5373
SELECT DISTINCT - 65 / COUNT ( * ) + 82 AS col2 FROM tab2 cor0
----
61

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 + - - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - col0 col2 FROM tab0 AS cor0 WHERE NOT NULL = NULL
----

query II rowsort
SELECT - col0 AS col0, - 53 AS col0 FROM tab0 AS cor0
----
-15
-53
-87
-53
-97
-53

query I rowsort
SELECT ALL - + 57 FROM tab2 cor0 WHERE NOT NULL <> col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5378
SELECT DISTINCT COUNT( * ) * + COUNT( ALL - - col1 ) - + 86 + - 86 * + COUNT( * ) col0 FROM tab2 AS cor0
----
-335

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5378
SELECT DISTINCT COUNT ( * ) * + COUNT ( ALL - - col1 ) - + 86 + - 86 * + COUNT ( * ) col0 FROM tab2 AS cor0
----
-335

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5379
SELECT + + col2, - CAST( col0 AS SIGNED ) + col1 FROM tab1 AS cor0
----
59
-80
68
-44
96
-37

skipif mysql # not compatible
query II rowsort label-5379
SELECT + + col2, - CAST ( col0 AS INTEGER ) + col1 FROM tab1 AS cor0
----
59
-80
68
-44
96
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-5380
SELECT DISTINCT MAX( ALL - + 44 ) FROM tab0
----
-44

skipif mysql # not compatible
query I rowsort label-5380
SELECT DISTINCT MAX ( ALL - + 44 ) FROM tab0
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-5381
SELECT - SUM( col2 ) AS col2 FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-5381
SELECT - SUM ( col2 ) AS col2 FROM tab2
----
-121

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - - 29 ) col0 FROM tab2 WHERE NOT ( NULL ) < ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5383
SELECT ALL col2 DIV + 31 AS col1 FROM tab1 AS cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-5383
SELECT ALL col2 / + 31 AS col1 FROM tab1 AS cor0
----
1
2
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5384
SELECT DISTINCT - col2 DIV + - col2 + + col1 AS col1 FROM tab0 AS cor0
----
2
22
82

skipif mysql # not compatible
query I rowsort label-5384
SELECT DISTINCT - col2 / + - col2 + + col1 AS col1 FROM tab0 AS cor0
----
2
22
82

query I rowsort
SELECT DISTINCT - col0 FROM tab2 AS cor0 WHERE NOT col0 * - - ( - col2 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 46 col0 FROM tab2 AS cor0
----
46
46
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5387
SELECT DISTINCT - 87 * - MAX( ALL + col0 ) + + ( CAST( NULL AS DECIMAL ) ) * + + CAST( + - 3 AS SIGNED ) AS col0 FROM tab1 WHERE NOT - 10 / col0 * + 45 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5387
SELECT DISTINCT - 87 * - MAX ( ALL + col0 ) + + ( CAST ( NULL AS REAL ) ) * + + CAST ( + - 3 AS INTEGER ) AS col0 FROM tab1 WHERE NOT - 10 / col0 * + 45 IS NULL
----
NULL

query IIIIII rowsort
SELECT * FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5389
SELECT DISTINCT COUNT( - 13 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-5389
SELECT DISTINCT COUNT ( - 13 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT DISTINCT - 40 * 95 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-3800

query I rowsort
SELECT ( - + 38 ) FROM tab1 AS cor0
----
-38
-38
-38

query I rowsort
SELECT + - col1 FROM tab0 AS cor0 WHERE col0 BETWEEN + 72 AND col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col2, + 75 AS col1 FROM tab0 AS cor0
----
10
75
47
75
99
75

query I rowsort
SELECT col0 + col0 * 48 FROM tab1 AS cor0
----
2499
4165
4459

query I rowsort
SELECT DISTINCT col1 + - col0 + - col1 FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT 32 * 33 + - 30 AS col0 FROM tab0
----
1026
1026
1026

onlyif mysql # aggregate syntax: 
query I rowsort label-5397
SELECT + 91 + - COUNT( * ) AS col0 FROM tab1
----
88

skipif mysql # not compatible
query I rowsort label-5397
SELECT + 91 + - COUNT ( * ) AS col0 FROM tab1
----
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 9 + + + col2 col1, + col0 AS col2 FROM tab1
----
105
51
68
85
77
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - + col2 col2 FROM tab1 AS cor0
----
-21
-54
-82

query I rowsort
SELECT DISTINCT col1 * - + 76 FROM tab0 WHERE NOT col1 + + col0 + col2 + - col1 <= col1
----
-1596
-76

query III rowsort
SELECT * FROM tab0 WHERE NOT - - col0 < col2 + + col1
----
87
21
10

onlyif mysql # DIV for integer division: 
query I rowsort label-5402
SELECT ALL - 48 DIV col2 col2 FROM tab2 AS cor0
----
-1
-2
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5402
SELECT ALL - 48 / col2 col2 FROM tab2 AS cor0
----
-1
-2
0

query II rowsort
SELECT col0 * col2, - 50 AS col2 FROM tab0 AS cor0
----
705
-50
870
-50
9603
-50

query I rowsort
SELECT 77 FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5405
SELECT DISTINCT - COUNT( + col1 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5405
SELECT DISTINCT - COUNT ( + col1 ) FROM tab1 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 95 * - col2 * - - 83 col0 FROM tab1 AS cor0
----
465215
536180
756960

query I rowsort
SELECT ALL + - col1 AS col2 FROM tab0 AS cor0 WHERE + col0 * + - col2 * - 77 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5408
SELECT DISTINCT - COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5408
SELECT DISTINCT - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5409
SELECT DISTINCT + col0 * - + 6 + - 70 FROM tab1 AS cor0 WHERE col1 BETWEEN ( col0 ) AND CAST( - - col2 AS DECIMAL ) * - col1
----

skipif mysql # not compatible
query I rowsort label-5409
SELECT DISTINCT + col0 * - + 6 + - 70 FROM tab1 AS cor0 WHERE col1 BETWEEN ( col0 ) AND CAST ( - - col2 AS REAL ) * - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5410
SELECT DISTINCT - MAX( DISTINCT 66 ) AS col1 FROM tab1, tab2 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-5410
SELECT DISTINCT - MAX ( DISTINCT 66 ) AS col1 FROM tab1, tab2 AS cor0
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5411
SELECT + CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT ( NOT ( 62 < - - 46 + 54 ) )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5411
SELECT + CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT ( NOT ( 62 < - - 46 + 54 ) )
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5412
SELECT ALL + 20 DIV - + col0 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5412
SELECT ALL + 20 / - + col0 AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT + col0 - + col2 * col1 * - col0 AS col2 FROM tab2 WHERE - 3 BETWEEN - 76 AND - 47
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + 86 = NULL
----

query II rowsort
SELECT ALL + 17 AS col2, - col0 AS col1 FROM tab2 WHERE NULL IS NULL
----
17
-46
17
-64
17
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5416
SELECT ALL - col2 * - col1 + - 49 FROM tab1 WHERE NOT + 94 + - CAST( NULL AS SIGNED ) IN ( 68 + + ( + col1 ) * + col1, col1 )
----

skipif mysql # not compatible
query I rowsort label-5416
SELECT ALL - col2 * - col1 + - 49 FROM tab1 WHERE NOT + 94 + - CAST ( NULL AS INTEGER ) IN ( 68 + + ( + col1 ) * + col1, col1 )
----

query II rowsort
SELECT col2 AS col1, col1 AS col1 FROM tab0
----
10
21
47
81
99
1

query I rowsort
SELECT 68 * - col0 FROM tab1
----
-3468
-5780
-6188

query I rowsort
SELECT DISTINCT col2 * + + 92 AS col1 FROM tab1
----
5428
6256
8832

query III rowsort
SELECT * FROM tab2 WHERE NOT + 18 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5421
SELECT DISTINCT MAX( ALL + col2 ) FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-5421
SELECT DISTINCT MAX ( ALL + col2 ) FROM tab2 AS cor0
----
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 65 col2 FROM tab2 cor0
----
65
65
65

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 <= NULL
----

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab0 AS cor0 WHERE NOT - 84 < NULL
----

query I rowsort
SELECT - 61 + - 49 * + 27 FROM tab2
----
-1384
-1384
-1384

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 62 + - ( + 94 ) col2 FROM tab0
----
-32
-32
-32

query IIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab2 cor1 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5428
SELECT + + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9

skipif mysql # not compatible
query I rowsort label-5428
SELECT + + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 4 + + col1 * - col0 col0 FROM tab1 AS cor0
----
-4281
-429
-718

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL IN ( 3, + 93 * - col0 * col1 )
----

query I rowsort
SELECT DISTINCT col2 + + - col1 AS col1 FROM tab1 AS cor0
----
21
54
82

onlyif mysql # aggregate syntax: 
query I rowsort label-5432
SELECT DISTINCT + 5 - + COUNT( ALL + - 67 ) FROM tab0 AS cor0 WHERE - col0 > + 25 * col1
----
5

skipif mysql # not compatible
query I rowsort label-5432
SELECT DISTINCT + 5 - + COUNT ( ALL + - 67 ) FROM tab0 AS cor0 WHERE - col0 > + 25 * col1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5433
SELECT DISTINCT 85 + COUNT( * ) AS col2 FROM tab0 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-5433
SELECT DISTINCT 85 + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5434
SELECT ALL - col2 - + - 45 * + + col1 * CAST( + + col2 AS SIGNED ) / - - CAST( NULL AS SIGNED ) * - 91 * - + 97 * + 79 col0, col2 AS col2 FROM tab1 cor0
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5434
SELECT ALL - col2 - + - 45 * + + col1 * CAST ( + + col2 AS INTEGER ) / - - CAST ( NULL AS INTEGER ) * - 91 * - + 97 * + 79 col0, col2 AS col2 FROM tab1 cor0
----
NULL
59
NULL
68
NULL
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - col0 ) col2 FROM tab0
----
-15
-87
-97

query II rowsort
SELECT ALL + 16, col0 AS col1 FROM tab2
----
16
46
16
64
16
75

query I rowsort
SELECT DISTINCT col2 - - 43 FROM tab0
----
142
53
90

query III rowsort
SELECT * FROM tab2 WHERE + col0 BETWEEN + + 4 - - - col2 + + col0 * - col1 AND + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5439
SELECT ALL - - COUNT( col2 ) col2 FROM tab1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5439
SELECT ALL - - COUNT ( col2 ) col2 FROM tab1 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab0 WHERE NOT - col1 IS NOT NULL
----

query I rowsort
SELECT ALL 95 + + col1 * + - col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-2251
-4833
-4930

query I rowsort
SELECT + col1 - - - col1 AS col0 FROM tab0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5443
SELECT ALL + ( - CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5443
SELECT ALL + ( - CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + - 88 * + ( col2 ) + - col0 + + col1 IS NOT NULL AND NOT + ( + 83 ) = - ( + + ( + 37 ) )
----

query I rowsort
SELECT ALL col1 + + - col1 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT 97 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 34 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5447
SELECT DISTINCT CAST( col1 AS SIGNED ) * - col1 AS col2 FROM tab1
----
-196
-2209
-25

skipif mysql # not compatible
query I rowsort label-5447
SELECT DISTINCT CAST ( col1 AS INTEGER ) * - col1 AS col2 FROM tab1
----
-196
-2209
-25

query II rowsort
SELECT ALL + col1 AS col2, 79 + col2 AS col2 FROM tab0
----
1
178
21
89
81
126

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL < 53
----

query I rowsort
SELECT ALL + ( - ( - - col0 ) ) FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # DIV for integer division: 
query II rowsort label-5451
SELECT - col0 * - ( - col1 ) + 53 + col1 DIV + + col0 AS col2, 71 AS col1 FROM tab2 AS cor0
----
-2292
71
-4874
71
-4972
71

skipif mysql # not compatible
query II rowsort label-5451
SELECT - col0 * - ( - col1 ) + 53 + col1 / + + col0 AS col2, 71 AS col1 FROM tab2 AS cor0
----
-2292
71
-4874
71
-4972
71

query I rowsort
SELECT ALL + - 96 AS col2 FROM tab1 AS cor0
----
-96
-96
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-5453
SELECT 46 + COUNT( ALL col2 ) AS col0 FROM tab0 AS cor0 WHERE NOT - col0 > NULL
----
46

skipif mysql # not compatible
query I rowsort label-5453
SELECT 46 + COUNT ( ALL col2 ) AS col0 FROM tab0 AS cor0 WHERE NOT - col0 > NULL
----
46

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) <= - 43 / 34
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5455
SELECT - COUNT( ALL col1 ) AS col1, COUNT( * ) FROM tab0 AS cor0 WHERE NOT col1 NOT BETWEEN NULL AND NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-5455
SELECT - COUNT ( ALL col1 ) AS col1, COUNT ( * ) FROM tab0 AS cor0 WHERE NOT col1 NOT BETWEEN NULL AND NULL
----
0
0

query I rowsort
SELECT + 76 * - col0 * col1 FROM tab0 AS cor0
----
-138852
-7372
-92340

onlyif mysql # DIV for integer division: 
query I rowsort label-5457
SELECT - col2 DIV 8 FROM tab2
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-5457
SELECT - col2 / 8 FROM tab2
----
-2
-5
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-5458
SELECT ALL 26 * MIN( ALL 78 ) col2 FROM tab2
----
2028

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5458
SELECT ALL 26 * MIN ( ALL 78 ) col2 FROM tab2
----
2028

query I rowsort
SELECT DISTINCT + 3 * + + ( + 46 ) * - + 34 AS col1 FROM tab1
----
-4692

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5460
SELECT col0 AS col1 FROM tab2 WHERE NOT + CAST( + col1 AS SIGNED ) NOT BETWEEN + - col0 AND NULL
----

skipif mysql # not compatible
query I rowsort label-5460
SELECT col0 AS col1 FROM tab2 WHERE NOT + CAST ( + col1 AS INTEGER ) NOT BETWEEN + - col0 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5461
SELECT - 72 DIV - col0 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-5461
SELECT - 72 / - col0 FROM tab2
----
0
1
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5462
SELECT + SUM( DISTINCT - CAST( + - col0 AS SIGNED ) ) FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-5462
SELECT + SUM ( DISTINCT - CAST ( + - col0 AS INTEGER ) ) FROM tab2
----
185

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 * + - 54 col2, + 47 FROM tab0
----
-1134
47
-4374
47
-54
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + + col2 col0 FROM tab2
----
104
133
69

query I rowsort
SELECT DISTINCT - col1 * - ( 83 ) + + + 84 - + - col2 FROM tab1 AS cor0
----
1342
4053
558

query I rowsort
SELECT DISTINCT - + col0 + - - 73 FROM tab1 AS cor0
----
-12
-18
22

onlyif mysql # aggregate syntax: 
query I rowsort label-5467
SELECT MAX( 30 ) FROM tab2 cor0
----
30

skipif mysql # not compatible
query I rowsort label-5467
SELECT MAX ( 30 ) FROM tab2 cor0
----
30

query III rowsort
SELECT * FROM tab0 WHERE - - col0 + + + 40 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 72 / + 97 - - 40 IS NULL
----

query II rowsort
SELECT + col2, + col2 FROM tab1
----
59
59
68
68
96
96

query I rowsort
SELECT ALL - - col2 + + 88 FROM tab2 AS cor0
----
111
128
146

query I rowsort
SELECT DISTINCT - + 60 + col1 AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col2 AND col0 * + col2 * col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5473
SELECT DISTINCT - MIN( + + col0 ) AS col1 FROM tab2 cor0
----
-46

skipif mysql # not compatible
query I rowsort label-5473
SELECT DISTINCT - MIN ( + + col0 ) AS col1 FROM tab2 cor0
----
-46

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5474
SELECT ALL + 72 * + ( - CAST( NULL AS DECIMAL ) ) + + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5474
SELECT ALL + 72 * + ( - CAST ( NULL AS REAL ) ) + + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 26 - - + col2 FROM tab2 AS cor0
----
49
66
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5476
SELECT DISTINCT MIN( ALL - col1 ) + - 47 DIV - MAX( DISTINCT + col1 ) AS col0 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-5476
SELECT DISTINCT MIN ( ALL - col1 ) + - 47 / - MAX ( DISTINCT + col1 ) AS col0 FROM tab0 AS cor0
----
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 - - col0 col1 FROM tab2 cor0
----
104
133
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5478
SELECT ALL + col1 + col2 * CAST( NULL AS SIGNED ) - CAST( NULL AS SIGNED ) * - + col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5478
SELECT ALL + col1 + col2 * CAST ( NULL AS INTEGER ) - CAST ( NULL AS INTEGER ) * - + col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 43 col2 FROM tab1 AS cor0
----
43
43
43

onlyif mysql # aggregate syntax: 
query I rowsort label-5480
SELECT + ( + 60 ) + - + COUNT( * ) FROM tab2
----
57

skipif mysql # not compatible
query I rowsort label-5480
SELECT + ( + 60 ) + - + COUNT ( * ) FROM tab2
----
57

query III rowsort
SELECT * FROM tab1 WHERE col2 > + 26
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-5482
SELECT DISTINCT - ( + + col2 ) DIV col1 AS col2 FROM tab0
----
-99
0

skipif mysql # not compatible
query I rowsort label-5482
SELECT DISTINCT - ( + + col2 ) / col1 AS col2 FROM tab0
----
-99
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5483
SELECT ALL ( - + COUNT( * ) ) - ( - MAX( 46 ) ) FROM tab0
----
43

skipif mysql # not compatible
query I rowsort label-5483
SELECT ALL ( - + COUNT ( * ) ) - ( - MAX ( 46 ) ) FROM tab0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-5484
SELECT + 83 * - COUNT( * ) AS col2 FROM tab0
----
-249

skipif mysql # not compatible
query I rowsort label-5484
SELECT + 83 * - COUNT ( * ) AS col2 FROM tab0
----
-249

query II rowsort
SELECT ALL - col2 AS col0, + 95 AS col1 FROM tab2
----
-23
95
-40
95
-58
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 71 col0 FROM tab1 AS cor0
----
71
71
71

onlyif mysql # aggregate syntax: 
query I rowsort label-5487
SELECT + COUNT( * ) * COUNT( * ) - 35 AS col0 FROM tab2 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-5487
SELECT + COUNT ( * ) * COUNT ( * ) - 35 AS col0 FROM tab2 AS cor0
----
-26

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT - col2 * col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5489
SELECT DISTINCT 59 AS col1, - COUNT( * ) FROM tab2 AS cor0
----
59
-3

skipif mysql # not compatible
query II rowsort label-5489
SELECT DISTINCT 59 AS col1, - COUNT ( * ) FROM tab2 AS cor0
----
59
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5490
SELECT DISTINCT - + COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( ( + col1 <> - col0 ) )
----
0

skipif mysql # not compatible
query I rowsort label-5490
SELECT DISTINCT - + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( ( + col1 <> - col0 ) )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5491
SELECT DISTINCT COUNT( * ) * + - COUNT( * ) + - - CAST( NULL AS SIGNED ) * 13 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5491
SELECT DISTINCT COUNT ( * ) * + - COUNT ( * ) + - - CAST ( NULL AS INTEGER ) * 13 AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL - col1 * - - 63 AS col2 FROM tab1 AS cor0
----
-2961
-315
-882

query I rowsort
SELECT ALL + col0 * - - 30 FROM tab2 AS cor0
----
1380
1920
2250

query II rowsort
SELECT + col0, col2 + ( - - col2 ) * + 6 AS col2 FROM tab1
----
51
672
85
413
91
476

onlyif mysql # DIV for integer division: 
query I rowsort label-5495
SELECT - col1 DIV + - col2 AS col0 FROM tab0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-5495
SELECT - col1 / + - col2 AS col0 FROM tab0
----
0
1
2

query II rowsort
SELECT - col1 AS col1, - col2 FROM tab1
----
-14
-96
-47
-68
-5
-59

query I rowsort
SELECT ALL col0 + - 71 FROM tab0
----
-56
16
26

onlyif mysql # aggregate syntax: 
query I rowsort label-5498
SELECT DISTINCT MAX( - + col1 ) AS col1 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-5498
SELECT DISTINCT MAX ( - + col1 ) AS col1 FROM tab1
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5499
SELECT - CAST( - 7 AS SIGNED ) col2 FROM tab0
----
7
7
7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5499
SELECT - CAST ( - 7 AS INTEGER ) col2 FROM tab0
----
7
7
7

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT BETWEEN + col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5501
SELECT ALL - 9 + + ( + COUNT( * ) ) FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-5501
SELECT ALL - 9 + + ( + COUNT ( * ) ) FROM tab2
----
-6

query I rowsort
SELECT DISTINCT - + 3 + - - col2 - + - col0 * - ( - - col1 ) AS col2 FROM tab1 AS cor0
----
-369
-4212
-621

query I rowsort
SELECT col0 + + + 24 + - col1 * + col0 + + col2 AS col2 FROM tab0 AS cor0
----
-1129
-1706
123

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5504
SELECT + col0 * col0 + - CAST( - - col2 AS SIGNED ) + - col0 AS col2 FROM tab0
----
163
7472
9213

skipif mysql # not compatible
query I rowsort label-5504
SELECT + col0 * col0 + - CAST ( - - col2 AS INTEGER ) + - col0 AS col2 FROM tab0
----
163
7472
9213

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL NOT BETWEEN NULL AND 22
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5506
SELECT ALL + - COUNT( * ) * COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-81

skipif mysql # not compatible
query I rowsort label-5506
SELECT ALL + - COUNT ( * ) * COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-5507
SELECT + COUNT( * ) * 52 AS col1, MAX( ALL + 49 ) FROM tab2 cor0
----
156
49

skipif mysql # not compatible
query II rowsort label-5507
SELECT + COUNT ( * ) * 52 AS col1, MAX ( ALL + 49 ) FROM tab2 cor0
----
156
49

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col1 / 45 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col0 + - col1 - - col2 AS col1 FROM tab0 cor0
----
-19
195
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5510
SELECT ALL - 56 * - col2 * - CAST( NULL AS SIGNED ) - + col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5510
SELECT ALL - 56 * - col2 * - CAST ( NULL AS INTEGER ) - + col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5511
SELECT DISTINCT - + ( + + COUNT( * ) ) + + COUNT( * ) AS col1, - 10 FROM tab0 AS cor0
----
0
-10

skipif mysql # not compatible
query II rowsort label-5511
SELECT DISTINCT - + ( + + COUNT ( * ) ) + + COUNT ( * ) AS col1, - 10 FROM tab0 AS cor0
----
0
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-5512
SELECT ALL - COUNT( * ) - COUNT( * ) + + + 80 * + COUNT( * ) * - - ( + COUNT( * ) ) AS col0 FROM tab0 WHERE NULL IS NULL AND + col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5512
SELECT ALL - COUNT ( * ) - COUNT ( * ) + + + 80 * + COUNT ( * ) * - - ( + COUNT ( * ) ) AS col0 FROM tab0 WHERE NULL IS NULL AND + col2 IS NULL
----
0

query I rowsort
SELECT ALL - col2 - + col2 + ( - col0 ) FROM tab2
----
-144
-191
-92

query I rowsort
SELECT 72 - - - col2 * col2 + + 58 + + 69 - - - col0 + col2 FROM tab0
----
-1978
-9600
22

onlyif mysql # aggregate syntax: 
query II rowsort label-5515
SELECT ALL - COUNT( * ) AS col1, + COUNT( + col1 ) AS col1 FROM tab1
----
-3
3

skipif mysql # not compatible
query II rowsort label-5515
SELECT ALL - COUNT ( * ) AS col1, + COUNT ( + col1 ) AS col1 FROM tab1
----
-3
3

query I rowsort
SELECT - col1 * + + col0 AS col2 FROM tab0
----
-1215
-1827
-97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5517
SELECT DISTINCT * FROM tab2 WHERE NOT + col2 <= - + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5517
SELECT DISTINCT * FROM tab2 WHERE NOT + col2 <= - + CAST ( NULL AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col2, 1 AS col2 FROM tab2
----
-23
1
-40
1
-58
1

query I rowsort
SELECT col0 * + - col2 AS col1 FROM tab1
----
-4896
-5015
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-5520
SELECT DISTINCT SUM( DISTINCT + - col2 ) * - COUNT( + 33 ) AS col0 FROM tab1 cor0
----
669

skipif mysql # not compatible
query I rowsort label-5520
SELECT DISTINCT SUM ( DISTINCT + - col2 ) * - COUNT ( + 33 ) AS col0 FROM tab1 cor0
----
669

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col2 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5522
SELECT - 78 DIV + CAST( + 60 AS SIGNED ) FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5522
SELECT - 78 / + CAST ( + 60 AS INTEGER ) FROM tab1 AS cor0
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5523
SELECT DISTINCT - + CAST( - 63 AS SIGNED ) col2 FROM tab2 cor0
----
63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5523
SELECT DISTINCT - + CAST ( - 63 AS INTEGER ) col2 FROM tab2 cor0
----
63

query I rowsort
SELECT ALL + - col1 FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
-14
-47
-5

query I rowsort
SELECT ALL col2 + - - col0 * - col1 + - + col1 * col2 * + col0 AS col0 FROM tab2 AS cor0
----
-202008
-296417
-56281

query I rowsort
SELECT col1 + + + col1 * col2 * + - col1 * - - col0 + + col0 AS col2 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT - col1 * - col1 * - col2 AS col1 FROM tab1 cor0
----
-1475
-150212
-18816

query I rowsort
SELECT DISTINCT - - 32 AS col0 FROM tab0 AS cor0
----
32

query II rowsort
SELECT ALL + + col2, 42 * 67 FROM tab2 cor0 WHERE NOT + col1 + col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 74 col0 FROM tab1 AS cor0
----
74
74
74

onlyif mysql # aggregate syntax: 
query I rowsort label-5531
SELECT - COUNT( DISTINCT - col1 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-5531
SELECT - COUNT ( DISTINCT - col1 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5532
SELECT + MIN( DISTINCT + col0 ), - SUM( ALL - - 17 ) AS col1 FROM tab0 AS cor0
----
15
-51

skipif mysql # not compatible
query II rowsort label-5532
SELECT + MIN ( DISTINCT + col0 ), - SUM ( ALL - - 17 ) AS col1 FROM tab0 AS cor0
----
15
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 47 col0 FROM tab1
----
47
47
47

query I rowsort
SELECT + col0 + - 94 FROM tab1 cor0
----
-3
-43
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5535
SELECT - 98 + - + COUNT( * ) FROM tab2 AS cor0
----
-101

skipif mysql # not compatible
query I rowsort label-5535
SELECT - 98 + - + COUNT ( * ) FROM tab2 AS cor0
----
-101

query I rowsort
SELECT + col0 * col1 + col2 AS col0 FROM tab0 AS cor0
----
1262
1837
196

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 NOT BETWEEN - + col0 / col2 * + + 67 * col0 / - + col1 AND NULL OR NOT - 77 >= NULL
----

query I rowsort
SELECT ALL + - col0 FROM tab0 WHERE NULL IS NULL
----
-15
-87
-97

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 75 / col2 BETWEEN NULL AND ( col0 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5540
SELECT ALL col1 DIV + 85 + - col2 DIV 67, - col2 AS col1 FROM tab2
----
0
-23
0
-40
0
-58

skipif mysql # not compatible
query II rowsort label-5540
SELECT ALL col1 / + 85 + - col2 / 67, - col2 AS col1 FROM tab2
----
0
-23
0
-40
0
-58

query I rowsort
SELECT DISTINCT col1 * - 65 AS col2 FROM tab2 AS cor0
----
-3315
-4355
-5005

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5542
SELECT * FROM tab0 AS cor0 WHERE - col0 + - 54 IN ( + 10, col2 + CAST( col0 AS SIGNED ), + - 53 )
----

skipif mysql # not compatible
query III rowsort label-5542
SELECT * FROM tab0 AS cor0 WHERE - col0 + - 54 IN ( + 10, col2 + CAST ( col0 AS INTEGER ), + - 53 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 + + + col2 * - col1 col0 FROM tab1 AS cor0
----
-1395
-3287
-380

query I rowsort
SELECT - 14 + + 26 + + - col2 FROM tab2 AS cor0
----
-11
-28
-46

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( col0 * col0 <> NULL )
----

query II rowsort
SELECT ALL - 9 + - col1, + col0 + - + col0 AS col0 FROM tab0 AS cor0
----
-10
0
-30
0
-90
0

query I rowsort
SELECT + 23 + + + col0 FROM tab1 AS cor0
----
108
114
74

onlyif mysql # aggregate syntax: 
query I rowsort label-5548
SELECT COUNT( * ) + - COUNT( * ) * - COUNT( * ) FROM tab1 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-5548
SELECT COUNT ( * ) + - COUNT ( * ) * - COUNT ( * ) FROM tab1 AS cor0
----
12

onlyif mysql # aggregate syntax: 
query II rowsort label-5549
SELECT DISTINCT COUNT( * ) - + 99 col0, - COUNT( * ) + + COUNT( * ) + + 17 FROM tab2 AS cor0
----
-96
17

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5549
SELECT DISTINCT COUNT ( * ) - + 99 col0, - COUNT ( * ) + + COUNT ( * ) + + 17 FROM tab2 AS cor0
----
-96
17

query I rowsort
SELECT - col2 + + 83 AS col0 FROM tab1 AS cor0
----
-13
15
24

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 8 + + 44 * 92 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5552
SELECT COUNT( * ) + + AVG ( - 79 ) FROM tab2 WHERE NOT NULL <= + 8
----
NULL

skipif mysql # not compatible
query I rowsort label-5552
SELECT COUNT ( * ) + + AVG ( - 79 ) FROM tab2 WHERE NOT NULL <= + 8
----
NULL

query I rowsort
SELECT ALL - col0 + - 5 FROM tab1 WHERE NOT + col2 * - - 23 - 48 + col2 + + - col2 IS NULL
----
-56
-90
-96

query I rowsort
SELECT ALL + 33 AS col2 FROM tab2
----
33
33
33

onlyif mysql # aggregate syntax: 
query I rowsort label-5555
SELECT ALL - 48 * MAX( ( col2 ) ) FROM tab1
----
-4608

skipif mysql # not compatible
query I rowsort label-5555
SELECT ALL - 48 * MAX ( ( col2 ) ) FROM tab1
----
-4608

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL IN ( - 46 + + col2, col2 / ( - 79 ), + - 41 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5557
SELECT COUNT( * ) * 50 FROM tab0
----
150

skipif mysql # not compatible
query I rowsort label-5557
SELECT COUNT ( * ) * 50 FROM tab0
----
150

query I rowsort
SELECT ( - ( + col0 ) ) AS col1 FROM tab1
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5559
SELECT DISTINCT + col2 * - + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5559
SELECT DISTINCT + col2 * - + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 84 col0 FROM tab0 cor0
----
-84
-84
-84

query I rowsort
SELECT + 68 / col2 + 28 FROM tab0 AS cor0 WHERE NOT 0 * col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5562
SELECT ALL MAX( ALL + + 78 ) AS col1 FROM tab1, tab1 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-5562
SELECT ALL MAX ( ALL + + 78 ) AS col1 FROM tab1, tab1 AS cor0
----
78

query I rowsort
SELECT DISTINCT 54 AS col2 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
54

query I rowsort
SELECT ALL - col0 * - 5 AS col1 FROM tab2
----
230
320
375

onlyif mysql # aggregate syntax: 
query I rowsort label-5565
SELECT 29 + COUNT( * ) AS col2 FROM tab0 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-5565
SELECT 29 + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-5566
SELECT DISTINCT - 10 + + COUNT( * ) AS col0 FROM tab2 cor0
----
-7

skipif mysql # not compatible
query I rowsort label-5566
SELECT DISTINCT - 10 + + COUNT ( * ) AS col0 FROM tab2 cor0
----
-7

query II rowsort
SELECT ALL col0, - col0 AS col2 FROM tab1 AS cor0
----
51
-51
85
-85
91
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5568
SELECT 61 * + SUM( DISTINCT col2 ) * 30 col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
221430

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5568
SELECT 61 * + SUM ( DISTINCT col2 ) * 30 col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
221430

onlyif mysql # DIV for integer division: 
query I rowsort label-5569
SELECT ALL - - col1 + col1 + - 56 DIV + col0 + + + col0 * - + 67 AS col1 FROM tab1 cor0
----
-3390
-5685
-6003

skipif mysql # not compatible
query I rowsort label-5569
SELECT ALL - - col1 + col1 + - 56 / + col0 + + + col0 * - + 67 AS col1 FROM tab1 cor0
----
-3390
-5685
-6003

query I rowsort
SELECT - 29 FROM tab1 cor0 WHERE - col2 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5571
SELECT + SUM( + + ( CAST( + + col1 AS SIGNED ) ) ) DIV - + 30 col1 FROM tab0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5571
SELECT + SUM ( + + ( CAST ( + + col1 AS INTEGER ) ) ) / - + 30 col1 FROM tab0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5572
SELECT - - CAST( NULL AS SIGNED ) * - col2 AS col0 FROM tab1 WHERE + 37 <= - - col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5572
SELECT - - CAST ( NULL AS INTEGER ) * - col2 AS col0 FROM tab1 WHERE + 37 <= - - col2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5573
SELECT ALL COUNT( + 6 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5573
SELECT ALL COUNT ( + 6 ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5574
SELECT + COUNT( * ) * - + COUNT( * ) col2 FROM tab2
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5574
SELECT + COUNT ( * ) * - + COUNT ( * ) col2 FROM tab2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5575
SELECT DISTINCT - 79 + + COUNT( * ) AS col0 FROM tab2
----
-76

skipif mysql # not compatible
query I rowsort label-5575
SELECT DISTINCT - 79 + + COUNT ( * ) AS col0 FROM tab2
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5576
SELECT DISTINCT + col2 + + 99 AS col2 FROM tab2 WHERE + - CAST( NULL AS SIGNED ) IN ( - - ( - col1 ), 81 / - col0 * + CAST( col2 AS SIGNED ), - col1 )
----

skipif mysql # not compatible
query I rowsort label-5576
SELECT DISTINCT + col2 + + 99 AS col2 FROM tab2 WHERE + - CAST ( NULL AS INTEGER ) IN ( - - ( - col1 ), 81 / - col0 * + CAST ( col2 AS INTEGER ), - col1 )
----

query I rowsort
SELECT DISTINCT + + col1 + - - ( col1 ) FROM tab1 AS cor0
----
10
28
94

onlyif mysql # DIV for integer division: 
query II rowsort label-5578
SELECT - col0 - col1 AS col2, col0 DIV col1 col0 FROM tab0 AS cor0
----
-108
4
-96
0
-98
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5578
SELECT - col0 - col1 AS col2, col0 / col1 col0 FROM tab0 AS cor0
----
-108
4
-96
0
-98
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5579
SELECT - COUNT( * ) + - - MAX( + - col1 ) col2 FROM tab1 AS cor0
----
-8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5579
SELECT - COUNT ( * ) + - - MAX ( + - col1 ) col2 FROM tab1 AS cor0
----
-8

query II rowsort
SELECT DISTINCT 17 AS col1, col0 FROM tab0
----
17
15
17
87
17
97

query I rowsort
SELECT ( - ( col2 ) ) + 36 FROM tab1
----
-23
-32
-60

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5582
SELECT 72 * + 17 + - CAST( NULL AS DECIMAL ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5582
SELECT 72 * + 17 + - CAST ( NULL AS REAL ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - + - col2 col1 FROM tab0
----
196
62
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5584
SELECT - CAST( NULL AS SIGNED ) / + + COUNT( * ) * + ( + + COUNT( * ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5584
SELECT - CAST ( NULL AS INTEGER ) / + + COUNT ( * ) * + ( + + COUNT ( * ) ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - - col0 + - + col0 + - col1 + - col2 AS col2 FROM tab2 cor0
----
-117
-125
-74

query I rowsort
SELECT + + 93 AS col0 FROM tab1 AS cor0
----
93
93
93

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL < - 92
----

query II rowsort
SELECT col1 * + 3 * + col2, col2 FROM tab2 AS cor0
----
11658
58
3519
23
9240
40

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE - 23 >= col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5591
SELECT + CAST( + col0 AS SIGNED ) col0 FROM tab2
----
46
64
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5591
SELECT + CAST ( + col0 AS INTEGER ) col0 FROM tab2
----
46
64
75

query III rowsort
SELECT ALL * FROM tab1 WHERE 53 <= + 39
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5593
SELECT 54 AS col0, COUNT( - ( - col0 ) ) FROM tab1
----
54
3

skipif mysql # not compatible
query II rowsort label-5593
SELECT 54 AS col0, COUNT ( - ( - col0 ) ) FROM tab1
----
54
3

query I rowsort
SELECT DISTINCT col2 * - col2 * - col1 FROM tab0
----
178929
2100
9801

query I rowsort
SELECT + ( - - col2 ) AS col2 FROM tab2
----
23
40
58

query I rowsort
SELECT ALL + 19 * + 65 AS col2 FROM tab2
----
1235
1235
1235

query I rowsort
SELECT ALL + col0 * + + ( + + col1 ) * col2 FROM tab1
----
25075
290836
68544

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 54, ( 12 ) col1 FROM tab0
----
54
12

onlyif mysql # DIV for integer division: 
query I rowsort label-5599
SELECT DISTINCT + 87 DIV col1 col0 FROM tab0 AS cor0
----
1
4
87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5599
SELECT DISTINCT + 87 / col1 col0 FROM tab0 AS cor0
----
1
4
87

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 * + col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5602
SELECT DISTINCT + COUNT( * ) col0, - COUNT( * ) AS col0 FROM tab1 AS cor0
----
3
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5602
SELECT DISTINCT + COUNT ( * ) col0, - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
3
-3

query I rowsort
SELECT + + 70 - + - 55 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2973878398e469d83385e7e06bd5af99

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-5604
SELECT ALL * FROM tab1 cor0 CROSS JOIN tab1 AS cor1 WHERE + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-5604
SELECT ALL * FROM tab1 cor0 CROSS JOIN tab1 AS cor1 WHERE + CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5605
SELECT ALL col0 + 86 * + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5605
SELECT ALL col0 + 86 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5606
SELECT SUM( - col2 ) FROM tab2 cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5606
SELECT SUM ( - col2 ) FROM tab2 cor0 WHERE NULL IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - 55 - - + col0 col2 FROM tab1 AS cor0
----
-190
-2494
-719

query I rowsort
SELECT col1 * + + col2 * - - 62 * - 25 + - 14 AS col0 FROM tab1 AS cor0
----
-2083214
-457264
-4953814

onlyif mysql # DIV for integer division: 
query I rowsort label-5609
SELECT + - ( - - col1 ) DIV + ( - col2 ) AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5609
SELECT + - ( - - col1 ) / + ( - col2 ) AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - 5 + - col2 AS col2 FROM tab2 AS cor0
----
-28
-45
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5611
SELECT ALL - CAST( - - col2 AS SIGNED ) FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-5611
SELECT ALL - CAST ( - - col2 AS INTEGER ) FROM tab1
----
-59
-68
-96

query III rowsort
SELECT * FROM tab2 WHERE - + col0 > - - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5613
SELECT ALL - COUNT( * ) + + COUNT( * ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5613
SELECT ALL - COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5614
SELECT DISTINCT + 86 DIV + COUNT( * ) AS col0 FROM tab1
----
28

skipif mysql # not compatible
query I rowsort label-5614
SELECT DISTINCT + 86 / + COUNT ( * ) AS col0 FROM tab1
----
28

query I rowsort
SELECT ALL 58 * - ( - col2 ) + + col1 AS col1 FROM tab0
----
2807
5743
601

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5616
SELECT CAST( NULL AS SIGNED ) + + - col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5616
SELECT CAST ( NULL AS INTEGER ) + + - col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5617
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT IN ( + col0, - CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-5617
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT IN ( + col0, - CAST ( NULL AS REAL ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5618
SELECT - - col0 AS col1, col1 + - CAST( + 94 AS SIGNED ) + + 83 * + CAST( col0 AS SIGNED ) FROM tab1 AS cor0
----
51
4153
85
6966
91
7506

skipif mysql # not compatible
query II rowsort label-5618
SELECT - - col0 AS col1, col1 + - CAST ( + 94 AS INTEGER ) + + 83 * + CAST ( col0 AS INTEGER ) FROM tab1 AS cor0
----
51
4153
85
6966
91
7506

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5619
SELECT ALL + col0 + + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5619
SELECT ALL + col0 + + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5620
SELECT DISTINCT ( + + 78 ) - + - COUNT( ALL col2 ) FROM tab2
----
81

skipif mysql # not compatible
query I rowsort label-5620
SELECT DISTINCT ( + + 78 ) - + - COUNT ( ALL col2 ) FROM tab2
----
81

query I rowsort
SELECT DISTINCT col2 - + col1 * - 30 AS col2 FROM tab1
----
1478
209
516

query I rowsort
SELECT 57 - + col2 AS col2 FROM tab2
----
-1
17
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5623
SELECT - CAST( NULL AS SIGNED ) * 26 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5623
SELECT - CAST ( NULL AS INTEGER ) * 26 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + 54 * - + col2 + + 83 FROM tab0 cor0
----
-2455
-457
-5263

onlyif mysql # aggregate syntax: 
query I rowsort label-5625
SELECT ALL - - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-5625
SELECT ALL - - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-5626
SELECT + + MAX( DISTINCT col2 ) AS col0, 18 FROM tab1 AS cor0
----
96
18

skipif mysql # not compatible
query II rowsort label-5626
SELECT + + MAX ( DISTINCT col2 ) AS col0, 18 FROM tab1 AS cor0
----
96
18

query II rowsort
SELECT DISTINCT + + col1 * col1, + col2 AS col1 FROM tab0 AS cor0
----
1
99
441
10
6561
47

query I rowsort
SELECT - ( - 18 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( + 40 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5629
SELECT ALL + CAST( NULL AS DECIMAL ) col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5629
SELECT ALL + CAST ( NULL AS REAL ) col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT col0 FROM tab2 WHERE NOT + - col0 IS NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5631
SELECT ALL + 59 * + - COUNT( * ) FROM tab2
----
-177

skipif mysql # not compatible
query I rowsort label-5631
SELECT ALL + 59 * + - COUNT ( * ) FROM tab2
----
-177

onlyif mysql # aggregate syntax: 
query I rowsort label-5632
SELECT DISTINCT - MAX( - 39 ) AS col1 FROM tab1
----
39

skipif mysql # not compatible
query I rowsort label-5632
SELECT DISTINCT - MAX ( - 39 ) AS col1 FROM tab1
----
39

query I rowsort
SELECT - - col2 * + col0 / - col1 AS col1 FROM tab2 WHERE - col0 > NULL
----

query I rowsort
SELECT + 34 * col0 + - + col2 FROM tab2
----
1541
2136
2492

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + + - 19 * - 41 * + col2 col0 FROM tab2 AS cor0
----
17940
31200
45240

query I rowsort
SELECT DISTINCT 84 + + - 61 FROM tab2 AS cor0
----
23

query I rowsort
SELECT DISTINCT + 56 + col1 AS col1 FROM tab1 AS cor0
----
103
61
70

onlyif mysql # aggregate syntax: 
query I rowsort label-5638
SELECT + + 76 + - + 64 + - - 81 + COUNT( * ) * SUM( col2 ) col1 FROM tab0 AS cor0
----
561

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5638
SELECT + + 76 + - + 64 + - - 81 + COUNT ( * ) * SUM ( col2 ) col1 FROM tab0 AS cor0
----
561

query I rowsort
SELECT ALL - + col2 + + 39 AS col1 FROM tab2 cor0
----
-1
-19
16

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL <= - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 col1 FROM tab0 AS cor0 WHERE NOT - ( + + 90 ) IS NULL
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5642
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 83 NOT IN ( CAST( ( + col2 ) AS SIGNED ) * col2 + - CAST( - + 86 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5642
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 83 NOT IN ( CAST ( ( + col2 ) AS INTEGER ) * col2 + - CAST ( - + 86 AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT ( - 31 ) * - 65 AS col1 FROM tab0 AS cor0
----
2015

query I rowsort
SELECT ALL - col0 * + 56 AS col1 FROM tab2 AS cor0
----
-2576
-3584
-4200

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col1 + - col1 IN ( - col2 + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ( - - col1 ) - 98 + + col2 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5647
SELECT DISTINCT + 53 DIV - - 93 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5647
SELECT DISTINCT + 53 / - - 93 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5648
SELECT DISTINCT 36 * + COUNT( * ) AS col1 FROM tab0
----
108

skipif mysql # not compatible
query I rowsort label-5648
SELECT DISTINCT 36 * + COUNT ( * ) AS col1 FROM tab0
----
108

onlyif mysql # DIV for integer division: 
query I rowsort label-5649
SELECT - col2 - col0 DIV + - col0 FROM tab0
----
-46
-9
-98

skipif mysql # not compatible
query I rowsort label-5649
SELECT - col2 - col0 / + - col0 FROM tab0
----
-46
-9
-98

query I rowsort
SELECT - col1 * + col1 - - 93 FROM tab2
----
-2508
-4396
-5836

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5651
SELECT ALL - CAST( - col1 AS SIGNED ) AS col1 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-5651
SELECT ALL - CAST ( - col1 AS INTEGER ) AS col1 FROM tab2
----
51
67
77

query I rowsort
SELECT col2 * + 87 - 20 FROM tab1
----
5113
5896
8332

query II rowsort
SELECT col1 AS col1, col2 AS col2 FROM tab2 AS cor0 WHERE 38 + col1 = ( - col1 )
----

query I rowsort
SELECT DISTINCT - col2 * - + col1 FROM tab1 AS cor0 WHERE + col0 * - col1 = - - col0
----

query I rowsort
SELECT ( - ( - 97 ) ) FROM tab2
----
97
97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5656
SELECT + COUNT( * ) * - 90 AS col2 FROM tab2
----
-270

skipif mysql # not compatible
query I rowsort label-5656
SELECT + COUNT ( * ) * - 90 AS col2 FROM tab2
----
-270

onlyif mysql # DIV for integer division: 
query I rowsort label-5657
SELECT DISTINCT + 79 DIV col1 AS col2 FROM tab1
----
1
15
5

skipif mysql # not compatible
query I rowsort label-5657
SELECT DISTINCT + 79 / col1 AS col2 FROM tab1
----
1
15
5

query I rowsort
SELECT ALL + - col0 AS col2 FROM tab1 AS cor0 WHERE NOT 48 IS NULL
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5659
SELECT DISTINCT + 2 * - SUM( 23 ) * - - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-414

skipif mysql # not compatible
query I rowsort label-5659
SELECT DISTINCT + 2 * - SUM ( 23 ) * - - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-414

onlyif mysql # aggregate syntax: 
query I rowsort label-5660
SELECT COUNT( DISTINCT + 40 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5660
SELECT COUNT ( DISTINCT + 40 ) FROM tab1 AS cor0
----
1

query II rowsort
SELECT col1, - col2 AS col0 FROM tab0 cor0
----
1
-99
21
-10
81
-47

query I rowsort
SELECT + 8 * - 38 * 94 FROM tab1
----
-28576
-28576
-28576

query II rowsort
SELECT - + 78 + + col0 AS col0, + col2 FROM tab1 AS cor0
----
-27
96
13
68
7
59

onlyif mysql # aggregate syntax: 
query I rowsort label-5664
SELECT COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT col1 + - + col1 < col1
----
0

skipif mysql # not compatible
query I rowsort label-5664
SELECT COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT col1 + - + col1 < col1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col0 AS col1, col2 * col2 col2 FROM tab0 AS cor0 WHERE NOT col0 <> col0 + col1 + col2 / + 59 * - 6 + + col1
----

query I rowsort
SELECT ( - + col0 ) AS col1 FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5667
SELECT DISTINCT + - MAX( 75 ) + - COUNT( * ) * - 14 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
51

skipif mysql # not compatible
query I rowsort label-5667
SELECT DISTINCT + - MAX ( 75 ) + - COUNT ( * ) * - 14 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
51

query III rowsort
SELECT * FROM tab2 WHERE ( NOT col0 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL <> + col1
----

query I rowsort
SELECT ALL - 14 + + - ( + - ( - + 8 ) ) FROM tab1
----
-22
-22
-22

query I rowsort
SELECT DISTINCT - + col1 * + 17 FROM tab0 AS cor0 WHERE - 18 + + col1 IS NULL
----

query I rowsort
SELECT + 1 AS col1 FROM tab0 cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5673
SELECT - 53 - - - COUNT( DISTINCT + ( col0 ) ) + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-5673
SELECT - 53 - - - COUNT ( DISTINCT + ( col0 ) ) + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-59

query I rowsort
SELECT + col2 + - col2 + + 71 FROM tab0 AS cor0
----
71
71
71

onlyif mysql # DIV for integer division: 
query I rowsort label-5675
SELECT - 47 + - 58 DIV + col2 AS col0 FROM tab0 AS cor0
----
-47
-48
-52

skipif mysql # not compatible
query I rowsort label-5675
SELECT - 47 + - 58 / + col2 AS col0 FROM tab0 AS cor0
----
-47
-48
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-5676
SELECT MAX( DISTINCT + col0 ) + - - 45 FROM tab1
----
136

skipif mysql # not compatible
query I rowsort label-5676
SELECT MAX ( DISTINCT + col0 ) + - - 45 FROM tab1
----
136

onlyif mysql # DIV for integer division: 
query I rowsort label-5677
SELECT DISTINCT + col2 - + 10 DIV - col1 * + - 28 * 39 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-5677
SELECT DISTINCT + col2 - + 10 / - col1 * + - 28 * 39 FROM tab2
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5678
SELECT ALL + - COUNT( * ) AS col0 FROM tab1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5678
SELECT ALL + - COUNT ( * ) AS col0 FROM tab1 WHERE NOT NULL IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5679
SELECT * FROM tab1 WHERE CAST( col2 AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5679
SELECT * FROM tab1 WHERE CAST ( col2 AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col1 + - - col2 < + + col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5681
SELECT - MAX( DISTINCT - - col0 ) DIV - SUM( + - 76 ) - - ( + 46 ) AS col2 FROM tab0
----
46

skipif mysql # not compatible
query I rowsort label-5681
SELECT - MAX ( DISTINCT - - col0 ) / - SUM ( + - 76 ) - - ( + 46 ) AS col2 FROM tab0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-5682
SELECT + COUNT( DISTINCT - col0 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5682
SELECT + COUNT ( DISTINCT - col0 ) AS col0 FROM tab1 AS cor0
----
3

query II rowsort
SELECT + 39 AS col0, - col0 AS col1 FROM tab1 AS cor0
----
39
-51
39
-85
39
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5684
SELECT - + COUNT( * ) DIV + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5684
SELECT - + COUNT ( * ) / + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5685
SELECT ALL + COUNT( DISTINCT + + ( - 44 ) ) AS col0 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5685
SELECT ALL + COUNT ( DISTINCT + + ( - 44 ) ) AS col0 FROM tab2 AS cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5686
SELECT ALL - + CAST( + - col1 AS SIGNED ) * + col0 * - col1 + col0, col1 AS col2 FROM tab1 AS cor0 WHERE NOT NULL >= ( NULL )
----

skipif mysql # not compatible
query II rowsort label-5686
SELECT ALL - + CAST ( + - col1 AS INTEGER ) * + col0 * - col1 + col0, col1 AS col2 FROM tab1 AS cor0 WHERE NOT NULL >= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5687
SELECT + CAST( col2 AS SIGNED ) * + col0 * + - col1 AS col0 FROM tab0 AS cor0
----
-18270
-57105
-9603

skipif mysql # not compatible
query I rowsort label-5687
SELECT + CAST ( col2 AS INTEGER ) * + col0 * + - col1 AS col0 FROM tab0 AS cor0
----
-18270
-57105
-9603

query I rowsort
SELECT ALL + col2 * col2 * col0 AS col2 FROM tab1 AS cor0
----
295885
420784
470016

onlyif mysql # DIV for integer division: 
query I rowsort label-5689
SELECT DISTINCT - - 36 DIV - + col2 * col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5689
SELECT DISTINCT - - 36 / - + col2 * col1 FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5690
SELECT DISTINCT - 2 DIV + col0 * + col0 AS col2 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-5690
SELECT DISTINCT - 2 / + col0 * + col0 AS col2 FROM tab0 cor0
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col1 > + + col0
----
75
67
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5692
SELECT ALL + col2 AS col0 FROM tab0 WHERE NULL < - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-5692
SELECT ALL + col2 AS col0 FROM tab0 WHERE NULL < - CAST ( NULL AS INTEGER )
----

query II rowsort
SELECT - 94 AS col2, 20 AS col2 FROM tab2
----
-94
20
-94
20
-94
20

onlyif mysql # aggregate syntax: 
query I rowsort label-5694
SELECT - 55 * - COUNT( * ) AS col0 FROM tab1
----
165

skipif mysql # not compatible
query I rowsort label-5694
SELECT - 55 * - COUNT ( * ) AS col0 FROM tab1
----
165

query I rowsort
SELECT DISTINCT + 8 + + + 51 FROM tab1
----
59

onlyif mysql # aggregate syntax: 
query II rowsort label-5696
SELECT COUNT( * ), 61 * COUNT( * ) * - 11 AS col1 FROM tab2
----
3
-2013

skipif mysql # not compatible
query II rowsort label-5696
SELECT COUNT ( * ), 61 * COUNT ( * ) * - 11 AS col1 FROM tab2
----
3
-2013

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query III rowsort label-5697
SELECT * FROM tab1 cor0 WHERE 77 DIV - + col0 + + + col2 IN ( - col2 * + 20, + col2, - col1 * col1, - col1 - col1, - CAST( + - col2 AS SIGNED ) )
----
85
5
59
91
47
68

skipif mysql # not compatible
query III rowsort label-5697
SELECT * FROM tab1 cor0 WHERE 77 / - + col0 + + + col2 IN ( - col2 * + 20, + col2, - col1 * col1, - col1 - col1, - CAST ( + - col2 AS INTEGER ) )
----
85
5
59
91
47
68

query I rowsort
SELECT ALL + col2 AS col2 FROM tab0 AS cor0 WHERE NOT 58 * + col0 <> NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 * + col0 - - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5700
SELECT + COUNT( * ) * - COUNT( + 81 ) FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-5700
SELECT + COUNT ( * ) * - COUNT ( + 81 ) FROM tab1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5701
SELECT DISTINCT + 4 + CAST( col1 AS SIGNED ) AS col0 FROM tab2
----
55
71
81

skipif mysql # not compatible
query I rowsort label-5701
SELECT DISTINCT + 4 + CAST ( col1 AS INTEGER ) AS col0 FROM tab2
----
55
71
81

query III rowsort
SELECT ALL * FROM tab2 WHERE col1 * 85 NOT BETWEEN ( - col0 ) + col2 * col1 AND 11
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col0 IN ( - 98 / col1 )
----

query I rowsort
SELECT col1 AS col2 FROM tab0 WHERE col1 > 15
----
21
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 18 * - 94 col1 FROM tab0
----
-1692
-1692
-1692

query I rowsort
SELECT col2 + + 14 AS col1 FROM tab0
----
113
24
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col1 FROM tab2 WHERE NULL <= 89 * - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5708
SELECT ALL 46 + COUNT( * ) FROM tab2
----
49

skipif mysql # not compatible
query I rowsort label-5708
SELECT ALL 46 + COUNT ( * ) FROM tab2
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-5709
SELECT DISTINCT COUNT( * ) col2 FROM tab2 WHERE NOT NULL <= col2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5709
SELECT DISTINCT COUNT ( * ) col2 FROM tab2 WHERE NOT NULL <= col2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - 83 col2 FROM tab2
----
-4233
-5561
-6391

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5711
SELECT 1 - - 36 FROM tab1 WHERE - 84 - 58 NOT BETWEEN ( 88 ) AND 19 * CAST( NULL AS SIGNED )
----
37
37
37

skipif mysql # not compatible
query I rowsort label-5711
SELECT 1 - - 36 FROM tab1 WHERE - 84 - 58 NOT BETWEEN ( 88 ) AND 19 * CAST ( NULL AS INTEGER )
----
37
37
37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + 45 ) * 27 col1 FROM tab1
----
1215
1215
1215

query I rowsort
SELECT ALL 36 * - col2 AS col2 FROM tab1
----
-2124
-2448
-3456

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5714
SELECT CAST( col0 AS SIGNED ) + + 99 FROM tab0
----
114
186
196

skipif mysql # not compatible
query I rowsort label-5714
SELECT CAST ( col0 AS INTEGER ) + + 99 FROM tab0
----
114
186
196

query I rowsort
SELECT DISTINCT col0 * 76 FROM tab2
----
3496
4864
5700

query I rowsort
SELECT ALL + 96 * AVG ( DISTINCT col0 ) AS col1 FROM tab1 WHERE NOT + col0 IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 96 col0 FROM tab0
----
-96

query III rowsort
SELECT * FROM tab0 WHERE ( 18 + col1 ) IS NULL
----

query I rowsort
SELECT 54 FROM tab0 WHERE - ( - 86 ) - + col1 IS NOT NULL
----
54
54
54

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( col1 ) NOT IN ( - col1 * 86 + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab0 WHERE ( NULL ) IS NULL
----
10
47
99

query I rowsort
SELECT ALL + ( + 16 ) AS col1 FROM tab2
----
16
16
16

query I rowsort
SELECT + 22 * col2 AS col2 FROM tab1 AS cor0
----
1298
1496
2112

onlyif mysql # aggregate syntax: 
query I rowsort label-5724
SELECT ALL ( + COUNT( * ) ) * - 6 FROM tab0 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-5724
SELECT ALL ( + COUNT ( * ) ) * - 6 FROM tab0 AS cor0
----
-18

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL IN ( + 2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5726
SELECT + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT - col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5726
SELECT + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT - col0 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5727
SELECT 77 * COUNT( ALL ( col2 ) ) AS col1 FROM tab1 AS cor0
----
231

skipif mysql # not compatible
query I rowsort label-5727
SELECT 77 * COUNT ( ALL ( col2 ) ) AS col1 FROM tab1 AS cor0
----
231

onlyif mysql # aggregate syntax: 
query I rowsort label-5728
SELECT + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2
----
9

skipif mysql # not compatible
query I rowsort label-5728
SELECT + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5729
SELECT + col0 FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) IS NOT NULL
----
15
87
97

skipif mysql # not compatible
query I rowsort label-5729
SELECT + col0 FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5730
SELECT DISTINCT + COUNT( * ) * - SUM( DISTINCT col0 * col1 ) FROM tab0 AS cor0
----
-9417

skipif mysql # not compatible
query I rowsort label-5730
SELECT DISTINCT + COUNT ( * ) * - SUM ( DISTINCT col0 * col