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 * col1 ) FROM tab0 AS cor0
----
-9417

onlyif mysql # aggregate syntax: 
query I rowsort label-5731
SELECT ALL SUM( ALL col0 ) * + COUNT( * ) AS col0 FROM tab1 AS cor0
----
681

skipif mysql # not compatible
query I rowsort label-5731
SELECT ALL SUM ( ALL col0 ) * + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
681

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5732
SELECT DISTINCT - CAST( - CAST( COUNT( * ) AS SIGNED ) AS SIGNED ) * ( - ( - 34 ) ) FROM tab0 AS cor0
----
102

skipif mysql # not compatible
query I rowsort label-5732
SELECT DISTINCT - CAST ( - CAST ( COUNT ( * ) AS INTEGER ) AS INTEGER ) * ( - ( - 34 ) ) FROM tab0 AS cor0
----
102

query I rowsort
SELECT 25 * col2 FROM tab0 AS cor0
----
1175
2475
250

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5738
SELECT 9 * + COUNT( * ) - 94 AS col2 FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
-67

skipif mysql # not compatible
query I rowsort label-5738
SELECT 9 * + COUNT ( * ) - 94 AS col2 FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5739
SELECT ALL - MIN( CAST( col2 AS SIGNED ) ) FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-5739
SELECT ALL - MIN ( CAST ( col2 AS INTEGER ) ) FROM tab1 AS cor0
----
-59

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5740
SELECT ALL col1 DIV - 26 FROM tab1 WHERE NOT col1 * CAST( + col0 AS SIGNED ) >= - col0 * - 50
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5740
SELECT ALL col1 / - 26 FROM tab1 WHERE NOT col1 * CAST ( + col0 AS INTEGER ) >= - col0 * - 50
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5741
SELECT COUNT( * ) * + 63 col0 FROM tab1
----
189

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5741
SELECT COUNT ( * ) * + 63 col0 FROM tab1
----
189

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5742
SELECT DISTINCT + 45 FROM tab1 WHERE CAST( NULL AS SIGNED ) + col2 IS NOT NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5744
SELECT DISTINCT * FROM tab0 WHERE ( - col0 + + col0 ) <> CAST( CAST( NULL AS SIGNED ) AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5744
SELECT DISTINCT * FROM tab0 WHERE ( - col0 + + col0 ) <> CAST ( CAST ( NULL AS INTEGER ) AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col1 FROM tab0 WHERE ( 36 ) IS NOT NULL
----
1
21
81

query I rowsort
SELECT col0 + + 24 * + ( col0 ) FROM tab0
----
2175
2425
375

query I rowsort
SELECT col0 * + col0 + col0 AS col0 FROM tab1 AS cor0
----
2652
7310
8372

query I rowsort
SELECT + + col2 + 83 * 97 FROM tab0 AS cor0
----
8061
8098
8150

query I rowsort
SELECT DISTINCT - 24 + + col2 FROM tab1 AS cor0
----
35
44
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5750
SELECT CAST( MIN( col1 ) AS SIGNED ) AS col2 FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-5750
SELECT CAST ( MIN ( col1 ) AS INTEGER ) AS col2 FROM tab0 cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5751
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) < NULL
----
0

skipif mysql # not compatible
query I rowsort label-5751
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) < NULL
----
0

query I rowsort
SELECT + 8 * + col1 - + - 76 FROM tab1 AS cor0
----
116
188
452

query I rowsort
SELECT DISTINCT - col2 + - - 87 AS col1 FROM tab2 AS cor0
----
29
47
64

onlyif mysql # aggregate syntax: 
query I rowsort label-5754
SELECT DISTINCT COUNT( * ) + MAX( DISTINCT 72 ) AS col1 FROM tab0 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-5754
SELECT DISTINCT COUNT ( * ) + MAX ( DISTINCT 72 ) AS col1 FROM tab0 AS cor0
----
75

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5756
SELECT col2 + 98 DIV 90 FROM tab1 AS cor0 WHERE - 4 + col0 IS NOT NULL
----
60
69
97

skipif mysql # not compatible
query I rowsort label-5756
SELECT col2 + 98 / 90 FROM tab1 AS cor0 WHERE - 4 + col0 IS NOT NULL
----
60
69
97

query I rowsort
SELECT ALL + - col0 - 97 FROM tab1 AS cor0
----
-148
-182
-188

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

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

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

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

query I rowsort
SELECT + col1 + + ( 31 ) AS col1 FROM tab0 AS cor0
----
112
32
52

onlyif mysql # aggregate syntax: 
query I rowsort label-5761
SELECT 27 * + ( - COUNT( * ) ) * COUNT( * ) + + COUNT( * ) FROM tab1
----
-240

skipif mysql # not compatible
query I rowsort label-5761
SELECT 27 * + ( - COUNT ( * ) ) * COUNT ( * ) + + COUNT ( * ) FROM tab1
----
-240

query I rowsort
SELECT ALL col1 - - 47 AS col0 FROM tab1
----
52
61
94

query I rowsort
SELECT ALL + col2 FROM tab0 WHERE NOT - col1 * col0 <> ( - col1 )
----

query I rowsort
SELECT ALL + ( + - ( ( + 49 ) ) ) FROM tab0
----
-49
-49
-49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5765
SELECT ALL + CAST( - 95 AS SIGNED ) AS col0, - col2 FROM tab2
----
-95
-23
-95
-40
-95
-58

skipif mysql # not compatible
query II rowsort label-5765
SELECT ALL + CAST ( - 95 AS INTEGER ) AS col0, - col2 FROM tab2
----
-95
-23
-95
-40
-95
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5766
SELECT - 73 * - - ( - ( + SUM( - col0 ) ) ) AS col2 FROM tab1
----
-16571

skipif mysql # not compatible
query I rowsort label-5766
SELECT - 73 * - - ( - ( + SUM ( - col0 ) ) ) AS col2 FROM tab1
----
-16571

onlyif mysql # DIV for integer division: 
query I rowsort label-5767
SELECT 1 DIV - + 96 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5767
SELECT 1 / - + 96 FROM tab0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - - col0 > + - col1 * 19
----

query I rowsort
SELECT - ( - 75 ) + + 30 AS col0 FROM tab1 WHERE NOT + - ( + - col1 ) * + col2 IS NULL
----
105
105
105

query I rowsort
SELECT DISTINCT + ( - - 22 ) * col0 FROM tab1
----
1122
1870
2002

onlyif mysql # aggregate syntax: 
query I rowsort label-5771
SELECT ALL 31 * MAX( - col1 ) col0 FROM tab1 AS cor0
----
-155

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5771
SELECT ALL 31 * MAX ( - col1 ) col0 FROM tab1 AS cor0
----
-155

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

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

query II rowsort
SELECT 29, col1 * col1 - + 63 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) IS NULL OR NULL < NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT 29 * + 23 IS NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

query I rowsort
SELECT + 81 + + 79 AS col0 FROM tab0 AS cor0
----
160
160
160

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5779
SELECT DISTINCT - COUNT( * ) * + SUM( ALL + 64 ) FROM tab0
----
-576

skipif mysql # not compatible
query I rowsort label-5779
SELECT DISTINCT - COUNT ( * ) * + SUM ( ALL + 64 ) FROM tab0
----
-576

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT + ( - col2 ) * - - col0 + 41 AS col2 FROM tab2
----
-1017
-2519
-4309

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5788
SELECT DISTINCT 46 + MAX( ALL - 10 ) FROM tab1 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-5788
SELECT DISTINCT 46 + MAX ( ALL - 10 ) FROM tab1 AS cor0
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-5789
SELECT DISTINCT + - col2 DIV 54 + - col1 + - + col0 + - col1 FROM tab1 AS cor0
----
-186
-80
-96

skipif mysql # not compatible
query I rowsort label-5789
SELECT DISTINCT + - col2 / 54 + - col1 + - + col0 + - col1 FROM tab1 AS cor0
----
-186
-80
-96

query I rowsort
SELECT DISTINCT 63 + col2 * - col0 * - col1 FROM tab2
----
197183
291513
54021

onlyif mysql # aggregate syntax: 
query I rowsort label-5791
SELECT MAX( ALL col2 ) col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5791
SELECT MAX ( ALL col2 ) col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
58

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5793
SELECT DISTINCT - - CAST( NULL AS DECIMAL ) - + + ( - 74 ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5793
SELECT DISTINCT - - CAST ( NULL AS REAL ) - + + ( - 74 ) FROM tab2 cor0
----
NULL

query I rowsort
SELECT DISTINCT + col2 * - - 82 + - - 17 FROM tab2 AS cor0
----
1903
3297
4773

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 88 * - - 33 BETWEEN 34 AND - 11
----

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5799
SELECT ALL COUNT( * ) AS col2, 66 AS col0 FROM tab2
----
3
66

skipif mysql # not compatible
query II rowsort label-5799
SELECT ALL COUNT ( * ) AS col2, 66 AS col0 FROM tab2
----
3
66

query III rowsort
SELECT ALL * FROM tab2 WHERE - + col2 * 58 * + 15 * + + 87 + + col1 - - col2 + + ( - col1 ) IN ( + 45 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col0, col1 AS col1 FROM tab2
----
23
51
40
77
58
67

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5804
SELECT DISTINCT CAST( SUM( + - 28 ) AS SIGNED ) FROM tab0
----
-84

skipif mysql # not compatible
query I rowsort label-5804
SELECT DISTINCT CAST ( SUM ( + - 28 ) AS INTEGER ) FROM tab0
----
-84

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

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

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

skipif mysql # not compatible
query I rowsort label-5806
SELECT DISTINCT MAX ( - col2 ) FROM tab1 AS cor0
----
-59

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5809
SELECT 33 DIV + ( + 53 ) * - col1 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5809
SELECT 33 / + ( + 53 ) * - col1 AS col0 FROM tab1 AS cor0
----
0
0
0

query II rowsort
SELECT + col2, + col0 - - + col1 FROM tab2 cor0
----
23
97
40
141
58
142

query I rowsort
SELECT ALL 68 * - ( - ( + col0 ) ) FROM tab1
----
3468
5780
6188

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5815
SELECT ALL COUNT( DISTINCT 64 ) AS col0 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5815
SELECT ALL COUNT ( DISTINCT 64 ) AS col0 FROM tab2 AS cor0
----
1

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5817
SELECT + ( + col0 ) DIV - ( - ( + - 90 ) ) FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5817
SELECT + ( + col0 ) / - ( - ( + - 90 ) ) FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col0 >= ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + ( + 99 ) + - col0 * + col2 AS col1, 75 col0 FROM tab1 AS cor0
----
-4995
75
-5114
75
-6287
75

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5821
SELECT DISTINCT + col1 * + col2 DIV + col2 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-5821
SELECT DISTINCT + col1 * + col2 / + col2 FROM tab2
----
51
67
77

onlyif mysql # DIV for integer division: 
query I rowsort label-5822
SELECT ALL 41 * - col0 DIV col0 FROM tab1
----
-41
-41
-41

skipif mysql # not compatible
query I rowsort label-5822
SELECT ALL 41 * - col0 / col0 FROM tab1
----
-41
-41
-41

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5823
SELECT DISTINCT 59 DIV + - MAX( DISTINCT - col1 ) AS col0, 50 FROM tab1
----
11
50

skipif mysql # not compatible
query II rowsort label-5823
SELECT DISTINCT 59 / + - MAX ( DISTINCT - col1 ) AS col0, 50 FROM tab1
----
11
50

onlyif mysql # DIV for integer division: 
query I rowsort label-5824
SELECT ALL 68 DIV - - col2 AS col1 FROM tab0
----
0
1
6

skipif mysql # not compatible
query I rowsort label-5824
SELECT ALL 68 / - - col2 AS col1 FROM tab0
----
0
1
6

query III rowsort
SELECT * FROM tab2 WHERE + col1 * - 15 IN ( col0 / - 67 * + + ( + 89 ) ) AND NULL >= NULL
----

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

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

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

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

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

query I rowsort
SELECT + 64 AS col0 FROM tab1 cor0
----
64
64
64

onlyif mysql # aggregate syntax: 
query I rowsort label-5830
SELECT + MAX( DISTINCT - + col0 ) * ( MIN( ( - col0 ) ) ) FROM tab1 cor0
----
4641

skipif mysql # not compatible
query I rowsort label-5830
SELECT + MAX ( DISTINCT - + col0 ) * ( MIN ( ( - col0 ) ) ) FROM tab1 cor0
----
4641

query I rowsort
SELECT DISTINCT - 41 * + - col2 - 9 + - col2 * - col1 FROM tab0
----
4149
5725
611

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5832
SELECT MIN( DISTINCT 54 ) * 9 DIV COUNT( * ) + - - 86 AS col0 FROM tab1 AS cor0
----
248

skipif mysql # not compatible
query I rowsort label-5832
SELECT MIN ( DISTINCT 54 ) * 9 / COUNT ( * ) + - - 86 AS col0 FROM tab1 AS cor0
----
248

query I rowsort
SELECT ALL - + 41 AS col0 FROM tab2 AS cor0
----
-41
-41
-41

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5835
SELECT - COUNT( * ) * - + 81 col2 FROM tab2 AS cor0
----
243

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5835
SELECT - COUNT ( * ) * - + 81 col2 FROM tab2 AS cor0
----
243

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

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

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

query I rowsort
SELECT DISTINCT - - ( 18 ) FROM tab1 AS cor0
----
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 col0, col2 FROM tab0 AS cor0
----
-1
99
-21
10
-81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5840
SELECT - MAX( + + 21 ) col0 FROM tab1 AS cor0
----
-21

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5840
SELECT - MAX ( + + 21 ) col0 FROM tab1 AS cor0
----
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5841
SELECT - ( - 10 ) DIV ( + 58 ) col2, 94 * + COUNT( * ) AS col1 FROM tab2 AS cor0
----
0
282

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5841
SELECT - ( - 10 ) / ( + 58 ) col2, 94 * + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
0
282

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

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

query I rowsort
SELECT - - col1 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) <> col2 + 6
----

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

skipif mysql # not compatible
query II rowsort label-5844
SELECT - - col1, - col2 * + col1 * CAST ( NULL AS INTEGER ) + col2 AS col2 FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 NOT IN ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5846
SELECT ( - COUNT( 19 ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-5846
SELECT ( - COUNT ( 19 ) ) FROM tab0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 * col0 col0, - col1 col2 FROM tab2 AS cor0
----
2116
-51
4096
-77
5625
-67

query I rowsort
SELECT ALL col2 * - 97 AS col1 FROM tab0 cor0
----
-4559
-9603
-970

onlyif mysql # aggregate syntax: 
query II rowsort label-5849
SELECT DISTINCT + 95, MAX( ALL - 63 ) + - 92 * + COUNT( * ) col0 FROM tab1
----
95
-339

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5849
SELECT DISTINCT + 95, MAX ( ALL - 63 ) + - 92 * + COUNT ( * ) col0 FROM tab1
----
95
-339

query I rowsort
SELECT - col2 + - 29 * - col0 + - col1 AS col1 FROM tab0
----
2492
2713
307

onlyif mysql # DIV for integer division: 
query I rowsort label-5851
SELECT + + col2 DIV + + col2 + col1 * - col0 + - col1 AS col1 FROM tab0 AS cor0
----
-1295
-1847
-97

skipif mysql # not compatible
query I rowsort label-5851
SELECT + + col2 / + + col2 + col1 * - col0 + - col1 AS col1 FROM tab0 AS cor0
----
-1295
-1847
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5852
SELECT ALL COUNT( * ) + + + 19 AS col1 FROM tab1 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-5852
SELECT ALL COUNT ( * ) + + + 19 AS col1 FROM tab1 AS cor0
----
22

query I rowsort
SELECT - col2 + + 82 FROM tab0 cor0
----
-17
35
72

query I rowsort
SELECT DISTINCT 46 + - + 75 AS col2 FROM tab1 cor0
----
-29

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

query I rowsort
SELECT ALL + + col1 * - 37 * + col2 + col2 AS col1 FROM tab0 AS cor0
----
-140812
-3564
-7760

query I rowsort
SELECT DISTINCT - + 82 + 36 AS col2 FROM tab2 cor0
----
-46

query I rowsort
SELECT DISTINCT + - col2 * 36 AS col2 FROM tab1 AS cor0
----
-2124
-2448
-3456

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + - col1 - - col2 * + col1 + 46 NOT IN ( + col1 * + + 92 * - + 31 * col0, + col0 / - col2 )
----

query III rowsort
SELECT * FROM tab1 WHERE - col2 * + 40 * - 54 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5861
SELECT + col2 * 25 * - ( - 74 ) * - CAST( - col1 AS SIGNED ) * - col2 FROM tab0
----
-18131850
-331018650
-3885000

skipif mysql # not compatible
query I rowsort label-5861
SELECT + col2 * 25 * - ( - 74 ) * - CAST ( - col1 AS INTEGER ) * - col2 FROM tab0
----
-18131850
-331018650
-3885000

query III rowsort
SELECT * FROM tab2 WHERE NULL > - + 4
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5863
SELECT DISTINCT 65 + - + 82 - + 80 - 56 * - CAST( col0 AS SIGNED ) col2 FROM tab0 WHERE NOT + col2 + 59 / 59 NOT IN ( + - 20, - 31 + - + 23, + col1 * 73 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5863
SELECT DISTINCT 65 + - + 82 - + 80 - 56 * - CAST ( col0 AS INTEGER ) col2 FROM tab0 WHERE NOT + col2 + 59 / 59 NOT IN ( + - 20, - 31 + - + 23, + col1 * 73 )
----

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

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

query I rowsort
SELECT + col0 + - 72 AS col2 FROM tab2 AS cor0
----
-26
-8
3

query I rowsort
SELECT DISTINCT - 48 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-48

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

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

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

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

query I rowsort
SELECT DISTINCT - col1 * + col0 AS col0 FROM tab0 cor0
----
-1215
-1827
-97

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5873
SELECT COUNT( * ), 87 - + 81 AS col1 FROM tab0 AS cor0
----
3
6

skipif mysql # not compatible
query II rowsort label-5873
SELECT COUNT ( * ), 87 - + 81 AS col1 FROM tab0 AS cor0
----
3
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5874
SELECT - SUM( + 18 ) FROM tab1 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-5874
SELECT - SUM ( + 18 ) FROM tab1 AS cor0
----
-54

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

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

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

query I rowsort
SELECT - ( - - ( 81 ) ) AS col1 FROM tab1 AS cor0
----
-81
-81
-81

query II rowsort
SELECT DISTINCT col2 AS col1, + ( col0 ) FROM tab2
----
23
46
40
64
58
75

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5880
SELECT ALL + CAST( col0 AS SIGNED ) FROM tab2 WHERE - - col1 IS NOT NULL
----
46
64
75

skipif mysql # not compatible
query I rowsort label-5880
SELECT ALL + CAST ( col0 AS INTEGER ) FROM tab2 WHERE - - col1 IS NOT NULL
----
46
64
75

onlyif mysql # DIV for integer division: 
query II rowsort label-5881
SELECT - col1 col2, 83 DIV + col0 FROM tab1
----
-14
1
-47
0
-5
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5881
SELECT - col1 col2, 83 / + col0 FROM tab1
----
-14
1
-47
0
-5
0

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 46 + - 52 > ( - + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - 30, col2 AS col2 FROM tab1
----
-30
59
-30
68
-30
96

query II rowsort
SELECT DISTINCT - col0 AS col0, - 84 AS col2 FROM tab1
----
-51
-84
-85
-84
-91
-84

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

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

query I rowsort
SELECT ALL + col1 * 13 FROM tab2
----
1001
663
871

query II rowsort
SELECT col1, col0 * + col2 AS col0 FROM tab2 AS cor0
----
51
1058
67
4350
77
2560

query I rowsort
SELECT + col2 + - col1 FROM tab1 AS cor0 WHERE 37 + + + 81 * - 69 <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 < - + 41
----

query I rowsort
SELECT ALL + 61 + 29 FROM tab0 AS cor0
----
90
90
90

query I rowsort
SELECT + 99 + - col0 FROM tab0 cor0
----
12
2
84

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

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

query I rowsort
SELECT col1 + + - 88 AS col1 FROM tab2 AS cor0
----
-11
-21
-37

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5895
SELECT ALL + - ( - col0 ) + + - col1 AS col1, CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0
----
-66
NULL
66
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-5895
SELECT ALL + - ( - col0 ) + + - col1 AS col1, CAST ( NULL AS REAL ) AS col2 FROM tab0 AS cor0
----
-66
NULL
66
NULL
96
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5896
SELECT DISTINCT + ( - MAX( - - col1 ) ) - - 31 col0 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5896
SELECT DISTINCT + ( - MAX ( - - col1 ) ) - - 31 col0 FROM tab2 AS cor0
----
-46

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

skipif mysql # not compatible
query I rowsort label-5897
SELECT MAX ( + - 22 ) * ( - - 60 ) + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5898
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + - 58 + 11 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5898
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + - 58 + 11 FROM tab1
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5900
SELECT ALL + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE ( - - col2 ) NOT IN ( - col2, 78, + 79, - 20 ) OR NULL BETWEEN + + CAST( ( + 63 ) AS SIGNED ) * - 95 AND - 71
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5900
SELECT ALL + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE ( - - col2 ) NOT IN ( - col2, 78, + 79, - 20 ) OR NULL BETWEEN + + CAST ( ( + 63 ) AS INTEGER ) * - 95 AND - 71
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5901
SELECT - 72 * + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-216

skipif mysql # not compatible
query I rowsort label-5901
SELECT - 72 * + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-216

query I rowsort
SELECT ALL 21 - + col1 FROM tab0 AS cor0
----
-60
0
20

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

query I rowsort
SELECT ALL col2 * - 65 * + col1 FROM tab1
----
-19175
-207740
-87360

query I rowsort
SELECT + 10 * + + 43 FROM tab2 AS cor0
----
430
430
430

onlyif mysql # aggregate syntax: 
query I rowsort label-5906
SELECT ALL SUM( - 27 ) FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-5906
SELECT ALL SUM ( - 27 ) FROM tab0 AS cor0
----
-81

query I rowsort
SELECT + - col1 * - - col1 + - 22 + ( 45 ) FROM tab2 cor0
----
-2578
-4466
-5906

query I rowsort
SELECT + - 66 * - + col1 + - ( col2 ) * - - col2 FROM tab2 AS cor0
----
1058
2837
3482

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5909
SELECT ALL CAST( + col0 AS SIGNED ) * - col1 * - col2 AS col2 FROM tab0
----
18270
57105
9603

skipif mysql # not compatible
query I rowsort label-5909
SELECT ALL CAST ( + col0 AS INTEGER ) * - col1 * - col2 AS col2 FROM tab0
----
18270
57105
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-5910
SELECT + COUNT( * ) * + + 91 AS col1 FROM tab1
----
273

skipif mysql # not compatible
query I rowsort label-5910
SELECT + COUNT ( * ) * + + 91 AS col1 FROM tab1
----
273

onlyif mysql # DIV for integer division: 
query I rowsort label-5911
SELECT ALL - col1 DIV + 94 col2 FROM tab0
----
0
0
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5912
SELECT DISTINCT ( + 24 ) * COUNT( * ) * 55 col2 FROM tab0
----
3960

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5912
SELECT DISTINCT ( + 24 ) * COUNT ( * ) * 55 col2 FROM tab0
----
3960

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

query I rowsort
SELECT DISTINCT - 84 * ( 32 ) AS col2 FROM tab2 AS cor0
----
-2688

query II rowsort
SELECT 13 + - + col1 AS col1, col2 FROM tab2
----
-38
23
-54
58
-64
40

query I rowsort
SELECT col2 + - - 76 FROM tab0
----
123
175
86

query I rowsort
SELECT ALL - ( 43 ) AS col1 FROM tab2
----
-43
-43
-43

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT 46 IS NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

query I rowsort
SELECT - 9 + col2 * + col2 AS col1 FROM tab1 AS cor0
----
3472
4615
9207

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

skipif mysql # not compatible
query I rowsort label-5920
SELECT DISTINCT + MAX ( ALL + - col2 ) - + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-62

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5921
SELECT MIN ( - 77 ) col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT ALL + - col1 * + 38 + + col1 AS col0 FROM tab2 cor0
----
-1887
-2479
-2849

query I rowsort
SELECT + + 66 AS col0 FROM tab1 AS cor0
----
66
66
66

query I rowsort
SELECT ALL + - col1 - - + ( 89 ) FROM tab0 cor0
----
68
8
88

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5925
SELECT ALL - col1, + col0 + CAST( 48 AS SIGNED ) + + 3 * + 75 - - - col0 AS col2 FROM tab0 AS cor0
----
-1
273
-21
273
-81
273

skipif mysql # not compatible
query II rowsort label-5925
SELECT ALL - col1, + col0 + CAST ( 48 AS INTEGER ) + + 3 * + 75 - - - col0 AS col2 FROM tab0 AS cor0
----
-1
273
-21
273
-81
273

query I rowsort
SELECT ALL 48 - + col2 AS col2 FROM tab0 AS cor0
----
-51
1
38

query I rowsort
SELECT ALL col0 * + col1 - - col1 + - 97 * col2 - 40 AS col0 FROM tab0
----
-3303
-9545
838

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5928
SELECT ALL 59 DIV COUNT( + col0 ) AS col0 FROM tab2
----
19

skipif mysql # not compatible
query I rowsort label-5928
SELECT ALL 59 / COUNT ( + col0 ) AS col0 FROM tab2
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-5929
SELECT + col1 - - 82 * - - 74 * + ( + + col2 ) - + ( - + col1 ) + + - col0 DIV 11 FROM tab1
----
358015
412710
582552

skipif mysql # not compatible
query I rowsort label-5929
SELECT + col1 - - 82 * - - 74 * + ( + + col2 ) - + ( - + col1 ) + + - col0 / 11 FROM tab1
----
358015
412710
582552

onlyif mysql # aggregate syntax: 
query I rowsort label-5930
SELECT ALL 40 * + COUNT( * ) + MAX( - + col2 ) FROM tab2
----
97

skipif mysql # not compatible
query I rowsort label-5930
SELECT ALL 40 * + COUNT ( * ) + MAX ( - + col2 ) FROM tab2
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-5931
SELECT + col0 - + col2 DIV + + 27 FROM tab2
----
46
63
73

skipif mysql # not compatible
query I rowsort label-5931
SELECT + col0 - + col2 / + + 27 FROM tab2
----
46
63
73

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5933
SELECT COUNT( DISTINCT - - 17 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-5933
SELECT COUNT ( DISTINCT - - 17 ) FROM tab0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 AS col2, - 39 col0 FROM tab0
----
1
-39
21
-39
81
-39

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

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

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

skipif mysql # not compatible
query I rowsort label-5936
SELECT CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL + col1 * - 61 FROM tab0
----
-1281
-4941
-61

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

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

query II rowsort
SELECT ALL col0, + 71 AS col2 FROM tab2 AS cor0
----
46
71
64
71
75
71

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

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

query I rowsort
SELECT - - col0 * - - col1 AS col0 FROM tab0 AS cor0
----
1215
1827
97

query I rowsort
SELECT - col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5943
SELECT + + MAX( ALL ( col0 ) ) AS col1 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-5943
SELECT + + MAX ( ALL ( col0 ) ) AS col1 FROM tab1 AS cor0
----
91

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

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 >= + 14
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5947
SELECT - 77 * + 99 DIV - COUNT( DISTINCT + col1 ) FROM tab2
----
2541

skipif mysql # not compatible
query I rowsort label-5947
SELECT - 77 * + 99 / - COUNT ( DISTINCT + col1 ) FROM tab2
----
2541

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NOT - 89 * - ( 14 ) * - 15 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

query I rowsort
SELECT ALL - col1 * + + col0 + + col1 - + col1 + - + ( - - col2 ) * - + col2 * - - col2 FROM tab2
----
190087
59072
9821

onlyif mysql # DIV for integer division: 
query I rowsort label-5951
SELECT DISTINCT - 22 DIV + col2 col0 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5951
SELECT DISTINCT - 22 / + col2 col0 FROM tab2
----
0

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

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

query II rowsort
SELECT + col2, + col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5954
SELECT DISTINCT - CAST ( + - 25 AS INTEGER ) col0 FROM tab2 cor0
----
25

query I rowsort
SELECT col2 * col2 * - + 43 FROM tab0 AS cor0
----
-421443
-4300
-94987

query I rowsort
SELECT ( 2 ) FROM tab2
----
2
2
2

onlyif mysql # DIV for integer division: 
query I rowsort label-5957
SELECT DISTINCT 37 + 43 + col1 * + - 84 DIV + 42 AS col1 FROM tab1
----
-14
52
70

skipif mysql # not compatible
query I rowsort label-5957
SELECT DISTINCT 37 + 43 + col1 * + - 84 / + 42 AS col1 FROM tab1
----
-14
52
70

onlyif mysql # DIV for integer division: 
query I rowsort label-5958
SELECT ALL - + col1 + - 91 + 97 DIV + - col2 AS col0 FROM tab2 cor0
----
-146
-159
-170

skipif mysql # not compatible
query I rowsort label-5958
SELECT ALL - + col1 + - 91 + 97 / + - col2 AS col0 FROM tab2 cor0
----
-146
-159
-170

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

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

query I rowsort
SELECT DISTINCT + - col1 + 82 FROM tab1 AS cor0
----
35
68
77

query I rowsort
SELECT - + 25 + - + 5 AS col0 FROM tab0 AS cor0
----
-30
-30
-30

query I rowsort
SELECT DISTINCT + 70 * 80 + 55 AS col2 FROM tab0 AS cor0
----
5655

query I rowsort
SELECT - ( - 42 ) + 26 * 60 FROM tab0 AS cor0
----
1602
1602
1602

query I rowsort
SELECT 41 * + col2 / + - col2 AS col2 FROM tab2 cor0 WHERE NULL NOT BETWEEN ( NULL ) AND col1 + + 2
----

query I rowsort
SELECT col0 + - 11 AS col2 FROM tab0 AS cor0
----
4
76
86

query I rowsort
SELECT DISTINCT col2 - 86 + + 0 FROM tab1 AS cor0
----
-18
-27
10

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5968
SELECT ALL + CAST( NULL AS SIGNED ) / + + 30 col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5968
SELECT ALL + CAST ( NULL AS INTEGER ) / + + 30 col1 FROM tab0
----
NULL
NULL
NULL

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5970
SELECT DISTINCT * FROM tab2 WHERE NOT + + CAST( + col0 AS DECIMAL ) * - 59 + + + col1 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5970
SELECT DISTINCT * FROM tab2 WHERE NOT + + CAST ( + col0 AS REAL ) * - 59 + + + col1 IS NOT NULL
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - + 92 col0 FROM tab1
----
-5428
-6256
-8832

onlyif mysql # aggregate syntax: 
query I rowsort label-5973
SELECT ALL + 60 * + + COUNT( * ) - COUNT( * ) col1 FROM tab2
----
177

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5973
SELECT ALL + 60 * + + COUNT ( * ) - COUNT ( * ) col1 FROM tab2
----
177

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5975
SELECT ALL 77, COUNT( * ) DIV + MAX( ALL - ( + 90 ) ) + - + 97 AS col0 FROM tab2
----
77
-97

skipif mysql # not compatible
query II rowsort label-5975
SELECT ALL 77, COUNT ( * ) / + MAX ( ALL - ( + 90 ) ) + - + 97 AS col0 FROM tab2
----
77
-97

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

query I rowsort
SELECT DISTINCT + - ( + col2 ) + + - ( 81 ) + 71 AS col2 FROM tab0 AS cor0 WHERE NOT - 12 < NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab0 cor1 WHERE NULL <= 31
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 86 + - 16 * + 31 >= NULL
----

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

query I rowsort
SELECT DISTINCT - col1 * - ( - col0 ) AS col2 FROM tab2
----
-2346
-4928
-5025

onlyif mysql # aggregate syntax: 
query I rowsort label-5982
SELECT DISTINCT - COUNT( * ) FROM tab1 WHERE + col2 * - 62 + - col0 + - - col2 * + 75 NOT BETWEEN NULL AND - col2 + - + col2
----
-3

skipif mysql # not compatible
query I rowsort label-5982
SELECT DISTINCT - COUNT ( * ) FROM tab1 WHERE + col2 * - 62 + - col0 + - - col2 * + 75 NOT BETWEEN NULL AND - col2 + - + col2
----
-3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5984
SELECT + MIN( DISTINCT + col2 ) FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-5984
SELECT + MIN ( DISTINCT + col2 ) FROM tab1
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5985
SELECT - 17, + CAST( NULL AS SIGNED ) + COUNT( * ) AS col1 FROM tab1
----
-17
NULL

skipif mysql # not compatible
query II rowsort label-5985
SELECT - 17, + CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col1 FROM tab1
----
-17
NULL

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

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

query I rowsort
SELECT - col0 + col1 + - 84 AS col2 FROM tab2
----
-71
-79
-92

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

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

query II rowsort
SELECT DISTINCT - 77 + - col0 AS col2, + 4 AS col1 FROM tab0
----
-164
4
-174
4
-92
4

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

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

query I rowsort
SELECT ALL + - 72 + + col2 FROM tab2 cor0
----
-14
-32
-49

query I rowsort
SELECT ALL + 85 * - col1 - + 3 * + - col2 AS col0 FROM tab1 cor0
----
-248
-3791
-902

query I rowsort
SELECT DISTINCT 32 + + + col2 AS col2 FROM tab1 AS cor0
----
100
128
91

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

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

query I rowsort
SELECT ALL + 95 + 10 FROM tab0 AS cor0
----
105
105
105

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

query II rowsort
SELECT + 33 AS col2, - col0 AS col2 FROM tab0 WHERE NULL IS NULL
----
33
-15
33
-87
33
-97

query I rowsort
SELECT DISTINCT + 99 - + col2 FROM tab2
----
41
59
76

query I rowsort
SELECT ALL + 55 - col2 - - 93 + - + col0 + 69 * + - ( col1 ) FROM tab2
----
-3440
-4608
-5269

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

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

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

query I rowsort
SELECT ALL + 84 + + 81 AS col1 FROM tab2 AS cor0
----
165
165
165

query I rowsort
SELECT col2 * - 31 FROM tab0 AS cor0
----
-1457
-3069
-310

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

query I rowsort
SELECT DISTINCT + + col2 + col0 + + 38 + 72 AS col1 FROM tab1 AS cor0
----
254
257
269

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 * - 67 BETWEEN 11 + col0 + - - 2 + - col0 AND NULL
----

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

skipif mysql # not compatible
query II rowsort label-6008
SELECT CAST ( NULL AS INTEGER ), col1 FROM tab2 cor0
----
NULL
51
NULL
67
NULL
77

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6010
SELECT + 3 DIV - + col1, col2 AS col2 FROM tab0
----
-3
99
0
10
0
47

skipif mysql # not compatible
query II rowsort label-6010
SELECT + 3 / - + col1, col2 AS col2 FROM tab0
----
-3
99
0
10
0
47

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6013
SELECT - 69 + + - ( COUNT( * ) ) AS col0 FROM tab0
----
-72

skipif mysql # not compatible
query I rowsort label-6013
SELECT - 69 + + - ( COUNT ( * ) ) AS col0 FROM tab0
----
-72

query II rowsort
SELECT 45 * - + 42 + + 55 + 7 * + col0 AS col0, - col1 FROM tab1
----
-1198
-47
-1240
-5
-1478
-14

query I rowsort
SELECT ALL + col0 * + 77 + col0 + + col2 + + 70 FROM tab1
----
4144
6759
7236

onlyif mysql # aggregate syntax: 
query I rowsort label-6016
SELECT DISTINCT - ( - COUNT( * ) ) + COUNT( * ) * - 59 AS col0 FROM tab0 cor0
----
-174

skipif mysql # not compatible
query I rowsort label-6016
SELECT DISTINCT - ( - COUNT ( * ) ) + COUNT ( * ) * - 59 AS col0 FROM tab0 cor0
----
-174

onlyif mysql # aggregate syntax: 
query I rowsort label-6017
SELECT ALL - COUNT( 94 ) + 37 FROM tab2 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-6017
SELECT ALL - COUNT ( 94 ) + 37 FROM tab2 AS cor0
----
34

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

query II rowsort
SELECT 53 AS col0, col2 * 5 FROM tab1
----
53
295
53
340
53
480

query II rowsort
SELECT DISTINCT + 48 AS col1, 83 FROM tab0
----
48
83

query I rowsort
SELECT col2 - col2 * + + 63 AS col0 FROM tab2
----
-1426
-2480
-3596

query I rowsort
SELECT - 76 + - + col0 AS col0 FROM tab1
----
-127
-161
-167

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

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

query I rowsort
SELECT - + 16 + col1 AS col1 FROM tab1 AS cor0
----
-11
-2
31

query I rowsort
SELECT DISTINCT - col1 + 96 * + - 39 FROM tab0 AS cor0
----
-3745
-3765
-3825

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) IN ( 48 / - 96, 24, + - 26 )
----

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6028
SELECT ALL COUNT( ALL - col0 ) DIV + + MIN( col1 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6028
SELECT ALL COUNT ( ALL - col0 ) / + + MIN ( col1 ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL - - col1 * + col1 AS col0 FROM tab2 cor0
----
2601
4489
5929

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6031
SELECT ALL - - col1 DIV + 28 - - 46, col2 FROM tab1 AS cor0
----
46
59
46
96
47
68

skipif mysql # not compatible
query II rowsort label-6031
SELECT ALL - - col1 / + 28 - - 46, col2 FROM tab1 AS cor0
----
46
59
46
96
47
68

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6033
SELECT + 15 * - COUNT( * ) AS col2, 28 + - + 32 AS col1 FROM tab1
----
-45
-4

skipif mysql # not compatible
query II rowsort label-6033
SELECT + 15 * - COUNT ( * ) AS col2, 28 + - + 32 AS col1 FROM tab1
----
-45
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-6034
SELECT - 25 + + COUNT( * ) * COUNT( * ) col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) >= NULL
----
-25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6034
SELECT - 25 + + COUNT ( * ) * COUNT ( * ) col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) >= NULL
----
-25

query I rowsort
SELECT - col2 + 22 AS col0 FROM tab2
----
-1
-18
-36

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

skipif mysql # not compatible
query I rowsort label-6036
SELECT DISTINCT + col0 / + 68 FROM tab0
----
0
1

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

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6041
SELECT DISTINCT CAST( 65 AS SIGNED ) FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
65

skipif mysql # not compatible
query I rowsort label-6041
SELECT DISTINCT CAST ( 65 AS INTEGER ) FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
65

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6045
SELECT MIN( ALL - col1 ) * - MAX( - 54 ) + 77 FROM tab0
----
-4297

skipif mysql # not compatible
query I rowsort label-6045
SELECT MIN ( ALL - col1 ) * - MAX ( - 54 ) + 77 FROM tab0
----
-4297

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

skipif mysql # not compatible
query I rowsort label-6046
SELECT COUNT ( + - col1 ) FROM tab1
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 27 col2, 65 * + col2 FROM tab1
----
27
3835
27
4420
27
6240

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6050
SELECT - 52 - 86 + + + COUNT( * ) AS col1 FROM tab2
----
-135

skipif mysql # not compatible
query I rowsort label-6050
SELECT - 52 - 86 + + + COUNT ( * ) AS col1 FROM tab2
----
-135

query I rowsort
SELECT - col1 + - + 35 FROM tab0 AS cor0
----
-116
-36
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-6052
SELECT ALL - SUM( ALL + col2 ) + - COUNT( ALL + - col0 ) FROM tab2 cor0
----
-124

skipif mysql # not compatible
query I rowsort label-6052
SELECT ALL - SUM ( ALL + col2 ) + - COUNT ( ALL + - col0 ) FROM tab2 cor0
----
-124

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6054
SELECT CAST( NULL AS DECIMAL ) * - + AVG ( + col1 ) / 79 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6054
SELECT CAST ( NULL AS REAL ) * - + AVG ( + col1 ) / 79 FROM tab2
----
NULL

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

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

skipif mysql # not compatible
query I rowsort label-6056
SELECT DISTINCT - - 94 AS col2 FROM tab1 WHERE NOT - CAST ( NULL AS INTEGER ) IS NOT NULL
----
94

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

query I rowsort
SELECT ALL 25 AS col2 FROM tab2 cor0
----
25
25
25

query I rowsort
SELECT DISTINCT col0 * + col0 * + 81 * - + 78 FROM tab1 cor0
----
-16433118
-45647550
-52319358

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6061
SELECT + - col2 DIV - + ( + + col0 ) AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6061
SELECT + - col2 / - + ( + + col0 ) AS col0 FROM tab2 AS cor0
----
0
0
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6063
SELECT ALL col2 DIV + 30 + 71 AS col0 FROM tab0 AS cor0
----
71
72
74

skipif mysql # not compatible
query I rowsort label-6063
SELECT ALL col2 / + 30 + 71 AS col0 FROM tab0 AS cor0
----
71
72
74

query II rowsort
SELECT DISTINCT + 1 * + + 15, + col2 AS col0 FROM tab1 AS cor0
----
15
59
15
68
15
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6065
SELECT + CAST( + 31 AS SIGNED ) AS col0 FROM tab1
----
31
31
31

skipif mysql # not compatible
query I rowsort label-6065
SELECT + CAST ( + 31 AS INTEGER ) AS col0 FROM tab1
----
31
31
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6066
SELECT CAST( 64 AS SIGNED ) AS col1 FROM tab1
----
64
64
64

skipif mysql # not compatible
query I rowsort label-6066
SELECT CAST ( 64 AS INTEGER ) AS col1 FROM tab1
----
64
64
64

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6068
SELECT MAX( + - 25 ) FROM tab0
----
-25

skipif mysql # not compatible
query I rowsort label-6068
SELECT MAX ( + - 25 ) FROM tab0
----
-25

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6069
SELECT 89 * - - ( + COUNT( * ) ) * + 69 + - COUNT( * ) + - CAST( NULL AS DECIMAL ) col2 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6069
SELECT 89 * - - ( + COUNT ( * ) ) * + 69 + - COUNT ( * ) + - CAST ( NULL AS REAL ) col2 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6070
SELECT DISTINCT col2 DIV + - 3 AS col2 FROM tab0 cor0
----
-15
-3
-33

skipif mysql # not compatible
query I rowsort label-6070
SELECT DISTINCT col2 / + - 3 AS col2 FROM tab0 cor0
----
-15
-3
-33

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - 84 ) col1 FROM tab1 AS cor0
----
84
84
84

query I rowsort
SELECT + - col0 * 20 FROM tab0 AS cor0
----
-1740
-1940
-300

query I rowsort
SELECT DISTINCT 27 * - 79 AS col2 FROM tab2 AS cor0
----
-2133

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6076
SELECT + + col1 * + CAST( - col0 AS SIGNED ) * + - col2 + 70 + 31 - + ( + - CAST( - col2 AS SIGNED ) ) + col1 col2 FROM tab2 AS cor0
----
197258
291560
54087

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6076
SELECT + + col1 * + CAST ( - col0 AS INTEGER ) * + - col2 + 70 + 31 - + ( + - CAST ( - col2 AS INTEGER ) ) + col1 col2 FROM tab2 AS cor0
----
197258
291560
54087

onlyif mysql # aggregate syntax: 
query I rowsort label-6077
SELECT - MIN( - 0 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6077
SELECT - MIN ( - 0 ) FROM tab2 AS cor0
----
0

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

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

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

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

skipif mysql # not compatible
query II rowsort label-6080
SELECT DISTINCT - ( 15 ), + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-15
3

query I rowsort
SELECT DISTINCT col1 + - col0 + - col2 * + - 26 AS col1 FROM tab0
----
1288
194
2478

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6083
SELECT DISTINCT SUM( DISTINCT - col1 ) FROM tab1 WHERE NOT - - col1 - 83 * 26 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6083
SELECT DISTINCT SUM ( DISTINCT - col1 ) FROM tab1 WHERE NOT - - col1 - 83 * 26 IS NOT NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 17 - + col0 - + - 10 / col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL col2 AS col1, 43 FROM tab0
----
10
43
47
43
99
43

query I rowsort
SELECT DISTINCT - col0 + + - col2 FROM tab0
----
-196
-62
-97

query II rowsort
SELECT + - 76 * col2 + col0 * + ( + + col0 ), + col2 AS col1 FROM tab2 AS cor0
----
1056
40
1217
58
368
23

query I rowsort
SELECT + + 54 FROM tab1 cor0
----
54
54
54

query I rowsort
SELECT DISTINCT 16 + + + col0 AS col1 FROM tab0 AS cor0
----
103
113
31

onlyif mysql # aggregate syntax: 
query I rowsort label-6090
SELECT SUM( DISTINCT - 8 ) AS col1 FROM tab1
----
-8

skipif mysql # not compatible
query I rowsort label-6090
SELECT SUM ( DISTINCT - 8 ) AS col1 FROM tab1
----
-8

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

query II rowsort
SELECT - col0 * - 98, - 24 AS col1 FROM tab1 cor0
----
4998
-24
8330
-24
8918
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-6093
SELECT + - SUM( DISTINCT + col0 ) FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-6093
SELECT + - SUM ( DISTINCT + col0 ) FROM tab2 AS cor0
----
-185

onlyif mysql # aggregate syntax: 
query II rowsort label-6094
SELECT - + COUNT( * ) AS col1, + 31 * - 73 AS col1 FROM tab2 AS cor0
----
-3
-2263

skipif mysql # not compatible
query II rowsort label-6094
SELECT - + COUNT ( * ) AS col1, + 31 * - 73 AS col1 FROM tab2 AS cor0
----
-3
-2263

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6097
SELECT DISTINCT + ( - SUM( DISTINCT - col0 ) ) AS col1 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-6097
SELECT DISTINCT + ( - SUM ( DISTINCT - col0 ) ) AS col1 FROM tab2 AS cor0
----
185

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 8 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6099
SELECT DISTINCT + 5 * COUNT( * ) col0 FROM tab1 AS cor0 WHERE NOT col0 NOT BETWEEN - 40 AND col0 - + + col0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6099
SELECT DISTINCT + 5 * COUNT ( * ) col0 FROM tab1 AS cor0 WHERE NOT col0 NOT BETWEEN - 40 AND col0 - + + col0
----
0

query I rowsort
SELECT 58 * - ( + 12 ) AS col1 FROM tab0
----
-696
-696
-696

query I rowsort
SELECT DISTINCT 91 * + col0 * + + 24 * - + col1 - 70 AS col0 FROM tab1 AS cor0
----
-1559446
-928270
-9341038

onlyif mysql # aggregate syntax: 
query I rowsort label-6102
SELECT DISTINCT 54 * + COUNT( * ) AS col1 FROM tab0
----
162

skipif mysql # not compatible
query I rowsort label-6102
SELECT DISTINCT 54 * + COUNT ( * ) AS col1 FROM tab0
----
162

onlyif mysql # DIV for integer division: 
query I rowsort label-6103
SELECT - col1 DIV + + 65 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6103
SELECT - col1 / + + 65 FROM tab1
----
0
0
0

query I rowsort
SELECT + col2 + - - 16 AS col2 FROM tab2
----
39
56
74

query I rowsort
SELECT ALL col1 FROM tab1 WHERE - - col0 = NULL
----

query I rowsort
SELECT - col1 * - col1 * - col0 + + col0 AS col0 FROM tab2 AS cor0
----
-119600
-336600
-379392

onlyif mysql # DIV for integer division: 
query I rowsort label-6107
SELECT DISTINCT - col1 DIV - - 51 FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-6107
SELECT DISTINCT - col1 / - - 51 FROM tab0 AS cor0
----
-1
0

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

query I rowsort
SELECT ALL col1 + + col2 + col0 * + col1 AS col0 FROM tab1 AS cor0
----
4392
489
824

query I rowsort
SELECT ALL + + 23 * - - col2 * + + col0 AS col0 FROM tab2 AS cor0
----
100050
24334
58880

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6114
SELECT 49 - + CAST( + col2 AS SIGNED ) AS col0 FROM tab0
----
-50
2
39

skipif mysql # not compatible
query I rowsort label-6114
SELECT 49 - + CAST ( + col2 AS INTEGER ) AS col0 FROM tab0
----
-50
2
39

query III rowsort
SELECT * FROM tab0 WHERE - - 14 IS NULL
----

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

query I rowsort
SELECT col1 AS col2 FROM tab0 WHERE - col1 * - col2 IS NOT NULL
----
1
21
81

query I rowsort
SELECT ALL + 60 + + - col2 FROM tab0
----
-39
13
50

query II rowsort
SELECT ALL + col0 * - col1 + + + 31 + + col2 - + col2 AS col2, - col1 * - col2 * + - col1 FROM tab2 AS cor0
----
-2315
-59823
-4897
-237160
-4994
-260362

query I rowsort
SELECT DISTINCT + - 16 + + col2 + col2 FROM tab2 AS cor0
----
100
30
64

query I rowsort
SELECT - + 45 + - col2 AS col2 FROM tab0 AS cor0
----
-144
-55
-92

query I rowsort
SELECT 90 - + 24 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 29794915b585eea848ad670075452c88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6123
SELECT DISTINCT + 97 DIV - - ( - + COUNT( * ) ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-10

skipif mysql # not compatible
query I rowsort label-6123
SELECT DISTINCT + 97 / - - ( - + COUNT ( * ) ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-10

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

query I rowsort
SELECT + col1 AS col0 FROM tab2 AS cor0 WHERE NOT col0 <= - 93
----
51
67
77

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6126
SELECT ALL - + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT - 43 + - col1 - + col1 * - + 31 * - + col0 BETWEEN NULL AND 56 + - + ( col0 ) + CAST( NULL AS DECIMAL ) * - 48
----
0

skipif mysql # not compatible
query I rowsort label-6126
SELECT ALL - + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT - 43 + - col1 - + col1 * - + 31 * - + col0 BETWEEN NULL AND 56 + - + ( col0 ) + CAST ( NULL AS REAL ) * - 48
----
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6128
SELECT DISTINCT + CAST( - col1 AS SIGNED ) AS col0 FROM tab0 cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-6128
SELECT DISTINCT + CAST ( - col1 AS INTEGER ) AS col0 FROM tab0 cor0
----
-1
-21
-81

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

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

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

query I rowsort
SELECT + 24 AS col2 FROM tab0 cor0
----
24
24
24

onlyif mysql # aggregate syntax: 
query I rowsort label-6132
SELECT ALL COUNT( * ) AS col2 FROM tab0 WHERE NOT col0 > - 28 * ( + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-6132
SELECT ALL COUNT ( * ) AS col2 FROM tab0 WHERE NOT col0 > - 28 * ( + col2 )
----
0

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6134
SELECT + col0 DIV + + col2 AS col0, ( - - col2 ) * - col1 AS col0 FROM tab0
----
0
-3807
0
-99
8
-210

skipif mysql # not compatible
query II rowsort label-6134
SELECT + col0 / + + col2 AS col0, ( - - col2 ) * - col1 AS col0 FROM tab0
----
0
-3807
0
-99
8
-210

query I rowsort
SELECT DISTINCT ( + ( 43 ) ) * - 17 + - col2 * col2 FROM tab0
----
-10532
-2940
-831

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6138
SELECT DISTINCT COUNT( * ) + + 62 * - 26 AS col0 FROM tab1 AS cor0
----
-1609

skipif mysql # not compatible
query I rowsort label-6138
SELECT DISTINCT COUNT ( * ) + + 62 * - 26 AS col0 FROM tab1 AS cor0
----
-1609

query I rowsort
SELECT + 75 + - + col0 AS col2 FROM tab0 cor0
----
-12
-22
60

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6140
SELECT ALL * FROM tab0 cor0 WHERE NOT - CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6140
SELECT ALL * FROM tab0 cor0 WHERE NOT - CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col2 * - col2 * - - col2 AS col2 FROM tab0 AS cor0
----
-1000
-103823
-970299

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6142
SELECT DISTINCT * FROM tab1 WHERE col1 NOT BETWEEN NULL AND - + 76 + + CAST( + + col2 AS DECIMAL ) + col0
----

skipif mysql # not compatible
query III rowsort label-6142
SELECT DISTINCT * FROM tab1 WHERE col1 NOT BETWEEN NULL AND - + 76 + + CAST ( + + col2 AS REAL ) + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6143
SELECT + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE col2 <= + col0 + 40 + 21
----
3

skipif mysql # not compatible
query I rowsort label-6143
SELECT + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE col2 <= + col0 + 40 + 21
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6144
SELECT - SUM( DISTINCT + 52 ) + 58 * + CAST( - COUNT( * ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-226

skipif mysql # not compatible
query I rowsort label-6144
SELECT - SUM ( DISTINCT + 52 ) + 58 * + CAST ( - COUNT ( * ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-226

query I rowsort
SELECT - col1 + + - ( - + col2 ) AS col1 FROM tab0 cor0
----
-11
-34
98

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6147
SELECT CAST( + col2 AS SIGNED ) + - + col0 + - col1 AS col2 FROM tab0 AS cor0
----
-49
-98
1

skipif mysql # not compatible
query I rowsort label-6147
SELECT CAST ( + col2 AS INTEGER ) + - + col0 + - col1 AS col2 FROM tab0 AS cor0
----
-49
-98
1

query II rowsort
SELECT DISTINCT col2 + 72 + - col0 AS col1, + col0 FROM tab1 AS cor0
----
117
51
46
85
49
91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6149
SELECT DISTINCT - 58 / + + CAST( NULL AS SIGNED ), - col1 AS col0 FROM tab0 AS cor0
----
NULL
-1
NULL
-21
NULL
-81

skipif mysql # not compatible
query II rowsort label-6149
SELECT DISTINCT - 58 / + + CAST ( NULL AS INTEGER ), - col1 AS col0 FROM tab0 AS cor0
----
NULL
-1
NULL
-21
NULL
-81

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

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

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

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

query I rowsort
SELECT - 84 + - 62 AS col2 FROM tab2
----
-146
-146
-146

query I rowsort
SELECT DISTINCT col2 - + 40 AS col0 FROM tab1
----
19
28
56

onlyif mysql # aggregate syntax: 
query I rowsort label-6154
SELECT + COUNT( DISTINCT + col2 ) * + ( MIN( + - 71 ) ) AS col0 FROM tab0
----
-213

skipif mysql # not compatible
query I rowsort label-6154
SELECT + COUNT ( DISTINCT + col2 ) * + ( MIN ( + - 71 ) ) AS col0 FROM tab0
----
-213

query I rowsort
SELECT + 22 * - col2 AS col1 FROM tab1
----
-1298
-1496
-2112

onlyif mysql # aggregate syntax: 
query I rowsort label-6156
SELECT - COUNT( * ) * 36 AS col2 FROM tab0
----
-108

skipif mysql # not compatible
query I rowsort label-6156
SELECT - COUNT ( * ) * 36 AS col2 FROM tab0
----
-108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6157
SELECT DISTINCT - MIN( ALL - CAST( NULL AS SIGNED ) ) + + 79 * - ( - COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6157
SELECT DISTINCT - MIN ( ALL - CAST ( NULL AS INTEGER ) ) + + 79 * - ( - COUNT ( * ) ) AS col0 FROM tab0 AS cor0
----
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 66 col2, + col0 + + + col2 * + 49 FROM tab0 AS cor0
----
66
2318
66
4948
66
577

query II rowsort
SELECT ALL - 63 AS col1, + 20 FROM tab2 cor0
----
-63
20
-63
20
-63
20

query I rowsort
SELECT ALL + 95 * 73 AS col0 FROM tab1 WHERE ( + ( col2 ) + + col0 ) BETWEEN col2 AND ( NULL )
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + col1 * - col0 col0 FROM tab1
----
-4368
-510
-765

query I rowsort
SELECT + ( 79 ) FROM tab0
----
79
79
79

query III rowsort
SELECT * FROM tab0 WHERE NOT ( 42 ) NOT BETWEEN 49 + col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6166
SELECT DISTINCT + MIN( + col1 ) + + COUNT( * ) FROM tab2
----
54

skipif mysql # not compatible
query I rowsort label-6166
SELECT DISTINCT + MIN ( + col1 ) + + COUNT ( * ) FROM tab2
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-6167
SELECT MAX( + 74 ) FROM tab1
----
74

skipif mysql # not compatible
query I rowsort label-6167
SELECT MAX ( + 74 ) FROM tab1
----
74

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6169
SELECT MAX( ALL col2 ) AS col0 FROM tab1 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6169
SELECT MAX ( ALL col2 ) AS col0 FROM tab1 WHERE NULL IS NOT NULL
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6171
SELECT CAST( - col0 AS SIGNED ) AS col0 FROM tab0 WHERE ( + col0 ) IS NOT NULL
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-6171
SELECT CAST ( - col0 AS INTEGER ) AS col0 FROM tab0 WHERE ( + col0 ) IS NOT NULL
----
-15
-87
-97

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( 47 ) IN ( + 96 + - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6174
SELECT ALL MIN( col1 ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-6174
SELECT ALL MIN ( col1 ) FROM tab2
----
51

query I rowsort
SELECT + 34 + - col1 FROM tab2
----
-17
-33
-43

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 NOT IN ( - 15 )
----

query I rowsort
SELECT ALL - col0 AS col1 FROM tab1 WHERE - col0 <= col0 * col0
----
-51
-85
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 - - 19 col0 FROM tab1
----
-28
14
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6179
SELECT ALL + COUNT( * ) FROM tab0 WHERE CAST( NULL AS SIGNED ) = + col0
----
0

skipif mysql # not compatible
query I rowsort label-6179
SELECT ALL + COUNT ( * ) FROM tab0 WHERE CAST ( NULL AS INTEGER ) = + col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6180
SELECT - SUM( ALL - col1 ) FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-6180
SELECT - SUM ( ALL - col1 ) FROM tab2
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-6181
SELECT + 3 + - MAX( DISTINCT col2 ) FROM tab1
----
-93

skipif mysql # not compatible
query I rowsort label-6181
SELECT + 3 + - MAX ( DISTINCT col2 ) FROM tab1
----
-93

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

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

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

query I rowsort
SELECT - col0 + - col0 FROM tab2 WHERE NULL NOT IN ( - col0 - 17 * 10 )
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * ( col2 ) col2 FROM tab1
----
-3481
-4624
-9216

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

query III rowsort
SELECT * FROM tab0 WHERE - ( - col0 ) IN ( - 74 + col0 * col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6189
SELECT - MAX( + 10 ) AS col1 FROM tab2 AS cor0 WHERE col0 = + col0 * 37
----
NULL

skipif mysql # not compatible
query I rowsort label-6189
SELECT - MAX ( + 10 ) AS col1 FROM tab2 AS cor0 WHERE col0 = + col0 * 37
----
NULL

query I rowsort
SELECT DISTINCT col1 * - 72 AS col0 FROM tab2 cor0
----
-3672
-4824
-5544

query I rowsort
SELECT ALL + col1 + ( + 63 ) FROM tab0
----
144
64
84

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6193
SELECT * FROM tab1 AS cor0 WHERE col0 IN ( - CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-6193
SELECT * FROM tab1 AS cor0 WHERE col0 IN ( - CAST ( NULL AS REAL ) )
----

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

query I rowsort
SELECT DISTINCT - col0 - - 79 * + col0 AS col0 FROM tab1 AS cor0
----
3978
6630
7098

onlyif mysql # aggregate syntax: 
query I rowsort label-6196
SELECT - MAX( DISTINCT col1 ) - - 22 FROM tab1 cor0
----
-25

skipif mysql # not compatible
query I rowsort label-6196
SELECT - MAX ( DISTINCT col1 ) - - 22 FROM tab1 cor0
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6197
SELECT DISTINCT COUNT( * ) * ( AVG ( DISTINCT - 78 ) ) AS col2 FROM tab0 AS cor0 WHERE NOT CAST( col0 AS SIGNED ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6197
SELECT DISTINCT COUNT ( * ) * ( AVG ( DISTINCT - 78 ) ) AS col2 FROM tab0 AS cor0 WHERE NOT CAST ( col0 AS INTEGER ) IS NOT NULL
----
NULL

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL IN ( 3 )
----

query I rowsort
SELECT DISTINCT 19 * + 48 FROM tab2
----
912

query I rowsort
SELECT ALL col1 - + - 12 AS col1 FROM tab0
----
13
33
93

query I rowsort
SELECT 26 * - col2 - + 36 FROM tab1
----
-1570
-1804
-2532

onlyif mysql # DIV for integer division: 
query I rowsort label-6203
SELECT - col1 DIV - col2 - + col1 FROM tab2
----
-49
-66
-76

skipif mysql # not compatible
query I rowsort label-6203
SELECT - col1 / - col2 - + col1 FROM tab2
----
-49
-66
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-6204
SELECT + COUNT( * ) * + 33 - COUNT( * ) * MIN( DISTINCT + col2 ) FROM tab2
----
30

skipif mysql # not compatible
query I rowsort label-6204
SELECT + COUNT ( * ) * + 33 - COUNT ( * ) * MIN ( DISTINCT + col2 ) FROM tab2
----
30

query I rowsort
SELECT DISTINCT 86 FROM tab2 WHERE 14 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6206
SELECT DISTINCT - COUNT( * ) - - MAX( DISTINCT 55 ) AS col0 FROM tab2
----
52

skipif mysql # not compatible
query I rowsort label-6206
SELECT DISTINCT - COUNT ( * ) - - MAX ( DISTINCT 55 ) AS col0 FROM tab2
----
52

query I rowsort
SELECT DISTINCT - col2 FROM tab0 WHERE NOT ( NULL ) IN ( - col1 )
----

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

query I rowsort
SELECT 20 * - + col0 AS col0 FROM tab0
----
-1740
-1940
-300

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

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

skipif mysql # not compatible
query I rowsort label-6211
SELECT DISTINCT + col0 / - + col0 FROM tab1 AS cor0
----
-1

query I rowsort
SELECT - 49 * - col1 FROM tab2 AS cor0
----
2499
3283
3773

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

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

query II rowsort
SELECT + col1, - 23 FROM tab2
----
51
-23
67
-23
77
-23

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6216
SELECT DISTINCT 36 + + MIN( DISTINCT 34 ) AS col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
70

skipif mysql # not compatible
query I rowsort label-6216
SELECT DISTINCT 36 + + MIN ( DISTINCT 34 ) AS col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
70

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - col1 >= col1 / + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab2 AS cor0 WHERE NOT - col2 < + col0 * + ( - col0 )
----
51
67
77

onlyif mysql # DIV for integer division: 
query I rowsort label-6221
SELECT - - col2 DIV col0 - - 53 AS col2 FROM tab2 AS cor0 WHERE NOT + 41 IS NULL
----
53
53
53

skipif mysql # not compatible
query I rowsort label-6221
SELECT - - col2 / col0 - - 53 AS col2 FROM tab2 AS cor0 WHERE NOT + 41 IS NULL
----
53
53
53

onlyif mysql # aggregate syntax: 
query I rowsort label-6222
SELECT - - ( - MAX( - 25 ) ) * - 54 AS col2 FROM tab2 cor0
----
-1350

skipif mysql # not compatible
query I rowsort label-6222
SELECT - - ( - MAX ( - 25 ) ) * - 54 AS col2 FROM tab2 cor0
----
-1350

query I rowsort
SELECT ALL + 50 * 28 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

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

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

query I rowsort
SELECT DISTINCT ( - - 85 ) FROM tab2
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-6226
SELECT DISTINCT + COUNT( * ) + + 19 * + + MAX( DISTINCT 43 ) AS col1 FROM tab1
----
820

skipif mysql # not compatible
query I rowsort label-6226
SELECT DISTINCT + COUNT ( * ) + + 19 * + + MAX ( DISTINCT 43 ) AS col1 FROM tab1
----
820

onlyif mysql # aggregate syntax: 
query I rowsort label-6227
SELECT ALL - COUNT( * ) * 82 * - 60 AS col1 FROM tab1
----
14760

skipif mysql # not compatible
query I rowsort label-6227
SELECT ALL - COUNT ( * ) * 82 * - 60 AS col1 FROM tab1
----
14760

query I rowsort
SELECT ALL - col0 + - 83 AS col1 FROM tab0
----
-170
-180
-98

query I rowsort
SELECT - ( col0 ) + + + 55 FROM tab2
----
-20
-9
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6230
SELECT ALL MAX( CAST( + 26 AS SIGNED ) ) + - 79 FROM tab0
----
-53

skipif mysql # not compatible
query I rowsort label-6230
SELECT ALL MAX ( CAST ( + 26 AS INTEGER ) ) + - 79 FROM tab0
----
-53

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6232
SELECT DISTINCT + 56 + COUNT( 49 ) AS col2 FROM tab2 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-6232
SELECT DISTINCT + 56 + COUNT ( 49 ) AS col2 FROM tab2 AS cor0
----
59

query I rowsort
SELECT col1 * - col0 FROM tab1 AS cor0 WHERE col2 <= 48 + - col2
----

query I rowsort
SELECT DISTINCT - - col2 + + col2 + - col2 FROM tab0 AS cor0
----
10
47
99

query I rowsort
SELECT DISTINCT col2 + 54 + + 46 FROM tab0 AS cor0
----
110
147
199

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

query I rowsort
SELECT + - 68 * + 49 AS col2 FROM tab1 AS cor0
----
-3332
-3332
-3332

query II rowsort
SELECT DISTINCT + ( + ( + 54 ) ) AS col0, + col0 AS col1 FROM tab0
----
54
15
54
87
54
97

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

query I rowsort
SELECT ALL + + col2 AS col2 FROM tab2 WHERE NOT 47 IS NOT NULL
----

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE 72 NOT BETWEEN - ( - ( 20 ) ) AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - - col2 < col0
----
85
5
59
91
47
68

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

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

query I rowsort
SELECT - col2 + + - col0 - + - col1 FROM tab1 AS cor0
----
-112
-133
-139

query I rowsort
SELECT + col1 + - - col0 AS col0 FROM tab2 AS cor0
----
141
142
97

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6247
SELECT DISTINCT + - CAST( NULL AS DECIMAL ) * + 73 + COUNT( * ) + + + COUNT( - col1 ) + - 30 col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6247
SELECT DISTINCT + - CAST ( NULL AS REAL ) * + 73 + COUNT ( * ) + + + COUNT ( - col1 ) + - 30 col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col1 - 90 * + - col2 FROM tab0 AS cor0
----
4149
879
8909

onlyif mysql # aggregate syntax: 
query I rowsort label-6249
SELECT DISTINCT + ( - 46 ) * + ( - MAX( col2 ) + 57 * + COUNT( * ) ) + + 83 AS col0 FROM tab1 AS cor0 WHERE - col2 - + col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6249
SELECT DISTINCT + ( - 46 ) * + ( - MAX ( col2 ) + 57 * + COUNT ( * ) ) + + 83 AS col0 FROM tab1 AS cor0 WHERE - col2 - + col2 IS NULL
----
NULL

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

skipif mysql # not compatible
query II rowsort label-6250
SELECT ALL COUNT ( * ) AS col1, - COUNT ( * ) FROM tab0
----
3
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6251
SELECT DISTINCT col1 * CAST( - col0 AS SIGNED ) FROM tab2
----
-2346
-4928
-5025

skipif mysql # not compatible
query I rowsort label-6251
SELECT DISTINCT col1 * CAST ( - col0 AS INTEGER ) FROM tab2
----
-2346
-4928
-5025

query I rowsort
SELECT ALL + - col2 * - 56 AS col2 FROM tab1 AS cor0
----
3304
3808
5376

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

skipif mysql # not compatible
query I rowsort label-6253
SELECT - 27 / + - col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6254
SELECT ALL + COUNT( * ) * 1 + + - CAST( COUNT( * ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6254
SELECT ALL + COUNT ( * ) * 1 + + - CAST ( COUNT ( * ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT col1 + - - col1 FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
162
2
42

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

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

query I rowsort
SELECT - 51 + - 9 AS col1 FROM tab1 AS cor0
----
-60
-60
-60

query I rowsort
SELECT DISTINCT - col2 + 31 + col0 AS col2 FROM tab1 AS cor0
----
-14
54
57

query I rowsort
SELECT + + 82 * + col1 + + col0 + + ( + - col0 ) * - col0 + ( + col1 ) * col2 FROM tab0 AS cor0
----
10689
9588
9687

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6264
SELECT - 30 col2, 37 / col2 FROM tab1 WHERE ( NULL ) = ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6264
SELECT - 30 col2, 37 / col2 FROM tab1 WHERE ( NULL ) = ( CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6265
SELECT DISTINCT - CAST( - 19 AS SIGNED ) AS col0 FROM tab1
----
19

skipif mysql # not compatible
query I rowsort label-6265
SELECT DISTINCT - CAST ( - 19 AS INTEGER ) AS col0 FROM tab1
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-6266
SELECT - 54 * - COUNT( * ) col0 FROM tab1
----
162

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6266
SELECT - 54 * - COUNT ( * ) col0 FROM tab1
----
162

query I rowsort
SELECT ALL - col2 * + + col2 AS col2 FROM tab0
----
-100
-2209
-9801

query I rowsort
SELECT DISTINCT col0 * - 21 AS col0 FROM tab2
----
-1344
-1575
-966

query I rowsort
SELECT ALL 69 * 59 FROM tab0
----
4071
4071
4071

onlyif mysql # DIV for integer division: 
query I rowsort label-6270
SELECT 40 DIV + 81 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6270
SELECT 40 / + 81 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6271
SELECT DISTINCT - CAST( col0 AS SIGNED ) * + col0 AS col0 FROM tab2
----
-2116
-4096
-5625

skipif mysql # not compatible
query I rowsort label-6271
SELECT DISTINCT - CAST ( col0 AS INTEGER ) * + col0 AS col0 FROM tab2
----
-2116
-4096
-5625

onlyif mysql # DIV for integer division: 
query II rowsort label-6272
SELECT col0 AS col0, + 28 DIV col1 AS col1 FROM tab2
----
46
0
64
0
75
0

skipif mysql # not compatible
query II rowsort label-6272
SELECT col0 AS col0, + 28 / col1 AS col1 FROM tab2
----
46
0
64
0
75
0

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

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

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

query II rowsort
SELECT ALL + - col0 AS col2, 93 AS col1 FROM tab2 AS cor0
----
-46
93
-64
93
-75
93

onlyif mysql # aggregate syntax: 
query I rowsort label-6276
SELECT 44 + - SUM( - 95 ) AS col1 FROM tab0
----
329

skipif mysql # not compatible
query I rowsort label-6276
SELECT 44 + - SUM ( - 95 ) AS col1 FROM tab0
----
329

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6277
SELECT DISTINCT MAX( - col2 ) * + CAST( + - 17 AS SIGNED ) * - 3 FROM tab0
----
-510

skipif mysql # not compatible
query I rowsort label-6277
SELECT DISTINCT MAX ( - col2 ) * + CAST ( + - 17 AS INTEGER ) * - 3 FROM tab0
----
-510

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6280
SELECT ALL + COUNT( * ) + + - ( + 70 ) AS col1 FROM tab0 AS cor0
----
-67

skipif mysql # not compatible
query I rowsort label-6280
SELECT ALL + COUNT ( * ) + + - ( + 70 ) AS col1 FROM tab0 AS cor0
----
-67

query I rowsort
SELECT DISTINCT - 55 + + col0 AS col1 FROM tab0 AS cor0
----
-40
32
42

query II rowsort
SELECT ALL - ( - ( - 2 ) ) + - col2 AS col2, ( col1 ) FROM tab0 cor0
----
-101
1
-12
21
-49
81

onlyif mysql # DIV for integer division: 
query I rowsort label-6283
SELECT DISTINCT 13 DIV col1 - col1 + - - col0 * - 45 + + col0 AS col0 FROM tab2 AS cor0
----
-2075
-2893
-3367

skipif mysql # not compatible
query I rowsort label-6283
SELECT DISTINCT 13 / col1 - col1 + - - col0 * - 45 + + col0 AS col0 FROM tab2 AS cor0
----
-2075
-2893
-3367

onlyif mysql # DIV for integer division: 
query I rowsort label-6284
SELECT ALL + - col1 DIV - + 33 - + - col0 col2 FROM tab2 AS cor0
----
47
66
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6284
SELECT ALL + - col1 / - + 33 - + - col0 col2 FROM tab2 AS cor0
----
47
66
77

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6286
SELECT DISTINCT - MIN( + 5 ) FROM tab0
----
-5

skipif mysql # not compatible
query I rowsort label-6286
SELECT DISTINCT - MIN ( + 5 ) FROM tab0
----
-5

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

query III rowsort
SELECT * FROM tab1 WHERE NOT + 57 - + col0 NOT BETWEEN + - col0 AND + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 87 * + 77 col2 FROM tab1
----
6699
6699
6699

onlyif mysql # aggregate syntax: 
query II rowsort label-6290
SELECT COUNT( * ) AS col2, + SUM( ALL + - col2 ) + + MAX( 72 ) AS col1 FROM tab2 WHERE NOT ( NULL ) IS NULL
----
0
NULL

skipif mysql # not compatible
query II rowsort label-6290
SELECT COUNT ( * ) AS col2, + SUM ( ALL + - col2 ) + + MAX ( 72 ) AS col1 FROM tab2 WHERE NOT ( NULL ) IS NULL
----
0
NULL

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

query I rowsort
SELECT DISTINCT 88 FROM tab0 WHERE NOT - col1 IS NULL
----
88

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL <> ( col2 )
----

query I rowsort
SELECT - 4 * + ( - - col0 ) FROM tab2 AS cor0
----
-184
-256
-300

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6296
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col1 * col1 IN ( - col2 + - 61 * - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-6296
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col1 * col1 IN ( - col2 + - 61 * - CAST ( NULL AS INTEGER ) )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6298
SELECT - MAX( ALL - col1 ) col0 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6298
SELECT - MAX ( ALL - col1 ) col0 FROM tab2 AS cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6299
SELECT - MAX( ALL 5 ) FROM tab2 cor0
----
-5

skipif mysql # not compatible
query I rowsort label-6299
SELECT - MAX ( ALL 5 ) FROM tab2 cor0
----
-5

onlyif mysql # DIV for integer division: 
query II rowsort label-6300
SELECT ALL - col1 * - - col1 * + col0 DIV + col0 + - col0, - 67 + - 71 AS col2 FROM tab1 AS cor0
----
-110
-138
-2300
-138
-247
-138

skipif mysql # not compatible
query II rowsort label-6300
SELECT ALL - col1 * - - col1 * + col0 / + col0 + - col0, - 67 + - 71 AS col2 FROM tab1 AS cor0
----
-110
-138
-2300
-138
-247
-138

query III rowsort
SELECT ALL * FROM tab2 WHERE + 97 + + 74 IS NULL
----

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6305
SELECT ALL 3 AS col0, + COUNT( DISTINCT + 28 ) * 96 FROM tab0
----
3
96

skipif mysql # not compatible
query II rowsort label-6305
SELECT ALL 3 AS col0, + COUNT ( DISTINCT + 28 ) * 96 FROM tab0
----
3
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6306
SELECT DISTINCT CAST( - - col1 AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE col0 + - - 88 IS NOT NULL
----
51
67
77

skipif mysql # not compatible
query I rowsort label-6306
SELECT DISTINCT CAST ( - - col1 AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE col0 + - - 88 IS NOT NULL
----
51
67
77

query I rowsort
SELECT + ( + - 89 ) * + col1 FROM tab1 AS cor0
----
-1246
-4183
-445

onlyif mysql # aggregate syntax: 
query I rowsort label-6308
SELECT DISTINCT - 82 * - SUM( DISTINCT + col0 ) col2 FROM tab1 cor0
----
18614

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

query I rowsort
SELECT DISTINCT + 27 + + col1 FROM tab2 AS cor0
----
104
78
94

onlyif mysql # aggregate syntax: 
query II rowsort label-6310
SELECT ALL + COUNT( * ) AS col2, + SUM( col2 ) AS col1 FROM tab0 AS cor0
----
3
156

skipif mysql # not compatible
query II rowsort label-6310
SELECT ALL + COUNT ( * ) AS col2, + SUM ( col2 ) AS col1 FROM tab0 AS cor0
----
3
156

query II rowsort
SELECT ALL + + col0 + - col2, 8 AS col0 FROM tab1 AS cor0
----
-45
8
23
8
26
8

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6312
SELECT ALL col1 AS col0, - CAST( + + col2 AS SIGNED ) FROM tab0 AS cor0
----
1
-99
21
-10
81
-47

skipif mysql # not compatible
query II rowsort label-6312
SELECT ALL col1 AS col0, - CAST ( + + col2 AS INTEGER ) FROM tab0 AS cor0
----
1
-99
21
-10
81
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 39 + + col2 + - 16 col1 FROM tab2 AS cor0
----
-15
-32
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6314
SELECT ALL 14 * COUNT( DISTINCT - col0 ) FROM tab2 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-6314
SELECT ALL 14 * COUNT ( DISTINCT - col0 ) FROM tab2 AS cor0
----
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6315
SELECT DISTINCT - - COUNT( * ) * + COUNT( ALL + col2 ) DIV 46 + + + 28 + + + SUM( - col2 ) + + COUNT( * ) - 96 col2 FROM tab2 AS cor0
----
-186

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6315
SELECT DISTINCT - - COUNT ( * ) * + COUNT ( ALL + col2 ) / 46 + + + 28 + + + SUM ( - col2 ) + + COUNT ( * ) - 96 col2 FROM tab2 AS cor0
----
-186

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

skipif mysql # not compatible
query I rowsort label-6316
SELECT DISTINCT col2 / + 65 FROM tab1
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6317
SELECT 45 + + - COUNT( * ) * + COUNT( * ) AS col1 FROM tab2
----
36

skipif mysql # not compatible
query I rowsort label-6317
SELECT 45 + + - COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab2
----
36

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6318
SELECT ALL CAST( NULL AS DECIMAL ) * 53 * + col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6318
SELECT ALL CAST ( NULL AS REAL ) * 53 * + col0 FROM tab2
----
NULL
NULL
NULL

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL <> - 85
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 88 < 70
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6324
SELECT - MIN( DISTINCT + + col2 ) col2 FROM tab2 cor0
----
-23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6324
SELECT - MIN ( DISTINCT + + col2 ) col2 FROM tab2 cor0
----
-23

query II rowsort
SELECT ALL col1 * - 87 + col1 AS col1, - 12 FROM tab0
----
-1806
-12
-6966
-12
-86
-12

query I rowsort
SELECT - col1 + + + ( 96 ) AS col2 FROM tab0
----
15
75
95

query II rowsort
SELECT col2 AS col1, col1 + + + 67 * - 27 + - col0 FROM tab0 AS cor0
----
10
-1875
47
-1743
99
-1905

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6329
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + CAST( 7 AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6329
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + CAST ( 7 AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query II rowsort
SELECT DISTINCT + col0 AS col1, + 44 + 21 AS col0 FROM tab2 cor0 WHERE - 84 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6332
SELECT - 18 AS col2, - 70 * - COUNT( DISTINCT + col2 ) * + 90 FROM tab0 AS cor0
----
-18
18900

skipif mysql # not compatible
query II rowsort label-6332
SELECT - 18 AS col2, - 70 * - COUNT ( DISTINCT + col2 ) * + 90 FROM tab0 AS cor0
----
-18
18900

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 2 * col1 col0 FROM tab0
----
162
2
42

onlyif mysql # aggregate syntax: 
query I rowsort label-6336
SELECT DISTINCT COUNT( * ) * 74 AS col1 FROM tab1 WHERE + col1 + + + col2 BETWEEN NULL AND + col2 / - 27
----
0

skipif mysql # not compatible
query I rowsort label-6336
SELECT DISTINCT COUNT ( * ) * 74 AS col1 FROM tab1 WHERE + col1 + + + col2 BETWEEN NULL AND + col2 / - 27
----
0

query I rowsort
SELECT - 68 * + col0 * col1 FROM tab1
----
-28900
-290836
-48552

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 - - + col1 col1 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( - col1 / - 9 ) AND ( NULL )
----

query I rowsort
SELECT - col0 * - - col1 AS col1 FROM tab1 AS cor0
----
-425
-4277
-714

query I rowsort
SELECT + 76 * - 22 + + + col1 * - + col1 * - 74 FROM tab1 cor0
----
12832
161794
178

onlyif mysql # aggregate syntax: 
query I rowsort label-6341
SELECT - COUNT( * ) * COUNT( * ) * - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL > col2
----
0

skipif mysql # not compatible
query I rowsort label-6341
SELECT - COUNT ( * ) * COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL > col2
----
0

query I rowsort
SELECT ALL + 27 + ( + 34 ) AS col0 FROM tab0 cor0 WHERE NOT col1 >= col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6343
SELECT DISTINCT - CAST( - + COUNT( * ) AS SIGNED ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-6343
SELECT DISTINCT - CAST ( - + COUNT ( * ) AS INTEGER ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT 77 * + col2 + - col1 + col2 FROM tab0
----
3585
759
7721

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NULL BETWEEN col1 * col0 + - 85 + + - 44 AND - col0
----

query I rowsort
SELECT DISTINCT - + 71 / + + col2 FROM tab0 AS cor0 WHERE - ( col2 ) + - col0 IS NULL
----

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT col1 IS NOT NULL
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6352
SELECT 91 * + COUNT( * ) col2 FROM tab1
----
273

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6352
SELECT 91 * + COUNT ( * ) col2 FROM tab1
----
273

query I rowsort
SELECT ALL 47 FROM tab0 WHERE - 8 IS NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6355
SELECT DISTINCT col2 DIV ( - + col1 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6355
SELECT DISTINCT col2 / ( - + col1 ) FROM tab2
----
0

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

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

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

query III rowsort
SELECT ALL - 14 AS col1, - col1, - col1 AS col1 FROM tab1
----
9 values hashing to 895dfffdb2fb9ba1650e5974d95272d1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col0 <> + ( 72 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query I rowsort
SELECT ALL + + 54 + + - col0 AS col1 FROM tab1 cor0
----
-31
-37
3

query I rowsort
SELECT DISTINCT col1 + + col1 + + col2 * 52 / + + 92 * - - col2 + + col2 + + col0 + col0 * 76 * - + col2 / + ( col1 ) AS col2 FROM tab0 AS cor0 WHERE ( NOT col1 + + col2 < NULL )
----

query I rowsort
SELECT ALL - ( - 36 ) FROM tab1
----
36
36
36

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6364
SELECT * FROM tab0 AS cor0 WHERE NOT 55 > + - col1 / + 51 * CAST( NULL AS SIGNED ) - + 7 + ( col1 ) * + ( + col1 ) + + 50
----

skipif mysql # not compatible
query III rowsort label-6364
SELECT * FROM tab0 AS cor0 WHERE NOT 55 > + - col1 / + 51 * CAST ( NULL AS INTEGER ) - + 7 + ( col1 ) * + ( + col1 ) + + 50
----

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6368
SELECT - col1 * + + col2 - - 55 + + col2 / ( + - col0 ) * col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( + col2, - CAST( NULL AS SIGNED ) * + - 47, col1 + col1 / - - col2, - 32 * - col1 )
----

skipif mysql # not compatible
query I rowsort label-6368
SELECT - col1 * + + col2 - - 55 + + col2 / ( + - col0 ) * col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( + col2, - CAST ( NULL AS INTEGER ) * + - 47, col1 + col1 / - - col2, - 32 * - col1 )
----

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6371
SELECT - 47 DIV - - 61 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6371
SELECT - 47 / - - 61 FROM tab0
----
0
0
0

query I rowsort
SELECT + 69 * + 68 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 67f625b70debf8de11d13599811b5514

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

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

skipif mysql # not compatible
query I rowsort label-6374
SELECT ALL COUNT ( * ) FROM tab0 WHERE + 69 * - col0 + - - col1 + - + col0 * - col2 IS NULL
----
0

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

query II rowsort
SELECT ALL + + 65 AS col0, 90 FROM tab0 AS cor0
----
65
90
65
90
65
90

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6377
SELECT - col1 * - CAST( NULL AS SIGNED ) col1, - ( ( + col0 ) ) FROM tab0
----
NULL
-15
NULL
-87
NULL
-97

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6378
SELECT ALL + col2 + + col1 * + + ( - CAST( + 57 AS SIGNED ) ) FROM tab2
----
-2884
-3761
-4349

skipif mysql # not compatible
query I rowsort label-6378
SELECT ALL + col2 + + col1 * + + ( - CAST ( + 57 AS INTEGER ) ) FROM tab2
----
-2884
-3761
-4349

query I rowsort
SELECT - + col0 FROM tab1 AS cor0 WHERE NULL BETWEEN 15 AND NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6381
SELECT + - COUNT( col1 ) * COUNT( * ) + + 71 FROM tab0 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-6381
SELECT + - COUNT ( col1 ) * COUNT ( * ) + + 71 FROM tab0 AS cor0
----
62

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

query I rowsort
SELECT ALL + + 86 - + col2 AS col2 FROM tab2 AS cor0
----
28
46
63

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

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

query I rowsort
SELECT 80 * + 21 * + col1 + - - col0 FROM tab1
----
23571
79051
8485

query I rowsort
SELECT + 51 + - 92 AS col1 FROM tab0
----
-41
-41
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6387
SELECT - col0 AS col2 FROM tab1 WHERE NULL = + + ( - CAST( - - col0 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-6387
SELECT - col0 AS col2 FROM tab1 WHERE NULL = + + ( - CAST ( - - col0 AS INTEGER ) )
----

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

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

query II rowsort
SELECT DISTINCT col0, + col1 FROM tab1
----
51
14
85
5
91
47

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL BETWEEN - - 79 AND NULL
----

query I rowsort
SELECT DISTINCT - + col2 * + 56 + + 21 + col2 FROM tab2 AS cor0
----
-1244
-2179
-3169

query I rowsort
SELECT + AVG ( DISTINCT - + col1 ) * - 23 + + 60 AS col0 FROM tab2 AS cor0 WHERE NULL = - 2 * 61
----
NULL

query I rowsort
SELECT 14 - - 74 AS col0 FROM tab1 cor0
----
88
88
88

onlyif mysql # aggregate syntax: 
query I rowsort label-6394
SELECT + - SUM( DISTINCT + col0 ) AS col2 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-6394
SELECT + - SUM ( DISTINCT + col0 ) AS col2 FROM tab2 AS cor0
----
-185

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

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

query I rowsort
SELECT - col0 * - - col2 AS col0 FROM tab0 cor0
----
-705
-870
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-6398
SELECT 35 * - COUNT( * ) * - 12 FROM tab0 AS cor0
----
1260

skipif mysql # not compatible
query I rowsort label-6398
SELECT 35 * - COUNT ( * ) * - 12 FROM tab0 AS cor0
----
1260

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

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

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

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

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

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

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

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

skipif mysql # not compatible
query II rowsort label-6405
SELECT ALL - ( + COUNT ( * ) ) AS col0, + COUNT ( + - col1 ) FROM tab0
----
-3
3

onlyif mysql # DIV for integer division: 
query I rowsort label-6406
SELECT ALL col0 DIV - 22 FROM tab0
----
-3
-4
0

skipif mysql # not compatible
query I rowsort label-6406
SELECT ALL col0 / - 22 FROM tab0
----
-3
-4
0

query II rowsort
SELECT col1 * + - 40 AS col1, 49 * - - col2 * + + ( col0 ) AS col2 FROM tab0
----
-3240
34545
-40
470547
-840
42630

query III rowsort
SELECT * FROM tab1 WHERE NOT + + 49 NOT BETWEEN - + 22 AND NULL
----

query I rowsort
SELECT 39 * col1 + + + 8 AS col1 FROM tab1 cor0
----
1841
203
554

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col2 BETWEEN + 82 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

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

query I rowsort
SELECT + ( + 0 ) + - + col0 + + 82 + - ( - 38 ) FROM tab2
----
45
56
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6414
SELECT AVG ( DISTINCT CAST( NULL AS SIGNED ) ) col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6414
SELECT AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6415
SELECT ALL * FROM tab2 AS cor0 WHERE - CAST( - ( 66 ) AS SIGNED ) IN ( - col2, CAST( + + 64 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-6415
SELECT ALL * FROM tab2 AS cor0 WHERE - CAST ( - ( 66 ) AS INTEGER ) IN ( - col2, CAST ( + + 64 AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT + - col2 + ( - + 15 ) * - + col0 FROM tab2 cor0
----
1067
667
920

query I rowsort
SELECT DISTINCT + col2 - - + col1 AS col0 FROM tab0 AS cor0
----
100
128
31

query I rowsort
SELECT ALL + 86 + + col1 AS col0 FROM tab0 AS cor0 WHERE col1 IN ( - col1 / - 96, + col2 + 60 + + 50 + - col1 + - - col0 * + + 47 + - - col2 )
----

query I rowsort
SELECT DISTINCT + col2 - - + 89 FROM tab2 AS cor0
----
112
129
147

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6421
SELECT - col2 DIV col0 - + col2 - 65 * + col0 FROM tab1
----
-3412
-5584
-5983

skipif mysql # not compatible
query I rowsort label-6421
SELECT - col2 / col0 - + col2 - 65 * + col0 FROM tab1
----
-3412
-5584
-5983

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 63 / + - col1 / + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 68 + col0 AS col2 FROM tab1
----
-17
17
23

query I rowsort
SELECT ALL + 24 * + - col2 FROM tab2
----
-1392
-552
-960

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col1 <> ( - ( + - ( - 80 ) ) )
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 * - col1 col2, col1 AS col2 FROM tab2
----
-1173
51
-3080
77
-3886
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6428
SELECT ALL - CAST( + MIN( - col1 ) AS SIGNED ) AS col2 FROM tab0 cor0
----
81

skipif mysql # not compatible
query I rowsort label-6428
SELECT ALL - CAST ( + MIN ( - col1 ) AS INTEGER ) AS col2 FROM tab0 cor0
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6429
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - CAST( NULL AS SIGNED ) * - col0 - - + col2 * - col2 NOT IN ( - col1 * - col0, 69 )
----

skipif mysql # not compatible
query III rowsort label-6429
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - CAST ( NULL AS INTEGER ) * - col0 - - + col2 * - col2 NOT IN ( - col1 * - col0, 69 )
----

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

query I rowsort
SELECT DISTINCT + 96 * - 67 FROM tab0
----
-6432

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

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

query I rowsort
SELECT DISTINCT col2 FROM tab0 WHERE NOT ( - - col1 ) BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6434
SELECT ALL 53 * - CAST( AVG ( ALL col0 ) AS SIGNED ) FROM tab0
----
-3498

skipif mysql # not compatible
query I rowsort label-6434
SELECT ALL 53 * - CAST ( AVG ( ALL col0 ) AS INTEGER ) FROM tab0
----
-3498

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

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

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

skipif mysql # not compatible
query II rowsort label-6437
SELECT - CAST ( + ( + - CAST ( - col0 AS INTEGER ) ) AS INTEGER ) - - + col2 AS col0, 81 * - 16 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

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

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

query I rowsort
SELECT DISTINCT - - 68 AS col1 FROM tab0 cor0
----
68

query I rowsort
SELECT - - 98 * 13 AS col1 FROM tab2 AS cor0
----
1274
1274
1274

onlyif mysql # aggregate syntax: 
query I rowsort label-6441
SELECT - MIN( + 5 ) FROM tab0 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-6441
SELECT - MIN ( + 5 ) FROM tab0 AS cor0
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6442
SELECT + 48 * - MIN( col0 ) DIV 15 + + + 1 + - + 50 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-6442
SELECT + 48 * - MIN ( col0 ) / 15 + + + 1 + - + 50 FROM tab0 AS cor0
----
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-6443
SELECT DISTINCT 78 AS col0, - COUNT( DISTINCT 87 ) AS col2 FROM tab1
----
78
-1

skipif mysql # not compatible
query II rowsort label-6443
SELECT DISTINCT 78 AS col0, - COUNT ( DISTINCT 87 ) AS col2 FROM tab1
----
78
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6444
SELECT ALL - COUNT( * ) * + - 19 AS col1 FROM tab1
----
57

skipif mysql # not compatible
query I rowsort label-6444
SELECT ALL - COUNT ( * ) * + - 19 AS col1 FROM tab1
----
57

query III rowsort
SELECT ALL * FROM tab0 WHERE - col2 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6446
SELECT DISTINCT - 24 DIV - - col2 FROM tab2
----
-1
0

skipif mysql # not compatible
query I rowsort label-6446
SELECT DISTINCT - 24 / - - col2 FROM tab2
----
-1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6447
SELECT ALL - col2 DIV - col2 + col2 * col1 AS col1 FROM tab1
----
1345
296
3197

skipif mysql # not compatible
query I rowsort label-6447
SELECT ALL - col2 / - col2 + col2 * col1 AS col1 FROM tab1
----
1345
296
3197

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

skipif mysql # not compatible
query I rowsort label-6448
SELECT DISTINCT ( + COUNT ( * ) ) + + ( + 12 ) + - CAST ( NULL AS INTEGER ) - + + ( - CAST ( + - COUNT ( DISTINCT - col2 ) AS REAL ) ) * + COUNT ( * ) AS col2 FROM tab0
----
NULL

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

query I rowsort
SELECT ALL + ( - 46 ) FROM tab1 WHERE NULL BETWEEN NULL AND + col0 - ( - - 41 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6451
SELECT - - ( + + 65 ) + ( + + COUNT( DISTINCT - 19 ) ) + - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
63

skipif mysql # not compatible
query I rowsort label-6451
SELECT - - ( + + 65 ) + ( + + COUNT ( DISTINCT - 19 ) ) + - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
63

query I rowsort
SELECT DISTINCT - col0 + + col1 + - 16 AS col1 FROM tab0 AS cor0
----
-112
-82
50

query I rowsort
SELECT DISTINCT + 78 FROM tab2 cor0
----
78

query I rowsort
SELECT ALL + 8 + + + col1 FROM tab2 AS cor0
----
59
75
85

query I rowsort
SELECT ALL col0 * + ( + 81 ) FROM tab1 AS cor0
----
4131
6885
7371

query I rowsort
SELECT + 81 * + 90 FROM tab1 cor0
----
7290
7290
7290

query I rowsort
SELECT + col0 AS col0 FROM tab1 AS cor0 WHERE 23 IS NOT NULL
----
51
85
91

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6459
SELECT DISTINCT 53 + COUNT( * ) FROM tab1 cor0 WHERE NULL BETWEEN col2 - - col1 AND + + col1 / + col0
----
53

skipif mysql # not compatible
query I rowsort label-6459
SELECT DISTINCT 53 + COUNT ( * ) FROM tab1 cor0 WHERE NULL BETWEEN col2 - - col1 AND + + col1 / + col0
----
53

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

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

query I rowsort
SELECT DISTINCT - 36 * - - col0 + + ( - + 73 ) AS col0 FROM tab0 AS cor0
----
-3205
-3565
-613

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + col0 - + + 15 col1 FROM tab0 AS cor0 WHERE 2 <> NULL
----

query I rowsort
SELECT 6 + - col0 + - 77 FROM tab0 AS cor0
----
-158
-168
-86

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6464
SELECT DISTINCT * FROM tab2 cor0 WHERE - col1 * 10 + - + CAST( NULL AS SIGNED ) * - 19 BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-6464
SELECT DISTINCT * FROM tab2 cor0 WHERE - col1 * 10 + - + CAST ( NULL AS INTEGER ) * - 19 BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 * - + 23 + + 16 + ( + - col0 ) col1, col1 FROM tab2 AS cor0
----
1275
67
499
51
872
77

query I rowsort
SELECT ALL ( - 38 ) - col0 * - col0 * - 64 * + - col0 + col0 AS col0 FROM tab0
----
215977
42144241
58411131

query I rowsort
SELECT DISTINCT 32 - - - 64 AS col2 FROM tab0
----
-32

query I rowsort
SELECT ALL 77 * - col0 AS col0 FROM tab1
----
-3927
-6545
-7007

query I rowsort
SELECT 75 * + col2 FROM tab2
----
1725
3000
4350

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

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

query I rowsort
SELECT - 45 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-45
-45
-45

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6472
SELECT * FROM tab0 AS cor0 WHERE NOT + ( - CAST( + col2 AS SIGNED ) ) * + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6472
SELECT * FROM tab0 AS cor0 WHERE NOT + ( - CAST ( + col2 AS INTEGER ) ) * + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6473
SELECT DISTINCT + - MAX( ALL + col1 ) col1 FROM tab1 AS cor0
----
-47

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6474
SELECT - - ( - 28 ) * 32 * - COUNT( * ) FROM tab1 AS cor0
----
2688

skipif mysql # not compatible
query I rowsort label-6474
SELECT - - ( - 28 ) * 32 * - COUNT ( * ) FROM tab1 AS cor0
----
2688

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6476
SELECT + 81 DIV - + COUNT( * ) FROM tab0 cor0
----
-27

skipif mysql # not compatible
query I rowsort label-6476
SELECT + 81 / - + COUNT ( * ) FROM tab0 cor0
----
-27

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

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

query II rowsort
SELECT DISTINCT - - 57, + col0 FROM tab0 AS cor0
----
57
15
57
87
57
97

query III rowsort
SELECT ALL * FROM tab2 WHERE + col1 / + col1 <= 65
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col1 * + ( + col1 ) FROM tab2
----
2601
4489
5929

query I rowsort
SELECT ALL col1 * + 72 AS col0 FROM tab1
----
1008
3384
360

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6482
SELECT DISTINCT ( + CAST( + col0 AS SIGNED ) ) * + col2 + + - CAST( col2 AS DECIMAL ) FROM tab0 AS cor0 WHERE NOT + col1 + + - col1 + col2 - 19 <> col0
----

skipif mysql # not compatible
query I rowsort label-6482
SELECT DISTINCT ( + CAST ( + col0 AS INTEGER ) ) * + col2 + + - CAST ( col2 AS REAL ) FROM tab0 AS cor0 WHERE NOT + col1 + + - col1 + col2 - 19 <> col0
----

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6486
SELECT ALL + 0 * COUNT( - col2 ) * + 40 + + COUNT( * ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6486
SELECT ALL + 0 * COUNT ( - col2 ) * + 40 + + COUNT ( * ) FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6487
SELECT * FROM tab0 cor0 WHERE NOT col0 * - col2 * - CAST( NULL AS SIGNED ) / + col0 > - col2
----

skipif mysql # not compatible
query III rowsort label-6487
SELECT * FROM tab0 cor0 WHERE NOT col0 * - col2 * - CAST ( NULL AS INTEGER ) / + col0 > - col2
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - col0 col0 FROM tab2
----
-2116
-4096
-5625

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6491
SELECT ALL 92 * - col0 + 42 + col1 * + col0 * + CAST( + 86 AS SIGNED ) AS col1 FROM tab0
----
-540
103152
149160

skipif mysql # not compatible
query I rowsort label-6491
SELECT ALL 92 * - col0 + 42 + col1 * + col0 * + CAST ( + 86 AS INTEGER ) AS col1 FROM tab0
----
-540
103152
149160

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - 64 col2 FROM tab0
----
5568
6208
960

query II rowsort
SELECT DISTINCT col0 + + col0 * + col0, + col2 * - col2 + + - 47 AS col2 FROM tab2
----
2162
-576
4160
-1647
5700
-3411

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

skipif mysql # not compatible
query I rowsort label-6494
SELECT - SUM ( - col2 ) AS col1 FROM tab2
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-6495
SELECT - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE 32 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-6495
SELECT - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE 32 IS NOT NULL
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6496
SELECT * FROM tab1 AS cor0 WHERE - ( - CAST( + - col2 AS SIGNED ) ) + + + ( col1 ) BETWEEN - 14 AND 1
----

skipif mysql # not compatible
query III rowsort label-6496
SELECT * FROM tab1 AS cor0 WHERE - ( - CAST ( + - col2 AS INTEGER ) ) + + + ( col1 ) BETWEEN - 14 AND 1
----

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

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

query II rowsort
SELECT DISTINCT + col1 * - col1 AS col2, - col2 FROM tab0
----
-1
-99
-441
-10
-6561
-47

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

query I rowsort
SELECT ALL + + 84 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8

onlyif mysql # DIV for integer division: 
query I rowsort label-6501
SELECT - 18 DIV + col2 * + col1 + + + 77 + - col2 FROM tab2 AS cor0
----
19
37
54

skipif mysql # not compatible
query I rowsort label-6501
SELECT - 18 / + col2 * + col1 + + + 77 + - col2 FROM tab2 AS cor0
----
19
37
54

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

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

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

query I rowsort
SELECT ALL - col1 * col2 + - col1 + - ( + col2 ) AS col0 FROM tab2 AS cor0 WHERE ( + col0 - + col1 < col0 )
----
-1247
-3197
-4011

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

query I rowsort
SELECT + col2 + + - col1 FROM tab1 WHERE NOT + col1 IS NULL
----
21
54
82

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

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

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

query I rowsort
SELECT + + col2 * + col2 * 36 * - col2 * 53 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-122112000
-23214636
-372273696

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

query I rowsort
SELECT ALL - 56 * 46 * + col1 AS col0 FROM tab1
----
-121072
-12880
-36064

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + + 6 / + 35 < col2
----

query I rowsort
SELECT col0 * + - col2 FROM tab2
----
-1058
-2560
-4350

query I rowsort
SELECT + + col1 + - col2 AS col0 FROM tab1 AS cor0 WHERE NOT ( + 9 ) >= col0
----
-21
-54
-82

onlyif mysql # aggregate syntax: 
query II rowsort label-6516
SELECT DISTINCT COUNT( * ) * + + 13 AS col2, - 28 + - 37 + + - COUNT( * ) * 48 AS col2 FROM tab1 cor0
----
39
-209

skipif mysql # not compatible
query II rowsort label-6516
SELECT DISTINCT COUNT ( * ) * + + 13 AS col2, - 28 + - 37 + + - COUNT ( * ) * 48 AS col2 FROM tab1 cor0
----
39
-209

query II rowsort
SELECT + 0 AS col2, col2 * 41 FROM tab1
----
0
2419
0
2788
0
3936

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6519
SELECT - + COUNT( * ) col0 FROM tab2 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-6519
SELECT - + COUNT ( * ) col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6522
SELECT col0 AS col0, CAST( col1 AS SIGNED ) * - 34 + + + col0 FROM tab2 AS cor0
----
46
-1688
64
-2554
75
-2203

skipif mysql # not compatible
query II rowsort label-6522
SELECT col0 AS col0, CAST ( col1 AS INTEGER ) * - 34 + + + col0 FROM tab2 AS cor0
----
46
-1688
64
-2554
75
-2203

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

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

skipif mysql # not compatible
query II rowsort label-6524
SELECT ALL + COUNT ( * ) AS col2, 19 FROM tab2 AS cor0
----
3
19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + 14 col1 FROM tab2 AS cor0
----
1050
644
896

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

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

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

query I rowsort
SELECT DISTINCT ( + 94 ) AS col2 FROM tab0
----
94

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

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

query III rowsort
SELECT * FROM tab2 WHERE - col0 + - + 46 <> - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

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

skipif mysql # not compatible
query I rowsort label-6533
SELECT ALL - AVG ( DISTINCT CAST ( NULL AS REAL ) ) FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 13 - + col1 + col2 * + 81 - + - 30 + + col1 col0 FROM tab1
----
4822
5551
7819

query I rowsort
SELECT ALL - 17 * 25 + col0 FROM tab1
----
-334
-340
-374

onlyif mysql # aggregate syntax: 
query I rowsort label-6536
SELECT ALL + COUNT( col0 ) AS col1 FROM tab1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6536
SELECT ALL + COUNT ( col0 ) AS col1 FROM tab1 WHERE NULL IS NOT NULL
----
0

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

skipif mysql # not compatible
query I rowsort label-6537
SELECT - CAST ( + - CAST ( + - col2 AS INTEGER ) AS INTEGER ) * - - col0 + - col0 AS col0 FROM tab1 AS cor0
----
-4947
-5100
-6279

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6540
SELECT + col0 FROM tab2 AS cor0 WHERE ( + + ( + col2 ) ) <> CAST( + + col0 AS SIGNED ) - - + ( - col1 )
----
46
64
75

skipif mysql # not compatible
query I rowsort label-6540
SELECT + col0 FROM tab2 AS cor0 WHERE ( + + ( + col2 ) ) <> CAST ( + + col0 AS INTEGER ) - - + ( - col1 )
----
46
64
75

query I rowsort
SELECT - 87 + + col1 AS col2 FROM tab0 AS cor0
----
-6
-66
-86

query I rowsort
SELECT + col2 + + + 21 AS col2 FROM tab2 AS cor0
----
44
61
79

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

query III rowsort
SELECT DISTINCT - ( + col2 ) * col0 * + 67 * - col1 AS col2, col0 * col0 + - - 90, + col0 AS col2 FROM tab1 AS cor0
----
9 values hashing to f0f92a2c0af3ceb1b1f0fd6c1a642034

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

query I rowsort
SELECT col2 * - 33 + col2 - - col2 * + - 84 FROM tab1 AS cor0
----
-11136
-6844
-7888

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-6547
SELECT * FROM tab1 AS cor0 WHERE NOT - 86 + + col2 * col1 + CAST( NULL AS SIGNED ) - + col1 - - CAST( + col0 AS DECIMAL ) * - - col1 IS NULL
----

skipif mysql # not compatible
query III rowsort label-6547
SELECT * FROM tab1 AS cor0 WHERE NOT - 86 + + col2 * col1 + CAST ( NULL AS INTEGER ) - + col1 - - CAST ( + col0 AS REAL ) * - - col1 IS NULL
----

query I rowsort
SELECT col2 * 78 AS col2 FROM tab2 AS cor0
----
1794
3120
4524

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

query I rowsort
SELECT DISTINCT + 63 * col2 AS col1 FROM tab0
----
2961
6237
630

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

skipif mysql # not compatible
query II rowsort label-6551
SELECT - COUNT ( * ) AS col0, + COUNT ( * ) AS col2 FROM tab0
----
-3
3

query III rowsort
SELECT ALL * FROM tab0 WHERE + 39 = col1
----

query I rowsort
SELECT 83 * + col0 * + 56 AS col2 FROM tab2
----
213808
297472
348600

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

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

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

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

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 94 IS NOT NULL
----

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

query I rowsort
SELECT DISTINCT - 15 + + 50 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-6559
SELECT + col2 DIV + col1 + - + col0 FROM tab1
----
-45
-74
-90

skipif mysql # not compatible
query I rowsort label-6559
SELECT + col2 / + col1 + - + col0 FROM tab1
----
-45
-74
-90

query I rowsort
SELECT col1 * + 60 * + col1 + col2 * + 63 AS col2 FROM tab0
----
27090
396621
6297

onlyif mysql # aggregate syntax: 
query I rowsort label-6561
SELECT 51 + - COUNT( * ) FROM tab2
----
48

skipif mysql # not compatible
query I rowsort label-6561
SELECT 51 + - COUNT ( * ) FROM tab2
----
48

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

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

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

query I rowsort
SELECT ALL - col1 AS col0 FROM tab2 cor0 WHERE 11 <= NULL
----

query I rowsort
SELECT ALL col2 + 68 FROM tab0 AS cor0
----
115
167
78

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

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

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

query II rowsort
SELECT DISTINCT + col2, col1 * - col2 AS col0 FROM tab1
----
59
-295
68
-3196
96
-1344

onlyif mysql # aggregate syntax: 
query I rowsort label-6570
SELECT ALL MIN( + 78 ) AS col1 FROM tab0
----
78

skipif mysql # not compatible
query I rowsort label-6570
SELECT ALL MIN ( + 78 ) AS col1 FROM tab0
----
78

query I rowsort
SELECT ALL + col0 + + 81 FROM tab2
----
127
145
156

query I rowsort
SELECT - 75 + - 81 AS col1 FROM tab2
----
-156
-156
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-6573
SELECT DISTINCT - 12 + - COUNT( + 68 ) * - COUNT( DISTINCT + col2 ) col0 FROM tab2 AS cor0
----
-3

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

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

skipif mysql # not compatible
query II rowsort label-6574
SELECT ALL - col1 - CAST ( NULL AS INTEGER ), col1 FROM tab1
----
NULL
14
NULL
47
NULL
5

query I rowsort
SELECT 19 * - 47 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 4009567d506fd1e487366a9c554e4c48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 11 * - 69 col0, + col2 AS col2 FROM tab2 AS cor0
----
-759
23
-759
40
-759
58

query I rowsort
SELECT DISTINCT - + ( - 21 ) * - col2 AS col1 FROM tab0 AS cor0
----
-2079
-210
-987

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6578
SELECT ALL - col2 / - + col0 col2 FROM tab2 AS cor0
----
0
0
0

query II rowsort
SELECT + - col2 * 16 AS col0, col2 FROM tab2 AS cor0
----
-368
23
-640
40
-928
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6580
SELECT + MIN( - 31 ) FROM tab0
----
-31

skipif mysql # not compatible
query I rowsort label-6580
SELECT + MIN ( - 31 ) FROM tab0
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6581
SELECT ALL SUM( + + CAST( + 49 AS SIGNED ) ) * 15 FROM tab2
----
2205

skipif mysql # not compatible
query I rowsort label-6581
SELECT ALL SUM ( + + CAST ( + 49 AS INTEGER ) ) * 15 FROM tab2
----
2205

query I rowsort
SELECT DISTINCT + 73 FROM tab0 WHERE NULL IS NULL
----
73

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

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

query I rowsort
SELECT - col1 * - ( - + 82 ) FROM tab1
----
-1148
-3854
-410

query I rowsort
SELECT - 82 * - col1 AS col2 FROM tab0
----
1722
6642
82

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6587
SELECT SUM( ALL 38 ) FROM tab1
----
114

skipif mysql # not compatible
query I rowsort label-6587
SELECT SUM ( ALL 38 ) FROM tab1
----
114

query I rowsort
SELECT DISTINCT + 8 * 75 FROM tab1
----
600

onlyif mysql # aggregate syntax: 
query I rowsort label-6589
SELECT ( + SUM( DISTINCT + + 23 ) ) FROM tab0
----
23

skipif mysql # not compatible
query I rowsort label-6589
SELECT ( + SUM ( DISTINCT + + 23 ) ) FROM tab0
----
23

query I rowsort
SELECT ALL 36 * + 84 FROM tab0
----
3024
3024
3024

query I rowsort
SELECT DISTINCT col1 * + - col0 + col0 FROM tab2 cor0
----
-2300
-4864
-4950

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col0 < - 10 + - 28 + + col2 + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6593
SELECT MAX( + + 26 ) FROM tab0 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-6593
SELECT MAX ( + + 26 ) FROM tab0 AS cor0
----
26

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6596
SELECT COUNT( * ) * - - MIN( col1 ) FROM tab2 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-6596
SELECT COUNT ( * ) * - - MIN ( col1 ) FROM tab2 AS cor0
----
153

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

skipif mysql # not compatible
query II rowsort label-6597
SELECT - 0, + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
0
3

query I rowsort
SELECT DISTINCT col1 + + 19 - - - col2 FROM tab2
----
28
47
56

query III rowsort
SELECT ALL * FROM tab1 WHERE - col1 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6600
SELECT ALL - 29 + CAST( - col1 AS SIGNED ) FROM tab1
----
-34
-43
-76

skipif mysql # not compatible
query I rowsort label-6600
SELECT ALL - 29 + CAST ( - col1 AS INTEGER ) FROM tab1
----
-34
-43
-76

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6603
SELECT - - 43 + + COUNT( * ) * - 94 FROM tab1 AS cor0
----
-239

skipif mysql # not compatible
query I rowsort label-6603
SELECT - - 43 + + COUNT ( * ) * - 94 FROM tab1 AS cor0
----
-239

onlyif mysql # aggregate syntax: 
query I rowsort label-6604
SELECT + COUNT( * ) + - 34 AS col2 FROM tab0 AS cor0
----
-31

skipif mysql # not compatible
query I rowsort label-6604
SELECT + COUNT ( * ) + - 34 AS col2 FROM tab0 AS cor0
----
-31

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

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

query I rowsort
SELECT + 40 + col1 * col0 AS col2 FROM tab1 cor0
----
4317
465
754

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

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

query I rowsort
SELECT + 72 * + col0 + + + col1 FROM tab2 AS cor0
----
3363
4685
5467

query II rowsort
SELECT DISTINCT - col2 * - 6 AS col2, col2 FROM tab0 AS cor0
----
282
47
594
99
60
10

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6611
SELECT + COUNT( * ) + + 50 AS col0 FROM tab0
----
53

skipif mysql # not compatible
query I rowsort label-6611
SELECT + COUNT ( * ) + + 50 AS col0 FROM tab0
----
53

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - ( + + 1 ) BETWEEN - col0 AND + + col1
----

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

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

skipif mysql # not compatible
query I rowsort label-6614
SELECT COUNT ( * ) AS col1 FROM tab1 WHERE ( - col0 ) + - - col2 IS NULL
----
0

query I rowsort
SELECT DISTINCT col1 + - 97 * - col1 FROM tab2
----
4998
6566
7546

query I rowsort
SELECT ALL - + col1 AS col2 FROM tab2 WHERE - ( - + 74 ) IS NULL
----

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col1 + + 77 > NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6620
SELECT COUNT( * ) - + SUM( DISTINCT - col0 ) FROM tab0
----
202

skipif mysql # not compatible
query I rowsort label-6620
SELECT COUNT ( * ) - + SUM ( DISTINCT - col0 ) FROM tab0
----
202

onlyif mysql # DIV for integer division: 
query I rowsort label-6621
SELECT - 60 DIV col0 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6621
SELECT - 60 / col0 FROM tab1
----
-1
0
0

query I rowsort
SELECT ALL - - 64 * + + col2 AS col0 FROM tab0 AS cor0
----
3008
6336
640

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

query I rowsort
SELECT - + ( + col0 ) * - - col0 AS col2 FROM tab0 AS cor0
----
-225
-7569
-9409

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6625
SELECT - MIN( + CAST( col1 AS SIGNED ) ) col2 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6625
SELECT - MIN ( + CAST ( col1 AS INTEGER ) ) col2 FROM tab1 AS cor0
----
-5

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

query I rowsort
SELECT 38 * + - 48 * + - col2 AS col0 FROM tab1 AS cor0 WHERE NOT - col1 IS NULL
----
107616
124032
175104

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

skipif mysql # not compatible
query II rowsort label-6628
SELECT ALL col1 AS col0, col2 + - col1 + 58 + + 56 / + - CAST ( NULL AS INTEGER ) * - ( col0 ) + + 50 * - col0 AS col0 FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

query I rowsort
SELECT + ( + col0 ) * - col2 AS col2 FROM tab2 AS cor0
----
-1058
-2560
-4350

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6631
SELECT + col0 FROM tab2 WHERE NOT - CAST( + - 8 AS SIGNED ) <= + col2
----

skipif mysql # not compatible
query I rowsort label-6631
SELECT + col0 FROM tab2 WHERE NOT - CAST ( + - 8 AS INTEGER ) <= + col2
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6633
SELECT SUM( DISTINCT col0 ) col1 FROM tab2
----
185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6633
SELECT SUM ( DISTINCT col0 ) col1 FROM tab2
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-6634
SELECT ALL - COUNT( * ) * MIN( DISTINCT 19 ) AS col2 FROM tab2
----
-57

skipif mysql # not compatible
query I rowsort label-6634
SELECT ALL - COUNT ( * ) * MIN ( DISTINCT 19 ) AS col2 FROM tab2
----
-57

query I rowsort
SELECT - + 90 * + col2 * + 56 FROM tab0 AS cor0
----
-236880
-498960
-50400

onlyif mysql # aggregate syntax: 
query I rowsort label-6636
SELECT ALL - MAX( DISTINCT + 7 ) * 16 AS col1 FROM tab1 cor0
----
-112

skipif mysql # not compatible
query I rowsort label-6636
SELECT ALL - MAX ( DISTINCT + 7 ) * 16 AS col1 FROM tab1 cor0
----
-112

onlyif mysql # aggregate syntax: 
query I rowsort label-6637
SELECT DISTINCT - MIN( ALL - - col0 ) FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-6637
SELECT DISTINCT - MIN ( ALL - - col0 ) FROM tab2
----
-46

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6639
SELECT DISTINCT 55 + - ( + 19 ) * + + COUNT( * ) AS col2, COUNT( * ) FROM tab1, tab2 AS cor0
----
-116
9

skipif mysql # not compatible
query II rowsort label-6639
SELECT DISTINCT 55 + - ( + 19 ) * + + COUNT ( * ) AS col2, COUNT ( * ) FROM tab1, tab2 AS cor0
----
-116
9

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6641
SELECT MIN( + + col1 ) AS col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6641
SELECT MIN ( + + col1 ) AS col0 FROM tab0 AS cor0
----
1

query I rowsort
SELECT ALL 29 * - col2 + col1 FROM tab1 AS cor0
----
-1706
-1925
-2770

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6645
SELECT DISTINCT + COUNT( * ) + + SUM( DISTINCT - col0 ) DIV - 79 + - + CAST( 4 AS SIGNED ) col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6645
SELECT DISTINCT + COUNT ( * ) + + SUM ( DISTINCT - col0 ) / - 79 + - + CAST ( 4 AS INTEGER ) col0 FROM tab0 AS cor0
----
1

query I rowsort
SELECT DISTINCT + + col2 * col2 * col2 FROM tab2 cor0
----
12167
195112
64000

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + ( + 84 ) + + col2 col0 FROM tab0 AS cor0
----
-37
-74
15

query I rowsort
SELECT DISTINCT - + 82 * col0 - col2 + - col0 * - 83 AS col0 FROM tab2 AS cor0
----
17
23
24

query I rowsort
SELECT DISTINCT - - col2 + col1 * col2 - + 72 FROM tab2 AS cor0
----
1124
3048
3872

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6651
SELECT CAST( NULL AS SIGNED ) AS col1, + col0 AS col2, + + col2 + - col0 - 61 FROM tab2
----
9 values hashing to c28800f51684ff90833e19139f075201

skipif mysql # not compatible
query III rowsort label-6651
SELECT CAST ( NULL AS INTEGER ) AS col1, + col0 AS col2, + + col2 + - col0 - 61 FROM tab2
----
9 values hashing to c28800f51684ff90833e19139f075201

query I rowsort
SELECT ( col2 ) - + col0 * - - 39 FROM tab0
----
-3383
-3684
-538

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

query I rowsort
SELECT + 4 - + + 43 * + col0 AS col2 FROM tab1
----
-2189
-3651
-3909

query I rowsort
SELECT 97 - + + col0 AS col2 FROM tab1
----
12
46
6

query I rowsort
SELECT DISTINCT - col0 + - col0 + + - col1 AS col2 FROM tab1
----
-116
-175
-229

onlyif mysql # DIV for integer division: 
query I rowsort label-6657
SELECT ALL col1 DIV ( col1 ) AS col1 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6657
SELECT ALL col1 / ( col1 ) AS col1 FROM tab1
----
1
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6658
SELECT + col2 DIV + col0 + - col0 FROM tab1
----
-50
-85
-91

skipif mysql # not compatible
query I rowsort label-6658
SELECT + col2 / + col0 + - col0 FROM tab1
----
-50
-85
-91

query I rowsort
SELECT col2 + - 44 * + - col2 FROM tab2
----
1035
1800
2610

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

skipif mysql # not compatible
query I rowsort label-6660
SELECT ALL - 9 * + col2 * ( col2 ) - - 40 * CAST ( - CAST ( NULL AS REAL ) AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6662
SELECT ( - COUNT( * ) ) + - + ( + 65 ) FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-74

skipif mysql # not compatible
query I rowsort label-6662
SELECT ( - COUNT ( * ) ) + - + ( + 65 ) FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-74

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

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

query I rowsort
SELECT - ( 59 ) FROM tab2
----
-59
-59
-59

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 + - 7 + - 88 * + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-6667
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - CAST( CAST( - col2 AS DECIMAL ) AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6667
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - CAST ( CAST ( - col2 AS REAL ) AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6668
SELECT ALL + COUNT( * ) FROM tab2 AS cor0 WHERE + col1 * + - col0 * + 68 * - - 59 / 68 > col1
----
0

skipif mysql # not compatible
query I rowsort label-6668
SELECT ALL + COUNT ( * ) FROM tab2 AS cor0 WHERE + col1 * + - col0 * + 68 * - - 59 / 68 > col1
----
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6670
SELECT + col0 * - - CAST( + + col0 AS SIGNED ) + + col2 AS col1 FROM tab1 AS cor0
----
2697
7284
8349

skipif mysql # not compatible
query I rowsort label-6670
SELECT + col0 * - - CAST ( + + col0 AS INTEGER ) + + col2 AS col1 FROM tab1 AS cor0
----
2697
7284
8349

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col0 * - + col2 AS col1, 55 * - col1 col0 FROM tab2 cor0
----
-1058
-2805
-2560
-4235
-4350
-3685

query I rowsort
SELECT ALL - col2 * - 31 FROM tab0
----
1457
3069
310

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

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 NOT BETWEEN col0 AND + - col1
----

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

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

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

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

query I rowsort
SELECT ALL - 33 * - - 98 + + 95 AS col2 FROM tab1 AS cor0
----
-3139
-3139
-3139

onlyif mysql # aggregate syntax: 
query I rowsort label-6679
SELECT - COUNT( * ) * + + 63 FROM tab1 AS cor0
----
-189

skipif mysql # not compatible
query I rowsort label-6679
SELECT - COUNT ( * ) * + + 63 FROM tab1 AS cor0
----
-189

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * 5 * + + col1 col0 FROM tab1 AS cor0
----
11045
125
980

query II rowsort
SELECT DISTINCT col0 AS col0, col0 - + col0 FROM tab1 AS cor0
----
51
0
85
0
91
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6683
SELECT DISTINCT - ( SUM( ALL + 11 ) ) * SUM( ALL 45 ) FROM tab2
----
-4455

skipif mysql # not compatible
query I rowsort label-6683
SELECT DISTINCT - ( SUM ( ALL + 11 ) ) * SUM ( ALL 45 ) FROM tab2
----
-4455

onlyif mysql # aggregate syntax: 
query I rowsort label-6684
SELECT 59 + - COUNT( * ) FROM tab1 WHERE ( 36 * + col1 ) < NULL
----
59

skipif mysql # not compatible
query I rowsort label-6684
SELECT 59 + - COUNT ( * ) FROM tab1 WHERE ( 36 * + col1 ) < NULL
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6685
SELECT - CAST( NULL AS SIGNED ) - COUNT( * ) col1 FROM tab1 WHERE NOT NULL NOT BETWEEN - CAST( - col2 AS DECIMAL ) AND + col2 / ( 26 * col0 ) + - 30 / col0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6685
SELECT - CAST ( NULL AS INTEGER ) - COUNT ( * ) col1 FROM tab1 WHERE NOT NULL NOT BETWEEN - CAST ( - col2 AS REAL ) AND + col2 / ( 26 * col0 ) + - 30 / col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6686
SELECT DISTINCT - CAST( COUNT( * ) AS SIGNED ) * 20 AS col1 FROM tab1
----
-60

skipif mysql # not compatible
query I rowsort label-6686
SELECT DISTINCT - CAST ( COUNT ( * ) AS INTEGER ) * 20 AS col1 FROM tab1
----
-60

query I rowsort
SELECT col1 FROM tab0 WHERE NULL BETWEEN - 83 AND - 30
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6689
SELECT ALL - ( - COUNT( * ) ) FROM tab1 WHERE NOT 38 NOT IN ( + 95 * + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-6689
SELECT ALL - ( - COUNT ( * ) ) FROM tab1 WHERE NOT 38 NOT IN ( + 95 * + col1 )
----
0

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

query I rowsort
SELECT DISTINCT 1 * + col1 + col1 AS col1 FROM tab2
----
102
134
154

query I rowsort
SELECT ALL 20 - + col1 AS col0 FROM tab2
----
-31
-47
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6693
SELECT - 32 * CAST( col1 AS SIGNED ) FROM tab1
----
-1504
-160
-448

skipif mysql # not compatible
query I rowsort label-6693
SELECT - 32 * CAST ( col1 AS INTEGER ) FROM tab1
----
-1504
-160
-448

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

query I rowsort
SELECT + 55 * 79 AS col1 FROM tab1
----
4345
4345
4345

query I rowsort
SELECT 8 * + ( 83 ) FROM tab2
----
664
664
664

query I rowsort
SELECT DISTINCT + 19 AS col2 FROM tab0 WHERE col1 + col2 * col1 IN ( 68 )
----

query I rowsort
SELECT - col2 AS col0 FROM tab1 WHERE NOT 9 BETWEEN NULL AND col1
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-6699
SELECT ( SUM( DISTINCT - 89 ) ) + 83 FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-6699
SELECT ( SUM ( DISTINCT - 89 ) ) + 83 FROM tab0
----
-6

query I rowsort
SELECT 69 * - 29 AS col1 FROM tab1
----
-2001
-2001
-2001

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6702
SELECT + MIN( - ( - CAST( NULL AS SIGNED ) ) ) AS col0 FROM tab1 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6702
SELECT + MIN ( - ( - CAST ( NULL AS INTEGER ) ) ) AS col0 FROM tab1 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6703
SELECT ALL - 76 DIV - 22 col1 FROM tab1
----
3
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6703
SELECT ALL - 76 / - 22 col1 FROM tab1
----
3
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6704
SELECT DISTINCT + COUNT( * ) * COUNT( * ) AS col0 FROM tab1 WHERE NOT + 43 / + 72 IS NULL
----
9

skipif mysql # not compatible
query I rowsort label-6704
SELECT DISTINCT + COUNT ( * ) * COUNT ( * ) AS col0 FROM tab1 WHERE NOT + 43 / + 72 IS NULL
----
9

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col1 BETWEEN + col2 AND + ( - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6707
SELECT - 58 - MAX( DISTINCT - 90 ) * + COUNT( * ) FROM tab2 WHERE ( + col2 ) IS NOT NULL
----
212

skipif mysql # not compatible
query I rowsort label-6707
SELECT - 58 - MAX ( DISTINCT - 90 ) * + COUNT ( * ) FROM tab2 WHERE ( + col2 ) IS NOT NULL
----
212

query I rowsort
SELECT - 4 + col1 AS col1 FROM tab0
----
-3
17
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6709
SELECT + SUM( + 56 ) + + COUNT( * ) FROM tab2
----
171

skipif mysql # not compatible
query I rowsort label-6709
SELECT + SUM ( + 56 ) + + COUNT ( * ) FROM tab2
----
171

query I rowsort
SELECT col1 * - col1 - col2 AS col0 FROM tab1 AS cor0
----
-2277
-292
-84

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6713
SELECT COUNT ( + 41 ) FROM tab2 cor0
----
3

query I rowsort
SELECT ALL col1 AS col1 FROM tab1 AS cor0 WHERE ( 87 ) NOT IN ( col1 + col2 )
----
14
47
5

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - 33 ) / 54 + col0 > ( col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 48 * 43 AS col1 FROM tab1 AS cor0
----
2064
2064
2064

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - 29 ) IS NOT NULL
----

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

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

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

query I rowsort
SELECT col2 * 51 FROM tab2 AS cor0
----
1173
2040
2958

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6722
SELECT ALL - + MAX( ALL - 80 ) FROM tab1 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-6722
SELECT ALL - + MAX ( ALL - 80 ) FROM tab1 AS cor0
----
80

query I rowsort
SELECT col1 * 58 AS col0 FROM tab0 cor0
----
1218
4698
58

query I rowsort
SELECT - col1 * 15 FROM tab1 AS cor0
----
-210
-705
-75

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

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

query I rowsort
SELECT ALL - col2 AS col1 FROM tab0 cor0 WHERE NOT + ( - ( ( col1 ) ) ) IS NULL
----
-10
-47
-99

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6729
SELECT - 94 * MIN( ( + 55 ) ) AS col0 FROM tab1 WHERE NOT + col2 IS NULL
----
-5170

skipif mysql # not compatible
query I rowsort label-6729
SELECT - 94 * MIN ( ( + 55 ) ) AS col0 FROM tab1 WHERE NOT + col2 IS NULL
----
-5170

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - col0 ) <> col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + ( col0 ) + - col0 * - col0 col1 FROM tab1
----
2748
7369
8440

query I rowsort
SELECT ALL 38 + col0 FROM tab0
----
125
135
53

query I rowsort
SELECT - col2 + + 62 * col1 FROM tab1 AS cor0 WHERE ( - 4 ) BETWEEN - col2 AND - 17 + col1
----
2846
772

onlyif mysql # aggregate syntax: 
query I rowsort label-6736
SELECT ALL + - 37 + MIN( col1 ) AS col2 FROM tab1 AS cor0
----
-32

skipif mysql # not compatible
query I rowsort label-6736
SELECT ALL + - 37 + MIN ( col1 ) AS col2 FROM tab1 AS cor0
----
-32

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6737
SELECT DISTINCT - 73 + - - COUNT ( CAST ( NULL AS INTEGER ) ) col0 FROM tab0 cor0
----
-73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - 93 col2 FROM tab2
----
-144
-160
-170

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6739
SELECT CAST( NULL AS SIGNED ) / - + COUNT( + + 24 ) * - COUNT( * ) + 25 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6739
SELECT CAST ( NULL AS INTEGER ) / - + COUNT ( + + 24 ) * - COUNT ( * ) + 25 AS col0 FROM tab0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6741
SELECT + 6 * - MAX( - col0 ) AS col1 FROM tab1
----
306

skipif mysql # not compatible
query I rowsort label-6741
SELECT + 6 * - MAX ( - col0 ) AS col1 FROM tab1
----
306

onlyif mysql # aggregate syntax: 
query I rowsort label-6742
SELECT ALL SUM( ALL 18 ) FROM tab2
----
54

skipif mysql # not compatible
query I rowsort label-6742
SELECT ALL SUM ( ALL 18 ) FROM tab2
----
54

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT col1 NOT IN ( - 24 )
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6746
SELECT ALL + 13 - COUNT( * ) AS col2 FROM tab1 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-6746
SELECT ALL + 13 - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
10

query II rowsort
SELECT DISTINCT + col2 AS col2, col0 + - 32 AS col1 FROM tab0 AS cor0
----
10
55
47
-17
99
65

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6748
SELECT 59 - - - CAST( NULL AS DECIMAL ) + + + col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6748
SELECT 59 - - - CAST ( NULL AS REAL ) + + + col2 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 - - - col1 * - - col0 * + col1 FROM tab2 AS cor0
----
-119623
-336617
-379416

query I rowsort
SELECT - 48 * - col1 - - 15 FROM tab1
----
2271
255
687

query I rowsort
SELECT ALL - col0 - + - ( - 27 ) AS col2 FROM tab0
----
-114
-124
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-6752
SELECT ALL COUNT( * ) * - ( MAX( ALL - - col0 ) ) - 73 col0 FROM tab2
----
-298

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6752
SELECT ALL COUNT ( * ) * - ( MAX ( ALL - - col0 ) ) - 73 col0 FROM tab2
----
-298

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6754
SELECT - 15 FROM tab1 WHERE NOT - CAST( + ( + 66 ) AS SIGNED ) < NULL
----

skipif mysql # not compatible
query I rowsort label-6754
SELECT - 15 FROM tab1 WHERE NOT - CAST ( + ( + 66 ) AS INTEGER ) < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6755
SELECT - 72 * + col2, CAST( NULL AS SIGNED ) + - - 91 + + col0 AS col0 FROM tab1
----
-4248
NULL
-4896
NULL
-6912
NULL

skipif mysql # not compatible
query II rowsort label-6755
SELECT - 72 * + col2, CAST ( NULL AS INTEGER ) + - - 91 + + col0 AS col0 FROM tab1
----
-4248
NULL
-4896
NULL
-6912
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6756
SELECT 86 DIV 91 * - - COUNT( * ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6756
SELECT 86 / 91 * - - COUNT ( * ) AS col0 FROM tab2
----
0

query I rowsort
SELECT DISTINCT + col1 * + - col0 AS col2 FROM tab0
----
-1215
-1827
-97

query I rowsort
SELECT col0 * - - col2 FROM tab1
----
4896
5015
6188

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

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

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

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

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

query I rowsort
SELECT - col2 FROM tab1 AS cor0 WHERE NOT col2 IN ( col1 )
----
-59
-68
-96

query I rowsort
SELECT DISTINCT 41 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL NOT BETWEEN + col0 + col1 * - 10 AND ( - 15 ) )
----

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

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

query I rowsort
SELECT DISTINCT 75 * - + col2 AS col0 FROM tab0
----
-3525
-7425
-750

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6767
SELECT ALL 55 + + COUNT( * ) / - CAST( NULL AS SIGNED ) + SUM( 53 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6767
SELECT ALL 55 + + COUNT ( * ) / - CAST ( NULL AS INTEGER ) + SUM ( 53 ) FROM tab0 AS cor0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6769
SELECT DISTINCT SUM( ALL - col2 ) * + COUNT( * ) + + COUNT( * ) col1 FROM tab2 cor0
----
-360

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6769
SELECT DISTINCT SUM ( ALL - col2 ) * + COUNT ( * ) + + COUNT ( * ) col1 FROM tab2 cor0
----
-360

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

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

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

skipif mysql # not compatible
query I rowsort label-6771
SELECT - 46 / - COUNT ( * ) FROM tab0 AS cor0
----
15

query I rowsort
SELECT col1 * - 41 + col1 FROM tab2
----
-2040
-2680
-3080

onlyif mysql # aggregate syntax: 
query II rowsort label-6773
SELECT DISTINCT 84 AS col2, 59 * - 80 + - COUNT( * ) * + + 87 FROM tab1
----
84
-4981

skipif mysql # not compatible
query II rowsort label-6773
SELECT DISTINCT 84 AS col2, 59 * - 80 + - COUNT ( * ) * + + 87 FROM tab1
----
84
-4981

query I rowsort
SELECT + col2 FROM tab0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT + 30 FROM tab0 WHERE ( + col1 ) <> ( - + col0 )
----
30
30
30

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6776
SELECT ALL + 0, + col2 * - col2 - + ( + + CAST( + + ( + 25 ) AS SIGNED ) ) AS col1 FROM tab0
----
0
-125
0
-2234
0
-9826

skipif mysql # not compatible
query II rowsort label-6776
SELECT ALL + 0, + col2 * - col2 - + ( + + CAST ( + + ( + 25 ) AS INTEGER ) ) AS col1 FROM tab0
----
0
-125
0
-2234
0
-9826

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6777
SELECT DISTINCT * FROM tab2 WHERE ( + ( - CAST( col1 AS DECIMAL ) ) = ( NULL ) )
----

skipif mysql # not compatible
query III rowsort label-6777
SELECT DISTINCT * FROM tab2 WHERE ( + ( - CAST ( col1 AS REAL ) ) = ( NULL ) )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - ( + + 11 ) * + + col0 + - col1 * col1 ) IN ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6779
SELECT MAX( ALL - 46 ) FROM tab1 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-6779
SELECT MAX ( ALL - 46 ) FROM tab1 AS cor0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-6780
SELECT + SUM( + - col0 ) * - ( + 32 ) * + + 73 FROM tab1 AS cor0
----
530272

skipif mysql # not compatible
query I rowsort label-6780
SELECT + SUM ( + - col0 ) * - ( + 32 ) * + + 73 FROM tab1 AS cor0
----
530272

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

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

query I rowsort
SELECT DISTINCT col0 + + 62 AS col1 FROM tab2 AS cor0
----
108
126
137

query I rowsort
SELECT DISTINCT - + 60 + + + col1 AS col0 FROM tab0 AS cor0
----
-39
-59
21

onlyif mysql # aggregate syntax: 
query I rowsort label-6784
SELECT + - SUM( DISTINCT - col1 ) + - - 38 AS col2 FROM tab2 AS cor0 WHERE ( NOT NULL IS NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6784
SELECT + - SUM ( DISTINCT - col1 ) + - - 38 AS col2 FROM tab2 AS cor0 WHERE ( NOT NULL IS NULL )
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6786
SELECT - 15 DIV + - col2 + - col0 AS col0 FROM tab0 AS cor0
----
-15
-86
-97

skipif mysql # not compatible
query I rowsort label-6786
SELECT - 15 / + - col2 + - col0 AS col0 FROM tab0 AS cor0
----
-15
-86
-97

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

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

query I rowsort
SELECT DISTINCT 42 - 88 FROM tab2 AS cor0
----
-46

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6791
SELECT DISTINCT MIN( ALL + col2 ) * - - COUNT( DISTINCT + - col0 ) FROM tab2
----
69

skipif mysql # not compatible
query I rowsort label-6791
SELECT DISTINCT MIN ( ALL + col2 ) * - - COUNT ( DISTINCT + - col0 ) FROM tab2
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-6792
SELECT DISTINCT MIN( - + col0 ) AS col0 FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-6792
SELECT DISTINCT MIN ( - + col0 ) AS col0 FROM tab0
----
-97

query I rowsort
SELECT ALL col0 * 21 AS col0 FROM tab2
----
1344
1575
966

onlyif mysql # aggregate syntax: 
query I rowsort label-6794
SELECT ALL - ( - - SUM( ALL - col1 ) ) * - - MAX( col0 ) AS col1 FROM tab0
----
9991

skipif mysql # not compatible
query I rowsort label-6794
SELECT ALL - ( - - SUM ( ALL - col1 ) ) * - - MAX ( col0 ) AS col1 FROM tab0
----
9991

query II rowsort
SELECT col1 AS col1, - col2 AS col2 FROM tab0
----
1
-99
21
-10
81
-47

query I rowsort
SELECT - col0 * - col2 * 41 FROM tab0 AS cor0
----
28905
35670
393723

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

skipif mysql # not compatible
query I rowsort label-6797
SELECT + MAX ( ( - CAST ( NULL AS INTEGER ) ) ) * - - COUNT ( * ) FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - 14 col1 FROM tab2 AS cor0
----
-1078
-714
-938

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 93 * + + col1 * - 48 <= 32 * col0
----

query I rowsort
SELECT ALL + AVG ( DISTINCT 20 ) * + 88 FROM tab2, tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col0 BETWEEN + + ( + + 52 ) * - 17 + col2 AND + - ( + - col1 )
----
15
81
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - - 27 ) col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6805
SELECT - CAST( - col1 AS SIGNED ) + - col2 * - col2 AS col0, 79 AS col1 FROM tab2
----
1677
79
3431
79
580
79

skipif mysql # not compatible
query II rowsort label-6805
SELECT - CAST ( - col1 AS INTEGER ) + - col2 * - col2 AS col0, 79 AS col1 FROM tab2
----
1677
79
3431
79
580
79

query I rowsort
SELECT ALL - + col0 + 3 FROM tab1 AS cor0
----
-48
-82
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-6807
SELECT + 48 + MAX( ALL col2 ) col1 FROM tab1 AS cor0
----
144

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6807
SELECT + 48 + MAX ( ALL col2 ) col1 FROM tab1 AS cor0
----
144

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6809
SELECT + - COUNT( * ) + 5 AS col2, ( + 70 ) AS col0 FROM tab0 AS cor0
----
2
70

skipif mysql # not compatible
query II rowsort label-6809
SELECT + - COUNT ( * ) + 5 AS col2, ( + 70 ) AS col0 FROM tab0 AS cor0
----
2
70

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

query I rowsort
SELECT DISTINCT - 7 + - - col1 + + col1 AS col0 FROM tab0 AS cor0
----
-5
155
35

onlyif mysql # aggregate syntax: 
query I rowsort label-6812
SELECT - - SUM( - col2 ) * + COUNT( * ) FROM tab0 AS cor0
----
-468

skipif mysql # not compatible
query I rowsort label-6812
SELECT - - SUM ( - col2 ) * + COUNT ( * ) FROM tab0 AS cor0
----
-468

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + col2 ) >= 35
----
46
51
23

query I rowsort
SELECT DISTINCT + + col1 * - + col1 AS col1 FROM tab0 WHERE NOT + 48 * col0 >= NULL
----

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6817
SELECT DISTINCT 46 + - SUM( ALL 13 ) + + COUNT( * ) DIV COUNT( * ) * SUM( ALL - ( - - col1 ) ) * - 95 AS col0 FROM tab0
----
9792

skipif mysql # not compatible
query I rowsort label-6817
SELECT DISTINCT 46 + - SUM ( ALL 13 ) + + COUNT ( * ) / COUNT ( * ) * SUM ( ALL - ( - - col1 ) ) * - 95 AS col0 FROM tab0
----
9792

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6819
SELECT DISTINCT 73 + COUNT( * ) FROM tab2
----
76

skipif mysql # not compatible
query I rowsort label-6819
SELECT DISTINCT 73 + COUNT ( * ) FROM tab2
----
76

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

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

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NULL BETWEEN 25 AND 58
----

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6823
SELECT DISTINCT 50 * + COUNT( * ) FROM tab2 AS cor0 WHERE NOT + CAST( ( + + col1 ) AS SIGNED ) > col2 + + - 85
----
0

skipif mysql # not compatible
query I rowsort label-6823
SELECT DISTINCT 50 * + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT + CAST ( ( + + col1 ) AS INTEGER ) > col2 + + - 85
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6824
SELECT DISTINCT SUM( DISTINCT 77 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
77

skipif mysql # not compatible
query I rowsort label-6824
SELECT DISTINCT SUM ( DISTINCT 77 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
77

query I rowsort
SELECT col0 * col0 * - + 26 FROM tab2
----
-106496
-146250
-55016

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

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 27 * col2 IS NULL
----

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

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

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

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

skipif mysql # not compatible
query III rowsort label-6831
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( CAST ( - col2 AS INTEGER ) ) NOT IN ( - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 66 + col2 BETWEEN NULL AND ( - + 39 * - 10 * ( + 20 ) * + 18 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6833
SELECT ALL + 4 * - - COUNT( * ) FROM tab1 WHERE NOT + 49 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6833
SELECT ALL + 4 * - - COUNT ( * ) FROM tab1 WHERE NOT + 49 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6834
SELECT ALL - SUM( - + 47 ) AS col0 FROM tab2
----
141

skipif mysql # not compatible
query I rowsort label-6834
SELECT ALL - SUM ( - + 47 ) AS col0 FROM tab2
----
141

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

query I rowsort
SELECT DISTINCT col2 * + - col0 * - col2 AS col2 FROM tab1
----
295885
420784
470016

query II rowsort
SELECT + col0, + 6 + col1 + - 8 FROM tab2 WHERE NOT - - 85 = - col2 * ( + col2 ) * + 60
----
46
49
64
75
75
65

query I rowsort
SELECT DISTINCT + col0 * + + col1 FROM tab1
----
425
4277
714

query I rowsort
SELECT + col1 / + col1 + - - col1 + - ( - ( + + 50 ) ) + ( col0 ) * - col1 FROM tab0 WHERE NOT + 88 NOT IN ( - - col1 )
----

query I rowsort
SELECT col1 FROM tab2 WHERE NOT ( NULL ) IS NULL
----

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + 81 col0 FROM tab0
----
3807
8019
810

query II rowsort
SELECT col0, - ( - - 56 ) FROM tab0
----
15
-56
87
-56
97
-56

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

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

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

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

query I rowsort
SELECT + 70 AS col0 FROM tab0 AS cor0 WHERE + col2 / + col0 + - col2 <= NULL
----

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

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

query I rowsort
SELECT ALL + col2 * + 23 AS col2 FROM tab2 AS cor0
----
1334
529
920

onlyif mysql # aggregate syntax: 
query I rowsort label-6852
SELECT - MAX( DISTINCT - - ( col0 ) ) + - MIN( ALL - col2 ) AS col1 FROM tab2
----
-17

skipif mysql # not compatible
query I rowsort label-6852
SELECT - MAX ( DISTINCT - - ( col0 ) ) + - MIN ( ALL - col2 ) AS col1 FROM tab2
----
-17

query I rowsort
SELECT + 35 + col2 AS col1 FROM tab0
----
134
45
82

query I rowsort
SELECT + + 92 + + col1 * - col0 FROM tab1 WHERE col1 IS NOT NULL
----
-333
-4185
-622

query I rowsort
SELECT ALL + col0 + - col2 * - 14 FROM tab0 WHERE + - 38 IS NULL
----

query I rowsort
SELECT ALL + col2 + + + col2 - - + col0 AS col1 FROM tab0
----
107
109
295

query I rowsort
SELECT ALL 64 / + 71 - + - col0 * - col2 / - col1 * - 35 FROM tab2 cor0 WHERE - col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6858
SELECT + 32 * + CAST( + 17 AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to fed70c4a488a38621e743f7851c5cfb9

skipif mysql # not compatible
query I rowsort label-6858
SELECT + 32 * + CAST ( + 17 AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to fed70c4a488a38621e743f7851c5cfb9

onlyif mysql # DIV for integer division: 
query I rowsort label-6859
SELECT + col1 DIV - + 99 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6859
SELECT + col1 / - + 99 FROM tab1 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6860
SELECT + COUNT( + 72 ) * - 54 AS col0 FROM tab2 cor0
----
-162

skipif mysql # not compatible
query I rowsort label-6860
SELECT + COUNT ( + 72 ) * - 54 AS col0 FROM tab2 cor0
----
-162

onlyif mysql # aggregate syntax: 
query I rowsort label-6861
SELECT DISTINCT SUM( + 86 ) FROM tab2 AS cor0
----
258

skipif mysql # not compatible
query I rowsort label-6861
SELECT DISTINCT SUM ( + 86 ) FROM tab2 AS cor0
----
258

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6864
SELECT - - 72 DIV - 60 + col2 + + ( - col0 ) AS col1, + col0 * + CAST( + - 2 AS SIGNED ) FROM tab0 AS cor0
----
-78
-174
1
-194
31
-30

skipif mysql # not compatible
query II rowsort label-6864
SELECT - - 72 / - 60 + col2 + + ( - col0 ) AS col1, + col0 * + CAST ( + - 2 AS INTEGER ) FROM tab0 AS cor0
----
-78
-174
1
-194
31
-30

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col1 <> - 93
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-6866
SELECT DISTINCT + col1 DIV - - 80 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-6866
SELECT DISTINCT + col1 / - - 80 FROM tab0
----
0
1

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

query I rowsort
SELECT ALL - 6 * + + col0 FROM tab2 WHERE NULL <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6869
SELECT + col0 - col1 AS col2 FROM tab0 WHERE NOT - 26 / - CAST( + 74 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6869
SELECT + col0 - col1 AS col2 FROM tab0 WHERE NOT - 26 / - CAST ( + 74 AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6870
SELECT ALL 93 col1, + MIN( DISTINCT + 36 ) + 94 FROM tab0
----
93
130

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6870
SELECT ALL 93 col1, + MIN ( DISTINCT + 36 ) + 94 FROM tab0
----
93
130

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

query I rowsort
SELECT col2 * - + 35 FROM tab1
----
-2065
-2380
-3360

query I rowsort
SELECT 40 * + - col1 FROM tab1
----
-1880
-200
-560

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

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

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

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

query II rowsort
SELECT ALL + + col2 AS col1, + col0 * + ( - 96 ) FROM tab1 cor0
----
59
-8160
68
-8736
96
-4896

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6877
SELECT DISTINCT - col0 + col2 + CAST ( NULL AS INTEGER ) - + 25 / - col2 * - col2 * - col1 col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + - 11 AS col0 FROM tab0 AS cor0
----
-11
-11
-11

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

query I rowsort
SELECT ALL - col1 FROM tab2 cor0 WHERE NOT ( NULL ) IS NULL
----

query II rowsort
SELECT DISTINCT col0 * + 29 + col0 * + 33 + + col1 + + ( - + 62 ) AS col2, col0 FROM tab1 AS cor0
----
3114
51
5213
85
5627
91

query I rowsort
SELECT col1 * col2 FROM tab2 AS cor0 WHERE col2 = ( NULL )
----

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

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

query I rowsort
SELECT col2 - - col2 + col2 FROM tab1
----
177
204
288

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col1 NOT IN ( + 42 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6886
SELECT col1 + + 72 DIV col1 AS col1 FROM tab2
----
52
68
77

skipif mysql # not compatible
query I rowsort label-6886
SELECT col1 + + 72 / col1 AS col1 FROM tab2
----
52
68
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6887
SELECT MAX( ALL + + col1 ) + - COUNT( * ) FROM tab0
----
78

skipif mysql # not compatible
query I rowsort label-6887
SELECT MAX ( ALL + + col1 ) + - COUNT ( * ) FROM tab0
----
78

query I rowsort
SELECT - col1 FROM tab1 cor0 WHERE NULL < + 70
----

query I rowsort
SELECT - col2 + 26 FROM tab0 cor0
----
-21
-73
16

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

query I rowsort
SELECT ALL - ( 27 ) * - col1 * + col1 - + col1 FROM tab1 AS cor0
----
5278
59596
670

onlyif mysql # aggregate syntax: 
query I rowsort label-6892
SELECT + 17 * - + COUNT( * ) AS col2 FROM tab1
----
-51

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

query III rowsort
SELECT ALL * FROM tab1 WHERE - col2 * + + 20 IS NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6895
SELECT - - col0 FROM tab0 AS cor0 WHERE NOT ( NOT NULL NOT IN ( - 56 * + col0 * 82 * - 22 * 43, col0 * col0 * + col2, - col0 + col0 - + col2 * - col1, + CAST( - 50 AS SIGNED ) * - - col1 ) )
----

skipif mysql # not compatible
query I rowsort label-6895
SELECT - - col0 FROM tab0 AS cor0 WHERE NOT ( NOT NULL NOT IN ( - 56 * + col0 * 82 * - 22 * 43, col0 * col0 * + col2, - col0 + col0 - + col2 * - col1, + CAST ( - 50 AS INTEGER ) * - - col1 ) )
----

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6900
SELECT ALL + MIN( DISTINCT - + col2 ) DIV 76 AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6900
SELECT ALL + MIN ( DISTINCT - + col2 ) / 76 AS col1 FROM tab2 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-6901
SELECT col1 DIV - col0 AS col1, + 92 * + + col2 AS col1 FROM tab1 AS cor0
----
0
5428
0
6256
0
8832

skipif mysql # not compatible
query II rowsort label-6901
SELECT col1 / - col0 AS col1, + 92 * + + col2 AS col1 FROM tab1 AS cor0
----
0
5428
0
6256
0
8832

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col0 <= - ( + col0 ) + - 81 - 62
----

query I rowsort
SELECT 32 * + - 54 * 81 AS col1 FROM tab0 AS cor0
----
-139968
-139968
-139968

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 94 < + col2
----
15
81
47
87
21
10

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL IN ( + col0, col2, + col1, + - 26 )
----

query I rowsort
SELECT ALL - + 21 AS col2 FROM tab1 AS cor0
----
-21
-21
-21

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6907
SELECT * FROM tab0 cor0 WHERE + col2 + + + 89 + - CAST( NULL AS DECIMAL ) NOT IN ( 28 * + 37 - ( + col1 ) + + 63, 4, ( ( + - col0 ) ), + col2 )
----

skipif mysql # not compatible
query III rowsort label-6907
SELECT * FROM tab0 cor0 WHERE + col2 + + + 89 + - CAST ( NULL AS REAL ) NOT IN ( 28 * + 37 - ( + col1 ) + + 63, 4, ( ( + - col0 ) ), + col2 )
----

query I rowsort
SELECT ALL + - col2 * + col2 + + 35 FROM tab1 cor0
----
-3446
-4589
-9181

query I rowsort
SELECT DISTINCT + 65 + + 7 + + 88 * ( + col1 ) + col0 - + col0 * - - col1 AS col2 FROM tab0 AS cor0
----
160
180
6000

query I rowsort
SELECT DISTINCT col2 + - 2 AS col2 FROM tab1 AS cor0
----
57
66
94

onlyif mysql # aggregate syntax: 
query I rowsort label-6911
SELECT + 48 * - COUNT( * ) + 45 FROM tab1 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-6911
SELECT + 48 * - COUNT ( * ) + 45 FROM tab1 AS cor0
----
-99

query I rowsort
SELECT + 67 + - ( + col0 ) AS col1 FROM tab1 AS cor0
----
-18
-24
16

query I rowsort
SELECT DISTINCT + col1 - + 90 * - 49 AS col2 FROM tab2 AS cor0
----
4461
4477
4487

query I rowsort
SELECT ALL col1 FROM tab1 AS cor0 WHERE col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6915
SELECT 59 + ( 28 ) DIV + 42 FROM tab0
----
59
59
59

skipif mysql # not compatible
query I rowsort label-6915
SELECT 59 + ( 28 ) / + 42 FROM tab0
----
59
59
59

query I rowsort
SELECT 64 * col2 + - + 4 FROM tab2
----
1468
2556
3708

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6917
SELECT + MAX( - CAST( - col2 AS SIGNED ) ) FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-6917
SELECT + MAX ( - CAST ( - col2 AS INTEGER ) ) FROM tab0
----
99

query I rowsort
SELECT 0 * - 37 AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL + 99 * + col1 AS col2 FROM tab0
----
2079
8019
99

query I rowsort
SELECT DISTINCT + 70 + + col1 * + - col2 * - col0 - - col1 FROM tab2 AS cor0
----
197267
291587
54079

query I rowsort
SELECT 52 * - 44 FROM tab0 AS cor0 WHERE + col2 + + 65 >= + - col0
----
-2288
-2288
-2288

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6922
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NOT col0 * - CAST( 82 AS DECIMAL ) <> ( + col1 ) )
----

skipif mysql # not compatible
query III rowsort label-6922
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NOT col0 * - CAST ( 82 AS REAL ) <> ( + col1 ) )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6923
SELECT + COUNT( * ) - - - 83, COUNT( * ) col2 FROM tab0 AS cor0
----
-80
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6923
SELECT + COUNT ( * ) - - - 83, COUNT ( * ) col2 FROM tab0 AS cor0
----
-80
3

query I rowsort
SELECT DISTINCT - col1 + - 4 AS col0 FROM tab1 AS cor0
----
-18
-51
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 92 * col1 * + col0 col2 FROM tab0 AS cor0
----
111780
168084
8924

query I rowsort
SELECT + ( - - 9 ) FROM tab1
----
9
9
9

query I rowsort
SELECT ALL - col0 * + 96 FROM tab2
----
-4416
-6144
-7200

query I rowsort
SELECT DISTINCT + 91 * - 12 FROM tab0 AS cor0
----
-1092

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

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

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

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

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

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

query I rowsort
SELECT ALL col2 FROM tab0 AS cor0 WHERE NOT 31 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 54 * + 93 AS col0 FROM tab2
----
5022

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6935
SELECT DISTINCT MIN( - col1 ) AS col1 FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-6935
SELECT DISTINCT MIN ( - col1 ) AS col1 FROM tab2
----
-77

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

query I rowsort
SELECT - - col1 * + - 57 + - - col2 AS col2 FROM tab2 AS cor0
----
-2884
-3761
-4349

query I rowsort
SELECT ALL + col2 + - col0 - + - 84 FROM tab2 AS cor0
----
60
61
67

query I rowsort
SELECT DISTINCT + 57 + - 61 FROM tab1 AS cor0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-6940
SELECT ALL + SUM( ALL - - col2 ) + - 21 FROM tab0 AS cor0
----
135

skipif mysql # not compatible
query I rowsort label-6940
SELECT ALL + SUM ( ALL - - col2 ) + - 21 FROM tab0 AS cor0
----
135

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6942
SELECT DISTINCT - SUM( - col0 ) * 11 col0, 56 AS col2 FROM tab0
----
2189
56

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6942
SELECT DISTINCT - SUM ( - col0 ) * 11 col0, 56 AS col2 FROM tab0
----
2189
56

onlyif mysql # aggregate syntax: 
query I rowsort label-6943
SELECT DISTINCT ( - MIN( 39 ) ) col1 FROM tab0
----
-39

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6943
SELECT DISTINCT ( - MIN ( 39 ) ) col1 FROM tab0
----
-39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - 30 col2 FROM tab2
----
-7
10
28

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6947
SELECT ALL + 59 + COUNT( * ) FROM tab0
----
62

skipif mysql # not compatible
query I rowsort label-6947
SELECT ALL + 59 + COUNT ( * ) FROM tab0
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6948
SELECT - col1, 14 * - - ( - CAST( - col1 AS SIGNED ) ) AS col1 FROM tab2 cor0
----
-51
714
-67
938
-77
1078

skipif mysql # not compatible
query II rowsort label-6948
SELECT - col1, 14 * - - ( - CAST ( - col1 AS INTEGER ) ) AS col1 FROM tab2 cor0
----
-51
714
-67
938
-77
1078

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

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

query I rowsort
SELECT + 80 * - + col2 - + - col1 FROM tab1
----
-4715
-5393
-7666

onlyif mysql # DIV for integer division: 
query I rowsort label-6952
SELECT DISTINCT + col1 - - col2 DIV - ( col0 ) + + col1 AS col2 FROM tab1
----
10
27
94

skipif mysql # not compatible
query I rowsort label-6952
SELECT DISTINCT + col1 - - col2 / - ( col0 ) + + col1 AS col2 FROM tab1
----
10
27
94

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 60 + 62 col0 FROM tab1 WHERE NULL > - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6955
SELECT DISTINCT + 82 * COUNT( - col0 ) FROM tab0
----
246

skipif mysql # not compatible
query I rowsort label-6955
SELECT DISTINCT + 82 * COUNT ( - col0 ) FROM tab0
----
246

query I rowsort
SELECT - col1 * - col2 + + + 20 AS col0 FROM tab1
----
1364
315
3216

onlyif mysql # aggregate syntax: 
query I rowsort label-6957
SELECT ( COUNT( DISTINCT + 43 ) ) + COUNT( DISTINCT + col2 ) FROM tab2
----
4

skipif mysql # not compatible
query I rowsort label-6957
SELECT ( COUNT ( DISTINCT + 43 ) ) + COUNT ( DISTINCT + col2 ) FROM tab2
----
4

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 59 * + - 17 + - col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 23 AS col2 FROM tab1
----
23

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6963
SELECT DISTINCT - - MIN( col1 ) AS col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6963
SELECT DISTINCT - - MIN ( col1 ) AS col1 FROM tab0 AS cor0
----
1

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

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

skipif mysql # not compatible
query I rowsort label-6965
SELECT ALL - COUNT ( * ) + + - 1 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-6966
SELECT - SUM( + - 7 ) AS col0 FROM tab0, tab2 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-6966
SELECT - SUM ( + - 7 ) AS col0 FROM tab0, tab2 AS cor0
----
63

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6968
SELECT - - ( - ( - + CAST( + 90 AS SIGNED ) ) ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

skipif mysql # not compatible
query I rowsort label-6968
SELECT - - ( - ( - + CAST ( + 90 AS INTEGER ) ) ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

query I rowsort
SELECT DISTINCT - 92 * - + 9 AS col0 FROM tab1
----
828

query I rowsort
SELECT col1 FROM tab2 WHERE NOT NULL NOT IN ( + - 14 + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * 51 * + col2 + + col2 col0 FROM tab2 AS cor0
----
-157040
-198128
-59800

query I rowsort
SELECT ALL - + col2 * 38 FROM tab1 cor0
----
-2242
-2584
-3648

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE 99 + col0 >= + + 86 * - - 68
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 * - + 60 + - + col2 - - col1 * col0 + + col2 <= NULL
----

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

query II rowsort
SELECT 65 AS col1, + col2 FROM tab2
----
65
23
65
40
65
58

query I rowsort
SELECT DISTINCT - ( 25 ) FROM tab0 WHERE - + col1 IN ( + 28 )
----

query I rowsort
SELECT DISTINCT col1 * + 84 FROM tab0
----
1764
6804
84

query I rowsort
SELECT ALL col2 + - ( - col1 ) + - 13 FROM tab1 WHERE 2 IS NULL
----

query I rowsort
SELECT ALL - col1 * - 72 AS col1 FROM tab2
----
3672
4824
5544

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

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

query I rowsort
SELECT DISTINCT ( col0 ) FROM tab1 WHERE NULL IS NULL
----
51
85
91

query I rowsort
SELECT DISTINCT + 80 + + col0 - + + 65 + - 6 + + - col0 * + 53 AS col1 FROM tab0
----
-4515
-5035
-771

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

query II rowsort
SELECT DISTINCT + 91, 15 AS col0 FROM tab0 AS cor0
----
91
15

onlyif mysql # DIV for integer division: 
query I rowsort label-6986
SELECT ALL - col0 DIV ( col1 ) AS col0 FROM tab2 cor0 WHERE NOT col1 + col0 * - + col0 IS NULL
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6986
SELECT ALL - col0 / ( col1 ) AS col0 FROM tab2 cor0 WHERE NOT col1 + col0 * - + col0 IS NULL
----
-1
0
0

query I rowsort
SELECT DISTINCT - + 60 AS col2 FROM tab0 AS cor0
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6988
SELECT ALL 36 + 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-6988
SELECT ALL 36 + CAST ( NULL AS INTEGER ) + col2 col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6989
SELECT COUNT( * ) - - MIN( ALL col0 ) FROM tab1
----
54

skipif mysql # not compatible
query I rowsort label-6989
SELECT COUNT ( * ) - - MIN ( ALL col0 ) FROM tab1
----
54

onlyif mysql # aggregate syntax: 
query II rowsort label-6990
SELECT DISTINCT - - 69, - COUNT( * ) col0 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL AND NOT - ( 74 ) BETWEEN - - col0 AND 52
----
69
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6990
SELECT DISTINCT - - 69, - COUNT ( * ) col0 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL AND NOT - ( 74 ) BETWEEN - - col0 AND 52
----
69
-3

query I rowsort
SELECT DISTINCT - col1 + - 86 AS col1 FROM tab2 AS cor0
----
-137
-153
-163

query I rowsort
SELECT ALL + - 50 + - + 38 AS col1 FROM tab2 AS cor0
----
-88
-88
-88

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NULL <> - 68
----

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

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

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

skipif mysql # not compatible
query I rowsort label-6995
SELECT DISTINCT - 74 / - COUNT ( * ) - + + COUNT ( * ) FROM tab1 AS cor0
----
21

query I rowsort
SELECT DISTINCT ( col2 ) - + col1 FROM tab0 AS cor0
----
-11
-34
98

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

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

query I rowsort
SELECT ALL - 21 - + 20 AS col0 FROM tab2
----
-41
-41
-41

query I rowsort
SELECT ALL - 16 * + + 77 * - + col0 AS col0 FROM tab1
----
104720
112112
62832

onlyif mysql # aggregate syntax: 
query I rowsort label-7000
SELECT + - SUM( DISTINCT - - 48 ) AS col2 FROM tab2 WHERE NOT NULL < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7000
SELECT + - SUM ( DISTINCT - - 48 ) AS col2 FROM tab2 WHERE NOT NULL < NULL
----
NULL

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7003
SELECT + + CAST( + + col1 AS SIGNED ) FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-7003
SELECT + + CAST ( + + col1 AS INTEGER ) FROM tab0 AS cor0
----
1
21
81

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

skipif mysql # not compatible
query I rowsort label-7004
SELECT ALL - COUNT ( * ) * - 87 FROM tab2
----
261

onlyif mysql # DIV for integer division: 
query I rowsort label-7005
SELECT + col2 * col0 DIV col1 * - col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-120
-3567
-931491

skipif mysql # not compatible
query I rowsort label-7005
SELECT + col2 * col0 / col1 * - col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-120
-3567
-931491

onlyif mysql # aggregate syntax: 
query I rowsort label-7006
SELECT COUNT( * ) * 67 * + 26 AS col2 FROM tab2 cor0
----
5226

skipif mysql # not compatible
query I rowsort label-7006
SELECT COUNT ( * ) * 67 * + 26 AS col2 FROM tab2 cor0
----
5226

query II rowsort
SELECT - + col1, col2 FROM tab0 AS cor0
----
-1
99
-21
10
-81
47

query I rowsort
SELECT col0 * 44 FROM tab2 cor0
----
2024
2816
3300

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

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

skipif mysql # not compatible
query II rowsort label-7010
SELECT + ( - col1 ) AS col1, - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
-14
NULL
-47
NULL
-5
NULL

query I rowsort
SELECT ALL + 20 * + 78 AS col1 FROM tab0
----
1560
1560
1560

query I rowsort
SELECT - ( - 48 ) AS col1 FROM tab2
----
48
48
48

onlyif mysql # aggregate syntax: 
query I rowsort label-7013
SELECT - COUNT( DISTINCT - - 94 ) AS col1 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-7013
SELECT - COUNT ( DISTINCT - - 94 ) AS col1 FROM tab1
----
-1

query I rowsort
SELECT ALL - - ( - - col2 ) * - col0 * col2 AS col1 FROM tab1 AS cor0
----
-295885
-420784
-470016

onlyif mysql # aggregate syntax: 
query I rowsort label-7015
SELECT COUNT( * ) + + 99 AS col2 FROM tab0
----
102

skipif mysql # not compatible
query I rowsort label-7015
SELECT COUNT ( * ) + + 99 AS col2 FROM tab0
----
102

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab1 WHERE NOT NULL <= 8
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7017
SELECT - SUM( + 59 ) * + 83 FROM tab0
----
-14691

skipif mysql # not compatible
query I rowsort label-7017
SELECT - SUM ( + 59 ) * + 83 FROM tab0
----
-14691

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

query II rowsort
SELECT ALL col1 + - - ( + col1 ) AS col2, + 55 FROM tab2 AS cor0
----
102
55
134
55
154
55

query II rowsort
SELECT + + 64 AS col2, - 86 FROM tab1 AS cor0
----
64
-86
64
-86
64
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-7021
SELECT DISTINCT - SUM( DISTINCT + 5 ) + + ( - - 85 ) + - 15 FROM tab0 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-7021
SELECT DISTINCT - SUM ( DISTINCT + 5 ) + + ( - - 85 ) + - 15 FROM tab0 AS cor0
----
65

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 83 IS NOT NULL
----

query II rowsort
SELECT col0 + + + col0 + + + col1 AS col2, ( col1 ) * - + col2 AS col0 FROM tab0 AS cor0 WHERE - 6 + - col1 = NULL
----

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

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

query I rowsort
SELECT ALL 75 - - + col1 FROM tab1 AS cor0
----
122
80
89

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7028
SELECT ALL - 13 DIV 9 AS col1 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7028
SELECT ALL - 13 / 9 AS col1 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT - col2 * 11 FROM tab1
----
-1056
-649
-748

onlyif mysql # aggregate syntax: 
query I rowsort label-7030
SELECT - 34 * COUNT( * ) * + 81 FROM tab2
----
-8262

skipif mysql # not compatible
query I rowsort label-7030
SELECT - 34 * COUNT ( * ) * + 81 FROM tab2
----
-8262

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

onlyif mysql # DIV for integer division: 
query II rowsort label-7032
SELECT + col0 * - 41, 33 + + 74 + + - col2 DIV col0 * - col1 + + col0 + - col1 AS col1 FROM tab0
----
-3567
173
-3977
204
-615
284

skipif mysql # not compatible
query II rowsort label-7032
SELECT + col0 * - 41, 33 + + 74 + + - col2 / col0 * - col1 + + col0 + - col1 AS col1 FROM tab0
----
-3567
173
-3977
204
-615
284

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7033
SELECT ALL + + 9 * + 40 AS col2 FROM tab1 WHERE NOT + CAST( NULL AS SIGNED ) - + - col2 < NULL
----

skipif mysql # not compatible
query I rowsort label-7033
SELECT ALL + + 9 * + 40 AS col2 FROM tab1 WHERE NOT + CAST ( NULL AS INTEGER ) - + - col2 < NULL
----

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL < ( 7 + + + 77 )
----

query II rowsort
SELECT ALL + col0 * 26 + + col2 AS col0, + 81 AS col1 FROM tab2 AS cor0
----
1219
81
1704
81
2008
81

query I rowsort
SELECT DISTINCT - + 66 AS col0 FROM tab2 cor0
----
-66

query I rowsort
SELECT ALL 71 * - col2 AS col2 FROM tab1 AS cor0
----
-4189
-4828
-6816

query I rowsort
SELECT - col0 + 68 - + 43 FROM tab0 AS cor0
----
-62
-72
10

query I rowsort
SELECT - + 52 + - - col0 FROM tab2 cor0
----
-6
12
23

query I rowsort
SELECT col2 * 17 * col1 + + + ( - 21 ) FROM tab0
----
1662
3549
64698

onlyif mysql # DIV for integer division: 
query I rowsort label-7042
SELECT 59 DIV - - col0 + - + col2 - - col0 * - + 98 FROM tab1
----
-5093
-8389
-8986

skipif mysql # not compatible
query I rowsort label-7042
SELECT 59 / - - col0 + - + col2 - - col0 * - + 98 FROM tab1
----
-5093
-8389
-8986

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

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

query I rowsort
SELECT DISTINCT col2 * 23 * + 39 FROM tab1
----
52923
60996
86112

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7047
SELECT - col1 - col0 col2, CAST( + col2 AS SIGNED ) + + - 24 FROM tab0 cor0
----
-108
-14
-96
23
-98
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7047
SELECT - col1 - col0 col2, CAST ( + col2 AS INTEGER ) + + - 24 FROM tab0 cor0
----
-108
-14
-96
23
-98
75

onlyif mysql # DIV for integer division: 
query I rowsort label-7048
SELECT ALL 70 DIV col1 FROM tab1
----
1
14
5

skipif mysql # not compatible
query I rowsort label-7048
SELECT ALL 70 / col1 FROM tab1
----
1
14
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7049
SELECT ALL + - MAX( DISTINCT - + col2 ) + - + SUM( ALL - + col2 ) AS col1 FROM tab0 AS cor0
----
166

skipif mysql # not compatible
query I rowsort label-7049
SELECT ALL + - MAX ( DISTINCT - + col2 ) + - + SUM ( ALL - + col2 ) AS col1 FROM tab0 AS cor0
----
166

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - col0 + + 18 col1 FROM tab2 cor0
----
1076
2578
4368

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7052
SELECT ALL - ( + 41 ) * + 12 * - COUNT( * ) AS col0 FROM tab0 AS cor0
----
1476

skipif mysql # not compatible
query I rowsort label-7052
SELECT ALL - ( + 41 ) * + 12 * - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
1476

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7053
SELECT DISTINCT + - 56 * COUNT( * ), CAST( NULL AS SIGNED ) + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-168
NULL

skipif mysql # not compatible
query II rowsort label-7053
SELECT DISTINCT + - 56 * COUNT ( * ), CAST ( NULL AS INTEGER ) + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-168
NULL

query I rowsort
SELECT + - col1 - - col2 + - col0 AS col0 FROM tab0 AS cor0 WHERE NOT + ( - - col0 ) + + 93 IS NULL
----
-49
-98
1

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0, 64 + + + col0 * + col2 col0 FROM tab1
----
51
4960
85
5079
91
6252

query II rowsort
SELECT ALL + + 42, - 55 FROM tab1 WHERE NOT NULL IS NULL
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7060
SELECT + col2 DIV - 38 FROM tab1 AS cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-7060
SELECT + col2 / - 38 FROM tab1 AS cor0
----
-1
-1
-2

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7061
SELECT + + MIN ( DISTINCT + col0 ) col2 FROM tab0 AS cor0
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7062
SELECT DISTINCT 56 DIV - COUNT( * ) FROM tab1, tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-7062
SELECT DISTINCT 56 / - COUNT ( * ) FROM tab1, tab0 AS cor0
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7063
SELECT ALL - 93 AS col0 FROM tab2 WHERE col2 * + ( - 25 ) >= + CAST( + - col2 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-7063
SELECT ALL - 93 AS col0 FROM tab2 WHERE col2 * + ( - 25 ) >= + CAST ( + - col2 AS INTEGER )
----

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

query I rowsort
SELECT DISTINCT + - col2 * + + col0 + - ( - col1 ) * + ( + 24 ) - - ( ( - 88 ) ) AS col2 FROM tab2 AS cor0
----
-2830
-800
78

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

onlyif mysql # DIV for integer division: 
query II rowsort label-7067
SELECT ALL col2 DIV + 10 + + col0 AS col2, col0 FROM tab2
----
48
46
68
64
80
75

skipif mysql # not compatible
query II rowsort label-7067
SELECT ALL col2 / + 10 + + col0 AS col2, col0 FROM tab2
----
48
46
68
64
80
75

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

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

skipif mysql # not compatible
query I rowsort label-7069
SELECT + col2 / 54 FROM tab0
----
0
0
1

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7072
SELECT COUNT( 72 ) + + SUM( ALL - - CAST( - CAST( + - col1 AS SIGNED ) AS SIGNED ) ) AS col1 FROM tab2
----
198

skipif mysql # not compatible
query I rowsort label-7072
SELECT COUNT ( 72 ) + + SUM ( ALL - - CAST ( - CAST ( + - col1 AS INTEGER ) AS INTEGER ) ) AS col1 FROM tab2
----
198

query I rowsort
SELECT 54 + col0 + - + col1 AS col2 FROM tab1 cor0
----
134
91
98

query I rowsort
SELECT DISTINCT + 18 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) <> ( + col2 + col0 + + col2 )
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7076
SELECT - 89, 93 * - - ( - + 97 ) + - col0 * - CAST( - - CAST( + + col2 AS SIGNED ) AS SIGNED ) AS col0 FROM tab0
----
-89
-8151
-89
-8316
-89
582

skipif mysql # not compatible
query II rowsort label-7076
SELECT - 89, 93 * - - ( - + 97 ) + - col0 * - CAST ( - - CAST ( + + col2 AS INTEGER ) AS INTEGER ) AS col0 FROM tab0
----
-89
-8151
-89
-8316
-89
582

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7077
SELECT - ( - COUNT( ALL CAST( NULL AS SIGNED ) ) ) AS col1, ( COUNT( * ) ) AS col0 FROM tab2 WHERE NOT 28 * - + col2 * - 79 / + + 92 < ( NULL )
----
0
0

skipif mysql # not compatible
query II rowsort label-7077
SELECT - ( - COUNT ( ALL CAST ( NULL AS INTEGER ) ) ) AS col1, ( COUNT ( * ) ) AS col0 FROM tab2 WHERE NOT 28 * - + col2 * - 79 / + + 92 < ( NULL )
----
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7078
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL >= CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7078
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL >= CAST ( NULL AS INTEGER )
----

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

query I rowsort
SELECT DISTINCT - - 56 FROM tab2 cor0
----
56

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

query I rowsort
SELECT 96 * + + col1 AS col0 FROM tab0 AS cor0
----
2016
7776
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7083
SELECT ALL CAST( + COUNT( * ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
3

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

query I rowsort
SELECT DISTINCT col1 * + col2 * + 99 AS col1 FROM tab1 AS cor0
----
133056
29205
316404

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7086
SELECT ALL CAST( - col1 AS SIGNED ) AS col2, col0 AS col2 FROM tab2
----
-51
46
-67
75
-77
64

skipif mysql # not compatible
query II rowsort label-7086
SELECT ALL CAST ( - col1 AS INTEGER ) AS col2, col0 AS col2 FROM tab2
----
-51
46
-67
75
-77
64

query I rowsort
SELECT - col0 FROM tab0 WHERE NOT NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7088
SELECT - - MIN( DISTINCT - - col2 ) FROM tab2 cor0
----
23

skipif mysql # not compatible
query I rowsort label-7088
SELECT - - MIN ( DISTINCT - - col2 ) FROM tab2 cor0
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-7089
SELECT + + 7 DIV col2 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7089
SELECT + + 7 / col2 AS col2 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7090
SELECT DISTINCT + SUM( ALL - 46 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-414

skipif mysql # not compatible
query I rowsort label-7090
SELECT DISTINCT + SUM ( ALL - 46 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-414

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7093
SELECT ALL + - SUM( - col2 ) + - MIN( ALL col0 ) AS col1 FROM tab0 AS cor0
----
141

skipif mysql # not compatible
query I rowsort label-7093
SELECT ALL + - SUM ( - col2 ) + - MIN ( ALL col0 ) AS col1 FROM tab0 AS cor0
----
141

query I rowsort
SELECT DISTINCT 55 + col2 AS col0 FROM tab2 cor0
----
113
78
95

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 66 + + col2 + col2 - - 30 + 60 col0 FROM tab2 AS cor0
----
202
236
272

query I rowsort
SELECT ALL - + 38 + col1 AS col2 FROM tab1 AS cor0 WHERE NOT - 21 IS NULL
----
-24
-33
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7098
SELECT DISTINCT + SUM( ALL + + ( - 87 ) ) AS col0 FROM tab2 AS cor0
----
-261

skipif mysql # not compatible
query I rowsort label-7098
SELECT DISTINCT + SUM ( ALL + + ( - 87 ) ) AS col0 FROM tab2 AS cor0
----
-261

query I rowsort
SELECT ALL + - 13 FROM tab0 AS cor0
----
-13
-13
-13

query II rowsort
SELECT col0 AS col2, - 92 * + col1 AS col1 FROM tab1 WHERE ( 57 ) <> - col1
----
51
-1288
85
-460
91
-4324

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7102
SELECT ( - - 7 ) DIV SUM( DISTINCT + col2 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7102
SELECT ( - - 7 ) / SUM ( DISTINCT + col2 ) FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7103
SELECT DISTINCT + COUNT( * ) * 93 AS col2 FROM tab1 WHERE NOT + 78 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7103
SELECT DISTINCT + COUNT ( * ) * 93 AS col2 FROM tab1 WHERE NOT + 78 IS NOT NULL
----
0

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

query I rowsort
SELECT ALL - - col0 + - 75 AS col0 FROM tab1 AS cor0 WHERE NOT NULL < 87
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7106
SELECT DISTINCT + col0 DIV - - col0 - col0 FROM tab2 AS cor0
----
-45
-63
-74

skipif mysql # not compatible
query I rowsort label-7106
SELECT DISTINCT + col0 / - - col0 - col0 FROM tab2 AS cor0
----
-45
-63
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-7107
SELECT + SUM( + - 19 ) AS col1 FROM tab1, tab1 AS cor0
----
-171

skipif mysql # not compatible
query I rowsort label-7107
SELECT + SUM ( + - 19 ) AS col1 FROM tab1, tab1 AS cor0
----
-171

onlyif mysql # aggregate syntax: 
query I rowsort label-7108
SELECT DISTINCT + SUM( DISTINCT + - col0 ) FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-7108
SELECT DISTINCT + SUM ( DISTINCT + - col0 ) FROM tab2
----
-185

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7109
SELECT * FROM tab0 WHERE NOT ( NOT + ( - CAST( NULL AS SIGNED ) ) / + col2 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7109
SELECT * FROM tab0 WHERE NOT ( NOT + ( - CAST ( NULL AS INTEGER ) ) / + col2 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query I rowsort
SELECT - col2 * 12 AS col0 FROM tab1 AS cor0
----
-1152
-708
-816

onlyif mysql # aggregate syntax: 
query I rowsort label-7112
SELECT COUNT( * ) AS col1 FROM tab1 cor0 WHERE NOT 61 * - col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7112
SELECT COUNT ( * ) AS col1 FROM tab1 cor0 WHERE NOT 61 * - col1 IS NOT NULL
----
0

query I rowsort
SELECT ALL + + 29 AS col2 FROM tab0 AS cor0
----
29
29
29

query I rowsort
SELECT col2 * + + 14 + ( + col2 ) FROM tab2 AS cor0
----
345
600
870

query II rowsort
SELECT - col2 * + - 7 + col2 AS col1, col0 * - col2 FROM tab0 WHERE NOT col1 >= 1
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7117
SELECT ALL + COUNT( ALL + col0 ) * - 17 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-7117
SELECT ALL + COUNT ( ALL + col0 ) * - 17 FROM tab2
----
-51

query I rowsort
SELECT - col0 FROM tab1 WHERE NOT NULL <= - col0 + ( - col0 )
----

query I rowsort
SELECT col1 * - col0 * 95 AS col2 FROM tab1
----
-40375
-406315
-67830

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7120
SELECT ALL 65 DIV - 88 + 70 + + 96 + + - 2 + + 96 + + COUNT( * ) AS col1 FROM tab0
----
263

skipif mysql # not compatible
query I rowsort label-7120
SELECT ALL 65 / - 88 + 70 + + 96 + + - 2 + + 96 + + COUNT ( * ) AS col1 FROM tab0
----
263

onlyif mysql # aggregate syntax: 
query I rowsort label-7121
SELECT SUM( DISTINCT + - 83 ) AS col2 FROM tab2
----
-83

skipif mysql # not compatible
query I rowsort label-7121
SELECT SUM ( DISTINCT + - 83 ) AS col2 FROM tab2
----
-83

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

query II rowsort
SELECT + col0 AS col1, col1 + + col1 + - col2 - 79 FROM tab0 AS cor0
----
15
36
87
-47
97
-176

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

query I rowsort
SELECT + + col2 * - - col1 * - + col1 AS col0 FROM tab1 AS cor0
----
-1475
-150212
-18816

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

query II rowsort
SELECT ALL + - 61 * + + 62 AS col1, col0 AS col1 FROM tab2 AS cor0
----
-3782
46
-3782
64
-3782
75

query I rowsort
SELECT col0 * col1 + - - 60 FROM tab1
----
4337
485
774

query I rowsort
SELECT DISTINCT - col2 * + col2 + + col0 + + - col1 * - 57 + + 73 FROM tab2
----
2497
2926
603

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7130
SELECT + CAST( - - col2 AS SIGNED ), col0 * 2 AS col2 FROM tab2 AS cor0
----
23
92
40
128
58
150

skipif mysql # not compatible
query II rowsort label-7130
SELECT + CAST ( - - col2 AS INTEGER ), col0 * 2 AS col2 FROM tab2 AS cor0
----
23
92
40
128
58
150

query II rowsort
SELECT ALL + ( + - 30 ) + + + 49, + col0 FROM tab0 AS cor0
----
19
15
19
87
19
97

query I rowsort
SELECT DISTINCT + col2 * - col1 + ( col0 ) AS col1 FROM tab1 AS cor0
----
-1293
-210
-3105

query I rowsort
SELECT ( - + 46 ) * + + col1 AS col2 FROM tab1 AS cor0
----
-2162
-230
-644

query I rowsort
SELECT - 74 AS col1 FROM tab0 AS cor0 WHERE col2 + col1 * ( - col2 ) > NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7135
SELECT DISTINCT - MAX( DISTINCT - 36 ), - 5 AS col1 FROM tab1 AS cor0
----
36
-5

skipif mysql # not compatible
query II rowsort label-7135
SELECT DISTINCT - MAX ( DISTINCT - 36 ), - 5 AS col1 FROM tab1 AS cor0
----
36
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + 41 ) - col1 col0 FROM tab1 cor0
----
-6
27
36

query I rowsort
SELECT - col1 * - 91 - ( - + 82 ) FROM tab1
----
1356
4359
537

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - + + col0 col1 FROM tab2
----
-141
-142
-97

query I rowsort
SELECT DISTINCT col1 * - + col2 + + col0 AS col2 FROM tab1
----
-1293
-210
-3105

query I rowsort
SELECT - col2 + - 27 * 14 * 83 FROM tab1
----
-31433
-31442
-31470

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 / 20 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col2 / - 3 AS col1 FROM tab2 WHERE ( NOT NULL IS NULL )
----

query I rowsort
SELECT ALL - col0 * - + 68 + - - 78 AS col2 FROM tab0
----
1098
5994
6674

query IIIIII rowsort
SELECT * FROM tab1, tab1 cor0 WHERE NULL IS NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

query I rowsort
SELECT + col2 * + col0 * col1 + + col1 AS col1 FROM tab2
----
197197
291517
54009

query II rowsort
SELECT DISTINCT + 96, col2 + + - ( col2 ) AS col2 FROM tab1
----
96
0

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

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

query I rowsort
SELECT ALL - + 59 AS col2 FROM tab0 cor0
----
-59
-59
-59

query III rowsort
SELECT * FROM tab2 WHERE NOT - 40 * col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7150
SELECT ALL + col0 + - col0 AS col0 FROM tab1 WHERE 6 * + CAST( NULL AS SIGNED ) BETWEEN ( - 96 ) AND 33 * col1
----

skipif mysql # not compatible
query I rowsort label-7150
SELECT ALL + col0 + - col0 AS col0 FROM tab1 WHERE 6 * + CAST ( NULL AS INTEGER ) BETWEEN ( - 96 ) AND 33 * col1
----

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

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

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

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

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

query I rowsort
SELECT + 65 + 35 FROM tab2 WHERE NOT ( + col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7156
SELECT ALL - COUNT( * ) + COUNT( DISTINCT - col0 + 11 * - 97 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7156
SELECT ALL - COUNT ( * ) + COUNT ( DISTINCT - col0 + 11 * - 97 ) FROM tab0
----
0

query I rowsort
SELECT col2 * - col2 + - 81 * + col2 AS col0 FROM tab0
----
-17820
-6016
-910

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

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

query I rowsort
SELECT + col2 * col0 + + 64 * 28 FROM tab1 WHERE NULL < NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7160
SELECT * FROM tab2 WHERE NOT + 38 + CAST( NULL AS DECIMAL ) > ( + col0 )
----

skipif mysql # not compatible
query III rowsort label-7160
SELECT * FROM tab2 WHERE NOT + 38 + CAST ( NULL AS REAL ) > ( + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - 37 col2 FROM tab2
----
14
30
40

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7163
SELECT DISTINCT 39 AS col2 FROM tab2 WHERE NOT CAST( NULL AS SIGNED ) BETWEEN ( - 6 + col2 ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-7163
SELECT DISTINCT 39 AS col2 FROM tab2 WHERE NOT CAST ( NULL AS INTEGER ) BETWEEN ( - 6 + col2 ) AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7164
SELECT col2 DIV col1 + 55 * + 32 AS col2 FROM tab2
----
1760
1760
1760

skipif mysql # not compatible
query I rowsort label-7164
SELECT col2 / col1 + 55 * + 32 AS col2 FROM tab2
----
1760
1760
1760

onlyif mysql # aggregate syntax: 
query I rowsort label-7165
SELECT MIN( - 83 ) * - COUNT( * ) FROM tab1
----
249

skipif mysql # not compatible
query I rowsort label-7165
SELECT MIN ( - 83 ) * - COUNT ( * ) FROM tab1
----
249

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7166
SELECT MAX( - col1 ) DIV COUNT( * ) + + ( + COUNT( * ) ) FROM tab0 WHERE + col0 >= - col1 * + col0
----
3

skipif mysql # not compatible
query I rowsort label-7166
SELECT MAX ( - col1 ) / COUNT ( * ) + + ( + COUNT ( * ) ) FROM tab0 WHERE + col0 >= - col1 * + col0
----
3

query I rowsort
SELECT DISTINCT - col1 - 45 FROM tab1
----
-50
-59
-92

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 > ( col2 )
----
85
5
59
91
47
68

onlyif mysql # aggregate syntax: 
query I rowsort label-7169
SELECT COUNT( * ) - 83 FROM tab1
----
-80

skipif mysql # not compatible
query I rowsort label-7169
SELECT COUNT ( * ) - 83 FROM tab1
----
-80

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

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

query I rowsort
SELECT ALL - col2 * - 26 FROM tab0 AS cor0
----
1222
2574
260

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7172
SELECT + CAST( 71 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
71
71
71

skipif mysql # not compatible
query I rowsort label-7172
SELECT + CAST ( 71 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
71
71
71

query I rowsort
SELECT ALL + 35 FROM tab2 AS cor0 WHERE NOT 88 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL IN ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7175
SELECT MAX( - col2 ) FROM tab2 cor0 WHERE ( NULL ) BETWEEN + col2 * 45 + - 72 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7175
SELECT MAX ( - col2 ) FROM tab2 cor0 WHERE ( NULL ) BETWEEN + col2 * 45 + - 72 AND NULL
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 / 48 - col0 >= ( - 35 )
----
15
81
47

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7179
SELECT - SUM( - col2 ) DIV 12 FROM tab2
----
10

skipif mysql # not compatible
query I rowsort label-7179
SELECT - SUM ( - col2 ) / 12 FROM tab2
----
10

query I rowsort
SELECT DISTINCT - 92 * - 90 AS col0 FROM tab1
----
8280

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7182
SELECT col0 DIV + col2 + col2 * + 5 FROM tab0 AS cor0
----
235
495
58

skipif mysql # not compatible
query I rowsort label-7182
SELECT col0 / + col2 + col2 * + 5 FROM tab0 AS cor0
----
235
495
58

query I rowsort
SELECT col2 + - 71 AS col0 FROM tab2 AS cor0
----
-13
-31
-48

query I rowsort
SELECT DISTINCT col1 * - col1 FROM tab0 AS cor0 WHERE NOT + col0 * col0 - col1 BETWEEN NULL AND ( 20 )
----
-1
-441
-6561

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7185
SELECT - 46 AS col2 FROM tab1 cor0 WHERE col0 - - col1 * - col0 < ( CAST( 2 AS SIGNED ) + + col0 )
----
-46
-46
-46

skipif mysql # not compatible
query I rowsort label-7185
SELECT - 46 AS col2 FROM tab1 cor0 WHERE col0 - - col1 * - col0 < ( CAST ( 2 AS INTEGER ) + + col0 )
----
-46
-46
-46

query I rowsort
SELECT + + 48 + col2 AS col1 FROM tab2 AS cor0
----
106
71
88

query I rowsort
SELECT + - col2 + - 52 AS col1 FROM tab1 AS cor0
----
-111
-120
-148

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 84 NOT BETWEEN + col2 * - col1 AND ( 38 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7190
SELECT * FROM tab2 AS cor0 WHERE 10 - col1 BETWEEN CAST( + col0 AS DECIMAL ) AND - col1 / + col0
----

skipif mysql # not compatible
query III rowsort label-7190
SELECT * FROM tab2 AS cor0 WHERE 10 - col1 BETWEEN CAST ( + col0 AS REAL ) AND - col1 / + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7191
SELECT 29 + - col0 DIV col1 FROM tab1 AS cor0
----
12
26
28

skipif mysql # not compatible
query I rowsort label-7191
SELECT 29 + - col0 / col1 FROM tab1 AS cor0
----
12
26
28

query I rowsort
SELECT DISTINCT + 71 FROM tab1 AS cor0 WHERE NOT 24 IN ( - col2 )
----
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 42 col2 FROM tab1
----
42
42
42

onlyif mysql # aggregate syntax: 
query I rowsort label-7194
SELECT - COUNT( * ) * 34 col1 FROM tab2 WHERE + 34 IS NOT NULL
----
-102

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7194
SELECT - COUNT ( * ) * 34 col1 FROM tab2 WHERE + 34 IS NOT NULL
----
-102

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

query I rowsort
SELECT DISTINCT col2 + - col2 + + 72 FROM tab1
----
72

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7197
SELECT MIN ( DISTINCT + col2 ) col0 FROM tab0
----
10

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

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

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

query I rowsort
SELECT col0 + col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
108
96
98

query III rowsort
SELECT * FROM tab2 WHERE NOT + ( - col0 ) < + col2
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7203
SELECT - MAX( - col1 ) * + 64 AS col0 FROM tab0 AS cor0
----
64

skipif mysql # not compatible
query I rowsort label-7203
SELECT - MAX ( - col1 ) * + 64 AS col0 FROM tab0 AS cor0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-7204
SELECT ALL + COUNT( * ) FROM tab0 AS cor0 WHERE 70 BETWEEN col0 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-7204
SELECT ALL + COUNT ( * ) FROM tab0 AS cor0 WHERE 70 BETWEEN col0 AND NULL
----
0

query I rowsort
SELECT - col2 FROM tab0 WHERE NOT - - 74 BETWEEN ( NULL ) AND col1
----
-10
-99

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL = - 1 * - 71
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7207
SELECT ALL - COUNT( * ) + - 21 + COUNT( * ) AS col1 FROM tab0, tab0 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-7207
SELECT ALL - COUNT ( * ) + - 21 + COUNT ( * ) AS col1 FROM tab0, tab0 AS cor0
----
-21

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7211
SELECT + CAST( - col2 AS SIGNED ) * - col2 - - col0 FROM tab2 AS cor0
----
1664
3439
575

skipif mysql # not compatible
query I rowsort label-7211
SELECT + CAST ( - col2 AS INTEGER ) * - col2 - - col0 FROM tab2 AS cor0
----
1664
3439
575

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7215
SELECT - COUNT( * ) * CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NOT ( + col1 ) IS NULL
----
NULL

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE - - col0 - + 76 + 72 * + col0 >= NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7218
SELECT ALL - 74 DIV COUNT( * ) + + - 61 FROM tab1
----
-85

skipif mysql # not compatible
query I rowsort label-7218
SELECT ALL - 74 / COUNT ( * ) + + - 61 FROM tab1
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-7219
SELECT + MIN( + 48 ) AS col2 FROM tab0
----
48

skipif mysql # not compatible
query I rowsort label-7219
SELECT + MIN ( + 48 ) AS col2 FROM tab0
----
48

query III rowsort
SELECT ALL * FROM tab1 WHERE - 68 IN ( - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - ( - + col1 ) col2, + col1 + + - 70 AS col2 FROM tab0
----
1
-69
21
-49
81
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7222
SELECT DISTINCT + MAX( + col0 ) * + - COUNT( * ) + + CAST( - 27 AS SIGNED ) DIV COUNT( * ) AS col2 FROM tab0
----
-300

skipif mysql # not compatible
query I rowsort label-7222
SELECT DISTINCT + MAX ( + col0 ) * + - COUNT ( * ) + + CAST ( - 27 AS INTEGER ) / COUNT ( * ) AS col2 FROM tab0
----
-300

query I rowsort
SELECT + - col2 * + + col0 * + col0 + + col0 * col1 FROM tab2 AS cor0
----
-158912
-321225
-46322

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 25 * - col0 col1 FROM tab0 AS cor0
----
2175
2425
375

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

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

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

query I rowsort
SELECT + 90 * 6 AS col1 FROM tab2 WHERE col2 / 31 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - 12 > - col1
----
51
14
96
91
47
68

query I rowsort
SELECT ALL - 52 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 9500afe5646d620d5e8943351a29d082

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7230
SELECT - - 49 AS col2, - CAST( + 6 AS SIGNED ) FROM tab2 AS cor0
----
49
-6
49
-6
49
-6

skipif mysql # not compatible
query II rowsort label-7230
SELECT - - 49 AS col2, - CAST ( + 6 AS INTEGER ) FROM tab2 AS cor0
----
49
-6
49
-6
49
-6

query I rowsort
SELECT DISTINCT col2 * + 6 + - col0 + + + 53 + - col0 FROM tab0 AS cor0
----
-61
305
453

query I rowsort
SELECT DISTINCT + 45 + - col2 AS col2 FROM tab2 AS cor0
----
-13
22
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7233
SELECT + 14 + - + CAST( col1 AS SIGNED ) + + 16 * col0 AS col2 FROM tab1 AS cor0 WHERE + col0 <= + col0
----
1369
1423
816

skipif mysql # not compatible
query I rowsort label-7233
SELECT + 14 + - + CAST ( col1 AS INTEGER ) + + 16 * col0 AS col2 FROM tab1 AS cor0 WHERE + col0 <= + col0
----
1369
1423
816

onlyif mysql # aggregate syntax: 
query I rowsort label-7234
SELECT DISTINCT + - ( - COUNT( - - 40 ) ) + - - COUNT( DISTINCT - + 42 ) + 97 FROM tab0 AS cor0
----
101

skipif mysql # not compatible
query I rowsort label-7234
SELECT DISTINCT + - ( - COUNT ( - - 40 ) ) + - - COUNT ( DISTINCT - + 42 ) + 97 FROM tab0 AS cor0
----
101

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

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

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

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

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

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

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

query I rowsort
SELECT ALL - 25 FROM tab2, tab2 AS cor0
----
9 values hashing to 40ac8fd000b2e49317aed2411077839e

query I rowsort
SELECT ALL 49 - - - col0 FROM tab2
----
-15
-26
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col2, - col0 AS col2 FROM tab0
----
15
-15
87
-87
97
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - + 28 col2 FROM tab2
----
-1288
-1792
-2100

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 70 col2, + 61 * + col0 AS col1 FROM tab1
----
70
3111
70
5185
70
5551

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT ( NOT ( NOT 59 IS NOT NULL ) ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7247
SELECT DISTINCT * FROM tab2 WHERE NOT NULL BETWEEN + 83 AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7247
SELECT DISTINCT * FROM tab2 WHERE NOT NULL BETWEEN + 83 AND CAST ( NULL AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7248
SELECT ALL - col0 DIV + - col2 FROM tab0 AS cor0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-7248
SELECT ALL - col0 / + - col2 FROM tab0 AS cor0
----
0
0
8

query I rowsort
SELECT DISTINCT + 80 * + - col1 AS col2 FROM tab1 AS cor0
----
-1120
-3760
-400

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 col1, + 75 FROM tab1 AS cor0
----
59
75
68
75
96
75

query II rowsort
SELECT DISTINCT - col2 * + - 61 AS col0, - ( + col1 ) AS col0 FROM tab1
----
3599
-5
4148
-47
5856
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7254
SELECT - col1 FROM tab0 WHERE NOT - - col0 < - - CAST( NULL AS SIGNED ) + - 15
----

skipif mysql # not compatible
query I rowsort label-7254
SELECT - col1 FROM tab0 WHERE NOT - - col0 < - - CAST ( NULL AS INTEGER ) + - 15
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7255
SELECT DISTINCT COUNT( * ) + - - 34 * + 70 + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
2380

skipif mysql # not compatible
query I rowsort label-7255
SELECT DISTINCT COUNT ( * ) + - - 34 * + 70 + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
2380

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7258
SELECT col2 DIV col1 DIV 2 + + 63 FROM tab2 AS cor0
----
63
63
63

skipif mysql # not compatible
query I rowsort label-7258
SELECT col2 / col1 / 2 + + 63 FROM tab2 AS cor0
----
63
63
63

query I rowsort
SELECT 84 + + + 19 FROM tab0
----
103
103
103

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

query I rowsort
SELECT DISTINCT + + 40 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7262
SELECT col2 + col2 DIV - ( - - col1 ) FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-7262
SELECT col2 + col2 / - ( - - col1 ) FROM tab2
----
23
40
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 58 * - col0 + col1 col1 FROM tab0
----
5067
5627
951

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col2 >= - - 55
----

query I rowsort
SELECT ALL 5 + - ( + 19 ) FROM tab0 AS cor0
----
-14
-14
-14

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE NULL <= + col2 + - col0 + + col1 + col0 * + 50 / + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1, + 45 + + 97 col2 FROM tab0 AS cor0
----
-1
142
-21
142
-81
142

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7269
SELECT DISTINCT + COUNT( * ) + + 48 AS col2 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-7269
SELECT DISTINCT + COUNT ( * ) + + 48 AS col2 FROM tab2 AS cor0
----
51

query I rowsort
SELECT ALL + col2 * - col0 + - - 71 AS col0 FROM tab1 AS cor0
----
-4825
-4944
-6117

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col0, + col2 AS col2 FROM tab0 AS cor0
----
15
47
87
10
97
99

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col0 BETWEEN - 75 + + 11 AND - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 95 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
95

query I rowsort
SELECT DISTINCT 15 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
15

query I rowsort
SELECT + 64 FROM tab1 AS cor0 WHERE ( 24 ) IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7276
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - CAST( - col0 AS DECIMAL ) * 43 + + - 4 / ( col0 ) * 2 + 65 + 61 BETWEEN col1 AND + col1 / col0
----

skipif mysql # not compatible
query III rowsort label-7276
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - CAST ( - col0 AS REAL ) * 43 + + - 4 / ( col0 ) * 2 + 65 + 61 BETWEEN col1 AND + col1 / col0
----

query I rowsort
SELECT DISTINCT 37 + 99 + col2 FROM tab2 AS cor0
----
159
176
194

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7278
SELECT ALL + CAST( - 22 AS SIGNED ), + col2 * - - col0 - + 64 AS col2 FROM tab2 AS cor0
----
-22
2496
-22
4286
-22
994

skipif mysql # not compatible
query II rowsort label-7278
SELECT ALL + CAST ( - 22 AS INTEGER ), + col2 * - - col0 - + 64 AS col2 FROM tab2 AS cor0
----
-22
2496
-22
4286
-22
994

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7280
SELECT ALL col1 * + CAST( + col2 AS SIGNED ) * + 24 FROM tab2
----
28152
73920
93264

skipif mysql # not compatible
query I rowsort label-7280
SELECT ALL col1 * + CAST ( + col2 AS INTEGER ) * + 24 FROM tab2
----
28152
73920
93264

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7282
SELECT ALL + + 44 - - + MIN( DISTINCT - - col0 ) AS col1 FROM tab2 WHERE NOT - CAST( col2 AS SIGNED ) * col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7282
SELECT ALL + + 44 - - + MIN ( DISTINCT - - col0 ) AS col1 FROM tab2 WHERE NOT - CAST ( col2 AS INTEGER ) * col2 IS NOT NULL
----
NULL

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

query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( - 0, col1 * + col1 + + col2 ) AND + 88 = NULL
----

query I rowsort
SELECT 63 AS col2 FROM tab1 WHERE NOT + + col0 + col2 BETWEEN NULL AND ( - - col1 )
----
63
63
63

onlyif mysql # DIV for integer division: 
query I rowsort label-7286
SELECT 16 DIV - - 36 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7286
SELECT 16 / - - 36 FROM tab2
----
0
0
0

query I rowsort
SELECT col2 FROM tab2 WHERE NOT ( NULL ) <> ( NULL )
----

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

query I rowsort
SELECT ( + col2 ) * + + col2 AS col1 FROM tab0
----
100
2209
9801

query I rowsort
SELECT DISTINCT - 3 * + 63 FROM tab2 AS cor0
----
-189

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

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

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

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

query I rowsort
SELECT - ( - 94 ) + - + 80 AS col0 FROM tab1
----
14
14
14

onlyif mysql # DIV for integer division: 
query I rowsort label-7295
SELECT ALL col1 + - - col1 DIV - - 93 * + ( + 46 ) AS col0 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-7295
SELECT ALL col1 + - - col1 / - - 93 * + ( + 46 ) AS col0 FROM tab1 AS cor0
----
14
47
5

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

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

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

query I rowsort
SELECT - col2 * - - ( ( + - col0 ) ) + + col1 * 37 FROM tab1 AS cor0
----
5200
5414
7927

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7300
SELECT DISTINCT - CAST( MIN( 1 ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7300
SELECT DISTINCT - CAST ( MIN ( 1 ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-1

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

query I rowsort
SELECT 56 + + - 36 AS col0 FROM tab0
----
20
20
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 * - col2 + + col1 AS col2, col1 col2 FROM tab2
----
-1122
51
-3003
77
-3819
67

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - col1 * + + 59 * + 53 ) IS NULL
----

query I rowsort
SELECT DISTINCT + col2 * col0 - col0 + + 36 FROM tab2 cor0
----
1048
2532
4311

query I rowsort
SELECT + col1 * - 50 AS col1 FROM tab2
----
-2550
-3350
-3850

query II rowsort
SELECT + col0 - - col0 + + col0, 56 AS col1 FROM tab0
----
261
56
291
56
45
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7309
SELECT DISTINCT CAST( + + AVG ( ALL - col0 ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-7309
SELECT DISTINCT CAST ( + + AVG ( ALL - col0 ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-66

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7311
SELECT MAX( + 39 ) FROM tab1
----
39

skipif mysql # not compatible
query I rowsort label-7311
SELECT MAX ( + 39 ) FROM tab1
----
39

query I rowsort
SELECT - col2 * + + col0 * - col1 AS col2 FROM tab0
----
18270
57105
9603

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

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

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

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

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

query I rowsort
SELECT - 37 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ed4644af7729c2425ea6cc3d84c6504f

query I rowsort
SELECT DISTINCT col1 * - - col0 * col0 AS col1 FROM tab1
----
36125
36414
389207

query I rowsort
SELECT DISTINCT - - col1 AS col2 FROM tab2 AS cor0 WHERE NOT 98 NOT IN ( 64 + - 71 * + - 19 ) OR NOT - 89 - - + col2 IS NULL
----
51
67
77

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - + col1 * + + 82 * - col1 col0 FROM tab1 AS cor0
----
16021
181047
1965

query II rowsort
SELECT ( + - col0 ) + + + col2 AS col1, col2 AS col2 FROM tab2 AS cor0
----
-17
58
-23
23
-24
40

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

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

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

query I rowsort
SELECT DISTINCT + col2 * + 10 AS col0 FROM tab0
----
100
470
990

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7325
SELECT ALL 60 * - CAST( - - col0 AS SIGNED ) FROM tab2
----
-2760
-3840
-4500

skipif mysql # not compatible
query I rowsort label-7325
SELECT ALL 60 * - CAST ( - - col0 AS INTEGER ) FROM tab2
----
-2760
-3840
-4500

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

query I rowsort
SELECT - 33 FROM tab1 WHERE NULL IS NULL
----
-33
-33
-33

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

query I rowsort
SELECT DISTINCT 38 + - col2 AS col2 FROM tab2 AS cor0
----
-2
-20
15

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7332
SELECT - - COUNT( * ) - SUM( DISTINCT 82 ) FROM tab0 AS cor0
----
-79

skipif mysql # not compatible
query I rowsort label-7332
SELECT - - COUNT ( * ) - SUM ( DISTINCT 82 ) FROM tab0 AS cor0
----
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - col1 - - col0 col0 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT + 27 - - + 8 + - col0 FROM tab0 cor0
----
-52
-62
20

query I rowsort
SELECT - 32 - + 84 AS col1 FROM tab0 AS cor0
----
-116
-116
-116

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7336
SELECT - 12 * + COUNT( * ) DIV + 99 + 43 col2 FROM tab0
----
43

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7336
SELECT - 12 * + COUNT ( * ) / + 99 + 43 col2 FROM tab0
----
43

query I rowsort
SELECT ALL + col0 - + + col1 + col1 * col2 + col1 AS col0 FROM tab1
----
1395
3287
380

onlyif mysql # aggregate syntax: 
query I rowsort label-7338
SELECT COUNT( * ) + + COUNT( DISTINCT 17 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
10

skipif mysql # not compatible
query I rowsort label-7338
SELECT COUNT ( * ) + + COUNT ( DISTINCT 17 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
10

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

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

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

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

query II rowsort
SELECT DISTINCT + 90 AS col0, 6 FROM tab0
----
90
6

onlyif mysql # aggregate syntax: 
query II rowsort label-7343
SELECT - COUNT( ALL ( - + col1 ) ) col2, - 42 col2 FROM tab2 AS cor0
----
-3
-42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7343
SELECT - COUNT ( ALL ( - + col1 ) ) col2, - 42 col2 FROM tab2 AS cor0
----
-3
-42

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 BETWEEN NULL AND - + col1
----
15
81
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - col1 col1, col1 + - col2 AS col0 FROM tab0 AS cor0
----
-1
-98
-21
11
-81
34

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 49 < + + 27
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7348
SELECT ALL COUNT( * ) + 86 col0 FROM tab1
----
89

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

query I rowsort
SELECT DISTINCT - col0 FROM tab0 WHERE + 77 NOT BETWEEN 37 AND NULL
----

query I rowsort
SELECT ALL + col1 + col1 * col1 AS col0 FROM tab2 AS cor0
----
2652
4556
6006

query I rowsort
SELECT ALL - + 92 + - 85 * - col1 AS col2 FROM tab2 AS cor0
----
4243
5603
6453

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

query I rowsort
SELECT DISTINCT - col2 FROM tab2 WHERE + col2 * col0 + col2 = - + col1
----

query I rowsort
SELECT DISTINCT col2 * - + 56 AS col0 FROM tab2
----
-1288
-2240
-3248

query I rowsort
SELECT ALL 90 * + + col0 FROM tab1
----
4590
7650
8190

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7356
SELECT DISTINCT MIN( - 83 ) DIV - CAST( 54 AS SIGNED ) + COUNT( * ) FROM tab0
----
4

skipif mysql # not compatible
query I rowsort label-7356
SELECT DISTINCT MIN ( - 83 ) / - CAST ( 54 AS INTEGER ) + COUNT ( * ) FROM tab0
----
4

query I rowsort
SELECT 28 * + + col2 * - col2 + - col1 AS col0 FROM tab1
----
-129519
-258062
-97473

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

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

query I rowsort
SELECT ALL col0 AS col1 FROM tab1 WHERE col1 BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL < col2 * 30 * ( + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 + - 6 * - - col0 col2 FROM tab0 AS cor0
----
-501
-581
-9

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7363
SELECT ALL + MIN( - + col2 ) + + + COUNT( + - col1 ) AS col0 FROM tab1 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-7363
SELECT ALL + MIN ( - + col2 ) + + + COUNT ( + - col1 ) AS col0 FROM tab1 AS cor0
----
-93

query II rowsort
SELECT col0, - col0 FROM tab1
----
51
-51
85
-85
91
-91

query I rowsort
SELECT ( - 70 ) * - + col0 AS col0 FROM tab1
----
3570
5950
6370

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7366
SELECT - COUNT( - - CAST( NULL AS SIGNED ) ) - - - ( COUNT( * ) ) + + 19 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
10

skipif mysql # not compatible
query I rowsort label-7366
SELECT - COUNT ( - - CAST ( NULL AS INTEGER ) ) - - - ( COUNT ( * ) ) + + 19 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
10

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 62 / col2 = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7368
SELECT DISTINCT + + CAST( + - SUM( ALL - - col0 ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-7368
SELECT DISTINCT + + CAST ( + - SUM ( ALL - - col0 ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-227

onlyif mysql # aggregate syntax: 
query I rowsort label-7369
SELECT COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL >= - col1
----
0

skipif mysql # not compatible
query I rowsort label-7369
SELECT COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL >= - col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7370
SELECT - - COUNT( * ) DIV MIN( - - col1 ) col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7370
SELECT - - COUNT ( * ) / MIN ( - - col1 ) col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL + - col0 * ( - col0 ) * col2 + - col0 AS col2 FROM tab2 cor0
----
163776
326175
48622

onlyif mysql # aggregate syntax: 
query II rowsort label-7372
SELECT ALL - + MAX( - col1 ) AS col1, 87 AS col1 FROM tab2 WHERE - col0 = + - col1 * - + col0
----
NULL
87

skipif mysql # not compatible
query II rowsort label-7372
SELECT ALL - + MAX ( - col1 ) AS col1, 87 AS col1 FROM tab2 WHERE - col0 = + - col1 * - + col0
----
NULL
87

onlyif mysql # aggregate syntax: 
query I rowsort label-7373
SELECT - 96 + - - COUNT( * ) AS col0 FROM tab1
----
-93

skipif mysql # not compatible
query I rowsort label-7373
SELECT - 96 + - - COUNT ( * ) AS col0 FROM tab1
----
-93

query I rowsort
SELECT - col1 + + - 56 * - col0 FROM tab1
----
2842
4755
5049

query I rowsort
SELECT + col1 + + + ( - col2 ) * + + 19 + - + col0 AS col1 FROM tab1
----
-1201
-1336
-1861

query I rowsort
SELECT ALL + col2 - 10 FROM tab0 WHERE NULL <> + col1
----

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7380
SELECT ALL 66 + COUNT( * ) FROM tab2
----
69

skipif mysql # not compatible
query I rowsort label-7380
SELECT ALL 66 + COUNT ( * ) FROM tab2
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-7381
SELECT DISTINCT COUNT( ALL + col1 ) * 47 * + ( + - COUNT( + 89 ) ) + + COUNT( * ) AS col1 FROM tab2 cor0
----
-420

skipif mysql # not compatible
query I rowsort label-7381
SELECT DISTINCT COUNT ( ALL + col1 ) * 47 * + ( + - COUNT ( + 89 ) ) + + COUNT ( * ) AS col1 FROM tab2 cor0
----
-420

onlyif mysql # aggregate syntax: 
query I rowsort label-7382
SELECT + - COUNT( * ) + - + 96 FROM tab1 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-7382
SELECT + - COUNT ( * ) + - + 96 FROM tab1 AS cor0
----
-99

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

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

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

query II rowsort
SELECT ALL + 14 AS col2, 20 + + 0 AS col2 FROM tab0 AS cor0
----
14
20
14
20
14
20

onlyif mysql # DIV for integer division: 
query I rowsort label-7386
SELECT - + col0 + + col0 DIV - - col2 FROM tab0 AS cor0
----
-15
-79
-97

skipif mysql # not compatible
query I rowsort label-7386
SELECT - + col0 + + col0 / - - col2 FROM tab0 AS cor0
----
-15
-79
-97

query I rowsort
SELECT - col1 * + col1 * + + 0 FROM tab1
----
0
0
0

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 5 NOT BETWEEN NULL AND - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7390
SELECT + 49 / + col1 + - CAST( NULL AS SIGNED ) FROM tab0 WHERE - - col2 * + - col1 / col1 * - col1 + + col2 * + + 16 = NULL
----

skipif mysql # not compatible
query I rowsort label-7390
SELECT + 49 / + col1 + - CAST ( NULL AS INTEGER ) FROM tab0 WHERE - - col2 * + - col1 / col1 * - col1 + + col2 * + + 16 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7391
SELECT SUM( 91 ) - 5 FROM tab2 AS cor0
----
268

skipif mysql # not compatible
query I rowsort label-7391
SELECT SUM ( 91 ) - 5 FROM tab2 AS cor0
----
268

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

query I rowsort
SELECT + 50 * - col1 AS col0 FROM tab2 AS cor0
----
-2550
-3350
-3850

onlyif mysql # DIV for integer division: 
query I rowsort label-7394
SELECT ALL - 49 * col1 DIV - col2 FROM tab2 AS cor0
----
108
56
94

skipif mysql # not compatible
query I rowsort label-7394
SELECT ALL - 49 * col1 / - col2 FROM tab2 AS cor0
----
108
56
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7395
SELECT DISTINCT 57 * - - CAST( + + COUNT( DISTINCT 94 ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-7395
SELECT DISTINCT 57 * - - CAST ( + + COUNT ( DISTINCT 94 ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
57

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

skipif mysql # not compatible
query I rowsort label-7396
SELECT - MIN ( col1 ) AS col2 FROM tab0 AS cor0
----
-1

query II rowsort
SELECT ALL 52, col1 FROM tab0
----
52
1
52
21
52
81

onlyif mysql # aggregate syntax: 
query II rowsort label-7398
SELECT ALL + SUM( + col2 ), + 15 * + COUNT( * ) AS col2 FROM tab1
----
223
45

skipif mysql # not compatible
query II rowsort label-7398
SELECT ALL + SUM ( + col2 ), + 15 * + COUNT ( * ) AS col2 FROM tab1
----
223
45

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7400
SELECT ALL COUNT( * ) * + + 2 + - COUNT( * ) * - 4 AS col2, CAST( NULL AS DECIMAL ) * 96 FROM tab2
----
18
NULL

skipif mysql # not compatible
query II rowsort label-7400
SELECT ALL COUNT ( * ) * + + 2 + - COUNT ( * ) * - 4 AS col2, CAST ( NULL AS REAL ) * 96 FROM tab2
----
18
NULL

query I rowsort
SELECT col1 * + - 35 FROM tab0
----
-2835
-35
-735

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

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

query I rowsort
SELECT DISTINCT + 27 * + col1 + 15 FROM tab1
----
1284
150
393

onlyif mysql # aggregate syntax: 
query II rowsort label-7404
SELECT COUNT( * ) AS col1, 71 + 40 AS col2 FROM tab2 cor0
----
3
111

skipif mysql # not compatible
query II rowsort label-7404
SELECT COUNT ( * ) AS col1, 71 + 40 AS col2 FROM tab2 cor0
----
3
111

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

skipif mysql # not compatible
query I rowsort label-7405
SELECT + MAX ( - + col0 ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

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

query II rowsort
SELECT ALL 64 + - col2 * + col1 + - ( - 73 ), + 44 AS col1 FROM tab1
----
-1207
44
-158
44
-3059
44

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7409
SELECT ALL + - CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7409
SELECT ALL + - CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 27 - + col2 FROM tab2 cor0
----
-50
-67
-85

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

query I rowsort
SELECT 95 * + col1 - - + col1 * - - col0 AS col2 FROM tab1
----
2044
8742
900

query I rowsort
SELECT - col1 - 20 AS col0 FROM tab1
----
-25
-34
-67

query I rowsort
SELECT 81 FROM tab2 WHERE col1 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7415
SELECT DISTINCT 83 - ( + COUNT( * ) ) * + - COUNT( * ) col0 FROM tab0
----
92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7415
SELECT DISTINCT 83 - ( + COUNT ( * ) ) * + - COUNT ( * ) col0 FROM tab0
----
92

query I rowsort
SELECT 38 + - col0 FROM tab0
----
-49
-59
23

query II rowsort
SELECT + ( + - col2 ), - 94 FROM tab2 WHERE NULL NOT BETWEEN NULL AND col1 * col2 - - col1 + + col2 * 83
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7418
SELECT col0 DIV + 33 FROM tab1
----
1
2
2

skipif mysql # not compatible
query I rowsort label-7418
SELECT col0 / + 33 FROM tab1
----
1
2
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7419
SELECT ( - COUNT( * ) ) DIV 67, 33 col0 FROM tab2
----
0
33

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7419
SELECT ( - COUNT ( * ) ) / 67, 33 col0 FROM tab2
----
0
33

query I rowsort
SELECT DISTINCT col0 * - 88 FROM tab2 AS cor0
----
-4048
-5632
-6600

query I rowsort
SELECT DISTINCT + col0 * - - 94 * - col1 FROM tab0
----
-114210
-171738
-9118

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

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT NULL IS NOT NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

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

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

query I rowsort
SELECT DISTINCT - col2 FROM tab1 AS cor0 WHERE 45 IS NOT NULL
----
-59
-68
-96

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 38 <= + col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7428
SELECT + 16 DIV + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-7428
SELECT + 16 / + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-5

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

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

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

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

query I rowsort
SELECT DISTINCT 1 * - 87 AS col0 FROM tab1
----
-87

query I rowsort
SELECT 70 + + col1 * + ( - col2 ) + col2 + - col1 FROM tab0
----
-151
-3771
69

query III rowsort
SELECT * FROM tab1 WHERE 0 * col0 + col2 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7434
SELECT ALL + 38 + + COUNT( * ) AS col2 FROM tab1
----
41

skipif mysql # not compatible
query I rowsort label-7434
SELECT ALL + 38 + + COUNT ( * ) AS col2 FROM tab1
----
41

query I rowsort
SELECT col2 + + + ( + ( ( col0 ) ) ) FROM tab1
----
144
147
159

query I rowsort
SELECT DISTINCT + 24 * + col1 FROM tab1 AS cor0 WHERE NULL < + 57
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7438
SELECT - 62 * 16 + + 51 + + MIN( col1 ) col0 FROM tab2 AS cor0
----
-890

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7438
SELECT - 62 * 16 + + 51 + + MIN ( col1 ) col0 FROM tab2 AS cor0
----
-890

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

query II rowsort
SELECT DISTINCT ( + - ( + col0 ) ) + - 80 AS col2, - 14 FROM tab0 AS cor0
----
-167
-14
-177
-14
-95
-14

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

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

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

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

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

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

query I rowsort
SELECT ALL - col1 - + 97 FROM tab1 AS cor0
----
-102
-111
-144

query I rowsort
SELECT DISTINCT - col2 + - col0 + - - 73 + + col1 AS col1 FROM tab1 AS cor0
----
-39
-60
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-7447
SELECT ALL COUNT( * ) + + 97 FROM tab1 AS cor0
----
100

skipif mysql # not compatible
query I rowsort label-7447
SELECT ALL COUNT ( * ) + + 97 FROM tab1 AS cor0
----
100

query I rowsort
SELECT ALL col0 - + + 83 - + col0 + - ( + - col1 ) FROM tab0 AS cor0
----
-2
-62
-82

query I rowsort
SELECT DISTINCT col1 - + col2 AS col0 FROM tab2
----
28
37
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7450
SELECT DISTINCT + COUNT( + col0 ) FROM tab2 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7450
SELECT DISTINCT + COUNT ( + col0 ) FROM tab2 WHERE NOT NULL IS NULL
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7452
SELECT ALL - COUNT( * ) * 7 FROM tab2
----
-21

skipif mysql # not compatible
query I rowsort label-7452
SELECT ALL - COUNT ( * ) * 7 FROM tab2
----
-21

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE 58 - ( + 69 ) - 46 + - + 8 > col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7454
SELECT - CAST( NULL AS SIGNED ) + - 82 AS col0 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-7454
SELECT - CAST ( NULL AS INTEGER ) + - 82 AS col0 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

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

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

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

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

query II rowsort
SELECT DISTINCT col1 AS col2, 70 + col1 AS col0 FROM tab1 AS cor0
----
14
84
47
117
5
75

query I rowsort
SELECT ALL - col0 * - + 87 AS col2 FROM tab0 AS cor0
----
1305
7569
8439

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

query I rowsort
SELECT ALL - 72 * col1 FROM tab1
----
-1008
-3384
-360

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + 36 * + - col2 IS NULL
----

query I rowsort
SELECT + col0 * + - ( + col1 ) AS col0 FROM tab1
----
-425
-4277
-714

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

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7467
SELECT 39 DIV COUNT( * ) AS col2 FROM tab0
----
13

skipif mysql # not compatible
query I rowsort label-7467
SELECT 39 / COUNT ( * ) AS col2 FROM tab0
----
13

query I rowsort
SELECT ALL - col2 * + + 38 AS col1 FROM tab2
----
-1520
-2204
-874

onlyif mysql # aggregate syntax: 
query I rowsort label-7469
SELECT ALL - MIN( DISTINCT col1 ) + + 1 AS col1 FROM tab1
----
-4

skipif mysql # not compatible
query I rowsort label-7469
SELECT ALL - MIN ( DISTINCT col1 ) + + 1 AS col1 FROM tab1
----
-4

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

skipif mysql # not compatible
query I rowsort label-7470
SELECT ALL 52 + + - COUNT ( * ) FROM tab1
----
49

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

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

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

query I rowsort
SELECT DISTINCT + col0 + + 77 AS col0 FROM tab1 AS cor0
----
128
162
168

query I rowsort
SELECT + 84 * 69 - col0 * + col2 AS col0 FROM tab2 cor0
----
1446
3236
4738

query I rowsort
SELECT ALL - - 37 + col1 FROM tab0 AS cor0
----
118
38
58

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

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

query I rowsort
SELECT ALL - col0 * - 37 + + ( - + col1 ) AS col0 FROM tab2 AS cor0
----
1651
2291
2708

query I rowsort
SELECT ALL + 8 * - 83 FROM tab1 cor0
----
-664
-664
-664

onlyif mysql # DIV for integer division: 
query I rowsort label-7479
SELECT DISTINCT - ( + - 40 ) DIV + - col2 + + col2 FROM tab0 cor0
----
47
6
99

skipif mysql # not compatible
query I rowsort label-7479
SELECT DISTINCT - ( + - 40 ) / + - col2 + + col2 FROM tab0 cor0
----
47
6
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7480
SELECT DISTINCT - - MIN( DISTINCT + - 78 ) FROM tab2 WHERE NOT - + col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7480
SELECT DISTINCT - - MIN ( DISTINCT + - 78 ) FROM tab2 WHERE NOT - + col1 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7481
SELECT DISTINCT - 71 AS col0, COUNT( * ) FROM tab0
----
-71
3

skipif mysql # not compatible
query II rowsort label-7481
SELECT DISTINCT - 71 AS col0, COUNT ( * ) FROM tab0
----
-71
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1, ( - col0 ) col0 FROM tab2
----
-51
-46
-67
-75
-77
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-7483
SELECT + - 13 - 54 * MIN( + col1 ) col2 FROM tab2 WHERE NOT + 40 IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7483
SELECT + - 13 - 54 * MIN ( + col1 ) col2 FROM tab2 WHERE NOT + 40 IS NOT NULL
----
NULL

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7487
SELECT ALL - col0 + - 95 DIV - - 8 FROM tab0 cor0
----
-108
-26
-98

skipif mysql # not compatible
query I rowsort label-7487
SELECT ALL - col0 + - 95 / - - 8 FROM tab0 cor0
----
-108
-26
-98

query I rowsort
SELECT ALL + 68 * + col2 FROM tab2 cor0
----
1564
2720
3944

onlyif mysql # aggregate syntax: 
query I rowsort label-7489
SELECT + 68 + - COUNT( + col2 ) AS col2 FROM tab2 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-7489
SELECT + 68 + - COUNT ( + col2 ) AS col2 FROM tab2 AS cor0
----
65

query I rowsort
SELECT col1 + + 99 AS col1 FROM tab0 cor0
----
100
120
180

onlyif mysql # aggregate syntax: 
query I rowsort label-7491
SELECT - COUNT( * ) * + 41 + - 92 AS col1 FROM tab0
----
-215

skipif mysql # not compatible
query I rowsort label-7491
SELECT - COUNT ( * ) * + 41 + - 92 AS col1 FROM tab0
----
-215

query I rowsort
SELECT 17 * + col0 + + col1 FROM tab2
----
1165
1342
833

onlyif mysql # DIV for integer division: 
query I rowsort label-7493
SELECT ALL ( + 41 ) DIV - - col0 + - + 83 col0 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
-83
-83
-83

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7493
SELECT ALL ( + 41 ) / - - col0 + - + 83 col0 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
-83
-83
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-7494
SELECT DISTINCT 62 * + - MAX( ALL + col0 ) AS col2 FROM tab2
----
-4650

skipif mysql # not compatible
query I rowsort label-7494
SELECT DISTINCT 62 * + - MAX ( ALL + col0 ) AS col2 FROM tab2
----
-4650

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

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

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

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

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

query I rowsort
SELECT DISTINCT col1 + + + col0 * - + 69 * col2 * + 61 AS col1 FROM tab2
----
-10774963
-18309083
-4453071

query III rowsort
SELECT ALL * FROM tab1 WHERE + ( + 58 ) IS NULL
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - 44 ) * - ( + col2 ) * col1 - + + col1 + + col0 * - 48 * - col0 + + col2 + - 88 * - - 88 col2 FROM tab2 AS cor0
----
145408
324347
433231

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 33 * + 63 - - - 84 AS col1, col2 col1 FROM tab2 AS cor0
----
1995
23
1995
40
1995
58

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7505
SELECT ALL - MIN( DISTINCT + col1 ) AS col0 FROM tab0 WHERE NOT - ( - col1 ) * + - 67 IN ( + - col2 )
----
-1

skipif mysql # not compatible
query I rowsort label-7505
SELECT ALL - MIN ( DISTINCT + col1 ) AS col0 FROM tab0 WHERE NOT - ( - col1 ) * + - 67 IN ( + - col2 )
----
-1

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-7508
SELECT + 59 * - 23, + 74 + 67 DIV col1 AS col2 FROM tab0 AS cor0
----
-1357
141
-1357
74
-1357
77

skipif mysql # not compatible
query II rowsort label-7508
SELECT + 59 * - 23, + 74 + 67 / col1 AS col2 FROM tab0 AS cor0
----
-1357
141
-1357
74
-1357
77

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

query II rowsort
SELECT DISTINCT + - 16 * + 23 AS col0, 70 AS col2 FROM tab1 AS cor0
----
-368
70

query I rowsort
SELECT ALL + - 6 / - + col1 FROM tab2 cor0 WHERE col2 IS NULL
----

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

skipif mysql # not compatible
query I rowsort label-7512
SELECT MAX ( ( + - col0 ) ) FROM tab1 AS cor0
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7513
SELECT DISTINCT + ( + - col1 ) FROM tab0 WHERE NOT + CAST( + col0 AS SIGNED ) + - col0 IS NULL
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-7513
SELECT DISTINCT + ( + - col1 ) FROM tab0 WHERE NOT + CAST ( + col0 AS INTEGER ) + - col0 IS NULL
----
-1
-21
-81

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

query I rowsort
SELECT ALL 39 * col1 AS col2 FROM tab1
----
1833
195
546

query I rowsort
SELECT + 32 * - col0 FROM tab0 cor0
----
-2784
-3104
-480

query II rowsort
SELECT ALL - col0 AS col1, + 62 AS col2 FROM tab2 AS cor0
----
-46
62
-64
62
-75
62

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7518
SELECT ALL + + 15 DIV 58 DIV + - CAST( - col2 AS SIGNED ) + - 58 AS col2 FROM tab1 AS cor0
----
-58
-58
-58

skipif mysql # not compatible
query I rowsort label-7518
SELECT ALL + + 15 / 58 / + - CAST ( - col2 AS INTEGER ) + - 58 AS col2 FROM tab1 AS cor0
----
-58
-58
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-7519
SELECT ALL COUNT( * ) AS col2, + MIN( - col1 ) * ( - COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
3
243

skipif mysql # not compatible
query II rowsort label-7519
SELECT ALL COUNT ( * ) AS col2, + MIN ( - col1 ) * ( - COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
3
243

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 21 >= 58
----

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7525
SELECT DISTINCT + 60, - COUNT( * ) + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
60
-6

skipif mysql # not compatible
query II rowsort label-7525
SELECT DISTINCT + 60, - COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
60
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7526
SELECT 92 + + 1 AS col1 FROM tab2 WHERE - CAST( + col2 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-7526
SELECT 92 + + 1 AS col1 FROM tab2 WHERE - CAST ( + col2 AS INTEGER ) IS NULL
----

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

query I rowsort
SELECT - 17 FROM tab2 WHERE ( NOT NULL IS NOT NULL )
----
-17
-17
-17

query I rowsort
SELECT DISTINCT 5 + + 64 FROM tab2
----
69

query II rowsort
SELECT DISTINCT + ( - 83 ), + col1 FROM tab0 AS cor0
----
-83
1
-83
21
-83
81

query I rowsort
SELECT DISTINCT - + 42 - - ( - ( + col1 ) ) AS col1 FROM tab0 AS cor0
----
-123
-43
-63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - 13, - 96 col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-13
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-7533
SELECT ALL SUM( ( + 56 ) ) AS col1 FROM tab1
----
168

skipif mysql # not compatible
query I rowsort label-7533
SELECT ALL SUM ( ( + 56 ) ) AS col1 FROM tab1
----
168

query I rowsort
SELECT - col2 * + + 87 FROM tab1
----
-5133
-5916
-8352

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7535
SELECT + col1 * + - CAST( NULL AS DECIMAL ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7535
SELECT + col1 * + - CAST ( NULL AS REAL ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col0 AS col1 FROM tab1 AS cor0 WHERE NOT - 50 < + col2 / - col0
----

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

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

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

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

query I rowsort
SELECT + - col2 * 20 * + col1 FROM tab2 AS cor0
----
-23460
-61600
-77720

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7543
SELECT + ( - 98 ), SUM( 86 ) AS col1 FROM tab1
----
-98
258

skipif mysql # not compatible
query II rowsort label-7543
SELECT + ( - 98 ), SUM ( 86 ) AS col1 FROM tab1
----
-98
258

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

query I rowsort
SELECT + ( + 44 ) AS col2 FROM tab0
----
44
44
44

query I rowsort
SELECT ALL col2 * 36 * - - col1 AS col1 FROM tab2
----
110880
139896
42228

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

skipif mysql # not compatible
query III rowsort label-7547
SELECT * FROM tab1 WHERE NOT NULL < + - CAST ( 67 AS INTEGER )
----

query I rowsort
SELECT ALL + 23 * col2 AS col0 FROM tab0
----
1081
2277
230

onlyif mysql # aggregate syntax: 
query I rowsort label-7549
SELECT MIN( - - ( 75 ) ) AS col0 FROM tab0 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-7549
SELECT MIN ( - - ( 75 ) ) AS col0 FROM tab0 AS cor0
----
75

query I rowsort
SELECT DISTINCT + + 58 FROM tab0 WHERE col1 * - col2 / + ( - 79 ) + 43 + + 96 + col1 + + 79 IS NOT NULL
----
58

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

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN col0 - + col1 AND NULL
----

query II rowsort
SELECT + col1 * - 89 + 45, + col2 FROM tab1 AS cor0
----
-1201
96
-400
59
-4138
68

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7555
SELECT col0, col2 * - col1 FROM tab2 AS cor0 WHERE ( + 30 ) NOT IN ( CAST( + + col2 AS SIGNED ) / - 76 + + col0, + col2 * - ( + - ( + + col1 ) ) * col1 )
----
46
-1173
64
-3080
75
-3886

skipif mysql # not compatible
query II rowsort label-7555
SELECT col0, col2 * - col1 FROM tab2 AS cor0 WHERE ( + 30 ) NOT IN ( CAST ( + + col2 AS INTEGER ) / - 76 + + col0, + col2 * - ( + - ( + + col1 ) ) * col1 )
----
46
-1173
64
-3080
75
-3886

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7556
SELECT - 77 AS col0, + COUNT( ALL ( 82 ) ) AS col0 FROM tab1 AS cor0 WHERE CAST( NULL AS DECIMAL ) * + 50 NOT IN ( + + col1 + - - col0 )
----
-77
0

skipif mysql # not compatible
query II rowsort label-7556
SELECT - 77 AS col0, + COUNT ( ALL ( 82 ) ) AS col0 FROM tab1 AS cor0 WHERE CAST ( NULL AS REAL ) * + 50 NOT IN ( + + col1 + - - col0 )
----
-77
0

query I rowsort
SELECT ALL + ( - - col2 ) - 82 FROM tab0 AS cor0
----
-35
-72
17

query I rowsort
SELECT col0 * - col2 + + 3 FROM tab0 AS cor0
----
-702
-867
-9600

onlyif mysql # aggregate syntax: 
query III rowsort label-7559
SELECT ( + 48 ) AS col2, + COUNT( - 71 ) AS col1, + SUM( DISTINCT - 71 ) FROM tab1
----
48
3
-71

skipif mysql # not compatible
query III rowsort label-7559
SELECT ( + 48 ) AS col2, + COUNT ( - 71 ) AS col1, + SUM ( DISTINCT - 71 ) FROM tab1
----
48
3
-71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + 70 col1 FROM tab1
----
129
138
166

onlyif mysql # DIV for integer division: 
query I rowsort label-7561
SELECT DISTINCT - 40 DIV - - col2 + col0 AS col0 FROM tab2 cor0
----
45
63
75

skipif mysql # not compatible
query I rowsort label-7561
SELECT DISTINCT - 40 / - - col2 + col0 AS col0 FROM tab2 cor0
----
45
63
75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7562
SELECT ALL * FROM tab0 cor0 WHERE NOT + 4 BETWEEN - 14 AND col2 * CAST( NULL AS SIGNED ) * + 79
----

skipif mysql # not compatible
query III rowsort label-7562
SELECT ALL * FROM tab0 cor0 WHERE NOT + 4 BETWEEN - 14 AND col2 * CAST ( NULL AS INTEGER ) * + 79
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7563
SELECT DISTINCT 27 * + - COUNT( * ) FROM tab1
----
-81

skipif mysql # not compatible
query I rowsort label-7563
SELECT DISTINCT 27 * + - COUNT ( * ) FROM tab1
----
-81

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT + 68 IS NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

query I rowsort
SELECT - 24 + + 13 FROM tab2 WHERE NOT + 21 IS NULL
----
-11
-11
-11

query II rowsort
SELECT DISTINCT + - col1 * - + col0 AS col0, col1 FROM tab1 AS cor0
----
425
5
4277
47
714
14

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE ( NULL ) >= - ( - col0 )
----

query I rowsort
SELECT + col2 AS col1 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7569
SELECT - + COUNT( * ) * + + COUNT( ALL - col1 ) + - + ( - + 16 ) AS col0 FROM tab0 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-7569
SELECT - + COUNT ( * ) * + + COUNT ( ALL - col1 ) + - + ( - + 16 ) AS col0 FROM tab0 AS cor0
----
7

query I rowsort
SELECT + + 90 AS col0 FROM tab1 AS cor0
----
90
90
90

onlyif mysql # aggregate syntax: 
query I rowsort label-7571
SELECT DISTINCT - MAX( DISTINCT - col0 ) AS col1 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-7571
SELECT DISTINCT - MAX ( DISTINCT - col0 ) AS col1 FROM tab2 AS cor0
----
46

query I rowsort
SELECT - 4 * + 10 + + ( + + col1 ) FROM tab0 AS cor0
----
-19
-39
41

onlyif mysql # aggregate syntax: 
query I rowsort label-7573
SELECT - MIN( ALL 28 ) FROM tab2 AS cor0
----
-28

skipif mysql # not compatible
query I rowsort label-7573
SELECT - MIN ( ALL 28 ) FROM tab2 AS cor0
----
-28

query I rowsort
SELECT + 40 * col2 * 98 FROM tab2
----
156800
227360
90160

query II rowsort
SELECT DISTINCT - col2, 7 AS col1 FROM tab1
----
-59
7
-68
7
-96
7

onlyif mysql # aggregate syntax: 
query I rowsort label-7576
SELECT DISTINCT + SUM( 92 ) col0 FROM tab2
----
276

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7576
SELECT DISTINCT + SUM ( 92 ) col0 FROM tab2
----
276

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7577
SELECT - 14 AS col1, 67 * - + CAST( NULL AS DECIMAL ) FROM tab2
----
-14
NULL
-14
NULL
-14
NULL

skipif mysql # not compatible
query II rowsort label-7577
SELECT - 14 AS col1, 67 * - + CAST ( NULL AS REAL ) FROM tab2
----
-14
NULL
-14
NULL
-14
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7578
SELECT CAST( 85 AS SIGNED ) FROM tab2
----
85
85
85

skipif mysql # not compatible
query I rowsort label-7578
SELECT CAST ( 85 AS INTEGER ) FROM tab2
----
85
85
85

query I rowsort
SELECT ALL col2 * - col1 * + ( + ( - col0 ) ) FROM tab1
----
25075
290836
68544

onlyif mysql # aggregate syntax: 
query I rowsort label-7580
SELECT + COUNT( * ) * + + COUNT( DISTINCT + col2 ) AS col0 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-7580
SELECT + COUNT ( * ) * + + COUNT ( DISTINCT + col2 ) AS col0 FROM tab2 AS cor0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-7581
SELECT + ( + ( + 62 ) ) DIV - 94 * col0 + - col2 + + - col2 AS col2 FROM tab1 AS cor0
----
-118
-136
-192

skipif mysql # not compatible
query I rowsort label-7581
SELECT + ( + ( + 62 ) ) / - 94 * col0 + - col2 + + - col2 AS col2 FROM tab1 AS cor0
----
-118
-136
-192

query I rowsort
SELECT - - col1 + col1 FROM tab2 AS cor0 WHERE col0 + + col0 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7583
SELECT ALL ( - + 9 ) * + 6 * - - COUNT( * ) FROM tab2 cor0
----
-162

skipif mysql # not compatible
query I rowsort label-7583
SELECT ALL ( - + 9 ) * + 6 * - - COUNT ( * ) FROM tab2 cor0
----
-162

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7584
SELECT * FROM tab1 WHERE NOT - col0 >= - CAST( col2 AS SIGNED )
----
85
5
59
91
47
68

skipif mysql # not compatible
query III rowsort label-7584
SELECT * FROM tab1 WHERE NOT - col0 >= - CAST ( col2 AS INTEGER )
----
85
5
59
91
47
68

onlyif mysql # aggregate syntax: 
query I rowsort label-7585
SELECT - 80 * COUNT( * ) FROM tab1
----
-240

skipif mysql # not compatible
query I rowsort label-7585
SELECT - 80 * COUNT ( * ) FROM tab1
----
-240

onlyif mysql # aggregate syntax: 
query I rowsort label-7586
SELECT ALL 91 - - COUNT( * ) FROM tab2
----
94

skipif mysql # not compatible
query I rowsort label-7586
SELECT ALL 91 - - COUNT ( * ) FROM tab2
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-7587
SELECT COUNT( * ) * COUNT( * ) AS col1 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-7587
SELECT COUNT ( * ) * COUNT ( * ) AS col1 FROM tab0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7588
SELECT ALL - col0 + - CAST( NULL AS SIGNED ) col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7588
SELECT ALL - col0 + - CAST ( NULL AS INTEGER ) col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 68 + - col2 * - col0 FROM tab0 WHERE - col2 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE 72 / + col2 - + col0 * - col1 <> ( col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 AS col1 FROM tab0 WHERE col1 = + 83
----

query I rowsort
SELECT 63 + col2 AS col1 FROM tab1
----
122
131
159

query I rowsort
SELECT DISTINCT - col1 * 77 FROM tab2
----
-3927
-5159
-5929

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 95 NOT BETWEEN ( + col1 ) AND - 11 + - 1
----

query I rowsort
SELECT 84 AS col0 FROM tab2 WHERE NOT 9 BETWEEN + ( - col0 ) * col0 + 63 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col1 IN ( + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7597
SELECT DISTINCT - 26 - - COUNT( * ) AS col1 FROM tab0 WHERE NOT - col0 = col2
----
-23

skipif mysql # not compatible
query I rowsort label-7597
SELECT DISTINCT - 26 - - COUNT ( * ) AS col1 FROM tab0 WHERE NOT - col0 = col2
----
-23

query I rowsort
SELECT ALL - col1 FROM tab1 WHERE NOT ( NULL ) BETWEEN ( 30 ) AND ( - col0 + + col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7599
SELECT DISTINCT 74 DIV - 39 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-7599
SELECT DISTINCT 74 / - 39 FROM tab1
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 85 + + col0 * - col2 col1 FROM tab1
----
-4981
-5100
-6273

query I rowsort
SELECT ALL 64 - 23 AS col1 FROM tab0
----
41
41
41

onlyif mysql # aggregate syntax: 
query I rowsort label-7602
SELECT COUNT( DISTINCT + col1 ) + 99 AS col2 FROM tab0 WHERE - col1 IS NOT NULL
----
102

skipif mysql # not compatible
query I rowsort label-7602
SELECT COUNT ( DISTINCT + col1 ) + 99 AS col2 FROM tab0 WHERE - col1 IS NOT NULL
----
102

onlyif mysql # DIV for integer division: 
query I rowsort label-7603
SELECT ALL + col2 DIV 60 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7603
SELECT ALL + col2 / 60 FROM tab0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7604
SELECT DISTINCT - COUNT( * ) + + 64 FROM tab2
----
61

skipif mysql # not compatible
query I rowsort label-7604
SELECT DISTINCT - COUNT ( * ) + + 64 FROM tab2
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-7605
SELECT DISTINCT 92 + COUNT( * ) col1 FROM tab1
----
95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7605
SELECT DISTINCT 92 + COUNT ( * ) col1 FROM tab1
----
95

query I rowsort
SELECT DISTINCT - 66 * - col0 + - 29 * 61 FROM tab2 WHERE ( 61 + col1 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7607
SELECT CAST( NULL AS SIGNED ) + 67 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7607
SELECT CAST ( NULL AS INTEGER ) + 67 AS col2 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE ( col0 ) = - 19
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL BETWEEN col0 AND + 61
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col1 / + col0 BETWEEN ( 59 ) AND ( NULL )
----

query I rowsort
SELECT + col0 * + 44 FROM tab2
----
2024
2816
3300

query I rowsort
SELECT DISTINCT col1 + 11 AS col1 FROM tab0
----
12
32
92

query III rowsort
SELECT * FROM tab2 WHERE col0 + 35 IS NULL
----

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE NOT + ( + 17 ) NOT BETWEEN + ( ( col2 ) ) AND 43
----

query I rowsort
SELECT DISTINCT - ( col1 ) * - col0 FROM tab0 AS cor0
----
1215
1827
97

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( - col1 ) BETWEEN - col0 / - 43 AND ( - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7617
SELECT ALL - col2 FROM tab2 AS cor0 WHERE NOT - 60 BETWEEN ( - 27 ) AND CAST( NULL AS SIGNED )
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-7617
SELECT ALL - col2 FROM tab2 AS cor0 WHERE NOT - 60 BETWEEN ( - 27 ) AND CAST ( NULL AS INTEGER )
----
-23
-40
-58

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL <> 16
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col0 - col0 / + col0 >= 3
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( col2 ) * + col1 col1 FROM tab1 AS cor0
----
-1344
-295
-3196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7621
SELECT - ( CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7621
SELECT - ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7622
SELECT ALL + MIN( ALL + col0 ) AS col1 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-7622
SELECT ALL + MIN ( ALL + col0 ) AS col1 FROM tab0 AS cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-7623
SELECT ALL + MIN( + 40 ) AS col2 FROM tab2 cor0
----
40

skipif mysql # not compatible
query I rowsort label-7623
SELECT ALL + MIN ( + 40 ) AS col2 FROM tab2 cor0
----
40

query I rowsort
SELECT ALL - ( + 45 ) AS col1 FROM tab1 AS cor0
----
-45
-45
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-7625
SELECT COUNT( - - 41 ) * 90 AS col0 FROM tab0
----
270

skipif mysql # not compatible
query I rowsort label-7625
SELECT COUNT ( - - 41 ) * 90 AS col0 FROM tab0
----
270

query III rowsort
SELECT * FROM tab1 WHERE NOT + ( col0 ) + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 + + 45 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 IN ( col0 )
----

query I rowsort
SELECT + col0 + - col1 + col2 AS col0 FROM tab0
----
-19
195
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7630
SELECT ALL COUNT( * ) FROM tab1 WHERE ( NULL ) <= CAST( NULL AS SIGNED ) / - col2 + 60
----
0

skipif mysql # not compatible
query I rowsort label-7630
SELECT ALL COUNT ( * ) FROM tab1 WHERE ( NULL ) <= CAST ( NULL AS INTEGER ) / - col2 + 60
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7631
SELECT 61 col2 FROM tab2 WHERE CAST( + 15 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7631
SELECT 61 col2 FROM tab2 WHERE CAST ( + 15 AS INTEGER ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 21 <= NULL
----

query I rowsort
SELECT DISTINCT + ( 24 ) + + col2 FROM tab0 AS cor0
----
123
34
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7634
SELECT DISTINCT + - CAST( COUNT( * ) AS SIGNED ) * COUNT( * ) AS col1 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-7634
SELECT DISTINCT + - CAST ( COUNT ( * ) AS INTEGER ) * COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-9

query I rowsort
SELECT + col2 * - + col2 FROM tab2
----
-1600
-3364
-529

onlyif mysql # DIV for integer division: 
query I rowsort label-7636
SELECT DISTINCT - col2 DIV + col1 * 84 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7636
SELECT DISTINCT - col2 / + col1 * 84 FROM tab2
----
0

query I rowsort
SELECT DISTINCT 62 + + + col1 * - 69 + - 51 AS col0 FROM tab1
----
-3232
-334
-955

query I rowsort
SELECT ALL - 50 * - 71 AS col1 FROM ( tab2 cor0 CROSS JOIN tab1 cor1 )
----
9 values hashing to 7100b2bac6d01f28c66aa1cef69f2ec0

query I rowsort
SELECT ALL col2 + + 83 FROM tab2
----
106
123
141

query I rowsort
SELECT ALL col2 + col1 AS col0 FROM tab1 AS cor0 WHERE 10 - + col2 IS NULL
----

query I rowsort
SELECT ALL - col2 - + - 56 AS col2 FROM tab1 cor0
----
-12
-3
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-7642
SELECT DISTINCT 54 + - - ( - MAX( + col0 ) ) FROM tab1 cor0
----
-37

skipif mysql # not compatible
query I rowsort label-7642
SELECT DISTINCT 54 + - - ( - MAX ( + col0 ) ) FROM tab1 cor0
----
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-7643
SELECT - col2 + + + 62 - + col2 - + 68 DIV - 27 AS col1 FROM tab2 AS cor0
----
-16
-52
18

skipif mysql # not compatible
query I rowsort label-7643
SELECT - col2 + + + 62 - + col2 - + 68 / - 27 AS col1 FROM tab2 AS cor0
----
-16
-52
18

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) > ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7646
SELECT ALL + col0 - + - CAST( col0 AS SIGNED ) + - ( + ( - CAST( NULL AS SIGNED ) ) + col0 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7646
SELECT ALL + col0 - + - CAST ( col0 AS INTEGER ) + - ( + ( - CAST ( NULL AS INTEGER ) ) + col0 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 52 * - col0 AS col1 FROM tab2 AS cor0
----
-2392
-3328
-3900

query I rowsort
SELECT ALL + col2 AS col1 FROM tab0 WHERE NOT NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7649
SELECT - COUNT( * ) * - ( 7 ) AS col1 FROM tab2
----
21

skipif mysql # not compatible
query I rowsort label-7649
SELECT - COUNT ( * ) * - ( 7 ) AS col1 FROM tab2
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-7650
SELECT DISTINCT 76 - + COUNT( * ) FROM tab1
----
73

skipif mysql # not compatible
query I rowsort label-7650
SELECT DISTINCT 76 - + COUNT ( * ) FROM tab1
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7651
SELECT ALL + CAST( NULL AS SIGNED ) / - COUNT( DISTINCT + - ( col1 ) ) - + AVG ( col2 + 80 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7651
SELECT ALL + CAST ( NULL AS INTEGER ) / - COUNT ( DISTINCT + - ( col1 ) ) - + AVG ( col2 + 80 ) FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE ( + ( 11 ) + - col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7653
SELECT DISTINCT COUNT( - col0 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7653
SELECT DISTINCT COUNT ( - col0 ) AS col0 FROM tab0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7654
SELECT + + MIN( ALL + col1 ) DIV + 97 - - COUNT( * ) AS col2 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7654
SELECT + + MIN ( ALL + col1 ) / + 97 - - COUNT ( * ) AS col2 FROM tab1 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7655
SELECT ALL + MIN( ALL 38 ) AS col2 FROM tab1 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-7655
SELECT ALL + MIN ( ALL 38 ) AS col2 FROM tab1 AS cor0
----
38

query I rowsort
SELECT DISTINCT + ( + 35 ) AS col2 FROM tab0 AS cor0
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7657
SELECT MAX( + - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7657
SELECT MAX ( + - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT 38 * + + 1 AS col1 FROM tab0 AS cor0
----
38
38
38

query I rowsort
SELECT - ( - col2 ) * + 5 + - col2 * + - 45 * - col2 AS col2 FROM tab0 AS cor0
----
-440550
-4450
-99170

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col1 BETWEEN - col0 AND - ( - col2 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( + + col1, col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7662
SELECT col2 * + + CAST( NULL AS SIGNED ) * - 74 * - col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7662
SELECT col2 * + + CAST ( NULL AS INTEGER ) * - 74 * - col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7663
SELECT DISTINCT SUM( + col2 ) FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-7663
SELECT DISTINCT SUM ( + col2 ) FROM tab0
----
156

query I rowsort
SELECT + col2 AS col0 FROM tab1 WHERE NOT - col0 - + - ( - col0 ) IS NULL
----
59
68
96

query II rowsort
SELECT - 30 AS col1, ( + col1 ) AS col0 FROM tab1
----
-30
14
-30
47
-30
5

query III rowsort
SELECT * FROM tab1 WHERE ( + 93 - 70 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 91 * - col0 AS col2 FROM tab1 WHERE 10 <> - col1 / - 49
----
4641
7735
8281

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 col2, - 47 * + + col1 AS col2 FROM tab1
----
59
-235
68
-2209
96
-658

query I rowsort
SELECT col0 FROM tab2 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7670
SELECT CAST( + - 25 AS SIGNED ) * - - col1 + + col0 AS col1 FROM tab2
----
-1229
-1600
-1861

skipif mysql # not compatible
query I rowsort label-7670
SELECT CAST ( + - 25 AS INTEGER ) * - - col1 + + col0 AS col1 FROM tab2
----
-1229
-1600
-1861

query I rowsort
SELECT 24 + + 36 + + col0 FROM tab0 AS cor0
----
147
157
75

query I rowsort
SELECT DISTINCT 55 AS col2 FROM tab1 AS cor0 WHERE col1 NOT IN ( 48 - + 56 )
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7673
SELECT + CAST( NULL AS SIGNED ) + - - 23 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7673
SELECT + CAST ( NULL AS INTEGER ) + - - 23 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - 0 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - 27 AS col0 FROM tab1 cor0
----
-27
-27
-27

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( col0 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7677
SELECT COUNT( * ) - - ( + - 23 ) FROM tab0 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-7677
SELECT COUNT ( * ) - - ( + - 23 ) FROM tab0 AS cor0
----
-20

query I rowsort
SELECT ALL - col0 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-51
-85
-91

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE + ( + ( - - col0 ) ) >= col1
----
-10
-99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7680
SELECT * FROM tab2 AS cor0 WHERE NULL NOT IN ( - ( CAST( + + col1 AS SIGNED ) ) + - + col1 )
----

skipif mysql # not compatible
query III rowsort label-7680
SELECT * FROM tab2 AS cor0 WHERE NULL NOT IN ( - ( CAST ( + + col1 AS INTEGER ) ) + - + col1 )
----

query I rowsort
SELECT ALL + ( + + 68 ) + col2 + - col2 - - 68 - col1 + - + 85 * 11 * + col0 FROM tab2 AS cor0
----
-42925
-59781
-70056

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7682
SELECT ALL - COUNT( * ) - + 35 + + 43 DIV + + COUNT( * ) FROM tab0 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-7682
SELECT ALL - COUNT ( * ) - + 35 + + 43 / + + COUNT ( * ) FROM tab0 AS cor0
----
-24

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 NOT BETWEEN - ( - col0 ) AND NULL
----

query I rowsort
SELECT DISTINCT - + col1 * - ( - col0 ) + + col1 + - ( 20 ) FROM tab1 cor0
----
-4250
-440
-720

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7685
SELECT DISTINCT col1 - + CAST( NULL AS SIGNED ) + - 36 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7685
SELECT DISTINCT col1 - + CAST ( NULL AS INTEGER ) + - 36 AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7686
SELECT ALL ( - COUNT( * ) ) * + COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-9

skipif mysql # not compatible
query I rowsort label-7686
SELECT ALL ( - COUNT ( * ) ) * + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-9

query I rowsort
SELECT ALL + 82 * - col1 - + col1 FROM tab0 AS cor0
----
-1743
-6723
-83

query II rowsort
SELECT DISTINCT - 13 AS col2, 2 + - 39 - 96 * - - col2 * + + col2 * + 6 * + + col2 - + col1 FROM tab1
----
-13
-118298346
-13
-181112916
-13
-509607987

onlyif mysql # aggregate syntax: 
query II rowsort label-7689
SELECT DISTINCT 93, COUNT( * ) AS col1 FROM tab0
----
93
3

skipif mysql # not compatible
query II rowsort label-7689
SELECT DISTINCT 93, COUNT ( * ) AS col1 FROM tab0
----
93
3

query II rowsort
SELECT ALL - col0 AS col2, - col2 AS col2 FROM tab0
----
-15
-47
-87
-10
-97
-99

query III rowsort
SELECT * FROM tab1 WHERE NOT - 69 IS NOT NULL
----

query I rowsort
SELECT - 71 * + col2 AS col1 FROM tab1
----
-4189
-4828
-6816

onlyif mysql # DIV for integer division: 
query II rowsort label-7693
SELECT ALL 83 AS col2, col1 DIV + col2 AS col2 FROM tab0
----
83
0
83
1
83
2

skipif mysql # not compatible
query II rowsort label-7693
SELECT ALL 83 AS col2, col1 / + col2 AS col2 FROM tab0
----
83
0
83
1
83
2

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 89 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7695
SELECT DISTINCT - ( + COUNT( * ) ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-7695
SELECT DISTINCT - ( + COUNT ( * ) ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7696
SELECT ALL - ( + SUM( + col0 ) ) FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-7696
SELECT ALL - ( + SUM ( + col0 ) ) FROM tab0
----
-199

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7697
SELECT ALL - CAST( COUNT( * ) AS SIGNED ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-7697
SELECT ALL - CAST ( COUNT ( * ) AS INTEGER ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 14 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7699
SELECT ALL - SUM( - + ( + col0 ) ) + + 76 AS col2, - SUM( - - 49 ) * + ( 94 ) FROM tab2 AS cor0
----
261
-13818

skipif mysql # not compatible
query II rowsort label-7699
SELECT ALL - SUM ( - + ( + col0 ) ) + + 76 AS col2, - SUM ( - - 49 ) * + ( 94 ) FROM tab2 AS cor0
----
261
-13818

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7700
SELECT ALL - CAST( - col2 AS SIGNED ) * + - col2 FROM tab1
----
-3481
-4624
-9216

skipif mysql # not compatible
query I rowsort label-7700
SELECT ALL - CAST ( - col2 AS INTEGER ) * + - col2 FROM tab1
----
-3481
-4624
-9216

query I rowsort
SELECT col1 + 73 AS col2 FROM tab1
----
120
78
87

query I rowsort
SELECT - 38 FROM tab1 WHERE - 66 IS NOT NULL
----
-38
-38
-38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7703
SELECT ALL ( - + COUNT( + col1 ) ) DIV - ( + - 70 ) + 5 DIV - COUNT( * ) AS col0 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-7703
SELECT ALL ( - + COUNT ( + col1 ) ) / - ( + - 70 ) + 5 / - COUNT ( * ) AS col0 FROM tab1
----
-1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) >= col0
----

query I rowsort
SELECT ALL + col0 * + col0 + col1 + - ( 44 ) * - col2 FROM tab1
----
11320
6839
9826

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( ( NOT ( NULL ) IS NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7707
SELECT ALL - MIN( DISTINCT + col2 ) col0 FROM tab1 AS cor0 WHERE NOT + 29 IS NULL
----
-59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7707
SELECT ALL - MIN ( DISTINCT + col2 ) col0 FROM tab1 AS cor0 WHERE NOT + 29 IS NULL
----
-59

query I rowsort
SELECT DISTINCT 3 + - col0 * + 5 / col1 AS col2 FROM tab1 AS cor0 WHERE NULL >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7709
SELECT MAX( DISTINCT - + col0 ) AS col2 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-7709
SELECT MAX ( DISTINCT - + col0 ) AS col2 FROM tab1 AS cor0
----
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 col2 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col2 AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 19 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col0 * + 9 - - col2 > col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT ( - 12 ) FROM tab1 cor0
----
-12

query I rowsort
SELECT DISTINCT + 85 + 96 AS col1 FROM tab0 AS cor0
----
181

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( - + 42 ) col2 FROM tab0 AS cor0
----
42
42
42

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7716
SELECT DISTINCT 48 * col2 + + + CAST( + col1 AS SIGNED ) AS col1, + col1 + + - col0 AS col1 FROM tab0 AS cor0
----
2337
66
4753
-96
501
-66

skipif mysql # not compatible
query II rowsort label-7716
SELECT DISTINCT 48 * col2 + + + CAST ( + col1 AS INTEGER ) AS col1, + col1 + + - col0 AS col1 FROM tab0 AS cor0
----
2337
66
4753
-96
501
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-7717
SELECT - 87 + - MIN( ALL - + col1 ) + + 14 AS col1 FROM tab1 AS cor0 WHERE - 3 * col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7717
SELECT - 87 + - MIN ( ALL - + col1 ) + + 14 AS col1 FROM tab1 AS cor0 WHERE - 3 * col2 IS NULL
----
NULL

query I rowsort
SELECT ALL - + col1 * + - col1 FROM tab2 AS cor0
----
2601
4489
5929

onlyif mysql # aggregate syntax: 
query I rowsort label-7719
SELECT + COUNT( - col2 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7719
SELECT + COUNT ( - col2 ) FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7720
SELECT - 31 FROM tab2 AS cor0 WHERE NOT col0 + + CAST( - - col2 AS SIGNED ) - + ( - col0 ) IN ( + - ( - ( + col2 ) ) / - 47 )
----
-31
-31
-31

skipif mysql # not compatible
query I rowsort label-7720
SELECT - 31 FROM tab2 AS cor0 WHERE NOT col0 + + CAST ( - - col2 AS INTEGER ) - + ( - col0 ) IN ( + - ( - ( + col2 ) ) / - 47 )
----
-31
-31
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7721
SELECT DISTINCT + CAST( - - 34 AS SIGNED ) FROM tab1 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-7721
SELECT DISTINCT + CAST ( - - 34 AS INTEGER ) FROM tab1 AS cor0
----
34

query III rowsort
SELECT * FROM tab0 WHERE NOT - 63 <= + col1 + + 46
----

query IIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0 WHERE NULL IS NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

query I rowsort
SELECT ALL - col0 * - 9 AS col0 FROM tab0
----
135
783
873

query I rowsort
SELECT ALL 68 * - 59 AS col2 FROM tab2
----
-4012
-4012
-4012

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7726
SELECT ALL col2 * + 47 * - - col1 AS col0, + col0 + col1 FROM tab0 WHERE + CAST( NULL AS SIGNED ) > col2
----

skipif mysql # not compatible
query II rowsort label-7726
SELECT ALL col2 * + 47 * - - col1 AS col0, + col0 + col1 FROM tab0 WHERE + CAST ( NULL AS INTEGER ) > col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col1 + - 44 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + ( + 23 ) FROM tab0
----
23
23
23

query III rowsort
SELECT * FROM tab1 WHERE + col0 * - + 91 * - ( col0 ) IS NOT NULL AND col2 < NULL
----

query I rowsort
SELECT DISTINCT col1 + 42 AS col1 FROM tab0
----
123
43
63

query I rowsort
SELECT - + ( - col0 ) * + 1 AS col1 FROM tab0 AS cor0
----
15
87
97

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( NOT ( NULL ) >= NULL )
----

query I rowsort
SELECT 53 AS col2 FROM tab2 AS cor0
----
53
53
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7734
SELECT ALL - CAST( NULL AS SIGNED ) + - 30 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7734
SELECT ALL - CAST ( NULL AS INTEGER ) + - 30 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 * + col1 + + - col0 AS col0 FROM tab1 AS cor0
----
-110
-2300
-247

query I rowsort
SELECT ALL + - 6 AS col2 FROM tab1 cor0
----
-6
-6
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-7737
SELECT - + 38 * + - 53 * - + COUNT( DISTINCT - 57 ) AS col0 FROM tab0 AS cor0
----
-2014

skipif mysql # not compatible
query I rowsort label-7737
SELECT - + 38 * + - 53 * - + COUNT ( DISTINCT - 57 ) AS col0 FROM tab0 AS cor0
----
-2014

query I rowsort
SELECT + col2 * + col1 * col1 AS col0 FROM tab0
----
308367
4410
99

query III rowsort
SELECT ALL * FROM tab0 WHERE + col1 IN ( + 60 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7740
SELECT + 27 + + + SUM( CAST( 45 AS SIGNED ) ) col1, COUNT( * ) AS col0 FROM tab1
----
162
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7740
SELECT + 27 + + + SUM ( CAST ( 45 AS INTEGER ) ) col1, COUNT ( * ) AS col0 FROM tab1
----
162
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + + 66 col1 FROM tab2 WHERE NULL IN ( col2 * - col0 - col2, - col0, - 38 )
----

query I rowsort
SELECT 4 + - 43 AS col1 FROM tab0
----
-39
-39
-39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 + - 16 col0, + col1 + col2 AS col2 FROM tab2
----
24
117
42
125
7
74

query I rowsort
SELECT ALL - col0 * + col1 + + col0 AS col1 FROM tab1 AS cor0
----
-340
-4186
-663

onlyif mysql # aggregate syntax: 
query I rowsort label-7745
SELECT ALL - 8 + MIN( - 6 ) * MIN( - col2 ) AS col0 FROM tab1 cor0
----
568

skipif mysql # not compatible
query I rowsort label-7745
SELECT ALL - 8 + MIN ( - 6 ) * MIN ( - col2 ) AS col0 FROM tab1 cor0
----
568

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 * + col1 * ( + col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 57 * 84 AS col0 FROM tab0
----
4788
4788
4788

onlyif mysql # aggregate syntax: 
query I rowsort label-7748
SELECT DISTINCT - COUNT( + + 28 ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-7748
SELECT DISTINCT - COUNT ( + + 28 ) AS col1 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7749
SELECT DISTINCT - SUM( ALL col0 ) * + SUM( - 87 ) AS col0 FROM tab1 cor0
----
59247

skipif mysql # not compatible
query I rowsort label-7749
SELECT DISTINCT - SUM ( ALL col0 ) * + SUM ( - 87 ) AS col0 FROM tab1 cor0
----
59247

onlyif mysql # aggregate syntax: 
query I rowsort label-7750
SELECT ALL + + MIN( ALL + - col1 ) AS col1 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-7750
SELECT ALL + + MIN ( ALL + - col1 ) AS col1 FROM tab0 AS cor0
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7751
SELECT DISTINCT - SUM( CAST( NULL AS SIGNED ) ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7751
SELECT DISTINCT - SUM ( CAST ( NULL AS INTEGER ) ) FROM tab2 cor0
----
NULL

query I rowsort
SELECT - ( + 86 ) FROM tab1 AS cor0
----
-86
-86
-86

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 1 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - ( + 71 ) col1 FROM tab2 AS cor0
----
-71
-71
-71

query I rowsort
SELECT ALL - 24 * - + 32 AS col1 FROM tab1 WHERE + + col1 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7756
SELECT ALL COUNT( * ) FROM tab0 WHERE col1 * - col1 + + CAST( - col1 AS SIGNED ) NOT BETWEEN ( NULL ) AND 31
----
0

skipif mysql # not compatible
query I rowsort label-7756
SELECT ALL COUNT ( * ) FROM tab0 WHERE col1 * - col1 + + CAST ( - col1 AS INTEGER ) NOT BETWEEN ( NULL ) AND 31
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE 16 = NULL
----

query II rowsort
SELECT ( + 65 ) AS col2, - col0 FROM tab1
----
65
-51
65
-85
65
-91

query I rowsort
SELECT DISTINCT - col1 * - + col2 AS col1 FROM tab2
----
1173
3080
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-7760
SELECT ALL MAX( - 96 ) FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-7760
SELECT ALL MAX ( - 96 ) FROM tab1
----
-96

query II rowsort
SELECT col1, 29 AS col1 FROM tab1
----
14
29
47
29
5
29

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 / + + col2 + - 94 IS NOT NULL
----

query I rowsort
SELECT ( 59 ) * 23 AS col2 FROM tab1
----
1357
1357
1357

onlyif mysql # aggregate syntax: 
query I rowsort label-7764
SELECT DISTINCT SUM( + col1 ) FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-7764
SELECT DISTINCT SUM ( + col1 ) FROM tab0
----
103

query I rowsort
SELECT DISTINCT + - col2 AS col2 FROM tab0 AS cor0 WHERE 84 BETWEEN + - ( + 10 ) AND - 29
----

query II rowsort
SELECT DISTINCT + - col1 AS col1, + 15 FROM tab2 AS cor0
----
-51
15
-67
15
-77
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 27 col2 FROM tab2 cor0
----
-27
-27
-27

query I rowsort
SELECT ALL col1 + + - 16 AS col1 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
-11
-2
31

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7769
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL <> - CAST( - - col2 AS SIGNED ) * - + ( - ( + col0 ) )
----

skipif mysql # not compatible
query III rowsort label-7769
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL <> - CAST ( - - col2 AS INTEGER ) * - + ( - ( + col0 ) )
----

query I rowsort
SELECT col0 + - col1 * + col1 / + - col1 FROM tab0 AS cor0 WHERE NOT NULL > - 38
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 = - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7772
SELECT + ( - COUNT( * ) ) DIV SUM( - col1 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7772
SELECT + ( - COUNT ( * ) ) / SUM ( - col1 ) FROM tab2
----
0

query I rowsort
SELECT - 4 AS col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5784540a5af6ca2be84399d314acd2fd

onlyif mysql # aggregate syntax: 
query I rowsort label-7774
SELECT ALL - 14 * + COUNT( * ) + COUNT( * ) + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-7774
SELECT ALL - 14 * + COUNT ( * ) + COUNT ( * ) + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-7775
SELECT DISTINCT + 74 * col2 DIV + 62 AS col1 FROM tab0 AS cor0
----
11
118
56

skipif mysql # not compatible
query I rowsort label-7775
SELECT DISTINCT + 74 * col2 / + 62 AS col1 FROM tab0 AS cor0
----
11
118
56

query I rowsort
SELECT DISTINCT ( + 53 ) AS col2 FROM tab1 AS cor0
----
53

query II rowsort
SELECT - col0 + - col1 * + col1, + col1 FROM tab1 cor0
----
-110
5
-2300
47
-247
14

query I rowsort
SELECT + col2 + 22 FROM tab0
----
121
32
69

query I rowsort
SELECT col1 AS col2 FROM tab0 WHERE ( NOT NULL NOT BETWEEN NULL AND - col0 * + 43 + - + 73 )
----

query I rowsort
SELECT - 35 AS col2 FROM tab0 AS cor0 WHERE - 38 * col0 * 69 + ( - 32 ) IS NOT NULL
----
-35
-35
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-7781
SELECT - ( - SUM( - + col0 ) ) AS col0 FROM tab2 cor0
----
-185

skipif mysql # not compatible
query I rowsort label-7781
SELECT - ( - SUM ( - + col0 ) ) AS col0 FROM tab2 cor0
----
-185

query I rowsort
SELECT ALL - 21 + - 54 * - 36 AS col1 FROM tab1 AS cor0
----
1923
1923
1923

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 - 98 + - ( col2 ) + - col1 col1 FROM tab0 AS cor0
----
-108
-145
-197

query I rowsort
SELECT - 27 - + - 20 AS col1 FROM tab2 AS cor0
----
-7
-7
-7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7785
SELECT + 99 - + CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7785
SELECT + 99 - + CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7786
SELECT DISTINCT + col0 - + col1 - + + col0 DIV - col1 + + ( + col1 ) * - col0 + + col1 + col1 AS col2 FROM tab1
----
-318
-4138
-646

skipif mysql # not compatible
query I rowsort label-7786
SELECT DISTINCT + col0 - + col1 - + + col0 / - col1 + + ( + col1 ) * - col0 + + col1 + col1 AS col2 FROM tab1
----
-318
-4138
-646

query I rowsort
SELECT - + 45 * col0 FROM tab2 cor0
----
-2070
-2880
-3375

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7788
SELECT 95 DIV + COUNT( * ) AS col0 FROM tab1 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-7788
SELECT 95 / + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
31

query I rowsort
SELECT col1 AS col1 FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
51
67
77

query I rowsort
SELECT + - col2 * + + 1 AS col2 FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-7791
SELECT + col0 * - - col2 - - col1 + + col1 DIV + - 86 AS col1 FROM tab0 AS cor0 WHERE NOT + 81 <> + col1
----
786

skipif mysql # not compatible
query I rowsort label-7791
SELECT + col0 * - - col2 - - col1 + + col1 / + - 86 AS col1 FROM tab0 AS cor0 WHERE NOT + 81 <> + col1
----
786

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7792
SELECT + AVG ( ALL - col2 ) FROM tab2 AS cor0 WHERE NOT 58 BETWEEN NULL AND CAST( NULL AS SIGNED ) - 51
----
NULL

skipif mysql # not compatible
query I rowsort label-7792
SELECT + AVG ( ALL - col2 ) FROM tab2 AS cor0 WHERE NOT 58 BETWEEN NULL AND CAST ( NULL AS INTEGER ) - 51
----
NULL

query I rowsort
SELECT DISTINCT col0 FROM tab0 WHERE + - ( - col1 ) / + + col2 <= + - 6
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7794
SELECT * FROM tab2 WHERE NOT - CAST( - col1 AS SIGNED ) NOT BETWEEN - + col2 AND ( + col0 + + - 28 )
----

skipif mysql # not compatible
query III rowsort label-7794
SELECT * FROM tab2 WHERE NOT - CAST ( - col1 AS INTEGER ) NOT BETWEEN - + col2 AND ( + col0 + + - 28 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7795
SELECT ALL - COUNT( * ) * + 0 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7795
SELECT ALL - COUNT ( * ) * + 0 AS col2 FROM tab1
----
0

query II rowsort
SELECT + col1, 13 FROM tab0
----
1
13
21
13
81
13

query I rowsort
SELECT col2 * - + col0 AS col2 FROM tab2
----
-1058
-2560
-4350

query I rowsort
SELECT DISTINCT - + col1 FROM tab2 AS cor0 WHERE NOT NULL <> ( NULL )
----

query I rowsort
SELECT + col1 * - 69 * - 97 * - - col1 FROM tab2 AS cor0
----
17408493
30044877
39682797

onlyif mysql # aggregate syntax: 
query I rowsort label-7800
SELECT ALL + MAX( DISTINCT col1 ) AS col2 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-7800
SELECT ALL + MAX ( DISTINCT col1 ) AS col2 FROM tab2 AS cor0
----
77

query I rowsort
SELECT ALL - col2 FROM tab1 WHERE NOT ( NOT ( NULL ) IS NOT NULL )
----

query I rowsort
SELECT ALL - col1 * + 47 FROM tab0 WHERE + - 54 IS NOT NULL
----
-3807
-47
-987

query I rowsort
SELECT ALL col0 * 62 FROM tab1
----
3162
5270
5642

query I rowsort
SELECT DISTINCT - - col1 + - - col1 FROM tab0 AS cor0
----
162
2
42

query II rowsort
SELECT - + 55, col1 AS col1 FROM tab0 AS cor0
----
-55
1
-55
21
-55
81

query I rowsort
SELECT ALL - + 70 * + col2 + col2 + col1 + - col0 + - 93 * + 52 FROM tab2 AS cor0
----
-6418
-7583
-8846

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7807
SELECT ALL - - col1 * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7807
SELECT ALL - - col1 * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + col0 * - col0 + + col0 FROM tab2 cor0
----
2162
4160
5700

onlyif mysql # DIV for integer division: 
query I rowsort label-7809
SELECT DISTINCT - col2 DIV - 4 FROM tab1 AS cor0
----
14
17
24

skipif mysql # not compatible
query I rowsort label-7809
SELECT DISTINCT - col2 / - 4 FROM tab1 AS cor0
----
14
17
24

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL <> NULL AND NULL IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7811
SELECT col0 + col0 - ( - CAST( NULL AS DECIMAL ) ) - + + ( - - col2 ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7811
SELECT col0 + col0 - ( - CAST ( NULL AS REAL ) ) - + + ( - - col2 ) FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + 76 col1 FROM tab1
----
123
81
90

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 10 < NULL
----

query I rowsort
SELECT + 13 + - - col0 - col2 AS col2 FROM tab1
----
-32
36
39

query I rowsort
SELECT + + col1 * + ( + - ( + 94 ) ) + ( + col1 ) + - col0 - 14 * + 69 FROM tab0 AS cor0
----
-1156
-3006
-8514

query II rowsort
SELECT - - 93 + + 0 AS col1, - col2 FROM tab1 AS cor0
----
93
-59
93
-68
93
-96

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE col1 * - 11 = - col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7818
SELECT ALL + 53 + - + COUNT( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-7818
SELECT ALL + 53 + - + COUNT ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-7819
SELECT MIN( + 58 ) AS col0 FROM tab1 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-7819
SELECT MIN ( + 58 ) AS col0 FROM tab1 AS cor0
----
58

query I rowsort
SELECT DISTINCT col0 + + 79 FROM tab2 cor0
----
125
143
154

query I rowsort
SELECT DISTINCT - - 96 AS col0 FROM tab0 AS cor0
----
96

query I rowsort
SELECT - 85 * + + col0 FROM tab0
----
-1275
-7395
-8245

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7823
SELECT + CAST( NULL AS SIGNED ) * + COUNT( * ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7823
SELECT + CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col2 FROM tab1
----
NULL

query II rowsort
SELECT DISTINCT + + 47 AS col2, 56 AS col1 FROM tab2 AS cor0
----
47
56

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL = col1
----

query I rowsort
SELECT DISTINCT - ( + 33 ) FROM tab1 AS cor0
----
-33

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 50 + col0 IS NOT NULL
----

query II rowsort
SELECT ALL + col2, + 1 FROM tab1 AS cor0
----
59
1
68
1
96
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN 38 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7830
SELECT DISTINCT - col0 AS col2 FROM tab0 WHERE col0 >= CAST( NULL AS SIGNED ) * - col1
----

skipif mysql # not compatible
query I rowsort label-7830
SELECT DISTINCT - col0 AS col2 FROM tab0 WHERE col0 >= CAST ( NULL AS INTEGER ) * - col1
----

query I rowsort
SELECT DISTINCT 57 * + col2 * + col0 FROM tab0
----
40185
49590
547371

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 86 * - - ( - 71 ) * + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 26 * + col2 * + - 76 + col2 AS col0 FROM tab2
----
-114550
-45425
-79000

query I rowsort
SELECT ALL - 84 AS col2 FROM tab1
----
-84
-84
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-7835
SELECT DISTINCT col1 DIV col0 + col1 FROM tab0
----
1
21
86

skipif mysql # not compatible
query I rowsort label-7835
SELECT DISTINCT col1 / col0 + col1 FROM tab0
----
1
21
86

onlyif mysql # aggregate syntax: 
query I rowsort label-7836
SELECT ALL MAX( DISTINCT + - col2 ) AS col2 FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-7836
SELECT ALL MAX ( DISTINCT + - col2 ) AS col2 FROM tab2
----
-23

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7837
SELECT ALL ( ( + + 47 ) ), + CAST( NULL AS DECIMAL ) AS col2 FROM tab0, tab0 AS cor0
----
18 values hashing to b50a13afb5ecea9c19728aaf15a3df82

skipif mysql # not compatible
query II rowsort label-7837
SELECT ALL ( ( + + 47 ) ), + CAST ( NULL AS REAL ) AS col2 FROM tab0, tab0 AS cor0
----
18 values hashing to b50a13afb5ecea9c19728aaf15a3df82

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col2 + - 77 NOT BETWEEN NULL AND - col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7839
SELECT - CAST( NULL AS DECIMAL ) * + col0 AS col2, 20 FROM tab1 AS cor0
----
NULL
20
NULL
20
NULL
20

skipif mysql # not compatible
query II rowsort label-7839
SELECT - CAST ( NULL AS REAL ) * + col0 AS col2, 20 FROM tab1 AS cor0
----
NULL
20
NULL
20
NULL
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7840
SELECT ALL + - col2 * + - col2 * + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7840
SELECT ALL + - col2 * + - col2 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ( - col1 ) AS col2, - 54 AS col0 FROM tab2 AS cor0
----
-51
-54
-67
-54
-77
-54

query III rowsort
SELECT * FROM tab2 WHERE + + 51 + + + 10 + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL = col0
----

query I rowsort
SELECT 63 + 82 AS col0 FROM tab2 AS cor0
----
145
145
145

query I rowsort
SELECT ALL - col1 - 68 FROM tab2 AS cor0 WHERE ( - col1 IS NOT NULL )
----
-119
-135
-145

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7846
SELECT * FROM tab1 AS cor0 WHERE CAST( + + 38 AS DECIMAL ) - + col2 >= NULL
----

skipif mysql # not compatible
query III rowsort label-7846
SELECT * FROM tab1 AS cor0 WHERE CAST ( + + 38 AS REAL ) - + col2 >= NULL
----

query I rowsort
SELECT - + col1 + + 29 AS col2 FROM tab2 cor0
----
-22
-38
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-7848
SELECT DISTINCT + 76 - COUNT( * ) * - COUNT( * ) AS col2 FROM tab1 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-7848
SELECT DISTINCT + 76 - COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
85

query I rowsort
SELECT + col1 + - ( ( col0 ) ) AS col0 FROM tab2 AS cor0
----
-8
13
5

query II rowsort
SELECT DISTINCT - 93 AS col0, + 66 FROM tab0 AS cor0
----
-93
66

query I rowsort
SELECT col0 * + 74 * + - col0 FROM tab1
----
-192474
-534650
-612794

query II rowsort
SELECT + col1, - 77 FROM tab2
----
51
-77
67
-77
77
-77

query I rowsort
SELECT ALL - 58 AS col2 FROM tab1
----
-58
-58
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-7854
SELECT MIN( col1 ) * + COUNT( + col0 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7854
SELECT MIN ( col1 ) * + COUNT ( + col0 ) AS col1 FROM tab0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 98, - col2 + - 83 * col0 col0 FROM tab0
----
98
-1292
98
-7231
98
-8150

query I rowsort
SELECT ALL - 57 + + + 39 AS col2 FROM tab2
----
-18
-18
-18

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7857
SELECT * FROM tab2 WHERE - col1 + col2 * + + CAST( NULL AS SIGNED ) * + + 26 > NULL
----

skipif mysql # not compatible
query III rowsort label-7857
SELECT * FROM tab2 WHERE - col1 + col2 * + + CAST ( NULL AS INTEGER ) * + + 26 > NULL
----

query II rowsort
SELECT ALL col0 AS col0, col1 FROM tab0
----
15
81
87
21
97
1

query I rowsort
SELECT DISTINCT + 13 + + 10 FROM tab2
----
23

query II rowsort
SELECT - 31 - col1 AS col1, col0 * + 39 AS col0 FROM tab1
----
-36
3315
-45
1989
-78
3549

onlyif mysql # aggregate syntax: 
query I rowsort label-7861
SELECT DISTINCT SUM( + col0 ) FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-7861
SELECT DISTINCT SUM ( + col0 ) FROM tab2 AS cor0
----
185

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - col1 * - 27, - col2 col0 FROM tab0 AS cor0
----
2187
-47
27
-99
567
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-7863
SELECT + 70 DIV - 10 + - 40 col2 FROM tab1 cor0
----
-47
-47
-47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7863
SELECT + 70 / - 10 + - 40 col2 FROM tab1 cor0
----
-47
-47
-47

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 / + col2 IS NULL
----

query II rowsort
SELECT 39, col2 AS col0 FROM tab0 AS cor0
----
39
10
39
47
39
99

query II rowsort
SELECT DISTINCT - col2, 22 AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-23
22
-40
22
-58
22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( + ( 45 ) ) col2 FROM tab1 AS cor0
----
-45
-45
-45

query II rowsort
SELECT - col2 AS col2, - col1 AS col2 FROM tab2 AS cor0
----
-23
-51
-40
-77
-58
-67

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL > NULL
----

query I rowsort
SELECT col2 * - - 1 FROM tab2
----
23
40
58

query I rowsort
SELECT - + col2 AS col1 FROM tab0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7872
SELECT DISTINCT - + SUM( DISTINCT + col1 ) * - 42 + 40 AS col0 FROM tab2 AS cor0
----
8230

skipif mysql # not compatible
query I rowsort label-7872
SELECT DISTINCT - + SUM ( DISTINCT + col1 ) * - 42 + 40 AS col0 FROM tab2 AS cor0
----
8230

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 * - col0 + 66 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7874
SELECT + MAX( + + col0 ) AS col0 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-7874
SELECT + MAX ( + + col0 ) AS col0 FROM tab0 AS cor0
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7875
SELECT MIN( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7875
SELECT MIN ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7876
SELECT ALL MIN( col0 ) col2 FROM tab0
----
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7876
SELECT ALL MIN ( col0 ) col2 FROM tab0
----
15

query II rowsort
SELECT 67 AS col2, col2 AS col2 FROM tab0
----
67
10
67
47
67
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7878
SELECT ALL 83 + + CAST( NULL AS SIGNED ) + - col1 * - - col2 + + + col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7878
SELECT ALL 83 + + CAST ( NULL AS INTEGER ) + - col1 * - - col2 + + + col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7879
SELECT DISTINCT + 36 + COUNT( * ) FROM tab1
----
39

skipif mysql # not compatible
query I rowsort label-7879
SELECT DISTINCT + 36 + COUNT ( * ) FROM tab1
----
39

onlyif mysql # DIV for integer division: 
query II rowsort label-7880
SELECT col0, 51 DIV 81 + ( col2 ) FROM tab0
----
15
47
87
10
97
99

skipif mysql # not compatible
query II rowsort label-7880
SELECT col0, 51 / 81 + ( col2 ) FROM tab0
----
15
47
87
10
97
99

onlyif mysql # DIV for integer division: 
query I rowsort label-7881
SELECT + - col0 + + + col0 - 6 DIV - col2 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7881
SELECT + - col0 + + + col0 - 6 / - col2 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - col2 + col1 + + ( + col2 ) * + - col1 FROM tab0 AS cor0
----
-197
-199
-3773

query I rowsort
SELECT + col2 + + col2 - + + 18 FROM tab1 AS cor0
----
100
118
174

query I rowsort
SELECT DISTINCT + 11 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
11

query I rowsort
SELECT DISTINCT - col2 + 72 + + - col1 FROM tab2
----
-2
-45
-53

query I rowsort
SELECT ALL col0 * + col2 AS col2 FROM tab2 AS cor0 WHERE NULL < NULL
----

query I rowsort
SELECT + 85 FROM tab1 AS cor0 WHERE NULL IS NULL
----
85
85
85

onlyif mysql # aggregate syntax: 
query I rowsort label-7888
SELECT ALL - - 56 + + MAX( 90 ) AS col0 FROM tab1 AS cor0
----
146

skipif mysql # not compatible
query I rowsort label-7888
SELECT ALL - - 56 + + MAX ( 90 ) AS col0 FROM tab1 AS cor0
----
146

query I rowsort
SELECT ALL - 59 + + col2 * 27 AS col1 FROM tab0 cor0
----
1210
211
2614

query I rowsort
SELECT ALL ( 32 ) - - 4 FROM tab2 AS cor0
----
36
36
36

query I rowsort
SELECT col1 * + 54 - + - 95 AS col1 FROM tab2 AS cor0
----
2849
3713
4253

query I rowsort
SELECT ALL + col1 - + + 81 + col0 AS col1 FROM tab1 AS cor0
----
-16
57
9

query I rowsort
SELECT - col1 + - 61 AS col1 FROM tab0
----
-142
-62
-82

query I rowsort
SELECT - 41 + ( col2 ) AS col1 FROM tab0
----
-31
58
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( 79 ) col1 FROM tab1
----
-79
-79
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7896
SELECT DISTINCT col1 * - CAST( + col1 AS SIGNED ) AS col1 FROM tab1
----
-196
-2209
-25

skipif mysql # not compatible
query I rowsort label-7896
SELECT DISTINCT col1 * - CAST ( + col1 AS INTEGER ) AS col1 FROM tab1
----
-196
-2209
-25

query I rowsort
SELECT DISTINCT + 3 * + col1 * + 57 FROM tab0
----
13851
171
3591

query I rowsort
SELECT DISTINCT - 70 * - col0 FROM tab0
----
1050
6090
6790

query I rowsort
SELECT 30 FROM tab0 AS cor0 WHERE NOT - 5 - + + 98 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 <= - col1 * + + 9 + ( + - 4 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 WHERE - 85 * col0 <= - col1 * + + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + col1 AS col1, col1 FROM tab2
----
51
51
67
67
77
77

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL <> + + 94 * + + ( + 25 )
----

query I rowsort
SELECT 31 * col0 * col0 FROM tab0
----
234639
291679
6975

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL = - - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * 44 col2 FROM tab1 AS cor0
----
-2068
-220
-616

onlyif mysql # aggregate syntax: 
query I rowsort label-7907
SELECT ALL + MIN( ALL - col0 ) FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-7907
SELECT ALL + MIN ( ALL - col0 ) FROM tab0 AS cor0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-7908
SELECT DISTINCT - - SUM( + col2 ) FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-7908
SELECT DISTINCT - - SUM ( + col2 ) FROM tab2 AS cor0
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-7909
SELECT ( - + COUNT( * ) ) * MIN( + col2 ) AS col1 FROM tab0 AS cor0 WHERE NOT ( + col1 IS NULL )
----
-30

skipif mysql # not compatible
query I rowsort label-7909
SELECT ( - + COUNT ( * ) ) * MIN ( + col2 ) AS col1 FROM tab0 AS cor0 WHERE NOT ( + col1 IS NULL )
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-7910
SELECT + col1 DIV col2 * 25 * col0 FROM tab2 cor0
----
1600
1875
2300

skipif mysql # not compatible
query I rowsort label-7910
SELECT + col1 / col2 * 25 * col0 FROM tab2 cor0
----
1600
1875
2300

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 * + col0 + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - col0, + col1 AS col0 FROM tab0 AS cor0
----
-15
81
-87
21
-97
1

query I rowsort
SELECT - 83 + col1 * + col2 FROM tab1 AS cor0
----
1261
212
3113

query II rowsort
SELECT ALL col0, - 93 AS col2 FROM tab0 AS cor0
----
15
-93
87
-93
97
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-7915
SELECT + ( - 74 ) + - MIN( + 83 ) FROM tab2 AS cor0
----
-157

skipif mysql # not compatible
query I rowsort label-7915
SELECT + ( - 74 ) + - MIN ( + 83 ) FROM tab2 AS cor0
----
-157

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - 14 col1 FROM tab1
----
1344
826
952

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL BETWEEN 86 AND - + col1 + + ( + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7918
SELECT DISTINCT - 37 + - col0 * CAST( NULL AS SIGNED ) + + + col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7918
SELECT DISTINCT - 37 + - col0 * CAST ( NULL AS INTEGER ) + + + col1 FROM tab2
----
NULL

query I rowsort
SELECT col0 + col2 * + + 64 + + + col0 * + - 90 * - + 90 AS col1 FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
374118
521024
611287

query I rowsort
SELECT - 54 * + + 37 FROM tab0 AS cor0
----
-1998
-1998
-1998

onlyif mysql # aggregate syntax: 
query I rowsort label-7921
SELECT 22 - + - COUNT( - col1 ) FROM tab0
----
25

skipif mysql # not compatible
query I rowsort label-7921
SELECT 22 - + - COUNT ( - col1 ) FROM tab0
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7922
SELECT DISTINCT * FROM tab1 WHERE NOT - - col0 NOT BETWEEN + col0 * + CAST( - col0 AS SIGNED ) + + col1 * + 18 / col1 - - col1 AND NULL
----

skipif mysql # not compatible
query III rowsort label-7922
SELECT DISTINCT * FROM tab1 WHERE NOT - - col0 NOT BETWEEN + col0 * + CAST ( - col0 AS INTEGER ) + + col1 * + 18 / col1 - - col1 AND NULL
----

query I rowsort
SELECT ALL - col0 + - - col0 AS col2 FROM tab0 AS cor0
----
0
0
0

query II rowsort
SELECT - + 36 AS col2, 84 AS col1 FROM tab1 AS cor0
----
-36
84
-36
84
-36
84

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7925
SELECT ALL + - col2 * - 61 - 99 * - - CAST( NULL AS DECIMAL ) * + + col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7925
SELECT ALL + - col2 * - 61 - 99 * - - CAST ( NULL AS REAL ) * + + col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7926
SELECT DISTINCT - COUNT( * ) FROM tab0 AS cor0 WHERE col1 + + 66 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7926
SELECT DISTINCT - COUNT ( * ) FROM tab0 AS cor0 WHERE col1 + + 66 IS NULL
----
0

query I rowsort
SELECT DISTINCT + 7 - - 42 FROM tab0 AS cor0
----
49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 AS col1, col0 col2 FROM tab0 AS cor0
----
10
87
47
15
99
97

query I rowsort
SELECT DISTINCT col0 - col1 + - + col1 * - 69 AS col0 FROM tab0 AS cor0
----
1515
165
5523

onlyif mysql # aggregate syntax: 
query I rowsort label-7930
SELECT - COUNT( DISTINCT col1 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7930
SELECT - COUNT ( DISTINCT col1 ) FROM tab1 AS cor0
----
-3

query II rowsort
SELECT ALL col1 * col0 * - col0 AS col0, + col0 AS col0 FROM tab2 AS cor0 WHERE col2 * col0 IS NULL
----

query I rowsort
SELECT - ( - + col0 ) FROM tab0 AS cor0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7933
SELECT + ( + - SUM( ALL + ( - col0 ) ) ) * COUNT( * ) AS col0 FROM tab1
----
681

skipif mysql # not compatible
query I rowsort label-7933
SELECT + ( + - SUM ( ALL + ( - col0 ) ) ) * COUNT ( * ) AS col0 FROM tab1
----
681

onlyif mysql # aggregate syntax: 
query I rowsort label-7934
SELECT - COUNT( * ) AS col1 FROM tab1 WHERE NOT - - col2 - + col1 BETWEEN NULL AND - + col2
----
-3

skipif mysql # not compatible
query I rowsort label-7934
SELECT - COUNT ( * ) AS col1 FROM tab1 WHERE NOT - - col2 - + col1 BETWEEN NULL AND - + col2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7935
SELECT DISTINCT - COUNT( - 27 ) * + - ( - COUNT( * ) ) FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-7935
SELECT DISTINCT - COUNT ( - 27 ) * + - ( - COUNT ( * ) ) FROM tab2
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * 77 col1 FROM tab2
----
3927
5159
5929

query I rowsort
SELECT ALL col2 * - + 50 AS col2 FROM tab1
----
-2950
-3400
-4800

query I rowsort
SELECT DISTINCT - col2 - col1 FROM tab1 WHERE NOT col1 IS NULL
----
-110
-115
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-7939
SELECT 24 DIV - col2 + col2 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-7939
SELECT 24 / - col2 + col2 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7940
SELECT + COUNT( * ) DIV + COUNT( + - 98 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7940
SELECT + COUNT ( * ) / + COUNT ( + - 98 ) FROM tab1 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7941
SELECT ALL - COUNT( * ) AS col2 FROM tab1 cor0 WHERE - 56 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-7941
SELECT ALL - COUNT ( * ) AS col2 FROM tab1 cor0 WHERE - 56 = NULL
----
0

query I rowsort
SELECT DISTINCT col0 * + col1 * - col1 FROM tab2 AS cor0
----
-119646
-336675
-379456

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7943
SELECT DISTINCT CAST( NULL AS DECIMAL ) * - col2 col0 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7943
SELECT DISTINCT CAST ( NULL AS REAL ) * - col2 col0 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7944
SELECT + COUNT( * ) * + ( - 70 ) AS col2 FROM tab1 AS cor0
----
-210

skipif mysql # not compatible
query I rowsort label-7944
SELECT + COUNT ( * ) * + ( - 70 ) AS col2 FROM tab1 AS cor0
----
-210

query I rowsort
SELECT + - col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL AND ( NOT NULL = col2 / - 86 )
----

query III rowsort
SELECT - col1 AS col2, 5 + + + col0 AS col0, - 82 FROM tab0 AS cor0
----
9 values hashing to c8a7dfde11bb8a81fa5adea87c602754

query II rowsort
SELECT DISTINCT col1 + + 36 * col2 AS col0, col2 + - ( - col1 ) FROM tab2 AS cor0
----
1517
117
2155
125
879
74

query I rowsort
SELECT 60 * - + col1 + + 86 AS col2 FROM tab1 AS cor0
----
-214
-2734
-754

query I rowsort
SELECT DISTINCT col0 * - 98 AS col2 FROM tab0 AS cor0
----
-1470
-8526
-9506

query II rowsort
SELECT - - col0, 41 AS col1 FROM tab1 AS cor0
----
51
41
85
41
91
41

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 - + 22 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col1 FROM tab2 cor0 WHERE NOT - col0 > - - 41
----
-51
-67
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7953
SELECT ALL - - CAST( NULL AS SIGNED ) * - COUNT( * ) + + - 54 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7953
SELECT ALL - - CAST ( NULL AS INTEGER ) * - COUNT ( * ) + + - 54 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL - col2 * - + col2 AS col2 FROM tab1
----
3481
4624
9216

onlyif mysql # aggregate syntax: 
query I rowsort label-7955
SELECT ALL SUM( DISTINCT - ( + col0 ) ) * - ( - COUNT( * ) ) AS col1 FROM tab0
----
-597

skipif mysql # not compatible
query I rowsort label-7955
SELECT ALL SUM ( DISTINCT - ( + col0 ) ) * - ( - COUNT ( * ) ) AS col1 FROM tab0
----
-597

onlyif mysql # DIV for integer division: 
query I rowsort label-7956
SELECT - 29 DIV - col1 AS col0 FROM tab1
----
0
2
5

skipif mysql # not compatible
query I rowsort label-7956
SELECT - 29 / - col1 AS col0 FROM tab1
----
0
2
5

query I rowsort
SELECT ALL + ( 43 ) + 12 * + - 86 + 76 AS col2 FROM tab1
----
-913
-913
-913

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7958
SELECT DISTINCT + 9 DIV + SUM( + - 46 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7958
SELECT DISTINCT + 9 / + SUM ( + - 46 ) FROM tab2
----
0

query I rowsort
SELECT DISTINCT col1 * col2 + + col2 * col0 * col0 FROM tab1
----
251040
426570
566304

onlyif mysql # DIV for integer division: 
query I rowsort label-7960
SELECT ALL - col0 DIV 73 + - - 2 FROM tab1
----
1
1
2

skipif mysql # not compatible
query I rowsort label-7960
SELECT ALL - col0 / 73 + - - 2 FROM tab1
----
1
1
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - - 83 + - - col1 col2 FROM tab2 WHERE ( NOT col2 * + ( + + col2 ) + ( - 35 ) = + - col1 * - - ( + col1 ) + - 58 )
----
1960
3397
4881

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7962
SELECT CAST( ( + - col0 ) AS SIGNED ) + - - col1 * - 21 AS col1 FROM tab1
----
-1078
-190
-345

skipif mysql # not compatible
query I rowsort label-7962
SELECT CAST ( ( + - col0 ) AS INTEGER ) + - - col1 * - 21 AS col1 FROM tab1
----
-1078
-190
-345

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7963
SELECT ALL + - col1 FROM tab0 cor0 WHERE CAST( NULL AS SIGNED ) IS NULL
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-7963
SELECT ALL + - col1 FROM tab0 cor0 WHERE CAST ( NULL AS INTEGER ) IS NULL
----
-1
-21
-81

query I rowsort
SELECT DISTINCT - col2 * + col1 + - col1 FROM tab2 AS cor0
----
-1224
-3157
-3953

query I rowsort
SELECT ALL col1 + + + 88 * col1 FROM tab2 AS cor0
----
4539
5963
6853

query I rowsort
SELECT DISTINCT + col1 * + - ( + col0 ) + - 12 FROM tab2 AS cor0
----
-2358
-4940
-5037

query I rowsort
SELECT ALL col0 * - col0 - col0 + - 14 + 97 FROM tab1 cor0
----
-2569
-7227
-8289

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7968
SELECT COUNT( DISTINCT col0 ) + - CAST( NULL AS DECIMAL ) col0 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7968
SELECT COUNT ( DISTINCT col0 ) + - CAST ( NULL AS REAL ) col0 FROM tab0 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 93 + - - col1 col2, col2 FROM tab1 AS cor0
----
107
96
140
68
98
59

query II rowsort
SELECT DISTINCT 30 * + + col1 AS col1, - col2 FROM tab1
----
1410
-68
150
-59
420
-96

query I rowsort
SELECT ALL + + col0 + + + col0 AS col0 FROM tab1 AS cor0
----
102
170
182

query I rowsort
SELECT ALL + + ( + col2 ) - 46 FROM tab0 cor0
----
-36
1
53

query I rowsort
SELECT ALL - col0 AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - - 22 AS col0 FROM tab2 AS cor0
----
22
22
22

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 * - 4 BETWEEN - 76 AND - + 5 - - - col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7976
SELECT DISTINCT + + CAST( + + COUNT( * ) AS SIGNED ) AS col0, - 94 + 77 DIV COUNT( * ) * - + 42 FROM tab1 cor0
----
3
-1144

skipif mysql # not compatible
query II rowsort label-7976
SELECT DISTINCT + + CAST ( + + COUNT ( * ) AS INTEGER ) AS col0, - 94 + 77 / COUNT ( * ) * - + 42 FROM tab1 cor0
----
3
-1144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7977
SELECT - CAST( NULL AS SIGNED ) * - col1 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7977
SELECT - CAST ( NULL AS INTEGER ) * - col1 AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7978
SELECT MAX( ALL - + col2 ) FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-7978
SELECT MAX ( ALL - + col2 ) FROM tab2
----
-23

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 93 - - ( - - 94 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 8 col1 FROM tab2
----
8
8
8

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7981
SELECT DISTINCT col1 AS col2, - 87 * CAST( NULL AS DECIMAL ) AS col2 FROM tab2
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-7981
SELECT DISTINCT col1 AS col2, - 87 * CAST ( NULL AS REAL ) AS col2 FROM tab2
----
51
NULL
67
NULL
77
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7982
SELECT MIN( - 39 ) * + + CAST( NULL AS DECIMAL ) + - 33 FROM tab1 WHERE NOT - + 42 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7982
SELECT MIN ( - 39 ) * + + CAST ( NULL AS REAL ) + - 33 FROM tab1 WHERE NOT - + 42 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7983
SELECT ALL CAST( 99 AS SIGNED ) FROM tab0
----
99
99
99

skipif mysql # not compatible
query I rowsort label-7983
SELECT ALL CAST ( 99 AS INTEGER ) FROM tab0
----
99
99
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7984
SELECT DISTINCT + + MAX( ALL 43 ) AS col0 FROM tab2 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-7984
SELECT DISTINCT + + MAX ( ALL 43 ) AS col0 FROM tab2 AS cor0
----
43

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 73 * col1 + + + col2 BETWEEN + - col1 AND NULL
----

query II rowsort
SELECT col1 AS col0, col0 * 14 FROM tab0 AS cor0
----
1
1358
21
1218
81
210

query II rowsort
SELECT DISTINCT - col0 + + - 51, col0 FROM tab0
----
-138
87
-148
97
-66
15

query I rowsort
SELECT ALL 53 AS col1 FROM tab0 AS cor0 WHERE + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7989
SELECT DISTINCT - 52 * + col0 - + CAST( NULL AS SIGNED ) + - col2 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7989
SELECT DISTINCT - 52 * + col0 - + CAST ( NULL AS INTEGER ) + - col2 FROM tab1 cor0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 * - col1 NOT BETWEEN NULL AND + ( + col0 ) - + ( + col2 )
----

query I rowsort
SELECT DISTINCT - - 32 * + + col0 FROM tab2 AS cor0
----
1472
2048
2400

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - ( + 15 ) + - col1 NOT BETWEEN NULL AND + - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7993
SELECT col2 * + + 91 + + - CAST( - + 58 AS SIGNED ) AS col1 FROM tab2
----
2151
3698
5336

skipif mysql # not compatible
query I rowsort label-7993
SELECT col2 * + + 91 + + - CAST ( - + 58 AS INTEGER ) AS col1 FROM tab2
----
2151
3698
5336

query I rowsort
SELECT ALL col2 * + col1 * 25 FROM tab2
----
29325
77000
97150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7995
SELECT - + COUNT( + - col1 ) - - CAST( NULL AS SIGNED ) + - 9 FROM tab1 WHERE - col2 + + col1 * + col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7995
SELECT - + COUNT ( + - col1 ) - - CAST ( NULL AS INTEGER ) + - 9 FROM tab1 WHERE - col2 + + col1 * + col2 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7996
SELECT DISTINCT col0 * + col2 + - CAST( NULL AS SIGNED ) * 61 / + + col2 + 88, col1 AS col1 FROM tab2
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-7996
SELECT DISTINCT col0 * + col2 + - CAST ( NULL AS INTEGER ) * 61 / + + col2 + 88, col1 AS col1 FROM tab2
----
NULL
51
NULL
67
NULL
77

query I rowsort
SELECT - 64 AS col1 FROM tab1 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE 72 + col0 IS NULL
----

query I rowsort
SELECT ALL + col0 + - 18 AS col2 FROM tab1 AS cor0
----
33
67
73

query I rowsort
SELECT col0 - - 99 AS col0 FROM tab0 AS cor0
----
114
186
196

query I rowsort
SELECT - col2 - 37 AS col1 FROM tab1 AS cor0
----
-105
-133
-96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8002
SELECT * FROM tab2 AS cor0 WHERE NULL < CAST( col0 AS SIGNED ) + + col0 + - col2 * + ( - col1 )
----

skipif mysql # not compatible
query III rowsort label-8002
SELECT * FROM tab2 AS cor0 WHERE NULL < CAST ( col0 AS INTEGER ) + + col0 + - col2 * + ( - col1 )
----

query II rowsort
SELECT ALL + 89, col1 AS col0 FROM tab0 AS cor0
----
89
1
89
21
89
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 70 - - - col2 * 30 col0, 68 FROM tab0 AS cor0
----
-1340
68
-230
68
-2900
68

onlyif mysql # DIV for integer division: 
query II rowsort label-8005
SELECT ALL col2 DIV - - col2 AS col0, - col2 AS col0 FROM tab2
----
1
-23
1
-40
1
-58

skipif mysql # not compatible
query II rowsort label-8005
SELECT ALL col2 / - - col2 AS col0, - col2 AS col0 FROM tab2
----
1
-23
1
-40
1
-58

query I rowsort
SELECT 61 + col1 + col1 + col1 FROM tab2
----
214
262
292

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8007
SELECT - - col2 + + - 20 AS col2, + col2 - + + col2 FROM tab1 WHERE + col0 - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-8007
SELECT - - col2 + + - 20 AS col2, + col2 - + + col2 FROM tab1 WHERE + col0 - CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT ALL - 92 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1af709a79a3e56281ffdce4d931d5965

query II rowsort
SELECT ALL - ( + col2 ), - col2 FROM tab2 AS cor0
----
-23
-23
-40
-40
-58
-58

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8010
SELECT - + col1 DIV - col0 AS col1, CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
0
NULL
0
NULL
0
NULL

skipif mysql # not compatible
query II rowsort label-8010
SELECT - + col1 / - col0 AS col1, CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
0
NULL
0
NULL
0
NULL

query I rowsort
SELECT DISTINCT - col2 * + + col1 * - col1 FROM tab1 cor0
----
1475
150212
18816

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8012
SELECT DISTINCT CAST( + + SUM( ALL - col0 ) AS SIGNED ) * 58 + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8012
SELECT DISTINCT CAST ( + + SUM ( ALL - col0 ) AS INTEGER ) * 58 + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + 92 FROM tab2 cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8014
SELECT - SUM( ALL - - 72 ) AS col0 FROM tab1 AS cor0
----
-216

skipif mysql # not compatible
query I rowsort label-8014
SELECT - SUM ( ALL - - 72 ) AS col0 FROM tab1 AS cor0
----
-216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - 44 col2, - 91 AS col0 FROM tab0 AS cor0
----
-44
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-8016
SELECT ALL COUNT( 33 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8016
SELECT ALL COUNT ( 33 ) AS col0 FROM tab2 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 79, - col2 col0 FROM tab1 cor0
----
-79
-59
-79
-68
-79
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-8018
SELECT DISTINCT - 74 DIV + col2 AS col1 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-8018
SELECT DISTINCT - 74 / + col2 AS col1 FROM tab1
----
-1
0

query I rowsort
SELECT ALL col1 FROM tab2 WHERE col1 + 91 * - col2 = NULL
----

query I rowsort
SELECT col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
51
67
77

query III rowsort
SELECT * FROM tab2 WHERE NOT + - 87 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8022
SELECT + + COUNT( * ) FROM tab0 WHERE NOT NULL <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-8022
SELECT + + COUNT ( * ) FROM tab0 WHERE NOT NULL <= NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8023
SELECT col1 DIV + 21 + 92 FROM tab1 AS cor0
----
92
92
94

skipif mysql # not compatible
query I rowsort label-8023
SELECT col1 / + 21 + 92 FROM tab1 AS cor0
----
92
92
94

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 92 NOT BETWEEN col1 AND + col1 + - + ( 37 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8025
SELECT * FROM tab0 AS cor0 WHERE NOT col1 * + CAST( NULL AS SIGNED ) + - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8025
SELECT * FROM tab0 AS cor0 WHERE NOT col1 * + CAST ( NULL AS INTEGER ) + - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8026
SELECT - + 6 + + - SUM( ALL + col2 ) AS col0 FROM tab2 AS cor0 WHERE NOT + col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8026
SELECT - + 6 + + - SUM ( ALL + col2 ) AS col0 FROM tab2 AS cor0 WHERE NOT + col2 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8027
SELECT - ( + - CAST( NULL AS DECIMAL ) ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8027
SELECT - ( + - CAST ( NULL AS REAL ) ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8028
SELECT + - MAX( DISTINCT 52 ) AS col0 FROM tab0 cor0
----
-52

skipif mysql # not compatible
query I rowsort label-8028
SELECT + - MAX ( DISTINCT 52 ) AS col0 FROM tab0 cor0
----
-52

query I rowsort
SELECT ALL + - col1 * - col0 AS col0 FROM tab1 cor0
----
425
4277
714

query III rowsort
SELECT * FROM tab2 WHERE + - 13 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8031
SELECT * FROM tab0 WHERE + col1 * - ( CAST( + + 14 AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-8031
SELECT * FROM tab0 WHERE + col1 * - ( CAST ( + + 14 AS INTEGER ) ) IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8032
SELECT * FROM tab2 WHERE col1 * ( col0 ) / 48 * - 9 * - + CAST( + + 52 AS DECIMAL ) = col1 * + + col2
----

skipif mysql # not compatible
query III rowsort label-8032
SELECT * FROM tab2 WHERE col1 * ( col0 ) / 48 * - 9 * - + CAST ( + + 52 AS REAL ) = col1 * + + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8033
SELECT CAST( NULL AS SIGNED ) + - col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8033
SELECT CAST ( NULL AS INTEGER ) + - col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8034
SELECT CAST( - COUNT( + + 2 ) AS SIGNED ) + 65 AS col0 FROM tab2
----
62

skipif mysql # not compatible
query I rowsort label-8034
SELECT CAST ( - COUNT ( + + 2 ) AS INTEGER ) + 65 AS col0 FROM tab2
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-8035
SELECT ALL + col1 DIV + col2 + + col2 * - + 8 * - + col2 - 45 FROM tab2
----
12756
26868
4189

skipif mysql # not compatible
query I rowsort label-8035
SELECT ALL + col1 / + col2 + + col2 * - + 8 * - + col2 - 45 FROM tab2
----
12756
26868
4189

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col1 * + - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8037
SELECT DISTINCT CAST( + + 12 AS SIGNED ) - MAX( - col2 ) AS col2 FROM tab0 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-8037
SELECT DISTINCT CAST ( + + 12 AS INTEGER ) - MAX ( - col2 ) AS col2 FROM tab0 AS cor0
----
22

query I rowsort
SELECT DISTINCT + + 2 * col2 FROM tab0 cor0
----
198
20
94

onlyif mysql # DIV for integer division: 
query I rowsort label-8039
SELECT DISTINCT - 65 DIV 38 AS col0 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8039
SELECT DISTINCT - 65 / 38 AS col0 FROM tab2 AS cor0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8040
SELECT col2 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND CAST( + 27 AS SIGNED ) * + + col1 * - col1 * 0
----

skipif mysql # not compatible
query I rowsort label-8040
SELECT col2 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND CAST ( + 27 AS INTEGER ) * + + col1 * - col1 * 0
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( - 22 ) * + + 32 BETWEEN + ( + col0 ) AND col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8042
SELECT DISTINCT AVG ( ALL + - CAST( NULL AS SIGNED ) ) col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8042
SELECT DISTINCT AVG ( ALL + - CAST ( NULL AS INTEGER ) ) col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 * col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8044
SELECT + SUM( - col2 ) FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-8044
SELECT + SUM ( - col2 ) FROM tab0
----
-156

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1, - col2 + + - col1 + col2 col0 FROM tab2
----
51
-51
67
-67
77
-77

query III rowsort
SELECT DISTINCT col2 AS col0, 19 - + 77 + - 51, col1 FROM tab1
----
9 values hashing to d3a91436b6be9f3152400258c4d280e5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8047
SELECT col2 * - + CAST( + + ( + 18 ) AS SIGNED ) FROM tab2
----
-1044
-414
-720

skipif mysql # not compatible
query I rowsort label-8047
SELECT col2 * - + CAST ( + + ( + 18 ) AS INTEGER ) FROM tab2
----
-1044
-414
-720

onlyif mysql # aggregate syntax: 
query I rowsort label-8048
SELECT DISTINCT + COUNT( * ) * - COUNT( * ) AS col1 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-8048
SELECT DISTINCT + COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab0
----
-9

query II rowsort
SELECT ALL col2 * + ( - col0 ) * col0, - col0 AS col1 FROM tab2
----
-163840
-64
-326250
-75
-48668
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-8050
SELECT DISTINCT col2 DIV - + ( + + col0 ) col2 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8050
SELECT DISTINCT col2 / - + ( + + col0 ) col2 FROM tab2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8051
SELECT - 8 DIV - 11 AS col1, 2 + + + AVG ( DISTINCT - + 0 ) * - COUNT( * ) FROM tab1 WHERE NOT NULL > NULL
----
0
NULL

skipif mysql # not compatible
query II rowsort label-8051
SELECT - 8 / - 11 AS col1, 2 + + + AVG ( DISTINCT - + 0 ) * - COUNT ( * ) FROM tab1 WHERE NOT NULL > NULL
----
0
NULL

query II rowsort
SELECT + col1, col1 * col0 AS col0 FROM tab2 cor0
----
51
2346
67
5025
77
4928

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8053
SELECT - COUNT( * ) * + + CAST( - 8 AS SIGNED ) FROM tab0 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-8053
SELECT - COUNT ( * ) * + + CAST ( - 8 AS INTEGER ) FROM tab0 AS cor0
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-8054
SELECT - ( + col0 ) DIV 54 col1 FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8054
SELECT - ( + col0 ) / 54 col1 FROM tab1 AS cor0
----
-1
-1
0

query I rowsort
SELECT DISTINCT - + col0 AS col0 FROM tab0 AS cor0 WHERE - col2 IS NOT NULL
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8056
SELECT + 34 * + SUM( ALL 91 ) AS col0 FROM tab0 AS cor0
----
9282

skipif mysql # not compatible
query I rowsort label-8056
SELECT + 34 * + SUM ( ALL 91 ) AS col0 FROM tab0 AS cor0
----
9282

query I rowsort
SELECT ALL - col0 + - col1 * - 58 * - col0 FROM tab0 cor0
----
-106053
-5723
-70485

query I rowsort
SELECT - col2 * - + col1 + - + 80 + + - 16 AS col2 FROM tab1 AS cor0
----
1248
199
3100

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8060
SELECT DISTINCT COUNT( ALL + col1 ) + + + 50 AS col2 FROM tab0 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-8060
SELECT DISTINCT COUNT ( ALL + col1 ) + + + 50 AS col2 FROM tab0 AS cor0
----
53

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col0 >= + - col0 / + - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8062
SELECT DISTINCT MIN( DISTINCT + col0 ) - + COUNT( * ) * COUNT( * ) FROM tab2 AS cor0
----
37

skipif mysql # not compatible
query I rowsort label-8062
SELECT DISTINCT MIN ( DISTINCT + col0 ) - + COUNT ( * ) * COUNT ( * ) FROM tab2 AS cor0
----
37

onlyif mysql # aggregate syntax: 
query II rowsort label-8063
SELECT + SUM( DISTINCT 35 ) AS col1, - COUNT( * ) AS col0 FROM tab2 AS cor0
----
35
-3

skipif mysql # not compatible
query II rowsort label-8063
SELECT + SUM ( DISTINCT 35 ) AS col1, - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
35
-3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( 38, col0 * + - ( col0 ) )
----

query I rowsort
SELECT DISTINCT 46 - + + 7 FROM tab1
----
39

query I rowsort
SELECT + col0 * + ( + 74 ) AS col0 FROM tab1
----
3774
6290
6734

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8067
SELECT 66 DIV + COUNT( * ) AS col1 FROM tab0
----
22

skipif mysql # not compatible
query I rowsort label-8067
SELECT 66 / + COUNT ( * ) AS col1 FROM tab0
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8068
SELECT ALL * FROM tab2 WHERE NOT CAST( CAST( - 33 AS SIGNED ) AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8068
SELECT ALL * FROM tab2 WHERE NOT CAST ( CAST ( - 33 AS INTEGER ) AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8069
SELECT - CAST( 59 AS SIGNED ) * + - 30 * + col0 AS col2 FROM tab2
----
113280
132750
81420

skipif mysql # not compatible
query I rowsort label-8069
SELECT - CAST ( 59 AS INTEGER ) * + - 30 * + col0 AS col2 FROM tab2
----
113280
132750
81420

query I rowsort
SELECT + 70 - col0 + - 32 * + ( + col1 ) FROM tab1 AS cor0
----
-1525
-175
-429

query I rowsort
SELECT - col2 - 75 AS col0 FROM tab0 AS cor0
----
-122
-174
-85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 81 col1 FROM tab2 AS cor0
----
81
81
81

onlyif mysql # DIV for integer division: 
query I rowsort label-8073
SELECT - col1 + + col1 DIV + col0 col2 FROM tab0
----
-1
-21
-76

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8073
SELECT - col1 + + col1 / + col0 col2 FROM tab0
----
-1
-21
-76

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col2 < 87
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8075
SELECT 55 + - MIN( DISTINCT + ( + 98 ) ) FROM tab2
----
-43

skipif mysql # not compatible
query I rowsort label-8075
SELECT 55 + - MIN ( DISTINCT + ( + 98 ) ) FROM tab2
----
-43

query I rowsort
SELECT DISTINCT 37 + - col2 FROM tab1
----
-22
-31
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-8077
SELECT DISTINCT + col1 DIV - col1 - + col2 AS col2 FROM tab0
----
-100
-11
-48

skipif mysql # not compatible
query I rowsort label-8077
SELECT DISTINCT + col1 / - col1 - + col2 AS col2 FROM tab0
----
-100
-11
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-8078
SELECT + ( + 58 ) DIV 50 + 94 FROM tab2
----
95
95
95

skipif mysql # not compatible
query I rowsort label-8078
SELECT + ( + 58 ) / 50 + 94 FROM tab2
----
95
95
95

onlyif mysql # aggregate syntax: 
query I rowsort label-8079
SELECT MAX( ALL ( 31 ) ) AS col1 FROM tab0
----
31

skipif mysql # not compatible
query I rowsort label-8079
SELECT MAX ( ALL ( 31 ) ) AS col1 FROM tab0
----
31

query I rowsort
SELECT ALL + 83 + col1 FROM tab2
----
134
150
160

query III rowsort
SELECT * FROM tab1 WHERE 81 NOT BETWEEN ( + col1 ) AND 95
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8082
SELECT DISTINCT - 91 + + MIN( - col0 ) AS col2 FROM tab1
----
-182

skipif mysql # not compatible
query I rowsort label-8082
SELECT DISTINCT - 91 + + MIN ( - col0 ) AS col2 FROM tab1
----
-182

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + - col1 col2 FROM tab1 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE ( + col2 ) >= - col1 / ( col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8085
SELECT DISTINCT * FROM tab0 WHERE ( + CAST( - col2 AS DECIMAL ) - + 49 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8085
SELECT DISTINCT * FROM tab0 WHERE ( + CAST ( - col2 AS REAL ) - + 49 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 42 * 45 <= - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col2 FROM tab2 WHERE NOT ( NULL ) BETWEEN - col0 + col1 AND col1
----

query I rowsort
SELECT col1 + - col1 * + col1 AS col1 FROM tab1
----
-182
-20
-2162

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col1 ) NOT IN ( col1 * + col2 )
----

query I rowsort
SELECT 39 + + col1 AS col0 FROM tab2
----
106
116
90

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT IN ( 71 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 NOT BETWEEN ( - 49 ) AND - 12 * col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + 9 col2 FROM tab0 AS cor0
----
135
783
873

query I rowsort
SELECT 36 * + 76 FROM tab2 AS cor0
----
2736
2736
2736

onlyif mysql # aggregate syntax: 
query I rowsort label-8095
SELECT DISTINCT + MAX( ALL col1 ) AS col0 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-8095
SELECT DISTINCT + MAX ( ALL col1 ) AS col0 FROM tab1 AS cor0
----
47

query I rowsort
SELECT ( - col0 ) + + 55 * + 97 AS col0 FROM tab2 cor0
----
5260
5271
5289

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab0 cor0 WHERE NOT col1 = ( col0 ) + col0 * - col2
----
15
87
97

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL IN ( col0 )
----

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab1 WHERE NOT + col0 NOT IN ( col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8100
SELECT ALL CAST( + 17 AS SIGNED ) * - 37 AS col1 FROM tab0
----
-629
-629
-629

skipif mysql # not compatible
query I rowsort label-8100
SELECT ALL CAST ( + 17 AS INTEGER ) * - 37 AS col1 FROM tab0
----
-629
-629
-629

query III rowsort
SELECT * FROM tab0 WHERE + col0 <> col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8102
SELECT + CAST( - ( + 15 ) AS SIGNED ) FROM tab1 AS cor0
----
-15
-15
-15

skipif mysql # not compatible
query I rowsort label-8102
SELECT + CAST ( - ( + 15 ) AS INTEGER ) FROM tab1 AS cor0
----
-15
-15
-15

query III rowsort
SELECT * FROM tab2 cor0 WHERE 67 - - 47 * col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8104
SELECT ALL MIN( col0 ) * CAST( NULL AS SIGNED ) + + 46 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8104
SELECT ALL MIN ( col0 ) * CAST ( NULL AS INTEGER ) + + 46 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - - col2 + 11 AS col0 FROM tab2 AS cor0
----
34
51
69

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8106
SELECT ALL CAST( NULL AS SIGNED ) - - CAST( ( + col0 ) AS DECIMAL ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8106
SELECT ALL CAST ( NULL AS INTEGER ) - - CAST ( ( + col0 ) AS REAL ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col0 + 82 > ( NULL )
----

query I rowsort
SELECT ALL - + col1 + col2 * + 49 FROM tab1 AS cor0
----
2886
3285
4690

query I rowsort
SELECT DISTINCT + 33 FROM tab2 AS cor0 WHERE NOT col2 < col2 * col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8110
SELECT DISTINCT - MAX( ALL + - col1 ) col1 FROM tab2
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8110
SELECT DISTINCT - MAX ( ALL + - col1 ) col1 FROM tab2
----
51

query I rowsort
SELECT + col2 + + 65 AS col1 FROM tab0
----
112
164
75

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 50 + 78 <> - 19 * + col0
----

query I rowsort
SELECT ALL 36 + - col0 * - col0 FROM tab1 WHERE NOT col0 + 72 = - col1
----
2637
7261
8317

query III rowsort
SELECT * FROM tab0 WHERE 18 > ( NULL )
----

query I rowsort
SELECT - 43 + - + col0 FROM tab0
----
-130
-140
-58

query I rowsort
SELECT ALL + col2 - - 38 FROM tab1
----
106
134
97

query I rowsort
SELECT ALL ( + + 95 ) FROM tab0
----
95
95
95

query I rowsort
SELECT + col2 + - - col0 + - col0 FROM tab1
----
59
68
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 71 * + col2 col1 FROM tab2
----
1633
2840
4118

query I rowsort
SELECT col2 AS col0 FROM tab1 WHERE + ( + col0 ) IS NOT NULL
----
59
68
96

query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( 78 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8122
SELECT DISTINCT - SUM( + + col0 ) FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-8122
SELECT DISTINCT - SUM ( + + col0 ) FROM tab2 AS cor0
----
-185

query I rowsort
SELECT ALL col2 + + ( - 53 ) FROM tab0 cor0 WHERE + col0 + col1 <> + ( col2 )
----
-43
-6
46

query I rowsort
SELECT ALL AVG ( 62 ) * 15 AS col0 FROM tab0 AS cor0 WHERE ( 88 ) IS NULL
----
NULL

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL >= ( - 83 ) * col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 17 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 91 FROM tab1 WHERE + + col2 IS NOT NULL
----
91

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 = 7
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) BETWEEN + col0 AND ( - col0 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 < ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-8131
SELECT ALL - 46 DIV 18 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ec11209ab257030053484fc13a1f6d17

skipif mysql # not compatible
query I rowsort label-8131
SELECT ALL - 46 / 18 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ec11209ab257030053484fc13a1f6d17

query I rowsort
SELECT - col2 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8133
SELECT ALL COUNT( ALL + col0 ) AS col0 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8133
SELECT ALL COUNT ( ALL + col0 ) AS col0 FROM tab1 cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) IN ( - col2 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 48 <= 42 + - ( col0 - col1 ) / - ( col0 * + 69 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8136
SELECT ALL col0 FROM tab2 AS cor0 WHERE NOT col0 NOT IN ( + + CAST( + col0 AS SIGNED ) )
----
46
64
75

skipif mysql # not compatible
query I rowsort label-8136
SELECT ALL col0 FROM tab2 AS cor0 WHERE NOT col0 NOT IN ( + + CAST ( + col0 AS INTEGER ) )
----
46
64
75

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( + - 32 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col0 + + - 79 AS col2 FROM tab2
----
-15
-33
-4

query I rowsort
SELECT 19 + - + col2 FROM tab0
----
-28
-80
9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8140
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT IN ( + - col1 * CAST( + col0 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8140
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT IN ( + - col1 * CAST ( + col0 AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8141
SELECT DISTINCT col1 * - CAST( - - col1 AS SIGNED ) AS col2 FROM tab0
----
-1
-441
-6561

skipif mysql # not compatible
query I rowsort label-8141
SELECT DISTINCT col1 * - CAST ( - - col1 AS INTEGER ) AS col2 FROM tab0
----
-1
-441
-6561

query I rowsort
SELECT ALL + col1 * + - col1 AS col0 FROM tab1
----
-196
-2209
-25

query I rowsort
SELECT ( 34 ) + + col2 AS col1 FROM tab0
----
133
44
81

onlyif mysql # aggregate syntax: 
query II rowsort label-8144
SELECT - 61 + + 74 AS col2, - COUNT( * ) + + - 58 AS col0 FROM tab0
----
13
-61

skipif mysql # not compatible
query II rowsort label-8144
SELECT - 61 + + 74 AS col2, - COUNT ( * ) + + - 58 AS col0 FROM tab0
----
13
-61

query I rowsort
SELECT DISTINCT col1 + + + ( + 22 ) * 38 FROM tab2
----
887
903
913

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8146
SELECT CAST( - COUNT( * ) AS SIGNED ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-8146
SELECT CAST ( - COUNT ( * ) AS INTEGER ) AS col1 FROM tab0
----
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-8147
SELECT ALL + col1 + - + col2, + 36 * + - ( col1 ) + 64 DIV - 21 AS col1 FROM tab1
----
-21
-1695
-54
-183
-82
-507

skipif mysql # not compatible
query II rowsort label-8147
SELECT ALL + col1 + - + col2, + 36 * + - ( col1 ) + 64 / - 21 AS col1 FROM tab1
----
-21
-1695
-54
-183
-82
-507

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8148
SELECT DISTINCT MIN( ALL - + CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8148
SELECT DISTINCT MIN ( ALL - + CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col2 / + col2 - col1 + 24 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8150
SELECT COUNT( * ) * - CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8150
SELECT COUNT ( * ) * - CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - - 14 AS col2 FROM tab1 cor0
----
14
14
14

query I rowsort
SELECT 95 - - + 79 - + col1 FROM tab0
----
153
173
93

query III rowsort
SELECT * FROM tab0 WHERE NULL <= - 25
----

query I rowsort
SELECT col1 * + col1 FROM tab2 WHERE col2 / - col1 >= + col2 / - 91 + col1
----

query I rowsort
SELECT 80 * - - col2 - + col2 FROM tab1 AS cor0 WHERE ( ( - + col0 ) ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col2 BETWEEN NULL AND 81
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN ( NULL ) AND 26 * + + 5
----

query I rowsort
SELECT ALL - + col1 * - col2 * + col1 * col1 + + col2 AS col0 FROM tab1 AS cor0
----
263520
7060032
7434

query I rowsort
SELECT - - 32 + - - col0 FROM tab0 AS cor0
----
119
129
47

query I rowsort
SELECT ALL col2 - - 42 AS col1 FROM tab2 AS cor0
----
100
65
82

query I rowsort
SELECT - - 51 FROM tab0 AS cor0 WHERE col0 + - col1 <> NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8162
SELECT DISTINCT MIN( DISTINCT CAST( - - col1 AS SIGNED ) ), + SUM( + 71 ) AS col0 FROM tab0 AS cor0
----
1
213

skipif mysql # not compatible
query II rowsort label-8162
SELECT DISTINCT MIN ( DISTINCT CAST ( - - col1 AS INTEGER ) ), + SUM ( + 71 ) AS col0 FROM tab0 AS cor0
----
1
213

onlyif mysql # aggregate syntax: 
query I rowsort label-8163
SELECT COUNT( ALL + - col2 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8163
SELECT COUNT ( ALL + - col2 ) AS col1 FROM tab0
----
3

query I rowsort
SELECT AVG ( DISTINCT 56 ) AS col2 FROM tab2 WHERE + - 22 <= - col1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0, - col2 col0 FROM tab0
----
15
-47
87
-10
97
-99

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL IN ( - 98 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8167
SELECT DISTINCT SUM( - col1 ) DIV COUNT( * ) FROM tab2
----
-65

skipif mysql # not compatible
query I rowsort label-8167
SELECT DISTINCT SUM ( - col1 ) / COUNT ( * ) FROM tab2
----
-65

query I rowsort
SELECT ( + - col1 ) * - col1 AS col0 FROM tab0
----
1
441
6561

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8169
SELECT DISTINCT - col1 AS col1, col1 + - + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
-51
NULL
-67
NULL
-77
NULL

skipif mysql # not compatible
query II rowsort label-8169
SELECT DISTINCT - col1 AS col1, col1 + - + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
-51
NULL
-67
NULL
-77
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 37 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8171
SELECT MIN( DISTINCT + 16 ) AS col2 FROM tab2 cor0
----
16

skipif mysql # not compatible
query I rowsort label-8171
SELECT MIN ( DISTINCT + 16 ) AS col2 FROM tab2 cor0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-8172
SELECT ALL + ( + + ( + + COUNT( * ) ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8172
SELECT ALL + ( + + ( + + COUNT ( * ) ) ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8173
SELECT + SUM( DISTINCT 95 ) - - 73 DIV + COUNT( - col0 ) AS col1 FROM tab0 AS cor0 WHERE NOT + 19 * col0 * + col1 < ( + + 43 )
----
119

skipif mysql # not compatible
query I rowsort label-8173
SELECT + SUM ( DISTINCT 95 ) - - 73 / + COUNT ( - col0 ) AS col1 FROM tab0 AS cor0 WHERE NOT + 19 * col0 * + col1 < ( + + 43 )
----
119

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( col0 * 11 ) AND + 34
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8175
SELECT DISTINCT MIN( - 41 ) FROM tab0 AS cor0
----
-41

skipif mysql # not compatible
query I rowsort label-8175
SELECT DISTINCT MIN ( - 41 ) FROM tab0 AS cor0
----
-41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( col1 ) col0, - 29 AS col2 FROM tab0 AS cor0
----
1
-29
21
-29
81
-29

query I rowsort
SELECT DISTINCT + + 31 AS col1 FROM tab2 AS cor0
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8178
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT - col1 NOT BETWEEN + col2 AND 43 * - CAST( NULL AS SIGNED ) * - - col2 * - 94 * - col0
----

skipif mysql # not compatible
query III rowsort label-8178
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT - col1 NOT BETWEEN + col2 AND 43 * - CAST ( NULL AS INTEGER ) * - - col2 * - 94 * - col0
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8179
SELECT - + col2 * ( - 79 ) * + col0 + + - col1, 89 DIV 84 AS col1 FROM tab0 cor0
----
55614
1
68709
1
758636
1

skipif mysql # not compatible
query II rowsort label-8179
SELECT - + col2 * ( - 79 ) * + col0 + + - col1, 89 / 84 AS col1 FROM tab0 cor0
----
55614
1
68709
1
758636
1

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 * + 60 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + 38 col2 FROM tab2
----
1938
2546
2926

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 47 col2 FROM tab2
----
47
47
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8183
SELECT ALL + 63 + - COUNT( * ) col1 FROM tab1
----
60

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8183
SELECT ALL + 63 + - COUNT ( * ) col1 FROM tab1
----
60

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col2 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8185
SELECT + CAST( NULL AS SIGNED ) FROM tab0 WHERE col2 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8185
SELECT + CAST ( NULL AS INTEGER ) FROM tab0 WHERE col2 IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 + + + col0 FROM tab0
----
196
62
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8187
SELECT + COUNT( * ) * - 93 + - + 39 FROM tab0 WHERE - col2 + - col2 IS NOT NULL
----
-318

skipif mysql # not compatible
query I rowsort label-8187
SELECT + COUNT ( * ) * - 93 + - + 39 FROM tab0 WHERE - col2 + - col2 IS NOT NULL
----
-318

query I rowsort
SELECT DISTINCT + col0 + + + col2 FROM tab2
----
104
133
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8189
SELECT col2 / - col0 + - CAST( NULL AS SIGNED ) - - 72 / col0 col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8189
SELECT col2 / - col0 + - CAST ( NULL AS INTEGER ) - - 72 / col0 col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - 31 * + col0 + + col2 + 58 + - col1 AS col1 FROM tab2 AS cor0
----
-1396
-1963
-2276

query I rowsort
SELECT - col2 + + ( 48 ) FROM tab1 cor0
----
-11
-20
-48

query I rowsort
SELECT DISTINCT - ( + + col0 ) - + col2 FROM tab2 AS cor0
----
-104
-133
-69

query I rowsort
SELECT DISTINCT 63 * + col2 + - + col2 AS col1 FROM tab1 cor0
----
3658
4216
5952

query I rowsort
SELECT DISTINCT - col0 FROM tab1 AS cor0 WHERE NOT ( - 98 ) IS NULL
----
-51
-85
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 0 col0 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8196
SELECT COUNT( 93 ) col2 FROM tab2, tab0 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8196
SELECT COUNT ( 93 ) col2 FROM tab2, tab0 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8197
SELECT - COUNT( * ) FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-9

skipif mysql # not compatible
query I rowsort label-8197
SELECT - COUNT ( * ) FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-9

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8198
SELECT ALL * FROM tab2 AS cor0 WHERE NULL BETWEEN ( col0 + - col2 ) AND + CAST( - col0 AS DECIMAL ) / + col1 + - + col0
----

skipif mysql # not compatible
query III rowsort label-8198
SELECT ALL * FROM tab2 AS cor0 WHERE NULL BETWEEN ( col0 + - col2 ) AND + CAST ( - col0 AS REAL ) / + col1 + - + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8199
SELECT + + ( - - 67 ) - CAST( + + 93 AS SIGNED ) AS col2, col2 AS col0 FROM tab0 AS cor0
----
-26
10
-26
47
-26
99

skipif mysql # not compatible
query II rowsort label-8199
SELECT + + ( - - 67 ) - CAST ( + + 93 AS INTEGER ) AS col2, col2 AS col0 FROM tab0 AS cor0
----
-26
10
-26
47
-26
99

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8200
SELECT DISTINCT + CAST( NULL AS DECIMAL ) - + 55 AS col1, - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8200
SELECT DISTINCT + CAST ( NULL AS REAL ) - + 55 AS col1, - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL

query I rowsort
SELECT DISTINCT - 56 - col2 AS col0 FROM tab0 AS cor0
----
-103
-155
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8202
SELECT DISTINCT + - CAST( NULL AS SIGNED ) / + 48 + + 78 AS col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8202
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) / + 48 + + 78 AS col2 FROM tab0 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1, - col0 col1 FROM tab0
----
-1
-97
-21
-87
-81
-15

query I rowsort
SELECT 79 * - + 11 FROM tab2
----
-869
-869
-869

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8205
SELECT DISTINCT CAST( - col2 AS SIGNED ) col0 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8205
SELECT DISTINCT CAST ( - col2 AS INTEGER ) col0 FROM tab2
----
-23
-40
-58

query I rowsort
SELECT col0 * - + col1 * - - col0 FROM tab2
----
-107916
-315392
-376875

query I rowsort
SELECT DISTINCT - + col0 FROM tab1 WHERE NOT - col0 < + col2 * + 10
----

query I rowsort
SELECT col2 * 33 AS col2 FROM tab2
----
1320
1914
759

query I rowsort
SELECT ( col1 ) * + + 58 FROM tab0
----
1218
4698
58

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - 85 ) NOT BETWEEN col0 AND + - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-8211
SELECT ALL - col0 DIV - - col0 + - - 46 + - col1 * - col2 * + 29 AS col2 FROM tab0 AS cor0
----
110448
2916
6135

skipif mysql # not compatible
query I rowsort label-8211
SELECT ALL - col0 / - - col0 + - - 46 + - col1 * - col2 * + 29 AS col2 FROM tab0 AS cor0
----
110448
2916
6135

onlyif mysql # DIV for integer division: 
query I rowsort label-8212
SELECT + + col1 DIV - col0 FROM tab2 cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-8212
SELECT + + col1 / - col0 FROM tab2 cor0
----
-1
-1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8213
SELECT ALL - ( col1 ) DIV + + col0 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8213
SELECT ALL - ( col1 ) / + + col0 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT 8 AS col1 FROM tab2 cor0 CROSS JOIN tab1 cor1
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-8215
SELECT - MAX( DISTINCT + + col0 ) AS col1 FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-8215
SELECT - MAX ( DISTINCT + + col0 ) AS col1 FROM tab1
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-8216
SELECT DISTINCT - 91 + + COUNT( * ) FROM tab2 AS cor0
----
-88

skipif mysql # not compatible
query I rowsort label-8216
SELECT DISTINCT - 91 + + COUNT ( * ) FROM tab2 AS cor0
----
-88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + col2 col2, col2 AS col2 FROM tab0 AS cor0
----
-10
10
-47
47
-99
99

query I rowsort
SELECT - - col2 * - - col1 * + ( - - col0 ) + + + col0 + - 17 AS col2 FROM tab1 AS cor0
----
25143
290910
68578

query I rowsort
SELECT ALL + 30 FROM tab2 AS cor0 WHERE NOT col0 NOT BETWEEN ( NULL ) AND col2 + + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8220
SELECT + + COUNT( * ) + - - 71 AS col2 FROM tab2 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-8220
SELECT + + COUNT ( * ) + - - 71 AS col2 FROM tab2 AS cor0
----
74

query I rowsort
SELECT DISTINCT + 43 * + + 5 AS col1 FROM tab2 AS cor0
----
215

onlyif mysql # aggregate syntax: 
query II rowsort label-8222
SELECT ALL - COUNT( * ), COUNT( * ) AS col2 FROM tab0 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-8222
SELECT ALL - COUNT ( * ), COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-3
3

query I rowsort
SELECT 22 * - 42 + - col2 FROM tab0
----
-1023
-934
-971

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8224
SELECT ALL - col1 + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8224
SELECT ALL - col1 + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8225
SELECT col2 DIV + 12 col0, col2 FROM tab1
----
4
59
5
68
8
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8225
SELECT col2 / + 12 col0, col2 FROM tab1
----
4
59
5
68
8
96

query I rowsort
SELECT - ( + col2 ) * - col2 - + 83 FROM tab1 AS cor0
----
3398
4541
9133

query II rowsort
SELECT DISTINCT - 19 - - 52, col1 FROM tab0 AS cor0
----
33
1
33
21
33
81

query I rowsort
SELECT DISTINCT - 71 - 59 FROM tab1
----
-130

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 47 + - 99 AS col2 FROM tab1 cor0
----
-146

onlyif mysql # DIV for integer division: 
query I rowsort label-8231
SELECT col2 DIV - 7 AS col1 FROM tab1 AS cor0
----
-13
-8
-9

skipif mysql # not compatible
query I rowsort label-8231
SELECT col2 / - 7 AS col1 FROM tab1 AS cor0
----
-13
-8
-9

query II rowsort
SELECT DISTINCT col0, 83 FROM tab1 cor0
----
51
83
85
83
91
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8233
SELECT + CAST( + 14 AS SIGNED ) FROM tab1 AS cor0
----
14
14
14

skipif mysql # not compatible
query I rowsort label-8233
SELECT + CAST ( + 14 AS INTEGER ) FROM tab1 AS cor0
----
14
14
14

onlyif mysql # DIV for integer division: 
query I rowsort label-8234
SELECT DISTINCT 6 DIV + col2 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8234
SELECT DISTINCT 6 / + col2 AS col2 FROM tab2 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8235
SELECT col2 DIV - - col1 FROM tab1 AS cor0
----
1
11
6

skipif mysql # not compatible
query I rowsort label-8235
SELECT col2 / - - col1 FROM tab1 AS cor0
----
1
11
6

query I rowsort
SELECT - 74 AS col0 FROM tab2 cor0
----
-74
-74
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-8237
SELECT + MAX( ALL 34 ) AS col1 FROM tab1 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-8237
SELECT + MAX ( ALL 34 ) AS col1 FROM tab1 AS cor0
----
34

query I rowsort
SELECT DISTINCT 61 * - - col1 FROM tab0
----
1281
4941
61

onlyif mysql # aggregate syntax: 
query I rowsort label-8239
SELECT ALL - ( SUM( DISTINCT - + col2 ) ) FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-8239
SELECT ALL - ( SUM ( DISTINCT - + col2 ) ) FROM tab2
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-8240
SELECT DISTINCT - ( MIN( - col2 ) ) AS col1 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-8240
SELECT DISTINCT - ( MIN ( - col2 ) ) AS col1 FROM tab1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8241
SELECT ALL + + COUNT( * ) + - + 2 + - ( - 20 ) col1 FROM tab1 WHERE NOT - + col0 > NULL
----
18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8241
SELECT ALL + + COUNT ( * ) + - + 2 + - ( - 20 ) col1 FROM tab1 WHERE NOT - + col0 > NULL
----
18

query I rowsort
SELECT 89 * - col2 FROM tab2
----
-2047
-3560
-5162

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8243
SELECT DISTINCT col2 FROM tab0 WHERE - CAST( - col1 AS DECIMAL ) = + col2
----

skipif mysql # not compatible
query I rowsort label-8243
SELECT DISTINCT col2 FROM tab0 WHERE - CAST ( - col1 AS REAL ) = + col2
----

query I rowsort
SELECT DISTINCT - 33 * col0 FROM tab2
----
-1518
-2112
-2475

query I rowsort
SELECT + col2 * - 38 * - col2 FROM tab0
----
372438
3800
83942

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8246
SELECT - col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( + 91, CAST( NULL AS SIGNED ), col2 )
----

skipif mysql # not compatible
query I rowsort label-8246
SELECT - col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( + 91, CAST ( NULL AS INTEGER ), col2 )
----

query I rowsort
SELECT - 86 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-86
-86
-86

query I rowsort
SELECT DISTINCT 34 FROM tab1 AS cor0 WHERE + 87 * + + col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8249
SELECT ALL - 6 DIV + + 99 col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8249
SELECT ALL - 6 / + + 99 col0 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab2 WHERE NOT ( ( col1 ) IS NOT NULL )
----

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab0 WHERE ( NULL > col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8252
SELECT ALL - CAST( NULL AS SIGNED ) * - - col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8252
SELECT ALL - CAST ( NULL AS INTEGER ) * - - col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8253
SELECT - 3 + COUNT( * ) - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-3

skipif mysql # not compatible
query I rowsort label-8253
SELECT - 3 + COUNT ( * ) - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-3

query I rowsort
SELECT DISTINCT + + col0 FROM tab0 WHERE ( + col1 < + col2 )
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8255
SELECT - CAST( + + 2 AS SIGNED ) FROM tab2 AS cor0
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-8255
SELECT - CAST ( + + 2 AS INTEGER ) FROM tab2 AS cor0
----
-2
-2
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8256
SELECT ALL - - col1 * - - CAST( NULL AS SIGNED ) + col0 + - col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8256
SELECT ALL - - col1 * - - CAST ( NULL AS INTEGER ) + col0 + - col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8257
SELECT DISTINCT - SUM( DISTINCT col1 ) AS col1 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-8257
SELECT DISTINCT - SUM ( DISTINCT col1 ) AS col1 FROM tab1 AS cor0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-8258
SELECT 55 * + ( + SUM( + - col2 ) ) FROM tab1 AS cor0
----
-12265

skipif mysql # not compatible
query I rowsort label-8258
SELECT 55 * + ( + SUM ( + - col2 ) ) FROM tab1 AS cor0
----
-12265

query II rowsort
SELECT ALL - col2 AS col1, + 37 AS col1 FROM tab0 AS cor0
----
-10
37
-47
37
-99
37

query I rowsort
SELECT + col1 FROM tab0 AS cor0 WHERE - col0 + col1 IS NOT NULL
----
1
21
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 + - ( - col2 ) + col1 AS col1, col2 * col1 + + + 80 col1 FROM tab2
----
120
1253
181
3160
200
3966

onlyif mysql # DIV for integer division: 
query I rowsort label-8262
SELECT ALL - col2 DIV col2 * + 82 + - 39 AS col2 FROM tab0
----
-121
-121
-121

skipif mysql # not compatible
query I rowsort label-8262
SELECT ALL - col2 / col2 * + 82 + - 39 AS col2 FROM tab0
----
-121
-121
-121

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 92 col1 FROM tab0
----
92
92
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 65 + - col1 * - 95 * + 92 + col0 col2 FROM tab2
----
445721
585590
672979

query I rowsort
SELECT - col2 + - + col0 FROM tab2
----
-104
-133
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8266
SELECT col1 + CAST( NULL AS SIGNED ) / 88 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8266
SELECT col1 + CAST ( NULL AS INTEGER ) / 88 AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8267
SELECT - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) + col2 + + col0 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8267
SELECT - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) + col2 + + col0 AS col2 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - + col1 ) BETWEEN - col0 * - 87 AND - + col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 92 >= + col2 + - col1 * - - col1
----
15
81
47
87
21
10

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) IN ( + 54, col1, + 51, col2 * - + col1 + - col1 )
----

query I rowsort
SELECT ALL + col0 - - ( + - col2 ) AS col1 FROM tab1 cor0
----
-45
23
26

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL = - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8273
SELECT * FROM tab2 WHERE - col1 <> - + CAST( + - col1 AS SIGNED ) + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8273
SELECT * FROM tab2 WHERE - col1 <> - + CAST ( + - col1 AS INTEGER ) + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8274
SELECT - COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-8274
SELECT - COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8275
SELECT DISTINCT + - 42 FROM tab0 WHERE NOT col1 * col0 + - CAST( col2 AS SIGNED ) IS NULL
----
-42

skipif mysql # not compatible
query I rowsort label-8275
SELECT DISTINCT + - 42 FROM tab0 WHERE NOT col1 * col0 + - CAST ( col2 AS INTEGER ) IS NULL
----
-42

query I rowsort
SELECT - 46 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 491ad1fb79fec0b5715ea54949d1aa2d

query I rowsort
SELECT ALL + col2 * + 90 * col2 AS col0 FROM tab2 AS cor0
----
144000
302760
47610

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 34 col0 FROM tab1 AS cor0 WHERE NOT + 50 / 61 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 69 col0 FROM tab0 cor0
----
-69

query I rowsort
SELECT col2 * + col2 - + - col2 AS col1 FROM tab0 AS cor0 WHERE NOT + ( - col1 ) - - 54 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE + 11 * col1 - + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8282
SELECT ALL + COUNT( * ), 29 AS col1 FROM tab0
----
3
29

skipif mysql # not compatible
query II rowsort label-8282
SELECT ALL + COUNT ( * ), 29 AS col1 FROM tab0
----
3
29

query I rowsort
SELECT ALL + col2 * 83 AS col1 FROM tab2
----
1909
3320
4814

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL < - + col0 + + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + ( + 50 ) col1 FROM tab1
----
-2350
-250
-700

onlyif mysql # aggregate syntax: 
query I rowsort label-8286
SELECT + COUNT( col2 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8286
SELECT + COUNT ( col2 ) AS col2 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8287
SELECT ALL - 72 * - COUNT( * ) AS col2 FROM tab2
----
216

skipif mysql # not compatible
query I rowsort label-8287
SELECT ALL - 72 * - COUNT ( * ) AS col2 FROM tab2
----
216

onlyif mysql # aggregate syntax: 
query I rowsort label-8288
SELECT ALL MIN( - + col2 ) FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-8288
SELECT ALL MIN ( - + col2 ) FROM tab1 AS cor0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-8289
SELECT DISTINCT + SUM( + col1 ) AS col2 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-8289
SELECT DISTINCT + SUM ( + col1 ) AS col2 FROM tab0 AS cor0
----
103

query I rowsort
SELECT - col1 * - col2 + - + col2 AS col1 FROM tab0 AS cor0
----
0
200
3760

query I rowsort
SELECT ALL - ( col0 ) + + col2 + col1 * - 14 AS col1 FROM tab0
----
-1102
-12
-371

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8292
SELECT DISTINCT - col2 + + col2 AS col0, + 69 * + CAST( - col1 AS SIGNED ) AS col0 FROM tab0
----
0
-1449
0
-5589
0
-69

skipif mysql # not compatible
query II rowsort label-8292
SELECT DISTINCT - col2 + + col2 AS col0, + 69 * + CAST ( - col1 AS INTEGER ) AS col0 FROM tab0
----
0
-1449
0
-5589
0
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8293
SELECT DISTINCT - + 62 * 15 + - 45 FROM tab2 WHERE + CAST( - col2 AS SIGNED ) - - - CAST( 5 AS SIGNED ) NOT BETWEEN - col1 AND ( + + col2 )
----

skipif mysql # not compatible
query I rowsort label-8293
SELECT DISTINCT - + 62 * 15 + - 45 FROM tab2 WHERE + CAST ( - col2 AS INTEGER ) - - - CAST ( 5 AS INTEGER ) NOT BETWEEN - col1 AND ( + + col2 )
----

query I rowsort
SELECT DISTINCT - col2 + - - col0 FROM tab0 cor0
----
-2
-32
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8295
SELECT DISTINCT COUNT( * ) + 15 + - 41 AS col2 FROM tab0 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-8295
SELECT DISTINCT COUNT ( * ) + 15 + - 41 AS col2 FROM tab0 AS cor0
----
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-8296
SELECT ALL - 43 + - 53 + col2 + + + col1 * + col2 + col2 DIV col1 FROM tab0 AS cor0
----
124
201
3758

skipif mysql # not compatible
query I rowsort label-8296
SELECT ALL - 43 + - 53 + col2 + + + col1 * + col2 + col2 / col1 FROM tab0 AS cor0
----
124
201
3758

query I rowsort
SELECT - ( col1 ) * - col1 + - col1 FROM tab2 AS cor0
----
2550
4422
5852

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 + col1 IS NULL
----

query I rowsort
SELECT - col0 + - 66 FROM tab0 AS cor0
----
-153
-163
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-8300
SELECT MIN( + col0 ) * + 68, 8 AS col1 FROM tab0
----
1020
8

skipif mysql # not compatible
query II rowsort label-8300
SELECT MIN ( + col0 ) * + 68, 8 AS col1 FROM tab0
----
1020
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8301
SELECT DISTINCT + MAX( DISTINCT CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8301
SELECT DISTINCT + MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

query I rowsort
SELECT + col0 * + 64 AS col2 FROM tab1
----
3264
5440
5824

onlyif mysql # aggregate syntax: 
query I rowsort label-8303
SELECT MAX( ALL + - 2 ) FROM tab2
----
-2

skipif mysql # not compatible
query I rowsort label-8303
SELECT MAX ( ALL + - 2 ) FROM tab2
----
-2

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT BETWEEN + - ( + col2 ) / + col1 + col0 * - + col1 - + col0 AND + + col1 + - 83 - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8305
SELECT DISTINCT + col1 DIV + + 75 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-8305
SELECT DISTINCT + col1 / + + 75 FROM tab0
----
0
1

query II rowsort
SELECT ALL + 50 * + col0 + - col0 AS col0, + col0 * + col2 AS col0 FROM tab1 AS cor0
----
2499
4896
4165
5015
4459
6188

query I rowsort
SELECT - ( + col0 ) - col2 * + + 47 AS col2 FROM tab2 cor0
----
-1127
-1944
-2801

query I rowsort
SELECT col0 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8309
SELECT DISTINCT + 64 DIV COUNT( * ) FROM tab0
----
21

skipif mysql # not compatible
query I rowsort label-8309
SELECT DISTINCT + 64 / COUNT ( * ) FROM tab0
----
21

query I rowsort
SELECT col0 + - + col0 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8311
SELECT DISTINCT + 20 AS col1, - col1 AS col2, - col2 + - CAST( + 50 AS SIGNED ) AS col1 FROM tab1
----
9 values hashing to 1d75dfceb554d7f5fe6e418f0bbbd55a

skipif mysql # not compatible
query III rowsort label-8311
SELECT DISTINCT + 20 AS col1, - col1 AS col2, - col2 + - CAST ( + 50 AS INTEGER ) AS col1 FROM tab1
----
9 values hashing to 1d75dfceb554d7f5fe6e418f0bbbd55a

onlyif mysql # aggregate syntax: 
query I rowsort label-8312
SELECT DISTINCT + + MIN( ALL col1 ) * 33 AS col2 FROM tab0 cor0
----
33

skipif mysql # not compatible
query I rowsort label-8312
SELECT DISTINCT + + MIN ( ALL col1 ) * 33 AS col2 FROM tab0 cor0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-8313
SELECT + + MAX( ALL + col1 ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-8313
SELECT + + MAX ( ALL + col1 ) FROM tab2 AS cor0
----
77

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL <> - col0 * + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8315
SELECT - 61 * + 8 col1, CAST( + col2 AS SIGNED ) + col0 * + col2 AS col0 FROM tab1 AS cor0
----
-488
4992
-488
5074
-488
6256

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8315
SELECT - 61 * + 8 col1, CAST ( + col2 AS INTEGER ) + col0 * + col2 AS col0 FROM tab1 AS cor0
----
-488
4992
-488
5074
-488
6256

query I rowsort
SELECT - 99 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-99
-99
-99

query II rowsort
SELECT + - 54 AS col0, + ( - col1 ) FROM tab0 AS cor0
----
-54
-1
-54
-21
-54
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-8318
SELECT - - COUNT( * ) * + 97 FROM tab2 AS cor0
----
291

skipif mysql # not compatible
query I rowsort label-8318
SELECT - - COUNT ( * ) * + 97 FROM tab2 AS cor0
----
291

onlyif mysql # aggregate syntax: 
query I rowsort label-8319
SELECT DISTINCT MIN( - 17 ) AS col0 FROM tab1 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-8319
SELECT DISTINCT MIN ( - 17 ) AS col0 FROM tab1 AS cor0
----
-17

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT col0 NOT BETWEEN NULL AND ( - + col1 / + 60 )
----

query II rowsort
SELECT DISTINCT - + col1 AS col0, - 89 + + - col2 FROM tab0 AS cor0
----
-1
-188
-21
-99
-81
-136

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 - - - col2 * - + 23 <> NULL
----

query I rowsort
SELECT ALL col1 * 47 AS col0 FROM tab1
----
2209
235
658

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN - col1 * + - 60 * + col2 AND ( + ( + + col2 ) + 1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8325
SELECT DISTINCT + SUM( DISTINCT + col2 ) * + COUNT( * ) FROM tab1
----
669

skipif mysql # not compatible
query I rowsort label-8325
SELECT DISTINCT + SUM ( DISTINCT + col2 ) * + COUNT ( * ) FROM tab1
----
669

onlyif mysql # aggregate syntax: 
query I rowsort label-8326
SELECT ( COUNT( * ) ) AS col0 FROM tab1 WHERE NOT + col2 NOT IN ( - col2 + col1 * + col1 * - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-8326
SELECT ( COUNT ( * ) ) AS col0 FROM tab1 WHERE NOT + col2 NOT IN ( - col2 + col1 * + col1 * - col2 )
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( + col2 * col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col2 * + 85 FROM tab2
----
1955
3400
4930

onlyif mysql # DIV for integer division: 
query I rowsort label-8329
SELECT DISTINCT + col2 DIV + - col1 + - - col2 * + - col0 AS col1 FROM tab1 AS cor0
----
-4902
-5026
-6189

skipif mysql # not compatible
query I rowsort label-8329
SELECT DISTINCT + col2 / + - col1 + - - col2 * + - col0 AS col1 FROM tab1 AS cor0
----
-4902
-5026
-6189

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8330
SELECT col2 * - 21 / - col0 + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8330
SELECT col2 * - 21 / - col0 + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8332
SELECT + - COUNT( * ) + 35 * - + 20 AS col0 FROM tab2 cor0
----
-703

skipif mysql # not compatible
query I rowsort label-8332
SELECT + - COUNT ( * ) + 35 * - + 20 AS col0 FROM tab2 cor0
----
-703

query I rowsort
SELECT DISTINCT 4 FROM tab2 WHERE + col1 > ( - + 72 )
----
4

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8334
SELECT DISTINCT col1 + + CAST( + CAST( NULL AS DECIMAL ) AS SIGNED ) + + col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8334
SELECT DISTINCT col1 + + CAST ( + CAST ( NULL AS REAL ) AS INTEGER ) + + col1 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8335
SELECT + - COUNT( + col0 ) col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8335
SELECT + - COUNT ( + col0 ) col0 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT + ( 12 ) AS col0 FROM tab1 AS cor0
----
12
12
12

onlyif mysql # aggregate syntax: 
query I rowsort label-8337
SELECT - - MAX( ALL - + col0 ) AS col0 FROM tab0 cor0
----
-15

skipif mysql # not compatible
query I rowsort label-8337
SELECT - - MAX ( ALL - + col0 ) AS col0 FROM tab0 cor0
----
-15

query II rowsort
SELECT + 77 + - ( + + ( col2 ) ) AS col1, col2 AS col1 FROM tab1
----
-19
96
18
59
9
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8339
SELECT ALL 98 * - + COUNT( * ) + - 77 AS col2 FROM tab1
----
-371

skipif mysql # not compatible
query I rowsort label-8339
SELECT ALL 98 * - + COUNT ( * ) + - 77 AS col2 FROM tab1
----
-371

onlyif mysql # aggregate syntax: 
query I rowsort label-8340
SELECT ALL MAX( DISTINCT + - col1 ) + + - 40 FROM tab0
----
-41

skipif mysql # not compatible
query I rowsort label-8340
SELECT ALL MAX ( DISTINCT + - col1 ) + + - 40 FROM tab0
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-8341
SELECT MIN( col0 ) + - + 26 AS col2 FROM tab0
----
-11

skipif mysql # not compatible
query I rowsort label-8341
SELECT MIN ( col0 ) + - + 26 AS col2 FROM tab0
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-8342
SELECT + 74 DIV - + col1 + 90 * - + col1 * - - col2 + col2 + + + col1 + - + col2 FROM tab0 AS cor0
----
-18882
-342549
-8983

skipif mysql # not compatible
query I rowsort label-8342
SELECT + 74 / - + col1 + 90 * - + col1 * - - col2 + col2 + + + col1 + - + col2 FROM tab0 AS cor0
----
-18882
-342549
-8983

query I rowsort
SELECT ALL col0 + - col1 AS col2 FROM tab2 AS cor0 WHERE + col1 * - - 90 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8344
SELECT DISTINCT - ( - CAST( NULL AS SIGNED ) ) + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8344
SELECT DISTINCT - ( - CAST ( NULL AS INTEGER ) ) + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 40 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8346
SELECT ALL CAST( NULL AS SIGNED ) / + 13 * col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8346
SELECT ALL CAST ( NULL AS INTEGER ) / + 13 * col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 53 * + col0 AS col0 FROM tab0 AS cor0
----
4611
5141
795

query I rowsort
SELECT ALL - col0 * - + col1 AS col0 FROM tab1
----
425
4277
714

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 NOT BETWEEN col1 AND NULL
----

query I rowsort
SELECT ALL + 84 * + + col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL col1 * + col2 FROM tab2 AS cor0 WHERE NOT ( - col1 ) + + 3 BETWEEN NULL AND col1 * - col0
----
1173
3080
3886

query I rowsort
SELECT ALL + 88 * + col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8353
SELECT DISTINCT - + MIN( ALL + CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8353
SELECT DISTINCT - + MIN ( ALL + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8354
SELECT DISTINCT 49 * COUNT( * ) col1 FROM tab0
----
147

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8354
SELECT DISTINCT 49 * COUNT ( * ) col1 FROM tab0
----
147

query I rowsort
SELECT + 97 + - col0 FROM tab2
----
22
33
51

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 * 89 IS NOT NULL
----

query II rowsort
SELECT ALL + col0 AS col2, + ( - 18 ) AS col1 FROM tab2
----
46
-18
64
-18
75
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-8358
SELECT ALL MAX( ALL col0 ) AS col1 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-8358
SELECT ALL MAX ( ALL col0 ) AS col1 FROM tab0
----
97

query I rowsort
SELECT ALL + col1 + 0 FROM tab2
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8360
SELECT col0 * + CAST( + - 6 AS SIGNED ) AS col2 FROM tab0
----
-522
-582
-90

skipif mysql # not compatible
query I rowsort label-8360
SELECT col0 * + CAST ( + - 6 AS INTEGER ) AS col2 FROM tab0
----
-522
-582
-90

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab1 AS cor0 WHERE NOT - col1 <> col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8362
SELECT DISTINCT + CAST( NULL AS SIGNED ) / + COUNT( * ) + 35 * 42 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8362
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / + COUNT ( * ) + 35 * 42 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL col0 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8364
SELECT - - col1 + - col2 + + 82 * + CAST( NULL AS SIGNED ) + - - col2 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8364
SELECT - - col1 + - col2 + + 82 * + CAST ( NULL AS INTEGER ) + - - col2 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 * ( + + 86 ) + 53 + - - col2 * - + col1 AS col2 FROM tab2 AS cor0
----
-10283
-5076
-8531

onlyif mysql # DIV for integer division: 
query I rowsort label-8366
SELECT ALL - col2 DIV - 41 + + col2 AS col2 FROM tab1 AS cor0
----
60
69
98

skipif mysql # not compatible
query I rowsort label-8366
SELECT ALL - col2 / - 41 + + col2 AS col2 FROM tab1 AS cor0
----
60
69
98

query I rowsort
SELECT ALL + col1 * 26 * - - col2 + col1 + - + col1 AS col0 FROM tab1 AS cor0
----
34944
7670
83096

query I rowsort
SELECT ALL - col1 * - col1 FROM tab2 AS cor0 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT - 15 * - + 38 AS col0 FROM tab2 AS cor0
----
570
570
570

onlyif mysql # aggregate syntax: 
query I rowsort label-8370
SELECT ALL COUNT( - - 53 ) - COUNT( * ) * - MIN( DISTINCT - - col1 ) AS col1 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-8370
SELECT ALL COUNT ( - - 53 ) - COUNT ( * ) * - MIN ( DISTINCT - - col1 ) AS col1 FROM tab0 AS cor0
----
6

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 BETWEEN NULL AND + col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL > - col1
----

query I rowsort
SELECT DISTINCT + col2 - - 66 + + ( + + col1 ) FROM tab2
----
140
183
191

onlyif mysql # aggregate syntax: 
query II rowsort label-8374
SELECT DISTINCT 72, - COUNT( DISTINCT ( - + col0 ) ) AS col1 FROM tab0
----
72
-3

skipif mysql # not compatible
query II rowsort label-8374
SELECT DISTINCT 72, - COUNT ( DISTINCT ( - + col0 ) ) AS col1 FROM tab0
----
72
-3

query I rowsort
SELECT ALL col2 + - - 55 FROM tab0
----
102
154
65

query I rowsort
SELECT - col2 * - col2 + col0 AS col1 FROM tab1 WHERE + - col0 * - col2 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8377
SELECT COUNT( * ) DIV + + 58 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8377
SELECT COUNT ( * ) / + + 58 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8378
SELECT DISTINCT * FROM tab0 cor0 WHERE + col2 * - 20 IN ( ( - col0 ), CAST( NULL AS SIGNED ), - - col1 + - + 45, + - col0, + ( - 7 ) )
----

skipif mysql # not compatible
query III rowsort label-8378
SELECT DISTINCT * FROM tab0 cor0 WHERE + col2 * - 20 IN ( ( - col0 ), CAST ( NULL AS INTEGER ), - - col1 + - + 45, + - col0, + ( - 7 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8379
SELECT CAST( + - col2 AS SIGNED ) FROM tab0 AS cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-8379
SELECT CAST ( + - col2 AS INTEGER ) FROM tab0 AS cor0
----
-10
-47
-99

query I rowsort
SELECT + + 1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8381
SELECT ALL + + SUM( DISTINCT + + CAST( NULL AS DECIMAL ) ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8381
SELECT ALL + + SUM ( DISTINCT + + CAST ( NULL AS REAL ) ) AS col0 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col1 BETWEEN + ( + col2 ) + + + col2 AND - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8383
SELECT - SUM( - col0 ) * - 64 AS col0 FROM tab0 cor0
----
-12736

skipif mysql # not compatible
query I rowsort label-8383
SELECT - SUM ( - col0 ) * - 64 AS col0 FROM tab0 cor0
----
-12736

query I rowsort
SELECT - - 50 * - 90 * + 44 AS col0 FROM tab1 AS cor0 WHERE NOT + col0 IS NULL
----
-198000
-198000
-198000

onlyif mysql # aggregate syntax: 
query II rowsort label-8385
SELECT ALL ( COUNT( * ) ), 3 FROM tab1 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-8385
SELECT ALL ( COUNT ( * ) ), 3 FROM tab1 AS cor0
----
3
3

query I rowsort
SELECT ALL 57 AS col2 FROM tab1
----
57
57
57

onlyif mysql # aggregate syntax: 
query II rowsort label-8387
SELECT DISTINCT + COUNT( * ), 52 * - COUNT( * ) AS col0 FROM tab2
----
3
-156

skipif mysql # not compatible
query II rowsort label-8387
SELECT DISTINCT + COUNT ( * ), 52 * - COUNT ( * ) AS col0 FROM tab2
----
3
-156

query I rowsort
SELECT + + col0 * - col0 + - col1 FROM tab1 AS cor0
----
-2615
-7230
-8328

query I rowsort
SELECT ALL - 19 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 339c9d62143bf2f7566b89a1b56eeeb4

onlyif mysql # DIV for integer division: 
query I rowsort label-8390
SELECT - col0 DIV + col2 col1 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8390
SELECT - col0 / + col2 col1 FROM tab1
----
-1
-1
0

query I rowsort
SELECT ALL + 72 AS col2 FROM tab0 AS cor0 WHERE col0 * - col0 * - col2 IS NULL
----

query I rowsort
SELECT DISTINCT - col0 FROM tab1 AS cor0 WHERE NOT + col1 IS NULL
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-8393
SELECT - 21 - COUNT( DISTINCT + ( + col2 ) ) AS col1 FROM tab2 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-8393
SELECT - 21 - COUNT ( DISTINCT + ( + col2 ) ) AS col1 FROM tab2 AS cor0
----
-24

query I rowsort
SELECT col0 + + col1 + col0 * + - ( + - col0 ) + col1 FROM tab1
----
2680
7320
8466

onlyif mysql # aggregate syntax: 
query I rowsort label-8395
SELECT ALL COUNT( - - col1 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8395
SELECT ALL COUNT ( - - col1 ) FROM tab2
----
3

query I rowsort
SELECT 85 * col1 AS col2 FROM tab1
----
1190
3995
425

query I rowsort
SELECT ALL 89 FROM tab1 WHERE NOT NULL > + + col0
----

query I rowsort
SELECT DISTINCT - col1 * - - col1 FROM tab1
----
-196
-2209
-25

query I rowsort
SELECT ALL - 28 * col0 AS col1 FROM tab0
----
-2436
-2716
-420

onlyif mysql # DIV for integer division: 
query I rowsort label-8400
SELECT 94 DIV 96 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8400
SELECT 94 / 96 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL col2 / col2 FROM tab1 WHERE - + col2 + + col2 + 22 IS NULL
----

query I rowsort
SELECT ALL - col2 * + + 29 AS col1 FROM tab0
----
-1363
-2871
-290

query I rowsort
SELECT ALL 36 * + - col1 AS col2 FROM tab2
----
-1836
-2412
-2772

query I rowsort
SELECT + + 54 AS col2 FROM tab2 WHERE NOT - - ( - + col2 ) / + - col0 >= NULL
----

query I rowsort
SELECT col0 AS col1 FROM tab1 WHERE NOT - + 72 < col0
----

query I rowsort
SELECT DISTINCT + col2 * + 43 FROM tab2
----
1720
2494
989

onlyif mysql # DIV for integer division: 
query I rowsort label-8407
SELECT DISTINCT + 49 DIV - 4 AS col2 FROM tab1
----
-12

skipif mysql # not compatible
query I rowsort label-8407
SELECT DISTINCT + 49 / - 4 AS col2 FROM tab1
----
-12

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col0 + + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col2 * + + col1 <= - 58
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 NOT IN ( - 66 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8411
SELECT ALL - - ( ( + AVG ( CAST( NULL AS SIGNED ) ) ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8411
SELECT ALL - - ( ( + AVG ( CAST ( NULL AS INTEGER ) ) ) ) FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT col2 + + - col0 + - 73, - col2 AS col1 FROM tab2 AS cor0
----
-90
-58
-96
-23
-97
-40

query II rowsort
SELECT DISTINCT + - col1, col0 AS col1 FROM tab0 AS cor0
----
-1
97
-21
87
-81
15

query I rowsort
SELECT DISTINCT + col1 * + 67 AS col2 FROM tab2
----
3417
4489
5159

query I rowsort
SELECT col2 + + + col2 + - ( - col0 ) * + - col1 * + col2 FROM tab1
----
-24957
-290700
-68352

onlyif mysql # DIV for integer division: 
query I rowsort label-8416
SELECT 74 DIV - - ( + col2 ) + col0 + - - 34 + + col1 + - + col1 AS col2 FROM tab0
----
128
131
50

skipif mysql # not compatible
query I rowsort label-8416
SELECT 74 / - - ( + col2 ) + col0 + - - 34 + + col1 + - + col1 AS col2 FROM tab0
----
128
131
50

query I rowsort
SELECT - 12 * + + 20 * + 18 + - - 79 FROM tab1
----
-4241
-4241
-4241

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col2 * + - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8419
SELECT COUNT( * ) * - - 90 AS col2 FROM tab1
----
270

skipif mysql # not compatible
query I rowsort label-8419
SELECT COUNT ( * ) * - - 90 AS col2 FROM tab1
----
270

query III rowsort
SELECT * FROM tab0 WHERE - col0 BETWEEN + 13 AND - col2 + - 50
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8421
SELECT ALL - MIN( - col0 ) AS col2 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-8421
SELECT ALL - MIN ( - col0 ) AS col2 FROM tab0
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-8422
SELECT DISTINCT - 14 DIV col1 + - col0 col2 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8422
SELECT DISTINCT - 14 / col1 + - col0 col2 FROM tab2
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8423
SELECT ALL + 20 + - 5 - + COUNT( * ) FROM tab2
----
12

skipif mysql # not compatible
query I rowsort label-8423
SELECT ALL + 20 + - 5 - + COUNT ( * ) FROM tab2
----
12

query III rowsort
SELECT * FROM tab1 WHERE - col1 IN ( + 19, 69 )
----

query I rowsort
SELECT ALL - + col1 * + 38 * + 17 * 3 + + col0 AS col0 FROM tab2 AS cor0
----
-129771
-149162
-98792

query I rowsort
SELECT + col1 * - 80 - + - col2 FROM tab0 AS cor0
----
-1670
-6433
19

query I rowsort
SELECT DISTINCT col1 * + + col1 * + - 83 + + + col2 FROM tab1 AS cor0
----
-16172
-183279
-2016

query II rowsort
SELECT DISTINCT 77 AS col2, + 11 AS col0 FROM tab0
----
77
11

query IIIIII rowsort
SELECT DISTINCT * FROM ( tab2 cor0 CROSS JOIN tab1 AS cor1 ) WHERE + 60 > NULL
----

query I rowsort
SELECT ALL col0 * + 75 + + 99 AS col1 FROM tab0
----
1224
6624
7374

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NULL BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT ALL + col1 - + col0 AS col0 FROM tab1 cor0
----
-37
-44
-80

query I rowsort
SELECT ALL - - ( - 40 ) + - 93 FROM tab1 AS cor0
----
-133
-133
-133

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col0 BETWEEN - col2 / - col0 AND NULL
----

query I rowsort
SELECT + - 15 FROM tab1 cor0
----
-15
-15
-15

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 = - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col0 - + col2 + 60 - - col1 * - + 90 AS col2 FROM tab2 AS cor0
----
-4507
-5953
-6846

query I rowsort
SELECT - ( + ( + col1 ) ) AS col1 FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8439
SELECT ALL - MAX( ALL 47 ) FROM tab2 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-8439
SELECT ALL - MAX ( ALL 47 ) FROM tab2 AS cor0
----
-47

query I rowsort
SELECT ALL - ( + - col1 ) FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT DISTINCT ( - 96 ) * - 33 AS col1 FROM tab0
----
3168

query I rowsort
SELECT - col1 AS col0 FROM tab0 WHERE NOT - col0 = + ( col2 ) / + col2
----
-1
-21
-81

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col0 BETWEEN NULL AND - + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT col1, + 79 + + - ( col2 ) AS col1 FROM tab1
----
14
-17
47
11
5
20

query I rowsort
SELECT DISTINCT - col1 * ( + col0 ) AS col2 FROM tab1
----
-425
-4277
-714

query III rowsort
SELECT * FROM tab1 WHERE NOT + - 68 <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 NOT BETWEEN + 47 AND + ( + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + + col0, col0 FROM tab2 AS cor0
----
46
46
64
64
75
75

query I rowsort
SELECT ALL 17 FROM tab0 cor0 WHERE col1 * + col2 IS NOT NULL
----
17
17
17

query I rowsort
SELECT ALL - 28 AS col2 FROM tab2
----
-28
-28
-28

query I rowsort
SELECT DISTINCT col2 * - + col2 AS col1 FROM tab1
----
-3481
-4624
-9216

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8452
SELECT ALL 60 * + 8 * - - CAST( NULL AS DECIMAL ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8452
SELECT ALL 60 * + 8 * - - CAST ( NULL AS REAL ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 * + 95, - col2 + col0 * col2 col1 FROM tab0
----
1425
658
8265
860
9215
9504

query I rowsort
SELECT DISTINCT + ( + 69 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
69

query I rowsort
SELECT + 48 * - 25 - col2 AS col1 FROM tab2 AS cor0
----
-1223
-1240
-1258

onlyif mysql # aggregate syntax: 
query I rowsort label-8456
SELECT ALL + 80 + - MAX( + col2 ) AS col1 FROM tab1 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-8456
SELECT ALL + 80 + - MAX ( + col2 ) AS col1 FROM tab1 AS cor0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-8457
SELECT COUNT( DISTINCT - 97 ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8457
SELECT COUNT ( DISTINCT - 97 ) FROM tab2 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8458
SELECT COUNT( * ) + - + 91 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
-91

skipif mysql # not compatible
query I rowsort label-8458
SELECT COUNT ( * ) + - + 91 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8459
SELECT ALL - ( CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8459
SELECT ALL - ( CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col2 * + 35 FROM tab1 AS cor0
----
2065
2380
3360

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT + col2 / + col0 NOT IN ( col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 * - 32 BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 + - + 22 * - 33 * - - col2 * - + col2 NOT BETWEEN NULL AND col1 * - col1 + + col0 - - + col0 * 62
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8464
SELECT DISTINCT - 61 * col0 DIV - CAST( col2 AS SIGNED ) FROM tab0
----
19
530
59

skipif mysql # not compatible
query I rowsort label-8464
SELECT DISTINCT - 61 * col0 / - CAST ( col2 AS INTEGER ) FROM tab0
----
19
530
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8465
SELECT ALL MAX( DISTINCT + 35 ) DIV + 37 - - - 3 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-8465
SELECT ALL MAX ( DISTINCT + 35 ) / + 37 - - - 3 FROM tab0
----
-3

query I rowsort
SELECT DISTINCT - col2 * + + 23 FROM tab2 WHERE - col0 * - - col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8467
SELECT DISTINCT + col2 * + - ( - + CAST( + + col1 AS SIGNED ) ) AS col1 FROM tab1
----
1344
295
3196

skipif mysql # not compatible
query I rowsort label-8467
SELECT DISTINCT + col2 * + - ( - + CAST ( + + col1 AS INTEGER ) ) AS col1 FROM tab1
----
1344
295
3196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8468
SELECT ALL - 66 + - CAST( - col1 AS SIGNED ) - + 89 FROM tab0
----
-134
-154
-74

skipif mysql # not compatible
query I rowsort label-8468
SELECT ALL - 66 + - CAST ( - col1 AS INTEGER ) - + 89 FROM tab0
----
-134
-154
-74

query III rowsort
SELECT * FROM tab0 WHERE col1 - + + col0 * col0 + - 80 IS NULL
----

query I rowsort
SELECT ( col1 ) * ( + - 22 ) + 44 * col2 AS col0 FROM tab2 AS cor0
----
-110
1078
66

onlyif mysql # DIV for integer division: 
query I rowsort label-8471
SELECT + col1 DIV - 2 - 50 + - + col0 col0 FROM tab0 AS cor0
----
-105
-147
-147

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8471
SELECT + col1 / - 2 - 50 + - + col0 col0 FROM tab0 AS cor0
----
-105
-147
-147

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8472
SELECT DISTINCT - col1 + + CAST( - - 40 AS SIGNED ) + col1 * col1 / - - CAST( NULL AS SIGNED ) * + ( - col1 ) - col2 + - col2 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8472
SELECT DISTINCT - col1 + + CAST ( - - 40 AS INTEGER ) + col1 * col1 / - - CAST ( NULL AS INTEGER ) * + ( - col1 ) - col2 + - col2 AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8473
SELECT + COUNT( - + 21 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
query I rowsort label-8473
SELECT + COUNT ( - + 21 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9

query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 AS cor0 WHERE 5 IS NULL
----

query II rowsort
SELECT - 39 - + 11, - col2 + + col0 * + + col0 AS col1 FROM tab2
----
-50
2093
-50
4056
-50
5567

query II rowsort
SELECT ALL + col2 * - col0 + - col1 + - 16, col0 FROM tab0 AS cor0
----
-802
15
-907
87
-9620
97

onlyif mysql # DIV for integer division: 
query I rowsort label-8477
SELECT DISTINCT col1 DIV - 90 AS col0 FROM tab2 AS cor0 WHERE NOT col2 + + + col1 * + col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8477
SELECT DISTINCT col1 / - 90 AS col0 FROM tab2 AS cor0 WHERE NOT col2 + + + col1 * + col2 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8478
SELECT - MAX( DISTINCT - col1 ) * 59 AS col2 FROM tab0 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-8478
SELECT - MAX ( DISTINCT - col1 ) * 59 AS col2 FROM tab0 AS cor0
----
59

onlyif mysql # aggregate syntax: 
query II rowsort label-8479
SELECT ALL - COUNT( - col2 ) AS col0, - ( COUNT( * ) ) + - + COUNT( * ) FROM tab0 AS cor0
----
-3
-6

skipif mysql # not compatible
query II rowsort label-8479
SELECT ALL - COUNT ( - col2 ) AS col0, - ( COUNT ( * ) ) + - + COUNT ( * ) FROM tab0 AS cor0
----
-3
-6

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8480
SELECT * FROM tab2 WHERE NOT 63 NOT BETWEEN col2 AND + CAST( col1 AS SIGNED )
----
64
77
40
75
67
58

skipif mysql # not compatible
query III rowsort label-8480
SELECT * FROM tab2 WHERE NOT 63 NOT BETWEEN col2 AND + CAST ( col1 AS INTEGER )
----
64
77
40
75
67
58

query I rowsort
SELECT + - ( col1 ) FROM tab2 WHERE NOT + 68 + - - col0 + - col0 + - col0 / + + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8482
SELECT DISTINCT * FROM tab1 WHERE - col0 * - - 36 + - - col0 + + - CAST( + - ( - col0 ) AS DECIMAL ) < NULL
----

skipif mysql # not compatible
query III rowsort label-8482
SELECT DISTINCT * FROM tab1 WHERE - col0 * - - 36 + - - col0 + + - CAST ( + - ( - col0 ) AS REAL ) < NULL
----

query I rowsort
SELECT DISTINCT - 3 AS col1 FROM tab0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 55 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8485
SELECT + col1 DIV + col2 + col2 * - col1 + - col0 * col1 DIV col1 * - col2 col2 FROM tab2 AS cor0
----
-113
-519
465

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8485
SELECT + col1 / + col2 + col2 * - col1 + - col0 * col1 / col1 * - col2 col2 FROM tab2 AS cor0
----
-113
-519
465

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1
-21
-81

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + 20 NOT BETWEEN + + col0 * col2 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8488
SELECT - col1 DIV - + col0 AS col0 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-8488
SELECT - col1 / - + col0 AS col0 FROM tab2
----
0
1
1

query I rowsort
SELECT 30 * - - ( - + 45 ) AS col1 FROM tab0
----
-1350
-1350
-1350

onlyif mysql # aggregate syntax: 
query I rowsort label-8490
SELECT COUNT( DISTINCT - + 58 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-8490
SELECT COUNT ( DISTINCT - + 58 ) FROM tab2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8491
SELECT ALL col1 + + - 87 - col1 * ( + + CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8491
SELECT ALL col1 + + - 87 - col1 * ( + + CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL
NULL
NULL

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 76 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8493
SELECT ALL 6 * - + 9 + + 88 + + MIN( ALL col2 ) AS col1 FROM tab2 WHERE - col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8493
SELECT ALL 6 * - + 9 + + 88 + + MIN ( ALL col2 ) AS col1 FROM tab2 WHERE - col0 IS NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 91 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 13 AS col1 FROM tab1 AS cor0 WHERE + 67 / - col1 + 85 IS NULL
----

query I rowsort
SELECT DISTINCT + - col2 * col2 + + + col0 FROM tab2 AS cor0
----
-1536
-3289
-483

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8497
SELECT - + ( + CAST( NULL AS DECIMAL ) ) + MAX( - - 91 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8497
SELECT - + ( + CAST ( NULL AS REAL ) ) + MAX ( - - 91 ) FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 76 + col2 - + 30 <> NULL
----

query I rowsort
SELECT + - col2 + + 77 FROM tab1 AS cor0
----
-19
18
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 12 * - 5 + - 62 col0 FROM tab2 AS cor0
----
-122
-122
-122

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) <= + - 72
----

query I rowsort
SELECT col1 * + + col2 + + col0 * col0 FROM tab1
----
11477
3945
7520

onlyif mysql # DIV for integer division: 
query I rowsort label-8503
SELECT ALL - ( 81 ) DIV - 21 + + ( - 31 ) FROM tab1
----
-28
-28
-28

skipif mysql # not compatible
query I rowsort label-8503
SELECT ALL - ( 81 ) / - 21 + + ( - 31 ) FROM tab1
----
-28
-28
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8504
SELECT - CAST( + ( + 63 ) AS SIGNED ) FROM tab0
----
-63
-63
-63

skipif mysql # not compatible
query I rowsort label-8504
SELECT - CAST ( + ( + 63 ) AS INTEGER ) FROM tab0
----
-63
-63
-63

query I rowsort
SELECT col1 FROM tab2 WHERE NULL IN ( 25 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8506
SELECT ALL * FROM tab0 WHERE + - CAST( NULL AS SIGNED ) * - col2 + col1 > col2
----

skipif mysql # not compatible
query III rowsort label-8506
SELECT ALL * FROM tab0 WHERE + - CAST ( NULL AS INTEGER ) * - col2 + col1 > col2
----

query II rowsort
SELECT + 10 * - + 77, col2 AS col0 FROM tab0
----
-770
10
-770
47
-770
99

query I rowsort
SELECT DISTINCT - 99 + + 91 FROM tab2
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-8509
SELECT DISTINCT - COUNT( * ) * + 3 + - SUM( + col2 ) * + - SUM( col0 ) AS col1 FROM tab1
----
50612

skipif mysql # not compatible
query I rowsort label-8509
SELECT DISTINCT - COUNT ( * ) * + 3 + - SUM ( + col2 ) * + - SUM ( col0 ) AS col1 FROM tab1
----
50612

query I rowsort
SELECT DISTINCT + ( + + col2 ) + - col0 FROM tab2 AS cor0
----
-17
-23
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-8511
SELECT DISTINCT - COUNT( * ) * - 47 FROM tab0 AS cor0
----
141

skipif mysql # not compatible
query I rowsort label-8511
SELECT DISTINCT - COUNT ( * ) * - 47 FROM tab0 AS cor0
----
141

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 62 col0 FROM tab2
----
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - col0 ) col0 FROM tab1
----
-51
-85
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8514
SELECT + COUNT( * ) - CAST( NULL AS SIGNED ) * - 69 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8514
SELECT + COUNT ( * ) - CAST ( NULL AS INTEGER ) * - 69 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8515
SELECT DISTINCT SUM( + - 24 ) AS col0 FROM tab0
----
-72

skipif mysql # not compatible
query I rowsort label-8515
SELECT DISTINCT SUM ( + - 24 ) AS col0 FROM tab0
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-8516
SELECT DISTINCT 50 * - COUNT( * ) AS col0 FROM tab1
----
-150

skipif mysql # not compatible
query I rowsort label-8516
SELECT DISTINCT 50 * - COUNT ( * ) AS col0 FROM tab1
----
-150

onlyif mysql # aggregate syntax: 
query I rowsort label-8517
SELECT + MIN( ALL 60 ) col1 FROM tab0 cor0
----
60

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8517
SELECT + MIN ( ALL 60 ) col1 FROM tab0 cor0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8518
SELECT DISTINCT + - COUNT( ALL - 75 ) col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8518
SELECT DISTINCT + - COUNT ( ALL - 75 ) col2 FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8519
SELECT DISTINCT - 8 AS col0, + ( ( - COUNT( * ) ) ) + - CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) * + 15 FROM tab2 AS cor0
----
-8
NULL

skipif mysql # not compatible
query II rowsort label-8519
SELECT DISTINCT - 8 AS col0, + ( ( - COUNT ( * ) ) ) + - CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) * + 15 FROM tab2 AS cor0
----
-8
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8520
SELECT SUM( ALL 14 ) FROM tab1 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-8520
SELECT SUM ( ALL 14 ) FROM tab1 AS cor0
----
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - + 52 col2 FROM tab2 cor0
----
2652
3484
4004

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8522
SELECT ALL 21 DIV + COUNT( * ) AS col1 FROM tab1 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-8522
SELECT ALL 21 / + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8523
SELECT SUM( ALL col0 ) AS col0 FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-8523
SELECT SUM ( ALL col0 ) AS col0 FROM tab0
----
199

onlyif mysql # DIV for integer division: 
query I rowsort label-8524
SELECT DISTINCT - 99 DIV col1 FROM tab0
----
-1
-4
-99

skipif mysql # not compatible
query I rowsort label-8524
SELECT DISTINCT - 99 / col1 FROM tab0
----
-1
-4
-99

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL = + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8526
SELECT - ( + col2 ) DIV + - 52 FROM tab2 WHERE NOT - col2 + - + 39 IS NULL
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8526
SELECT - ( + col2 ) / + - 52 FROM tab2 WHERE NOT - col2 + - + 39 IS NULL
----
0
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8527
SELECT DISTINCT col1 DIV + ( + col0 ) AS col1 FROM tab0
----
0
5

skipif mysql # not compatible
query I rowsort label-8527
SELECT DISTINCT col1 / + ( + col0 ) AS col1 FROM tab0
----
0
5

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + 20 AS col1 FROM tab0
----
20
20
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8530
SELECT - COUNT( DISTINCT CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-8530
SELECT - COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
0

query I rowsort
SELECT 99 + - - 40 FROM tab1
----
139
139
139

query II rowsort
SELECT - 7 AS col0, - col0 FROM tab1
----
-7
-51
-7
-85
-7
-91

query I rowsort
SELECT DISTINCT + 22 * - col1 + + - col0 FROM tab1
----
-1125
-195
-359

query I rowsort
SELECT DISTINCT - 71 * - 23 FROM tab1 AS cor0
----
1633

onlyif mysql # aggregate syntax: 
query I rowsort label-8535
SELECT + + MAX( DISTINCT + col2 ) FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-8535
SELECT + + MAX ( DISTINCT + col2 ) FROM tab0 AS cor0
----
99

query I rowsort
SELECT ALL - + col0 * + 8 FROM tab1 AS cor0
----
-408
-680
-728

query I rowsort
SELECT DISTINCT + - col0 * + 58 FROM tab1 AS cor0
----
-2958
-4930
-5278

query I rowsort
SELECT ALL + col1 + + 46 AS col0 FROM tab1 cor0
----
51
60
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8539
SELECT ALL - col0 - col0 * + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8539
SELECT ALL - col0 - col0 * + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - 87 AS col2 FROM tab2 WHERE + 48 + - col0 IS NOT NULL
----
87
87
87

query III rowsort
SELECT * FROM tab1 WHERE - col0 * - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 37 + + col2 AS col1 FROM tab1
----
105
133
96

query I rowsort
SELECT + col1 * col1 AS col2 FROM tab0 WHERE + - 84 IS NOT NULL
----
1
441
6561

onlyif mysql # aggregate syntax: 
query I rowsort label-8544
SELECT COUNT( * ) + + COUNT( * ) AS col0 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-8544
SELECT COUNT ( * ) + + COUNT ( * ) AS col0 FROM tab2
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 52 + + col0 col2 FROM tab1
----
103
137
143

query I rowsort
SELECT - 61 + - + 79 FROM tab0
----
-140
-140
-140

onlyif mysql # aggregate syntax: 
query I rowsort label-8547
SELECT COUNT( * ) + - + COUNT( * ) AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8547
SELECT COUNT ( * ) + - + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + - col1 * + col0 + - - 59 col0 FROM tab2 AS cor0
----
-2338
-4946
-5033

query I rowsort
SELECT - 71 + + - col0 AS col1 FROM tab1 cor0
----
-122
-156
-162

onlyif mysql # aggregate syntax: 
query I rowsort label-8550
SELECT DISTINCT COUNT( * ) + + ( + COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-8550
SELECT DISTINCT COUNT ( * ) + + ( + COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
6

query I rowsort
SELECT - col0 * + + 98 * + col1 FROM tab0 AS cor0
----
-119070
-179046
-9506

query I rowsort
SELECT col1 AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
14
47
5

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 / - + col1 BETWEEN NULL AND - - col1 * + 91 + + 43
----

query I rowsort
SELECT ALL col0 * - 14 + col0 FROM tab2 AS cor0
----
-598
-832
-975

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( + col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 75 * + 97 FROM tab1 cor0
----
7275

onlyif mysql # aggregate syntax: 
query I rowsort label-8557
SELECT - COUNT( + - col0 ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-8557
SELECT - COUNT ( + - col0 ) AS col2 FROM tab2
----
-3

query III rowsort
SELECT * FROM tab0 WHERE NOT + - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8559
SELECT - SUM( - 34 ) FROM tab0
----
102

skipif mysql # not compatible
query I rowsort label-8559
SELECT - SUM ( - 34 ) FROM tab0
----
102

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8560
SELECT ALL CAST( + + 17 AS SIGNED ) AS col1, - col1 * + + col2 FROM tab1 WHERE - col1 * - col1 IS NOT NULL
----
17
-1344
17
-295
17
-3196

skipif mysql # not compatible
query II rowsort label-8560
SELECT ALL CAST ( + + 17 AS INTEGER ) AS col1, - col1 * + + col2 FROM tab1 WHERE - col1 * - col1 IS NOT NULL
----
17
-1344
17
-295
17
-3196

query II rowsort
SELECT col0, col2 - + 63 AS col1 FROM tab2
----
46
-40
64
-23
75
-5

query II rowsort
SELECT ALL col0 AS col0, + col0 AS col2 FROM tab2
----
46
46
64
64
75
75

onlyif mysql # aggregate syntax: 
query II rowsort label-8563
SELECT DISTINCT - MAX( ALL - - 65 ) * - 54 + + 63 AS col2, COUNT( * ) + + COUNT( * ) FROM tab1 WHERE NULL IN ( + + col1, + col0 )
----
NULL
0

skipif mysql # not compatible
query II rowsort label-8563
SELECT DISTINCT - MAX ( ALL - - 65 ) * - 54 + + 63 AS col2, COUNT ( * ) + + COUNT ( * ) FROM tab1 WHERE NULL IN ( + + col1, + col0 )
----
NULL
0

query II rowsort
SELECT DISTINCT + col2 + + + col0, + col0 FROM tab1 WHERE - col2 < - + col0
----
147
51

query II rowsort
SELECT DISTINCT + + 53 AS col1, col1 AS col0 FROM tab2 AS cor0
----
53
51
53
67
53
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8566
SELECT + + CAST( NULL AS SIGNED ) + + ( - col1 ) FROM tab1 AS cor0 WHERE NOT + 53 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8566
SELECT + + CAST ( NULL AS INTEGER ) + + ( - col1 ) FROM tab1 AS cor0 WHERE NOT + 53 IS NOT NULL
----

query II rowsort
SELECT + 57 AS col1, col1 FROM tab0 AS cor0
----
57
1
57
21
57
81

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8568
SELECT DISTINCT + COUNT( * ) * CAST( NULL AS DECIMAL ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8568
SELECT DISTINCT + COUNT ( * ) * CAST ( NULL AS REAL ) AS col1 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8569
SELECT - SUM( DISTINCT col0 ) AS col0 FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-8569
SELECT - SUM ( DISTINCT col0 ) AS col0 FROM tab0
----
-199

onlyif mysql # aggregate syntax: 
query I rowsort label-8570
SELECT MIN( 6 ) AS col0 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-8570
SELECT MIN ( 6 ) AS col0 FROM tab1
----
6

query I rowsort
SELECT - 44 * + col1 AS col0 FROM tab2
----
-2244
-2948
-3388

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( 77 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ( 15 ) * 79 FROM tab0
----
1185
1185
1185

onlyif mysql # aggregate syntax: 
query I rowsort label-8574
SELECT DISTINCT - COUNT( * ) * 83 + ( - COUNT( * ) ) * 58 FROM tab2
----
-423

skipif mysql # not compatible
query I rowsort label-8574
SELECT DISTINCT - COUNT ( * ) * 83 + ( - COUNT ( * ) ) * 58 FROM tab2
----
-423

query I rowsort
SELECT 78 * - col2 AS col0 FROM tab1
----
-4602
-5304
-7488

query I rowsort
SELECT col0 / + col0 FROM tab1 WHERE NOT NULL BETWEEN NULL AND + 82 - - 6
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8577
SELECT ALL - CAST( ( COUNT( * ) ) AS SIGNED ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-8577
SELECT ALL - CAST ( ( COUNT ( * ) ) AS INTEGER ) AS col2 FROM tab0
----
-3

query I rowsort
SELECT col2 / + 62 FROM tab2 WHERE NOT NULL IN ( col0 * col1 + 13 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 BETWEEN + col0 AND NULL
----
87
21
10

query III rowsort
SELECT * FROM tab1 WHERE col0 NOT BETWEEN - 9 AND ( NULL )
----

query I rowsort
SELECT ALL 64 / + col1 FROM tab1 WHERE NOT NULL NOT BETWEEN ( col2 ) AND col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + col0 + - col0 col1 FROM tab0
----
0
1200
1740

onlyif mysql # aggregate syntax: 
query I rowsort label-8583
SELECT - MIN( col0 ) FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-8583
SELECT - MIN ( col0 ) FROM tab2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-8584
SELECT + 79 * COUNT( * ) FROM tab0 WHERE + col1 IN ( - 62 * + ( + col0 ) )
----
0

skipif mysql # not compatible
query I rowsort label-8584
SELECT + 79 * COUNT ( * ) FROM tab0 WHERE + col1 IN ( - 62 * + ( + col0 ) )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8585
SELECT - col0 DIV + col1 + - col1 * 80 AS col2 FROM tab0
----
-1684
-177
-6480

skipif mysql # not compatible
query I rowsort label-8585
SELECT - col0 / + col1 + - col1 * 80 AS col2 FROM tab0
----
-1684
-177
-6480

query I rowsort
SELECT + col0 - - col2 * col1 AS col1 FROM tab2
----
1219
3144
3961

query I rowsort
SELECT DISTINCT + ( 44 ) AS col1 FROM tab1 WHERE NOT col1 IS NULL
----
44

query I rowsort
SELECT DISTINCT + 32 * col1 AS col0 FROM tab1
----
1504
160
448

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 <= col1 * col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-8590
SELECT + 7 DIV col1 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8590
SELECT + 7 / col1 AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT 96 + + 61 AS col1 FROM tab0
----
157

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8592
SELECT ALL - CAST( NULL AS SIGNED ) / + col0 + 8 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8592
SELECT ALL - CAST ( NULL AS INTEGER ) / + col0 + 8 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - AVG ( - 44 ) FROM tab0 AS cor0 WHERE NOT ( - 72 ) IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( col2 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8595
SELECT DISTINCT - col2 + - CAST( NULL AS SIGNED ) col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8595
SELECT DISTINCT - col2 + - CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8596
SELECT DISTINCT - MAX( - 68 ) FROM tab1
----
68

skipif mysql # not compatible
query I rowsort label-8596
SELECT DISTINCT - MAX ( - 68 ) FROM tab1
----
68

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN - 44 * col0 + col1 * - col2 AND - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8598
SELECT - col1 DIV - 77 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8598
SELECT - col1 / - 77 FROM tab2
----
0
0
1

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + col2 + col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8600
SELECT DISTINCT + COUNT( DISTINCT 51 ) * 16 FROM tab1 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-8600
SELECT DISTINCT + COUNT ( DISTINCT 51 ) * 16 FROM tab1 AS cor0
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8601
SELECT DISTINCT - COUNT( 99 ) DIV 95 col1 FROM tab0 cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8601
SELECT DISTINCT - COUNT ( 99 ) / 95 col1 FROM tab0 cor0
----
0

query I rowsort
SELECT DISTINCT + ( ( - ( 3 ) ) ) FROM tab2 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-8603
SELECT - - col0 DIV + col0 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8603
SELECT - - col0 / + col0 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8604
SELECT + 62 * - MIN( - col2 + + 47 ) FROM tab0 AS cor0
----
3224

skipif mysql # not compatible
query I rowsort label-8604
SELECT + 62 * - MIN ( - col2 + + 47 ) FROM tab0 AS cor0
----
3224

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8605
SELECT - + MAX( ALL + CAST( NULL AS SIGNED ) ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8605
SELECT - + MAX ( ALL + CAST ( NULL AS INTEGER ) ) FROM tab2 cor0
----
NULL

query I rowsort
SELECT - ( ( col2 ) ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8607
SELECT - 76 * COUNT( * ) FROM tab0 AS cor0
----
-228

skipif mysql # not compatible
query I rowsort label-8607
SELECT - 76 * COUNT ( * ) FROM tab0 AS cor0
----
-228

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8608
SELECT ALL + ( + COUNT( * ) ) * 57 FROM tab0 cor0 WHERE NULL NOT BETWEEN col0 + 30 AND + CAST( NULL AS DECIMAL ) / 52
----
0

skipif mysql # not compatible
query I rowsort label-8608
SELECT ALL + ( + COUNT ( * ) ) * 57 FROM tab0 cor0 WHERE NULL NOT BETWEEN col0 + 30 AND + CAST ( NULL AS REAL ) / 52
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT + 28 <> NULL
----

query I rowsort
SELECT ALL - col0 * + - col1 AS col2 FROM tab2
----
2346
4928
5025

query I rowsort
SELECT ALL - col0 + - 64 * - col2 FROM tab1
----
3691
4261
6093

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( 51 + - col2 * + col2 ) IS NULL
----

query I rowsort
SELECT DISTINCT - 81 AS col0 FROM tab1 WHERE NULL BETWEEN + col2 AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 / - col2 > ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8615
SELECT ALL - col0 DIV + 10 AS col1 FROM tab2
----
-4
-6
-7

skipif mysql # not compatible
query I rowsort label-8615
SELECT ALL - col0 / + 10 AS col1 FROM tab2
----
-4
-6
-7

query I rowsort
SELECT DISTINCT 75 + + - 1 * - 32 AS col1 FROM tab2
----
107

query I rowsort
SELECT DISTINCT - - 32 AS col0 FROM tab1 AS cor0
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8618
SELECT + CAST( NULL AS SIGNED ) + - ( 28 ) * 76 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8618
SELECT + CAST ( NULL AS INTEGER ) + - ( 28 ) * 76 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8619
SELECT + ( + col0 ) + + col0 DIV col1 FROM tab0 AS cor0
----
15
194
91

skipif mysql # not compatible
query I rowsort label-8619
SELECT + ( + col0 ) + + col0 / col1 FROM tab0 AS cor0
----
15
194
91

query I rowsort
SELECT - col1 * + + col2 * - col0 * col2 FROM tab1
----
1479425
19776848
6580224

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN ( - + col0 ) AND ( NULL )
----

query I rowsort
SELECT ALL + col0 - - 18 AS col0 FROM tab0 WHERE + col0 * - 73 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8623
SELECT + MIN( 5 ) AS col2 FROM tab2 cor0
----
5

skipif mysql # not compatible
query I rowsort label-8623
SELECT + MIN ( 5 ) AS col2 FROM tab2 cor0
----
5

query II rowsort
SELECT - 58, 34 + - col1 AS col0 FROM tab2 AS cor0
----
-58
-17
-58
-33
-58
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-8625
SELECT + - 12 - + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-8625
SELECT + - 12 - + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-8626
SELECT DISTINCT ( - + 30 ) + + 18 * COUNT( * ) AS col0 FROM tab2 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-8626
SELECT DISTINCT ( - + 30 ) + + 18 * COUNT ( * ) AS col0 FROM tab2 AS cor0
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8627
SELECT ALL * FROM tab1 AS cor0 WHERE ( col1 * col1 + + col1 * + 67 ) >= - CAST( + col1 AS SIGNED ) + + 57 * + col0
----
91
47
68

skipif mysql # not compatible
query III rowsort label-8627
SELECT ALL * FROM tab1 AS cor0 WHERE ( col1 * col1 + + col1 * + 67 ) >= - CAST ( + col1 AS INTEGER ) + + 57 * + col0
----
91
47
68

query I rowsort
SELECT + 33 - + 32 * + col1 FROM tab2 AS cor0
----
-1599
-2111
-2431

query I rowsort
SELECT ALL + col0 + - + col2 AS col0 FROM tab1 AS cor0
----
-45
23
26

onlyif mysql # aggregate syntax: 
query I rowsort label-8630
SELECT DISTINCT - MIN( DISTINCT 57 ) * - 76 FROM tab0 AS cor0 WHERE NOT ( NULL ) <= 7
----
NULL

skipif mysql # not compatible
query I rowsort label-8630
SELECT DISTINCT - MIN ( DISTINCT 57 ) * - 76 FROM tab0 AS cor0 WHERE NOT ( NULL ) <= 7
----
NULL

query I rowsort
SELECT + + 62 * + 56 + - + col1 - col1 AS col1 FROM tab2 AS cor0
----
3318
3338
3370

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( col1 - + + col1 + + 85 / - col2 * col1 ) <= col1
----

query I rowsort
SELECT ALL col2 - - 2 * + col0 FROM tab2
----
115
168
208

query I rowsort
SELECT + 61 * - 15 + - - col2 - - - 33 FROM tab1
----
-852
-880
-889

query I rowsort
SELECT - 1 FROM tab0 WHERE + + 43 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + + 69 * + col0 - - + col1 + - 16 col0 FROM tab2
----
-145969
-282563
-388074

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL IS NOT NULL AND NOT + + 0 IN ( col2 - 92 )
----

query I rowsort
SELECT ( - col1 ) + col1 + - 78 AS col1 FROM tab2
----
-78
-78
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-8639
SELECT 4 + - COUNT( + ( + 36 ) ) + COUNT( + col0 ) * COUNT( * ) AS col2 FROM tab1
----
10

skipif mysql # not compatible
query I rowsort label-8639
SELECT 4 + - COUNT ( + ( + 36 ) ) + COUNT ( + col0 ) * COUNT ( * ) AS col2 FROM tab1
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8640
SELECT + 47 + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8640
SELECT + 47 + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 37 + - 41 col1, 49 FROM tab0
----
-4
49
-4
49
-4
49

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 28 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8643
SELECT CAST( + col1 AS SIGNED ) AS col0, - 53 AS col1 FROM tab2
----
51
-53
67
-53
77
-53

skipif mysql # not compatible
query II rowsort label-8643
SELECT CAST ( + col1 AS INTEGER ) AS col0, - 53 AS col1 FROM tab2
----
51
-53
67
-53
77
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-8644
SELECT ( 57 ) DIV + 17 AS col0 FROM tab0
----
3
3
3

skipif mysql # not compatible
query I rowsort label-8644
SELECT ( 57 ) / + 17 AS col0 FROM tab0
----
3
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8645
SELECT + 99 * COUNT( * ) AS col1 FROM tab1 AS cor0
----
297

skipif mysql # not compatible
query I rowsort label-8645
SELECT + 99 * COUNT ( * ) AS col1 FROM tab1 AS cor0
----
297

query II rowsort
SELECT DISTINCT + ( - 97 ) AS col0, col0 AS col1 FROM tab2 AS cor0
----
-97
46
-97
64
-97
75

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL = col0 + 71
----

query I rowsort
SELECT - 62 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to f0e93f6ff5fc3cf50a14e276206dad5c

query I rowsort
SELECT 37 * + - 20 AS col2 FROM tab2 AS cor0
----
-740
-740
-740

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + ( - + 69 ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-8651
SELECT - ( - COUNT( * ) ) * - 81 col0, MAX( - col1 ) + + 91 AS col1 FROM tab1 AS cor0
----
-243
86

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8651
SELECT - ( - COUNT ( * ) ) * - 81 col0, MAX ( - col1 ) + + 91 AS col1 FROM tab1 AS cor0
----
-243
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8652
SELECT DISTINCT + ( - CAST( NULL AS SIGNED ) ) + - col2 col2 FROM tab1 cor0 WHERE NOT + ( + - col1 ) / + col0 NOT BETWEEN + col2 + + col0 AND + col2
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8652
SELECT DISTINCT + ( - CAST ( NULL AS INTEGER ) ) + - col2 col2 FROM tab1 cor0 WHERE NOT + ( + - col1 ) / + col0 NOT BETWEEN + col2 + + col0 AND + col2
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - + ( + col0 ) FROM tab2 cor0
----
-46
-64
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8655
SELECT ALL - col2 * + CAST( + col0 AS SIGNED ) AS col0 FROM tab1
----
-4896
-5015
-6188

skipif mysql # not compatible
query I rowsort label-8655
SELECT ALL - col2 * + CAST ( + col0 AS INTEGER ) AS col0 FROM tab1
----
-4896
-5015
-6188

query I rowsort
SELECT - col1 + + - col2 + - - col0 AS col1 FROM tab1
----
-24
-59
21

query I rowsort
SELECT ALL col2 + col2 * 1 FROM tab0 WHERE col0 IN ( + 31, - col1 + - col0 )
----

query II rowsort
SELECT DISTINCT - 84, + col2 AS col0 FROM tab0
----
-84
10
-84
47
-84
99

query I rowsort
SELECT ALL - - ( + col0 ) * col2 + - 62 * col2 + col2 AS col2 FROM tab1 WHERE + col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8660
SELECT ALL + col2 DIV + 80 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8660
SELECT ALL + col2 / + 80 FROM tab1
----
0
0
1

query II rowsort
SELECT col2 + - col1 * ( 58 ) * - col2, + col1 AS col1 FROM tab1
----
17169
5
185436
47
78048
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - col0 + + col0 AS col0, + 63 col1 FROM tab1 AS cor0
----
0
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8663
SELECT + col1 + + CAST( NULL AS SIGNED ) + - 97 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8663
SELECT + col1 + + CAST ( NULL AS INTEGER ) + - 97 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8664
SELECT DISTINCT - MIN( 74 ) - 82 FROM tab1 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-8664
SELECT DISTINCT - MIN ( 74 ) - 82 FROM tab1 AS cor0
----
-156

query I rowsort
SELECT ALL col2 - + 39 AS col2 FROM tab1 AS cor0
----
20
29
57

query I rowsort
SELECT DISTINCT 58 - col1 AS col2 FROM tab0
----
-23
37
57

query I rowsort
SELECT - ( + - 38 ) * + - col0 - + col0 - + col0 FROM tab2
----
-1840
-2560
-3000

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8668
SELECT DISTINCT + CAST( col2 AS SIGNED ) DIV + + col2 AS col1 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-8668
SELECT DISTINCT + CAST ( col2 AS INTEGER ) / + + col2 AS col1 FROM tab2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8669
SELECT * FROM tab1 WHERE NOT col1 * CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-8669
SELECT * FROM tab1 WHERE NOT col1 * CAST ( NULL AS INTEGER ) IS NULL
----

query II rowsort
SELECT ALL + 39, + col2 AS col1 FROM tab1
----
39
59
39
68
39
96

onlyif mysql # aggregate syntax: 
query II rowsort label-8671
SELECT DISTINCT 2 AS col1, + COUNT( * ) FROM tab2
----
2
3

skipif mysql # not compatible
query II rowsort label-8671
SELECT DISTINCT 2 AS col1, + COUNT ( * ) FROM tab2
----
2
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8672
SELECT + CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT - - col2 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8672
SELECT + CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT - - col2 IS NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8673
SELECT DISTINCT + 80 AS col1, + COUNT( * ) + + COUNT( * ) + + 12 col0 FROM tab0
----
80
18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8673
SELECT DISTINCT + 80 AS col1, + COUNT ( * ) + + COUNT ( * ) + + 12 col0 FROM tab0
----
80
18

query I rowsort
SELECT ALL - - 58 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

query II rowsort
SELECT DISTINCT + - ( col1 ) AS col2, 96 AS col0 FROM tab1 WHERE NULL = NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 + col2 + + + col1 <> NULL
----

query I rowsort
SELECT col0 * + 88 FROM tab1 AS cor0
----
4488
7480
8008

onlyif mysql # aggregate syntax: 
query I rowsort label-8678
SELECT SUM( ALL - - col1 ) * COUNT( * ) FROM tab0 cor0
----
309

skipif mysql # not compatible
query I rowsort label-8678
SELECT SUM ( ALL - - col1 ) * COUNT ( * ) FROM tab0 cor0
----
309

onlyif mysql # aggregate syntax: 
query I rowsort label-8679
SELECT DISTINCT - 92 * - COUNT( * ) FROM tab0 AS cor0
----
276

skipif mysql # not compatible
query I rowsort label-8679
SELECT DISTINCT - 92 * - COUNT ( * ) FROM tab0 AS cor0
----
276

query I rowsort
SELECT - col0 * + 82 * + - col1 AS col0 FROM tab1 AS cor0
----
34850
350714
58548

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8681
SELECT 61 col1 FROM tab0 AS cor0 WHERE NOT NULL IN ( col1 / - - col0 * col1, - 37 * - ( 91 ) * CAST( + col1 AS SIGNED ) )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8681
SELECT 61 col1 FROM tab0 AS cor0 WHERE NOT NULL IN ( col1 / - - col0 * col1, - 37 * - ( 91 ) * CAST ( + col1 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8682
SELECT DISTINCT MAX( ALL + - col2 ) FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-8682
SELECT DISTINCT MAX ( ALL + - col2 ) FROM tab0 AS cor0
----
-10

onlyif mysql # aggregate syntax: 
query II rowsort label-8683
SELECT DISTINCT + 31 col0, 44 * COUNT( * ) AS col2 FROM tab1
----
31
132

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8683
SELECT DISTINCT + 31 col0, 44 * COUNT ( * ) AS col2 FROM tab1
----
31
132

query II rowsort
SELECT + 68 AS col2, + 89 FROM tab1
----
68
89
68
89
68
89

query I rowsort
SELECT DISTINCT - col0 + - - col0 FROM tab0
----
0

query I rowsort
SELECT ALL ( + col1 ) * col2 + + col0 + - col1 + + - col0 FROM tab1
----
1330
290
3149

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8687
SELECT ALL - CAST( NULL AS SIGNED ) + - - 25 * - 86, + CAST( - CAST( NULL AS DECIMAL ) AS DECIMAL ) AS col1 FROM tab2
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8687
SELECT ALL - CAST ( NULL AS INTEGER ) + - - 25 * - 86, + CAST ( - CAST ( NULL AS REAL ) AS REAL ) AS col1 FROM tab2
----
NULL
NULL
NULL
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 + + + col1 FROM tab1
----
-21
-54
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8689
SELECT ALL col2 * + col2 + 43 FROM tab1 WHERE - CAST( + - col2 AS SIGNED ) BETWEEN - - col0 AND ( - + col0 )
----

skipif mysql # not compatible
query I rowsort label-8689
SELECT ALL col2 * + col2 + 43 FROM tab1 WHERE - CAST ( + - col2 AS INTEGER ) BETWEEN - - col0 AND ( - + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8690
SELECT + - col1 DIV 63 + - col0 + - col2 col0 FROM tab2 AS cor0
----
-105
-134
-69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8690
SELECT + - col1 / 63 + - col0 + - col2 col0 FROM tab2 AS cor0
----
-105
-134
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-8691
SELECT + + 87 + + 94 * + - MIN( + + col2 ) AS col0 FROM tab1 AS cor0
----
-5459

skipif mysql # not compatible
query I rowsort label-8691
SELECT + + 87 + + 94 * + - MIN ( + + col2 ) AS col0 FROM tab1 AS cor0
----
-5459

query I rowsort
SELECT DISTINCT + + 63 * - col1 * + col0 - col1 - - col1 * + col2 * - + 12 FROM tab1 AS cor0
----
-30320
-307850
-61124

query I rowsort
SELECT col1 AS col1 FROM tab2 AS cor0 WHERE ( NOT ( - 17 ) NOT IN ( col2 / + 92 + + col2 ) )
----

query I rowsort
SELECT ALL + col0 + 63 FROM tab1
----
114
148
154

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8695
SELECT DISTINCT + CAST( - + 1 AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-1

skipif mysql # not compatible
query I rowsort label-8695
SELECT DISTINCT + CAST ( - + 1 AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-1

query I rowsort
SELECT 99 - - col2 FROM tab0
----
109
146
198

onlyif mysql # aggregate syntax: 
query II rowsort label-8697
SELECT ALL - 89 AS col1, COUNT( * ) FROM tab0
----
-89
3

skipif mysql # not compatible
query II rowsort label-8697
SELECT ALL - 89 AS col1, COUNT ( * ) FROM tab0
----
-89
3

query II rowsort
SELECT ( 71 ) - + col2 * - 1 * - - 13 * + + 6 + - - col2, + col1 AS col1 FROM tab0 AS cor0
----
3784
81
7892
1
861
21

query I rowsort
SELECT col1 + - 80 AS col1 FROM tab1 AS cor0
----
-33
-66
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8700
SELECT ALL 0 + + COUNT( * ) * + 89 FROM tab0 cor0
----
267

skipif mysql # not compatible
query I rowsort label-8700
SELECT ALL 0 + + COUNT ( * ) * + 89 FROM tab0 cor0
----
267

query I rowsort
SELECT ALL col2 * - col0 - col0 FROM tab2 AS cor0
----
-1104
-2624
-4425

onlyif mysql # aggregate syntax: 
query I rowsort label-8702
SELECT + COUNT( * ) * - + 58 * - 63 FROM tab1
----
10962

skipif mysql # not compatible
query I rowsort label-8702
SELECT + COUNT ( * ) * - + 58 * - 63 FROM tab1
----
10962

onlyif mysql # aggregate syntax: 
query I rowsort label-8703
SELECT DISTINCT SUM( - col2 ) AS col0 FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-8703
SELECT DISTINCT SUM ( - col2 ) AS col0 FROM tab0
----
-156

query I rowsort
SELECT DISTINCT - - 39 FROM tab2 AS cor0
----
39

query I rowsort
SELECT - 89 + - col1 FROM tab1 cor0
----
-103
-136
-94

query I rowsort
SELECT DISTINCT 96 + - 80 FROM tab1 cor0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-8707
SELECT DISTINCT 83 * + - COUNT( * ) - - + 41 FROM tab2 AS cor0 WHERE NOT - col1 NOT BETWEEN + col0 + + col1 - - col1 AND NULL
----
41

skipif mysql # not compatible
query I rowsort label-8707
SELECT DISTINCT 83 * + - COUNT ( * ) - - + 41 FROM tab2 AS cor0 WHERE NOT - col1 NOT BETWEEN + col0 + + col1 - - col1 AND NULL
----
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 + + - 19 - 99, - col0 col1 FROM tab0 AS cor0
----
-128
-87
-165
-15
-217
-97

query II rowsort
SELECT DISTINCT + 15, col1 AS col0 FROM tab2 AS cor0
----
15
51
15
67
15
77

query I rowsort
SELECT col0 + + 72 + - col0 * + 47 AS col0 FROM tab0 AS cor0
----
-3930
-4390
-618

query I rowsort
SELECT 94 + + - col2 * + col2 FROM tab1 AS cor0
----
-3387
-4530
-9122

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( + + 86 NOT BETWEEN + col0 AND - 7 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 78 AS col2 FROM tab0 AS cor0
----
78

query I rowsort
SELECT + 89 + 66 AS col2 FROM tab0 AS cor0
----
155
155
155

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8715
SELECT DISTINCT * FROM tab2 WHERE - - col1 + + - CAST( NULL AS DECIMAL ) <= - ( + 73 )
----

skipif mysql # not compatible
query III rowsort label-8715
SELECT DISTINCT * FROM tab2 WHERE - - col1 + + - CAST ( NULL AS REAL ) <= - ( + 73 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8716
SELECT DISTINCT SUM( - col0 ) + - COUNT( * ) AS col0 FROM tab2
----
-188

skipif mysql # not compatible
query I rowsort label-8716
SELECT DISTINCT SUM ( - col0 ) + - COUNT ( * ) AS col0 FROM tab2
----
-188

query I rowsort
SELECT + 12 * col2 * - + 39 AS col0 FROM tab0
----
-21996
-46332
-4680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 35 col2 FROM tab2
----
35
35
35

query I rowsort
SELECT ALL 45 + + + col2 FROM tab0
----
144
55
92

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8720
SELECT ALL * FROM tab1 AS cor0 WHERE col0 <> - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8720
SELECT ALL * FROM tab1 AS cor0 WHERE col0 <> - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8721
SELECT ALL COUNT( DISTINCT + + col2 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8721
SELECT ALL COUNT ( DISTINCT + + col2 ) FROM tab0 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 56 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8723
SELECT ALL + - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) <= + - col0 * - + 0 * + col1 + 68
----
0

skipif mysql # not compatible
query I rowsort label-8723
SELECT ALL + - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) <= + - col0 * - + 0 * + col1 + 68
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8724
SELECT DISTINCT + COUNT( * ) DIV + + COUNT( * ) AS col1 FROM tab2 cor0
----
1

skipif mysql # not compatible
query I rowsort label-8724
SELECT DISTINCT + COUNT ( * ) / + + COUNT ( * ) AS col1 FROM tab2 cor0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8725
SELECT + + 51 DIV + COUNT( * ) FROM tab2 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-8725
SELECT + + 51 / + COUNT ( * ) FROM tab2 AS cor0
----
17

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND + col2
----

query I rowsort
SELECT ALL - + 77 AS col2 FROM tab0 AS cor0
----
-77
-77
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-8728
SELECT DISTINCT MAX( DISTINCT + 42 ) AS col1 FROM tab0 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-8728
SELECT DISTINCT MAX ( DISTINCT + 42 ) AS col1 FROM tab0 AS cor0
----
42

query II rowsort
SELECT ALL col0 AS col1, col2 FROM tab2 AS cor0
----
46
23
64
40
75
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + col1 col2 FROM tab0 AS cor0
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8731
SELECT SUM( + 11 ) AS col1 FROM tab0 cor0
----
33

skipif mysql # not compatible
query I rowsort label-8731
SELECT SUM ( + 11 ) AS col1 FROM tab0 cor0
----
33

query II rowsort
SELECT ALL col2, col1 * - + col0 AS col0 FROM tab2
----
23
-2346
40
-4928
58
-5025

onlyif mysql # aggregate syntax: 
query I rowsort label-8733
SELECT DISTINCT - ( + ( COUNT( * ) ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-8733
SELECT DISTINCT - ( + ( COUNT ( * ) ) ) FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8734
SELECT - COUNT( + + 8 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-8734
SELECT - COUNT ( + + 8 ) FROM tab1
----
-3

query I rowsort
SELECT col1 AS col0 FROM tab1 AS cor0 WHERE NOT col2 * 4 <> - - ( + - col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8736
SELECT ALL + col0 DIV 6 FROM tab0 AS cor0
----
14
16
2

skipif mysql # not compatible
query I rowsort label-8736
SELECT ALL + col0 / 6 FROM tab0 AS cor0
----
14
16
2

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8737
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8737
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8738
SELECT 68 * + 75 + CAST( MIN( DISTINCT + ( 27 ) ) AS SIGNED ) + + + ( - - COUNT( * ) ) AS col1 FROM tab2 AS cor0
----
5130

skipif mysql # not compatible
query I rowsort label-8738
SELECT 68 * + 75 + CAST ( MIN ( DISTINCT + ( 27 ) ) AS INTEGER ) + + + ( - - COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
5130

onlyif mysql # aggregate syntax: 
query I rowsort label-8739
SELECT ALL + COUNT( DISTINCT - - col0 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8739
SELECT ALL + COUNT ( DISTINCT - - col0 ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8740
SELECT DISTINCT MIN( ALL + col0 ) AS col1 FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
51

skipif mysql # not compatible
query I rowsort label-8740
SELECT DISTINCT MIN ( ALL + col0 ) AS col1 FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
51

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 37 * + col1 * + col2 + - col1 + - 45 IS NOT NULL
----

query I rowsort
SELECT ALL - 71 * col2 + + + 14 AS col1 FROM tab1
----
-4175
-4814
-6802

onlyif mysql # aggregate syntax: 
query I rowsort label-8743
SELECT - - MIN( + col2 ) FROM tab2 WHERE NOT col0 / col1 <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8743
SELECT - - MIN ( + col2 ) FROM tab2 WHERE NOT col0 / col1 <= NULL
----
NULL

query I rowsort
SELECT ALL + col1 + - col0 * col2 FROM tab1
----
-4882
-5010
-6141

onlyif mysql # aggregate syntax: 
query I rowsort label-8745
SELECT ALL - COUNT( * ) AS col2 FROM tab2 cor0 WHERE NULL BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-8745
SELECT ALL - COUNT ( * ) AS col2 FROM tab2 cor0 WHERE NULL BETWEEN NULL AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8746
SELECT - COUNT( DISTINCT + + 36 ) * - MAX( + + 43 ) FROM tab0 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-8746
SELECT - COUNT ( DISTINCT + + 36 ) * - MAX ( + + 43 ) FROM tab0 AS cor0
----
43

onlyif mysql # DIV for integer division: 
query I rowsort label-8747
SELECT ALL col0 DIV + + ( + col0 ) AS col0 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8747
SELECT ALL col0 / + + ( + col0 ) AS col0 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT + - col2 * 50 AS col2 FROM tab0 AS cor0
----
-2350
-4950
-500

onlyif mysql # aggregate syntax: 
query I rowsort label-8749
SELECT DISTINCT + COUNT( * ) + MIN( - col2 ) AS col1 FROM tab1 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-8749
SELECT DISTINCT + COUNT ( * ) + MIN ( - col2 ) AS col1 FROM tab1 AS cor0
----
-93

query I rowsort
SELECT - ( col2 ) * - col1 AS col2 FROM tab2 cor0
----
1173
3080
3886

query I rowsort
SELECT - col0 * + + col0 * + col0 FROM tab1 AS cor0
----
-132651
-614125
-753571

onlyif mysql # aggregate syntax: 
query I rowsort label-8752
SELECT - + COUNT( * ) FROM tab2 AS cor0 WHERE col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8752
SELECT - + COUNT ( * ) FROM tab2 AS cor0 WHERE col0 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8753
SELECT ALL + COUNT( ALL + col0 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8753
SELECT ALL + COUNT ( ALL + col0 ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8754
SELECT + 52 * + + COUNT( * ) FROM tab2 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-8754
SELECT + 52 * + + COUNT ( * ) FROM tab2 AS cor0
----
156

query III rowsort
SELECT * FROM tab2 WHERE ( + col2 + + 82 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col1 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8757
SELECT ALL + SUM( DISTINCT + col1 ) AS col2 FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-8757
SELECT ALL + SUM ( DISTINCT + col1 ) AS col2 FROM tab2
----
195

query I rowsort
SELECT ALL - col1 + + + col0 * + 3 * - + col2 AS col1 FROM tab1
----
-14702
-15050
-18611

query I rowsort
SELECT DISTINCT 89 + col1 AS col1 FROM tab1
----
103
136
94

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE - 29 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8761
SELECT + col1 * 94 AS col1, 20 DIV + + col1 - - CAST( + col1 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
1316
15
4418
47
470
9

skipif mysql # not compatible
query II rowsort label-8761
SELECT + col1 * 94 AS col1, 20 / + + col1 - - CAST ( + col1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
1316
15
4418
47
470
9

query I rowsort
SELECT ALL + + 62 * + + col1 AS col1 FROM tab0 cor0
----
1302
5022
62

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 - + + ( + col2 ) <= + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 83 col2 FROM tab0 cor0
----
83
83
83

onlyif mysql # aggregate syntax: 
query I rowsort label-8765
SELECT ALL + 19 * + + MIN( DISTINCT 99 ) + 69 FROM tab1 AS cor0 WHERE ( NULL ) > ( + - 99 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8765
SELECT ALL + 19 * + + MIN ( DISTINCT 99 ) + 69 FROM tab1 AS cor0 WHERE ( NULL ) > ( + - 99 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8766
SELECT DISTINCT + + ( COUNT( ALL + + col1 ) ) AS col0 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8766
SELECT DISTINCT + + ( COUNT ( ALL + + col1 ) ) AS col0 FROM tab1 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8767
SELECT - SUM( - 56 ) FROM tab0 AS cor0
----
168

skipif mysql # not compatible
query I rowsort label-8767
SELECT - SUM ( - 56 ) FROM tab0 AS cor0
----
168

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8768
SELECT DISTINCT - col1 / + col0 + - 82, ( CAST( 29 AS SIGNED ) ) AS col1 FROM tab1 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-8768
SELECT DISTINCT - col1 / + col0 + - 82, ( CAST ( 29 AS INTEGER ) ) AS col1 FROM tab1 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT 54 AS col1, col1 AS col0 FROM tab1
----
54
14
54
47
54
5

query I rowsort
SELECT col1 * - 11 FROM tab1
----
-154
-517
-55

query I rowsort
SELECT DISTINCT - col1 * + - 12 AS col0 FROM tab0
----
12
252
972

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 99 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - - col0 FROM tab1 AS cor0 WHERE NOT 64 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8774
SELECT ALL + + MIN( + + 87 ) FROM tab0 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-8774
SELECT ALL + + MIN ( + + 87 ) FROM tab0 AS cor0
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8775
SELECT DISTINCT 80 + + CAST( NULL AS SIGNED ) + - - col2 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8775
SELECT DISTINCT 80 + + CAST ( NULL AS INTEGER ) + - - col2 AS col0 FROM tab0
----
NULL

query II rowsort
SELECT ALL + col2 + + col2, + 74 AS col1 FROM tab1 cor0
----
118
74
136
74
192
74

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 84 - + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col1 AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8779
SELECT DISTINCT + AVG ( DISTINCT col2 ) + + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8779
SELECT DISTINCT + AVG ( DISTINCT col2 ) + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8780
SELECT DISTINCT + - COUNT( * ) + + MAX( 79 ) AS col2 FROM tab2 AS cor0 WHERE NOT + col0 <> + - col1 + ( + col1 ) + - + 45
----
NULL

skipif mysql # not compatible
query I rowsort label-8780
SELECT DISTINCT + - COUNT ( * ) + + MAX ( 79 ) AS col2 FROM tab2 AS cor0 WHERE NOT + col0 <> + - col1 + ( + col1 ) + - + 45
----
NULL

query I rowsort
SELECT ALL col2 + + ( - col1 ) AS col1 FROM tab0 AS cor0
----
-11
-34
98

query I rowsort
SELECT DISTINCT + col1 + + + 50 FROM tab2 AS cor0
----
101
117
127

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8783
SELECT ALL 45 + - + CAST( NULL AS SIGNED ) - - + col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8783
SELECT ALL 45 + - + CAST ( NULL AS INTEGER ) - - + col0 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8784
SELECT DISTINCT - + CAST( - + col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-8784
SELECT DISTINCT - + CAST ( - + col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
15
87
97

query II rowsort
SELECT ALL col1, - col2 FROM tab0 AS cor0
----
1
-99
21
-10
81
-47

query I rowsort
SELECT ( col0 ) * col2 * + col2 FROM tab2
----
102400
24334
252300

query I rowsort
SELECT + 20 * + col0 FROM tab1
----
1020
1700
1820

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col0 * + 45 + - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8789
SELECT ALL COUNT( - 58 ) * + - COUNT( * ) FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-8789
SELECT ALL COUNT ( - 58 ) * + - COUNT ( * ) FROM tab1
----
-9

query II rowsort
SELECT DISTINCT + col1 * + col0 AS col0, - 54 FROM tab1
----
425
-54
4277
-54
714
-54

query III rowsort
SELECT * FROM tab1 WHERE + col1 >= ( col1 * - - col1 - + - col0 - - 0 / - ( + 28 ) )
----

query I rowsort
SELECT col0 - - - col1 AS col1 FROM tab1
----
37
44
80

query I rowsort
SELECT DISTINCT ( 79 ) FROM tab0
----
79

onlyif mysql # DIV for integer division: 
query I rowsort label-8794
SELECT DISTINCT - col0 + col1 DIV col0 - - - 24 FROM tab2
----
-69
-87
-99

skipif mysql # not compatible
query I rowsort label-8794
SELECT DISTINCT - col0 + col1 / col0 - - - 24 FROM tab2
----
-69
-87
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8795
SELECT - CAST( NULL AS SIGNED ) - CAST( + + 48 AS SIGNED ) * + COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8795
SELECT - CAST ( NULL AS INTEGER ) - CAST ( + + 48 AS INTEGER ) * + COUNT ( * ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col0 + ( + 98 ) + - col2 AS col0 FROM tab2 AS cor0
----
115
121
122

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8797
SELECT DISTINCT - - SUM( + + col0 ) AS col2 FROM tab1 cor0 WHERE CAST( + + col2 AS SIGNED ) IS NOT NULL
----
227

skipif mysql # not compatible
query I rowsort label-8797
SELECT DISTINCT - - SUM ( + + col0 ) AS col2 FROM tab1 cor0 WHERE CAST ( + + col2 AS INTEGER ) IS NOT NULL
----
227

query I rowsort
SELECT 46 + + 14 AS col1 FROM tab0 AS cor0
----
60
60
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8799
SELECT + MAX( ALL col0 ) AS col0 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-8799
SELECT + MAX ( ALL col0 ) AS col0 FROM tab0 AS cor0
----
97

query I rowsort
SELECT - 43 * 66 AS col0 FROM tab2
----
-2838
-2838
-2838

onlyif mysql # aggregate syntax: 
query I rowsort label-8801
SELECT + - COUNT( DISTINCT + col1 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8801
SELECT + - COUNT ( DISTINCT + col1 ) FROM tab0 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 78 col0, + 24 * - + col2 AS col1 FROM tab2 AS cor0
----
78
-1392
78
-552
78
-960

query II rowsort
SELECT - ( + ( + + col2 ) ) AS col2, + 33 FROM tab2 AS cor0
----
-23
33
-40
33
-58
33

query II rowsort
SELECT ALL - col0 AS col0, - 63 * col0 + - - 17 * - col1 AS col0 FROM tab2 AS cor0
----
-46
-3765
-64
-5341
-75
-5864

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8805
SELECT - 99 AS col2, + col0 + - col0 + - - 23 * + + CAST( + 18 AS SIGNED ) FROM tab0 AS cor0
----
-99
414
-99
414
-99
414

skipif mysql # not compatible
query II rowsort label-8805
SELECT - 99 AS col2, + col0 + - col0 + - - 23 * + + CAST ( + 18 AS INTEGER ) FROM tab0 AS cor0
----
-99
414
-99
414
-99
414

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8806
SELECT ALL + col2, CAST( NULL AS SIGNED ) + - 64 * - CAST( + + col1 AS SIGNED ) FROM tab0 AS cor0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-8806
SELECT ALL + col2, CAST ( NULL AS INTEGER ) + - 64 * - CAST ( + + col1 AS INTEGER ) FROM tab0 AS cor0
----
10
NULL
47
NULL
99
NULL

query I rowsort
SELECT 69 * + 57 + + 84 FROM tab1 AS cor0
----
4017
4017
4017

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8808
SELECT DISTINCT - - col0 * + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8808
SELECT DISTINCT - - col0 * + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8809
SELECT - + 4 AS col0, COUNT( * ) AS col1 FROM tab0 AS cor0
----
-4
3

skipif mysql # not compatible
query II rowsort label-8809
SELECT - + 4 AS col0, COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-4
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8810
SELECT ALL + MIN( - - col2 ) AS col1 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-8810
SELECT ALL + MIN ( - - col2 ) AS col1 FROM tab2 AS cor0
----
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 34 * + 57 col0 FROM tab1 cor0
----
-1938
-1938
-1938

query I rowsort
SELECT - - col1 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - col0 * + col1 + - 70 FROM tab0 AS cor0
----
-1285
-167
-1897

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND + 77
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8815
SELECT DISTINCT - + MAX( col0 ) AS col1 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-8815
SELECT DISTINCT - + MAX ( col0 ) AS col1 FROM tab1 AS cor0
----
-91

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN col1 * + + col0 AND + 30
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8817
SELECT + col2 DIV - + 30 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-8817
SELECT + col2 / - + 30 FROM tab2
----
-1
-1
0

query I rowsort
SELECT ALL col0 + col1 * + col2 + col2 FROM tab0
----
295
307
3869

onlyif mysql # aggregate syntax: 
query I rowsort label-8819
SELECT + SUM( + col1 ) FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-8819
SELECT + SUM ( + col1 ) FROM tab0
----
103

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8820
SELECT ALL + + col1 + col0 + - - col2 * - col0 + - ( + - 40 ) - + - col2 * col0 AS col0, 48 * CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
105
NULL
130
NULL
178
NULL

skipif mysql # not compatible
query II rowsort label-8820
SELECT ALL + + col1 + col0 + - - col2 * - col0 + - ( + - 40 ) - + - col2 * col0 AS col0, 48 * CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
105
NULL
130
NULL
178
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8821
SELECT - - COUNT( DISTINCT - 49 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8821
SELECT - - COUNT ( DISTINCT - 49 ) FROM tab1 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8822
SELECT ALL ( - COUNT( * ) ) AS col1 FROM tab2 cor0 WHERE col2 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8822
SELECT ALL ( - COUNT ( * ) ) AS col1 FROM tab2 cor0 WHERE col2 IS NOT NULL
----
-3

query I rowsort
SELECT ALL + col1 - + col0 + + + col1 AS col0 FROM tab1 cor0
----
-23
-75
3

query I rowsort
SELECT DISTINCT col1 - + - col0 * - - 44 FROM tab0
----
3849
4269
741

onlyif mysql # DIV for integer division: 
query I rowsort label-8825
SELECT DISTINCT - col1 DIV 11 AS col0 FROM tab2
----
-4
-6
-7

skipif mysql # not compatible
query I rowsort label-8825
SELECT DISTINCT - col1 / 11 AS col0 FROM tab2
----
-4
-6
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-8826
SELECT ALL MAX( + + col0 ) * + + 56 col1 FROM tab2
----
4200

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8826
SELECT ALL MAX ( + + col0 ) * + + 56 col1 FROM tab2
----
4200

query I rowsort
SELECT ALL 35 + 60 FROM tab1
----
95
95
95

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8828
SELECT + + 42 + - - CAST( NULL AS DECIMAL ) FROM tab2 WHERE - + col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-8828
SELECT + + 42 + - - CAST ( NULL AS REAL ) FROM tab2 WHERE - + col1 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8829
SELECT DISTINCT - MIN( col0 ) DIV - COUNT( * ) AS col0 FROM tab2
----
15

skipif mysql # not compatible
query I rowsort label-8829
SELECT DISTINCT - MIN ( col0 ) / - COUNT ( * ) AS col0 FROM tab2
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8830
SELECT ALL + - MAX( 21 ) FROM tab1 WHERE NOT NULL >= + + ( + col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8830
SELECT ALL + - MAX ( 21 ) FROM tab1 WHERE NOT NULL >= + + ( + col1 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8831
SELECT - MIN( ALL + 68 ) + - + 24 AS col1 FROM tab0
----
-92

skipif mysql # not compatible
query I rowsort label-8831
SELECT - MIN ( ALL + 68 ) + - + 24 AS col1 FROM tab0
----
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8832
SELECT - 63 * + - 31 + - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8832
SELECT - 63 * + - 31 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col1 FROM tab0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE + ( + col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8835
SELECT + COUNT( * ) * + MIN( ALL - 77 ) FROM tab1
----
-231

skipif mysql # not compatible
query I rowsort label-8835
SELECT + COUNT ( * ) * + MIN ( ALL - 77 ) FROM tab1
----
-231

query II rowsort
SELECT - 82 AS col2, col2 FROM tab2
----
-82
23
-82
40
-82
58

query II rowsort
SELECT DISTINCT col2, 72 AS col0 FROM tab0
----
10
72
47
72
99
72

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8838
SELECT ALL CAST( + col1 AS SIGNED ) AS col1, - 86 AS col2 FROM tab0 AS cor0
----
1
-86
21
-86
81
-86

skipif mysql # not compatible
query II rowsort label-8838
SELECT ALL CAST ( + col1 AS INTEGER ) AS col1, - 86 AS col2 FROM tab0 AS cor0
----
1
-86
21
-86
81
-86

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 + + - col2 + 88 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + - 24 FROM tab0 cor0
----
-24

query I rowsort
SELECT DISTINCT + + 81 FROM tab1 cor0
----
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 57 col2 FROM tab2 AS cor0
----
57

onlyif mysql # aggregate syntax: 
query II rowsort label-8843
SELECT DISTINCT - COUNT( * ) AS col0, COUNT( + col1 ) FROM tab2
----
-3
3

skipif mysql # not compatible
query II rowsort label-8843
SELECT DISTINCT - COUNT ( * ) AS col0, COUNT ( + col1 ) FROM tab2
----
-3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8844
SELECT - COUNT( * ) + - 92 AS col0 FROM tab2 WHERE NOT NULL NOT IN ( - col1 )
----
-92

skipif mysql # not compatible
query I rowsort label-8844
SELECT - COUNT ( * ) + - 92 AS col0 FROM tab2 WHERE NOT NULL NOT IN ( - col1 )
----
-92

onlyif mysql # DIV for integer division: 
query II rowsort label-8845
SELECT col0 col1, - col0 * col1 DIV 10 - col2 AS col2 FROM tab0
----
15
-168
87
-192
97
-108

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8845
SELECT col0 col1, - col0 * col1 / 10 - col2 AS col2 FROM tab0
----
15
-168
87
-192
97
-108

query III rowsort
SELECT * FROM tab1 WHERE NOT 99 IS NOT NULL
----

query I rowsort
SELECT ALL - col0 + - - ( + col2 ) FROM tab1
----
-23
-26
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col0, - col2 FROM tab1
----
14
-96
47
-68
5
-59

query I rowsort
SELECT + col1 * + + col2 AS col1 FROM tab0
----
210
3807
99

query II rowsort
SELECT ALL + 83 AS col1, 5 FROM tab0
----
83
5
83
5
83
5

query I rowsort
SELECT DISTINCT 2 + + col0 AS col0 FROM tab0
----
17
89
99

query II rowsort
SELECT - col1 AS col2, 57 FROM tab2
----
-51
57
-67
57
-77
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8853
SELECT ALL 37 * - CAST( NULL AS SIGNED ) + + col2 + - - ( 56 ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8853
SELECT ALL 37 * - CAST ( NULL AS INTEGER ) + + col2 + - - ( 56 ) AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 86 + + col1 FROM tab2
----
137
153
163

query I rowsort
SELECT + 36 FROM tab2 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8856
SELECT - col2 * 37 AS col0 FROM tab1 cor0 WHERE ( NOT + + 97 * - - CAST( NULL AS SIGNED ) IS NULL )
----

skipif mysql # not compatible
query I rowsort label-8856
SELECT - col2 * 37 AS col0 FROM tab1 cor0 WHERE ( NOT + + 97 * - - CAST ( NULL AS INTEGER ) IS NULL )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 51 - 88 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND col1
----

query I rowsort
SELECT col0 AS col0 FROM tab2 AS cor0 WHERE NULL > NULL
----

query I rowsort
SELECT DISTINCT - ( - - col0 ) * col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8861
SELECT ALL CAST( - + col0 AS SIGNED ) * 73 FROM tab1 AS cor0
----
-3723
-6205
-6643

skipif mysql # not compatible
query I rowsort label-8861
SELECT ALL CAST ( - + col0 AS INTEGER ) * 73 FROM tab1 AS cor0
----
-3723
-6205
-6643

query I rowsort
SELECT 72 * col1 + - col0 FROM tab2
----
3626
4749
5480

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col0 = + + col0
----

query I rowsort
SELECT ALL + col1 + - ( + - col2 ) FROM tab0
----
100
128
31

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL BETWEEN - - ( + col1 ) AND - col2
----

query I rowsort
SELECT ALL + col0 + + col0 * + 88 AS col1 FROM tab2 AS cor0
----
4094
5696
6675

query I rowsort
SELECT DISTINCT - + col2 + - ( + + col0 ) + - col2 AS col0 FROM tab1 AS cor0
----
-203
-227
-243

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8868
SELECT DISTINCT col1 * - CAST( NULL AS SIGNED ) * 22 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8868
SELECT DISTINCT col1 * - CAST ( NULL AS INTEGER ) * 22 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8869
SELECT - COUNT( - ( + col1 ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8869
SELECT - COUNT ( - ( + col1 ) ) FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8870
SELECT ALL + CAST( NULL AS SIGNED ) - - col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8870
SELECT ALL + CAST ( NULL AS INTEGER ) - - col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8871
SELECT ALL + MIN( col2 ) AS col2 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-8871
SELECT ALL + MIN ( col2 ) AS col2 FROM tab1 AS cor0
----
59

query I rowsort
SELECT ALL - col2 + + - col1 * col1 AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-2624
-4547
-5969

onlyif mysql # DIV for integer division: 
query I rowsort label-8873
SELECT + col0 * - + col1 * col0 DIV - col1 FROM tab2 AS cor0
----
2116
4096
5625

skipif mysql # not compatible
query I rowsort label-8873
SELECT + col0 * - + col1 * col0 / - col1 FROM tab2 AS cor0
----
2116
4096
5625

query IIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT IN ( - col2, + col2, + + col0 )
----

query I rowsort
SELECT DISTINCT + col0 - - + col0 + - ( col2 ) AS col0 FROM tab0
----
-17
164
95

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( col2 + + col2 / col2 ) NOT IN ( 57 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8878
SELECT * FROM tab0 WHERE NOT NULL BETWEEN + - 70 * + + col1 / 47 + + col0 * 68 AND + - CAST( - col0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8878
SELECT * FROM tab0 WHERE NOT NULL BETWEEN + - 70 * + + col1 / 47 + + col0 * 68 AND + - CAST ( - col0 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8879
SELECT + - MAX( + + col2 ) FROM tab0 cor0
----
-99

skipif mysql # not compatible
query I rowsort label-8879
SELECT + - MAX ( + + col2 ) FROM tab0 cor0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8880
SELECT ALL COUNT( * ) * MIN( DISTINCT + col1 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8880
SELECT ALL COUNT ( * ) * MIN ( DISTINCT + col1 ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8881
SELECT ALL + - 34 DIV COUNT( * ) AS col2 FROM tab1 AS cor0
----
-11

skipif mysql # not compatible
query I rowsort label-8881
SELECT ALL + - 34 / COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-11

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8882
SELECT + col2 DIV - CAST( + col1 AS SIGNED ) FROM tab1 AS cor0
----
-1
-11
-6

skipif mysql # not compatible
query I rowsort label-8882
SELECT + col2 / - CAST ( + col1 AS INTEGER ) FROM tab1 AS cor0
----
-1
-11
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8883
SELECT + 25, MIN( col1 ) DIV + 53 AS col0 FROM tab0 AS cor0
----
25
0

skipif mysql # not compatible
query II rowsort label-8883
SELECT + 25, MIN ( col1 ) / + 53 AS col0 FROM tab0 AS cor0
----
25
0

query II rowsort
SELECT - col1 AS col2, 11 AS col1 FROM tab2 AS cor0
----
-51
11
-67
11
-77
11

query II rowsort
SELECT ALL + col2 AS col2, - 4 AS col2 FROM tab1
----
59
-4
68
-4
96
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-8886
SELECT ALL SUM( - 52 ) FROM tab1
----
-156

skipif mysql # not compatible
query I rowsort label-8886
SELECT ALL SUM ( - 52 ) FROM tab1
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-8887
SELECT - SUM( ALL + 30 ) col0 FROM tab2 AS cor0
----
-90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8887
SELECT - SUM ( ALL + 30 ) col0 FROM tab2 AS cor0
----
-90

query I rowsort
SELECT DISTINCT - 12 AS col0 FROM tab0 cor0
----
-12

query I rowsort
SELECT - + 3 * + col1 AS col0 FROM tab2 AS cor0
----
-153
-201
-231

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8890
SELECT + COUNT( * ) DIV COUNT( + - col1 ) AS col0 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8890
SELECT + COUNT ( * ) / COUNT ( + - col1 ) AS col0 FROM tab1 AS cor0
----
1

query I rowsort
SELECT col0 * + col1 AS col2 FROM tab0 AS cor0 WHERE NOT - col2 IS NULL
----
1215
1827
97

onlyif mysql # DIV for integer division: 
query I rowsort label-8892
SELECT - + 73 DIV - col1 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-8892
SELECT - + 73 / - col1 FROM tab2 AS cor0
----
0
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + 57 + + col2 col0 FROM tab0 AS cor0
----
-4949
-5430
-808

onlyif mysql # DIV for integer division: 
query I rowsort label-8894
SELECT - 77 DIV + col1 - + - col0 DIV + col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8894
SELECT - 77 / + col1 - + - col0 / + col0 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 96 col0, ( + col0 ) AS col1 FROM tab2 AS cor0
----
-96
46
-96
64
-96
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8896
SELECT - COUNT( + 70 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-8896
SELECT - COUNT ( + 70 ) FROM tab0
----
-3

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL <= col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 51 + - 66 col2 FROM tab1
----
-15
-15
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-8899
SELECT 6 * - 45 + - MIN( col1 ) FROM tab2
----
-321

skipif mysql # not compatible
query I rowsort label-8899
SELECT 6 * - 45 + - MIN ( col1 ) FROM tab2
----
-321

onlyif mysql # aggregate syntax: 
query I rowsort label-8900
SELECT DISTINCT SUM( DISTINCT + col0 ) + 91 FROM tab0
----
290

skipif mysql # not compatible
query I rowsort label-8900
SELECT DISTINCT SUM ( DISTINCT + col0 ) + 91 FROM tab0
----
290

query I rowsort
SELECT - col1 + + - 68 - + 29 * + col2 AS col0 FROM tab1
----
-1784
-2087
-2866

query III rowsort
SELECT * FROM tab2 WHERE + + 60 + + - col1 >= NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8903
SELECT ALL - 50 + + - col1 AS col1, + CAST( NULL AS DECIMAL ) FROM tab0
----
-131
NULL
-51
NULL
-71
NULL

skipif mysql # not compatible
query II rowsort label-8903
SELECT ALL - 50 + + - col1 AS col1, + CAST ( NULL AS REAL ) FROM tab0
----
-131
NULL
-51
NULL
-71
NULL

query II rowsort
SELECT DISTINCT + 83 + - col0 AS col1, - ( - 79 ) FROM tab2 AS cor0
----
19
79
37
79
8
79

query I rowsort
SELECT ALL ( + col0 ) + + - col2 FROM tab2 AS cor0
----
17
23
24

onlyif mysql # DIV for integer division: 
query I rowsort label-8906
SELECT - 43 + - 72 + - col0 DIV - - 82 col0 FROM tab1 AS cor0
----
-115
-116
-116

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8906
SELECT - 43 + - 72 + - col0 / - - 82 col0 FROM tab1 AS cor0
----
-115
-116
-116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8907
SELECT DISTINCT COUNT( + 56 ) AS col0, AVG ( CAST( NULL AS SIGNED ) ) FROM tab2 cor0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-8907
SELECT DISTINCT COUNT ( + 56 ) AS col0, AVG ( CAST ( NULL AS INTEGER ) ) FROM tab2 cor0
----
3
NULL

query I rowsort
SELECT 35 - + col1 AS col2 FROM tab2 AS cor0
----
-16
-32
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-8909
SELECT + + 69 - + MAX( col1 ) FROM tab2 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-8909
SELECT + + 69 - + MAX ( col1 ) FROM tab2 AS cor0
----
-8

query II rowsort
SELECT ALL + ( - col2 ) - - col0 AS col2, - col0 FROM tab2 AS cor0
----
17
-75
23
-46
24
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-8911
SELECT + COUNT( * ) + + 56 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-8911
SELECT + COUNT ( * ) + + 56 FROM tab1 AS cor0
----
59

query I rowsort
SELECT ALL - col1 AS col2 FROM tab1 AS cor0 WHERE NULL BETWEEN + col1 AND + 75
----

query I rowsort
SELECT + col0 + + 50 FROM tab1 cor0 WHERE 63 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8914
SELECT ALL 69 - + COUNT( * ) AS col1 FROM tab0
----
66

skipif mysql # not compatible
query I rowsort label-8914
SELECT ALL 69 - + COUNT ( * ) AS col1 FROM tab0
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-8915
SELECT + col0 * - + col2 DIV + + col2 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-8915
SELECT + col0 * - + col2 / + + col2 FROM tab2
----
-46
-64
-75

query II rowsort
SELECT + 75 * col0 AS col0, + 73 AS col2 FROM tab0
----
1125
73
6525
73
7275
73

onlyif mysql # aggregate syntax: 
query I rowsort label-8917
SELECT ( - - 91 ) * - MAX( ALL col0 ) - + - 23 FROM tab2
----
-6802

skipif mysql # not compatible
query I rowsort label-8917
SELECT ( - - 91 ) * - MAX ( ALL col0 ) - + - 23 FROM tab2
----
-6802

query I rowsort
SELECT ALL - + col1 + - 48 FROM tab0 WHERE NOT NULL = col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 17 * col1 col0 FROM tab2
----
-1139
-1309
-867

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NOT - - 49 = ( + - col2 ) )
----

query I rowsort
SELECT ALL - 69 * + 51 FROM tab1 AS cor0
----
-3519
-3519
-3519

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NOT NULL NOT BETWEEN - col1 * col1 AND + - col2 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL <> NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8924
SELECT ALL - + COUNT( ALL ( col1 ) ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8924
SELECT ALL - + COUNT ( ALL ( col1 ) ) AS col1 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8925
SELECT SUM( ALL - col0 ) AS col2 FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-8925
SELECT SUM ( ALL - col0 ) AS col2 FROM tab0
----
-199

query II rowsort
SELECT col1, col0 AS col0 FROM tab2 AS cor0
----
51
46
67
75
77
64

query I rowsort
SELECT + col0 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - col1 AND + - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8928
SELECT DISTINCT + col0 DIV - + col0 + - col2 AS col2 FROM tab0 cor0
----
-100
-11
-48

skipif mysql # not compatible
query I rowsort label-8928
SELECT DISTINCT + col0 / - + col0 + - col2 AS col2 FROM tab0 cor0
----
-100
-11
-48

query I rowsort
SELECT ALL - - 7 * - - 73 FROM tab2 AS cor0
----
511
511
511

query I rowsort
SELECT + col0 + 44 AS col0 FROM tab2 AS cor0
----
108
119
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8931
SELECT ALL - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NOT + col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8931
SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT + col0 IS NOT NULL
----

query I rowsort
SELECT ALL ( + 19 ) AS col1 FROM tab2 cor0
----
19
19
19

onlyif mysql # aggregate syntax: 
query I rowsort label-8933
SELECT + 56 + + - COUNT( * ) FROM tab2 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-8933
SELECT + 56 + + - COUNT ( * ) FROM tab2 AS cor0
----
53

query II rowsort
SELECT DISTINCT col2, + 41 FROM tab2
----
23
41
40
41
58
41

query I rowsort
SELECT - ( - - col0 ) + + - col1 + col2 FROM tab0
----
-49
-98
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8936
SELECT ALL SUM( - + 21 ) FROM tab1
----
-63

skipif mysql # not compatible
query I rowsort label-8936
SELECT ALL SUM ( - + 21 ) FROM tab1
----
-63

query II rowsort
SELECT DISTINCT - col2 AS col0, col1 FROM tab1
----
-59
5
-68
47
-96
14

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8938
SELECT ALL col0, col2 / CAST( NULL AS SIGNED ) FROM tab0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-8938
SELECT ALL col0, col2 / CAST ( NULL AS INTEGER ) FROM tab0
----
15
NULL
87
NULL
97
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8939
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab2 WHERE ( NULL IS NOT NULL )
----

skipif mysql # not compatible
query I rowsort label-8939
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab2 WHERE ( NULL IS NOT NULL )
----

query I rowsort
SELECT DISTINCT ( + + 86 ) * - + col1 FROM tab0
----
-1806
-6966
-86

query I rowsort
SELECT 72 * + - col1 AS col2 FROM tab0
----
-1512
-5832
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-8942
SELECT ALL MAX( DISTINCT 48 ) AS col2 FROM tab2
----
48

skipif mysql # not compatible
query I rowsort label-8942
SELECT ALL MAX ( DISTINCT 48 ) AS col2 FROM tab2
----
48

query I rowsort
SELECT DISTINCT 2 + + 65 + - + ( - 13 ) * - col1 FROM tab0 cor0
----
-206
-986
54

onlyif mysql # aggregate syntax: 
query I rowsort label-8944
SELECT ALL - COUNT( * ) * + + 18 FROM tab0 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-8944
SELECT ALL - COUNT ( * ) * + + 18 FROM tab0 AS cor0
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8945
SELECT * FROM tab0 cor0 WHERE + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8945
SELECT * FROM tab0 cor0 WHERE + CAST ( NULL AS INTEGER ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 70 + col1 IS NOT NULL
----

query I rowsort
SELECT - col1 + + ( - col0 ) * + - col0 + + col2 FROM tab2
----
2088
4059
5616

query I rowsort
SELECT DISTINCT - col2 * 54 + + col2 FROM tab2 AS cor0
----
-1219
-2120
-3074

onlyif mysql # DIV for integer division: 
query I rowsort label-8949
SELECT 24 DIV - + 82 AS col1 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8949
SELECT 24 / - + 82 AS col1 FROM tab1 cor0
----
0
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8950
SELECT DISTINCT + - 45 * 73 + - col1 + - + CAST( NULL AS DECIMAL ) col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8950
SELECT DISTINCT + - 45 * 73 + - col1 + - + CAST ( NULL AS REAL ) col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 37 - - - col2 AS col0 FROM tab2 AS cor0
----
-21
-3
14

onlyif mysql # aggregate syntax: 
query I rowsort label-8952
SELECT ALL + + MIN( ALL 40 ) AS col1 FROM tab2 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-8952
SELECT ALL + + MIN ( ALL 40 ) AS col1 FROM tab2 AS cor0
----
40

query I rowsort
SELECT + ( - 87 ) FROM tab1 AS cor0
----
-87
-87
-87

onlyif mysql # DIV for integer division: 
query II rowsort label-8954
SELECT ALL + 66, 5 DIV - - col1 col1 FROM tab1
----
66
0
66
0
66
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8954
SELECT ALL + 66, 5 / - - col1 col1 FROM tab1
----
66
0
66
0
66
1

query I rowsort
SELECT ALL col2 * + - 64 AS col2 FROM tab0
----
-3008
-6336
-640

query II rowsort
SELECT ALL - col1 * - + col1 * col0, 75 * - ( col2 ) * - + 3 - + - col0 + col1 * col0 AS col1 FROM tab0
----
38367
4164
97
22469
98415
11805

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8957
SELECT ALL 52 * - 33 DIV - ( + COUNT( * ) ) AS col2 FROM tab1
----
572

skipif mysql # not compatible
query I rowsort label-8957
SELECT ALL 52 * - 33 / - ( + COUNT ( * ) ) AS col2 FROM tab1
----
572

query II rowsort
SELECT ALL 99 AS col2, + 36 + - 11 + col0 * + - 89 AS col0 FROM tab2 AS cor0
----
99
-4069
99
-5671
99
-6650

onlyif mysql # aggregate syntax: 
query I rowsort label-8959
SELECT - COUNT( ALL + - col0 ) * + + 57 AS col2 FROM tab2 AS cor0
----
-171

skipif mysql # not compatible
query I rowsort label-8959
SELECT - COUNT ( ALL + - col0 ) * + + 57 AS col2 FROM tab2 AS cor0
----
-171

onlyif mysql # DIV for integer division: 
query I rowsort label-8960
SELECT + 83 DIV + col1 AS col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8960
SELECT + 83 / + col1 AS col1 FROM tab2 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 25 * + + col2 col0, - ( - ( + 62 ) ) AS col0 FROM tab1
----
1475
62
1700
62
2400
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8962
SELECT - CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-8962
SELECT - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT 70 + - col1 FROM tab0
----
-11
49
69

query I rowsort
SELECT DISTINCT - 51 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-51

query I rowsort
SELECT DISTINCT - + col2 FROM tab1 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT DISTINCT - ( + - col0 ), - 91 AS col0 FROM tab1 cor0
----
51
-91
85
-91
91
-91

query I rowsort
SELECT - + 4 AS col2 FROM tab2 AS cor0
----
-4
-4
-4

query I rowsort
SELECT ALL - + 32 + + - 67 AS col0 FROM tab0 AS cor0
----
-99
-99
-99

query I rowsort
SELECT ALL col0 + col1 + - - col1 AS col1 FROM tab0 AS cor0
----
129
177
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8970
SELECT DISTINCT + ( + col0 ) AS col0, - CAST( - + col1 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
46
51
64
77
75
67

skipif mysql # not compatible
query II rowsort label-8970
SELECT DISTINCT + ( + col0 ) AS col0, - CAST ( - + col1 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
46
51
64
77
75
67

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE - col0 + col1 + + col2 IS NOT NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8972
SELECT DISTINCT - - MIN( DISTINCT + + 39 ) FROM tab0 cor0
----
39

skipif mysql # not compatible
query I rowsort label-8972
SELECT DISTINCT - - MIN ( DISTINCT + + 39 ) FROM tab0 cor0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-8973
SELECT DISTINCT - + ( - COUNT( * ) ) col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8973
SELECT DISTINCT - + ( - COUNT ( * ) ) col0 FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL + 24 * + 7 FROM tab1
----
168
168
168

onlyif mysql # aggregate syntax: 
query I rowsort label-8975
SELECT ALL - COUNT( * ) + - - 3 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8975
SELECT ALL - COUNT ( * ) + - - 3 FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8976
SELECT col0 + + col2 + + col0 + - + col1 * - 64 + + col1 DIV - col0 FROM tab2
----
3378
4496
5095

skipif mysql # not compatible
query I rowsort label-8976
SELECT col0 + + col2 + + col0 + - + col1 * - 64 + + col1 / - col0 FROM tab2
----
3378
4496
5095

query I rowsort
SELECT + 38 * + 91 + - - 60 + - - col0 FROM tab2
----
3564
3582
3593

onlyif mysql # DIV for integer division: 
query I rowsort label-8978
SELECT ALL + + 4 DIV col2 + - 60 FROM tab1 AS cor0
----
-60
-60
-60

skipif mysql # not compatible
query I rowsort label-8978
SELECT ALL + + 4 / col2 + - 60 FROM tab1 AS cor0
----
-60
-60
-60

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <> + 96
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8980
SELECT ALL + - 5 - + COUNT( * ) FROM tab2 cor0
----
-8

skipif mysql # not compatible
query I rowsort label-8980
SELECT ALL + - 5 - + COUNT ( * ) FROM tab2 cor0
----
-8

query I rowsort
SELECT - col2 - + + col1 FROM tab0
----
-100
-128
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-8982
SELECT + COUNT( * ) - - + COUNT( * ) FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-8982
SELECT + COUNT ( * ) - - + COUNT ( * ) FROM tab2
----
6

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 64 / + + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col1 * - + 97 AS col1 FROM tab1 AS cor0
----
-1358
-4559
-485

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8985
SELECT ALL 92 AS col0, CAST( NULL AS SIGNED ) * + 71 FROM tab2 AS cor0
----
92
NULL
92
NULL
92
NULL

skipif mysql # not compatible
query II rowsort label-8985
SELECT ALL 92 AS col0, CAST ( NULL AS INTEGER ) * + 71 FROM tab2 AS cor0
----
92
NULL
92
NULL
92
NULL

query I rowsort
SELECT ALL - 79 FROM tab0 cor0
----
-79
-79
-79

query I rowsort
SELECT DISTINCT + col2 FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8988
SELECT * FROM tab0 AS cor0 WHERE NOT ( - col0 ) > + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8988
SELECT * FROM tab0 AS cor0 WHERE NOT ( - col0 ) > + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8989
SELECT - MAX( DISTINCT col2 ) col2 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8989
SELECT - MAX ( DISTINCT col2 ) col2 FROM tab1 AS cor0
----
-96

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + ( + 67 ) + + col0 + + 22 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - ( 67 ) * - col1 AS col0 FROM tab2
----
3417
4489
5159

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col0 * + col0 col1 FROM tab0
----
158949
18225
9409

onlyif mysql # DIV for integer division: 
query I rowsort label-8993
SELECT - ( + - ( - - col2 ) ) DIV + - col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8993
SELECT - ( + - ( - - col2 ) ) / + - col1 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL - ( + - 26 ) * + 80 FROM tab0
----
2080
2080
2080

query I rowsort
SELECT DISTINCT + 65 AS col1 FROM tab0 cor0
----
65

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 5 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - col2 AND col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8998
SELECT COUNT( * ) DIV - - 31 AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8998
SELECT COUNT ( * ) / - - 31 AS col1 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8999
SELECT SUM( DISTINCT + col2 ) AS col1 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-8999
SELECT SUM ( DISTINCT + col2 ) AS col1 FROM tab0
----
156

query I rowsort
SELECT 55 * - + 77 FROM tab1
----
-4235
-4235
-4235

query I rowsort
SELECT DISTINCT + 12 + + col2 FROM tab0
----
111
22
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9002
SELECT ALL - col0 AS col1 FROM tab1 WHERE NULL <= + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-9002
SELECT ALL - col0 AS col1 FROM tab1 WHERE NULL <= + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL col1 + - 80 + - 16 * + + 66 AS col2 FROM tab2
----
-1059
-1069
-1085

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9004
SELECT DISTINCT - ( + + 31 ) + + CAST( + 95 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
64

skipif mysql # not compatible
query I rowsort label-9004
SELECT DISTINCT - ( + + 31 ) + + CAST ( + 95 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
64

query I rowsort
SELECT DISTINCT - ( + + ( - + 6 ) ) * - col1 FROM tab0 AS cor0
----
-126
-486
-6

query I rowsort
SELECT ALL 7 * + + col2 AS col1 FROM tab0 AS cor0
----
329
693
70

query I rowsort
SELECT - col1 + - - 14 AS col2 FROM tab2 AS cor0
----
-37
-53
-63

query I rowsort
SELECT col0 * - 77 AS col1 FROM tab1 cor0
----
-3927
-6545
-7007

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9009
SELECT DISTINCT CAST( + COUNT( * ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9009
SELECT DISTINCT CAST ( + COUNT ( * ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL 53 * - col0 * + col2 AS col2 FROM tab1
----
-259488
-265795
-327964

onlyif mysql # DIV for integer division: 
query II rowsort label-9011
SELECT ALL - 82 DIV - col1 + 93 DIV col2 AS col1, col1 + - col2 FROM tab0
----
12
11
2
34
82
-98

skipif mysql # not compatible
query II rowsort label-9011
SELECT ALL - 82 / - col1 + 93 / col2 AS col1, col1 + - col2 FROM tab0
----
12
11
2
34
82
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-9012
SELECT DISTINCT MAX( DISTINCT col2 ) * + 4 - 96 FROM tab0
----
300

skipif mysql # not compatible
query I rowsort label-9012
SELECT DISTINCT MAX ( DISTINCT col2 ) * + 4 - 96 FROM tab0
----
300

query II rowsort
SELECT col1, + 38 FROM tab1 WHERE - col0 < NULL
----

query I rowsort
SELECT - col0 AS col1 FROM tab2 WHERE ( col1 ) * col1 / + 57 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9015
SELECT ALL - MAX( DISTINCT + col0 ) DIV + + 67 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-9015
SELECT ALL - MAX ( DISTINCT + col0 ) / + + 67 FROM tab0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 31 * + 92, 97 col1 FROM tab1
----
2852
97
2852
97
2852
97

query I rowsort
SELECT DISTINCT - col1 + + + col1 FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9018
SELECT ALL 56 DIV - ( 12 ) AS col0 FROM tab2
----
-4
-4
-4

skipif mysql # not compatible
query I rowsort label-9018
SELECT ALL 56 / - ( 12 ) AS col0 FROM tab2
----
-4
-4
-4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + col1 col0 FROM tab1
----
138
65
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + col2 + + + 31 * ( col2 ) col2 FROM tab0 AS cor0
----
1180
12672
2162

query I rowsort
SELECT DISTINCT - 86 * + 49 - + col1 FROM tab0 AS cor0
----
-4215
-4235
-4295

query I rowsort
SELECT - 66 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to a408108d423d7784b7d610cb779e515a

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9023
SELECT ALL * FROM tab2 WHERE NOT - - CAST( NULL AS SIGNED ) * - col0 + - col1 >= - col2
----

skipif mysql # not compatible
query III rowsort label-9023
SELECT ALL * FROM tab2 WHERE NOT - - CAST ( NULL AS INTEGER ) * - col0 + - col1 >= - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9024
SELECT * FROM tab1 WHERE NOT ( CAST( NULL AS SIGNED ) / - col2 <= NULL )
----

skipif mysql # not compatible
query III rowsort label-9024
SELECT * FROM tab1 WHERE NOT ( CAST ( NULL AS INTEGER ) / - col2 <= NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL <> col2
----

query I rowsort
SELECT - col1 / - + 12 FROM tab0 AS cor0 WHERE NOT col0 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9027
SELECT ALL - - COUNT( + col1 ) col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9027
SELECT ALL - - COUNT ( + col1 ) col2 FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT - + col0 * col0 AS col2 FROM tab0 AS cor0 WHERE NOT col1 * col1 / col1 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9029
SELECT - MAX( ALL - col1 ) AS col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9029
SELECT - MAX ( ALL - col1 ) AS col0 FROM tab0 AS cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9030
SELECT ALL + - CAST( + ( - + col1 ) AS SIGNED ) DIV - - col2 FROM tab0 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-9030
SELECT ALL + - CAST ( + ( - + col1 ) AS INTEGER ) / - - col2 FROM tab0 AS cor0
----
0
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9031
SELECT MAX( - + ( + 98 ) ) AS col1 FROM tab1
----
-98

skipif mysql # not compatible
query I rowsort label-9031
SELECT MAX ( - + ( + 98 ) ) AS col1 FROM tab1
----
-98

query III rowsort
SELECT * FROM tab2 WHERE NOT + + 50 + + col2 * + col2 - - - 3 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9033
SELECT - COUNT( ALL - + col2 ) col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9033
SELECT - COUNT ( ALL - + col2 ) col2 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT + + ( - - 42 ) + 60 FROM tab2 AS cor0
----
102
102
102

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9035
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - CAST( + 58 AS SIGNED ) BETWEEN ( col1 ) * 85 AND col2 - - - 81
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9035
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - CAST ( + 58 AS INTEGER ) BETWEEN ( col1 ) * 85 AND col2 - - - 81
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE NOT + 54 - + col0 IS NOT NULL
----

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT ( NULL ) IS NOT NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

query I rowsort
SELECT DISTINCT col0 + - ( - - ( + col0 ) ) FROM tab0
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col1 * + - ( + col1 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9041
SELECT DISTINCT + - 59 * + COUNT( * ) + + - 56 AS col1 FROM tab1 AS cor0
----
-233

skipif mysql # not compatible
query I rowsort label-9041
SELECT DISTINCT + - 59 * + COUNT ( * ) + + - 56 AS col1 FROM tab1 AS cor0
----
-233

query I rowsort
SELECT ALL - - 43 - - 55 AS col0 FROM tab0 cor0
----
98
98
98

onlyif mysql # DIV for integer division: 
query I rowsort label-9043
SELECT 69 DIV - col0 + - col2 AS col0 FROM tab2
----
-24
-41
-58

skipif mysql # not compatible
query I rowsort label-9043
SELECT 69 / - col0 + - col2 AS col0 FROM tab2
----
-24
-41
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-9044
SELECT DISTINCT COUNT( + 2 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9044
SELECT DISTINCT COUNT ( + 2 ) AS col1 FROM tab0
----
3

query I rowsort
SELECT ALL 70 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911

onlyif mysql # DIV for integer division: 
query I rowsort label-9046
SELECT - col1 DIV col2 + col1 FROM tab0
----
1
19
80

skipif mysql # not compatible
query I rowsort label-9046
SELECT - col1 / col2 + col1 FROM tab0
----
1
19
80

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 * + - col1 BETWEEN - col2 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9048
SELECT ALL - col0 DIV - col0 AS col0 FROM tab1 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9048
SELECT ALL - col0 / - col0 AS col0 FROM tab1 cor0
----
1
1
1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( col0 - 59 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9050
SELECT + 7 + CAST( col1 AS SIGNED ) FROM tab1
----
12
21
54

skipif mysql # not compatible
query I rowsort label-9050
SELECT + 7 + CAST ( col1 AS INTEGER ) FROM tab1
----
12
21
54

query I rowsort
SELECT + 41 + col1 AS col2 FROM tab0
----
122
42
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9052
SELECT + SUM( DISTINCT - col0 ) FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-9052
SELECT + SUM ( DISTINCT - col0 ) FROM tab0
----
-199

query I rowsort
SELECT ALL ( - col0 ) AS col0 FROM tab2 WHERE col1 * 96 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9054
SELECT + COUNT( ALL - col2 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9054
SELECT + COUNT ( ALL - col2 ) AS col0 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9055
SELECT SUM( ALL + 60 ) FROM tab0
----
180

skipif mysql # not compatible
query I rowsort label-9055
SELECT SUM ( ALL + 60 ) FROM tab0
----
180

query I rowsort
SELECT col2 * - 53 + - 43 AS col0 FROM tab1
----
-3170
-3647
-5131

onlyif mysql # aggregate syntax: 
query I rowsort label-9057
SELECT COUNT( * ) * - 20 + + COUNT( * ) FROM tab2
----
-57

skipif mysql # not compatible
query I rowsort label-9057
SELECT COUNT ( * ) * - 20 + + COUNT ( * ) FROM tab2
----
-57

query I rowsort
SELECT ALL col2 * - 85 + 46 AS col1 FROM tab2
----
-1909
-3354
-4884

query I rowsort
SELECT ALL + 22 AS col0 FROM tab2 WHERE NOT col1 < NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col0 ) BETWEEN ( col1 ) AND col1 / col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE NULL >= + 64 * ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9062
SELECT - COUNT( * ) + - 74 AS col1 FROM tab1
----
-77

skipif mysql # not compatible
query I rowsort label-9062
SELECT - COUNT ( * ) + - 74 AS col1 FROM tab1
----
-77

query I rowsort
SELECT ( 78 ) FROM tab2
----
78
78
78

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 57 NOT IN ( 61 * + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9065
SELECT ALL + ( + COUNT( * ) ) - - COUNT( * ) FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-9065
SELECT ALL + ( + COUNT ( * ) ) - - COUNT ( * ) FROM tab1
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9066
SELECT ALL - CAST( - col1 AS SIGNED ) - - col1 FROM tab1 WHERE + col0 - col0 IS NOT NULL
----
10
28
94

skipif mysql # not compatible
query I rowsort label-9066
SELECT ALL - CAST ( - col1 AS INTEGER ) - - col1 FROM tab1 WHERE + col0 - col0 IS NOT NULL
----
10
28
94

query I rowsort
SELECT col0 FROM tab0 WHERE NOT + col2 <= - 42
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9068
SELECT DISTINCT SUM( ALL 37 ) FROM tab0 WHERE NULL >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9068
SELECT DISTINCT SUM ( ALL 37 ) FROM tab0 WHERE NULL >= NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9069
SELECT ALL + MIN( DISTINCT - col1 ) FROM tab2 WHERE NULL NOT BETWEEN 77 AND + 51 * + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9069
SELECT ALL + MIN ( DISTINCT - col1 ) FROM tab2 WHERE NULL NOT BETWEEN 77 AND + 51 * + col1
----
NULL

query I rowsort
SELECT + col0 + col0 * 19 AS col2 FROM tab0
----
1740
1940
300

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT IN ( - 70 )
----

query I rowsort
SELECT - col2 + + 25 AS col2 FROM tab2
----
-15
-33
2

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9073
SELECT * FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) * - 63 IS NULL
----

skipif mysql # not compatible
query III rowsort label-9073
SELECT * FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) * - 63 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9074
SELECT ( - col0 ) DIV col1 AS col2 FROM tab2 WHERE NOT + 53 + + col1 * + col0 IS NULL
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9074
SELECT ( - col0 ) / col1 AS col2 FROM tab2 WHERE NOT + 53 + + col1 * + col0 IS NULL
----
-1
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9075
SELECT ALL SUM( + CAST( + col0 AS SIGNED ) ) AS col0 FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-9075
SELECT ALL SUM ( + CAST ( + col0 AS INTEGER ) ) AS col0 FROM tab0
----
199

onlyif mysql # aggregate syntax: 
query I rowsort label-9076
SELECT - 42 * + ( COUNT( * ) ) FROM tab0 AS cor0
----
-126

skipif mysql # not compatible
query I rowsort label-9076
SELECT - 42 * + ( COUNT ( * ) ) FROM tab0 AS cor0
----
-126

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( ( col0 ) ) col2 FROM tab1
----
51
85
91

query IIIIII rowsort
SELECT DISTINCT * FROM ( tab0 cor0 CROSS JOIN tab0 )
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9079
SELECT DISTINCT CAST( + col0 AS SIGNED ) + + 27 AS col1 FROM tab1
----
112
118
78

skipif mysql # not compatible
query I rowsort label-9079
SELECT DISTINCT CAST ( + col0 AS INTEGER ) + + 27 AS col1 FROM tab1
----
112
118
78

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE 49 NOT BETWEEN col0 AND ( NULL )
----
87
97

query III rowsort
SELECT * FROM tab1 cor0 WHERE - col1 NOT BETWEEN 94 AND ( + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9082
SELECT ALL - + MIN( - 45 ) * + ( 48 ) + + 88 AS col1 FROM tab1 cor0
----
2248

skipif mysql # not compatible
query I rowsort label-9082
SELECT ALL - + MIN ( - 45 ) * + ( 48 ) + + 88 AS col1 FROM tab1 cor0
----
2248

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( - col0 / col0 ) BETWEEN NULL AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9084
SELECT + COUNT( * ) + - 33 FROM tab1 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-9084
SELECT + COUNT ( * ) + - 33 FROM tab1 AS cor0
----
-30

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) IN ( - col0 * - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9086
SELECT ALL 43 + + COUNT( col0 + + col1 ) * 21 AS col0 FROM tab2 AS cor0
----
106

skipif mysql # not compatible
query I rowsort label-9086
SELECT ALL 43 + + COUNT ( col0 + + col1 ) * 21 AS col0 FROM tab2 AS cor0
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-9087
SELECT DISTINCT SUM( + col1 ) AS col0 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-9087
SELECT DISTINCT SUM ( + col1 ) AS col0 FROM tab1 AS cor0
----
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * 41 col1 FROM tab1 AS cor0
----
-2419
-2788
-3936

onlyif mysql # DIV for integer division: 
query I rowsort label-9089
SELECT + col2 DIV - 59 AS col1 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9089
SELECT + col2 / - 59 AS col1 FROM tab0 AS cor0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9090
SELECT DISTINCT - ( + COUNT( * ) ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-9090
SELECT DISTINCT - ( + COUNT ( * ) ) AS col2 FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9091
SELECT + COUNT( * ) - COUNT( * ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9091
SELECT + COUNT ( * ) - COUNT ( * ) FROM tab1
----
0

query I rowsort
SELECT - col1 AS col0 FROM tab1 WHERE NULL <= + 31 * - col2 + col1
----

query I rowsort
SELECT ALL + col1 AS col2 FROM tab0 WHERE NOT col0 - 23 <> NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NULL = col1 / 75 - col2
----

query I rowsort
SELECT - col1 FROM tab0 WHERE ( + col0 ) BETWEEN + 85 * - ( - col0 ) AND ( 12 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9096
SELECT DISTINCT + 62 + + - COUNT( * ) + 59 FROM tab2 AS cor0
----
118

skipif mysql # not compatible
query I rowsort label-9096
SELECT DISTINCT + 62 + + - COUNT ( * ) + 59 FROM tab2 AS cor0
----
118

query I rowsort
SELECT + col1 * + + ( 8 ) - 84 AS col0 FROM tab1 AS cor0
----
-44
28
292

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 89 + - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + col2 * - 24 col0 FROM tab1 AS cor0
----
110976
221184
83544

query I rowsort
SELECT 86 AS col0 FROM tab0 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
86
86
86

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + ( + ( + 32 ) ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9102
SELECT col1 DIV + + col1 + - col1 FROM tab2 AS cor0
----
-50
-66
-76

skipif mysql # not compatible
query I rowsort label-9102
SELECT col1 / + + col1 + - col1 FROM tab2 AS cor0
----
-50
-66
-76

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col0 ) IN ( col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col1 * 93 FROM tab2
----
4743
6231
7161

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 AS col0, - col2 - + - col1 col0 FROM tab0
----
15
34
87
11
97
-98

query I rowsort
SELECT DISTINCT + col1 * + + col0 AS col2 FROM tab2
----
2346
4928
5025

query I rowsort
SELECT ALL + col0 AS col0 FROM tab0 WHERE NOT ( NOT - 59 IS NULL )
----

query I rowsort
SELECT DISTINCT + col2 * - col0 - - col1 AS col0 FROM tab0 AS cor0 WHERE ( - 22 ) IN ( - 58 ) OR NULL NOT BETWEEN col2 AND ( col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9109
SELECT - CAST( - ( + CAST( 69 AS SIGNED ) ) AS SIGNED ) * + COUNT( * ) AS col1 FROM tab1 AS cor0
----
207

skipif mysql # not compatible
query I rowsort label-9109
SELECT - CAST ( - ( + CAST ( 69 AS INTEGER ) ) AS INTEGER ) * + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
207

query I rowsort
SELECT DISTINCT 54 * - 89 AS col1 FROM tab0 AS cor0
----
-4806

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9111
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + CAST( 51 AS SIGNED ) + - CAST( + 37 - + col0 AS SIGNED ) IN ( col2 + - 77 / col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9111
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + CAST ( 51 AS INTEGER ) + - CAST ( + 37 - + col0 AS INTEGER ) IN ( col2 + - 77 / col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 50 + 1 * 7 FROM tab2 AS cor0 WHERE NOT NULL < - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9113
SELECT + COUNT( * ) * + COUNT( * ) FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9113
SELECT + COUNT ( * ) * + COUNT ( * ) FROM tab2 AS cor0
----
9

query I rowsort
SELECT - - col0 FROM tab0 AS cor0 WHERE NOT - col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9115
SELECT ALL - + col0 DIV - col2 AS col0 FROM tab2 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-9115
SELECT ALL - + col0 / - col2 AS col0 FROM tab2 AS cor0
----
1
1
2

onlyif mysql # DIV for integer division: 
query I rowsort label-9116
SELECT 46 DIV - ( + - col0 ) FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9116
SELECT 46 / - ( + - col0 ) FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + - 25 * + col1 FROM tab0 cor0
----
-2025
-25
-525

query I rowsort
SELECT - col2 FROM tab1 WHERE NOT NULL > - col0 * + col2
----

query I rowsort
SELECT ALL col2 FROM tab2 WHERE + - ( col1 ) IS NOT NULL
----
23
40
58

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col0 <> - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - ( + 23 ) AS col0 FROM tab2
----
-23
-23
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-9122
SELECT ( COUNT( DISTINCT - - col0 ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9122
SELECT ( COUNT ( DISTINCT - - col0 ) ) FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9123
SELECT DISTINCT 67 + - 79 * + CAST( col2 AS SIGNED ) AS col1 FROM tab0
----
-3646
-723
-7754

skipif mysql # not compatible
query I rowsort label-9123
SELECT DISTINCT 67 + - 79 * + CAST ( col2 AS INTEGER ) AS col1 FROM tab0
----
-3646
-723
-7754

query I rowsort
SELECT - col1 + + col1 - + col0 + - + 10 FROM tab1
----
-101
-61
-95

query I rowsort
SELECT ( + col2 ) AS col0 FROM tab2 WHERE NULL > col1 - - 48
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE ( col1 * - - col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col0 * + 31 + + col1 + - + col0 FROM tab1 AS cor0
----
1544
2555
2777

query I rowsort
SELECT + 38 FROM tab2 AS cor0 WHERE col0 IS NULL
----

query I rowsort
SELECT + col0 + + - 57 * - - col1 + - 12 FROM tab1 AS cor0
----
-212
-2600
-759

query I rowsort
SELECT + 69 * + + col1 * ( - col0 ) FROM tab2 AS cor0
----
-161874
-340032
-346725

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT + 94 * - 84 > 49
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

query I rowsort
SELECT col2 * col0 FROM tab0 WHERE NULL > ( - col1 * - col0 )
----

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab1 WHERE ( - + 23 ) IS NULL
----

query I rowsort
SELECT ( col1 ) FROM tab1 WHERE NULL BETWEEN ( - ( col2 ) + + 55 ) AND 13
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9135
SELECT - 33 - + COUNT( * ) FROM tab1 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-9135
SELECT - 33 - + COUNT ( * ) FROM tab1 AS cor0
----
-36

query I rowsort
SELECT - col0 - - col0 AS col2 FROM tab2 cor0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9137
SELECT 20 * + CAST( COUNT( * ) AS SIGNED ) + 76 AS col2 FROM tab0 AS cor0
----
136

skipif mysql # not compatible
query I rowsort label-9137
SELECT 20 * + CAST ( COUNT ( * ) AS INTEGER ) + 76 AS col2 FROM tab0 AS cor0
----
136

query I rowsort
SELECT DISTINCT + col1 + col2 * + 30 FROM tab1 AS cor0
----
1775
2087
2894

onlyif mysql # aggregate syntax: 
query I rowsort label-9139
SELECT - SUM( col2 ) * 28 + - 1 AS col0 FROM tab1 AS cor0
----
-6245

skipif mysql # not compatible
query I rowsort label-9139
SELECT - SUM ( col2 ) * 28 + - 1 AS col0 FROM tab1 AS cor0
----
-6245

query I rowsort
SELECT ALL - 25 * - col0 + - + col1 + - - col2 FROM tab0 cor0
----
2164
2523
341

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 <> - 78
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 77 - + col1 AS col1 FROM tab2 cor0
----
0
10
26

query IIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0 WHERE NOT + + 69 IN ( 44 )
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

onlyif mysql # DIV for integer division: 
query I rowsort label-9144
SELECT DISTINCT + ( + col2 ) * - + col1 DIV col1 + + 94 + - 51 FROM tab2
----
-15
20
3

skipif mysql # not compatible
query I rowsort label-9144
SELECT DISTINCT + ( + col2 ) * - + col1 / col1 + + 94 + - 51 FROM tab2
----
-15
20
3

query I rowsort
SELECT col0 FROM tab1 WHERE ( NOT - 3 <= ( col1 ) )
----

query I rowsort
SELECT col2 + - 93 AS col2 FROM tab1 WHERE - 90 + - + col1 NOT BETWEEN - col0 AND + - col2
----
-25
-34
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9147
SELECT ALL - MIN( ALL + col2 ) FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-9147
SELECT ALL - MIN ( ALL + col2 ) FROM tab2
----
-23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 85 * + col1 col1 FROM tab0
----
1785
6885
85

onlyif mysql # DIV for integer division: 
query I rowsort label-9149
SELECT + col2 DIV - 73 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9149
SELECT + col2 / - 73 FROM tab1
----
-1
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9150
SELECT CAST( - col2 AS SIGNED ) * - col2 AS col2 FROM tab0
----
100
2209
9801

skipif mysql # not compatible
query I rowsort label-9150
SELECT CAST ( - col2 AS INTEGER ) * - col2 AS col2 FROM tab0
----
100
2209
9801

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9151
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 13 + - + CAST( + col1 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9151
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 13 + - + CAST ( + col1 AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT + col0 * + col1 + + - 90 FROM tab1 AS cor0
----
335
4187
624

query I rowsort
SELECT - ( + + col0 ) FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT DISTINCT 55 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
55

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 75 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9156
SELECT ALL - COUNT( * ) AS col0, 63 AS col2 FROM tab2 AS cor0
----
-3
63

skipif mysql # not compatible
query II rowsort label-9156
SELECT ALL - COUNT ( * ) AS col0, 63 AS col2 FROM tab2 AS cor0
----
-3
63

query II rowsort
SELECT + + 78 AS col2, - 95 AS col1 FROM tab2 cor0
----
78
-95
78
-95
78
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-9158
SELECT COUNT( ALL - col2 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9158
SELECT COUNT ( ALL - col2 ) AS col2 FROM tab2
----
3

query I rowsort
SELECT - 90 * + col2 AS col0 FROM tab0
----
-4230
-8910
-900

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 31 col1 FROM tab0 AS cor0
----
31
31
31

query I rowsort
SELECT col0 * - col1 FROM tab2 cor0 WHERE NOT ( 22 * + 32 >= ( - + ( - 64 ) ) )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - 4 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 10 / - - col2 AS col2 FROM tab2 AS cor0 WHERE NOT NULL > NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL <> ( + col1 )
----

query I rowsort
SELECT + - 72 FROM tab2 WHERE NOT - col1 = - + 67
----
-72
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-9166
SELECT ALL - COUNT( DISTINCT - + col2 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-9166
SELECT ALL - COUNT ( DISTINCT - + col2 ) FROM tab0
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9167
SELECT DISTINCT COUNT( * ) DIV COUNT( * ) + + - COUNT( * ) FROM tab2
----
-2

skipif mysql # not compatible
query I rowsort label-9167
SELECT DISTINCT COUNT ( * ) / COUNT ( * ) + + - COUNT ( * ) FROM tab2
----
-2

query II rowsort
SELECT col1 AS col0, col2 AS col0 FROM tab0
----
1
99
21
10
81
47

query II rowsort
SELECT col2 AS col1, 0 FROM tab1
----
59
0
68
0
96
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9170
SELECT ALL - col1 * 72 + col1 + - 85 DIV - - col0 col2 FROM tab1
----
-3337
-356
-995

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9170
SELECT ALL - col1 * 72 + col1 + - 85 / - - col0 col2 FROM tab1
----
-3337
-356
-995

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9171
SELECT DISTINCT 94 col0, 16 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE 54 IS NOT NULL
----
94
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9171
SELECT DISTINCT 94 col0, 16 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE 54 IS NOT NULL
----
94
NULL

query I rowsort
SELECT DISTINCT - + col0 * - 96 AS col2 FROM tab2 cor0
----
4416
6144
7200

onlyif mysql # aggregate syntax: 
query I rowsort label-9173
SELECT ALL COUNT( * ) + COUNT( * ) AS col2 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-9173
SELECT ALL COUNT ( * ) + COUNT ( * ) AS col2 FROM tab2
----
6

query I rowsort
SELECT ALL col2 * 13 AS col2 FROM tab2
----
299
520
754

query I rowsort
SELECT ALL - - 3 + + col2 FROM tab0 cor0
----
102
13
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 68 + - 70 col1 FROM tab2 AS cor0
----
-2

query I rowsort
SELECT ALL + col0 * + col1 + + 85 AS col1 FROM tab2 AS cor0
----
2431
5013
5110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9178
SELECT MAX( ALL + - ( + CAST( NULL AS SIGNED ) ) ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9178
SELECT MAX ( ALL + - ( + CAST ( NULL AS INTEGER ) ) ) FROM tab0 cor0
----
NULL

query I rowsort
SELECT DISTINCT - col1 - - col1 - - col2 AS col0 FROM tab0 AS cor0
----
10
47
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9180
SELECT DISTINCT - SUM( - col2 ) DIV - 71 AS col0 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9180
SELECT DISTINCT - SUM ( - col2 ) / - 71 AS col0 FROM tab2 AS cor0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9181
SELECT ALL ( + + col1 ) DIV col0 + - + col1 AS col0 FROM tab2
----
-50
-67
-76

skipif mysql # not compatible
query I rowsort label-9181
SELECT ALL ( + + col1 ) / col0 + - + col1 AS col0 FROM tab2
----
-50
-67
-76

onlyif mysql # aggregate syntax: 
query II rowsort label-9182
SELECT DISTINCT - COUNT( * ), + MAX( - 61 ) AS col1 FROM tab1
----
-3
-61

skipif mysql # not compatible
query II rowsort label-9182
SELECT DISTINCT - COUNT ( * ), + MAX ( - 61 ) AS col1 FROM tab1
----
-3
-61

query II rowsort
SELECT + 9 AS col2, + col1 + - + ( - col0 ) AS col2 FROM tab2 AS cor0
----
9
141
9
142
9
97

query I rowsort
SELECT DISTINCT - col0 * ( col0 ) * - 58 * + - col2 FROM tab2
----
-18922500
-2822744
-9502720

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9185
SELECT + CAST( NULL AS DECIMAL ) * + col2 + - col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9185
SELECT + CAST ( NULL AS REAL ) * + col2 + - col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL <= col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9187
SELECT + - 55 * - - COUNT( * ) AS col0 FROM tab1 cor0
----
-165

skipif mysql # not compatible
query I rowsort label-9187
SELECT + - 55 * - - COUNT ( * ) AS col0 FROM tab1 cor0
----
-165

query I rowsort
SELECT + 74 * - 4 AS col0 FROM tab2 AS cor0
----
-296
-296
-296

query I rowsort
SELECT ALL - 52 - col0 AS col2 FROM tab2 AS cor0 WHERE NOT 37 IS NULL
----
-116
-127
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col0, col1 AS col2 FROM tab0 AS cor0
----
15
81
87
21
97
1

query I rowsort
SELECT - + 85 * + + 61 AS col1 FROM tab1 AS cor0
----
-5185
-5185
-5185

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9192
SELECT ( CAST( NULL AS SIGNED ) ), col0 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-9192
SELECT ( CAST ( NULL AS INTEGER ) ), col0 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT NULL >= NULL )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( 17 + + 64 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL <> - 46
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9196
SELECT COUNT( * ) FROM tab1 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9196
SELECT COUNT ( * ) FROM tab1 WHERE ( NULL ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9197
SELECT 45 + COUNT( * ) - + 87 AS col2 FROM tab0
----
-39

skipif mysql # not compatible
query I rowsort label-9197
SELECT 45 + COUNT ( * ) - + 87 AS col2 FROM tab0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-9198
SELECT ALL + 9 + - COUNT( * ) FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-9198
SELECT ALL + 9 + - COUNT ( * ) FROM tab1
----
6

query I rowsort
SELECT col0 * + col2 + + col0 + - - col0 * col2 FROM tab0
----
1425
1827
19303

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9200
SELECT ALL + + 17 + - - ( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9200
SELECT ALL + + 17 + - - ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + 49 + + 89 FROM tab0 cor0
----
40
40
40

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col1 / + + col1 * col2 IS NULL
----

query II rowsort
SELECT DISTINCT + col1 + + col1 + + - col2 AS col0, - col1 AS col2 FROM tab0 cor0
----
-97
-1
115
-81
32
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-9204
SELECT DISTINCT ( MIN( + 15 ) ) * 93 FROM tab1 AS cor0
----
1395

skipif mysql # not compatible
query I rowsort label-9204
SELECT DISTINCT ( MIN ( + 15 ) ) * 93 FROM tab1 AS cor0
----
1395

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9205
SELECT + CAST( col0 AS SIGNED ) * + ( - 22 ) AS col0 FROM tab2
----
-1012
-1408
-1650

skipif mysql # not compatible
query I rowsort label-9205
SELECT + CAST ( col0 AS INTEGER ) * + ( - 22 ) AS col0 FROM tab2
----
-1012
-1408
-1650

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9206
SELECT - col1 * + CAST( + col1 AS SIGNED ) - + CAST( NULL AS SIGNED ) / col2 col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9206
SELECT - col1 * + CAST ( + col1 AS INTEGER ) - + CAST ( NULL AS INTEGER ) / col2 col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9207
SELECT ALL 80 + ( - + COUNT( * ) ) AS col2 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-9207
SELECT ALL 80 + ( - + COUNT ( * ) ) AS col2 FROM tab2
----
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - col0 + - - 89 col2 FROM tab0 AS cor0
----
-105
-85
59

query I rowsort
SELECT DISTINCT - - col0 + + 22 FROM tab1 AS cor0
----
107
113
73

query I rowsort
SELECT + col0 * + ( col2 ) + - 28 FROM tab2 AS cor0
----
1030
2532
4322

query I rowsort
SELECT ALL + col2 * + col2 - + col0 FROM tab0 AS cor0
----
13
2194
9704

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9212
SELECT ALL - CAST( MIN( - col0 ) AS SIGNED ) + + + 79 AS col2 FROM tab0 AS cor0 WHERE CAST( + 71 AS SIGNED ) IS NOT NULL
----
176

skipif mysql # not compatible
query I rowsort label-9212
SELECT ALL - CAST ( MIN ( - col0 ) AS INTEGER ) + + + 79 AS col2 FROM tab0 AS cor0 WHERE CAST ( + 71 AS INTEGER ) IS NOT NULL
----
176

query I rowsort
SELECT ( + - 62 ) AS col0 FROM tab0 AS cor0
----
-62
-62
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9214
SELECT - + 49 * - col2 + - col0 AS col2 FROM tab0 AS cor0 WHERE NOT + CAST( + 58 AS SIGNED ) >= - + col2
----

skipif mysql # not compatible
query I rowsort label-9214
SELECT - + 49 * - col2 + - col0 AS col2 FROM tab0 AS cor0 WHERE NOT + CAST ( + 58 AS INTEGER ) >= - + col2
----

query I rowsort
SELECT - col1 AS col2 FROM tab1 AS cor0 WHERE NOT + col0 IS NULL
----
-14
-47
-5

onlyif mysql # DIV for integer division: 
query II rowsort label-9216
SELECT DISTINCT ( - 98 ) DIV 86 AS col0, col2 AS col2 FROM tab1 AS cor0
----
-1
59
-1
68
-1
96

skipif mysql # not compatible
query II rowsort label-9216
SELECT DISTINCT ( - 98 ) / 86 AS col0, col2 AS col2 FROM tab1 AS cor0
----
-1
59
-1
68
-1
96

query I rowsort
SELECT ALL - col2 * + 3 FROM tab1 cor0
----
-177
-204
-288

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9218
SELECT CAST( NULL AS DECIMAL ) FROM tab2 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-9218
SELECT CAST ( NULL AS REAL ) FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col0 * - + col0 AS col0 FROM tab2
----
-2116
-4096
-5625

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 18 col1 FROM tab0
----
18

query I rowsort
SELECT + col0 * + col0 * + col0 FROM tab1
----
132651
614125
753571

onlyif mysql # aggregate syntax: 
query I rowsort label-9222
SELECT DISTINCT ( - COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9222
SELECT DISTINCT ( - COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL BETWEEN + 66 AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 87 col1 FROM tab1 AS cor0
----
-87
-87
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-9225
SELECT ( - + COUNT( * ) ) AS col2 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9225
SELECT ( - + COUNT ( * ) ) AS col2 FROM tab1 cor0
----
-3

query II rowsort
SELECT 75 AS col2, - col1 * + col1 + + col0 + + - col1 AS col0 FROM tab2
----
75
-2606
75
-4481
75
-5942

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 86 col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

onlyif mysql # aggregate syntax: 
query I rowsort label-9228
SELECT - ( MAX( DISTINCT col1 ) ) AS col1 FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-9228
SELECT - ( MAX ( DISTINCT col1 ) ) AS col1 FROM tab2
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9229
SELECT - + COUNT( - - ( ( - 82 ) ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-9229
SELECT - + COUNT ( - - ( ( - 82 ) ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 + + - col2 * - col0 col2, - 83 col2 FROM tab1 AS cor0
----
4845
-83
4930
-83
6097
-83

query I rowsort
SELECT + 90 + - col1 FROM tab0 AS cor0
----
69
89
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9232
SELECT DISTINCT COUNT( ALL - - ( col2 ) ) + + 96 AS col0 FROM tab0 cor0
----
99

skipif mysql # not compatible
query I rowsort label-9232
SELECT DISTINCT COUNT ( ALL - - ( col2 ) ) + + 96 AS col0 FROM tab0 cor0
----
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 23 + + 86 col0 FROM tab2 AS cor0
----
109
109
109

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) <= ( + 91 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + - 0 col0 FROM tab0 AS cor0
----
-1
-21
-81

query I rowsort
SELECT + + 28 + col2 AS col2 FROM tab2 AS cor0
----
51
68
86

onlyif mysql # aggregate syntax: 
query I rowsort label-9237
SELECT - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9237
SELECT - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
-3

query I rowsort
SELECT col2 + + 85 AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
132
184
95

query I rowsort
SELECT 74 * + + col2 + 4 + col0 - + - col2 * 71 + col1 + - - col0 * - + 19 + + - col2 - - 68 * + 8 FROM tab0 AS cor0
----
13059
443
7127

query III rowsort
SELECT * FROM tab0 WHERE - col1 / - - 53 - - col2 + + - col2 + - ( 7 ) IN ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9241
SELECT DISTINCT + MAX( DISTINCT + col0 ) FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-9241
SELECT DISTINCT + MAX ( DISTINCT + col0 ) FROM tab2
----
75

query I rowsort
SELECT ( - col2 ) * col0 * - ( - + col1 ) FROM tab1
----
-25075
-290836
-68544

query I rowsort
SELECT ALL 83 * ( + col1 ) AS col1 FROM tab2
----
4233
5561
6391

query II rowsort
SELECT ALL col1 + 68, col0 FROM tab1
----
115
91
73
85
82
51

query I rowsort
SELECT 58 * - col2 * - col1 FROM tab0
----
12180
220806
5742

query I rowsort
SELECT DISTINCT col2 + - - 11 FROM tab1
----
107
70
79

query I rowsort
SELECT ALL + 92 * + col2 + - + ( - col2 ) + - - col2 FROM tab2
----
2162
3760
5452

onlyif mysql # aggregate syntax: 
query I rowsort label-9248
SELECT ALL MIN( - col1 ) FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-9248
SELECT ALL MIN ( - col1 ) FROM tab0
----
-81

query I rowsort
SELECT DISTINCT - 62 + - 52 FROM tab1 AS cor0
----
-114

query I rowsort
SELECT - 13 - + col2 * 39 + col2 AS col2 FROM tab1 AS cor0
----
-2255
-2597
-3661

onlyif mysql # aggregate syntax: 
query II rowsort label-9251
SELECT DISTINCT SUM( ALL ( + col1 ) ) AS col2, COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( - + col2 )
----
NULL
0

skipif mysql # not compatible
query II rowsort label-9251
SELECT DISTINCT SUM ( ALL ( + col1 ) ) AS col2, COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( - + col2 )
----
NULL
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9252
SELECT + COUNT( 25 ) - ( - MIN( DISTINCT + + 36 ) ) * + SUM( - + 15 ) - + 78 + 81 AS col0 FROM tab1 AS cor0
----
-1614

skipif mysql # not compatible
query I rowsort label-9252
SELECT + COUNT ( 25 ) - ( - MIN ( DISTINCT + + 36 ) ) * + SUM ( - + 15 ) - + 78 + 81 AS col0 FROM tab1 AS cor0
----
-1614

query I rowsort
SELECT DISTINCT - col0 FROM tab2 AS cor0 WHERE ( ( NOT ( NULL ) NOT IN ( ( + 85 ) + 65 + + col1 ) ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9254
SELECT + col0 col2 FROM tab0 WHERE + CAST( + col0 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9254
SELECT + col0 col2 FROM tab0 WHERE + CAST ( + col0 AS INTEGER ) IS NULL
----

query II rowsort
SELECT + 27, - 31 AS col1 FROM tab1 WHERE NULL IS NULL
----
27
-31
27
-31
27
-31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 52 + + col2 col2 FROM tab2
----
110
75
92

query II rowsort
SELECT + + col2 * + + col0 AS col1, - col0 AS col2 FROM tab1 AS cor0
----
4896
-51
5015
-85
6188
-91

query II rowsort
SELECT + 57 AS col0, + 74 + ( - - col0 ) FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( - col0 )
----

query II rowsort
SELECT DISTINCT col2 AS col2, 97 FROM tab1
----
59
97
68
97
96
97

query III rowsort
SELECT ALL * FROM tab1 WHERE - col1 * - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9261
SELECT DISTINCT col2, CAST( 45 AS SIGNED ) AS col2 FROM tab1
----
59
45
68
45
96
45

skipif mysql # not compatible
query II rowsort label-9261
SELECT DISTINCT col2, CAST ( 45 AS INTEGER ) AS col2 FROM tab1
----
59
45
68
45
96
45

onlyif mysql # aggregate syntax: 
query I rowsort label-9262
SELECT ALL + 49 * - COUNT( * ) + + + 24 AS col2 FROM tab2, tab1 AS cor0
----
-417

skipif mysql # not compatible
query I rowsort label-9262
SELECT ALL + 49 * - COUNT ( * ) + + + 24 AS col2 FROM tab2, tab1 AS cor0
----
-417

query I rowsort
SELECT ALL + 47 * + + col0 AS col2 FROM tab1
----
2397
3995
4277

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9264
SELECT CAST( - 51 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-51
-51
-51

skipif mysql # not compatible
query I rowsort label-9264
SELECT CAST ( - 51 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-51
-51
-51

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 + - col2 * + col2 / + ( - 47 ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9266
SELECT + CAST( NULL AS SIGNED ) + 91 + + - COUNT( * ) * - COUNT( * ) / - 50 * - + MAX( + ( col2 ) ) col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9266
SELECT + CAST ( NULL AS INTEGER ) + 91 + + - COUNT ( * ) * - COUNT ( * ) / - 50 * - + MAX ( + ( col2 ) ) col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - col2 * + col1 + - + 74 AS col1 FROM tab0 AS cor0
----
-173
-284
-3881

onlyif mysql # DIV for integer division: 
query I rowsort label-9268
SELECT DISTINCT - col0 DIV + + col1 col1 FROM tab0 AS cor0
----
-4
-97
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9268
SELECT DISTINCT - col0 / + + col1 col1 FROM tab0 AS cor0
----
-4
-97
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9269
SELECT DISTINCT - ( COUNT( * ) ) * + + 60 + + ( + 23 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-517

skipif mysql # not compatible
query I rowsort label-9269
SELECT DISTINCT - ( COUNT ( * ) ) * + + 60 + + ( + 23 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-517

query I rowsort
SELECT DISTINCT col1 * + col0 * + + 20 * - + col0 + + 62 AS col1 FROM tab2 AS cor0
----
-2158258
-6307778
-7537438

query II rowsort
SELECT ALL - ( - col1 ) AS col2, + col1 AS col2 FROM tab0 AS cor0
----
1
1
21
21
81
81

query I rowsort
SELECT + + 98 AS col1 FROM tab0 AS cor0
----
98
98
98

query I rowsort
SELECT + + col0 * - ( + col0 ) AS col2 FROM tab0 AS cor0
----
-225
-7569
-9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 79 + + col0 col0 FROM tab2 AS cor0
----
125
143
154

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9275
SELECT DISTINCT - COUNT( DISTINCT CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9275
SELECT DISTINCT - COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - ( col2 ) NOT BETWEEN + 62 AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9277
SELECT - + 47 - + + COUNT( 14 ) FROM tab1 AS cor0 WHERE ( + col1 IS NOT NULL )
----
-50

skipif mysql # not compatible
query I rowsort label-9277
SELECT - + 47 - + + COUNT ( 14 ) FROM tab1 AS cor0 WHERE ( + col1 IS NOT NULL )
----
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9278
SELECT ALL CAST( - - MIN( - + 9 ) AS SIGNED ) AS col1 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-9278
SELECT ALL CAST ( - - MIN ( - + 9 ) AS INTEGER ) AS col1 FROM tab0
----
-9

query I rowsort
SELECT 94 + - col1 FROM tab2
----
17
27
43

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN - col1 + col2 AND NULL
----

query I rowsort
SELECT + col0 + - + col2 - col1 - - col0 FROM tab2
----
11
18
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9282
SELECT DISTINCT + col0 + + col2 * CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9282
SELECT DISTINCT + col0 + + col2 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( NULL ) <= + + col0
----

query I rowsort
SELECT ( - ( - col1 ) ) FROM tab0 AS cor0
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9285
SELECT ALL col0 - + 26 - + - CAST( NULL AS SIGNED ) * col2 * + col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9285
SELECT ALL col0 - + 26 - + - CAST ( NULL AS INTEGER ) * col2 * + col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9286
SELECT DISTINCT + COUNT( * ) + - - 53 FROM tab1 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-9286
SELECT DISTINCT + COUNT ( * ) + - - 53 FROM tab1 AS cor0
----
56

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL <> col1 * + col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9288
SELECT 99 AS col1, COUNT( * ) AS col2 FROM tab1
----
99
3

skipif mysql # not compatible
query II rowsort label-9288
SELECT 99 AS col1, COUNT ( * ) AS col2 FROM tab1
----
99
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9289
SELECT + - 76 + + + COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-67

skipif mysql # not compatible
query I rowsort label-9289
SELECT + - 76 + + + COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9290
SELECT - + CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT ( - CAST( + + 57 AS SIGNED ) + + 56 BETWEEN NULL AND + col2 )
----

skipif mysql # not compatible
query I rowsort label-9290
SELECT - + CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT ( - CAST ( + + 57 AS INTEGER ) + + 56 BETWEEN NULL AND + col2 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - + col1 + + col1 - + col2 + + col1 BETWEEN col1 AND + ( - - col1 ) + - - 55
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9292
SELECT ALL + COUNT( + 88 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9292
SELECT ALL + COUNT ( + 88 ) FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9293
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( - + CAST( + 79 AS SIGNED ) + - - col0, col2 - + col1 * col0 + - 94 + col2 * - - col0, 9 )
----

skipif mysql # not compatible
query III rowsort label-9293
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( - + CAST ( + 79 AS INTEGER ) + - - col0, col2 - + col1 * col0 + - 94 + col2 * - - col0, 9 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9294
SELECT ALL - 72 DIV ( 99 ) + - col2 AS col1 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-9294
SELECT ALL - 72 / ( 99 ) + - col2 AS col1 FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-9295
SELECT DISTINCT - MIN( ALL + col0 ) FROM tab1 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-9295
SELECT DISTINCT - MIN ( ALL + col0 ) FROM tab1 cor0
----
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * 38 col1 FROM tab0
----
3078
38
798

query I rowsort
SELECT DISTINCT 72 * - col2 FROM tab1
----
-4248
-4896
-6912

query I rowsort
SELECT ALL + 14 * col2 FROM tab0
----
1386
140
658

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9299
SELECT DISTINCT + col2 / - + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9299
SELECT DISTINCT + col2 / - + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 43 * 33 col0 FROM tab2 WHERE NOT + 66 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9301
SELECT DISTINCT + ( + - MAX( - col0 ) ) / + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9301
SELECT DISTINCT + ( + - MAX ( - col0 ) ) / + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9302
SELECT ALL - CAST( - COUNT( * ) AS SIGNED ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9302
SELECT ALL - CAST ( - COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT - - AVG ( - - col2 ) AS col1 FROM tab0 WHERE 57 = - - 43
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9304
SELECT + COUNT( * ) + - 5 FROM tab2
----
-2

skipif mysql # not compatible
query I rowsort label-9304
SELECT + COUNT ( * ) + - 5 FROM tab2
----
-2

query I rowsort
SELECT ALL + col0 * + + 76 * - + col0 - - col2 AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-160793
-311256
-427442

query I rowsort
SELECT DISTINCT + - ( - 10 ) AS col1 FROM tab1 cor0
----
10

query II rowsort
SELECT ALL + col1 + + ( - + col1 ) * + - 61 AS col0, col1 * + col2 FROM tab1 AS cor0
----
2914
3196
310
295
868
1344

query III rowsort
SELECT * FROM tab0 cor0 WHERE col1 - + - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 * + col2 >= col1 + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9310
SELECT + - CAST( NULL AS SIGNED ) * + - col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9310
SELECT + - CAST ( NULL AS INTEGER ) * + - col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( - col0 ) * + 80 * + col1 FROM tab2 AS cor0
----
-187680
-394240
-402000

query I rowsort
SELECT DISTINCT + - 58 * + 34 FROM tab2 AS cor0
----
-1972

query I rowsort
SELECT - col2 * col1 * - - 16 + + + col2 FROM tab0 AS cor0
----
-1485
-3350
-60865

query I rowsort
SELECT DISTINCT 91 - - + col0 * col2 FROM tab2
----
1149
2651
4441

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9315
SELECT DISTINCT col2 + - + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9315
SELECT DISTINCT col2 + - + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9316
SELECT ALL + MAX( DISTINCT - col1 ) AS col1 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-9316
SELECT ALL + MAX ( DISTINCT - col1 ) AS col1 FROM tab1
----
-5

query III rowsort
SELECT * FROM tab0 WHERE ( col2 * col1 <> - 98 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE + col2 * col0 * - + col1 + - col1 IN ( - col1 / + - 67 + - col0, 5 - - - 94 * - col1 * col0 )
----

query I rowsort
SELECT DISTINCT col1 + 80 AS col2 FROM tab2
----
131
147
157

query I rowsort
SELECT - - col1 - - + col2 FROM tab2 AS cor0
----
117
125
74

query I rowsort
SELECT ALL + - 3 AS col2 FROM tab0 AS cor0 WHERE NOT - 72 IS NULL
----
-3
-3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9322
SELECT - 6 * COUNT( * ) + - 55 AS col1 FROM tab1 AS cor0
----
-73

skipif mysql # not compatible
query I rowsort label-9322
SELECT - 6 * COUNT ( * ) + - 55 AS col1 FROM tab1 AS cor0
----
-73

query I rowsort
SELECT + col1 * - - col2 - col2 + + col0 FROM tab2 AS cor0
----
1196
3104
3903

onlyif mysql # aggregate syntax: 
query I rowsort label-9324
SELECT ALL - MIN( ALL + 88 ) - 15 AS col2 FROM tab0 cor0 CROSS JOIN tab0 cor1
----
-103

skipif mysql # not compatible
query I rowsort label-9324
SELECT ALL - MIN ( ALL + 88 ) - 15 AS col2 FROM tab0 cor0 CROSS JOIN tab0 cor1
----
-103

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL = col1 + + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9326
SELECT - + COUNT( ALL col0 ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9326
SELECT - + COUNT ( ALL col0 ) FROM tab0 cor0
----
-3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL > col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9328
SELECT - MAX( + 2 ) FROM tab0 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-9328
SELECT - MAX ( + 2 ) FROM tab0 AS cor0
----
-2

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col0 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col0 FROM tab1 AS cor0 WHERE NOT col0 * + - col2 / - 87 > + col2 + col2
----
-51
-85
-91

query I rowsort
SELECT ( + - 27 ) FROM tab1
----
-27
-27
-27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 col2, col0 col2 FROM tab0
----
-1
97
-21
87
-81
15

query III rowsort
SELECT ALL * FROM tab2 WHERE - - col1 >= NULL
----

query I rowsort
SELECT ALL 21 * 26 AS col2 FROM tab2
----
546
546
546

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col0 + - - col0 / col1 IS NULL
----

query I rowsort
SELECT col2 * - 17 AS col2 FROM tab1
----
-1003
-1156
-1632

query I rowsort
SELECT col2 + + col0 + col0 * - col0 + - ( + 55 ) FROM tab2 AS cor0
----
-2102
-4047
-5547

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 83 + col0 col1 FROM tab1 AS cor0
----
134
168
174

query I rowsort
SELECT ALL 58 * - 33 * - + col2 FROM tab0 AS cor0
----
189486
19140
89958

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9340
SELECT - 71 * - 31 * - col2 + CAST( NULL AS SIGNED ) + - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9340
SELECT - 71 * - 31 * - col2 + CAST ( NULL AS INTEGER ) + - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9341
SELECT + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE - col0 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-9341
SELECT + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE - col0 <= NULL
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN + col2 * + - col0 AND NULL
----

query I rowsort
SELECT DISTINCT + 49 * 73 * - + col2 * - col1 AS col2 FROM tab2
----
11017160
13900222
4195821

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9344
SELECT ALL 60 * + + col0 + CAST( NULL AS SIGNED ), 98 AS col2 FROM tab0
----
NULL
98
NULL
98
NULL
98

skipif mysql # not compatible
query II rowsort label-9344
SELECT ALL 60 * + + col0 + CAST ( NULL AS INTEGER ), 98 AS col2 FROM tab0
----
NULL
98
NULL
98
NULL
98

query I rowsort
SELECT DISTINCT - col1 + + 8 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-39
-6
3

query II rowsort
SELECT DISTINCT - 42 + + col2, + col0 FROM tab2
----
-19
46
-2
64
16
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9347
SELECT - + MIN( ALL + 8 ) AS col0 FROM tab1 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-9347
SELECT - + MIN ( ALL + 8 ) AS col0 FROM tab1 AS cor0
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-9348
SELECT MIN( DISTINCT + 19 ) AS col1 FROM tab1 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-9348
SELECT MIN ( DISTINCT + 19 ) AS col1 FROM tab1 AS cor0
----
19

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 * - col2 IS NULL
----

query I rowsort
SELECT - col1 * - - col0 AS col2 FROM tab1 AS cor0
----
-425
-4277
-714

query II rowsort
SELECT DISTINCT - 61 + - col1, - col1 AS col1 FROM tab0 AS cor0
----
-142
-81
-62
-1
-82
-21

query II rowsort
SELECT + col2 - + - col2 AS col0, 46 * - 96 AS col1 FROM tab1 AS cor0
----
118
-4416
136
-4416
192
-4416

query I rowsort
SELECT DISTINCT + - ( - - col1 ) + col2 FROM tab2 cor0
----
-28
-37
-9

query I rowsort
SELECT ALL - - ( + + col1 ) + - + 74 AS col1 FROM tab2 AS cor0
----
-23
-7
3

query I rowsort
SELECT DISTINCT - col0 * - col0 * 18 AS col2 FROM tab1 AS cor0
----
130050
149058
46818

query II rowsort
SELECT DISTINCT + col1 * - col1 AS col0, col2 FROM tab1 cor0
----
-196
96
-2209
68
-25
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 84 * + + 97 col2 FROM tab0 AS cor0
----
8148
8148
8148

query I rowsort
SELECT ALL 39 - + - col1 FROM tab0
----
120
40
60

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 64 + 48 < col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + col1 * - col2 + - col0 AS col2, col2 + + + 9 AS col2 FROM tab0
----
-196
108
-297
19
-3822
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - ( ( - 27 ) ) ) col0 FROM tab0
----
27
27
27

query II rowsort
SELECT DISTINCT col2 AS col2, 41 FROM tab0
----
10
41
47
41
99
41

onlyif mysql # aggregate syntax: 
query I rowsort label-9363
SELECT ALL - COUNT( * ) AS col2 FROM tab0 WHERE NOT col0 + - + col0 NOT BETWEEN + 15 + + - 64 AND - col2
----
0

skipif mysql # not compatible
query I rowsort label-9363
SELECT ALL - COUNT ( * ) AS col2 FROM tab0 WHERE NOT col0 + - + col0 NOT BETWEEN + 15 + + - 64 AND - col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9364
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL = col0 + + + 5
----
0

skipif mysql # not compatible
query I rowsort label-9364
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL = col0 + + + 5
----
0

query II rowsort
SELECT ALL - col0 * col1 * - - col2 * + col2 AS col0, 13 * 6 AS col0 FROM tab0
----
-182700
78
-2683935
78
-950697
78

onlyif mysql # DIV for integer division: 
query I rowsort label-9366
SELECT DISTINCT col2 DIV 99 AS col2 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-9366
SELECT DISTINCT col2 / 99 AS col2 FROM tab0
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9367
SELECT + ( + COUNT( ALL 69 ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9367
SELECT + ( + COUNT ( ALL 69 ) ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9368
SELECT + + MIN( DISTINCT col2 ) FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-9368
SELECT + + MIN ( DISTINCT col2 ) FROM tab1 AS cor0
----
59

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL = + col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 71 - - col1 * col1 + - + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9371
SELECT + - col1 FROM tab2 cor0 WHERE NOT ( - CAST( - col2 AS SIGNED ) ) * col0 < 14
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-9371
SELECT + - col1 FROM tab2 cor0 WHERE NOT ( - CAST ( - col2 AS INTEGER ) ) * col0 < 14
----
-51
-67
-77

query I rowsort
SELECT 75 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9373
SELECT - CAST( - ( - 41 ) AS SIGNED ) FROM tab0
----
-41
-41
-41

skipif mysql # not compatible
query I rowsort label-9373
SELECT - CAST ( - ( - 41 ) AS INTEGER ) FROM tab0
----
-41
-41
-41

query I rowsort
SELECT DISTINCT col1 * - + ( - col0 ) FROM tab1
----
425
4277
714

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9375
SELECT - CAST( + + col0 AS SIGNED ) FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-9375
SELECT - CAST ( + + col0 AS INTEGER ) FROM tab2
----
-46
-64
-75

query I rowsort
SELECT DISTINCT - col2 + 42 * + 1 + - col1 * + - 32 AS col2 FROM tab1
----
143
1478
394

query I rowsort
SELECT ALL - - col1 - col1 - - + 46 * col1 FROM tab0 AS cor0 WHERE NOT - 91 IS NOT NULL
----

query I rowsort
SELECT ALL col0 * - + 83 AS col0 FROM tab1 AS cor0
----
-4233
-7055
-7553

onlyif mysql # aggregate syntax: 
query I rowsort label-9379
SELECT - COUNT( * ) + + + 83 FROM tab1 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-9379
SELECT - COUNT ( * ) + + + 83 FROM tab1 AS cor0
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9380
SELECT + 30 + COUNT( * ) FROM tab0
----
33

skipif mysql # not compatible
query I rowsort label-9380
SELECT + 30 + COUNT ( * ) FROM tab0
----
33

query I rowsort
SELECT ( col1 ) * col0 + ( col0 ) AS col0 FROM tab1
----
4368
510
765

query I rowsort
SELECT ALL + col1 * 62 FROM tab0
----
1302
5022
62

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9383
SELECT DISTINCT + - col1 DIV - 34 - + - col0 + - col1 FROM tab1 AS cor0 WHERE + CAST( + - col1 AS SIGNED ) IS NOT NULL
----
37
45
80

skipif mysql # not compatible
query I rowsort label-9383
SELECT DISTINCT + - col1 / - 34 - + - col0 + - col1 FROM tab1 AS cor0 WHERE + CAST ( + - col1 AS INTEGER ) IS NOT NULL
----
37
45
80

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL = - col1
----

query I rowsort
SELECT ALL - - col2 + - col2 * + + col1 AS col2 FROM tab1 cor0
----
-1248
-236
-3128

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + - col2 * + col0 - + 69 col2 FROM tab1 AS cor0
----
-4979
-5089
-6304

query I rowsort
SELECT ALL col2 * - col2 - + - col0 * - - 13 * + col0 FROM tab0 AS cor0
----
112516
716
98297

onlyif mysql # DIV for integer division: 
query I rowsort label-9388
SELECT ALL + col1 DIV - col2 + + - 9 AS col2 FROM tab2 cor0
----
-10
-10
-11

skipif mysql # not compatible
query I rowsort label-9388
SELECT ALL + col1 / - col2 + + - 9 AS col2 FROM tab2 cor0
----
-10
-10
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-9389
SELECT DISTINCT - + col2 * - col0 - + col2 DIV - - col0 AS col2 FROM tab2 AS cor0
----
1058
2560
4350

skipif mysql # not compatible
query I rowsort label-9389
SELECT DISTINCT - + col2 * - col0 - + col2 / - - col0 AS col2 FROM tab2 AS cor0
----
1058
2560
4350

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 * + + col1 - - - 33 col0 FROM tab1 AS cor0
----
-2242
-229
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-9391
SELECT - - COUNT( * ) * - 88, 48 AS col2 FROM tab2 cor0
----
-264
48

skipif mysql # not compatible
query II rowsort label-9391
SELECT - - COUNT ( * ) * - 88, 48 AS col2 FROM tab2 cor0
----
-264
48

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + + col0 = + col1 * - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9393
SELECT - AVG ( DISTINCT CAST( NULL AS SIGNED ) ) * + COUNT( * ) - 42 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9393
SELECT - AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) * + COUNT ( * ) - 42 AS col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9394
SELECT ALL MIN( ALL + + col0 ) FROM tab0 WHERE + col0 BETWEEN - col0 * + - ( col2 ) AND ( - - col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9394
SELECT ALL MIN ( ALL + + col0 ) FROM tab0 WHERE + col0 BETWEEN - col0 * + - ( col2 ) AND ( - - col0 )
----
NULL

query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 AS cor0 WHERE - 33 IS NOT NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

onlyif mysql # aggregate syntax: 
query II rowsort label-9396
SELECT DISTINCT - COUNT( * ) AS col0, COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9
9

skipif mysql # not compatible
query II rowsort label-9396
SELECT DISTINCT - COUNT ( * ) AS col0, COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9
9

query I rowsort
SELECT ALL col1 * - 90 * - col0 * + + col1 AS col1 FROM tab1 AS cor0
----
18091710
191250
899640

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - ( - - col0 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 21 + col0 col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) = + col1
----

query I rowsort
SELECT 71 * + 3 FROM tab1 AS cor0
----
213
213
213

onlyif mysql # aggregate syntax: 
query I rowsort label-9401
SELECT ALL COUNT( * ) FROM tab1 cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9401
SELECT ALL COUNT ( * ) FROM tab1 cor0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9402
SELECT col2 DIV - col2 DIV col2 * - CAST( + col1 AS SIGNED ) * - + col0 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9402
SELECT col2 / - col2 / col2 * - CAST ( + col1 AS INTEGER ) * - + col0 FROM tab1 cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9403
SELECT - CAST( NULL AS SIGNED ) + - ( col1 ) + ( + + 1 ) AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-9403
SELECT - CAST ( NULL AS INTEGER ) + - ( col1 ) + ( + + 1 ) AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 2 * + - 49 * + 12 + col2 col1 FROM tab2
----
-1118
-1136
-1153

onlyif mysql # DIV for integer division: 
query I rowsort label-9405
SELECT 79 DIV + - 93 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9405
SELECT 79 / + - 93 AS col0 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9406
SELECT COUNT( * ) + MIN( - col1 ) + + - 58 AS col1 FROM tab0
----
-136

skipif mysql # not compatible
query I rowsort label-9406
SELECT COUNT ( * ) + MIN ( - col1 ) + + - 58 AS col1 FROM tab0
----
-136

query I rowsort
SELECT - + 36 + - 72 - - - col1 AS col0 FROM tab2 AS cor0
----
-159
-175
-185

onlyif mysql # aggregate syntax: 
query I rowsort label-9408
SELECT DISTINCT - - MAX( - col1 ) * - - COUNT( * ) + - - 14 FROM tab0 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-9408
SELECT DISTINCT - - MAX ( - col1 ) * - - COUNT ( * ) + - - 14 FROM tab0 AS cor0
----
11

query I rowsort
SELECT + + 46 FROM tab1 AS cor0 WHERE ( - 11 IS NOT NULL )
----
46
46
46

onlyif mysql # aggregate syntax: 
query II rowsort label-9410
SELECT COUNT( * ) * 76 * - 82 AS col2, COUNT( * ) + - 35 * - - 76 + - SUM( ALL 24 ) AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IN ( 46 - + col1 )
----
0
NULL

skipif mysql # not compatible
query II rowsort label-9410
SELECT COUNT ( * ) * 76 * - 82 AS col2, COUNT ( * ) + - 35 * - - 76 + - SUM ( ALL 24 ) AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IN ( 46 - + col1 )
----
0
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9411
SELECT + ( - col0 ) DIV 80 + col2 + - col2 FROM tab0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-9411
SELECT + ( - col0 ) / 80 + col2 + - col2 FROM tab0
----
-1
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9412
SELECT ALL + - COUNT( * ) AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-9

skipif mysql # not compatible
query I rowsort label-9412
SELECT ALL + - COUNT ( * ) AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-9

onlyif mysql # DIV for integer division: 
query II rowsort label-9413
SELECT - col0 * + col2 * + col0 * + 4 - + 98 AS col0, 8 DIV col2 * ( + + col0 ) FROM tab2
----
-1305098
0
-194770
0
-655458
0

skipif mysql # not compatible
query II rowsort label-9413
SELECT - col0 * + col2 * + col0 * + 4 - + 98 AS col0, 8 / col2 * ( + + col0 ) FROM tab2
----
-1305098
0
-194770
0
-655458
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9414
SELECT + CAST( - 47 AS SIGNED ) - - col2 * col0 AS col1 FROM tab0 AS cor0
----
658
823
9556

skipif mysql # not compatible
query I rowsort label-9414
SELECT + CAST ( - 47 AS INTEGER ) - - col2 * col0 AS col1 FROM tab0 AS cor0
----
658
823
9556

query I rowsort
SELECT DISTINCT - + col1 * - - col1 + col0 FROM tab0 AS cor0
----
-354
-6546
96

query I rowsort
SELECT DISTINCT + 52 + col0 FROM tab2 AS cor0
----
116
127
98

query II rowsort
SELECT DISTINCT + col1 AS col0, 49 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
1
49
21
49
81
49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 72 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL 7, + col2 AS col1 FROM tab2 AS cor0
----
7
23
7
40
7
58

query III rowsort
SELECT * FROM tab2 WHERE NOT + 3 IN ( - - 40 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + col2, 20 AS col0 FROM tab1
----
59
20
68
20
96
20

onlyif mysql # DIV for integer division: 
query II rowsort label-9422
SELECT ALL + ( + col0 ), - col1 + - + 83 DIV + col1 AS col2 FROM tab0
----
15
-82
87
-24
97
-84

skipif mysql # not compatible
query II rowsort label-9422
SELECT ALL + ( + col0 ), - col1 + - + 83 / + col1 AS col2 FROM tab0
----
15
-82
87
-24
97
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9423
SELECT + ( + - MAX( ALL - CAST( NULL AS SIGNED ) ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9423
SELECT + ( + - MAX ( ALL - CAST ( NULL AS INTEGER ) ) ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9424
SELECT 12 AS col2, COUNT( * ) FROM tab2
----
12
3

skipif mysql # not compatible
query II rowsort label-9424
SELECT 12 AS col2, COUNT ( * ) FROM tab2
----
12
3

query I rowsort
SELECT + col0 * + + col0 * + - col0 * col0 AS col0 FROM tab2
----
-16777216
-31640625
-4477456

query I rowsort
SELECT col2 AS col0 FROM tab1 AS cor0 WHERE NOT - 28 - + 95 IS NULL
----
59
68
96

query I rowsort
SELECT ALL + - 5 AS col2 FROM tab1 AS cor0
----
-5
-5
-5

query I rowsort
SELECT ALL 38 * + - 72 AS col0 FROM tab0
----
-2736
-2736
-2736

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL > ( + - col2 ) * col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9430
SELECT ALL - 72 * CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-9430
SELECT ALL - 72 * CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # DIV for integer division: 
query II rowsort label-9431
SELECT DISTINCT col1 DIV + 48, - col2 AS col2 FROM tab2
----
1
-23
1
-40
1
-58

skipif mysql # not compatible
query II rowsort label-9431
SELECT DISTINCT col1 / + 48, - col2 AS col2 FROM tab2
----
1
-23
1
-40
1
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-9432
SELECT ALL - + col2 + 47 DIV - col2 FROM tab2 cor0
----
-25
-41
-58

skipif mysql # not compatible
query I rowsort label-9432
SELECT ALL - + col2 + 47 / - col2 FROM tab2 cor0
----
-25
-41
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9433
SELECT + COUNT( * ) + - + COUNT( * ) DIV - ( - 14 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9433
SELECT + COUNT ( * ) + - + COUNT ( * ) / - ( - 14 ) AS col2 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-9434
SELECT + 14 AS col1, - COUNT( * ) FROM tab1
----
14
-3

skipif mysql # not compatible
query II rowsort label-9434
SELECT + 14 AS col1, - COUNT ( * ) FROM tab1
----
14
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-9435
SELECT col2 DIV + + col0 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9435
SELECT col2 / + + col0 AS col0 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9436
SELECT 48 DIV COUNT( * ) AS col2 FROM tab2
----
16

skipif mysql # not compatible
query I rowsort label-9436
SELECT 48 / COUNT ( * ) AS col2 FROM tab2
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9437
SELECT * FROM tab0 WHERE NULL >= + - col2 * + + 20 * - + col0 / - CAST( - 45 AS SIGNED ) / - col0
----

skipif mysql # not compatible
query III rowsort label-9437
SELECT * FROM tab0 WHERE NULL >= + - col2 * + + 20 * - + col0 / - CAST ( - 45 AS INTEGER ) / - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9438
SELECT COUNT( - - 66 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9438
SELECT COUNT ( - - 66 ) FROM tab2
----
3

query I rowsort
SELECT ALL col2 + - col1 * - 30 + - 14 FROM tab2
----
1539
2054
2336

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9440
SELECT SUM( ALL + CAST( NULL AS SIGNED ) ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9440
SELECT SUM ( ALL + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9441
SELECT - COUNT( * ) * + + ( - - AVG ( ALL col2 ) ) FROM tab0 WHERE NULL < col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9441
SELECT - COUNT ( * ) * + + ( - - AVG ( ALL col2 ) ) FROM tab0 WHERE NULL < col2
----
NULL

query I rowsort
SELECT ALL + ( + col2 ) + - 52 + 81 FROM tab1
----
125
88
97

onlyif mysql # aggregate syntax: 
query II rowsort label-9443
SELECT 21 AS col1, COUNT( * ) AS col2 FROM tab2 AS cor0
----
21
3

skipif mysql # not compatible
query II rowsort label-9443
SELECT 21 AS col1, COUNT ( * ) AS col2 FROM tab2 AS cor0
----
21
3

query I rowsort
SELECT - + ( + col2 ) FROM tab0 AS cor0 WHERE col0 * - col0 + + col1 / + 13 * + 30 + - col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9445
SELECT ALL col2 * - + col0 + - 76 DIV - col2 col0, 39 AS col0 FROM tab2 AS cor0
----
-1055
39
-2559
39
-4349
39

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9445
SELECT ALL col2 * - + col0 + - 76 / - col2 col0, 39 AS col0 FROM tab2 AS cor0
----
-1055
39
-2559
39
-4349
39

onlyif mysql # DIV for integer division: 
query I rowsort label-9446
SELECT + - col2 + + + col1 DIV - col0 + - + col2 + - col1 AS col0 FROM tab0 AS cor0
----
-180
-199
-41

skipif mysql # not compatible
query I rowsort label-9446
SELECT + - col2 + + + col1 / - col0 + - + col2 + - col1 AS col0 FROM tab0 AS cor0
----
-180
-199
-41

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9447
SELECT DISTINCT - CAST( NULL AS SIGNED ) col0, - 2 * - col1 AS col1 FROM tab2 AS cor0
----
NULL
102
NULL
134
NULL
154

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9447
SELECT DISTINCT - CAST ( NULL AS INTEGER ) col0, - 2 * - col1 AS col1 FROM tab2 AS cor0
----
NULL
102
NULL
134
NULL
154

query I rowsort
SELECT ALL - - col1 - col0 + + 93 AS col1 FROM tab0 AS cor0
----
-3
159
27

query I rowsort
SELECT 56 / + col0 + - col2 + - 88 AS col2 FROM tab2 WHERE NULL BETWEEN NULL AND ( NULL )
----

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT 26 IS NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 IN ( + - col0 + + - 66 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col1 * col1 + + + col1 + 49 FROM tab1 AS cor0
----
2305
259
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9453
SELECT DISTINCT - + COUNT( * ) * + ( - 74 ) - CAST( + COUNT( * ) AS SIGNED ) * + 7 * 24 FROM tab0 cor0
----
-282

skipif mysql # not compatible
query I rowsort label-9453
SELECT DISTINCT - + COUNT ( * ) * + ( - 74 ) - CAST ( + COUNT ( * ) AS INTEGER ) * + 7 * 24 FROM tab0 cor0
----
-282

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9454
SELECT - + SUM( - + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9454
SELECT - + SUM ( - + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9455
SELECT DISTINCT - + CAST( NULL AS SIGNED ) col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9455
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9456
SELECT ALL + + COUNT( - - col0 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9456
SELECT ALL + + COUNT ( - - col0 ) AS col2 FROM tab1 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 * - col2 BETWEEN NULL AND 83
----

query I rowsort
SELECT - ( + + 93 ) AS col1 FROM tab1
----
-93
-93
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-9459
SELECT DISTINCT - MAX( 30 ) AS col2 FROM tab2
----
-30

skipif mysql # not compatible
query I rowsort label-9459
SELECT DISTINCT - MAX ( 30 ) AS col2 FROM tab2
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9460
SELECT DISTINCT + COUNT( * ) * CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9460
SELECT DISTINCT + COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9461
SELECT DISTINCT - + CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9461
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 62 * + col1 * col2 AS col0 FROM tab1
----
18290
198152
83328

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9463
SELECT + - 36 col1 FROM tab1 WHERE NOT + CAST( + col0 AS SIGNED ) = + col0 * 22
----
-36
-36
-36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9463
SELECT + - 36 col1 FROM tab1 WHERE NOT + CAST ( + col0 AS INTEGER ) = + col0 * 22
----
-36
-36
-36

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9464
SELECT * FROM tab2 WHERE NOT + CAST( - 84 AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9464
SELECT * FROM tab2 WHERE NOT + CAST ( - 84 AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col2 AS col0 FROM tab0 AS cor0 WHERE NOT ( - col2 * col2 IS NULL )
----
-10
-47
-99

query I rowsort
SELECT + - 61 AS col1 FROM tab0 AS cor0
----
-61
-61
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-9467
SELECT DISTINCT COUNT( DISTINCT + col0 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9467
SELECT DISTINCT COUNT ( DISTINCT + col0 ) FROM tab2 AS cor0
----
3

query II rowsort
SELECT ALL + 0 + - + col1, - col1 AS col0 FROM tab1 cor0
----
-14
-14
-47
-47
-5
-5

query I rowsort
SELECT - col0 * + col2 * + 80 AS col2 FROM tab0 AS cor0
----
-56400
-69600
-768240

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + - ( - col0 ) ) col1 FROM tab1 cor0
----
-51
-85
-91

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 BETWEEN col1 AND - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9472
SELECT - CAST( + 14 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-14
-14
-14

skipif mysql # not compatible
query I rowsort label-9472
SELECT - CAST ( + 14 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-14
-14
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-9473
SELECT + 33 DIV col1 AS col1 FROM tab0 AS cor0
----
0
1
33

skipif mysql # not compatible
query I rowsort label-9473
SELECT + 33 / col1 AS col1 FROM tab0 AS cor0
----
0
1
33

query I rowsort
SELECT DISTINCT col1 + - 31 AS col1 FROM tab1 AS cor0
----
-17
-26
16

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9475
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - + 26 ) NOT IN ( + - ( + col1 ), + col0 + - ( col0 ) - + 3 - + CAST( - 9 AS SIGNED ) - - col0 * - 5 * + + 90, - col1 )
----

skipif mysql # not compatible
query III rowsort label-9475
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - + 26 ) NOT IN ( + - ( + col1 ), + col0 + - ( col0 ) - + 3 - + CAST ( - 9 AS INTEGER ) - - col0 * - 5 * + + 90, - col1 )
----

query I rowsort
SELECT - col0 * + 12 * - col2 + col1 FROM tab0 cor0
----
10461
115237
8541

query III rowsort
SELECT * FROM tab0 WHERE + - col0 + + - col2 BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9478
SELECT DISTINCT + col1 + + + col2 DIV - - col0 FROM tab0 WHERE ( - 6 IS NOT NULL )
----
2
21
84

skipif mysql # not compatible
query I rowsort label-9478
SELECT DISTINCT + col1 + + + col2 / - - col0 FROM tab0 WHERE ( - 6 IS NOT NULL )
----
2
21
84

onlyif mysql # aggregate syntax: 
query II rowsort label-9479
SELECT DISTINCT 80 + - COUNT( * ) col0, 27 FROM tab2
----
77
27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9479
SELECT DISTINCT 80 + - COUNT ( * ) col0, 27 FROM tab2
----
77
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 * col0 + + col2 AS col2, - col2 col1 FROM tab0
----
272
-47
7579
-10
9508
-99

query I rowsort
SELECT col2 - - 9 AS col1 FROM tab0
----
108
19
56

onlyif mysql # aggregate syntax: 
query I rowsort label-9482
SELECT + 20 * - - COUNT( * ) AS col2 FROM tab2 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-9482
SELECT + 20 * - - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
60

query I rowsort
SELECT DISTINCT - 7 AS col1 FROM tab1 cor0
----
-7

query I rowsort
SELECT + col0 * - col1 * 88 * 69 + - 29 FROM tab0 AS cor0
----
-11093573
-589013
-7377509

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 col0, - 28 * col0 FROM tab1 AS cor0
----
14
-1428
47
-2548
5
-2380

onlyif mysql # aggregate syntax: 
query I rowsort label-9486
SELECT - + MAX( + col1 ) FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-9486
SELECT - + MAX ( + col1 ) FROM tab0 AS cor0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9487
SELECT COUNT( * ) AS col1 FROM tab0 WHERE NOT NULL BETWEEN NULL AND 33 + 12
----
0

skipif mysql # not compatible
query I rowsort label-9487
SELECT COUNT ( * ) AS col1 FROM tab0 WHERE NOT NULL BETWEEN NULL AND 33 + 12
----
0

query II rowsort
SELECT ALL + col2 * 85, col0 AS col1 FROM tab0
----
3995
15
8415
97
850
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9489
SELECT ALL CAST( NULL AS SIGNED ) * + COUNT( * ) * + ( - 21 ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9489
SELECT ALL CAST ( NULL AS INTEGER ) * + COUNT ( * ) * + ( - 21 ) AS col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9490
SELECT ALL + MAX( - 47 ) FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-9490
SELECT ALL + MAX ( - 47 ) FROM tab1
----
-47

query I rowsort
SELECT ALL + 91 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IN ( col0, col1, - col1 )
----

query I rowsort
SELECT DISTINCT - + col1 * + 9 FROM tab0 AS cor0
----
-189
-729
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9493
SELECT - - COUNT( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-9493
SELECT - - COUNT ( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col0 <= - - col2
----
15
81
47
97
1
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9495
SELECT + SUM( + CAST( NULL AS SIGNED ) ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-9495
SELECT + SUM ( + CAST ( NULL AS INTEGER ) ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
NULL

query I rowsort
SELECT - 5 + col1 AS col2 FROM tab0
----
-4
16
76

onlyif mysql # aggregate syntax: 
query I rowsort label-9497
SELECT ALL COUNT( * ) + - COUNT( * ) col2 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9497
SELECT ALL COUNT ( * ) + - COUNT ( * ) col2 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9498
SELECT CAST( NULL AS SIGNED ) / col2 + + + col1 AS col1 FROM tab1 AS cor0 WHERE + col0 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9498
SELECT CAST ( NULL AS INTEGER ) / col2 + + + col1 AS col1 FROM tab1 AS cor0 WHERE + col0 IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 43 + - 55 AS col1 FROM tab2 cor0
----
-98

query I rowsort
SELECT + + col1 + 65 AS col2 FROM tab0 AS cor0
----
146
66
86

onlyif mysql # aggregate syntax: 
query I rowsort label-9501
SELECT DISTINCT + COUNT( * ) + 76 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
79

skipif mysql # not compatible
query I rowsort label-9501
SELECT DISTINCT + COUNT ( * ) + 76 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
79

query I rowsort
SELECT DISTINCT - + col2 + 54 + 43 * - col0 FROM tab0 AS cor0
----
-3697
-4216
-638

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) < col0 + - 54 + + 11
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( NULL ) BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9505
SELECT + 11 DIV + + 58 col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9505
SELECT + 11 / + + 58 col0 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9506
SELECT - 78 DIV - col1 AS col2 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9506
SELECT - 78 / - col1 AS col2 FROM tab2
----
1
1
1

query I rowsort
SELECT ALL - col1 + - col2 * + + col1 AS col0 FROM tab1
----
-1358
-300
-3243

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + + col2 = ( + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9509
SELECT COUNT( * ) * + - COUNT( * ) * COUNT( DISTINCT - 73 ) AS col1 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-9509
SELECT COUNT ( * ) * + - COUNT ( * ) * COUNT ( DISTINCT - 73 ) AS col1 FROM tab1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9510
SELECT - COUNT( + ( + 73 ) ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-9510
SELECT - COUNT ( + ( + 73 ) ) AS col2 FROM tab0
----
-3

query II rowsort
SELECT + col1, col1 FROM tab2 WHERE + col2 IS NOT NULL AND NOT NULL IS NULL
----

query I rowsort
SELECT ALL + col0 + col0 - ( - ( col1 ) ) FROM tab0
----
111
195
195

query I rowsort
SELECT DISTINCT + col2 + + + col1 + col2 FROM tab0
----
175
199
41

onlyif mysql # aggregate syntax: 
query I rowsort label-9514
SELECT ALL + SUM( 61 ) + - + 30 FROM tab0
----
153

skipif mysql # not compatible
query I rowsort label-9514
SELECT ALL + SUM ( 61 ) + - + 30 FROM tab0
----
153

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9516
SELECT DISTINCT - + ( + CAST( + col1 AS SIGNED ) ) - - col2 AS col2 FROM tab0 AS cor0
----
-11
-34
98

skipif mysql # not compatible
query I rowsort label-9516
SELECT DISTINCT - + ( + CAST ( + col1 AS INTEGER ) ) - - col2 AS col2 FROM tab0 AS cor0
----
-11
-34
98

query I rowsort
SELECT ALL + col2 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9518
SELECT + CAST( - + COUNT( * ) AS SIGNED ) col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9518
SELECT + CAST ( - + COUNT ( * ) AS INTEGER ) col0 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9519
SELECT ALL - MIN( ALL col2 ) FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-9519
SELECT ALL - MIN ( ALL col2 ) FROM tab0 AS cor0
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9520
SELECT ALL + - CAST( NULL AS SIGNED ) AS col0, - 60 AS col1 FROM tab1 AS cor0 WHERE + col2 * + col0 + - col1 IS NULL
----

skipif mysql # not compatible
query II rowsort label-9520
SELECT ALL + - CAST ( NULL AS INTEGER ) AS col0, - 60 AS col1 FROM tab1 AS cor0 WHERE + col2 * + col0 + - col1 IS NULL
----

query I rowsort
SELECT ( - 95 ) AS col2 FROM tab1 AS cor0
----
-95
-95
-95

query I rowsort
SELECT col0 AS col2 FROM tab2 cor0 WHERE NOT + col0 <> NULL
----

query II rowsort
SELECT col1 AS col0, 16 AS col1 FROM tab0
----
1
16
21
16
81
16

query I rowsort
SELECT ALL - col1 * - + col1 AS col1 FROM tab2
----
2601
4489
5929

query I rowsort
SELECT ( + - 18 ) FROM tab1
----
-18
-18
-18

query II rowsort
SELECT ALL - col0 AS col2, col0 FROM tab0
----
-15
15
-87
87
-97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9527
SELECT - MIN( + ( + - 21 ) ) col2 FROM tab1 AS cor0
----
21

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9527
SELECT - MIN ( + ( + - 21 ) ) col2 FROM tab1 AS cor0
----
21

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( NULL ) <> col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9529
SELECT 49 * - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-147

skipif mysql # not compatible
query I rowsort label-9529
SELECT 49 * - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-147

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9530
SELECT DISTINCT CAST( NULL AS SIGNED ) + + - col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9530
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + - col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9531
SELECT * FROM tab0 AS cor0 WHERE NOT ( + col0 ) >= CAST( - + 19 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-9531
SELECT * FROM tab0 AS cor0 WHERE NOT ( + col0 ) >= CAST ( - + 19 AS REAL )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL NOT IN ( - 2, - col1 * - col2, - 95, + 38, 60, - + 25, + + col1 / - 30 * 95, + + col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9533
SELECT + CAST( NULL AS SIGNED ) * COUNT( * ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9533
SELECT + CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9534
SELECT ALL + COUNT( ALL col0 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9534
SELECT ALL + COUNT ( ALL col0 ) AS col0 FROM tab0
----
3

query I rowsort
SELECT ( - 20 ) AS col0 FROM tab2
----
-20
-20
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-9536
SELECT ALL SUM( ALL + col2 ) * - COUNT( * ) AS col0 FROM tab2
----
-363

skipif mysql # not compatible
query I rowsort label-9536
SELECT ALL SUM ( ALL + col2 ) * - COUNT ( * ) AS col0 FROM tab2
----
-363

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL IN ( 58 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9538
SELECT + COUNT( * ) + - 95 AS col0 FROM tab0
----
-92

skipif mysql # not compatible
query I rowsort label-9538
SELECT + COUNT ( * ) + - 95 AS col0 FROM tab0
----
-92

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 <> ( - col1 + - col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9540
SELECT - COUNT( * ) AS col1 FROM tab1 WHERE NOT ( col1 * CAST( NULL AS SIGNED ) ) NOT BETWEEN NULL AND col2 - - col2 * 49
----
0

skipif mysql # not compatible
query I rowsort label-9540
SELECT - COUNT ( * ) AS col1 FROM tab1 WHERE NOT ( col1 * CAST ( NULL AS INTEGER ) ) NOT BETWEEN NULL AND col2 - - col2 * 49
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL >= ( - col2 ) + - col1
----

query I rowsort
SELECT col1 + 62 FROM tab1
----
109
67
76

query I rowsort
SELECT + 23 * - col0 + 88 FROM tab0
----
-1913
-2143
-257

query I rowsort
SELECT - col2 + + col1 * - col2 AS col0 FROM tab1
----
-1440
-3264
-354

query I rowsort
SELECT 88 FROM tab2 WHERE NOT 71 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9546
SELECT - 32 * COUNT( * ) FROM tab2
----
-96

skipif mysql # not compatible
query I rowsort label-9546
SELECT - 32 * COUNT ( * ) FROM tab2
----
-96

query I rowsort
SELECT + col0 FROM tab0 WHERE NOT ( 73 ) IS NOT NULL
----

query I rowsort
SELECT col0 * 54 FROM tab0
----
4698
5238
810

query I rowsort
SELECT DISTINCT + col0 * + 83 + col0 FROM tab2
----
3864
5376
6300

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 + + col0 * + 25 IS NOT NULL
----

query I rowsort
SELECT ALL col2 * 94 + 98 AS col2 FROM tab0
----
1038
4516
9404

onlyif mysql # aggregate syntax: 
query I rowsort label-9552
SELECT COUNT( * ) + 24 FROM tab1
----
27

skipif mysql # not compatible
query I rowsort label-9552
SELECT COUNT ( * ) + 24 FROM tab1
----
27

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT IN ( - col2 * col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9554
SELECT DISTINCT - COUNT( * ) * - COUNT( * ) + 11 FROM tab1
----
20

skipif mysql # not compatible
query I rowsort label-9554
SELECT DISTINCT - COUNT ( * ) * - COUNT ( * ) + 11 FROM tab1
----
20

query I rowsort
SELECT ALL - 2 * - col0 FROM tab2
----
128
150
92

onlyif mysql # aggregate syntax: 
query I rowsort label-9556
SELECT DISTINCT + 43 * - COUNT( * ) AS col2 FROM tab1
----
-129

skipif mysql # not compatible
query I rowsort label-9556
SELECT DISTINCT + 43 * - COUNT ( * ) AS col2 FROM tab1
----
-129

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9557
SELECT + col0 + - 48 * CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9557
SELECT + col0 + - 48 * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col2 * - col0 AS col0 FROM tab0 AS cor0 WHERE ( - col2 + + col0 ) BETWEEN NULL AND col0
----

query I rowsort
SELECT ALL col1 * + col0 + 11 AS col1 FROM tab1 AS cor0
----
4288
436
725

query I rowsort
SELECT DISTINCT ( col0 ) + - col1 * - 64 AS col1 FROM tab0 AS cor0
----
1431
161
5199

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 3 * + col2 col1 FROM tab1 AS cor0
----
-177
-204
-288

query I rowsort
SELECT DISTINCT col1 FROM tab2 WHERE NOT ( 76 * - col2 + - ( col1 ) ) IS NULL
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9563
SELECT + 32 - + col2 * 96 FROM tab1 WHERE NOT ( + CAST( col2 AS SIGNED ) ) >= ( NULL )
----

skipif mysql # not compatible
query I rowsort label-9563
SELECT + 32 - + col2 * 96 FROM tab1 WHERE NOT ( + CAST ( col2 AS INTEGER ) ) >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9564
SELECT DISTINCT - COUNT( * ) col2 FROM tab1 cor0 WHERE NOT + col2 BETWEEN 29 - col0 AND NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9564
SELECT DISTINCT - COUNT ( * ) col2 FROM tab1 cor0 WHERE NOT + col2 BETWEEN 29 - col0 AND NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9565
SELECT ALL 55 * + MAX( 34 + CAST( + col0 AS SIGNED ) * + ( col1 * col0 ) ) FROM tab1 AS cor0
----
21408255

skipif mysql # not compatible
query I rowsort label-9565
SELECT ALL 55 * + MAX ( 34 + CAST ( + col0 AS INTEGER ) * + ( col1 * col0 ) ) FROM tab1 AS cor0
----
21408255

query I rowsort
SELECT + + col1 * - 9 AS col0 FROM tab2 AS cor0
----
-459
-603
-693

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col0 FROM tab1 cor0 WHERE NOT 62 NOT BETWEEN col1 AND ( - 83 + col1 )
----

query I rowsort
SELECT ALL + 93 * col2 - col0 AS col2 FROM tab0 AS cor0 WHERE NOT col1 * 50 BETWEEN - 31 AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9569
SELECT DISTINCT + col2 / + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9569
SELECT DISTINCT + col2 / + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - 39 * - col2 AS col0 FROM tab0 cor0
----
1833
3861
390

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - 96 + + 77 ) IN ( + 82 + + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - col2 * col2 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 51 * + ( + col0 * 10 ) BETWEEN 71 AND col1 * + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 56 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9575
SELECT - col2 - - 7 * CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) IN ( + ( + 36 ) + + 91 )
----

skipif mysql # not compatible
query I rowsort label-9575
SELECT - col2 - - 7 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) IN ( + ( + 36 ) + + 91 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9576
SELECT 86 AS col0 FROM tab2 WHERE NOT ( - col0 + + CAST( + 45 AS SIGNED ) ) NOT IN ( + col1 )
----

skipif mysql # not compatible
query I rowsort label-9576
SELECT 86 AS col0 FROM tab2 WHERE NOT ( - col0 + + CAST ( + 45 AS INTEGER ) ) NOT IN ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9577
SELECT DISTINCT + MIN( ALL - + col2 ) FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-9577
SELECT DISTINCT + MIN ( ALL - + col2 ) FROM tab2
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9578
SELECT ALL + CAST( 92 AS SIGNED ) FROM tab0
----
92
92
92

skipif mysql # not compatible
query I rowsort label-9578
SELECT ALL + CAST ( 92 AS INTEGER ) FROM tab0
----
92
92
92

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9579
SELECT DISTINCT * FROM tab2 WHERE ( - ( + CAST( NULL AS SIGNED ) ) ) BETWEEN ( NULL ) AND col1
----

skipif mysql # not compatible
query III rowsort label-9579
SELECT DISTINCT * FROM tab2 WHERE ( - ( + CAST ( NULL AS INTEGER ) ) ) BETWEEN ( NULL ) AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9580
SELECT - COUNT( * ) - 2 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-5

skipif mysql # not compatible
query I rowsort label-9580
SELECT - COUNT ( * ) - 2 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-5

query III rowsort
SELECT ALL * FROM tab2 WHERE 52 NOT IN ( + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 / - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 col0 FROM tab1 WHERE ( col0 ) NOT BETWEEN NULL AND - col0
----
14
47
5

query I rowsort
SELECT DISTINCT 46 + 91 FROM tab1
----
137

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col0 ) NOT BETWEEN NULL AND - col1
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE - col2 NOT IN ( + 61 * - ( col1 ) - + 64 * + 73 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IN ( col1 )
----

query I rowsort
SELECT ALL - ( col0 ) * col0 FROM tab1 cor0
----
-2601
-7225
-8281

onlyif mysql # aggregate syntax: 
query I rowsort label-9589
SELECT - SUM( - col0 ) * + 5 FROM tab1 AS cor0
----
1135

skipif mysql # not compatible
query I rowsort label-9589
SELECT - SUM ( - col0 ) * + 5 FROM tab1 AS cor0
----
1135

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( 64 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col0 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-51
-85
-91

query I rowsort
SELECT DISTINCT - col0 / - 12 FROM tab1 WHERE NOT 25 * col2 + - col1 BETWEEN ( 45 + - 63 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9593
SELECT - col1 + + + CAST( + col2 AS SIGNED ) FROM tab0
----
-11
-34
98

skipif mysql # not compatible
query I rowsort label-9593
SELECT - col1 + + + CAST ( + col2 AS INTEGER ) FROM tab0
----
-11
-34
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col1 FROM tab0 WHERE NULL >= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9595
SELECT ALL 65 + col2 * - col2 AS col1 FROM tab0 WHERE NOT - col1 BETWEEN - CAST( col2 AS SIGNED ) AND ( + col0 )
----
-2144
-35

skipif mysql # not compatible
query I rowsort label-9595
SELECT ALL 65 + col2 * - col2 AS col1 FROM tab0 WHERE NOT - col1 BETWEEN - CAST ( col2 AS INTEGER ) AND ( + col0 )
----
-2144
-35

query I rowsort
SELECT + col0 * col1 FROM tab2 WHERE + 63 = - col0 + - col0 / col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9597
SELECT DISTINCT - + col1 DIV - col0 + - col0 AS col1 FROM tab0 AS cor0
----
-10
-87
-97

skipif mysql # not compatible
query I rowsort label-9597
SELECT DISTINCT - + col1 / - col0 + - col0 AS col1 FROM tab0 AS cor0
----
-10
-87
-97

query I rowsort
SELECT col2 + 73 AS col2 FROM tab1 cor0 WHERE col0 = ( NULL )
----

query I rowsort
SELECT ( - 79 ) FROM tab2 AS cor0
----
-79
-79
-79

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 62 < NULL
----

query I rowsort
SELECT - + 65 FROM tab2 cor0
----
-65
-65
-65

query I rowsort
SELECT ALL col1 FROM tab1 AS cor0 WHERE ( 41 + col2 + - 80 * - 55 / col1 ) IS NULL
----

query I rowsort
SELECT DISTINCT - col1 - + - 15 AS col1 FROM tab1 AS cor0
----
-32
1
10

query II rowsort
SELECT + 78, col2 AS col0 FROM tab0 AS cor0
----
78
10
78
47
78
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9605
SELECT DISTINCT - - COUNT( * ) - + COUNT( * ) AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9605
SELECT DISTINCT - - COUNT ( * ) - + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - 89 + + + 9 BETWEEN col1 + + col0 AND col0
----

query II rowsort
SELECT 82 - - col2, 87 AS col0 FROM tab2
----
105
87
122
87
140
87

query I rowsort
SELECT ALL ( + 48 ) AS col0 FROM tab0
----
48
48
48

query I rowsort
SELECT DISTINCT col2 * + 58 + + + col2 + + ( 29 ) * - col1 AS col1 FROM tab2
----
-122
127
1479

onlyif mysql # DIV for integer division: 
query II rowsort label-9610
SELECT ALL - col0 DIV col1 AS col2, + 42 + - - 34 * - 83 FROM tab0 AS cor0
----
-4
-2780
-97
-2780
0
-2780

skipif mysql # not compatible
query II rowsort label-9610
SELECT ALL - col0 / col1 AS col2, + 42 + - - 34 * - 83 FROM tab0 AS cor0
----
-4
-2780
-97
-2780
0
-2780

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 * 49, + 0 col2 FROM tab1 AS cor0
----
-2891
0
-3332
0
-4704
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9612
SELECT - + MAX( col2 ) FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-9612
SELECT - + MAX ( col2 ) FROM tab1 AS cor0
----
-96

query I rowsort
SELECT ALL - col1 - ( + col2 ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL = NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9614
SELECT + COUNT( * ), 94 AS col1 FROM tab2
----
3
94

skipif mysql # not compatible
query II rowsort label-9614
SELECT + COUNT ( * ), 94 AS col1 FROM tab2
----
3
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9615
SELECT DISTINCT - ( + COUNT( * ) ) AS col0 FROM tab1 WHERE NOT + col0 NOT BETWEEN col0 * + 80 * - 10 AND + col0 + - col0
----
0

skipif mysql # not compatible
query I rowsort label-9615
SELECT DISTINCT - ( + COUNT ( * ) ) AS col0 FROM tab1 WHERE NOT + col0 NOT BETWEEN col0 * + 80 * - 10 AND + col0 + - col0
----
0

query I rowsort
SELECT ALL + col2 * + + 48 AS col1 FROM tab1
----
2832
3264
4608

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) >= col0 + 43
----

query I rowsort
SELECT + col2 * + - 19 FROM tab0 cor0
----
-1881
-190
-893

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9619
SELECT ALL + col0 AS col2 FROM tab2 AS cor0 WHERE NOT - 67 + - CAST( NULL AS DECIMAL ) + col1 <= CAST( NULL AS DECIMAL ) + + col1
----

skipif mysql # not compatible
query I rowsort label-9619
SELECT ALL + col0 AS col2 FROM tab2 AS cor0 WHERE NOT - 67 + - CAST ( NULL AS REAL ) + col1 <= CAST ( NULL AS REAL ) + + col1
----

query I rowsort
SELECT ALL col1 * + 50 - - col1 FROM tab2 AS cor0
----
2601
3417
3927

onlyif mysql # aggregate syntax: 
query I rowsort label-9621
SELECT - 29 * + 34 + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-983

skipif mysql # not compatible
query I rowsort label-9621
SELECT - 29 * + 34 + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-983

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9622
SELECT - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE NOT 40 BETWEEN ( + col1 ) AND NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9622
SELECT - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NOT 40 BETWEEN ( + col1 ) AND NULL
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 16 BETWEEN - col1 + - 45 AND - ( 16 )
----

query II rowsort
SELECT ALL - - 14 AS col0, - 16 AS col1 FROM tab0 AS cor0
----
14
-16
14
-16
14
-16

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 + - - ( - + ( - - col0 ) ) < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9626
SELECT ALL - COUNT( * ) FROM tab1 WHERE + col2 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-9626
SELECT ALL - COUNT ( * ) FROM tab1 WHERE + col2 >= NULL
----
0

query II rowsort
SELECT - col0 AS col1, - col0 * - + col2 FROM tab2
----
-46
1058
-64
2560
-75
4350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9628
SELECT - CAST( - col2 AS SIGNED ) * + ( 37 ) AS col2 FROM tab1 WHERE NOT - col1 = + col0
----
2183
2516
3552

skipif mysql # not compatible
query I rowsort label-9628
SELECT - CAST ( - col2 AS INTEGER ) * + ( 37 ) AS col2 FROM tab1 WHERE NOT - col1 = + col0
----
2183
2516
3552

onlyif mysql # aggregate syntax: 
query I rowsort label-9629
SELECT ALL - 13 + - COUNT( * ) FROM tab1, tab1 AS cor0
----
-22

skipif mysql # not compatible
query I rowsort label-9629
SELECT ALL - 13 + - COUNT ( * ) FROM tab1, tab1 AS cor0
----
-22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + - col1 col1 FROM tab0
----
0

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab2 WHERE NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9632
SELECT DISTINCT - - COUNT( * ) * COUNT( * ) FROM tab2 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9632
SELECT DISTINCT - - COUNT ( * ) * COUNT ( * ) FROM tab2 WHERE NULL IS NOT NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col0 NOT BETWEEN ( + 42 ) AND - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE + + col0 * 61 - 8 * - 3 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT - + 65 AS col0 FROM tab1 WHERE NULL NOT BETWEEN + 84 AND + col1
----

query I rowsort
SELECT - col2 * + + col1 + + col2 + - 56 - col0 * - col2 * 18 AS col0 FROM tab1 AS cor0
----
108200
86824
89978

query I rowsort
SELECT + + 97 + - col1 FROM tab0 AS cor0
----
16
76
96

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE - 14 IS NOT NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

query I rowsort
SELECT DISTINCT - 67 + - col2 AS col1 FROM tab1
----
-126
-135
-163

query I rowsort
SELECT + col2 - - ( - col2 ) AS col1 FROM tab2
----
0
0
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 49 * 35 NOT IN ( + 98, 11 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9642
SELECT + col1 - + col0 * - + CAST( NULL AS DECIMAL ) + 49 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9642
SELECT + col1 - + col0 * - + CAST ( NULL AS REAL ) + 49 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 20 * col2 + + - 57 FROM tab0 AS cor0
----
143
1923
883

onlyif mysql # DIV for integer division: 
query I rowsort label-9644
SELECT DISTINCT + col2 DIV + + 88 * - col1 - col1 AS col0 FROM tab0 cor0
----
-2
-21
-81

skipif mysql # not compatible
query I rowsort label-9644
SELECT DISTINCT + col2 / + + 88 * - col1 - col1 AS col0 FROM tab0 cor0
----
-2
-21
-81

query I rowsort
SELECT col1 + - col2 + col0 AS col2 FROM tab0 AS cor0
----
-1
49
98

onlyif mysql # DIV for integer division: 
query I rowsort label-9646
SELECT DISTINCT - 17 DIV ( - - 52 ) - col2 * - col1 AS col1 FROM tab1
----
1344
295
3196

skipif mysql # not compatible
query I rowsort label-9646
SELECT DISTINCT - 17 / ( - - 52 ) - col2 * - col1 AS col1 FROM tab1
----
1344
295
3196

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2, - col2 col2 FROM tab2
----
-23
-23
-40
-40
-58
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9648
SELECT - ( col2 ) * - - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9648
SELECT - ( col2 ) * - - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 34 * - col2 * + 2 AS col2 FROM tab1
----
-4012
-4624
-6528

query I rowsort
SELECT col1 * + 33 FROM tab1
----
1551
165
462

onlyif mysql # aggregate syntax: 
query I rowsort label-9651
SELECT DISTINCT MIN( ALL - + 87 ) * COUNT( 66 ) FROM tab1
----
-261

skipif mysql # not compatible
query I rowsort label-9651
SELECT DISTINCT MIN ( ALL - + 87 ) * COUNT ( 66 ) FROM tab1
----
-261

query I rowsort
SELECT + col1 AS col2 FROM tab1 WHERE NOT + col1 > ( NULL )
----

query I rowsort
SELECT DISTINCT + col1 * 85 AS col2 FROM tab0
----
1785
6885
85

query I rowsort
SELECT + col0 * - 4 AS col2 FROM tab2
----
-184
-256
-300

onlyif mysql # aggregate syntax: 
query I rowsort label-9655
SELECT 99 * COUNT( * ) AS col0 FROM tab1
----
297

skipif mysql # not compatible
query I rowsort label-9655
SELECT 99 * COUNT ( * ) AS col0 FROM tab1
----
297

onlyif mysql # aggregate syntax: 
query I rowsort label-9656
SELECT + + COUNT( 19 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9656
SELECT + + COUNT ( 19 ) AS col2 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-9657
SELECT ALL + - COUNT( * ) AS col1, COUNT( * ) - - - COUNT( * ) FROM tab1 AS cor0
----
-3
0

skipif mysql # not compatible
query II rowsort label-9657
SELECT ALL + - COUNT ( * ) AS col1, COUNT ( * ) - - - COUNT ( * ) FROM tab1 AS cor0
----
-3
0

query I rowsort
SELECT DISTINCT - ( - 89 ) FROM tab2 AS cor0
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9659
SELECT + CAST( NULL AS SIGNED ) col0, + col2 * 2 FROM tab1 AS cor0
----
NULL
118
NULL
136
NULL
192

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9659
SELECT + CAST ( NULL AS INTEGER ) col0, + col2 * 2 FROM tab1 AS cor0
----
NULL
118
NULL
136
NULL
192

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9660
SELECT ALL * FROM tab0 AS cor0 WHERE + ( - CAST( NULL AS SIGNED ) ) IN ( + col1 )
----

skipif mysql # not compatible
query III rowsort label-9660
SELECT ALL * FROM tab0 AS cor0 WHERE + ( - CAST ( NULL AS INTEGER ) ) IN ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9661
SELECT COUNT( * ) FROM tab2 WHERE NOT NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-9661
SELECT COUNT ( * ) FROM tab2 WHERE NOT NULL < NULL
----
0

query I rowsort
SELECT col1 * + + 4 * - + col0 * - 46 AS col0 FROM tab1
----
131376
78200
786968

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab1 AS cor0 WHERE col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9664
SELECT COUNT( * ) * + 95 FROM tab2 AS cor0
----
285

skipif mysql # not compatible
query I rowsort label-9664
SELECT COUNT ( * ) * + 95 FROM tab2 AS cor0
----
285

query I rowsort
SELECT DISTINCT - col0 FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT + - 63 FROM tab2 AS cor0 WHERE NOT col2 * col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col0 * - - col0 * - ( + 73 ) FROM tab0
----
-16425
-552537
-686857

onlyif mysql # aggregate syntax: 
query I rowsort label-9668
SELECT MIN( ALL + 34 ) FROM tab2
----
34

skipif mysql # not compatible
query I rowsort label-9668
SELECT MIN ( ALL + 34 ) FROM tab2
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-9669
SELECT DISTINCT - COUNT( * ) * MIN( ALL col1 ) + + - 40 FROM tab0
----
-43

skipif mysql # not compatible
query I rowsort label-9669
SELECT DISTINCT - COUNT ( * ) * MIN ( ALL col1 ) + + - 40 FROM tab0
----
-43

query I rowsort
SELECT + 3 FROM tab0 WHERE - col2 * - 43 IS NOT NULL
----
3
3
3

query I rowsort
SELECT DISTINCT + + ( + - col1 ) FROM tab0 WHERE + + 96 * 83 + + 54 IS NOT NULL
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9672
SELECT COUNT( ALL - 60 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9672
SELECT COUNT ( ALL - 60 ) AS col1 FROM tab0
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-9673
SELECT DISTINCT col1 + col0 + 51, 78 DIV + col1 AS col2 FROM tab2
----
148
1
192
1
193
1

skipif mysql # not compatible
query II rowsort label-9673
SELECT DISTINCT col1 + col0 + 51, 78 / + col1 AS col2 FROM tab2
----
148
1
192
1
193
1

query I rowsort
SELECT ALL + col0 * - col2 FROM tab1 AS cor0 WHERE + col2 IS NULL
----

query I rowsort
SELECT DISTINCT - + col1 + - col2 FROM tab2 cor0
----
-117
-125
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-9676
SELECT + 42 + - - SUM( + + ( - 12 ) ) AS col2 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-9676
SELECT + 42 + - - SUM ( + + ( - 12 ) ) AS col2 FROM tab0 AS cor0
----
6

query I rowsort
SELECT + + col2 + - - 20 FROM tab2 AS cor0
----
43
60
78

query I rowsort
SELECT DISTINCT - col2 + + + 2 + + 84 FROM tab2
----
28
46
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9679
SELECT - 10 + - - 29 AS col0, - COUNT( * ) - + SUM( DISTINCT 8 ) DIV - + COUNT( * ) * + 4 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
19
-9

skipif mysql # not compatible
query II rowsort label-9679
SELECT - 10 + - - 29 AS col0, - COUNT ( * ) - + SUM ( DISTINCT 8 ) / - + COUNT ( * ) * + 4 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
19
-9

query I rowsort
SELECT ALL - + col0 / - 57 FROM tab2 AS cor0 WHERE - 90 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9681
SELECT + + ( + COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9681
SELECT + + ( + COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT - + col0 - + - col2 AS col1 FROM tab2 AS cor0
----
-17
-23
-24

query I rowsort
SELECT DISTINCT - col1 - + 90 AS col1 FROM tab0 AS cor0
----
-111
-171
-91

query I rowsort
SELECT ALL - col0 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + col2 * + - col2 * + col2 FROM tab2 AS cor0
----
-12167
-195112
-64000

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9686
SELECT ALL * FROM tab2 AS cor0 WHERE ( + col2 * + 81 ) >= - col1 / - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9686
SELECT ALL * FROM tab2 AS cor0 WHERE ( + col2 * + 81 ) >= - col1 / - - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9687
SELECT + + MAX( + - col1 ) AS col1 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-9687
SELECT + + MAX ( + - col1 ) AS col1 FROM tab2 AS cor0
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9688
SELECT ALL + SUM( ALL 81 ) FROM tab1 WHERE ( NOT CAST( NULL AS SIGNED ) IS NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9688
SELECT ALL + SUM ( ALL 81 ) FROM tab1 WHERE ( NOT CAST ( NULL AS INTEGER ) IS NULL )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 88 col2 FROM tab1
----
88

query I rowsort
SELECT ALL + col1 * - 19 AS col1 FROM tab0
----
-1539
-19
-399

onlyif mysql # DIV for integer division: 
query I rowsort label-9691
SELECT - col2 * - 18 DIV 2 AS col2 FROM tab0
----
423
891
90

skipif mysql # not compatible
query I rowsort label-9691
SELECT - col2 * - 18 / 2 AS col2 FROM tab0
----
423
891
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9692
SELECT DISTINCT + COUNT( ALL - col0 ) col1 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9692
SELECT DISTINCT + COUNT ( ALL - col0 ) col1 FROM tab2
----
3

query II rowsort
SELECT + - 81 * - + 68 AS col1, 5 AS col2 FROM tab0 AS cor0
----
5508
5
5508
5
5508
5

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 69 + - col0 + - col1 = - 18 + + + ( + - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 54 * col1 AS col1 FROM tab0 AS cor0
----
-1134
-4374
-54

onlyif mysql # aggregate syntax: 
query II rowsort label-9696
SELECT COUNT( DISTINCT + + 89 ), COUNT( * ) * + + 79 col1 FROM tab0 cor0
----
1
237

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9696
SELECT COUNT ( DISTINCT + + 89 ), COUNT ( * ) * + + 79 col1 FROM tab0 cor0
----
1
237

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 19 IN ( + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9698
SELECT - + CAST( NULL AS SIGNED ) * + 21 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-9698
SELECT - + CAST ( NULL AS INTEGER ) * + 21 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query II rowsort
SELECT DISTINCT - col0 AS col1, 46 * + 14 AS col1 FROM tab2 AS cor0
----
-46
644
-64
644
-75
644

query I rowsort
SELECT ALL col0 AS col1 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND - 88
----

query II rowsort
SELECT - + col0, col1 AS col0 FROM tab1 AS cor0
----
-51
14
-85
5
-91
47

query I rowsort
SELECT - ( - + col0 ) AS col1 FROM tab2 cor0
----
46
64
75

query I rowsort
SELECT + col0 * + col0 FROM tab2 AS cor0 WHERE ( ( NOT ( NULL ) IS NOT NULL ) )
----
2116
4096
5625

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9704
SELECT CAST( NULL AS SIGNED ) * - - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9704
SELECT CAST ( NULL AS INTEGER ) * - - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 8 AS col2 FROM tab2 AS cor0 WHERE NOT 22 + - 74 * col1 NOT BETWEEN - col0 AND + 58 / col1
----

query I rowsort
SELECT DISTINCT + + col0 * - 0 AS col1 FROM tab2 AS cor0
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 = col1 * - - 72 + - 58 - col0
----

query I rowsort
SELECT + col2 * - - col0 FROM tab1 AS cor0
----
4896
5015
6188

query I rowsort
SELECT DISTINCT col1 * + - col0 * + col0 FROM tab0
----
-158949
-18225
-9409

query III rowsort
SELECT * FROM tab1 WHERE - ( col1 ) * col0 <> + 38
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col0 + - + col2 FROM tab2
----
-104
-133
-69

query III rowsort
SELECT ALL * FROM tab2 WHERE - - 1 <> - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL + col2 + + col1, col1 FROM tab1
----
110
14
115
47
64
5

query I rowsort
SELECT col1 * - + 46 + + 12 FROM tab0
----
-34
-3714
-954

query I rowsort
SELECT DISTINCT + col2 + 11 - - + col1 * + col1 FROM tab0
----
111
462
6619

query I rowsort
SELECT col0 * - + col2 - + col0 + col2 + - 57 * - + 36 AS col2 FROM tab0 AS cor0
----
-7549
1105
1379

query I rowsort
SELECT ALL col1 * + - 16 + - col2 * + 39 * - col2 AS col1 FROM tab1 AS cor0
----
135679
179584
359200

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 15 + 47 <= - - 4
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9719
SELECT 52 * - 63 DIV COUNT( * ) AS col2 FROM tab0 AS cor0
----
-1092

skipif mysql # not compatible
query I rowsort label-9719
SELECT 52 * - 63 / COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-1092

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9720
SELECT ALL + - COUNT( + + CAST( NULL AS SIGNED ) ) - COUNT( DISTINCT + col0 ) + - + 33 * - COUNT( * ) + 4 col1 FROM tab0 AS cor0
----
100

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9720
SELECT ALL + - COUNT ( + + CAST ( NULL AS INTEGER ) ) - COUNT ( DISTINCT + col0 ) + - + 33 * - COUNT ( * ) + 4 col1 FROM tab0 AS cor0
----
100

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT col1 > - + col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9722
SELECT ALL + COUNT( * ) AS col0, COUNT( * ) + - - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9
18

skipif mysql # not compatible
query II rowsort label-9722
SELECT ALL + COUNT ( * ) AS col0, COUNT ( * ) + - - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9
18

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9723
SELECT * FROM tab0 WHERE ( NOT col2 + - col0 + - + 40 / + + CAST( NULL AS SIGNED ) + + col0 NOT BETWEEN - + col2 + + + col1 + - + col2 AND ( + col2 * + col1 - - col0 ) )
----

skipif mysql # not compatible
query III rowsort label-9723
SELECT * FROM tab0 WHERE ( NOT col2 + - col0 + - + 40 / + + CAST ( NULL AS INTEGER ) + + col0 NOT BETWEEN - + col2 + + + col1 + - + col2 AND ( + col2 * + col1 - - col0 ) )
----

query I rowsort
SELECT ALL 23 + - 56 + + col2 FROM tab2
----
-10
25
7

query I rowsort
SELECT + 50 - + - col1 + - - col0 * + col2 FROM tab1
----
4960
5070
6285

onlyif mysql # aggregate syntax: 
query II rowsort label-9726
SELECT MAX( DISTINCT col1 ) - + + COUNT( * ), 36 AS col1 FROM tab2
----
74
36

skipif mysql # not compatible
query II rowsort label-9726
SELECT MAX ( DISTINCT col1 ) - + + COUNT ( * ), 36 AS col1 FROM tab2
----
74
36

query I rowsort
SELECT DISTINCT + col1 * + + 73 FROM tab1 WHERE ( NULL ) IS NULL
----
1022
3431
365

onlyif mysql # aggregate syntax: 
query I rowsort label-9728
SELECT ALL - + MIN( ALL 58 ) FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-9728
SELECT ALL - + MIN ( ALL 58 ) FROM tab2 AS cor0
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-9729
SELECT - + 28 DIV - - col1 AS col2 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9729
SELECT - + 28 / - - col1 AS col2 FROM tab2 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 86 col1 FROM tab0 AS cor0
----
86
86
86

query II rowsort
SELECT ALL + 13, col0 AS col1 FROM tab1 cor0
----
13
51
13
85
13
91

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 * + 88 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 46 * - col1 - + 28 + + - col1 > ( - - 45 )
----

query I rowsort
SELECT + col1 FROM tab0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT DISTINCT 19 AS col1, - col0 * - col1 AS col1 FROM tab1
----
19
425
19
4277
19
714

query I rowsort
SELECT ALL - 50 FROM tab1 WHERE - col1 * - + col0 BETWEEN - col2 - + col0 AND NULL
----

query I rowsort
SELECT 43 * ( + - col2 ) FROM tab2
----
-1720
-2494
-989

onlyif mysql # DIV for integer division: 
query I rowsort label-9738
SELECT + 8 DIV - col2 col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9738
SELECT + 8 / - col2 col0 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 98 col0 FROM tab0
----
-98
-98
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-9740
SELECT 22 * - MIN( col0 ) AS col1 FROM tab2
----
-1012

skipif mysql # not compatible
query I rowsort label-9740
SELECT 22 * - MIN ( col0 ) AS col1 FROM tab2
----
-1012

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9741
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT ( ( + CAST( NULL AS SIGNED ) + - col2 - col1 * - 14 IS NOT NULL ) ) )
----

skipif mysql # not compatible
query III rowsort label-9741
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT ( ( + CAST ( NULL AS INTEGER ) + - col2 - col1 * - 14 IS NOT NULL ) ) )
----

query I rowsort
SELECT - + 16 FROM tab1 cor0
----
-16
-16
-16

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL <> - 21
----

query II rowsort
SELECT + 53 + col0, - 65 * - col0 AS col2 FROM tab0 AS cor0
----
140
5655
150
6305
68
975

onlyif mysql # aggregate syntax: 
query I rowsort label-9745
SELECT DISTINCT - MAX( 48 ) col1 FROM tab2 AS cor0
----
-48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9745
SELECT DISTINCT - MAX ( 48 ) col1 FROM tab2 AS cor0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-9746
SELECT - COUNT( * ) * 46 * - + ( COUNT( * ) ) FROM tab2 AS cor0
----
414

skipif mysql # not compatible
query I rowsort label-9746
SELECT - COUNT ( * ) * 46 * - + ( COUNT ( * ) ) FROM tab2 AS cor0
----
414

onlyif mysql # aggregate syntax: 
query I rowsort label-9747
SELECT - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9747
SELECT - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT - + 86 * col2 FROM tab1 AS cor0
----
-5074
-5848
-8256

onlyif mysql # aggregate syntax: 
query I rowsort label-9749
SELECT + COUNT( * ) FROM tab2 AS cor0 WHERE 29 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9749
SELECT + COUNT ( * ) FROM tab2 AS cor0 WHERE 29 IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9750
SELECT + col1 * 84 * + - CAST( NULL AS SIGNED ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9750
SELECT + col1 * 84 * + - CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9751
SELECT col0 FROM tab0 WHERE + CAST( NULL AS SIGNED ) / col2 + CAST( col0 AS SIGNED ) + - col2 * + + ( - col0 ) - + + 15 + + 50 IN ( - col2 )
----

skipif mysql # not compatible
query I rowsort label-9751
SELECT col0 FROM tab0 WHERE + CAST ( NULL AS INTEGER ) / col2 + CAST ( col0 AS INTEGER ) + - col2 * + + ( - col0 ) - + + 15 + + 50 IN ( - col2 )
----

query I rowsort
SELECT + 14 * + col1 AS col0 FROM tab1
----
196
658
70

onlyif mysql # aggregate syntax: 
query I rowsort label-9753
SELECT ALL SUM( - col0 ) * + 15 AS col2 FROM tab2
----
-2775

skipif mysql # not compatible
query I rowsort label-9753
SELECT ALL SUM ( - col0 ) * + 15 AS col2 FROM tab2
----
-2775

onlyif mysql # aggregate syntax: 
query I rowsort label-9754
SELECT - SUM( + + 61 ) FROM tab1
----
-183

skipif mysql # not compatible
query I rowsort label-9754
SELECT - SUM ( + + 61 ) FROM tab1
----
-183

query I rowsort
SELECT ALL - 38 + + 57 AS col0 FROM tab2
----
19
19
19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + col2 + col0 + ( col2 ) - + ( - - col1 ) col2 FROM tab0 AS cor0
----
173
391
43

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-9757
SELECT DISTINCT - 81 * + - CAST( - 74 AS SIGNED ) / - CAST( NULL AS SIGNED ) + + col2 * - col1, CAST( NULL AS DECIMAL ) * + CAST( NULL AS SIGNED ) * + - col1 FROM tab1 AS cor0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9757
SELECT DISTINCT - 81 * + - CAST ( - 74 AS INTEGER ) / - CAST ( NULL AS INTEGER ) + + col2 * - col1, CAST ( NULL AS REAL ) * + CAST ( NULL AS INTEGER ) * + - col1 FROM tab1 AS cor0
----
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 col0, col0 * col0 * col0 AS col0 FROM tab1 AS cor0
----
-59
614125
-68
753571
-96
132651

query I rowsort
SELECT + 12 + + col0 + ( + + col1 ) + col0 + + 68 FROM tab0
----
191
275
275

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9760
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 62 + + - col1 + + CAST( NULL AS DECIMAL ) + - col0 * + 48 NOT IN ( - col2 * + col0, - col1 )
----

skipif mysql # not compatible
query III rowsort label-9760
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 62 + + - col1 + + CAST ( NULL AS REAL ) + - col0 * + 48 NOT IN ( - col2 * + col0, - col1 )
----

query I rowsort
SELECT DISTINCT + - 69 FROM tab1 AS cor0 WHERE ( ( NOT + col0 > - col2 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9762
SELECT ALL + col1 * - + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9762
SELECT ALL + col1 * - + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 * + - 90 FROM tab1 AS cor0
----
-1260
-4230
-450

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 10 col0 FROM tab1 cor0
----
10
10
10

onlyif mysql # DIV for integer division: 
query I rowsort label-9765
SELECT + - col1 DIV - ( + col2 ) AS col0 FROM tab2 cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-9765
SELECT + - col1 / - ( + col2 ) AS col0 FROM tab2 cor0
----
1
1
2

onlyif mysql # DIV for integer division: 
query II rowsort label-9766
SELECT DISTINCT 43 DIV col0 col2, col0 * - col2 AS col1 FROM tab0 AS cor0
----
0
-870
0
-9603
2
-705

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9766
SELECT DISTINCT 43 / col0 col2, col0 * - col2 AS col1 FROM tab0 AS cor0
----
0
-870
0
-9603
2
-705

onlyif mysql # aggregate syntax: 
query I rowsort label-9767
SELECT ALL + ( - ( - + COUNT( * ) ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9767
SELECT ALL + ( - ( - + COUNT ( * ) ) ) FROM tab2 AS cor0
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL IN ( + col1, - col1 * 39, + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9769
SELECT ALL + COUNT( - - 6 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9769
SELECT ALL + COUNT ( - - 6 ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9770
SELECT ALL SUM( ALL + + 25 ) FROM tab1 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-9770
SELECT ALL SUM ( ALL + + 25 ) FROM tab1 AS cor0
----
75

query I rowsort
SELECT - + ( 56 ) FROM tab0 AS cor0 WHERE NOT - ( 29 ) IS NULL
----
-56
-56
-56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 47 AS col2, 65 col2 FROM tab1
----
47
65
47
65
47
65

query I rowsort
SELECT DISTINCT + col2 FROM tab0 WHERE + col0 IS NULL
----

query II rowsort
SELECT ALL + ( - ( - col1 ) ) AS col1, col1 FROM tab0
----
1
1
21
21
81
81

query I rowsort
SELECT ALL + col0 AS col1 FROM tab0 WHERE + 66 > 1
----
15
87
97

query I rowsort
SELECT DISTINCT + ( + 61 ) AS col0 FROM tab2
----
61

query II rowsort
SELECT ALL + col1 AS col0, col0 + ( col2 ) FROM tab1
----
14
147
47
159
5
144

query II rowsort
SELECT ALL - col0 AS col1, col0 * + col1 AS col2 FROM tab0
----
-15
1215
-87
1827
-97
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9779
SELECT - ( + SUM( + 24 ) ) * - 91 + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9779
SELECT - ( + SUM ( + 24 ) ) * - 91 + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL

query II rowsort
SELECT ALL - - 9, 3 AS col2 FROM tab0 AS cor0
----
9
3
9
3
9
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9781
SELECT - 91 + - CAST( NULL AS DECIMAL ) + - ( + + col0 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9781
SELECT - 91 + - CAST ( NULL AS REAL ) + - ( + + col0 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 + - 68 FROM tab1 AS cor0
----
-127
-136
-164

onlyif mysql # DIV for integer division: 
query I rowsort label-9783
SELECT - col2 DIV - + col1 - col2 - + + col2 AS col1 FROM tab0 AS cor0
----
-20
-94
-99

skipif mysql # not compatible
query I rowsort label-9783
SELECT - col2 / - + col1 - col2 - + + col2 AS col1 FROM tab0 AS cor0
----
-20
-94
-99

query I rowsort
SELECT DISTINCT - col1 * - 72 + 91 FROM tab0
----
1603
163
5923

query I rowsort
SELECT ALL 24 + - 8 FROM tab2
----
16
16
16

query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + + 33 + + ( - col2 ) AS col1 FROM tab1 cor0
----
-26
-35
-63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 77, - col1 col1 FROM tab2 AS cor0
----
77
-51
77
-67
77
-77

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 * col0 * + col1 IN ( - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9790
SELECT + - COUNT( DISTINCT - 95 ) + COUNT( * ) FROM tab0 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-9790
SELECT + - COUNT ( DISTINCT - 95 ) + COUNT ( * ) FROM tab0 AS cor0
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9791
SELECT ALL + CAST( NULL AS SIGNED ), col1 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-9791
SELECT ALL + CAST ( NULL AS INTEGER ), col1 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9792
SELECT DISTINCT - MIN( ALL + col0 ) * COUNT( + 82 ) AS col0 FROM tab2 AS cor0
----
-138

skipif mysql # not compatible
query I rowsort label-9792
SELECT DISTINCT - MIN ( ALL + col0 ) * COUNT ( + 82 ) AS col0 FROM tab2 AS cor0
----
-138

query I rowsort
SELECT - col2 + - 36 FROM tab1 AS cor0
----
-104
-132
-95

query I rowsort
SELECT DISTINCT + AVG ( 49 ) AS col0 FROM tab1 AS cor0 WHERE NOT - 80 * - 40 NOT IN ( - + 1, - col1 + + 8, + col0, + col2 )
----
NULL

query II rowsort
SELECT DISTINCT - ( - col0 ), + col1 * col1 AS col0 FROM tab1
----
51
196
85
25
91
2209

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9796
SELECT DISTINCT * FROM tab1 WHERE NOT + ( - - ( CAST( - 12 AS SIGNED ) ) ) <= - + col1
----
51
14
96
91
47
68

skipif mysql # not compatible
query III rowsort label-9796
SELECT DISTINCT * FROM tab1 WHERE NOT + ( - - ( CAST ( - 12 AS INTEGER ) ) ) <= - + col1
----
51
14
96
91
47
68

onlyif mysql # aggregate syntax: 
query I rowsort label-9797
SELECT DISTINCT + - ( + COUNT( * ) ) FROM tab0 WHERE - col1 / col1 <> 48
----
-3

skipif mysql # not compatible
query I rowsort label-9797
SELECT DISTINCT + - ( + COUNT ( * ) ) FROM tab0 WHERE - col1 / col1 <> 48
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9798
SELECT MIN( - + 28 ) AS col2 FROM tab1
----
-28

skipif mysql # not compatible
query I rowsort label-9798
SELECT MIN ( - + 28 ) AS col2 FROM tab1
----
-28

query III rowsort
SELECT * FROM tab2 WHERE NOT ( ( - - col0 ) ) >= + - col2
----

query I rowsort
SELECT ALL - 1 AS col2 FROM tab1 AS cor0
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9801
SELECT DISTINCT + - col0 DIV 4 DIV CAST( - col1 AS SIGNED ) FROM tab1 AS cor0
----
0
4

skipif mysql # not compatible
query I rowsort label-9801
SELECT DISTINCT + - col0 / 4 / CAST ( - col1 AS INTEGER ) FROM tab1 AS cor0
----
0
4

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9803
SELECT - MIN( ALL + - col1 ) AS col0 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-9803
SELECT - MIN ( ALL + - col1 ) AS col0 FROM tab1 AS cor0
----
47

query II rowsort
SELECT ALL col2 AS col2, col2 AS col1 FROM tab2 WHERE + col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - 71 col0 FROM tab1
----
-3337
-355
-994

onlyif mysql # aggregate syntax: 
query II rowsort label-9806
SELECT ALL 48 * COUNT( * ), COUNT( * ) - - 51 AS col0 FROM tab0
----
144
54

skipif mysql # not compatible
query II rowsort label-9806
SELECT ALL 48 * COUNT ( * ), COUNT ( * ) - - 51 AS col0 FROM tab0
----
144
54

query I rowsort
SELECT + 78 AS col1 FROM tab2 WHERE NOT + 64 * col1 BETWEEN + ( - - 42 ) * - 16 AND + + col1 + + + ( col0 )
----
78
78
78

onlyif mysql # DIV for integer division: 
query I rowsort label-9808
SELECT DISTINCT - 89 DIV + col0 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-9808
SELECT DISTINCT - 89 / + col0 FROM tab2
----
-1

query I rowsort
SELECT ALL + col0 * 84 AS col1 FROM tab2
----
3864
5376
6300

onlyif mysql # aggregate syntax: 
query I rowsort label-9810
SELECT ALL + 66 + - COUNT( * ) FROM tab1
----
63

skipif mysql # not compatible
query I rowsort label-9810
SELECT ALL + 66 + - COUNT ( * ) FROM tab1
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-9811
SELECT COUNT( * ) + + + COUNT( * ) - - 62 AS col1 FROM tab1
----
68

skipif mysql # not compatible
query I rowsort label-9811
SELECT COUNT ( * ) + + + COUNT ( * ) - - 62 AS col1 FROM tab1
----
68

query I rowsort
SELECT DISTINCT + 72 + + 89 AS col0 FROM tab0
----
161

query I rowsort
SELECT DISTINCT + col1 + - col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query II rowsort
SELECT DISTINCT - col2, - col2 FROM tab1 AS cor0
----
-59
-59
-68
-68
-96
-96

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( 63 * + + col0 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9816
SELECT ALL - 97 AS col0, CAST( NULL AS SIGNED ) * + 39 * - col1 AS col2 FROM tab2 AS cor0
----
-97
NULL
-97
NULL
-97
NULL

skipif mysql # not compatible
query II rowsort label-9816
SELECT ALL - 97 AS col0, CAST ( NULL AS INTEGER ) * + 39 * - col1 AS col2 FROM tab2 AS cor0
----
-97
NULL
-97
NULL
-97
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9817
SELECT MIN( + CAST( - col0 AS SIGNED ) ) * + + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-273

skipif mysql # not compatible
query I rowsort label-9817
SELECT MIN ( + CAST ( - col0 AS INTEGER ) ) * + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-273

query I rowsort
SELECT DISTINCT 84 * - - col1 FROM tab2 AS cor0
----
4284
5628
6468

query I rowsort
SELECT - col1 * - - col1 AS col1 FROM tab0 AS cor0
----
-1
-441
-6561

query I rowsort
SELECT col0 * + + col2 FROM tab2 AS cor0
----
1058
2560
4350

query II rowsort
SELECT ALL 77, - ( ( + 26 ) ) * - 89 - col2 * + - col1 AS col2 FROM tab2
----
77
3487
77
5394
77
6200

query I rowsort
SELECT col2 FROM tab2 WHERE NULL <= + col1 + - col0
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + ( - col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL 11 * + + 19 * - + 68 + + 67 AS col2, 75 FROM tab1
----
-14145
75
-14145
75
-14145
75

query I rowsort
SELECT 21 - 1 FROM tab2
----
20
20
20

query I rowsort
SELECT - + 89 AS col0 FROM tab0 cor0
----
-89
-89
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9827
SELECT ALL - col1 * - CAST( NULL AS SIGNED ) * + col2 + + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9827
SELECT ALL - col1 * - CAST ( NULL AS INTEGER ) * + col2 + + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9828
SELECT - - ( + + COUNT( * ) ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9828
SELECT - - ( + + COUNT ( * ) ) FROM tab0 cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-9829
SELECT ALL - ( - + col0 ) DIV 22 FROM tab1 AS cor0
----
2
3
4

skipif mysql # not compatible
query I rowsort label-9829
SELECT ALL - ( - + col0 ) / 22 FROM tab1 AS cor0
----
2
3
4

onlyif mysql # DIV for integer division: 
query I rowsort label-9830
SELECT + 4 DIV - 27 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9830
SELECT + 4 / - 27 AS col2 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) >= - + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9832
SELECT - + MIN( ALL col0 ) AS col2 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-9832
SELECT - + MIN ( ALL col0 ) AS col2 FROM tab2 AS cor0
----
-46

query I rowsort
SELECT ALL - 22 + - + col0 FROM tab2
----
-68
-86
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9834
SELECT ALL + + COUNT( * ) AS col0 FROM tab2 WHERE + CAST( + 29 AS SIGNED ) * + + ( + col2 ) / col0 * + col2 + - - col2 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-9834
SELECT ALL + + COUNT ( * ) AS col0 FROM tab2 WHERE + CAST ( + 29 AS INTEGER ) * + + ( + col2 ) / col0 * + col2 + - - col2 <= NULL
----
0

query I rowsort
SELECT ALL - col1 * 79 AS col0 FROM tab2
----
-4029
-5293
-6083

query I rowsort
SELECT ALL - col0 AS col0 FROM tab1 WHERE - - col1 IS NOT NULL
----
-51
-85
-91

query I rowsort
SELECT ALL 65 * col1 + - col0 + col0 AS col1 FROM tab0
----
1365
5265
65

query II rowsort
SELECT DISTINCT col2 AS col2, + col0 AS col2 FROM tab2 AS cor0
----
23
46
40
64
58
75

onlyif mysql # aggregate syntax: 
query II rowsort label-9839
SELECT ALL + 99, COUNT( * ) AS col1 FROM tab1 AS cor0
----
99
3

skipif mysql # not compatible
query II rowsort label-9839
SELECT ALL + 99, COUNT ( * ) AS col1 FROM tab1 AS cor0
----
99
3

query I rowsort
SELECT DISTINCT col1 * + - 67 FROM tab0 AS cor0
----
-1407
-5427
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9841
SELECT + COUNT( * ) DIV - 47 + + 62 AS col2, - 90 * + 83 AS col1 FROM tab2 AS cor0
----
62
-7470

skipif mysql # not compatible
query II rowsort label-9841
SELECT + COUNT ( * ) / - 47 + + 62 AS col2, - 90 * + 83 AS col1 FROM tab2 AS cor0
----
62
-7470

onlyif mysql # aggregate syntax: 
query I rowsort label-9842
SELECT ALL - COUNT( * ) * - - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9842
SELECT ALL - COUNT ( * ) * - - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9843
SELECT DISTINCT - SUM( + - col2 ) AS col2 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-9843
SELECT DISTINCT - SUM ( + - col2 ) AS col2 FROM tab1 AS cor0
----
223

onlyif mysql # aggregate syntax: 
query I rowsort label-9844
SELECT ALL ( 87 ) * - - COUNT( * ) FROM tab1
----
261

skipif mysql # not compatible
query I rowsort label-9844
SELECT ALL ( 87 ) * - - COUNT ( * ) FROM tab1
----
261

query II rowsort
SELECT ALL col1 + col0, col0 FROM tab2
----
141
64
142
75
97
46

onlyif mysql # aggregate syntax: 
query I rowsort label-9846
SELECT DISTINCT + 23 + + ( + COUNT( * ) ) FROM tab1 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-9846
SELECT DISTINCT + 23 + + ( + COUNT ( * ) ) FROM tab1 AS cor0
----
26

query I rowsort
SELECT - col1 - + + 63 * + col0 FROM tab2 AS cor0
----
-2949
-4109
-4792

onlyif mysql # DIV for integer division: 
query I rowsort label-9848
SELECT ALL + 4 DIV + col2 * col2 - - col0 + - col0 - + col1 * + ( - col0 ) FROM tab1 AS cor0
----
425
4277
714

skipif mysql # not compatible
query I rowsort label-9848
SELECT ALL + 4 / + col2 * col2 - - col0 + - col0 - + col1 * + ( - col0 ) FROM tab1 AS cor0
----
425
4277
714

query I rowsort
SELECT col0 + - 25 + 3 * - col0 FROM tab0 AS cor0
----
-199
-219
-55

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9850
SELECT DISTINCT + col0 * col2, 72 + - + 61 * - CAST( - - ( + - 6 ) AS SIGNED ) AS col2 FROM tab0 cor0
----
705
-294
870
-294
9603
-294

skipif mysql # not compatible
query II rowsort label-9850
SELECT DISTINCT + col0 * col2, 72 + - + 61 * - CAST ( - - ( + - 6 ) AS INTEGER ) AS col2 FROM tab0 cor0
----
705
-294
870
-294
9603
-294

onlyif mysql # aggregate syntax: 
query I rowsort label-9851
SELECT DISTINCT COUNT( col1 ) AS col1 FROM tab2 AS cor0 WHERE NOT + col0 IN ( + col1 )
----
3

skipif mysql # not compatible
query I rowsort label-9851
SELECT DISTINCT COUNT ( col1 ) AS col1 FROM tab2 AS cor0 WHERE NOT + col0 IN ( + col1 )
----
3

query II rowsort
SELECT DISTINCT 0, + 70 - - + ( - - col1 ) * col2 AS col0 FROM tab2
----
0
1243
0
3150
0
3956

onlyif mysql # DIV for integer division: 
query I rowsort label-9853
SELECT ALL + 10 DIV - + col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9853
SELECT ALL + 10 / - + col0 FROM tab0
----
0
0
0

query I rowsort
SELECT 3 - - 48 + - - 44 FROM tab0, tab2 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - - 77 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9856
SELECT DISTINCT + COUNT( * ) * - COUNT( * ) col0 FROM tab1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9856
SELECT DISTINCT + COUNT ( * ) * - COUNT ( * ) col0 FROM tab1
----
-9

query III rowsort
SELECT DISTINCT - - col0 AS col0, + 36 AS col2, + + col2 AS col0 FROM tab0 AS cor0
----
9 values hashing to 66be6e57c90d75d9b4fd29e2335ca4f9

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 6 < - - col1 / - col1 * 54 * + 47
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT NULL = NULL )
----

query II rowsort
SELECT + ( - col2 ), + col2 AS col0 FROM tab1 AS cor0
----
-59
59
-68
68
-96
96

query I rowsort
SELECT DISTINCT - col0 * 59 AS col0 FROM tab1
----
-3009
-5015
-5369

query I rowsort
SELECT ALL col0 * + col1 + col2 + - + col2 + - + col2 AS col2 FROM tab0 AS cor0
----
-2
1168
1817

query II rowsort
SELECT DISTINCT + + col0 * - col1 AS col1, col1 FROM tab1 cor0
----
-425
5
-4277
47
-714
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 + + + col0 col2, 16 AS col0 FROM tab1 cor0
----
102
16
170
16
182
16

query I rowsort
SELECT ALL 74 * + col0 * - 1 AS col0 FROM tab2
----
-3404
-4736
-5550

onlyif mysql # aggregate syntax: 
query I rowsort label-9866
SELECT ALL - + MIN( ALL - + 95 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
95

skipif mysql # not compatible
query I rowsort label-9866
SELECT ALL - + MIN ( ALL - + 95 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
95

query III rowsort
SELECT * FROM tab2 WHERE 48 IS NULL
----

query I rowsort
SELECT + 60 FROM tab2 AS cor0 WHERE NULL <= - 23 - + + col0 * - 59
----

query I rowsort
SELECT ALL ( - col0 ) + + 0 FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9870
SELECT ALL * FROM tab0 AS cor0 WHERE + col1 NOT IN ( - col0, CAST( - col0 AS SIGNED ) * - col2 + + - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9870
SELECT ALL * FROM tab0 AS cor0 WHERE + col1 NOT IN ( - col0, CAST ( - col0 AS INTEGER ) * - col2 + + - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - + ( - 22 ) AS col2 FROM tab0 cor0
----
22
22
22

query I rowsort
SELECT DISTINCT - col1 FROM tab0 AS cor0 WHERE ( - 63 ) + + col1 * - + col0 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN 54 AND - - col1
----

query I rowsort
SELECT ALL + - col2 - + 84 FROM tab2 AS cor0
----
-107
-124
-142

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9875
SELECT ALL + 13 - + + 88 - + + CAST( NULL AS SIGNED ) / + - COUNT( * ) / COUNT( * ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9875
SELECT ALL + 13 - + + 88 - + + CAST ( NULL AS INTEGER ) / + - COUNT ( * ) / COUNT ( * ) AS col2 FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT ALL - col0, 27 * + col0 * + col0 + - col1 * col0 + col1 AS col2 FROM tab0 AS cor0
----
-15
4941
-87
202557
-97
253947

onlyif mysql # DIV for integer division: 
query II rowsort label-9877
SELECT 5 - 17 DIV - col2, col0 FROM tab0 AS cor0
----
5
15
5
97
6
87

skipif mysql # not compatible
query II rowsort label-9877
SELECT 5 - 17 / - col2, col0 FROM tab0 AS cor0
----
5
15
5
97
6
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 64 - - - 97 * + - ( - - col1 ) col0, col0 FROM tab1
----
1422
51
4623
91
549
85

query I rowsort
SELECT ALL - col1 * + + col2 * - 49 AS col2 FROM tab0
----
10290
186543
4851

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT ( NOT NULL NOT BETWEEN ( 48 ) AND + 68 ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9881
SELECT ALL + - COUNT( * ) DIV - 49 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9881
SELECT ALL + - COUNT ( * ) / - 49 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9882
SELECT - MAX( DISTINCT - - ( 8 ) ) AS col0 FROM tab0 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-9882
SELECT - MAX ( DISTINCT - - ( 8 ) ) AS col0 FROM tab0 AS cor0
----
-8

query II rowsort
SELECT 16, col2 FROM tab2
----
16
23
16
40
16
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9884
SELECT DISTINCT 66 * + COUNT( * ) col1 FROM tab1
----
198

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9884
SELECT DISTINCT 66 * + COUNT ( * ) col1 FROM tab1
----
198

onlyif mysql # aggregate syntax: 
query I rowsort label-9885
SELECT + COUNT( DISTINCT + + col1 ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9885
SELECT + COUNT ( DISTINCT + + col1 ) FROM tab1 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9886
SELECT - MIN( col2 ) FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-9886
SELECT - MIN ( col2 ) FROM tab2 AS cor0
----
-23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + - col1 col0 FROM tab0 AS cor0
----
1
441
6561

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 * + col0 * col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-9889
SELECT - - 54 DIV - + col0 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9889
SELECT - - 54 / - + col0 FROM tab2 AS cor0
----
-1
0
0

query I rowsort
SELECT + 58 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
58
58
58

onlyif mysql # DIV for integer division: 
query I rowsort label-9891
SELECT - - 85 DIV - 51 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9891
SELECT - - 85 / - 51 FROM tab0 AS cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9892
SELECT + COUNT( col1 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9892
SELECT + COUNT ( col1 ) AS col2 FROM tab0
----
3

query I rowsort
SELECT - col2 * - 31 AS col2 FROM tab1
----
1829
2108
2976

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9894
SELECT ALL + CAST( + 57 AS SIGNED ) FROM tab0
----
57
57
57

skipif mysql # not compatible
query I rowsort label-9894
SELECT ALL + CAST ( + 57 AS INTEGER ) FROM tab0
----
57
57
57

query III rowsort
SELECT * FROM tab0 WHERE - 97 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col1 < NULL
----

query I rowsort
SELECT ALL col2 + + - col1 * + col2 FROM tab2
----
-1150
-3040
-3828

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9898
SELECT ALL - + MIN( ALL + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9898
SELECT ALL - + MIN ( ALL + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 + 72 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 95 + - col2 * + col1 AS col1 FROM tab0 AS cor0
----
-115
-3712
-4

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 61 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9902
SELECT + 20 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE 1 * + col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-9902
SELECT + 20 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE 1 * + col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9903
SELECT + - 4 + + 42 DIV - col2 + + 12 AS col2 FROM tab1 cor0
----
8
8
8

skipif mysql # not compatible
query I rowsort label-9903
SELECT + - 4 + + 42 / - col2 + + 12 AS col2 FROM tab1 cor0
----
8
8
8

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 39 NOT BETWEEN - 67 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9905
SELECT DISTINCT - 54 + - MIN( + + CAST( col0 AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
-100

skipif mysql # not compatible
query I rowsort label-9905
SELECT DISTINCT - 54 + - MIN ( + + CAST ( col0 AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
-100

query I rowsort
SELECT ALL 36 - 34 FROM tab1 AS cor0
----
2
2
2

query I rowsort
SELECT - 11 + + 83 AS col0 FROM tab0 AS cor0
----
72
72
72

query I rowsort
SELECT - col2 FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN col0 AND NULL
----

query I rowsort
SELECT col2 * + - col2 * col0 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-33135
-8700
-950697

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 37 col1 FROM tab2 AS cor0
----
37

query I rowsort
SELECT ALL col1 * + 66 AS col2 FROM tab2
----
3366
4422
5082

query III rowsort
SELECT * FROM tab2 WHERE NOT - 34 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT col1 AS col2, + 99 FROM tab1
----
14
99
47
99
5
99

query I rowsort
SELECT + col2 * + - 95 FROM tab0
----
-4465
-9405
-950

query II rowsort
SELECT ALL col2, - col1 AS col0 FROM tab0
----
10
-21
47
-81
99
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9916
SELECT ALL COUNT( * ) * - - COUNT( * ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-9916
SELECT ALL COUNT ( * ) * - - COUNT ( * ) FROM tab2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9917
SELECT 33 * MIN( - col2 ) col1 FROM tab0
----
-3267

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9917
SELECT 33 * MIN ( - col2 ) col1 FROM tab0
----
-3267

query I rowsort
SELECT col0 * + + col1 AS col2 FROM tab1
----
425
4277
714

onlyif mysql # DIV for integer division: 
query I rowsort label-9919
SELECT 56 DIV + 48 AS col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9919
SELECT 56 / + 48 AS col1 FROM tab2
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9920
SELECT ALL + MIN( ALL - col2 ) FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-9920
SELECT ALL + MIN ( ALL - col2 ) FROM tab1 AS cor0
----
-96

query I rowsort
SELECT DISTINCT - col2 * 60 FROM tab0 AS cor0
----
-2820
-5940
-600

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9922
SELECT COUNT( + col0 ) DIV - COUNT( * ) FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9922
SELECT COUNT ( + col0 ) / - COUNT ( * ) FROM tab1 AS cor0
----
-1

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 30 + - 98 / + 14 < + + 39 + - + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9924
SELECT * FROM tab0 AS cor0 WHERE NOT 85 + - col2 * - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-9924
SELECT * FROM tab0 AS cor0 WHERE NOT 85 + - col2 * - CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT - - 35 AS col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

onlyif mysql # aggregate syntax: 
query I rowsort label-9926
SELECT - COUNT( * ) AS col2 FROM tab2 WHERE NOT ( NOT + col0 IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-9926
SELECT - COUNT ( * ) AS col2 FROM tab2 WHERE NOT ( NOT + col0 IS NULL )
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col1 > ( 10 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 NOT IN ( + col1, 79 * - 57, + col0 + + + col0, + col0, + 7, - ( ( col2 ) ) * - col1 + - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( 33 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - - 42 FROM tab2 AS cor0
----
42
42
42

query I rowsort
SELECT + 9 + - 58 FROM tab2 cor0
----
-49
-49
-49

query I rowsort
SELECT + - 53 FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
-53
-53
-53

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + ( col0 ) + + - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 NOT BETWEEN NULL AND ( - 64 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 AS col0, col0 col1 FROM tab0
----
-15
15
-87
87
-97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9936
SELECT COUNT( ALL 14 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9936
SELECT COUNT ( ALL 14 ) AS col1 FROM tab0
----
3

query I rowsort
SELECT DISTINCT col2 * + + col1 + - 50 * 43 * col0 * + - ( + col1 ) FROM tab1
----
1536444
914045
9198746

query II rowsort
SELECT - 2, col2 AS col1 FROM tab1 WHERE NULL <> NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9939
SELECT ALL - COUNT( - col0 ) - ( - - 47 ) + CAST( - + CAST( ( + + AVG ( DISTINCT + col2 ) ) AS SIGNED ) AS SIGNED ) FROM tab2 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-9939
SELECT ALL - COUNT ( - col0 ) - ( - - 47 ) + CAST ( - + CAST ( ( + + AVG ( DISTINCT + col2 ) ) AS INTEGER ) AS INTEGER ) FROM tab2 AS cor0
----
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9940
SELECT DISTINCT COUNT( * ) - - CAST( NULL AS SIGNED ) + - 25 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9940
SELECT DISTINCT COUNT ( * ) - - CAST ( NULL AS INTEGER ) + - 25 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL - + col2 * - 98 * - col2 FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9942
SELECT + COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9942
SELECT + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

query II rowsort
SELECT + - col1, col0 FROM tab2 AS cor0
----
-51
46
-67
75
-77
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9944
SELECT ALL col1 * + CAST( 93 AS SIGNED ) FROM tab0 AS cor0
----
1953
7533
93

skipif mysql # not compatible
query I rowsort label-9944
SELECT ALL col1 * + CAST ( 93 AS INTEGER ) FROM tab0 AS cor0
----
1953
7533
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 17 * col2 + + - ( + col2 ) col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1044
-414
-720

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2, 76 col0 FROM tab2 cor0
----
-23
76
-40
76
-58
76

query II rowsort
SELECT + 49 AS col2, col2 AS col0 FROM tab2 AS cor0
----
49
23
49
40
49
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9948
SELECT - CAST( - ( - col0 ) AS SIGNED ) AS col0 FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-9948
SELECT - CAST ( - ( - col0 ) AS INTEGER ) AS col0 FROM tab1
----
-51
-85
-91

query I rowsort
SELECT 39 * - 59 FROM tab2
----
-2301
-2301
-2301

onlyif mysql # aggregate syntax: 
query I rowsort label-9950
SELECT ALL + MAX( + col1 ) AS col2 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-9950
SELECT ALL + MAX ( + col1 ) AS col2 FROM tab2
----
77

query I rowsort
SELECT DISTINCT + col1 * + - col1 * + 21 * + col1 AS col2 FROM tab1
----
-2180283
-2625
-57624

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + col1 * - 73 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-9953
SELECT DISTINCT 99 DIV - ( - col1 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-9953
SELECT DISTINCT 99 / - ( - col1 ) FROM tab2
----
1

query I rowsort
SELECT - 64 - + col0 FROM tab2 cor0 WHERE NOT col1 IS NULL
----
-110
-128
-139

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9955
SELECT ALL - - ( - CAST( NULL AS SIGNED ) ) * - ( - + col0 ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9955
SELECT ALL - - ( - CAST ( NULL AS INTEGER ) ) * - ( - + col0 ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9956
SELECT ( + COUNT( * ) ) col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9956
SELECT ( + COUNT ( * ) ) col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT - 50 * + + col2 FROM tab0 AS cor0
----
-2350
-4950
-500

onlyif mysql # aggregate syntax: 
query I rowsort label-9958
SELECT 96 + - MAX( + + col2 ) FROM tab1 cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9958
SELECT 96 + - MAX ( + + col2 ) FROM tab1 cor0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT 63 * + - 39 - - 42 + + - 31 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9960
SELECT - - COUNT( * ) AS col2, COUNT( * ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9
9

skipif mysql # not compatible
query II rowsort label-9960
SELECT - - COUNT ( * ) AS col2, COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9
9

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - - col0 * + col0 - - 46 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 74 FROM tab0 WHERE NULL BETWEEN NULL AND col2
----

query I rowsort
SELECT DISTINCT col2 + - 11 AS col0 FROM tab1
----
48
57
85

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9964
SELECT DISTINCT * FROM tab1 WHERE CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9964
SELECT DISTINCT * FROM tab1 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9965
SELECT DISTINCT 54 + - COUNT( * ) FROM tab0
----
51

skipif mysql # not compatible
query I rowsort label-9965
SELECT DISTINCT 54 + - COUNT ( * ) FROM tab0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9966
SELECT DISTINCT + - MIN( ALL + - col0 ) AS col2 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-9966
SELECT DISTINCT + - MIN ( ALL + - col0 ) AS col2 FROM tab2 AS cor0
----
75

query I rowsort
SELECT ALL 96 + - 7 AS col0 FROM tab0 AS cor0
----
89
89
89

onlyif mysql # aggregate syntax: 
query I rowsort label-9968
SELECT - - MAX( DISTINCT - - col0 ) AS col0 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-9968
SELECT - - MAX ( DISTINCT - - col0 ) AS col0 FROM tab1 AS cor0
----
91

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 47 * + 72 * 89 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + + 15 FROM tab0 AS cor0
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-9971
SELECT col2 DIV col0 + - col1 AS col2 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-9971
SELECT col2 / col0 + - col1 AS col2 FROM tab2
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9972
SELECT ALL + COUNT( ALL + col0 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9972
SELECT ALL + COUNT ( ALL + col0 ) AS col0 FROM tab2
----
3

query II rowsort
SELECT ALL col1 + 69, col1 AS col0 FROM tab1
----
116
47
74
5
83
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9974
SELECT ALL - MAX( + col0 ) FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-9974
SELECT ALL - MAX ( + col0 ) FROM tab1
----
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + col1 col1 FROM tab1 WHERE - 41 > - + 81
----
-196
-2209
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-9976
SELECT + SUM( DISTINCT ( col2 ) ) FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-9976
SELECT + SUM ( DISTINCT ( col2 ) ) FROM tab1
----
223

query I rowsort
SELECT + - ( - - col0 ) FROM tab0 AS cor0
----
-15
-87
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9978
SELECT DISTINCT 36 - + CAST( - + COUNT( * ) AS SIGNED ) FROM tab1 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-9978
SELECT DISTINCT 36 - + CAST ( - + COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0
----
39

query I rowsort
SELECT - 44 * + 73 FROM tab0
----
-3212
-3212
-3212

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9980
SELECT DISTINCT 41 AS col1 FROM tab2 WHERE col0 + + + CAST( col2 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-9980
SELECT DISTINCT 41 AS col1 FROM tab2 WHERE col0 + + + CAST ( col2 AS INTEGER ) IS NULL
----

query I rowsort
SELECT DISTINCT - col2 * + 71 FROM tab2 AS cor0
----
-1633
-2840
-4118

query I rowsort
SELECT - 92 * + 32 * + + col2 AS col1 FROM tab1 AS cor0
----
-173696
-200192
-282624

query II rowsort
SELECT DISTINCT + col2, - 37 * col0 + 80 + + 86 FROM tab0 AS cor0
----
10
-3053
47
-389
99
-3423

onlyif mysql # aggregate syntax: 
query I rowsort label-9984
SELECT ALL - COUNT( * ) FROM tab2 AS cor0 WHERE col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9984
SELECT ALL - COUNT ( * ) FROM tab2 AS cor0 WHERE col1 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9985
SELECT ALL + + MAX( ALL col1 ) + - COUNT( - 65 ) AS col0 FROM tab0 WHERE - - col1 * + - ( + 23 ) = - - col0 + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9985
SELECT ALL + + MAX ( ALL col1 ) + - COUNT ( - 65 ) AS col0 FROM tab0 WHERE - - col1 * + - ( + 23 ) = - - col0 + col0
----
NULL

query II rowsort
SELECT DISTINCT - col0 AS col0, col2 AS col1 FROM tab0
----
-15
47
-87
10
-97
99

query II rowsort
SELECT - 14 AS col0, - 60 AS col2 FROM tab1
----
-14
-60
-14
-60
-14
-60

query I rowsort
SELECT - 51 * - 42 AS col0 FROM tab2
----
2142
2142
2142

query I rowsort
SELECT + col1 * 91 AS col1 FROM tab0
----
1911
7371
91

query II rowsort
SELECT + col2, + col0 AS col0 FROM tab1
----
59
85
68
91
96
51

onlyif mysql # aggregate syntax: 
query II rowsort label-9991
SELECT ALL COUNT( * ), + COUNT( * ) AS col1 FROM tab1 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-9991
SELECT ALL COUNT ( * ), + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
3
3

query I rowsort
SELECT DISTINCT col1 + col0 FROM tab1 AS cor0 WHERE NOT - col0 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + col2 * ( 30 ) AS col1 FROM tab1 AS cor0
----
1770
2040
2880

query II rowsort
SELECT DISTINCT - 61, col2 AS col0 FROM tab0 cor0
----
-61
10
-61
47
-61
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9995
SELECT + 17 + + COUNT( * ) - + 20 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9995
SELECT + 17 + + COUNT ( * ) - + 20 FROM tab2
----
0

query I rowsort
SELECT - 83 + - col2 * - col2 AS col0 FROM tab2
----
1517
3281
446

query II rowsort
SELECT DISTINCT - col2 * + col0 + 94, + 75 AS col1 FROM tab0 AS cor0
----
-611
75
-776
75
-9509
75

query II rowsort
SELECT DISTINCT + - 49 + - col0 AS col2, col2 AS col0 FROM tab0 cor0
----
-136
10
-146
99
-64
47

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT 90 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

