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 III rowsort
SELECT * FROM tab1 WHERE NOT 51 - + 62 > NULL
----

query I rowsort
SELECT ALL - + col1 FROM tab2 WHERE NOT NULL < NULL
----

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3
SELECT MAX( ALL - + col2 ) * CAST( AVG ( DISTINCT - col2 ) AS SIGNED ) FROM tab0 cor0
----
520

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4
SELECT - + COUNT( ALL col2 ) AS col1 FROM tab1 WHERE NOT - - col2 / 78 * + + col0 <> + col2 * - + 43
----
0

skipif mysql # not compatible
query I rowsort label-4
SELECT - + COUNT ( ALL col2 ) AS col1 FROM tab1 WHERE NOT - - col2 / 78 * + + col0 <> + col2 * - + 43
----
0

query I rowsort
SELECT ALL 20 * + 35 FROM tab0 AS cor0
----
700
700
700

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 col2 FROM tab0 AS cor0 WHERE 76 IS NOT NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7
SELECT - - 25 + + COUNT( * ) AS col0 FROM tab1 AS cor0
----
28

skipif mysql # not compatible
query I rowsort label-7
SELECT - - 25 + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
28

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

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

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

query I rowsort
SELECT - col2 * col2 + - ( - col1 ) AS col1 FROM tab1 cor0
----
-3476
-4577
-9202

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col2 * + 93 * col0 + - ( - + 31 ) * - col0 col2 FROM tab1 AS cor0 WHERE - col2 IS NULL
----

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

query I rowsort
SELECT DISTINCT - col1 + + + col1 FROM tab0 AS cor0
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-15
SELECT DISTINCT ( - COUNT( ALL + col2 ) ) * - 83 AS col2 FROM tab0
----
249

skipif mysql # not compatible
query I rowsort label-15
SELECT DISTINCT ( - COUNT ( ALL + col2 ) ) * - 83 AS col2 FROM tab0
----
249

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

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

query I rowsort
SELECT - + col1 - + 87 AS col0 FROM tab2 AS cor0
----
-138
-154
-164

query I rowsort
SELECT DISTINCT 52 * - col2 FROM tab0 cor0
----
-2444
-5148
-520

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

onlyif mysql # aggregate syntax: 
query I rowsort label-21
SELECT DISTINCT + MIN( col0 ) AS col2 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-21
SELECT DISTINCT + MIN ( col0 ) AS col2 FROM tab2 AS cor0
----
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 20 * - + col1 col1 FROM tab1 AS cor0
----
100
280
940

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-25
SELECT DISTINCT + 51 DIV + + COUNT( * ) AS col0 FROM tab1 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-25
SELECT DISTINCT + 51 / + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
17

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-28
SELECT ALL - MIN( ALL - ( - 38 ) ) FROM tab2 cor0
----
-38

skipif mysql # not compatible
query I rowsort label-28
SELECT ALL - MIN ( ALL - ( - 38 ) ) FROM tab2 cor0
----
-38

query I rowsort
SELECT DISTINCT - 76 * - - 5 FROM tab1
----
-380

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

skipif mysql # not compatible
query I rowsort label-30
SELECT DISTINCT - COUNT ( 90 ) FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-31
SELECT ALL MIN( ALL + 29 ) * + COUNT( * ) + - + 4 FROM tab2
----
83

skipif mysql # not compatible
query I rowsort label-31
SELECT ALL MIN ( ALL + 29 ) * + COUNT ( * ) + - + 4 FROM tab2
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-32
SELECT DISTINCT + col0 * CAST( + ( + col1 ) AS SIGNED ) * col2 col2 FROM tab2
----
197120
291450
53958

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-32
SELECT DISTINCT + col0 * CAST ( + ( + col1 ) AS INTEGER ) * col2 col2 FROM tab2
----
197120
291450
53958

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

skipif mysql # not compatible
query I rowsort label-33
SELECT ALL + COUNT ( * ) / + COUNT ( * ) AS col1 FROM tab1
----
1

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

skipif mysql # not compatible
query I rowsort label-34
SELECT ALL COUNT ( DISTINCT - - col2 ) FROM tab0
----
3

query II rowsort
SELECT - + col2 * 31 * + col1 AS col0, col0 FROM tab2 AS cor0
----
-120466
75
-36363
46
-95480
64

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 + - - 86 col0 FROM tab1 AS cor0
----
100
133
91

query I rowsort
SELECT DISTINCT + 1 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-41
SELECT 35 + + 70 AS col0, + COUNT( * ) FROM tab2
----
105
3

skipif mysql # not compatible
query II rowsort label-41
SELECT 35 + + 70 AS col0, + COUNT ( * ) FROM tab2
----
105
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-42
SELECT 79 * - - col1 + - 68 + - - CAST( + col0 AS SIGNED ) AS col1 FROM tab1
----
1089
3736
412

skipif mysql # not compatible
query I rowsort label-42
SELECT 79 * - - col1 + - 68 + - - CAST ( + col0 AS INTEGER ) AS col1 FROM tab1
----
1089
3736
412

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

query I rowsort
SELECT + 15 + - 92 FROM tab1
----
-77
-77
-77

query I rowsort
SELECT 86 * 61 + + ( - col1 ) AS col0 FROM tab1
----
5199
5232
5241

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL = + 0 * + col0
----

query I rowsort
SELECT - col2 + + - col1 * + + col1 AS col0 FROM tab2
----
-2624
-4547
-5969

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

skipif mysql # not compatible
query I rowsort label-48
SELECT COUNT ( * ) FROM tab0 WHERE + + col0 IS NULL
----
0

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

skipif mysql # not compatible
query I rowsort label-49
SELECT ( - MAX ( + 18 ) ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 + - col1 * - - col2 * + col0 <= - - 63
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query I rowsort
SELECT + - 12 AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to e698dd57d3aac30af14ce35da434bb45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-54
SELECT - + COUNT( * ) DIV + COUNT( * ) FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-1

skipif mysql # not compatible
query I rowsort label-54
SELECT - + COUNT ( * ) / + COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-55
SELECT + col1 col0, + CAST( - col2 AS SIGNED ) AS col1 FROM tab0 cor0
----
1
-99
21
-10
81
-47

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

onlyif mysql # aggregate syntax: 
query I rowsort label-56
SELECT DISTINCT MIN( DISTINCT - - col1 ) AS col2 FROM tab0 AS cor0
----
1

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

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-58
SELECT ALL 71 * - MIN( - + ( + col2 ) ) AS col2 FROM tab1 AS cor0
----
6816

skipif mysql # not compatible
query I rowsort label-58
SELECT ALL 71 * - MIN ( - + ( + col2 ) ) AS col2 FROM tab1 AS cor0
----
6816

query I rowsort
SELECT DISTINCT + 15 * - col2 AS col0 FROM tab0 AS cor0
----
-1485
-150
-705

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

query I rowsort
SELECT ALL 78 * - - 61 AS col2 FROM tab0 AS cor0
----
4758
4758
4758

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-62
SELECT 49 DIV COUNT( * ) AS col2 FROM tab2 cor0
----
16

skipif mysql # not compatible
query I rowsort label-62
SELECT 49 / COUNT ( * ) AS col2 FROM tab2 cor0
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-63
SELECT col2 DIV + - 62 * 76 * + + col2 * + col0 * - - ( - + col0 ) AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-63
SELECT col2 / + - 62 * 76 * + + col2 * + col0 * - - ( - + col0 ) AS col0 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + - 46 col1 FROM tab1
----
2714
3128
4416

query I rowsort
SELECT ALL 18 * + 22 AS col0 FROM tab1
----
396
396
396

query I rowsort
SELECT ALL col1 * 49 * + 58 FROM tab1
----
133574
14210
39788

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - 96 ) * + col1 col2 FROM tab1
----
-1344
-4512
-480

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT IN ( col2 + + 40, - col0 * 53, - + 76 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-70
SELECT ALL - + col1 AS col0 FROM tab1 AS cor0 WHERE 9 - CAST( NULL AS DECIMAL ) + - + col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-70
SELECT ALL - + col1 AS col0 FROM tab1 AS cor0 WHERE 9 - CAST ( NULL AS REAL ) + - + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-71
SELECT ALL 16 DIV - 24 + 74 * - + SUM( ALL - + ( + - col1 ) ) AS col2 FROM tab0 AS cor0
----
-7622

skipif mysql # not compatible
query I rowsort label-71
SELECT ALL 16 / - 24 + 74 * - + SUM ( ALL - + ( + - col1 ) ) AS col2 FROM tab0 AS cor0
----
-7622

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 < + 32
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 35 + + + col0 AS col2 FROM tab0 AS cor0
----
122
132
50

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL > - 52 * + + col0
----

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

skipif mysql # not compatible
query I rowsort label-75
SELECT - - 30 * + - COUNT ( * ) - + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

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

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

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

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

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

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

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

query I rowsort
SELECT - ( ( + 82 ) ) + + col0 FROM tab2 AS cor0
----
-18
-36
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-82
SELECT DISTINCT + SUM( 78 ) + CAST( NULL AS SIGNED ) - + 49 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-82
SELECT DISTINCT + SUM ( 78 ) + CAST ( NULL AS INTEGER ) - + 49 AS col0 FROM tab1 AS cor0
----
NULL

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-86
SELECT ALL CAST( + col1 AS SIGNED ) - + col1 + + 50 + + col1 DIV col2 AS col2 FROM tab2
----
51
51
52

skipif mysql # not compatible
query I rowsort label-86
SELECT ALL CAST ( + col1 AS INTEGER ) - + col1 + + 50 + + col1 / col2 AS col2 FROM tab2
----
51
51
52

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-88
SELECT * FROM tab2 WHERE + + col2 - ( - + 81 ) IN ( col1 + - + CAST( + 10 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-88
SELECT * FROM tab2 WHERE + + col2 - ( - + 81 ) IN ( col1 + - + CAST ( + 10 AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT col1 - - col2 + - - col1 * - - 61 FROM tab0
----
1312
161
5069

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

onlyif mysql # aggregate syntax: 
query I rowsort label-91
SELECT DISTINCT - SUM( - 23 ) FROM tab2
----
69

skipif mysql # not compatible
query I rowsort label-91
SELECT DISTINCT - SUM ( - 23 ) FROM tab2
----
69

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 69 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-93
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 28 <= + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-93
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 28 <= + CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-94
SELECT ALL + + ( - CAST( - 72 AS SIGNED ) ) * 62 FROM tab0 AS cor0
----
4464
4464
4464

skipif mysql # not compatible
query I rowsort label-94
SELECT ALL + + ( - CAST ( - 72 AS INTEGER ) ) * 62 FROM tab0 AS cor0
----
4464
4464
4464

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

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

query I rowsort
SELECT + - 46 - - col1 FROM tab2 AS cor0 WHERE NOT + 42 * - 35 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-97
SELECT DISTINCT - COUNT( * ) col0 FROM tab1 AS cor0 WHERE NOT - CAST( - + col0 AS SIGNED ) + col1 IS NOT NULL
----
0

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

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

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

query I rowsort
SELECT + col0 * - 31 * - 19 FROM tab2
----
27094
37696
44175

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-100
SELECT DISTINCT CAST ( - - 62 AS INTEGER ) * + col0 * - CAST ( NULL AS INTEGER ) col2 FROM tab0
----
NULL

query I rowsort
SELECT + col1 * + 40 FROM tab2
----
2040
2680
3080

onlyif mysql # aggregate syntax: 
query I rowsort label-102
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-102
SELECT ALL COUNT ( * ) * - COUNT ( * ) col2 FROM tab2
----
-9

query I rowsort
SELECT DISTINCT - ( - col2 ) FROM tab1 WHERE + ( + col2 ) IS NOT NULL
----
59
68
96

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-104
SELECT + 3 * - COUNT ( * ) col1 FROM tab2
----
-9

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

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

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

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

skipif mysql # not compatible
query II rowsort label-108
SELECT DISTINCT + COUNT ( * ) AS col1, - 18 AS col0 FROM tab0 AS cor0
----
3
-18

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 = + 67
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 * - - col2 + - col1 - + col1 * - 80 col2 FROM tab0 AS cor0
----
2529
7104
9682

query I rowsort
SELECT - col2 * - 31 + + col2 + + - col2 * + 24 AS col2 FROM tab1
----
472
544
768

onlyif mysql # aggregate syntax: 
query I rowsort label-112
SELECT DISTINCT SUM( + 25 ) AS col0 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-112
SELECT DISTINCT SUM ( + 25 ) AS col0 FROM tab2
----
75

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

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

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

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

query I rowsort
SELECT DISTINCT - ( + - 1 ) FROM tab2 AS cor0
----
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-117
SELECT + 65 - + COUNT( * ) FROM tab2 WHERE col1 IS NULL
----
65

skipif mysql # not compatible
query I rowsort label-117
SELECT + 65 - + COUNT ( * ) FROM tab2 WHERE col1 IS NULL
----
65

query I rowsort
SELECT + 79 * - col0 + + col0 AS col1 FROM tab2
----
-3588
-4992
-5850

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

onlyif mysql # aggregate syntax: 
query I rowsort label-120
SELECT ALL - COUNT( * ) + + 6 + - + 53 AS col1 FROM tab2
----
-50

skipif mysql # not compatible
query I rowsort label-120
SELECT ALL - COUNT ( * ) + + 6 + - + 53 AS col1 FROM tab2
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-121
SELECT COUNT( * ) + - 16 FROM tab1
----
-13

skipif mysql # not compatible
query I rowsort label-121
SELECT COUNT ( * ) + - 16 FROM tab1
----
-13

query I rowsort
SELECT DISTINCT ( + - 43 ) * + col2 - - col0 AS col1 FROM tab2
----
-1656
-2419
-943

onlyif mysql # DIV for integer division: 
query I rowsort label-123
SELECT ALL - 29 DIV - col0 - col1 FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-123
SELECT ALL - 29 / - col0 - col1 FROM tab1
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-124
SELECT - SUM( ALL - 19 ) + - + 54 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-124
SELECT - SUM ( ALL - 19 ) + - + 54 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-125
SELECT ALL - MIN( ALL - - 47 ) AS col1 FROM tab0
----
-47

skipif mysql # not compatible
query I rowsort label-125
SELECT ALL - MIN ( ALL - - 47 ) AS col1 FROM tab0
----
-47

query I rowsort
SELECT 49 * - col2 + + + 5 AS col2 FROM tab2
----
-1122
-1955
-2837

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

query I rowsort
SELECT ALL - + 70 AS col1 FROM tab1 cor0
----
-70
-70
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-129
SELECT - - SUM( DISTINCT - - col2 ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
121

skipif mysql # not compatible
query I rowsort label-129
SELECT - - SUM ( DISTINCT - - col2 ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-130
SELECT - 72 + - CAST( - col1 AS SIGNED ) / 33 AS col2 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND 10
----

skipif mysql # not compatible
query I rowsort label-130
SELECT - 72 + - CAST ( - col1 AS INTEGER ) / 33 AS col2 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND 10
----

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

query II rowsort
SELECT - 93 AS col2, - col2 AS col1 FROM tab0 AS cor0
----
-93
-10
-93
-47
-93
-99

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

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

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

skipif mysql # not compatible
query I rowsort label-134
SELECT DISTINCT - + COUNT ( * ) FROM tab0 WHERE NOT - col1 IS NOT NULL
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-136
SELECT - COUNT( + + 15 ) * + ( - 84 ) AS col1 FROM tab1
----
252

skipif mysql # not compatible
query I rowsort label-136
SELECT - COUNT ( + + 15 ) * + ( - 84 ) AS col1 FROM tab1
----
252

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

skipif mysql # not compatible
query I rowsort label-137
SELECT ( ( + MIN ( + col1 ) ) ) FROM tab0
----
1

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

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

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

query I rowsort
SELECT ALL 7 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

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

skipif mysql # not compatible
query I rowsort label-141
SELECT ALL - + MIN ( DISTINCT + + 12 ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-12

query I rowsort
SELECT + 19 + + 89 * - 37 AS col1 FROM tab0
----
-3274
-3274
-3274

onlyif mysql # DIV for integer division: 
query I rowsort label-143
SELECT - col2 + + + col2 DIV - + col0 FROM tab0
----
-10
-100
-50

skipif mysql # not compatible
query I rowsort label-143
SELECT - col2 + + + col2 / - + col0 FROM tab0
----
-10
-100
-50

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

skipif mysql # not compatible
query I rowsort label-144
SELECT ALL + AVG ( + - 53 ) * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL

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

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

query II rowsort
SELECT col1, - col2 FROM tab0 cor0
----
1
-99
21
-10
81
-47

query I rowsort
SELECT ALL + + col2 + - 2 AS col2 FROM tab0 AS cor0
----
45
8
97

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

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( - - 37 NOT IN ( + col0, + 28 * - - 25 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-151
SELECT - SUM( + 32 ) AS col2 FROM tab0 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-151
SELECT - SUM ( + 32 ) AS col2 FROM tab0 AS cor0
----
-96

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-152
SELECT + + 43, + col2 + + - CAST( NULL AS DECIMAL ) AS col0 FROM tab0 WHERE + + 31 IS NULL
----

skipif mysql # not compatible
query II rowsort label-152
SELECT + + 43, + col2 + + - CAST ( NULL AS REAL ) AS col0 FROM tab0 WHERE + + 31 IS NULL
----

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

query I rowsort
SELECT DISTINCT - col2 + + 49 AS col2 FROM tab1
----
-10
-19
-47

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-155
SELECT ALL + col1 + + 91, + CAST( NULL AS DECIMAL ) * - col2 col0 FROM tab0
----
112
NULL
172
NULL
92
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-155
SELECT ALL + col1 + + 91, + CAST ( NULL AS REAL ) * - col2 col0 FROM tab0
----
112
NULL
172
NULL
92
NULL

query I rowsort
SELECT ALL ( + 16 ) FROM tab2
----
16
16
16

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + + 88 + col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE ( - col1 + - ( + col1 ) BETWEEN NULL AND + col2 ) OR + 82 * - + col1 <> + ( + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-159
SELECT ALL CAST( - col1 AS SIGNED ) * - - col2 + - + col0 - 69 FROM tab1
----
-1464
-3356
-449

skipif mysql # not compatible
query I rowsort label-159
SELECT ALL CAST ( - col1 AS INTEGER ) * - - col2 + - + col0 - 69 FROM tab1
----
-1464
-3356
-449

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

query II rowsort
SELECT ( + + 29 ) AS col2, - col2 AS col2 FROM tab0
----
29
-10
29
-47
29
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-162
SELECT DISTINCT - 71 DIV - col0 AS col2 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-162
SELECT DISTINCT - 71 / - col0 AS col2 FROM tab2 AS cor0
----
0
1

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

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

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

query I rowsort
SELECT + + col1 AS col1 FROM tab1 AS cor0 WHERE NOT - 11 * - + 83 IS NULL
----
14
47
5

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

query I rowsort
SELECT ALL - 62 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f0e93f6ff5fc3cf50a14e276206dad5c

onlyif mysql # aggregate syntax: 
query I rowsort label-168
SELECT 74 * - + COUNT( * ) + 98 - + - MAX( + + 76 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-492

skipif mysql # not compatible
query I rowsort label-168
SELECT 74 * - + COUNT ( * ) + 98 - + - MAX ( + + 76 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-492

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

skipif mysql # not compatible
query I rowsort label-169
SELECT ALL + - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-170
SELECT DISTINCT - SUM ( DISTINCT col2 ) col0 FROM tab0 AS cor0
----
-156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-171
SELECT + col1 + + 78 * 63 FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN CAST( + col1 AS SIGNED ) + + col1 * - col0 AND - + col1
----

skipif mysql # not compatible
query I rowsort label-171
SELECT + col1 + + 78 * 63 FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN CAST ( + col1 AS INTEGER ) + + col1 * - col0 AND - + col1
----

query II rowsort
SELECT ALL col1 * - col2 * - col1 * + col1, + col2 FROM tab1 AS cor0 WHERE ( 17 ) IS NOT NULL
----
263424
96
7059964
68
7375
59

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

query I rowsort
SELECT - AVG ( DISTINCT - - col0 ) FROM tab2 AS cor0 WHERE NOT 69 + - col2 * - 32 IS NOT NULL
----
NULL

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 25 * col0 NOT IN ( 20 * + col1, + col1, + 73, 60, + col0, + + 88, + 74 )
----

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

query II rowsort
SELECT ALL - 69, 28 AS col2 FROM tab0
----
-69
28
-69
28
-69
28

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-179
SELECT col0, + col0 * + col1 / + - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-179
SELECT col0, + col0 * + col1 / + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
15
NULL
87
NULL
97
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-180
SELECT ALL + COUNT( + col1 ) AS col1, 16 AS col0 FROM tab2
----
3
16

skipif mysql # not compatible
query II rowsort label-180
SELECT ALL + COUNT ( + col1 ) AS col1, 16 AS col0 FROM tab2
----
3
16

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-182
SELECT - COUNT( * ) + - - 98 - + - 26 col1 FROM tab0 AS cor0
----
121

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

query I rowsort
SELECT ALL - col0 + + - 66 AS col1 FROM tab0 cor0
----
-153
-163
-81

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

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

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

query I rowsort
SELECT ( - - 34 ) AS col1 FROM tab1
----
34
34
34

query I rowsort
SELECT ALL col2 * - 44 AS col1 FROM tab1
----
-2596
-2992
-4224

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-188
SELECT DISTINCT + CAST( NULL AS DECIMAL ) + + 1 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-188
SELECT DISTINCT + CAST ( NULL AS REAL ) + + 1 FROM tab1 cor0
----
NULL

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-191
SELECT + 81 DIV - ( + 18 ) + - - col2 AS col2 FROM tab0
----
43
6
95

skipif mysql # not compatible
query I rowsort label-191
SELECT + 81 / - ( + 18 ) + - - col2 AS col2 FROM tab0
----
43
6
95

query I rowsort
SELECT - col1 * - - 13 AS col2 FROM tab1
----
-182
-611
-65

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 NOT BETWEEN - - 55 AND + - 59
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-194
SELECT ALL - 61 * 2 DIV + + COUNT( DISTINCT + col1 ) FROM tab1
----
-40

skipif mysql # not compatible
query I rowsort label-194
SELECT ALL - 61 * 2 / + + COUNT ( DISTINCT + col1 ) FROM tab1
----
-40

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

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

query I rowsort
SELECT ALL - col0 * 75 * + + col1 FROM tab0
----
-137025
-7275
-91125

query I rowsort
SELECT 3 FROM tab2 WHERE NOT NULL <= NULL
----

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

query II rowsort
SELECT 9 AS col2, - 9 + - col2 AS col0 FROM tab0 AS cor0
----
9
-108
9
-19
9
-56

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

skipif mysql # not compatible
query I rowsort label-201
SELECT - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE NOT - 24 IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT - 45 * - col0 AS col2 FROM tab0 AS cor0
----
3915
4365
675

query I rowsort
SELECT - col2 * 37 FROM tab0 AS cor0
----
-1739
-3663
-370

query I rowsort
SELECT ALL + col2 - col0 FROM tab1 AS cor0 WHERE NOT ( - 73 ) <= col2 * - col1
----
-23
-26
45

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 > 53
----
15
81
47

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL >= ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-207
SELECT ALL - COUNT( * ) AS col2 FROM tab1 WHERE NOT 46 * col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-207
SELECT ALL - COUNT ( * ) AS col2 FROM tab1 WHERE NOT 46 * col2 IS NOT NULL
----
0

query I rowsort
SELECT col2 * + ( - 56 ) - - col1 FROM tab1
----
-3299
-3761
-5362

query I rowsort
SELECT col2 + + col2 AS col2 FROM tab2 WHERE - ( + col0 ) NOT BETWEEN 57 AND ( col2 * col2 - col0 )
----
116
46
80

query I rowsort
SELECT col2 FROM tab1 WHERE NOT - col2 >= ( NULL )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-213
SELECT SUM( DISTINCT - 88 ) AS col1 FROM tab0
----
-88

skipif mysql # not compatible
query I rowsort label-213
SELECT SUM ( DISTINCT - 88 ) AS col1 FROM tab0
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-214
SELECT COUNT( col2 ) col0 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-214
SELECT COUNT ( col2 ) col0 FROM tab1
----
3

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

query I rowsort
SELECT 86 * col0 FROM tab1
----
4386
7310
7826

query III rowsort
SELECT ALL * FROM tab1 WHERE - col2 + - 98 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE ( - col2 + + 30 ) IS NULL
----

query I rowsort
SELECT ALL 78 + + 94 FROM tab0
----
172
172
172

onlyif mysql # aggregate syntax: 
query I rowsort label-220
SELECT - SUM( col2 ) col1 FROM tab1 WHERE NOT ( col2 / col1 + col1 ) NOT BETWEEN NULL AND NULL
----
NULL

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

query I rowsort
SELECT DISTINCT - 2 * col0 FROM tab0 WHERE + col2 - - col0 IS NOT NULL
----
-174
-194
-30

query I rowsort
SELECT ALL ( - col1 ) + + ( 61 ) AS col0 FROM tab2
----
-16
-6
10

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

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

query I rowsort
SELECT DISTINCT 68 * + col2 AS col0 FROM tab2
----
1564
2720
3944

query I rowsort
SELECT - col0 FROM tab1 WHERE ( col0 ) BETWEEN NULL AND col0 * col1 + + ( + col2 + + col1 )
----

query I rowsort
SELECT - col1 + col0 * - 82 FROM tab1
----
-4196
-6975
-7509

onlyif mysql # aggregate syntax: 
query I rowsort label-227
SELECT DISTINCT + COUNT( * ) FROM tab1 WHERE + col1 - ( ( col0 ) ) NOT IN ( + col0 - col0 )
----
3

skipif mysql # not compatible
query I rowsort label-227
SELECT DISTINCT + COUNT ( * ) FROM tab1 WHERE + col1 - ( ( col0 ) ) NOT IN ( + col0 - col0 )
----
3

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

query I rowsort
SELECT - col1 / + 58 + col1 FROM tab2 WHERE - col2 / col1 - + ( col2 ) IS NULL
----

query I rowsort
SELECT col0 * 64 + ( col2 ) AS col0 FROM tab1
----
3360
5499
5892

query I rowsort
SELECT + 85 AS col0 FROM tab0 WHERE NOT ( 69 ) * 90 IS NOT NULL
----

query I rowsort
SELECT col0 * col1 + 24 FROM tab2
----
2370
4952
5049

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-234
SELECT col2 * - ( - CAST( NULL AS DECIMAL ) ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-234
SELECT col2 * - ( - CAST ( NULL AS REAL ) ) FROM tab0 cor0
----
NULL
NULL
NULL

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

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

query I rowsort
SELECT DISTINCT 66 FROM tab1 cor0 WHERE NULL NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT DISTINCT + 47 + 45 * ( col0 ) AS col2 FROM tab1 AS cor0
----
2342
3872
4142

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN - 0 AND 7 / col2
----

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

skipif mysql # not compatible
query I rowsort label-239
SELECT ALL col2 - CAST ( 89 - - CAST ( NULL AS INTEGER ) * CAST ( CAST ( + 24 AS INTEGER ) AS INTEGER ) AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-240
SELECT - 44 + + COUNT( * ) AS col0 FROM tab1
----
-41

skipif mysql # not compatible
query I rowsort label-240
SELECT - 44 + + COUNT ( * ) AS col0 FROM tab1
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-241
SELECT + CAST( NULL AS SIGNED ) + + 31 / - 56 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-241
SELECT + CAST ( NULL AS INTEGER ) + + 31 / - 56 FROM tab1
----
NULL
NULL
NULL

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-244
SELECT CAST( col0 AS SIGNED ) * - 19 AS col2 FROM tab1 AS cor0
----
-1615
-1729
-969

skipif mysql # not compatible
query I rowsort label-244
SELECT CAST ( col0 AS INTEGER ) * - 19 AS col2 FROM tab1 AS cor0
----
-1615
-1729
-969

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-245
SELECT - - SUM( - 2 ) DIV - COUNT( * ) AS col1 FROM tab2 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-245
SELECT - - SUM ( - 2 ) / - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
2

query I rowsort
SELECT DISTINCT 86 - col1 AS col2 FROM tab1 AS cor0
----
39
72
81

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab0 AS cor0 WHERE NOT ( + col0 ) IS NULL
----
10
47
99

query I rowsort
SELECT 10 * 10 FROM tab2 AS cor0
----
100
100
100

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

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

query I rowsort
SELECT ALL + - col1 * col1 + - col1 AS col1 FROM tab2 AS cor0
----
-2652
-4556
-6006

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-256
SELECT - COUNT( * ) * - 36 AS col2 FROM tab0 cor0 WHERE NOT ( 31 ) = ( + 68 )
----
108

skipif mysql # not compatible
query I rowsort label-256
SELECT - COUNT ( * ) * - 36 AS col2 FROM tab0 cor0 WHERE NOT ( 31 ) = ( + 68 )
----
108

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 18 - - 39 * 81 NOT BETWEEN - 2 * - col2 AND - col1 * + 30 + - 66
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL < + 22 * col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-259
SELECT ALL col1 FROM tab0 WHERE ( + col2 / CAST( + ( + 12 ) AS SIGNED ) ) IS NOT NULL
----
1
21
81

skipif mysql # not compatible
query I rowsort label-259
SELECT ALL col1 FROM tab0 WHERE ( + col2 / CAST ( + ( + 12 ) AS INTEGER ) ) IS NOT NULL
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-260
SELECT ALL + CAST( - col1 AS SIGNED ) * - 59 FROM tab2
----
3009
3953
4543

skipif mysql # not compatible
query I rowsort label-260
SELECT ALL + CAST ( - col1 AS INTEGER ) * - 59 FROM tab2
----
3009
3953
4543

onlyif mysql # aggregate syntax: 
query I rowsort label-261
SELECT DISTINCT 90 * - COUNT( * ) FROM tab1
----
-270

skipif mysql # not compatible
query I rowsort label-261
SELECT DISTINCT 90 * - COUNT ( * ) FROM tab1
----
-270

query I rowsort
SELECT DISTINCT - col1 * 74 AS col0 FROM tab2
----
-3774
-4958
-5698

query I rowsort
SELECT ALL ( + col1 ) * 42 FROM tab1
----
1974
210
588

onlyif mysql # aggregate syntax: 
query I rowsort label-264
SELECT - COUNT( * ) FROM tab2 WHERE NOT ( col0 ) IN ( 98 )
----
-3

skipif mysql # not compatible
query I rowsort label-264
SELECT - COUNT ( * ) FROM tab2 WHERE NOT ( col0 ) IN ( 98 )
----
-3

query I rowsort
SELECT DISTINCT - col2 * + - 71 FROM tab1
----
4189
4828
6816

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col0 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-268
SELECT DISTINCT + + 21 DIV + - 69 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-268
SELECT DISTINCT + + 21 / + - 69 FROM tab2 AS cor0
----
0

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 34 BETWEEN NULL AND NULL
----

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-274
SELECT DISTINCT COUNT( ALL + 90 ) FROM tab0 AS cor0 WHERE ( col0 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-274
SELECT DISTINCT COUNT ( ALL + 90 ) FROM tab0 AS cor0 WHERE ( col0 ) IS NOT NULL
----
3

query I rowsort
SELECT DISTINCT - - 93 * + col2 AS col0 FROM tab2 AS cor0
----
2139
3720
5394

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-276
SELECT ALL * FROM tab1 WHERE NOT 36 NOT IN ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-276
SELECT ALL * FROM tab1 WHERE NOT 36 NOT IN ( - CAST ( NULL AS INTEGER ) )
----

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

query I rowsort
SELECT DISTINCT 63 * ( - col2 ) AS col1 FROM tab2
----
-1449
-2520
-3654

query I rowsort
SELECT 57 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-280
SELECT ALL - 66 + + COUNT( * ) * + CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-280
SELECT ALL - 66 + + COUNT ( * ) * + CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

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

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

query I rowsort
SELECT ALL + col0 + - - 75 AS col0 FROM tab2 AS cor0
----
121
139
150

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - 31 ) NOT BETWEEN ( - col2 ) * - col1 AND col0 * col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 96 <= + + 80
----

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 40 + + col2 * col1 col2 FROM tab0 AS cor0
----
170
3767
59

query I rowsort
SELECT ALL col0 AS col2 FROM tab2 WHERE NOT - col2 = ( + - 65 )
----
46
64
75

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

query I rowsort
SELECT + col0 + - col2 + - 83 + col2 * + col0 * - ( - 82 + - col2 ) FROM tab1
----
707058
871360
928140

query I rowsort
SELECT ALL - col1 + + 33 * col0 AS col2 FROM tab2
----
1467
2035
2408

query I rowsort
SELECT - col0 + - - 73 AS col1 FROM tab0
----
-14
-24
58

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

skipif mysql # not compatible
query I rowsort label-295
SELECT 66 + - COUNT ( * ) AS col0 FROM tab1
----
63

query II rowsort
SELECT - 96 + + 4, 29 + + ( - col1 ) - col0 AS col1 FROM tab1
----
-92
-109
-92
-36
-92
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-297
SELECT DISTINCT + COUNT( * ) + + + 71 FROM tab0 cor0
----
74

skipif mysql # not compatible
query I rowsort label-297
SELECT DISTINCT + COUNT ( * ) + + + 71 FROM tab0 cor0
----
74

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

onlyif mysql # DIV for integer division: 
query I rowsort label-299
SELECT DISTINCT + col1 DIV - 10 FROM tab0 WHERE NOT - col1 IN ( + col1 )
----
-2
-8
0

skipif mysql # not compatible
query I rowsort label-299
SELECT DISTINCT + col1 / - 10 FROM tab0 WHERE NOT - col1 IN ( + col1 )
----
-2
-8
0

onlyif mysql # DIV for integer division: 
query I rowsort label-300
SELECT DISTINCT col0 * col2 - 35 DIV col0 col2 FROM tab1
----
4896
5015
6188

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-300
SELECT DISTINCT col0 * col2 - 35 / col0 col2 FROM tab1
----
4896
5015
6188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col1 FROM tab0 WHERE NULL <> ( NULL )
----

query I rowsort
SELECT - 40 AS col2 FROM tab2 AS cor0 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT col2 * + - col0 FROM tab2 cor0
----
-1058
-2560
-4350

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

query I rowsort
SELECT DISTINCT - 90 * + 99 * col2 FROM tab0 AS cor0
----
-418770
-882090
-89100

query I rowsort
SELECT ALL + col1 * - col1 * - col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
103823
125
2744

onlyif mysql # aggregate syntax: 
query I rowsort label-307
SELECT - MIN( + 68 ) FROM tab1 AS cor0
----
-68

skipif mysql # not compatible
query I rowsort label-307
SELECT - MIN ( + 68 ) FROM tab1 AS cor0
----
-68

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

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

query I rowsort
SELECT - 40 * + 34 AS col2 FROM tab0 AS cor0
----
-1360
-1360
-1360

query I rowsort
SELECT + col1 FROM tab0 AS cor0 WHERE NOT ( - col2 ) >= ( 83 )
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-311
SELECT + col1 * - CAST( 45 AS SIGNED ) AS col1, 55 * - ( col2 ) FROM tab2 AS cor0
----
-2295
-1265
-3015
-3190
-3465
-2200

skipif mysql # not compatible
query II rowsort label-311
SELECT + col1 * - CAST ( 45 AS INTEGER ) AS col1, 55 * - ( col2 ) FROM tab2 AS cor0
----
-2295
-1265
-3015
-3190
-3465
-2200

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

query II rowsort
SELECT 91 AS col1, col0 * + col0 * col0 * + 1 FROM tab1
----
91
132651
91
614125
91
753571

query III rowsort
SELECT ALL * FROM tab0 WHERE ( + col0 * - col2 ) IS NULL
----

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-316
SELECT DISTINCT - CAST( + - SUM( + - col0 ) AS SIGNED ) AS col1 FROM tab1
----
-227

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

onlyif mysql # aggregate syntax: 
query I rowsort label-317
SELECT + COUNT( * ) AS col2 FROM tab1 WHERE NOT 73 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-317
SELECT + COUNT ( * ) AS col2 FROM tab1 WHERE NOT 73 IS NOT NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-318
SELECT - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) > - col0
----
0

skipif mysql # not compatible
query I rowsort label-318
SELECT - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) > - col0
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-320
SELECT + + SUM( - 45 ) col2 FROM tab0 AS cor0
----
-135

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-320
SELECT + + SUM ( - 45 ) col2 FROM tab0 AS cor0
----
-135

onlyif mysql # aggregate syntax: 
query I rowsort label-321
SELECT + 76 * + 50 + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
3797

skipif mysql # not compatible
query I rowsort label-321
SELECT + 76 * + 50 + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
3797

query I rowsort
SELECT col1 * + + col0 * - col2 FROM tab2 AS cor0
----
-197120
-291450
-53958

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

query I rowsort
SELECT 26 * - col2 AS col0 FROM tab0
----
-1222
-2574
-260

onlyif mysql # DIV for integer division: 
query I rowsort label-325
SELECT ALL + col0 DIV 3 AS col1 FROM tab2
----
15
21
25

skipif mysql # not compatible
query I rowsort label-325
SELECT ALL + col0 / 3 AS col1 FROM tab2
----
15
21
25

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

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

query I rowsort
SELECT ALL - 3 + - + 48 AS col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 08d3853e39924d3c636260a6dd856837

query I rowsort
SELECT col1 + col0 * - + col2 * - ( col2 ) FROM tab2
----
102477
24385
252367

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - ( - + 83 ) col1, + col2 FROM tab2 AS cor0
----
83
23
83
40
83
58

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 73 + + col1 IS NOT NULL
----

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

query I rowsort
SELECT DISTINCT col2 + - + 23 FROM tab0 AS cor0
----
-13
24
76

query I rowsort
SELECT ALL - 16 + - col0 + - + col2 + + col2 FROM tab0 AS cor0
----
-103
-113
-31

query II rowsort
SELECT - col1 + + col0, + col1 - col0 AS col1 FROM tab2 AS cor0
----
-13
13
-5
5
8
-8

query I rowsort
SELECT - col2 + + ( - + ( + 87 ) ) AS col0 FROM tab2 cor0
----
-110
-127
-145

query I rowsort
SELECT - 61 - + col0 * + col0 AS col0 FROM tab0 AS cor0 WHERE NULL >= NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-338
SELECT DISTINCT + 51 * + COUNT( * ) + COUNT( col1 ) - - - ( - 84 ) FROM tab0
----
240

skipif mysql # not compatible
query I rowsort label-338
SELECT DISTINCT + 51 * + COUNT ( * ) + COUNT ( col1 ) - - - ( - 84 ) FROM tab0
----
240

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

query I rowsort
SELECT 8 + 12 + col1 * - 55 FROM tab0 WHERE ( + 51 * - col0 ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col1 + + + col2 * + 32 / + ( - + 83 ) + - col0 * - col2 < - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL col0, col2 * - - 5 AS col2 FROM tab1
----
51
480
85
295
91
340

query I rowsort
SELECT DISTINCT ( + + col2 ) * - - 21 + - col0 - + ( - col0 ) * + col1 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
1579
2679
5614

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

skipif mysql # not compatible
query II rowsort label-344
SELECT - COUNT ( * ) - + ( - + 65 ) AS col0, - COUNT ( * ) FROM tab1 AS cor0
----
62
-3

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-347
SELECT + col0 * - - col2 AS col1, col1 DIV + col2 FROM tab0 AS cor0
----
705
1
870
2
9603
0

skipif mysql # not compatible
query II rowsort label-347
SELECT + col0 * - - col2 AS col1, col1 / + col2 FROM tab0 AS cor0
----
705
1
870
2
9603
0

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 NOT IN ( + + 33 + - col2, col2 - - + col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col2 * - + 62 + + - 69 NOT IN ( + - 68 + - col0 * - col0 )
----

query I rowsort
SELECT - 27 * - col0 + + col1 AS col1 FROM tab1 AS cor0
----
1391
2300
2504

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

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

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

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

query I rowsort
SELECT DISTINCT - 5 * col0 * + + col0 FROM tab2
----
-10580
-20480
-28125

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-357
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1, - col1 DIV + col1 AS col2 FROM tab1
----
NULL
-1

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

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

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-361
SELECT + COUNT ( * ) col1, - 64 AS col0 FROM tab2
----
3
-64

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

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

query I rowsort
SELECT ALL + 27 + - col2 + - 38 * col1 AS col2 FROM tab1 AS cor0
----
-1827
-222
-601

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

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

query II rowsort
SELECT - 44 AS col0, col2 * - + col0 FROM tab2
----
-44
-1058
-44
-2560
-44
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-367
SELECT + MIN( 95 ) AS col0 FROM tab0
----
95

skipif mysql # not compatible
query I rowsort label-367
SELECT + MIN ( 95 ) AS col0 FROM tab0
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-368
SELECT DISTINCT + 94 * + SUM( - - 67 ) col1 FROM tab0
----
18894

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-368
SELECT DISTINCT + 94 * + SUM ( - - 67 ) col1 FROM tab0
----
18894

query I rowsort
SELECT DISTINCT - 68 * 71 AS col0 FROM tab0 AS cor0
----
-4828

query I rowsort
SELECT DISTINCT - 98 * 82 AS col0 FROM tab2 AS cor0
----
-8036

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

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

query I rowsort
SELECT + 48 * col2 + - col1 * 47 - - col1 AS col2 FROM tab0
----
-1470
-486
4706

query I rowsort
SELECT col0 + + + 31 * col0 * + col2 FROM tab2
----
134925
32844
79424

query I rowsort
SELECT ALL - 71 + + col1 FROM tab1
----
-24
-57
-66

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

query I rowsort
SELECT DISTINCT - col2 + - ( + + col1 ) FROM tab1
----
-110
-115
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-378
SELECT ALL + MAX( DISTINCT + + 25 ) AS col2 FROM tab2 WHERE - col1 IS NOT NULL
----
25

skipif mysql # not compatible
query I rowsort label-378
SELECT ALL + MAX ( DISTINCT + + 25 ) AS col2 FROM tab2 WHERE - col1 IS NOT NULL
----
25

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

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

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

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

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

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

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

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

query I rowsort
SELECT ALL + ( + + 67 ) FROM tab2
----
67
67
67

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

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

query I rowsort
SELECT - + col0 * + col2 * - - col2 AS col1 FROM tab1 AS cor0
----
-295885
-420784
-470016

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 * + 51 + col0 * 24 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-389
SELECT 32 DIV col2 AS col2 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-389
SELECT 32 / col2 AS col2 FROM tab2
----
0
0
1

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col1 BETWEEN ( NULL ) AND + col0
----
46
51
23
64
77
40

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

onlyif mysql # aggregate syntax: 
query I rowsort label-392
SELECT DISTINCT - MIN( - 55 ) FROM tab1
----
55

skipif mysql # not compatible
query I rowsort label-392
SELECT DISTINCT - MIN ( - 55 ) FROM tab1
----
55

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

onlyif mysql # aggregate syntax: 
query I rowsort label-394
SELECT - SUM( DISTINCT - 24 ) FROM tab0 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-394
SELECT - SUM ( DISTINCT - 24 ) FROM tab0 AS cor0
----
24

query I rowsort
SELECT + ( + col2 ) * + col0 AS col0 FROM tab2 cor0
----
1058
2560
4350

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-397
SELECT DISTINCT + CAST( + COUNT( * ) AS SIGNED ) + - MAX( ALL col1 ) DIV + 30 AS col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-397
SELECT DISTINCT + CAST ( + COUNT ( * ) AS INTEGER ) + - MAX ( ALL col1 ) / + 30 AS col0 FROM tab0 AS cor0
----
1

query I rowsort
SELECT + - 52 - + 84 AS col1 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 08f97f97b745950752b9b99b9639317a

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL IN ( + col0, col1 * + col0, col2 + - - 5 * - + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-400
SELECT ALL MAX( 78 ) FROM tab1 cor0
----
78

skipif mysql # not compatible
query I rowsort label-400
SELECT ALL MAX ( 78 ) FROM tab1 cor0
----
78

query I rowsort
SELECT + 88 + - - col0 AS col1 FROM tab1 AS cor0
----
139
173
179

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-404
SELECT CAST( + 92 AS SIGNED ) * + col0 + col1 + - col1 + - 36 FROM tab1 AS cor0
----
4656
7784
8336

skipif mysql # not compatible
query I rowsort label-404
SELECT CAST ( + 92 AS INTEGER ) * + col0 + col1 + - col1 + - 36 FROM tab1 AS cor0
----
4656
7784
8336

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

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

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

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

query I rowsort
SELECT col2 * + col0 * + - col2 AS col0 FROM tab1 AS cor0
----
-295885
-420784
-470016

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

query I rowsort
SELECT DISTINCT col0 - - + col0 * - col1 FROM tab2
----
-2300
-4864
-4950

query I rowsort
SELECT ALL - 8 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT 86 + + col2 + col1 * - col2 FROM tab2
----
-1064
-2954
-3742

query I rowsort
SELECT ALL - col1 - ( + + ( + 67 ) ) + - - col2 + + col2 * - col2 FROM tab1
----
-3494
-4670
-9201

query I rowsort
SELECT DISTINCT - col0 - + 15 * - 28 * + col2 AS col1 FROM tab1
----
24695
28469
40269

query III rowsort
SELECT * FROM tab1 WHERE + col2 + + + 23 * col0 = ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col0 * + 39 < NULL AND - 68 IS NULL
----

query I rowsort
SELECT DISTINCT - 43 - - col2 FROM tab0
----
-33
4
56

query I rowsort
SELECT 10 - col1 * - - 27 * 44 AS col1 FROM tab0
----
-1178
-24938
-96218

query I rowsort
SELECT + col1 - + + col2 AS col0 FROM tab1 AS cor0
----
-21
-54
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-419
SELECT + + MAX( + CAST( + + 90 AS SIGNED ) ) FROM tab1 cor0
----
90

skipif mysql # not compatible
query I rowsort label-419
SELECT + + MAX ( + CAST ( + + 90 AS INTEGER ) ) FROM tab1 cor0
----
90

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-422
SELECT - + SUM ( - ( - 59 ) ) FROM tab0 WHERE NOT - + col0 IS NOT NULL
----
NULL

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

query I rowsort
SELECT DISTINCT - col0 * - 14 AS col2 FROM tab0 AS cor0
----
1218
1358
210

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + col2 ) col0 FROM tab2 cor0
----
23
40
58

onlyif mysql # DIV for integer division: 
query I rowsort label-426
SELECT ALL + col2 DIV + - 84 * + 48 + col2 col1 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-426
SELECT ALL + col2 / + - 84 * + 48 + col2 col1 FROM tab2 AS cor0
----
23
40
58

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-430
SELECT DISTINCT - MAX( - 44 ) AS col0 FROM tab0 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-430
SELECT DISTINCT - MAX ( - 44 ) AS col0 FROM tab0 AS cor0
----
44

query I rowsort
SELECT DISTINCT + 55 + + 13 * + 22 FROM tab0 AS cor0
----
341

query I rowsort
SELECT DISTINCT 44 * - col2 AS col0 FROM tab1
----
-2596
-2992
-4224

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

query I rowsort
SELECT - col0 * + col0 * + col2 AS col0 FROM tab2
----
-163840
-326250
-48668

query I rowsort
SELECT + col1 + - 48 * + col0 AS col1 FROM tab0 WHERE NOT 67 IS NULL
----
-4155
-4655
-639

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

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

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab1 WHERE NULL IS NULL
----
59
68
96

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

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

query I rowsort
SELECT DISTINCT + 23 + + col0 AS col0 FROM tab0 AS cor0
----
110
120
38

query I rowsort
SELECT ALL + col0 * - 96 + - + 29 + - col0 FROM tab2 AS cor0
----
-4491
-6237
-7304

query I rowsort
SELECT col0 * col2 + + - 38 FROM tab0 cor0
----
667
832
9565

query I rowsort
SELECT DISTINCT col1 * + 40 FROM tab1
----
1880
200
560

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

query II rowsort
SELECT DISTINCT + 4 - - + col0 * - col0 + + ( 54 ) AS col1, + 24 FROM tab0
----
-167
24
-7511
24
-9351
24

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

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

query II rowsort
SELECT + col1 AS col1, - col2 AS col2 FROM tab2 AS cor0 WHERE - col1 * - - col0 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-448
SELECT ALL * FROM tab0 AS cor0 WHERE col1 / - CAST( NULL AS SIGNED ) + - + 16 * + col0 / - ( - col1 ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-448
SELECT ALL * FROM tab0 AS cor0 WHERE col1 / - CAST ( NULL AS INTEGER ) + - + 16 * + col0 / - ( - col1 ) IS NOT NULL
----

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

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

query I rowsort
SELECT - col2 + - col0 * col0 + + col0 - - + col0 FROM tab1 AS cor0
----
-2595
-7114
-8167

query I rowsort
SELECT ALL - - col1 + 13 FROM tab2 cor0
----
64
80
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-453
SELECT 6 + 18 + + + COUNT( * ) + - COUNT( * ) * - + 66 + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-453
SELECT 6 + 18 + + + COUNT ( * ) + - COUNT ( * ) * - + 66 + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL

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

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

query I rowsort
SELECT 92 + 70 AS col1 FROM tab0
----
162
162
162

onlyif mysql # aggregate syntax: 
query I rowsort label-456
SELECT ALL COUNT( * ) + ( + MIN( + col2 ) ) FROM tab0
----
13

skipif mysql # not compatible
query I rowsort label-456
SELECT ALL COUNT ( * ) + ( + MIN ( + col2 ) ) FROM tab0
----
13

query I rowsort
SELECT DISTINCT + 93 - + ( col0 ) AS col0 FROM tab2
----
18
29
47

query I rowsort
SELECT col2 + col1 + + - col0 FROM tab0
----
-56
113
3

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

query I rowsort
SELECT DISTINCT + 5 AS col1 FROM tab1 WHERE 6 BETWEEN + 33 - 55 AND + col1
----
5

query I rowsort
SELECT - 54 FROM tab1 WHERE NOT col2 * - - col1 + + col2 IS NULL
----
-54
-54
-54

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 68 * + col1 IS NOT NULL
----

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

query I rowsort
SELECT - + 29 AS col1 FROM tab2 cor0
----
-29
-29
-29

query I rowsort
SELECT DISTINCT + - 2 * col1 AS col2 FROM tab2 AS cor0
----
-102
-134
-154

query I rowsort
SELECT ALL - 47 * col2 FROM tab2 AS cor0
----
-1081
-1880
-2726

query II rowsort
SELECT col1 AS col1, + 81 + - col1 AS col1 FROM tab0
----
1
80
21
60
81
0

query II rowsort
SELECT DISTINCT + col2, col2 + + 85 + - 20 + col2 + + 40 FROM tab0 AS cor0
----
10
125
47
199
99
303

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

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

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

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

query I rowsort
SELECT ALL - - 96 * + col0 FROM tab2 AS cor0
----
4416
6144
7200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-472
SELECT - CAST( - col1 AS SIGNED ) + + + col0 AS col0 FROM tab0 AS cor0
----
108
96
98

skipif mysql # not compatible
query I rowsort label-472
SELECT - CAST ( - col1 AS INTEGER ) + + + col0 AS col0 FROM tab0 AS cor0
----
108
96
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-473
SELECT - 37 + + - COUNT( * ) + + MIN( DISTINCT + + col2 ) DIV + + 93 * ( ( 39 ) ) AS col2 FROM tab0 AS cor0
----
-40

skipif mysql # not compatible
query I rowsort label-473
SELECT - 37 + + - COUNT ( * ) + + MIN ( DISTINCT + + col2 ) / + + 93 * ( ( 39 ) ) AS col2 FROM tab0 AS cor0
----
-40

query I rowsort
SELECT + + 27 + + col2 FROM tab1 cor0
----
123
86
95

query I rowsort
SELECT col2 + - - 84 FROM tab2 AS cor0
----
107
124
142

query I rowsort
SELECT DISTINCT + col0 + + + col2 + - col0 AS col0 FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT DISTINCT - col1 * + - col2 * col0 AS col1 FROM tab0
----
18270
57105
9603

query II rowsort
SELECT ALL col0 * + col0 AS col0, - col0 FROM tab2
----
2116
-46
4096
-64
5625
-75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-479
SELECT ALL * FROM tab2 WHERE NOT NULL <> + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-479
SELECT ALL * FROM tab2 WHERE NOT NULL <> + CAST ( NULL AS INTEGER )
----

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-481
SELECT DISTINCT - COUNT( DISTINCT 73 ) DIV + ( + - 12 ) + - COUNT( DISTINCT 39 ) AS col0 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-481
SELECT DISTINCT - COUNT ( DISTINCT 73 ) / + ( + - 12 ) + - COUNT ( DISTINCT 39 ) AS col0 FROM tab2
----
-1

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

skipif mysql # not compatible
query I rowsort label-482
SELECT DISTINCT + MAX ( ALL + 60 ) FROM tab0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-483
SELECT - ( + MAX( 12 ) ) FROM tab2
----
-12

skipif mysql # not compatible
query I rowsort label-483
SELECT - ( + MAX ( 12 ) ) FROM tab2
----
-12

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + 13 * - + 25 * - 63 - + 53 + + col1 + 11 * + col2 col1, - 31 FROM tab1 AS cor0
----
21076
-31
21217
-31
21492
-31

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-487
SELECT ALL + 73 + + + CAST( - 9 AS SIGNED ) col0 FROM tab2 AS cor0
----
64
64
64

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-487
SELECT ALL + 73 + + + CAST ( - 9 AS INTEGER ) col0 FROM tab2 AS cor0
----
64
64
64

onlyif mysql # aggregate syntax: 
query II rowsort label-488
SELECT DISTINCT 72, COUNT( * ) AS col1 FROM tab0 WHERE NULL BETWEEN + - col2 AND + - ( col0 )
----
72
0

skipif mysql # not compatible
query II rowsort label-488
SELECT DISTINCT 72, COUNT ( * ) AS col1 FROM tab0 WHERE NULL BETWEEN + - col2 AND + - ( col0 )
----
72
0

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

query I rowsort
SELECT col1 * + 23 + col1 AS col1 FROM tab1
----
1128
120
336

query I rowsort
SELECT DISTINCT + 22 + + col0 * col2 FROM tab1 AS cor0
----
4918
5037
6210

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

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

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

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

query II rowsort
SELECT ALL + 31 * + col2 + - col1 + + col1, + 49 + + 25 FROM tab2 WHERE + col1 IS NULL
----

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

query I rowsort
SELECT DISTINCT 92 * col0 * 14 * + - col1 FROM tab1
----
-547400
-5508776
-919632

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

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

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

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

query II rowsort
SELECT ALL - ( col2 ) AS col1, 97 FROM tab2 cor0
----
-23
97
-40
97
-58
97

query I rowsort
SELECT ALL ( - 75 ) * - 36 FROM tab0 cor0
----
2700
2700
2700

onlyif mysql # DIV for integer division: 
query I rowsort label-501
SELECT + col0 DIV col2 * 40 * + 12 AS col2 FROM tab2
----
480
480
960

skipif mysql # not compatible
query I rowsort label-501
SELECT + col0 / col2 * 40 * + 12 AS col2 FROM tab2
----
480
480
960

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 col2 FROM tab2 WHERE NOT NULL IN ( 68, + 87 )
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-503
SELECT ALL + ( + CAST ( col1 AS INTEGER ) ) col1 FROM tab1
----
14
47
5

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL IN ( - col1 * - col1 - - - col0 * - col1, - 50 + col0, - ( - - col0 ), col2 / + col2 )
----

query I rowsort
SELECT DISTINCT ( 51 ) FROM tab0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-506
SELECT ALL - MIN( ALL + - 42 ) AS col0 FROM tab0
----
42

skipif mysql # not compatible
query I rowsort label-506
SELECT ALL - MIN ( ALL + - 42 ) AS col0 FROM tab0
----
42

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

onlyif mysql # aggregate syntax: 
query I rowsort label-508
SELECT - - COUNT( DISTINCT 91 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-508
SELECT - - COUNT ( DISTINCT 91 ) FROM tab1 AS cor0
----
1

query I rowsort
SELECT ALL - + col0 + 85 FROM tab1 AS cor0
----
-6
0
34

onlyif mysql # DIV for integer division: 
query I rowsort label-510
SELECT DISTINCT col0 + 79 DIV + col1 AS col0 FROM tab0 AS cor0
----
15
176
90

skipif mysql # not compatible
query I rowsort label-510
SELECT DISTINCT col0 + 79 / + col1 AS col0 FROM tab0 AS cor0
----
15
176
90

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 >= col1
----

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

query I rowsort
SELECT col2 * + + col1 * col1 FROM tab1
----
1475
150212
18816

onlyif mysql # aggregate syntax: 
query I rowsort label-515
SELECT DISTINCT + COUNT( * ) + - COUNT( * ) col2 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-515
SELECT DISTINCT + COUNT ( * ) + - COUNT ( * ) col2 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-516
SELECT COUNT( * ) FROM tab1 WHERE + col0 * col2 / + col2 + - col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-516
SELECT COUNT ( * ) FROM tab1 WHERE + col0 * col2 / + col2 + - col2 IS NOT NULL
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-517
SELECT DISTINCT 66 DIV + col0 FROM tab0
----
0
4

skipif mysql # not compatible
query I rowsort label-517
SELECT DISTINCT 66 / + col0 FROM tab0
----
0
4

onlyif mysql # aggregate syntax: 
query II rowsort label-518
SELECT DISTINCT 78 AS col1, COUNT( * ) FROM tab2
----
78
3

skipif mysql # not compatible
query II rowsort label-518
SELECT DISTINCT 78 AS col1, COUNT ( * ) FROM tab2
----
78
3

query I rowsort
SELECT - col1 FROM tab0 WHERE NOT - ( + col2 ) + - col2 IS NOT NULL OR NOT NULL <> + + 56
----

query I rowsort
SELECT col2 * + col1 + + col0 AS col2 FROM tab1
----
1395
3287
380

query II rowsort
SELECT ALL + col2 AS col2, + 64 * col1 AS col1 FROM tab0
----
10
1344
47
5184
99
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-522
SELECT CAST( - col1 AS SIGNED ) * 63 + + col1 AS col0 FROM tab1
----
-2914
-310
-868

skipif mysql # not compatible
query I rowsort label-522
SELECT CAST ( - col1 AS INTEGER ) * 63 + + col1 AS col0 FROM tab1
----
-2914
-310
-868

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 68 NOT BETWEEN NULL AND - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE 57 * + col0 >= ( + ( col2 ) )
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-525
SELECT ALL + COUNT( * ) * - 70 AS col2 FROM tab2 AS cor0
----
-210

skipif mysql # not compatible
query I rowsort label-525
SELECT ALL + COUNT ( * ) * - 70 AS col2 FROM tab2 AS cor0
----
-210

query I rowsort
SELECT col2 - col1 + + col2 * col2 * - - ( + col1 ) FROM tab2 cor0 WHERE ( - col0 ) NOT IN ( + col2 )
----
123163
225379
26951

query I rowsort
SELECT DISTINCT - - col2 / + col0 FROM tab0 AS cor0 WHERE NOT NULL = ( NULL )
----

query I rowsort
SELECT ( - + 39 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 504d14939d58aeb4a14f31c80de5b53e

onlyif mysql # DIV for integer division: 
query II rowsort label-529
SELECT DISTINCT - 53 DIV - col0 + - - col1 AS col0, - 36 FROM tab1
----
15
-36
47
-36
5
-36

skipif mysql # not compatible
query II rowsort label-529
SELECT DISTINCT - 53 / - col0 + - - col1 AS col0, - 36 FROM tab1
----
15
-36
47
-36
5
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-530
SELECT DISTINCT - COUNT( * ) - 26 + - 13 AS col0 FROM tab0
----
-42

skipif mysql # not compatible
query I rowsort label-530
SELECT DISTINCT - COUNT ( * ) - 26 + - 13 AS col0 FROM tab0
----
-42

query I rowsort
SELECT DISTINCT - col1 - + ( + - 80 ) FROM tab1 AS cor0
----
33
66
75

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

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 90 * col2 NOT BETWEEN NULL AND col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 1 * col1 AS col0 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT ALL 57 AS col1 FROM tab2 cor0
----
57
57
57

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

query I rowsort
SELECT - col0 * + 13 FROM tab0
----
-1131
-1261
-195

query II rowsort
SELECT + col0 AS col2, 93 AS col1 FROM tab1
----
51
93
85
93
91
93

onlyif mysql # aggregate syntax: 
query I rowsort label-540
SELECT + SUM( ALL + + 17 ) AS col0 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-540
SELECT + SUM ( ALL + + 17 ) AS col0 FROM tab1
----
51

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

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

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

query I rowsort
SELECT ALL - 93 * col1 AS col0 FROM tab0
----
-1953
-7533
-93

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-547
SELECT ( col0 ) DIV - col0 AS col0 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-547
SELECT ( col0 ) / - col0 AS col0 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT ALL 78 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

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

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

query I rowsort
SELECT col2 + + col1 * + 10 FROM tab2 cor0 WHERE col2 / col1 IS NULL
----

query I rowsort
SELECT + 72 + - - col1 + - ( - col0 ) FROM tab1 AS cor0
----
137
162
210

onlyif mysql # DIV for integer division: 
query II rowsort label-553
SELECT + + col0 DIV + col2 + - - ( 43 ) AS col0, col0 AS col0 FROM tab2 AS cor0
----
44
64
44
75
45
46

skipif mysql # not compatible
query II rowsort label-553
SELECT + + col0 / + col2 + - - ( 43 ) AS col0, col0 AS col0 FROM tab2 AS cor0
----
44
64
44
75
45
46

query I rowsort
SELECT ALL + - 10 + - 78 * col2 AS col2 FROM tab2 AS cor0
----
-1804
-3130
-4534

onlyif mysql # aggregate syntax: 
query I rowsort label-555
SELECT + 45 * - COUNT( * ) FROM tab2, tab1 AS cor0
----
-405

skipif mysql # not compatible
query I rowsort label-555
SELECT + 45 * - COUNT ( * ) FROM tab2, tab1 AS cor0
----
-405

onlyif mysql # aggregate syntax: 
query I rowsort label-556
SELECT ALL COUNT( * ) FROM tab0 WHERE NOT + ( + ( col0 ) ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-556
SELECT ALL COUNT ( * ) FROM tab0 WHERE NOT + ( + ( col0 ) ) IS NOT NULL
----
0

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

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

query I rowsort
SELECT DISTINCT 48 * + 46 FROM tab2
----
2208

query I rowsort
SELECT col2 * - col0 + - col1 AS col1 FROM tab2 AS cor0
----
-1109
-2637
-4417

query I rowsort
SELECT ALL col1 * + 31 FROM tab1 AS cor0
----
1457
155
434

onlyif mysql # DIV for integer division: 
query I rowsort label-561
SELECT + 48 - - col1 + + - col2 DIV + - 90 AS col2 FROM tab2 AS cor0
----
115
125
99

skipif mysql # not compatible
query I rowsort label-561
SELECT + 48 - - col1 + + - col2 / + - 90 AS col2 FROM tab2 AS cor0
----
115
125
99

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-563
SELECT DISTINCT - - ( - col0 ) DIV + col2 + - col0 * + col1 FROM tab1 AS cor0
----
-426
-4278
-714

skipif mysql # not compatible
query I rowsort label-563
SELECT DISTINCT - - ( - col0 ) / + col2 + - col0 * + col1 FROM tab1 AS cor0
----
-426
-4278
-714

onlyif mysql # DIV for integer division: 
query I rowsort label-564
SELECT + - col2 DIV + col1 - col2 col2 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-564
SELECT + - col2 / + col1 - col2 col2 FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT + 72 * col2 + 10 FROM tab0 cor0
----
3394
7138
730

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

query II rowsort
SELECT DISTINCT - 73, - col2 AS col1 FROM tab0 AS cor0
----
-73
-10
-73
-47
-73
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-568
SELECT DISTINCT + - col2 DIV - col1 AS col2 FROM tab0 WHERE col1 IS NOT NULL
----
0
99

skipif mysql # not compatible
query I rowsort label-568
SELECT DISTINCT + - col2 / - col1 AS col2 FROM tab0 WHERE col1 IS NOT NULL
----
0
99

onlyif mysql # aggregate syntax: 
query I rowsort label-569
SELECT - COUNT( * ) + + - COUNT( * ) AS col2 FROM tab1 WHERE NOT NULL = - 20 + + - ( col2 )
----
0

skipif mysql # not compatible
query I rowsort label-569
SELECT - COUNT ( * ) + + - COUNT ( * ) AS col2 FROM tab1 WHERE NOT NULL = - 20 + + - ( col2 )
----
0

query I rowsort
SELECT ALL - 65 * - 45 * - - col2 FROM tab0
----
137475
289575
29250

onlyif mysql # DIV for integer division: 
query I rowsort label-571
SELECT + 88 DIV - col0 AS col0 FROM tab0
----
-1
-5
0

skipif mysql # not compatible
query I rowsort label-571
SELECT + 88 / - col0 AS col0 FROM tab0
----
-1
-5
0

query II rowsort
SELECT DISTINCT + 32 * + col0 AS col2, - col2 * - col0 AS col0 FROM tab2
----
1472
1058
2048
2560
2400
4350

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-573
SELECT CAST( - col0 AS SIGNED ), + col2 + + + 9 col1 FROM tab1
----
-51
105
-85
68
-91
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-573
SELECT CAST ( - col0 AS INTEGER ), + col2 + + + 9 col1 FROM tab1
----
-51
105
-85
68
-91
77

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

skipif mysql # not compatible
query I rowsort label-574
SELECT ALL + 38 * COUNT ( * ) FROM tab1
----
114

query I rowsort
SELECT 10 * + 60 FROM tab0 AS cor0
----
600
600
600

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-578
SELECT - MAX( DISTINCT 67 ) AS col1 FROM tab0 WHERE NOT - col2 / - col2 <> + - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-578
SELECT - MAX ( DISTINCT 67 ) AS col1 FROM tab0 WHERE NOT - col2 / - col2 <> + - col0
----
NULL

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

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

query I rowsort
SELECT - - 48 AS col0 FROM tab2 cor0
----
48
48
48

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

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

query I rowsort
SELECT - 45 + + - col2 + col2 FROM tab1 cor0
----
-45
-45
-45

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

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

query I rowsort
SELECT 83 + - - 91 + - 34 AS col1 FROM tab0
----
140
140
140

query I rowsort
SELECT + col0 + col0 * - ( - col2 ) AS col0 FROM tab2
----
1104
2624
4425

query I rowsort
SELECT DISTINCT - col2 * 89 AS col2 FROM tab0
----
-4183
-8811
-890

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-590
SELECT 85 * - COUNT( * ) FROM tab1 WHERE - CAST( NULL AS SIGNED ) + - - ( + col0 ) IS NULL
----
-255

skipif mysql # not compatible
query I rowsort label-590
SELECT 85 * - COUNT ( * ) FROM tab1 WHERE - CAST ( NULL AS INTEGER ) + - - ( + col0 ) IS NULL
----
-255

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-593
SELECT - 12 DIV col2, col2 AS col1 FROM tab0 cor0
----
-1
10
0
47
0
99

skipif mysql # not compatible
query II rowsort label-593
SELECT - 12 / col2, col2 AS col1 FROM tab0 cor0
----
-1
10
0
47
0
99

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-595
SELECT ALL - CAST( NULL AS SIGNED ) FROM tab0 WHERE NULL <> col2
----

skipif mysql # not compatible
query I rowsort label-595
SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab0 WHERE NULL <> col2
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-597
SELECT DISTINCT col1 DIV - ( - col0 ) + col0 FROM tab0 AS cor0
----
20
87
97

skipif mysql # not compatible
query I rowsort label-597
SELECT DISTINCT col1 / - ( - col0 ) + col0 FROM tab0 AS cor0
----
20
87
97

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-598
SELECT - SUM( DISTINCT + col2 ) AS col1 FROM tab1 AS cor0 WHERE NOT CAST( NULL AS DECIMAL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-598
SELECT - SUM ( DISTINCT + col2 ) AS col1 FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS REAL ) IS NULL
----
NULL

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

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

query I rowsort
SELECT 77 * + + col2 FROM tab1 AS cor0
----
4543
5236
7392

query I rowsort
SELECT 13 * - 67 FROM tab2 AS cor0
----
-871
-871
-871

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 30 = - - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-603
SELECT col2 * + + col1 * - - col1 AS col2, CAST( col1 AS SIGNED ) FROM tab0 AS cor0
----
308367
81
4410
21
99
1

skipif mysql # not compatible
query II rowsort label-603
SELECT col2 * + + col1 * - - col1 AS col2, CAST ( col1 AS INTEGER ) FROM tab0 AS cor0
----
308367
81
4410
21
99
1

query I rowsort
SELECT ALL col2 * col2 - - + 38 + ( - + 60 ) + + col0 FROM tab0 WHERE NOT NULL BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col1 + + col1 * + col2 > 29
----

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

skipif mysql # not compatible
query I rowsort label-606
SELECT - ( - - COUNT ( * ) ) / MIN ( + + col0 ) AS col2 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-607
SELECT DISTINCT 76 * COUNT( * ) AS col1 FROM tab1
----
228

skipif mysql # not compatible
query I rowsort label-607
SELECT DISTINCT 76 * COUNT ( * ) AS col1 FROM tab1
----
228

onlyif mysql # aggregate syntax: 
query I rowsort label-608
SELECT - COUNT( * ) FROM tab1, tab1 cor0 WHERE NULL IS NULL
----
-9

skipif mysql # not compatible
query I rowsort label-608
SELECT - COUNT ( * ) FROM tab1, tab1 cor0 WHERE NULL IS NULL
----
-9

query I rowsort
SELECT col0 + + + col0 * + col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
1104
2624
4425

onlyif mysql # aggregate syntax: 
query I rowsort label-610
SELECT DISTINCT COUNT( * ) * - 35 * - + 37 FROM tab1
----
3885

skipif mysql # not compatible
query I rowsort label-610
SELECT DISTINCT COUNT ( * ) * - 35 * - + 37 FROM tab1
----
3885

onlyif mysql # DIV for integer division: 
query I rowsort label-611
SELECT ALL - col1 DIV col2 * 11 AS col0 FROM tab2
----
-11
-11
-22

skipif mysql # not compatible
query I rowsort label-611
SELECT ALL - col1 / col2 * 11 AS col0 FROM tab2
----
-11
-11
-22

query II rowsort
SELECT DISTINCT col0, + col2 FROM tab1 WHERE - - col1 IS NULL
----

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

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

query I rowsort
SELECT ALL 11 * col0 FROM tab2 AS cor0
----
506
704
825

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

onlyif mysql # DIV for integer division: 
query I rowsort label-616
SELECT ALL + col1 + 2 * col2 DIV + col0 AS col1 FROM tab2 AS cor0
----
52
68
78

skipif mysql # not compatible
query I rowsort label-616
SELECT ALL + col1 + 2 * col2 / + col0 AS col1 FROM tab2 AS cor0
----
52
68
78

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

onlyif mysql # aggregate syntax: 
query I rowsort label-618
SELECT SUM( DISTINCT - + 97 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-97

skipif mysql # not compatible
query I rowsort label-618
SELECT SUM ( DISTINCT - + 97 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-97

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

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

query I rowsort
SELECT + 38 * + + 21 + col1 AS col0 FROM tab1 AS cor0
----
803
812
845

query III rowsort
SELECT * FROM tab1 cor0 WHERE + col0 < - 98
----

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 * + - col0 <= - col1
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-626
SELECT ALL - - COUNT( * ) - 29 FROM tab1 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-626
SELECT ALL - - COUNT ( * ) - 29 FROM tab1 AS cor0
----
-26

query I rowsort
SELECT DISTINCT + 53 AS col1 FROM tab1 AS cor0
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-628
SELECT DISTINCT - 71 + CAST( + - COUNT( * ) AS SIGNED ) col1 FROM tab2
----
-74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-628
SELECT DISTINCT - 71 + CAST ( + - COUNT ( * ) AS INTEGER ) col1 FROM tab2
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-629
SELECT ALL + COUNT( * ) FROM tab1 WHERE col1 * + col0 * - + col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-629
SELECT ALL + COUNT ( * ) FROM tab1 WHERE col1 * + col0 * - + col1 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-630
SELECT DISTINCT MAX( 80 ) AS col2 FROM tab1 WHERE NOT 36 <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-630
SELECT DISTINCT MAX ( 80 ) AS col2 FROM tab1 WHERE NOT 36 <> NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-631
SELECT DISTINCT + SUM( DISTINCT - col0 ) - + 49 AS col1 FROM tab2
----
-234

skipif mysql # not compatible
query I rowsort label-631
SELECT DISTINCT + SUM ( DISTINCT - col0 ) - + 49 AS col1 FROM tab2
----
-234

onlyif mysql # DIV for integer division: 
query I rowsort label-632
SELECT - - col0 DIV + + col1 - + 31 + - col0 * + + 60 AS col1 FROM tab0 AS cor0
----
-5247
-5754
-931

skipif mysql # not compatible
query I rowsort label-632
SELECT - - col0 / + + col1 - + 31 + - col0 * + + 60 AS col1 FROM tab0 AS cor0
----
-5247
-5754
-931

query I rowsort
SELECT - + 28 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c3e7fa3d059fc708f03c60e9cef0c115

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

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

query I rowsort
SELECT ALL - - ( - 74 ) FROM tab1 AS cor0
----
-74
-74
-74

query I rowsort
SELECT col1 * ( 70 ) FROM tab0
----
1470
5670
70

query I rowsort
SELECT DISTINCT 7 * + 58 FROM tab2
----
406

onlyif mysql # aggregate syntax: 
query I rowsort label-638
SELECT COUNT( * ) AS col1 FROM tab2 WHERE NOT NULL NOT BETWEEN col0 - + col0 AND - + ( col2 )
----
0

skipif mysql # not compatible
query I rowsort label-638
SELECT COUNT ( * ) AS col1 FROM tab2 WHERE NOT NULL NOT BETWEEN col0 - + col0 AND - + ( col2 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-639
SELECT MIN( + + col0 ) AS col0 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-639
SELECT MIN ( + + col0 ) AS col0 FROM tab2
----
46

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

onlyif mysql # aggregate syntax: 
query I rowsort label-641
SELECT ALL + + 74 + COUNT( + + 32 ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-641
SELECT ALL + + 74 + COUNT ( + + 32 ) FROM tab2 AS cor0
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-642
SELECT ALL col2 + col1 + 52 * + - CAST( + + col0 AS SIGNED ) AS col0 FROM tab1
----
-2542
-4356
-4617

skipif mysql # not compatible
query I rowsort label-642
SELECT ALL col2 + col1 + 52 * + - CAST ( + + col0 AS INTEGER ) AS col0 FROM tab1
----
-2542
-4356
-4617

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 52 col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
52

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

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

query I rowsort
SELECT ALL - col1 + col1 + - 3 FROM tab0 AS cor0
----
-3
-3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-647
SELECT SUM( ALL - col2 ) + + - 15 FROM tab0 cor0
----
-171

skipif mysql # not compatible
query I rowsort label-647
SELECT SUM ( ALL - col2 ) + + - 15 FROM tab0 cor0
----
-171

onlyif mysql # aggregate syntax: 
query I rowsort label-648
SELECT DISTINCT COUNT( * ) * 92 + 31 AS col1 FROM tab1 cor0
----
307

skipif mysql # not compatible
query I rowsort label-648
SELECT DISTINCT COUNT ( * ) * 92 + 31 AS col1 FROM tab1 cor0
----
307

query I rowsort
SELECT ALL + col1 - - - 82 FROM tab2
----
-15
-31
-5

query III rowsort
SELECT ALL * FROM tab1 WHERE col0 = NULL
----

query I rowsort
SELECT 75 + + col2 - - col0 AS col0 FROM tab0
----
137
172
271

onlyif mysql # aggregate syntax: 
query I rowsort label-652
SELECT COUNT( DISTINCT - + ( - 13 ) ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-652
SELECT COUNT ( DISTINCT - + ( - 13 ) ) FROM tab0
----
1

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 97 * 54 IS NOT NULL
----

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

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

query II rowsort
SELECT + + col0 / + + 88 * + col0 + ( - col0 ), + 69 * - 69 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN - 5 AND col0 + 70 * col2 * - col2 + - col1 - col1 + + 42 * - col0 * + col1 * 33
----

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

query II rowsort
SELECT col2 AS col1, 29 AS col2 FROM tab0 AS cor0
----
10
29
47
29
99
29

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

query I rowsort
SELECT - 97 * + col0 AS col1 FROM tab1 cor0
----
-4947
-8245
-8827

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-660
SELECT + col1 + - - ( - CAST( - col2 AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
110
115
64

skipif mysql # not compatible
query I rowsort label-660
SELECT + col1 + - - ( - CAST ( - col2 AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
110
115
64

query I rowsort
SELECT + ( + ( + ( + 4 ) ) ) + + 33 AS col1 FROM tab2 AS cor0
----
37
37
37

query I rowsort
SELECT DISTINCT - col1 + + 84 FROM tab0 AS cor0
----
3
63
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-663
SELECT DISTINCT 80, CAST( MAX( + col0 ) AS SIGNED ) col0 FROM tab2 AS cor0
----
80
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-663
SELECT DISTINCT 80, CAST ( MAX ( + col0 ) AS INTEGER ) col0 FROM tab2 AS cor0
----
80
75

query I rowsort
SELECT ALL + + col2 * col1 * + + col0 FROM tab2 AS cor0
----
197120
291450
53958

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

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

query I rowsort
SELECT DISTINCT + ( 60 ) AS col0 FROM tab1
----
60

query III rowsort
SELECT ALL * FROM tab1 WHERE - col2 < - - 82 / + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + + 80 * col0 FROM tab0 AS cor0
----
1200
6960
7760

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL IN ( col1 * + 66, col2, col0, ( col1 ) / - col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-671
SELECT ALL + 88 + - ( - - col1 ) DIV - col0 * - col2 AS col0 FROM tab1 AS cor0
----
88
88
88

skipif mysql # not compatible
query I rowsort label-671
SELECT ALL + 88 + - ( - - col1 ) / - col0 * - col2 AS col0 FROM tab1 AS cor0
----
88
88
88

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

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

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

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

query I rowsort
SELECT DISTINCT + 65 AS col1 FROM tab2
----
65

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

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

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

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

query I rowsort
SELECT ( - 28 ) * - - col0 * - col0 AS col2 FROM tab2 AS cor0
----
114688
157500
59248

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

query I rowsort
SELECT ALL + 74 + - + col2 AS col1 FROM tab2 AS cor0
----
16
34
51

query I rowsort
SELECT ALL - + col1 + ( + 30 ) + + - col0 * - col1 AS col0 FROM tab2 AS cor0
----
2325
4881
4988

query I rowsort
SELECT 56 + - col1 + - col0 AS col0 FROM tab2 WHERE NULL IS NULL
----
-41
-85
-86

query I rowsort
SELECT ALL col2 * col1 * col1 + + ( + col0 ) FROM tab0
----
196
308382
4497

onlyif mysql # aggregate syntax: 
query I rowsort label-684
SELECT - SUM( - - 9 ) FROM tab1 WHERE NOT NULL <= NULL AND NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-684
SELECT - SUM ( - - 9 ) FROM tab1 WHERE NOT NULL <= NULL AND NOT NULL IS NOT NULL
----
NULL

query I rowsort
SELECT ALL col2 * + 50 FROM tab1
----
2950
3400
4800

query II rowsort
SELECT - 60 AS col2, - 17 * 61 * - col0 FROM tab2
----
-60
47702
-60
66368
-60
77775

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 63 * - + 93 * - + col2 * - 52 col2 FROM tab1
----
-17975412
-20717424
-29248128

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-690
SELECT DISTINCT SUM ( - 32 ) col0 FROM tab1 AS cor0
----
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-691
SELECT DISTINCT + - COUNT( * ) DIV + MAX( ALL + + col1 ) * - ( + - 32 ) col1 FROM tab0 cor0
----
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-692
SELECT DISTINCT - col0 DIV 70 * + ( + ( - col2 ) ) FROM tab0 AS cor0
----
0
10
99

skipif mysql # not compatible
query I rowsort label-692
SELECT DISTINCT - col0 / 70 * + ( + ( - col2 ) ) FROM tab0 AS cor0
----
0
10
99

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-695
SELECT MIN( ALL 47 ) * 20 AS col2 FROM tab2 WHERE NOT 64 + 24 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-695
SELECT MIN ( ALL 47 ) * 20 AS col2 FROM tab2 WHERE NOT 64 + 24 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-696
SELECT * FROM tab0 WHERE NOT - - col0 BETWEEN - 64 * - col2 * + CAST( 35 AS SIGNED ) * + - 57 + 58 AND + 54
----
87
21
10
97
1
99

skipif mysql # not compatible
query III rowsort label-696
SELECT * FROM tab0 WHERE NOT - - col0 BETWEEN - 64 * - col2 * + CAST ( 35 AS INTEGER ) * + - 57 + 58 AND + 54
----
87
21
10
97
1
99

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

onlyif mysql # DIV for integer division: 
query I rowsort label-698
SELECT ALL + 75 DIV - 75 + + 64 AS col0 FROM tab1 cor0
----
63
63
63

skipif mysql # not compatible
query I rowsort label-698
SELECT ALL + 75 / - 75 + + 64 AS col0 FROM tab1 cor0
----
63
63
63

onlyif mysql # aggregate syntax: 
query I rowsort label-699
SELECT ALL - MAX( DISTINCT - 65 ) FROM tab2
----
65

skipif mysql # not compatible
query I rowsort label-699
SELECT ALL - MAX ( DISTINCT - 65 ) FROM tab2
----
65

query II rowsort
SELECT + ( + col2 ) * + col0 AS col0, + 88 AS col2 FROM tab1
----
4896
88
5015
88
6188
88

onlyif mysql # aggregate syntax: 
query I rowsort label-701
SELECT + 34 * - COUNT( * ) FROM tab0
----
-102

skipif mysql # not compatible
query I rowsort label-701
SELECT + 34 * - COUNT ( * ) FROM tab0
----
-102

query I rowsort
SELECT - col2 + - 17 AS col2 FROM tab1
----
-113
-76
-85

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-707
SELECT ALL CAST( + ( + col0 ) AS SIGNED ) + - 58 + + col1 * + 73 AS col2 FROM tab0 AS cor0
----
112
1562
5870

skipif mysql # not compatible
query I rowsort label-707
SELECT ALL CAST ( + ( + col0 ) AS INTEGER ) + - 58 + + col1 * + 73 AS col2 FROM tab0 AS cor0
----
112
1562
5870

query I rowsort
SELECT ALL col1 + + 77 * - col1 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-711
SELECT - COUNT( * ) FROM tab1 WHERE 35 + 56 IN ( col0 * - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-711
SELECT - COUNT ( * ) FROM tab1 WHERE 35 + 56 IN ( col0 * - col0 )
----
0

query I rowsort
SELECT DISTINCT col1 * 4 FROM tab0 WHERE NOT - col1 <> NULL
----

query I rowsort
SELECT DISTINCT + col1 * - 67 FROM tab0
----
-1407
-5427
-67

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-715
SELECT - COUNT( * ) DIV - MAX( ALL 82 ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-715
SELECT - COUNT ( * ) / - MAX ( ALL 82 ) AS col2 FROM tab0
----
0

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-718
SELECT DISTINCT + 13 DIV col1 + - 2 AS col2 FROM tab0
----
-2
11

skipif mysql # not compatible
query I rowsort label-718
SELECT DISTINCT + 13 / col1 + - 2 AS col2 FROM tab0
----
-2
11

query I rowsort
SELECT + col2 + 62 FROM tab1 WHERE NOT 4 IS NULL
----
121
130
158

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-722
SELECT COUNT( * ) * 91 FROM tab2 WHERE - col2 + + 96 IS NOT NULL
----
273

skipif mysql # not compatible
query I rowsort label-722
SELECT COUNT ( * ) * 91 FROM tab2 WHERE - col2 + + 96 IS NOT NULL
----
273

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

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

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

query I rowsort
SELECT DISTINCT - col2 - + 71 FROM tab2
----
-111
-129
-94

query I rowsort
SELECT 72 * col0 FROM tab2
----
3312
4608
5400

query I rowsort
SELECT DISTINCT 55 + - 75 * + col0 FROM tab0
----
-1070
-6470
-7220

onlyif mysql # aggregate syntax: 
query I rowsort label-728
SELECT COUNT( * ) FROM tab2 WHERE NOT ( NULL ) > ( - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-728
SELECT COUNT ( * ) FROM tab2 WHERE NOT ( NULL ) > ( - col1 )
----
0

query I rowsort
SELECT + 44 + + 78 FROM tab1
----
122
122
122

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

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab1 WHERE NOT - col0 * - 19 - 73 * + col0 >= col0
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-732
SELECT COUNT( * ) + + 6 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-732
SELECT COUNT ( * ) + + 6 FROM tab2
----
9

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

skipif mysql # not compatible
query I rowsort label-733
SELECT MAX ( ALL ( + ( - ( CAST ( col0 AS INTEGER ) ) ) ) ) AS col1 FROM tab0
----
-15

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

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

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

query I rowsort
SELECT + ( - 36 ) * - col1 AS col0 FROM tab0 AS cor0
----
2916
36
756

onlyif mysql # aggregate syntax: 
query I rowsort label-738
SELECT - MIN( DISTINCT - col1 ) FROM tab0 cor0
----
81

skipif mysql # not compatible
query I rowsort label-738
SELECT - MIN ( DISTINCT - col1 ) FROM tab0 cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-739
SELECT ALL MAX( - col1 ) FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-739
SELECT ALL MAX ( - col1 ) FROM tab1 AS cor0
----
-5

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-741
SELECT COUNT ( * ) col1 FROM tab1 AS cor0 WHERE NOT - col2 IS NULL
----
3

query I rowsort
SELECT - col0 + - 44 FROM tab0 AS cor0
----
-131
-141
-59

query I rowsort
SELECT DISTINCT + 43 + - 5 FROM tab0 AS cor0
----
38

query I rowsort
SELECT - + 93 + + col2 AS col2 FROM tab2 AS cor0
----
-35
-53
-70

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + 15 * col1 col1 FROM tab1 AS cor0
----
196
658
70

query I rowsort
SELECT ALL + - 41 + + col0 * + 46 AS col1 FROM tab2 AS cor0
----
2075
2903
3409

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

onlyif mysql # aggregate syntax: 
query I rowsort label-749
SELECT DISTINCT COUNT( * ) + + 23 FROM tab0
----
26

skipif mysql # not compatible
query I rowsort label-749
SELECT DISTINCT COUNT ( * ) + + 23 FROM tab0
----
26

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

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

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

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

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

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

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

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

query I rowsort
SELECT + - 53 * col0 * col0 FROM tab2 cor0
----
-112148
-217088
-298125

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

skipif mysql # not compatible
query I rowsort label-757
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

query I rowsort
SELECT 38 + - col2 * - col1 FROM tab0 AS cor0
----
137
248
3845

query I rowsort
SELECT ALL 84 - - 88 + - col2 AS col1 FROM tab1
----
104
113
76

query I rowsort
SELECT ALL col1 - - col1 - + 38 + + col1 * 27 AS col1 FROM tab0
----
-9
2311
571

query I rowsort
SELECT 3 FROM tab0 WHERE NULL > col2 + - col1
----

query I rowsort
SELECT 77 / 82 FROM tab2 AS cor0 WHERE col1 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL NOT IN ( - col1 )
----

query I rowsort
SELECT + + col2 * + col0 + + - ( col2 ) + col0 * col1 FROM tab2 AS cor0
----
3381
7448
9317

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-765
SELECT ALL - col2 AS col0, - CAST( col0 AS SIGNED ) FROM tab0 AS cor0
----
-10
-87
-47
-15
-99
-97

skipif mysql # not compatible
query II rowsort label-765
SELECT ALL - col2 AS col0, - CAST ( col0 AS INTEGER ) FROM tab0 AS cor0
----
-10
-87
-47
-15
-99
-97

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-768
SELECT DISTINCT + COUNT( + col2 ) AS col0 FROM tab0 AS cor0 WHERE ( - col1 ) <= ( + col2 * + col0 )
----
3

skipif mysql # not compatible
query I rowsort label-768
SELECT DISTINCT + COUNT ( + col2 ) AS col0 FROM tab0 AS cor0 WHERE ( - col1 ) <= ( + col2 * + col0 )
----
3

query I rowsort
SELECT ALL + 37 * 79 FROM tab1 cor0 WHERE NOT col0 * + - ( 48 ) * col0 IN ( col0 )
----
2923
2923
2923

query II rowsort
SELECT - - 5 AS col1, col1 + col0 FROM tab2 AS cor0
----
5
141
5
142
5
97

onlyif mysql # aggregate syntax: 
query I rowsort label-771
SELECT DISTINCT + ( MIN( + col0 ) ) * - 76 FROM tab2
----
-3496

skipif mysql # not compatible
query I rowsort label-771
SELECT DISTINCT + ( MIN ( + col0 ) ) * - 76 FROM tab2
----
-3496

query I rowsort
SELECT - 70 + col1 * - 2 AS col2 FROM tab0 WHERE NOT col1 <= + 28 / + col2
----
-112
-232
-72

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-774
SELECT CAST( - 56 AS SIGNED ) FROM tab2
----
-56
-56
-56

skipif mysql # not compatible
query I rowsort label-774
SELECT CAST ( - 56 AS INTEGER ) FROM tab2
----
-56
-56
-56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-775
SELECT COUNT( * ) DIV MIN( col1 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-775
SELECT COUNT ( * ) / MIN ( col1 ) FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-776
SELECT ALL ( - - col0 ) AS col1, - CAST( + 43 AS SIGNED ) AS col2 FROM tab2
----
46
-43
64
-43
75
-43

skipif mysql # not compatible
query II rowsort label-776
SELECT ALL ( - - col0 ) AS col1, - CAST ( + 43 AS INTEGER ) AS col2 FROM tab2
----
46
-43
64
-43
75
-43

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

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

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

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

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

query I rowsort
SELECT col0 + col1 FROM tab1 AS cor0 WHERE NOT ( 87 * - col2 ) <= + col2
----

query I rowsort
SELECT DISTINCT col2 * col1 AS col1 FROM tab0 AS cor0 WHERE NOT ( - col1 - - col1 * + 9 ) IS NULL
----
210
3807
99

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 < NULL
----

query I rowsort
SELECT 79 * - col2 AS col1 FROM tab0
----
-3713
-7821
-790

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

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

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

query I rowsort
SELECT - - 33 AS col2 FROM tab0 AS cor0
----
33
33
33

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

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

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

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

query I rowsort
SELECT DISTINCT - - col0 * 8 FROM tab0 AS cor0
----
120
696
776

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

query I rowsort
SELECT ALL - + 81 AS col1 FROM tab0 AS cor0 WHERE col1 * - 63 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-794
SELECT DISTINCT - + col1 DIV - 27 + + 55 DIV + col1 + - 9 AS col2 FROM tab0 AS cor0
----
-6
-7
46

skipif mysql # not compatible
query I rowsort label-794
SELECT DISTINCT - + col1 / - 27 + + 55 / + col1 + - 9 AS col2 FROM tab0 AS cor0
----
-6
-7
46

query I rowsort
SELECT 11 * 17 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND + col0 + - col1 + col2 + + + 99 * - 99
----

query III rowsort
SELECT * FROM tab2 WHERE + - col1 <= - col0 * + 20 * 66 + col1
----

query I rowsort
SELECT ( + + 25 ) + + col2 AS col0 FROM tab2
----
48
65
83

query I rowsort
SELECT ALL + col0 * - col1 + - 64 FROM tab2
----
-2410
-4992
-5089

query I rowsort
SELECT ALL col0 * 13 + - + ( - col2 ) + - + col1 FROM tab2
----
570
795
966

onlyif mysql # DIV for integer division: 
query I rowsort label-800
SELECT - col1 + - - 13 DIV - col2 AS col2 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-800
SELECT - col1 + - - 13 / - col2 AS col2 FROM tab2
----
-51
-67
-77

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

query I rowsort
SELECT DISTINCT 6 + + col1 - - col1 FROM tab0
----
168
48
8

query II rowsort
SELECT DISTINCT 6 AS col0, col1 FROM tab2
----
6
51
6
67
6
77

query I rowsort
SELECT + 54 + col0 AS col0 FROM tab2
----
100
118
129

query I rowsort
SELECT ALL + ( - 21 ) FROM tab2
----
-21
-21
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-806
SELECT + + 4 * COUNT( * ) FROM tab0 WHERE - col2 * - col2 * + col0 IS NOT NULL
----
12

skipif mysql # not compatible
query I rowsort label-806
SELECT + + 4 * COUNT ( * ) FROM tab0 WHERE - col2 * - col2 * + col0 IS NOT NULL
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-807
SELECT DISTINCT - 96 * COUNT( * ) FROM tab2
----
-288

skipif mysql # not compatible
query I rowsort label-807
SELECT DISTINCT - 96 * COUNT ( * ) FROM tab2
----
-288

query I rowsort
SELECT DISTINCT - col2 * + 63 + 97 + + + 84 * + col2 AS col1 FROM tab1
----
1336
1525
2113

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

skipif mysql # not compatible
query I rowsort label-809
SELECT DISTINCT - MIN ( - col1 ) AS col1 FROM tab1
----
47

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

query I rowsort
SELECT ALL + 62 + - + col2 + - col0 FROM tab2 AS cor0
----
-42
-7
-71

query I rowsort
SELECT ALL - + 8 AS col1 FROM tab0 AS cor0 WHERE + ( - 85 ) = + 59 - - 65
----

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-816
SELECT ALL - - MAX( - col1 ) FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-816
SELECT ALL - - MAX ( - col1 ) FROM tab1 AS cor0
----
-5

query I rowsort
SELECT + col1 * col0 * - 4 FROM tab0 AS cor0
----
-388
-4860
-7308

query I rowsort
SELECT ALL - + 39 AS col2 FROM tab2 AS cor0
----
-39
-39
-39

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - - col1 ) <= + 15
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-820
SELECT DISTINCT 46 * COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT + ( - 53 ) * col2 NOT BETWEEN ( NULL ) AND ( - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-820
SELECT DISTINCT 46 * COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT + ( - 53 ) * col2 NOT BETWEEN ( NULL ) AND ( - col2 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-821
SELECT col2 DIV 85 * - - col2 FROM tab0 AS cor0
----
0
0
99

skipif mysql # not compatible
query I rowsort label-821
SELECT col2 / 85 * - - col2 FROM tab0 AS cor0
----
0
0
99

onlyif mysql # aggregate syntax: 
query I rowsort label-822
SELECT - MIN( + 1 ) col1 FROM tab2
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-822
SELECT - MIN ( + 1 ) col1 FROM tab2
----
-1

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

query I rowsort
SELECT ALL 0 - + col2 AS col2 FROM tab0 WHERE + col0 / + + 87 > + col0 OR col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-825
SELECT DISTINCT col1 FROM tab0 WHERE col1 IS NOT NULL OR NOT ( NOT NULL NOT IN ( 58, - col0 + col1 + - CAST( NULL AS SIGNED ) ) )
----
1
21
81

skipif mysql # not compatible
query I rowsort label-825
SELECT DISTINCT col1 FROM tab0 WHERE col1 IS NOT NULL OR NOT ( NOT NULL NOT IN ( 58, - col0 + col1 + - CAST ( NULL AS INTEGER ) ) )
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-826
SELECT ALL 79 * + - CAST( - col2 AS SIGNED ) FROM tab0
----
3713
7821
790

skipif mysql # not compatible
query I rowsort label-826
SELECT ALL 79 * + - CAST ( - col2 AS INTEGER ) FROM tab0
----
3713
7821
790

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

skipif mysql # not compatible
query I rowsort label-827
SELECT - COUNT ( + - col0 ) FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-828
SELECT DISTINCT MAX( - col2 ) * - COUNT( * ) FROM tab2
----
69

skipif mysql # not compatible
query I rowsort label-828
SELECT DISTINCT MAX ( - col2 ) * - COUNT ( * ) FROM tab2
----
69

query II rowsort
SELECT DISTINCT col0 AS col0, col0 + - col1 AS col0 FROM tab1
----
51
37
85
80
91
44

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

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

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

query I rowsort
SELECT ALL - 89 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 924a74d31360fa4301c953b423a4710e

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

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

query I rowsort
SELECT + - 58 + col1 AS col0 FROM tab1 AS cor0
----
-11
-44
-53

query I rowsort
SELECT - 23 + - 21 FROM tab1 AS cor0
----
-44
-44
-44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - 49 ) + - + col0 col1 FROM tab2 AS cor0
----
-113
-124
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-837
SELECT - col1 + col1 + - col1 * - + CAST( - col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-2601
-4489
-5929

skipif mysql # not compatible
query I rowsort label-837
SELECT - col1 + col1 + - col1 * - + CAST ( - col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-2601
-4489
-5929

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 95 = 50
----

onlyif mysql # DIV for integer division: 
query I rowsort label-839
SELECT - col2 + + col0 DIV + 20 FROM tab0 AS cor0
----
-47
-6
-95

skipif mysql # not compatible
query I rowsort label-839
SELECT - col2 + + col0 / + 20 FROM tab0 AS cor0
----
-47
-6
-95

query I rowsort
SELECT ALL 54 + col1 AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
101
59
68

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-841
SELECT * FROM tab0 cor0 WHERE + 39 * - col0 - - + 23 + + - CAST( - col2 AS SIGNED ) IN ( col0, 76 )
----

skipif mysql # not compatible
query III rowsort label-841
SELECT * FROM tab0 cor0 WHERE + 39 * - col0 - - + 23 + + - CAST ( - col2 AS INTEGER ) IN ( col0, 76 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 < + - col0
----
15
81
47
97
1
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 85 + + col2 col2 FROM tab1 AS cor0
----
-17
-26
11

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

query I rowsort
SELECT 61 - - 45 + col0 AS col1 FROM tab2 AS cor0 WHERE col2 / + - col1 IS NOT NULL
----
152
170
181

onlyif mysql # DIV for integer division: 
query I rowsort label-846
SELECT ALL + 96 + - col2 + - + col2 + - - 17 * col0 - - - 25 DIV + 72 col1 FROM tab1
----
1423
1507
771

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-846
SELECT ALL + 96 + - col2 + - + col2 + - - 17 * col0 - - - 25 / + 72 col1 FROM tab1
----
1423
1507
771

query I rowsort
SELECT + - col1 * 52 AS col2 FROM tab0 WHERE NULL IS NULL
----
-1092
-4212
-52

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + col2 / + 26 ) <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-850
SELECT DISTINCT + 55 AS col2, - COUNT( * ) col1 FROM tab1 WHERE NOT NULL IS NULL
----
55
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-850
SELECT DISTINCT + 55 AS col2, - COUNT ( * ) col1 FROM tab1 WHERE NOT NULL IS NULL
----
55
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-851
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT NULL IN ( - 48, 59 + + CAST( NULL AS SIGNED ), - + ( - 22 ) + - + 14 * - - col0 )
----

skipif mysql # not compatible
query I rowsort label-851
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT NULL IN ( - 48, 59 + + CAST ( NULL AS INTEGER ), - + ( - 22 ) + - + 14 * - - col0 )
----

query I rowsort
SELECT + col1 * + col1 - + 5 * - col1 FROM tab1
----
2444
266
50

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL ) < ( - - 21 / + + col0 + + col0 / + ( 13 ) * col2 - - 84 * col1 ) AND + col1 >= ( + col1 - + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-854
SELECT + col2 - - - col2 + + CAST( - + 9 AS SIGNED ) - col0 FROM tab1 AS cor0
----
-100
-60
-94

skipif mysql # not compatible
query I rowsort label-854
SELECT + col2 - - - col2 + + CAST ( - + 9 AS INTEGER ) - col0 FROM tab1 AS cor0
----
-100
-60
-94

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

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL BETWEEN - 29 AND + 13
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL < + 12 * col0
----

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

skipif mysql # not compatible
query I rowsort label-858
SELECT + COUNT ( ALL + - CAST ( + col2 AS INTEGER ) ) + 16 AS col2 FROM tab0 AS cor0
----
19

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

query II rowsort
SELECT 48 AS col0, + ( - col2 ) AS col2 FROM tab2
----
48
-23
48
-40
48
-58

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-862
SELECT - 32 AS col2, COUNT( * ) FROM tab1 AS cor0
----
-32
3

skipif mysql # not compatible
query II rowsort label-862
SELECT - 32 AS col2, COUNT ( * ) FROM tab1 AS cor0
----
-32
3

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-865
SELECT + CAST( NULL AS SIGNED ) * - COUNT( * ) AS col2, 83 + + + 55 FROM tab0 AS cor0
----
NULL
138

skipif mysql # not compatible
query II rowsort label-865
SELECT + CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col2, 83 + + + 55 FROM tab0 AS cor0
----
NULL
138

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 98 col1 FROM tab1 AS cor0
----
-98

query I rowsort
SELECT - col0 FROM tab2 cor0 WHERE NOT - - 62 * - - 22 BETWEEN NULL AND 43 AND + col0 * col1 IS NULL
----

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

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

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

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

query I rowsort
SELECT ALL 41 FROM tab1 WHERE ( - col1 ) IS NULL
----

query II rowsort
SELECT ALL - 30 * 63 AS col1, col2 FROM tab2
----
-1890
23
-1890
40
-1890
58

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 + - + col2 <= + - 24 + - + 98
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + 22 * + - 46 ) IS NOT NULL
----

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

query I rowsort
SELECT ALL - col1 FROM tab1 AS cor0 WHERE NOT col1 * + col0 / + + 62 = - col0 - - 68
----
-14
-47
-5

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

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

query I rowsort
SELECT col0 - + + 38 + 8 FROM tab0 cor0
----
-15
57
67

onlyif mysql # aggregate syntax: 
query II rowsort label-882
SELECT DISTINCT 62 AS col2, + ( - - AVG ( DISTINCT + col2 ) ) + - COUNT( * ) FROM tab2 AS cor0 WHERE - col0 >= NULL
----
62
NULL

skipif mysql # not compatible
query II rowsort label-882
SELECT DISTINCT 62 AS col2, + ( - - AVG ( DISTINCT + col2 ) ) + - COUNT ( * ) FROM tab2 AS cor0 WHERE - col0 >= NULL
----
62
NULL

query I rowsort
SELECT DISTINCT col0 + col1 * - col1 * - 87 FROM tab0 cor0
----
184
38454
570822

query I rowsort
SELECT ALL col1 * - col2 + + col0 + - col1 FROM tab2 AS cor0
----
-1178
-3093
-3878

onlyif mysql # aggregate syntax: 
query I rowsort label-885
SELECT - - SUM( DISTINCT - - 26 ) + - MIN( col2 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-885
SELECT - - SUM ( DISTINCT - - 26 ) + - MIN ( col2 ) FROM tab2 cor0
----
3

query I rowsort
SELECT ALL - 96 + col0 * + - 29 FROM tab1
----
-1575
-2561
-2735

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col0 <= + ( - col2 )
----
85
5
59
91
47
68

onlyif mysql # aggregate syntax: 
query I rowsort label-888
SELECT - 80 + COUNT( DISTINCT - + 12 ) AS col2 FROM tab0
----
-79

skipif mysql # not compatible
query I rowsort label-888
SELECT - 80 + COUNT ( DISTINCT - + 12 ) AS col2 FROM tab0
----
-79

query I rowsort
SELECT + 37 * col2 + + col1 AS col1 FROM tab1
----
2188
2563
3566

onlyif mysql # DIV for integer division: 
query I rowsort label-890
SELECT col0 + - - col0 DIV col0 col0 FROM tab0
----
16
88
98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-890
SELECT col0 + - - col0 / col0 col0 FROM tab0
----
16
88
98

onlyif mysql # DIV for integer division: 
query I rowsort label-891
SELECT - 87 DIV - - 9 + - + col1 * - - ( - - 42 ) AS col2 FROM tab1
----
-1983
-219
-597

skipif mysql # not compatible
query I rowsort label-891
SELECT - 87 / - - 9 + - + col1 * - - ( - - 42 ) AS col2 FROM tab1
----
-1983
-219
-597

query I rowsort
SELECT DISTINCT + 29 * + col0 FROM tab1
----
1479
2465
2639

query I rowsort
SELECT DISTINCT - 1 - ( - col0 ) FROM tab1
----
50
84
90

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 61 col1 FROM tab1 AS cor0
----
61
61
61

onlyif mysql # aggregate syntax: 
query I rowsort label-896
SELECT ALL COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( + 3 ) IS NOT NULL
----
9

skipif mysql # not compatible
query I rowsort label-896
SELECT ALL COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( + 3 ) IS NOT NULL
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-897
SELECT + - MIN( col2 ) FROM tab0 WHERE NOT - col1 NOT BETWEEN + col0 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-897
SELECT + - MIN ( col2 ) FROM tab0 WHERE NOT - col1 NOT BETWEEN + col0 AND NULL
----
NULL

query I rowsort
SELECT 84 * 4 FROM tab2 AS cor0
----
336
336
336

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

query I rowsort
SELECT ALL - - 77 AS col2 FROM tab1 AS cor0
----
77
77
77

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

skipif mysql # not compatible
query I rowsort label-901
SELECT - MIN ( - + col2 ) AS col2 FROM tab2
----
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col1, - col2 AS col1 FROM tab0 WHERE NOT - + col1 IS NULL
----
15
-47
87
-10
97
-99

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-904
SELECT ALL * FROM tab2 WHERE ( - - CAST( NULL AS SIGNED ) + - col0 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-904
SELECT ALL * FROM tab2 WHERE ( - - CAST ( NULL AS INTEGER ) + - col0 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

onlyif mysql # aggregate syntax: 
query I rowsort label-906
SELECT ALL - MAX( ALL 95 ) FROM tab2
----
-95

skipif mysql # not compatible
query I rowsort label-906
SELECT ALL - MAX ( ALL 95 ) FROM tab2
----
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 AS col2, - col1 - - 16 - - col1 * + 63 * + 56 col2 FROM tab2
----
-51
179893
-67
236325
-77
271595

query I rowsort
SELECT DISTINCT ( 11 ) AS col0 FROM tab0
----
11

query I rowsort
SELECT - col2 * + 35 AS col2 FROM tab2 WHERE NOT col1 >= NULL
----

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE NOT 64 IS NOT NULL
----

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

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

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

query I rowsort
SELECT 94 * - + col2 FROM tab1 AS cor0
----
-5546
-6392
-9024

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

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

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

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

query I rowsort
SELECT col1 * col0 + 73 AS col1 FROM tab0
----
1288
170
1900

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

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

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

query II rowsort
SELECT col2 AS col1, col0 + + col1 / - - col0 AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-921
SELECT ALL + + col2 DIV - + col0, 31 AS col1 FROM tab1 AS cor0
----
-1
31
0
31
0
31

skipif mysql # not compatible
query II rowsort label-921
SELECT ALL + + col2 / - + col0, 31 AS col1 FROM tab1 AS cor0
----
-1
31
0
31
0
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-922
SELECT DISTINCT + 91 + - MIN( - CAST( - col1 AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-922
SELECT DISTINCT + 91 + - MIN ( - CAST ( - col1 AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
90

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-926
SELECT + col2, CAST( - col1 AS SIGNED ) AS col2 FROM tab1 WHERE NULL BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query II rowsort label-926
SELECT + col2, CAST ( - col1 AS INTEGER ) AS col2 FROM tab1 WHERE NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - 18 * + col2 - - - col0 AS col1 FROM tab1
----
-1147
-1315
-1779

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 col2, + 68 col2 FROM tab0 WHERE + col1 * + col0 BETWEEN + + col2 / + - 11 AND 60
----

query I rowsort
SELECT DISTINCT - 38 AS col1 FROM tab1, tab2 AS cor0
----
-38

query I rowsort
SELECT ALL + col2 * col1 * - ( - ( col2 ) ) - col1 AS col1 FROM tab1
----
129010
17400
217281

query I rowsort
SELECT DISTINCT - 79 * - col1 AS col0 FROM tab2
----
4029
5293
6083

query I rowsort
SELECT - col1 - + 42 + - col0 FROM tab1
----
-107
-132
-180

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-933
SELECT - CAST( + + col0 AS SIGNED ) - - - col0 FROM tab0
----
-174
-194
-30

skipif mysql # not compatible
query I rowsort label-933
SELECT - CAST ( + + col0 AS INTEGER ) - - - col0 FROM tab0
----
-174
-194
-30

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT + - ( - col0 ) AS col1 FROM tab2 AS cor0 WHERE + col2 IS NOT NULL
----
46
64
75

query I rowsort
SELECT ALL + ( - 46 ) FROM tab1 AS cor0
----
-46
-46
-46

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

query I rowsort
SELECT DISTINCT - + col1 FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
-51
-67
-77

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

query I rowsort
SELECT ALL - col0 * col2 + + 17 FROM tab2
----
-1041
-2543
-4333

query I rowsort
SELECT col2 * + - col1 + ( - 21 ) + + col2 + + ( - 40 ) * + col1 FROM tab2 WHERE NOT - 21 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-945
SELECT DISTINCT + 34 * + COUNT( * ) FROM tab1
----
102

skipif mysql # not compatible
query I rowsort label-945
SELECT DISTINCT + 34 * + COUNT ( * ) FROM tab1
----
102

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-948
SELECT COUNT( 5 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-948
SELECT COUNT ( 5 ) FROM tab1
----
3

query I rowsort
SELECT DISTINCT - col1 * ( + + ( + col2 ) ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
-210
-3807
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-950
SELECT MIN( ALL - - col0 ) col1 FROM tab0
----
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-950
SELECT MIN ( ALL - - col0 ) col1 FROM tab0
----
15

query I rowsort
SELECT 49 + - 47 AS col1 FROM tab0
----
2
2
2

query I rowsort
SELECT ALL + 53 + - col1 FROM tab0 AS cor0
----
-28
32
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - + col2 col2 FROM tab2
----
-1600
-3364
-529

query I rowsort
SELECT col1 * 77 * col0 * + + col0 FROM tab0
----
12239073
1403325
724493

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

query I rowsort
SELECT + col1 - + + col1 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT col2 - - + col0 FROM tab1 WHERE - ( + 64 ) * 96 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL >= - col2 * - col1 * - + col2 * - + 29 + + col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-959
SELECT 85 - - - 73, + COUNT( * ) * + 94 AS col0 FROM tab2 AS cor0
----
12
282

skipif mysql # not compatible
query II rowsort label-959
SELECT 85 - - - 73, + COUNT ( * ) * + 94 AS col0 FROM tab2 AS cor0
----
12
282

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

query I rowsort
SELECT DISTINCT col2 FROM tab0 AS cor0 WHERE + col1 <> + col0 + + 1 / + col1 - - - col2
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-962
SELECT DISTINCT + MIN( - 74 ) AS col0 FROM tab2 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-962
SELECT DISTINCT + MIN ( - 74 ) AS col0 FROM tab2 AS cor0
----
-74

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

skipif mysql # not compatible
query I rowsort label-963
SELECT ALL COUNT ( * ) - - + 70 * - ( + CAST ( - COUNT ( * ) AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
213

query I rowsort
SELECT - col1 + + 74 + + col1 * 31 * - col2 FROM tab1
----
-41604
-9076
-99049

query I rowsort
SELECT - col2 + 23 FROM tab0
----
-24
-76
13

onlyif mysql # aggregate syntax: 
query I rowsort label-966
SELECT - SUM( - - col0 ) AS col2 FROM tab2 WHERE NOT + col1 >= - col1 + col2 + col2 / 61
----
NULL

skipif mysql # not compatible
query I rowsort label-966
SELECT - SUM ( - - col0 ) AS col2 FROM tab2 WHERE NOT + col1 >= - col1 + col2 + col2 / 61
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT 4 NOT BETWEEN + col1 AND 39
----

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

query III rowsort
SELECT ALL * FROM tab1 WHERE - ( + 39 ) NOT IN ( + 42 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col1 * + 20 FROM tab1
----
100
280
940

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 + col2 col0, + col2 AS col1 FROM tab0 WHERE NOT col0 BETWEEN col1 AND ( 35 )
----
198
99
20
10
94
47

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-973
SELECT + COUNT( * ) * - 40 FROM tab2
----
-120

skipif mysql # not compatible
query I rowsort label-973
SELECT + COUNT ( * ) * - 40 FROM tab2
----
-120

query I rowsort
SELECT ALL + col1 * + + 80 FROM tab0
----
1680
6480
80

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

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

query I rowsort
SELECT ALL + + 48 FROM tab1 AS cor0
----
48
48
48

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-978
SELECT DISTINCT - + 1 - col1 FROM tab1 AS cor0 WHERE NOT NULL IN ( col2 * + 83, + 81 * - CAST( NULL AS SIGNED ), + 17 )
----

skipif mysql # not compatible
query I rowsort label-978
SELECT DISTINCT - + 1 - col1 FROM tab1 AS cor0 WHERE NOT NULL IN ( col2 * + 83, + 81 * - CAST ( NULL AS INTEGER ), + 17 )
----

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col1 + + 26 / col1 + col1 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + 8 > NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-984
SELECT 18 DIV col0 * + col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-984
SELECT 18 / col0 * + col0 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-985
SELECT SUM( - col1 ) AS col0 FROM tab2 WHERE ( + col1 * + + 92 / - col1 IS NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-985
SELECT SUM ( - col1 ) AS col0 FROM tab2 WHERE ( + col1 * + + 92 / - col1 IS NULL )
----
NULL

query I rowsort
SELECT DISTINCT + col0 * col1 + col1 FROM tab2 AS cor0
----
2397
5005
5092

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

query I rowsort
SELECT + 67 + col2 AS col1 FROM tab0 AS cor0
----
114
166
77

onlyif mysql # aggregate syntax: 
query I rowsort label-989
SELECT DISTINCT - 14 - - COUNT( * ) AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-11

skipif mysql # not compatible
query I rowsort label-989
SELECT DISTINCT - 14 - - COUNT ( * ) AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-11

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 10 NOT IN ( - + 29 + - + col0 )
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-992
SELECT - col1 / + 30 col0 FROM tab1 AS cor0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-993
SELECT - - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE 73 - col0 > - col1 * - col2 + + col2
----
0

skipif mysql # not compatible
query I rowsort label-993
SELECT - - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE 73 - col0 > - col1 * - col2 + + col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-994
SELECT + + COUNT( * ) / + + MAX( - CAST( NULL AS SIGNED ) ) + - 99 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-994
SELECT + + COUNT ( * ) / + + MAX ( - CAST ( NULL AS INTEGER ) ) + - 99 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL 22 + col2 * - + col0 AS col0 FROM tab1 AS cor0
----
-4874
-4993
-6166

onlyif mysql # aggregate syntax: 
query I rowsort label-996
SELECT DISTINCT COUNT( * ) + - + 54 + 69 FROM tab1 AS cor0 WHERE NOT + col1 * + 70 IS NOT NULL
----
15

skipif mysql # not compatible
query I rowsort label-996
SELECT DISTINCT COUNT ( * ) + - + 54 + 69 FROM tab1 AS cor0 WHERE NOT + col1 * + 70 IS NOT NULL
----
15

query I rowsort
SELECT + + col0 - + - 71 AS col0 FROM tab1 AS cor0
----
122
156
162

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

query II rowsort
SELECT + col1 AS col0, + ( 14 ) AS col2 FROM tab2
----
51
14
67
14
77
14

query I rowsort
SELECT - col2 - - col1 FROM tab2 WHERE NOT - - 44 IS NULL
----
28
37
9

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

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

query I rowsort
SELECT col1 * - 57 FROM tab1
----
-2679
-285
-798

query II rowsort
SELECT + 73 AS col2, 50 + + - col2 * + + 34 * + col1 * - - col1 + + ( col0 ) AS col2 FROM tab0 AS cor0
----
73
-10484413
73
-149803
73
-3219

onlyif mysql # aggregate syntax: 
query I rowsort label-1005
SELECT ALL 51 * COUNT( * ) FROM tab1 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-1005
SELECT ALL 51 * COUNT ( * ) FROM tab1 AS cor0
----
153

query I rowsort
SELECT ALL + 72 * + ( + 12 ) * + 77 + + + col2 AS col2 FROM tab1 cor0
----
66587
66596
66624

query I rowsort
SELECT ALL - 26 + - col2 AS col1 FROM tab1 AS cor0
----
-122
-85
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1008
SELECT ALL - CAST( + MAX( 33 ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-1008
SELECT ALL - CAST ( + MAX ( 33 ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-33

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL > col0
----

query II rowsort
SELECT ALL 91 * - - col0 + + + col1 AS col0, col1 - ( 93 ) FROM tab0 AS cor0
----
1446
-12
7938
-72
8828
-92

query I rowsort
SELECT col2 * - 98 * + col2 + + col0 AS col1 FROM tab0 AS cor0 WHERE NULL >= 50
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1013
SELECT ALL col1 DIV + + col1 FROM tab1 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1013
SELECT ALL col1 / + + col1 FROM tab1 cor0
----
1
1
1

query I rowsort
SELECT ALL 85 + + + col0 + + ( - col1 ) AS col2 FROM tab1 cor0
----
122
129
165

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

query I rowsort
SELECT DISTINCT - ( + 50 ) AS col0 FROM tab1
----
-50

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1018
SELECT + COUNT( * ) DIV ( + 63 ) + + MAX( DISTINCT + 89 ) * + 44 FROM tab2
----
3916

skipif mysql # not compatible
query I rowsort label-1018
SELECT + COUNT ( * ) / ( + 63 ) + + MAX ( DISTINCT + 89 ) * + 44 FROM tab2
----
3916

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1019
SELECT - 88 + CAST( + 86 AS SIGNED ) AS col1 FROM tab0
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-1019
SELECT - 88 + CAST ( + 86 AS INTEGER ) AS col1 FROM tab0
----
-2
-2
-2

query I rowsort
SELECT col1 + + - col1 * - - col2 * - ( - col0 ) FROM tab2
----
-197043
-291383
-53907

query I rowsort
SELECT DISTINCT - 57 * - col0 AS col2 FROM tab0
----
4959
5529
855

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

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

query I rowsort
SELECT ALL + col2 + col1 + - 46 FROM tab1 AS cor0
----
18
64
69

query I rowsort
SELECT ALL - + col1 * + 70 FROM tab2 AS cor0
----
-3570
-4690
-5390

query I rowsort
SELECT DISTINCT - col0 + + 95 AS col0 FROM tab1 AS cor0
----
10
4
44

query I rowsort
SELECT ALL - col0 + + + 46 FROM tab1 AS cor0
----
-39
-45
-5

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

skipif mysql # not compatible
query I rowsort label-1027
SELECT DISTINCT ( + 79 ) + - + MIN ( col2 ) FROM tab1
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-1028
SELECT DISTINCT MIN( 91 ) FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-1028
SELECT DISTINCT MIN ( 91 ) FROM tab1
----
91

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1030
SELECT - CAST( NULL AS DECIMAL ) / - col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1030
SELECT - CAST ( NULL AS REAL ) / - col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

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

query I rowsort
SELECT - + col0 FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN - 14 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1034
SELECT + ( - col0 ) * col2 DIV - + 10 AS col0 FROM tab0 AS cor0
----
70
87
960

skipif mysql # not compatible
query I rowsort label-1034
SELECT + ( - col0 ) * col2 / - + 10 AS col0 FROM tab0 AS cor0
----
70
87
960

query I rowsort
SELECT 99 * 53 AS col2 FROM tab2
----
5247
5247
5247

onlyif mysql # aggregate syntax: 
query I rowsort label-1036
SELECT 40 * + SUM( ALL - col0 ) AS col2 FROM tab2
----
-7400

skipif mysql # not compatible
query I rowsort label-1036
SELECT 40 * + SUM ( ALL - col0 ) AS col2 FROM tab2
----
-7400

query I rowsort
SELECT ALL + col1 + - - col0 FROM tab2 WHERE NULL IN ( col2 + col1, col0, - - col0, + ( - 83 ), - 90, col0 * - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1038
SELECT + 59 AS col1 FROM tab1 AS cor0 WHERE NOT col0 + CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) * col1 < + - col1
----

skipif mysql # not compatible
query I rowsort label-1038
SELECT + 59 AS col1 FROM tab1 AS cor0 WHERE NOT col0 + CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) * col1 < + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1039
SELECT DISTINCT - - COUNT( * ) * - 30 AS col1 FROM tab0 cor0
----
-90

skipif mysql # not compatible
query I rowsort label-1039
SELECT DISTINCT - - COUNT ( * ) * - 30 AS col1 FROM tab0 cor0
----
-90

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

query I rowsort
SELECT ALL - - 18 AS col2 FROM tab0 AS cor0
----
18
18
18

query II rowsort
SELECT ALL - + 31, - col1 * 85 + + col2 AS col2 FROM tab1 AS cor0
----
-31
-1094
-31
-366
-31
-3927

query I rowsort
SELECT DISTINCT + 0 + - col2 AS col1 FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-1044
SELECT + 47 DIV + ( - - col2 ) AS col2 FROM tab0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-1044
SELECT + 47 / + ( - - col2 ) AS col2 FROM tab0
----
0
1
4

query I rowsort
SELECT - - col2 * col0 + col2 + - + 2 + - - col0 + - 57 FROM tab2 AS cor0
----
1068
2605
4424

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1047
SELECT ALL COUNT( * ) AS col1, 6 col2 FROM tab2 cor0
----
3
6

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1048
SELECT ALL + + 60 + + + SUM( ALL - - 27 ) * + SUM( DISTINCT col2 ) * + 13 AS col2 FROM tab1 AS cor0
----
234879

skipif mysql # not compatible
query I rowsort label-1048
SELECT ALL + + 60 + + + SUM ( ALL - - 27 ) * + SUM ( DISTINCT col2 ) * + 13 AS col2 FROM tab1 AS cor0
----
234879

query I rowsort
SELECT + - col2 + + + 16 AS col1 FROM tab1 AS cor0
----
-43
-52
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 8 col1, + col0 AS col1 FROM tab2 AS cor0
----
-8
46
-8
64
-8
75

query I rowsort
SELECT col2 + - 47 - + - 74 FROM tab1 AS cor0
----
123
86
95

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

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

query I rowsort
SELECT - 72 + col1 * + 66 * - 14 FROM tab2 cor0
----
-47196
-61980
-71220

query I rowsort
SELECT col0 * - col0 + - ( - col2 ) * - 95 FROM tab0 AS cor0
----
-18814
-4690
-8519

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL NOT IN ( - col0, + 73 * + 80 - - col0, + - 8, - col1, - 44, + col2, - + 73 * - col2 )
----

query I rowsort
SELECT 13 AS col0 FROM tab2 AS cor0 WHERE + 55 IS NOT NULL
----
13
13
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1057
SELECT ALL + MAX( + CAST( CAST( col1 AS SIGNED ) AS SIGNED ) ) FROM tab1
----
47

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

query I rowsort
SELECT 97 + - - col0 AS col0 FROM tab0 WHERE + col1 NOT BETWEEN + + 1 AND NULL
----

query I rowsort
SELECT DISTINCT 58 * + - col2 FROM tab1
----
-3422
-3944
-5568

query I rowsort
SELECT DISTINCT + 59 * + + col1 + + - 17 AS col2 FROM tab0 AS cor0
----
1222
42
4762

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 32 col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-32

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1067
SELECT + 88 DIV - col2 col0 FROM tab1 cor0
----
-1
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1067
SELECT + 88 / - col2 col0 FROM tab1 cor0
----
-1
-1
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1068
SELECT DISTINCT 55 DIV - SUM( DISTINCT + 47 ) AS col1 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1068
SELECT DISTINCT 55 / - SUM ( DISTINCT + 47 ) AS col1 FROM tab1 AS cor0
----
-1

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 64, 9 col2 FROM tab0 AS cor0
----
-64
9
-64
9
-64
9

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1072
SELECT + 44 * col0 + CAST( + 47 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
2071
2863
3347

skipif mysql # not compatible
query I rowsort label-1072
SELECT + 44 * col0 + CAST ( + 47 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
2071
2863
3347

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

query I rowsort
SELECT 68 * + ( + 0 ) * col2 + col0 AS col0 FROM tab2
----
46
64
75

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1077
SELECT DISTINCT - SUM( DISTINCT - - 98 ) AS col2 FROM tab2 cor0
----
-98

skipif mysql # not compatible
query I rowsort label-1077
SELECT DISTINCT - SUM ( DISTINCT - - 98 ) AS col2 FROM tab2 cor0
----
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1078
SELECT + - col0 + + + CAST( - col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-108
-96
-98

skipif mysql # not compatible
query I rowsort label-1078
SELECT + - col0 + + + CAST ( - col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-108
-96
-98

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1080
SELECT + 30 DIV 13 FROM tab2
----
2
2
2

skipif mysql # not compatible
query I rowsort label-1080
SELECT + 30 / 13 FROM tab2
----
2
2
2

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

skipif mysql # not compatible
query I rowsort label-1081
SELECT ALL + MIN ( + - 20 ) FROM tab0 AS cor0 WHERE col1 IS NULL
----
NULL

query I rowsort
SELECT ALL - col0 + - - ( + - col2 ) AS col0 FROM tab0 AS cor0
----
-196
-62
-97

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 36 NOT IN ( col0 + - 11, + 66 + - 20, col1, 60 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1085
SELECT ALL + - 89 * + CAST( - + 67 AS SIGNED ) * col2 FROM tab0 cor0
----
280261
590337
59630

skipif mysql # not compatible
query I rowsort label-1085
SELECT ALL + - 89 * + CAST ( - + 67 AS INTEGER ) * col2 FROM tab0 cor0
----
280261
590337
59630

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

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

query I rowsort
SELECT + - col2 * - ( + - col2 ) + + 53 FROM tab1 AS cor0
----
-3428
-4571
-9163

query II rowsort
SELECT DISTINCT 50 + col0 AS col0, 95 * - 3 FROM tab0
----
137
-285
147
-285
65
-285

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL > + col0
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NOT col2 IS NULL )
----

query I rowsort
SELECT - ( + - col2 ) + - + col2 AS col2 FROM tab0
----
0
0
0

query II rowsort
SELECT ALL col2 + - + col1 AS col2, col2 * 70 * + + 78 FROM tab2
----
-28
125580
-37
218400
-9
316680

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1094
SELECT + COUNT( * ) + + - COUNT( * ) DIV + - COUNT( * ) AS col0 FROM tab1
----
4

skipif mysql # not compatible
query I rowsort label-1094
SELECT + COUNT ( * ) + + - COUNT ( * ) / + - COUNT ( * ) AS col0 FROM tab1
----
4

query I rowsort
SELECT DISTINCT col1 + + + col0 - - col2 FROM tab1
----
149
161
206

onlyif mysql # aggregate syntax: 
query I rowsort label-1096
SELECT ALL - COUNT( DISTINCT + + 88 ) FROM tab0 WHERE NOT NULL >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-1096
SELECT ALL - COUNT ( DISTINCT + + 88 ) FROM tab0 WHERE NOT NULL >= NULL
----
0

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1098
SELECT + col0 DIV + - col0 AS col2, col1 FROM tab2 AS cor0
----
-1
51
-1
67
-1
77

skipif mysql # not compatible
query II rowsort label-1098
SELECT + col0 / + - col0 AS col2, col1 FROM tab2 AS cor0
----
-1
51
-1
67
-1
77

query I rowsort
SELECT ALL col1 * col0 * + - col0 FROM tab1 AS cor0
----
-36125
-36414
-389207

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1101
SELECT DISTINCT + 18 DIV col1 AS col2 FROM tab0 cor0
----
0
18

skipif mysql # not compatible
query I rowsort label-1101
SELECT DISTINCT + 18 / col1 AS col2 FROM tab0 cor0
----
0
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1102
SELECT 9 DIV - + COUNT( * ) + 52 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
49

skipif mysql # not compatible
query I rowsort label-1102
SELECT 9 / - + COUNT ( * ) + 52 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
49

query I rowsort
SELECT - + col0 * - 35 FROM tab0 AS cor0
----
3045
3395
525

query I rowsort
SELECT DISTINCT 43 * 91 FROM tab2 AS cor0
----
3913

query I rowsort
SELECT + - col1 * 86 AS col2 FROM tab0 AS cor0
----
-1806
-6966
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-1106
SELECT ALL COUNT( DISTINCT - 4 ) AS col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-1106
SELECT ALL COUNT ( DISTINCT - 4 ) AS col0 FROM tab0 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1107
SELECT DISTINCT - 96 * COUNT( * ) FROM tab1 AS cor0
----
-288

skipif mysql # not compatible
query I rowsort label-1107
SELECT DISTINCT - 96 * COUNT ( * ) FROM tab1 AS cor0
----
-288

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1109
SELECT DISTINCT ( ( - col2 ) ) DIV + col1 + + col0 + + + col2 AS col0 FROM tab0
----
62
97

skipif mysql # not compatible
query I rowsort label-1109
SELECT DISTINCT ( ( - col2 ) ) / + col1 + + col0 + + + col2 AS col0 FROM tab0
----
62
97

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1111
SELECT ALL col0 DIV + 28 FROM tab1
----
1
3
3

skipif mysql # not compatible
query I rowsort label-1111
SELECT ALL col0 / + 28 FROM tab1
----
1
3
3

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

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

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

skipif mysql # not compatible
query I rowsort label-1114
SELECT ALL + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1115
SELECT - col1 col2 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col1 * ( + col2 ), col1 + - CAST( NULL AS SIGNED ) / - col1 * 70, 45, + col1 / - 85 - - ( col2 ) )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1115
SELECT - col1 col2 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col1 * ( + col2 ), col1 + - CAST ( NULL AS INTEGER ) / - col1 * 70, 45, + col1 / - 85 - - ( col2 ) )
----

query II rowsort
SELECT DISTINCT 72, - col1 + col0 FROM tab2 AS cor0 WHERE + col2 IS NULL
----

query II rowsort
SELECT - 22 AS col2, 38 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1118
SELECT DISTINCT COUNT( * ) * - MIN( DISTINCT + + col0 ) + + ( - COUNT( * ) ) + - - 70 FROM tab1 AS cor0
----
-86

skipif mysql # not compatible
query I rowsort label-1118
SELECT DISTINCT COUNT ( * ) * - MIN ( DISTINCT + + col0 ) + + ( - COUNT ( * ) ) + - - 70 FROM tab1 AS cor0
----
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1119
SELECT CAST( COUNT( * ) AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE col2 * + col2 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-1119
SELECT CAST ( COUNT ( * ) AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE col2 * + col2 < NULL
----
0

query IIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 81 IS NOT NULL
----

query I rowsort
SELECT ALL + + 30 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

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

query I rowsort
SELECT 75 + - + 26 * col1 FROM tab1
----
-1147
-289
-55

query I rowsort
SELECT + 87 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

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

query I rowsort
SELECT - - col1 FROM tab0 AS cor0 WHERE - col1 * - + 30 / + + col0 IS NOT NULL
----
1
21
81

query I rowsort
SELECT + col0 * - 63 * - col1 + 23 AS col2 FROM tab1 AS cor0
----
26798
269474
45005

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1128
SELECT ALL - CAST( + + ( - col0 ) AS SIGNED ) FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-1128
SELECT ALL - CAST ( + + ( - col0 ) AS INTEGER ) FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT col2 + + 8 + + - col0 FROM tab0 AS cor0
----
-69
10
40

query I rowsort
SELECT + + 35 AS col2 FROM tab1 AS cor0
----
35
35
35

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

query I rowsort
SELECT ALL - 51 + + 94 * + 31 FROM tab0 AS cor0
----
2863
2863
2863

query I rowsort
SELECT ALL - + col1 + + - col2 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
-117
-125
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-1134
SELECT ALL ( col1 ) * col2 DIV 3 FROM tab2
----
1026
1295
391

skipif mysql # not compatible
query I rowsort label-1134
SELECT ALL ( col1 ) * col2 / 3 FROM tab2
----
1026
1295
391

query I rowsort
SELECT DISTINCT - col2 - 58 FROM tab2
----
-116
-81
-98

query I rowsort
SELECT ALL + col1 - + col0 * 21 FROM tab2
----
-1267
-1508
-915

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

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

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

skipif mysql # not compatible
query I rowsort label-1139
SELECT + COUNT ( * ) / ( 29 ) AS col2 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1140
SELECT ALL + COUNT( * ) * SUM( - col1 ) * - + ( + + 39 ) FROM tab1
----
7722

skipif mysql # not compatible
query I rowsort label-1140
SELECT ALL + COUNT ( * ) * SUM ( - col1 ) * - + ( + + 39 ) FROM tab1
----
7722

onlyif mysql # aggregate syntax: 
query II rowsort label-1141
SELECT + COUNT( ALL col1 ) AS col2, + 26 AS col2 FROM tab0
----
3
26

skipif mysql # not compatible
query II rowsort label-1141
SELECT + COUNT ( ALL col1 ) AS col2, + 26 AS col2 FROM tab0
----
3
26

onlyif mysql # aggregate syntax: 
query I rowsort label-1142
SELECT - MAX( + - 71 ) AS col1 FROM tab2
----
71

skipif mysql # not compatible
query I rowsort label-1142
SELECT - MAX ( + - 71 ) AS col1 FROM tab2
----
71

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1144
SELECT ALL * FROM tab2 cor0 WHERE NOT - 9 / - col2 NOT BETWEEN - CAST( + 35 AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-1144
SELECT ALL * FROM tab2 cor0 WHERE NOT - 9 / - col2 NOT BETWEEN - CAST ( + 35 AS INTEGER ) AND NULL
----

query II rowsort
SELECT ALL + 26 AS col0, - col2 * + 76 - col1 FROM tab2 AS cor0
----
26
-1799
26
-3117
26
-4475

query II rowsort
SELECT DISTINCT 94 AS col0, 19 FROM tab2 AS cor0
----
94
19

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

query I rowsort
SELECT col0 + + + col0 FROM tab1 WHERE NOT ( NOT ( NULL ) IS NULL )
----
102
170
182

onlyif mysql # DIV for integer division: 
query I rowsort label-1149
SELECT DISTINCT - col0 DIV col0 * col0 FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-1149
SELECT DISTINCT - col0 / col0 * col0 FROM tab1
----
-51
-85
-91

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1151
SELECT 24 DIV + col0 + - 55 DIV 76 + - + col2 + + - 81 col0 FROM tab2
----
-104
-121
-139

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1151
SELECT 24 / + col0 + - 55 / 76 + - + col2 + + - 81 col0 FROM tab2
----
-104
-121
-139

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

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

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

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

query I rowsort
SELECT DISTINCT col2 + + 54 * + col0 FROM tab0
----
4708
5337
857

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1159
SELECT + 86 - - col2 + 48 + + CAST( NULL AS SIGNED ) AS col2, col0 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-1159
SELECT + 86 - - col2 + 48 + + CAST ( NULL AS INTEGER ) AS col2, col0 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 + + - 59 - - 28 col1 FROM tab1 AS cor0
----
-127
-90
-99

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT IN ( col0 + col2 + + 97 * + col0 )
----

query I rowsort
SELECT DISTINCT col2 + - - col0 AS col2 FROM tab2
----
104
133
69

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

query I rowsort
SELECT 33 + + 86 + - - col0 AS col0 FROM tab0
----
134
206
216

query I rowsort
SELECT ALL - 19 * col0 - col0 AS col1 FROM tab1
----
-1020
-1700
-1820

query I rowsort
SELECT - col1 * col2 + - - 18 FROM tab1
----
-1326
-277
-3178

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1169
SELECT DISTINCT ( - + col0 ) - 64 / + CAST( NULL AS SIGNED ) AS col1, + col2 AS col1 FROM tab0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-1169
SELECT DISTINCT ( - + col0 ) - 64 / + CAST ( NULL AS INTEGER ) AS col1, + col2 AS col1 FROM tab0
----
NULL
10
NULL
47
NULL
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 51 col2 FROM tab1
----
-51
-51
-51

query I rowsort
SELECT DISTINCT 41 FROM tab1 AS cor0 WHERE NULL = NULL
----

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

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

query II rowsort
SELECT ALL - col0, 7 AS col0 FROM tab1
----
-51
7
-85
7
-91
7

onlyif mysql # aggregate syntax: 
query I rowsort label-1174
SELECT ALL + COUNT( * ) * - 78 AS col0 FROM tab2
----
-234

skipif mysql # not compatible
query I rowsort label-1174
SELECT ALL + COUNT ( * ) * - 78 AS col0 FROM tab2
----
-234

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

query I rowsort
SELECT + 8 * - col1 + - col0 * - col2 * - 18 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) <= - - col1 * + 12
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1177
SELECT ALL - + COUNT( DISTINCT + 59 ) FROM tab1 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1177
SELECT ALL - + COUNT ( DISTINCT + 59 ) FROM tab1 cor0
----
-1

query I rowsort
SELECT - 98 + + - 56 FROM tab0 AS cor0
----
-154
-154
-154

query II rowsort
SELECT + - col2 + + + col1 * + 12, - 16 AS col1 FROM tab1 cor0
----
1
-16
496
-16
72
-16

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1180
SELECT - CAST( NULL AS DECIMAL ) * 11 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1180
SELECT - CAST ( NULL AS REAL ) * 11 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * + - ( + col0 ) * + col2 AS col2 FROM tab1
----
-249696
-426275
-563108

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

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

skipif mysql # not compatible
query I rowsort label-1183
SELECT ALL col1 / + + col2 AS col2 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1184
SELECT - CAST( + + col0 AS SIGNED ) FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-1184
SELECT - CAST ( + + col0 AS INTEGER ) FROM tab1
----
-51
-85
-91

query I rowsort
SELECT 52 * + - 79 FROM tab2
----
-4108
-4108
-4108

query III rowsort
SELECT ALL + col1 AS col0, 52 AS col2, - 29 FROM tab2
----
9 values hashing to 868b34ff7f2d153d6c7435f802683048

query I rowsort
SELECT - col0 / + + 43 FROM tab0 WHERE col0 / - 99 >= - 54 * - col2 * + col2 - + + 98 + col2
----

query I rowsort
SELECT DISTINCT + col0 - col2 FROM tab1 AS cor0 WHERE NULL > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 95 col0, - ( + 75 ) FROM tab2 AS cor0
----
95
-75
95
-75
95
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-1190
SELECT DISTINCT + + 84 * SUM( col1 ) + - + 0 AS col0 FROM tab0 AS cor0
----
8652

skipif mysql # not compatible
query I rowsort label-1190
SELECT DISTINCT + + 84 * SUM ( col1 ) + - + 0 AS col0 FROM tab0 AS cor0
----
8652

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1191
SELECT DISTINCT - CAST( 98 AS SIGNED ) + - col2 + 69 FROM tab0 AS cor0
----
-128
-39
-76

skipif mysql # not compatible
query I rowsort label-1191
SELECT DISTINCT - CAST ( 98 AS INTEGER ) + - col2 + 69 FROM tab0 AS cor0
----
-128
-39
-76

query I rowsort
SELECT 94 * col0 * + col2 + - col1 FROM tab2
----
240563
408833
99401

query I rowsort
SELECT DISTINCT + 20 + col0 AS col2 FROM tab1
----
105
111
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 98 col1 FROM tab0 AS cor0 WHERE + col2 = NULL
----

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

query I rowsort
SELECT DISTINCT 89 + col1 + col1 AS col1 FROM tab2 AS cor0
----
191
223
243

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1198
SELECT ALL MIN( DISTINCT + col2 ) - 74 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-1198
SELECT ALL MIN ( DISTINCT + col2 ) - 74 FROM tab2
----
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 0, + 58 col1 FROM tab0 WHERE NOT NULL = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1200
SELECT COUNT( * ) * - 7 FROM tab2, tab2 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-1200
SELECT COUNT ( * ) * - 7 FROM tab2, tab2 AS cor0
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1201
SELECT + col1 FROM tab1 WHERE NOT + - CAST( + 45 AS SIGNED ) > col0 * + col0 + + 40
----
14
47
5

skipif mysql # not compatible
query I rowsort label-1201
SELECT + col1 FROM tab1 WHERE NOT + - CAST ( + 45 AS INTEGER ) > col0 * + col0 + + 40
----
14
47
5

query I rowsort
SELECT + col2 * 43 AS col2 FROM tab2 AS cor0
----
1720
2494
989

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1203
SELECT - CAST( NULL AS SIGNED ) / - col0 * + col1 col2, ( - + col1 ) * + + ( - col0 ) FROM tab0 AS cor0
----
NULL
1215
NULL
1827
NULL
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1203
SELECT - CAST ( NULL AS INTEGER ) / - col0 * + col1 col2, ( - + col1 ) * + + ( - col0 ) FROM tab0 AS cor0
----
NULL
1215
NULL
1827
NULL
97

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

query I rowsort
SELECT - ( col1 ) AS col1 FROM tab0 WHERE NOT col2 - + col0 >= 56 - - 10
----
-1
-21
-81

query I rowsort
SELECT DISTINCT + 44 AS col2 FROM tab1 WHERE col1 NOT BETWEEN NULL AND + col1
----

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

query I rowsort
SELECT ALL 74 AS col2 FROM tab2
----
74
74
74

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1210
SELECT DISTINCT col0 DIV + col0 FROM tab1 WHERE col1 NOT BETWEEN ( col2 ) AND col1
----
1

skipif mysql # not compatible
query I rowsort label-1210
SELECT DISTINCT col0 / + col0 FROM tab1 WHERE col1 NOT BETWEEN ( col2 ) AND col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1211
SELECT + COUNT( * ) - - 84 AS col1 FROM tab1 WHERE NOT 71 * 9 <> ( + col0 )
----
84

skipif mysql # not compatible
query I rowsort label-1211
SELECT + COUNT ( * ) - - 84 AS col1 FROM tab1 WHERE NOT 71 * 9 <> ( + col0 )
----
84

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

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

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

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

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

query I rowsort
SELECT + col0 * - col2 AS col0 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
-1058
-2560
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-1217
SELECT 28 * + COUNT( * ) AS col0 FROM tab0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1217
SELECT 28 * + COUNT ( * ) AS col0 FROM tab0 WHERE NOT ( NULL ) IS NULL
----
0

query I rowsort
SELECT col1 AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
14
47
5

query I rowsort
SELECT - ( + col0 ) FROM tab2 WHERE 39 * - col2 IN ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1220
SELECT 93 * + 38 + - COUNT( 42 ) AS col1 FROM tab1
----
3531

skipif mysql # not compatible
query I rowsort label-1220
SELECT 93 * + 38 + - COUNT ( 42 ) AS col1 FROM tab1
----
3531

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

query III rowsort
SELECT ALL * FROM tab1 WHERE - col1 NOT IN ( 63 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col2 - - col1 * col0 AS col0 FROM tab0
----
1262
1837
196

query I rowsort
SELECT 1 + - col2 AS col1 FROM tab2 WHERE ( NULL ) IS NULL
----
-22
-39
-57

query I rowsort
SELECT col2 * 20 AS col2 FROM tab0
----
1980
200
940

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 18 BETWEEN NULL AND + col0 - col1 / + 66
----

query I rowsort
SELECT 37 * 29 AS col2 FROM tab1
----
1073
1073
1073

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

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

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

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

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

query I rowsort
SELECT DISTINCT + 47 - - col0 AS col2 FROM tab0 AS cor0
----
134
144
62

query I rowsort
SELECT ALL col1 * ( col1 * col2 ) AS col1 FROM tab2
----
237160
260362
59823

query I rowsort
SELECT DISTINCT + 21 * + col0 AS col1 FROM tab1
----
1071
1785
1911

query I rowsort
SELECT + col0 + col1 FROM tab2 WHERE NULL = - col0
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2 WHERE NOT ( NULL ) < NULL
----

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

query III rowsort
SELECT * FROM tab2 WHERE NULL <> 97 * - 14
----

query I rowsort
SELECT ALL 48 * - col1 FROM tab2 cor0
----
-2448
-3216
-3696

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + + col0 col0 FROM tab1 AS cor0
----
138
65
90

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - col1 ) >= col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + ( - col1 ) * - col2 AS col0 FROM tab2 AS cor0
----
1173
3080
3886

onlyif mysql # DIV for integer division: 
query I rowsort label-1243
SELECT DISTINCT col1 DIV + 75 + col0 col2 FROM tab0 AS cor0
----
16
87
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1243
SELECT DISTINCT col1 / + 75 + col0 col2 FROM tab0 AS cor0
----
16
87
97

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 10 + + col2 col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
106
69
78

query I rowsort
SELECT DISTINCT + col2 * 84 FROM tab1 AS cor0
----
4956
5712
8064

query I rowsort
SELECT ALL col2 FROM tab1 WHERE NOT NULL NOT IN ( 20 )
----

query I rowsort
SELECT ALL + col2 * - 0 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1249
SELECT + MAX( - + col0 ) DIV + 28 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1249
SELECT + MAX ( - + col0 ) / + 28 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1250
SELECT ALL COUNT( * ) AS col1 FROM tab0 WHERE 40 / col1 > ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-1250
SELECT ALL COUNT ( * ) AS col1 FROM tab0 WHERE 40 / col1 > ( NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1251
SELECT ALL + 31 * + ( COUNT( * ) ) AS col2 FROM tab0
----
93

skipif mysql # not compatible
query I rowsort label-1251
SELECT ALL + 31 * + ( COUNT ( * ) ) AS col2 FROM tab0
----
93

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

query III rowsort
SELECT ALL * FROM tab1 WHERE ( col0 ) NOT BETWEEN + col1 / 20 + col0 AND - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query I rowsort
SELECT - col1 * + col2 + 85 FROM tab0 AS cor0
----
-125
-14
-3722

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

skipif mysql # not compatible
query II rowsort label-1256
SELECT DISTINCT - COUNT ( * ), CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col2 FROM tab2
----
-3
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1257
SELECT DISTINCT COUNT( * ) AS col2 FROM tab1 WHERE ( NOT col2 BETWEEN ( NULL ) AND 59 )
----
2

skipif mysql # not compatible
query I rowsort label-1257
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab1 WHERE ( NOT col2 BETWEEN ( NULL ) AND 59 )
----
2

query II rowsort
SELECT DISTINCT 56, 39 + - col2 AS col0 FROM tab1 AS cor0
----
56
-20
56
-29
56
-57

query I rowsort
SELECT 85 - 20 AS col0 FROM tab0 cor0 WHERE NOT + col1 IS NULL
----
65
65
65

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1261
SELECT 73 + - COUNT( * ) AS col1 FROM tab2 cor0
----
70

skipif mysql # not compatible
query I rowsort label-1261
SELECT 73 + - COUNT ( * ) AS col1 FROM tab2 cor0
----
70

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

query I rowsort
SELECT DISTINCT + col1 + + col2 + - - col2 * ( - 36 + - 43 ) FROM tab2 AS cor0
----
-1743
-3043
-4457

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

query I rowsort
SELECT DISTINCT - 58 FROM tab1 AS cor0 WHERE NOT + col0 >= + + col1
----

query I rowsort
SELECT ALL + - col1 + + - col1 * col2 AS col1 FROM tab2 AS cor0
----
-1224
-3157
-3953

query II rowsort
SELECT - + col2, - 15 AS col1 FROM tab2 AS cor0
----
-23
-15
-40
-15
-58
-15

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

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

query I rowsort
SELECT col1 * 89 FROM tab2 WHERE NULL = - 25
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 col1 FROM tab1 WHERE NOT ( 10 ) > ( NULL )
----

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1274
SELECT ( 65 ) * CAST( NULL AS SIGNED ) + - COUNT( * ) AS col2 FROM tab1 WHERE - col0 NOT IN ( - col0 * + 41 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1274
SELECT ( 65 ) * CAST ( NULL AS INTEGER ) + - COUNT ( * ) AS col2 FROM tab1 WHERE - col0 NOT IN ( - col0 * + 41 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1275
SELECT col1 AS col2 FROM tab1 WHERE + col0 = - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-1275
SELECT col1 AS col2 FROM tab1 WHERE + col0 = - - CAST ( NULL AS INTEGER )
----

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

query I rowsort
SELECT DISTINCT - 15 * - ( - - 47 ) FROM tab0
----
705

query III rowsort
SELECT * FROM tab1 WHERE ( + 16 ) * + 61 IN ( col2 )
----

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 BETWEEN NULL AND 42 * 52
----

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

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

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

query I rowsort
SELECT + 62 * + + 89 + ( - col2 ) * 30 FROM tab2 AS cor0
----
3778
4318
4828

onlyif mysql # aggregate syntax: 
query I rowsort label-1284
SELECT DISTINCT - - COUNT( * ) * + 80 * + 80 + - 83 AS col0 FROM tab0 AS cor0
----
19117

skipif mysql # not compatible
query I rowsort label-1284
SELECT DISTINCT - - COUNT ( * ) * + 80 * + 80 + - 83 AS col0 FROM tab0 AS cor0
----
19117

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

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

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT NULL >= ( NULL )
----

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + - col2 col0 FROM tab0 AS cor0
----
-210
-3807
-99

query I rowsort
SELECT 52 * - + col1 FROM tab1 AS cor0
----
-2444
-260
-728

onlyif mysql # DIV for integer division: 
query I rowsort label-1291
SELECT - 55 DIV + + 51 AS col2 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1291
SELECT - 55 / + + 51 AS col2 FROM tab2 AS cor0
----
-1
-1
-1

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

query I rowsort
SELECT - col0 * - - col1 AS col2 FROM tab2 cor0
----
-2346
-4928
-5025

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1296
SELECT ALL - col0 + col0 AS col2 FROM tab1 WHERE NULL IN ( + col2, CAST( + col0 AS DECIMAL ) )
----

skipif mysql # not compatible
query I rowsort label-1296
SELECT ALL - col0 + col0 AS col2 FROM tab1 WHERE NULL IN ( + col2, CAST ( + col0 AS REAL ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1297
SELECT ALL ( - 8 ) DIV - MAX( + + col2 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1297
SELECT ALL ( - 8 ) / - MAX ( + + col2 ) FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-1298
SELECT DISTINCT 94 DIV 88 AS col0, 12 - + col2 * - col2 * 15 * col0 AS col2 FROM tab0
----
1
130512
1
14260467
1
497037

skipif mysql # not compatible
query II rowsort label-1298
SELECT DISTINCT 94 / 88 AS col0, 12 - + col2 * - col2 * 15 * col0 AS col2 FROM tab0
----
1
130512
1
14260467
1
497037

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col0, - col1 AS col0 FROM tab0
----
15
-81
87
-21
97
-1

query II rowsort
SELECT ALL + ( 56 ), + col1 AS col2 FROM tab0
----
56
1
56
21
56
81

query I rowsort
SELECT DISTINCT col1 * + 84 * col0 * - col1 AS col1 FROM tab0
----
-3222828
-8148
-8266860

query I rowsort
SELECT ALL - col0 * + 12 FROM tab0
----
-1044
-1164
-180

query I rowsort
SELECT + ( + col1 ) AS col1 FROM tab1 WHERE NOT ( - 1 ) IS NULL
----
14
47
5

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

query I rowsort
SELECT - - col2 * + 64 * 56 + + - col0 AS col2 FROM tab1 AS cor0
----
211371
243621
344013

query II rowsort
SELECT ALL + col2, - col2 + - - 31 FROM tab1 AS cor0
----
59
-28
68
-37
96
-65

query I rowsort
SELECT ALL - col2 * col0 * + 75 * 33 FROM tab2
----
-10766250
-2618550
-6336000

onlyif mysql # aggregate syntax: 
query I rowsort label-1308
SELECT ALL + + COUNT( * ) + + 23 AS col1 FROM tab2 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-1308
SELECT ALL + + COUNT ( * ) + + 23 AS col1 FROM tab2 AS cor0
----
26

onlyif mysql # DIV for integer division: 
query II rowsort label-1309
SELECT 13 DIV - - 77, - 27 AS col1 FROM tab0 AS cor0
----
0
-27
0
-27
0
-27

skipif mysql # not compatible
query II rowsort label-1309
SELECT 13 / - - 77, - 27 AS col1 FROM tab0 AS cor0
----
0
-27
0
-27
0
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-1310
SELECT + + COUNT( DISTINCT + - 35 ) FROM tab0 AS cor0 WHERE NULL <> - col1
----
0

skipif mysql # not compatible
query I rowsort label-1310
SELECT + + COUNT ( DISTINCT + - 35 ) FROM tab0 AS cor0 WHERE NULL <> - col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1311
SELECT ALL + - 76 + + COUNT( * ) - - COUNT( * ) + 99 FROM tab1 cor0
----
29

skipif mysql # not compatible
query I rowsort label-1311
SELECT ALL + - 76 + + COUNT ( * ) - - COUNT ( * ) + 99 FROM tab1 cor0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-1312
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE NULL <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-1312
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE NULL <= NULL
----
0

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

query I rowsort
SELECT ALL - 81 - + col1 AS col1 FROM tab1
----
-128
-86
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-1315
SELECT ALL 68 DIV 34 + + - col1 + + col2 + - - 74 + + col2 * + col2 + - 49 col2 FROM tab1
----
3562
4672
9325

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1315
SELECT ALL 68 / 34 + + - col1 + + col2 + - - 74 + + col2 * + col2 + - 49 col2 FROM tab1
----
3562
4672
9325

query I rowsort
SELECT ALL + 90 AS col1 FROM tab0
----
90
90
90

query I rowsort
SELECT - 50 + - + ( + + col0 ) FROM tab1
----
-101
-135
-141

onlyif mysql # DIV for integer division: 
query I rowsort label-1318
SELECT DISTINCT + 13 DIV + 88 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1318
SELECT DISTINCT + 13 / + 88 FROM tab0
----
0

query III rowsort
SELECT * FROM tab1 WHERE - + 7 NOT IN ( - 99 * + + col2, + 64 * - col0 * + + 88 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1320
SELECT + COUNT( * ) + + 25 AS col0 FROM tab0
----
28

skipif mysql # not compatible
query I rowsort label-1320
SELECT + COUNT ( * ) + + 25 AS col0 FROM tab0
----
28

query I rowsort
SELECT + - ( + col0 ) FROM tab0 WHERE + + 33 * 59 IS NOT NULL
----
-15
-87
-97

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

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

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

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

query I rowsort
SELECT + - 20 * 43 FROM tab0 AS cor0
----
-860
-860
-860

query I rowsort
SELECT ALL - col0 * 45 + + 12 + col2 AS col2 FROM tab1 AS cor0
----
-2187
-3754
-4015

query I rowsort
SELECT ALL + + col1 * + - col0 FROM tab1 AS cor0
----
-425
-4277
-714

query I rowsort
SELECT ALL - 54 * - - col0 FROM tab1
----
-2754
-4590
-4914

query I rowsort
SELECT 56 * col2 FROM tab0
----
2632
5544
560

query III rowsort
SELECT ALL * FROM tab2 WHERE - col1 / + 36 * - col2 * + col0 NOT BETWEEN - - col1 AND ( + 58 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE 16 * - 91 < NULL AND ( NULL ) IN ( + col2 * + col1 + + 35 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1332
SELECT + - MAX( ALL col2 ) + 95 FROM tab2 AS cor0 WHERE NOT col1 - + 16 + - + col0 <= - col0 / - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1332
SELECT + - MAX ( ALL col2 ) + 95 FROM tab2 AS cor0 WHERE NOT col1 - + 16 + - + col0 <= - col0 / - col2
----
NULL

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1333
SELECT DISTINCT - COUNT ( * ) + MAX ( ALL - 49 ) col0 FROM tab1 AS cor0
----
-52

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - 2 * + - col1 * 16 col2 FROM tab1 AS cor0
----
6272
70688
800

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

query I rowsort
SELECT 1 * col2 FROM tab0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1338
SELECT ALL COUNT( * ) * + COUNT( * ) FROM tab2 WHERE NOT col2 IS NULL
----
9

skipif mysql # not compatible
query I rowsort label-1338
SELECT ALL COUNT ( * ) * + COUNT ( * ) FROM tab2 WHERE NOT col2 IS NULL
----
9

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 6 + + col0 col1 FROM tab0 cor0
----
103
21
93

query I rowsort
SELECT + col2 * - - 49 + + col0 * 42 + + col1 AS col2 FROM tab0 AS cor0
----
3014
4165
8926

onlyif mysql # aggregate syntax: 
query II rowsort label-1342
SELECT ALL 71, COUNT( * ) + 43 col2 FROM tab0 cor0
----
71
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1342
SELECT ALL 71, COUNT ( * ) + 43 col2 FROM tab0 cor0
----
71
46

onlyif mysql # DIV for integer division: 
query I rowsort label-1343
SELECT - col0 + col2 DIV + 77 + + col2 AS col1 FROM tab2 AS cor0
----
-17
-23
-24

skipif mysql # not compatible
query I rowsort label-1343
SELECT - col0 + col2 / + 77 + + col2 AS col1 FROM tab2 AS cor0
----
-17
-23
-24

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

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

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

query II rowsort
SELECT - col0 AS col0, - 90 + + + col0 AS col0 FROM tab0 AS cor0
----
-15
-75
-87
-3
-97
7

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL NOT IN ( - col1, 80 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1348
SELECT - + 47 * + ( + col2 ) * - - col1 DIV ( col1 ) FROM tab2 AS cor0
----
-1081
-1880
-2726

skipif mysql # not compatible
query I rowsort label-1348
SELECT - + 47 * + ( + col2 ) * - - col1 / ( col1 ) FROM tab2 AS cor0
----
-1081
-1880
-2726

query I rowsort
SELECT - 8 * + 67 FROM tab2 AS cor0 WHERE col0 + - + col0 >= NULL
----

query I rowsort
SELECT ALL - ( col1 ) / col0 FROM tab0 cor0 WHERE - 79 * - 66 * ( + 72 ) IS NULL
----

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1354
SELECT + 95 * - 7 - + ( + 88 ) + - ( + - 95 ) * 64 DIV + - col1 + - col0 FROM tab0 AS cor0
----
-1129
-6930
-843

skipif mysql # not compatible
query I rowsort label-1354
SELECT + 95 * - 7 - + ( + 88 ) + - ( + - 95 ) * 64 / + - col1 + - col0 FROM tab0 AS cor0
----
-1129
-6930
-843

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

query I rowsort
SELECT ALL + 57 + - 0 AS col1 FROM tab0 AS cor0
----
57
57
57

query I rowsort
SELECT + col0 + + - col0 + - col2 FROM tab1 cor0
----
-59
-68
-96

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) = ( - 85 ) * - col2 / + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1359
SELECT - MAX( col2 ) - + 77 FROM tab1 AS cor0 WHERE NOT NULL <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1359
SELECT - MAX ( col2 ) - + 77 FROM tab1 AS cor0 WHERE NOT NULL <> NULL
----
NULL

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

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

query I rowsort
SELECT ALL - 76 FROM tab0 cor0
----
-76
-76
-76

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

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1366
SELECT DISTINCT COUNT ( - + 3 ) col2 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1367
SELECT ALL - MAX( + 79 ) AS col1 FROM tab1
----
-79

skipif mysql # not compatible
query I rowsort label-1367
SELECT ALL - MAX ( + 79 ) AS col1 FROM tab1
----
-79

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1369
SELECT + CAST( - - 39 AS SIGNED ) + col2 + + - col2 * - - 78 * - - col0 FROM tab0 cor0
----
-54904
-67811
-748896

skipif mysql # not compatible
query I rowsort label-1369
SELECT + CAST ( - - 39 AS INTEGER ) + col2 + + - col2 * - - 78 * - - col0 FROM tab0 cor0
----
-54904
-67811
-748896

onlyif mysql # aggregate syntax: 
query I rowsort label-1370
SELECT + COUNT( * ) + + + 92 AS col2 FROM tab2 AS cor0
----
95

skipif mysql # not compatible
query I rowsort label-1370
SELECT + COUNT ( * ) + + + 92 AS col2 FROM tab2 AS cor0
----
95

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - + col0 > + ( + 19 ) + + col1 AND 95 NOT BETWEEN NULL AND - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1373
SELECT DISTINCT - MIN( CAST( NULL AS SIGNED ) ) col1, 0 FROM tab1 AS cor0
----
NULL
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1373
SELECT DISTINCT - MIN ( CAST ( NULL AS INTEGER ) ) col1, 0 FROM tab1 AS cor0
----
NULL
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - ( col1 ) >= + col2
----

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

skipif mysql # not compatible
query I rowsort label-1375
SELECT + COUNT ( * ) * + COUNT ( ALL 71 ) FROM tab1
----
9

query II rowsort
SELECT col2 AS col0, - col2 FROM tab2
----
23
-23
40
-40
58
-58

query I rowsort
SELECT ALL + col0 AS col0 FROM tab1 AS cor0 WHERE NOT NULL >= NULL
----

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

skipif mysql # not compatible
query I rowsort label-1378
SELECT + + COUNT ( * ) - + CAST ( 33 AS INTEGER ) FROM tab1 AS cor0
----
-30

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

skipif mysql # not compatible
query I rowsort label-1379
SELECT ALL + + col0 + - + CAST ( + ( + + col1 ) AS INTEGER ) FROM tab0 AS cor0
----
-66
66
96

query I rowsort
SELECT - + 90 + - - col1 FROM tab1 AS cor0
----
-43
-76
-85

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1381
SELECT * FROM tab1 AS cor0 WHERE 96 + + - CAST( + col1 AS DECIMAL ) / 9 * 27 * col1 IS NULL
----

skipif mysql # not compatible
query III rowsort label-1381
SELECT * FROM tab1 AS cor0 WHERE 96 + + - CAST ( + col1 AS REAL ) / 9 * 27 * col1 IS NULL
----

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

query I rowsort
SELECT + 48 + + 48 AS col0 FROM tab2 AS cor0
----
96
96
96

query I rowsort
SELECT DISTINCT + ( col1 ) - 58 FROM tab0 AS cor0
----
-37
-57
23

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

query I rowsort
SELECT DISTINCT - 86 + + 34 * - 28 AS col1 FROM tab0
----
-1038

onlyif mysql # DIV for integer division: 
query I rowsort label-1387
SELECT ( + 94 ) DIV - col1 + + col1 col0 FROM tab1
----
-13
45
8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1387
SELECT ( + 94 ) / - col1 + + col1 col0 FROM tab1
----
-13
45
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 - + col2 col0, - col1 + - col0 + - col1 + col2 FROM tab2
----
28
-125
37
-178
9
-151

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 98 * col2 + + 38 col1 FROM tab2
----
2292
3958
5722

onlyif mysql # aggregate syntax: 
query I rowsort label-1390
SELECT DISTINCT ( + 22 ) * - COUNT( * ) * + 63 AS col1 FROM tab1
----
-4158

skipif mysql # not compatible
query I rowsort label-1390
SELECT DISTINCT ( + 22 ) * - COUNT ( * ) * + 63 AS col1 FROM tab1
----
-4158

onlyif mysql # aggregate syntax: 
query II rowsort label-1391
SELECT DISTINCT - 59 - 39 * COUNT( DISTINCT 19 ) AS col0, 11 AS col1 FROM tab2
----
-98
11

skipif mysql # not compatible
query II rowsort label-1391
SELECT DISTINCT - 59 - 39 * COUNT ( DISTINCT 19 ) AS col0, 11 AS col1 FROM tab2
----
-98
11

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

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

query I rowsort
SELECT ALL + col0 + - col2 + col0 * - 36 AS col1 FROM tab1 cor0
----
-1881
-3034
-3253

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

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

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

query I rowsort
SELECT DISTINCT - 45 * - - col0 AS col0 FROM tab1 AS cor0
----
-2295
-3825
-4095

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + 23 col0 FROM tab1
----
-1357
-1564
-2208

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1399
SELECT - COUNT( * ) * - COUNT( * ) + - - COUNT( ALL - 19 ) * - CAST( 48 AS SIGNED ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-351

skipif mysql # not compatible
query I rowsort label-1399
SELECT - COUNT ( * ) * - COUNT ( * ) + - - COUNT ( ALL - 19 ) * - CAST ( 48 AS INTEGER ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-351

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

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

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

query II rowsort
SELECT DISTINCT - 10 * + col1 * - 40, 82 AS col2 FROM tab0 AS cor0 WHERE NULL < ( NULL )
----

query I rowsort
SELECT + 12 / + + ( col2 ) + + col0 + col2 + 39 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1404
SELECT - MAX( DISTINCT - col0 ) FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-1404
SELECT - MAX ( DISTINCT - col0 ) FROM tab0 AS cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-1405
SELECT - MIN( col2 ) AS col1 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-1405
SELECT - MIN ( col2 ) AS col1 FROM tab1 AS cor0
----
-59

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1407
SELECT col1 DIV col1 * - 86 AS col0 FROM tab0
----
-86
-86
-86

skipif mysql # not compatible
query I rowsort label-1407
SELECT col1 / col1 * - 86 AS col0 FROM tab0
----
-86
-86
-86

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT + col0 <> - col0 * + + col2 / - + col2 - + - 67 + + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col2 + - 41 BETWEEN + col1 + + 19 * - 54 AND 80
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + col2 BETWEEN - col0 * - - col1 AND ( - 50 - 24 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

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

query I rowsort
SELECT ALL 35 * 49 * 68 * + + 13 FROM tab2
----
1516060
1516060
1516060

query I rowsort
SELECT + col1 + 7 AS col0 FROM tab2
----
58
74
84

onlyif mysql # aggregate syntax: 
query I rowsort label-1416
SELECT ALL + MAX( col0 ) + 55 AS col0 FROM tab2 AS cor0
----
130

skipif mysql # not compatible
query I rowsort label-1416
SELECT ALL + MAX ( col0 ) + 55 AS col0 FROM tab2 AS cor0
----
130

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 11 * - col1 * + + col0 col1 FROM tab2 AS cor0
----
25806
54208
55275

query I rowsort
SELECT - 58 * + 44 FROM tab1 AS cor0
----
-2552
-2552
-2552

query I rowsort
SELECT DISTINCT + ( + col0 ) + - - 5 AS col1 FROM tab1 AS cor0
----
56
90
96

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

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

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

query I rowsort
SELECT DISTINCT + 49 + + 95 - + col0 + - + ( col1 ) * + col1 AS col2 FROM tab2 AS cor0
----
-2503
-4420
-5849

query I rowsort
SELECT col0 - + 54 - col0 * + col1 FROM tab1 AS cor0
----
-394
-4240
-717

query I rowsort
SELECT ALL 15 - - 55 FROM tab1
----
70
70
70

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

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - - col2 ) IS NOT NULL
----

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1430
SELECT ALL - 90 AS col2, - COUNT( DISTINCT + col0 ) FROM tab2
----
-90
-3

skipif mysql # not compatible
query II rowsort label-1430
SELECT ALL - 90 AS col2, - COUNT ( DISTINCT + col0 ) FROM tab2
----
-90
-3

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

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

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

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

query I rowsort
SELECT DISTINCT + 20 * - col1 AS col0 FROM tab1
----
-100
-280
-940

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

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

query II rowsort
SELECT ALL + + ( + 89 ) AS col1, 56 + + + col0 AS col1 FROM tab2 AS cor0
----
89
102
89
120
89
131

query II rowsort
SELECT DISTINCT - col0 AS col2, col1 FROM tab1 cor0
----
-51
14
-85
5
-91
47

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1440
SELECT * FROM tab2 AS cor0 WHERE NOT col0 + CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-1440
SELECT * FROM tab2 AS cor0 WHERE NOT col0 + CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 * + 27 * 76 AS col0 FROM tab1 AS cor0
----
121068
139536
196992

query I rowsort
SELECT DISTINCT - col0 * - + col1 AS col1 FROM tab2 AS cor0
----
2346
4928
5025

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1444
SELECT ALL + COUNT( * ) FROM tab0 AS cor0 WHERE NOT 77 <= 52 + + col1 / - CAST( NULL AS DECIMAL )
----
0

skipif mysql # not compatible
query I rowsort label-1444
SELECT ALL + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT 77 <= 52 + + col1 / - CAST ( NULL AS REAL )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1445
SELECT ALL SUM( ALL + 30 ) AS col0, 37 FROM tab2
----
90
37

skipif mysql # not compatible
query II rowsort label-1445
SELECT ALL SUM ( ALL + 30 ) AS col0, 37 FROM tab2
----
90
37

query I rowsort
SELECT col1 + + - col1 + col0 AS col1 FROM tab2
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1447
SELECT DISTINCT ( - MAX( 98 ) ) AS col0 FROM tab1
----
-98

skipif mysql # not compatible
query I rowsort label-1447
SELECT DISTINCT ( - MAX ( 98 ) ) AS col0 FROM tab1
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-1448
SELECT DISTINCT MIN( DISTINCT + - 26 ) FROM tab2 AS cor0 WHERE + col2 IS NOT NULL
----
-26

skipif mysql # not compatible
query I rowsort label-1448
SELECT DISTINCT MIN ( DISTINCT + - 26 ) FROM tab2 AS cor0 WHERE + col2 IS NOT NULL
----
-26

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

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

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

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

query I rowsort
SELECT DISTINCT ( + + 76 ) * - + col1 * col1 AS col2 FROM tab2 AS cor0
----
-197676
-341164
-450604

query I rowsort
SELECT 64 + - 5 FROM tab2 cor0
----
59
59
59

onlyif mysql # aggregate syntax: 
query I rowsort label-1453
SELECT + COUNT( * ) FROM tab0 AS cor0 WHERE col1 + 28 + + col1 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-1453
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE col1 + 28 + + col1 IS NOT NULL
----
3

query I rowsort
SELECT DISTINCT + ( + 62 ) FROM tab0 cor0
----
62

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL >= NULL AND 30 * - + col1 <> NULL
----

query I rowsort
SELECT ALL 11 + + col2 AS col2 FROM tab1 AS cor0
----
107
70
79

query I rowsort
SELECT DISTINCT ( - 14 ) + - + col0 * + col0 * ( col2 ) FROM tab0
----
-10589
-75704
-931505

query I rowsort
SELECT DISTINCT - col0 * + + 13 * - + col0 AS col1 FROM tab2
----
27508
53248
73125

onlyif mysql # DIV for integer division: 
query I rowsort label-1459
SELECT ALL - col0 DIV - + col0 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1459
SELECT ALL - col0 / - + col0 FROM tab1
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1460
SELECT + COUNT( * ) FROM tab2 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1460
SELECT + COUNT ( * ) FROM tab2 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1461
SELECT SUM( ALL col2 ) * - SUM( - - col2 ) AS col2 FROM tab2
----
-14641

skipif mysql # not compatible
query I rowsort label-1461
SELECT SUM ( ALL col2 ) * - SUM ( - - col2 ) AS col2 FROM tab2
----
-14641

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 * + col2 <> + 84
----

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

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

query I rowsort
SELECT ALL 70 * col2 FROM tab0
----
3290
6930
700

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

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

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

query I rowsort
SELECT ALL + col2 + - 46 FROM tab2 AS cor0
----
-23
-6
12

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 29 col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
29
29
29

query I rowsort
SELECT DISTINCT + + 87 * ( - 7 ) * + - col1 FROM tab0 cor0
----
12789
49329
609

query I rowsort
SELECT col1 FROM tab0 cor0 WHERE NOT - ( + 16 ) < + 16
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1472
SELECT ALL ( - col2 ) DIV col0 + + 87 AS col0 FROM tab1 cor0
----
86
87
87

skipif mysql # not compatible
query I rowsort label-1472
SELECT ALL ( - col2 ) / col0 + + 87 AS col0 FROM tab1 cor0
----
86
87
87

onlyif mysql # aggregate syntax: 
query I rowsort label-1473
SELECT - - MIN( - col2 ) col1 FROM tab2 cor0
----
-58

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1474
SELECT - 9 * + COUNT( * ) FROM tab1 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-1474
SELECT - 9 * + COUNT ( * ) FROM tab1 AS cor0
----
-27

onlyif mysql # DIV for integer division: 
query II rowsort label-1475
SELECT DISTINCT - col2 * - col2 + - 77, + col0 DIV col1 * + col2 * + col2 AS col1 FROM tab0 AS cor0
----
2132
0
23
400
9724
950697

skipif mysql # not compatible
query II rowsort label-1475
SELECT DISTINCT - col2 * - col2 + - 77, + col0 / col1 * + col2 * + col2 AS col1 FROM tab0 AS cor0
----
2132
0
23
400
9724
950697

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1478
SELECT COUNT( DISTINCT 69 ) AS col1, + COUNT( * ) AS col0 FROM tab1
----
1
3

skipif mysql # not compatible
query II rowsort label-1478
SELECT COUNT ( DISTINCT 69 ) AS col1, + COUNT ( * ) AS col0 FROM tab1
----
1
3

onlyif mysql # DIV for integer division: 
query I rowsort label-1479
SELECT DISTINCT - 75 DIV - col2 FROM tab0
----
0
1
7

skipif mysql # not compatible
query I rowsort label-1479
SELECT DISTINCT - 75 / - col2 FROM tab0
----
0
1
7

onlyif mysql # DIV for integer division: 
query I rowsort label-1480
SELECT DISTINCT - col0 DIV - + col2 AS col1 FROM tab0
----
0
8

skipif mysql # not compatible
query I rowsort label-1480
SELECT DISTINCT - col0 / - + col2 AS col1 FROM tab0
----
0
8

onlyif mysql # aggregate syntax: 
query I rowsort label-1481
SELECT ALL - ( ( - - MAX( DISTINCT col1 ) ) ) FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-1481
SELECT ALL - ( ( - - MAX ( DISTINCT col1 ) ) ) FROM tab2
----
-77

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

query I rowsort
SELECT DISTINCT + ( + ( + 42 ) ) AS col2 FROM tab1
----
42

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 IN ( 39 + + 89, col0 + + col1 + + ( - ( - col0 ) ) / col2, + ( col0 ) + - 99, + col1, + col2 * - + col2 * - 12 + col1 + - 66 )
----

query II rowsort
SELECT - col1 * + col2 AS col0, col1 * + col1 + - - ( + 37 ) FROM tab0 AS cor0
----
-210
478
-3807
6598
-99
38

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

skipif mysql # not compatible
query I rowsort label-1486
SELECT ( - 43 ) / + COUNT ( * ) FROM tab0 AS cor0
----
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-1487
SELECT - col1 DIV - + 25 - + col0 AS col0 FROM tab2 AS cor0
----
-44
-61
-73

skipif mysql # not compatible
query I rowsort label-1487
SELECT - col1 / - + 25 - + col0 AS col0 FROM tab2 AS cor0
----
-44
-61
-73

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1489
SELECT - 4 DIV - MIN( ALL + - ( - + 18 ) ) + - COUNT( * ) + - 62 AS col2 FROM tab0 AS cor0
----
-65

skipif mysql # not compatible
query I rowsort label-1489
SELECT - 4 / - MIN ( ALL + - ( - + 18 ) ) + - COUNT ( * ) + - 62 AS col2 FROM tab0 AS cor0
----
-65

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1490
SELECT ALL * FROM tab0 WHERE col0 * + col2 * - - CAST( NULL AS SIGNED ) * + + 46 > 37
----

skipif mysql # not compatible
query III rowsort label-1490
SELECT ALL * FROM tab0 WHERE col0 * + col2 * - - CAST ( NULL AS INTEGER ) * + + 46 > 37
----

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 44 NOT IN ( ( - ( - col2 ) ) - 1 + col0, + 98 * + - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col1 * + ( + col2 ) * - + col2 * + + 30 + col2 + + col0 FROM tab2
----
3696104
6761773
809439

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

query I rowsort
SELECT DISTINCT - - 64 FROM tab2 cor0
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1496
SELECT DISTINCT + - CAST( + MIN( DISTINCT col1 ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-1496
SELECT DISTINCT + - CAST ( + MIN ( DISTINCT col1 ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-5

query I rowsort
SELECT + 30 FROM tab0 WHERE NOT NULL IS NOT NULL
----
30
30
30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 62 + ( + 79 ) col2 FROM tab1
----
141
141
141

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 + - 57 <= + - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1503
SELECT DISTINCT COUNT( * ) AS col2 FROM tab0 WHERE NOT ( NOT ( ( NULL IS NULL ) ) )
----
3

skipif mysql # not compatible
query I rowsort label-1503
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab0 WHERE NOT ( NOT ( ( NULL IS NULL ) ) )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1504
SELECT DISTINCT - 47 + + COUNT( * ) col0 FROM tab0
----
-44

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1504
SELECT DISTINCT - 47 + + COUNT ( * ) col0 FROM tab0
----
-44

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1506
SELECT DISTINCT - SUM( + col2 ) FROM tab1 WHERE NULL BETWEEN col1 AND - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1506
SELECT DISTINCT - SUM ( + col2 ) FROM tab1 WHERE NULL BETWEEN col1 AND - col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1507
SELECT DISTINCT - SUM( ALL ( 95 ) ) + SUM( + 83 ) AS col2, COUNT( ALL col0 ) AS col2 FROM tab2
----
-36
3

skipif mysql # not compatible
query II rowsort label-1507
SELECT DISTINCT - SUM ( ALL ( 95 ) ) + SUM ( + 83 ) AS col2, COUNT ( ALL col0 ) AS col2 FROM tab2
----
-36
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1508
SELECT + COUNT( * ) FROM tab0 WHERE ( NULL ) <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-1508
SELECT + COUNT ( * ) FROM tab0 WHERE ( NULL ) <> NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1509
SELECT + AVG ( DISTINCT 41 ) + + + 9 + MAX( + col0 ) * - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1509
SELECT + AVG ( DISTINCT 41 ) + + + 9 + MAX ( + col0 ) * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT DISTINCT col0 AS col0, - 80 - 61 * - 17 FROM tab2 cor0 WHERE NOT 78 + + col2 NOT BETWEEN - col1 AND ( col0 / - 22 / 3 )
----

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1513
SELECT ALL CAST( - ( + 85 ) AS SIGNED ) FROM tab0 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 8ebc8ffafb1517ea04e3a6fc4059d88a

skipif mysql # not compatible
query I rowsort label-1513
SELECT ALL CAST ( - ( + 85 ) AS INTEGER ) FROM tab0 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 8ebc8ffafb1517ea04e3a6fc4059d88a

onlyif mysql # aggregate syntax: 
query I rowsort label-1514
SELECT COUNT( * ) - + COUNT( DISTINCT col1 ) FROM tab1
----
0

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

query II rowsort
SELECT + 32 - col1 AS col0, col2 FROM tab0
----
-49
47
11
10
31
99

query I rowsort
SELECT col1 * + 10 + + 45 AS col1 FROM tab1
----
185
515
95

query I rowsort
SELECT ALL - 57 AS col2 FROM tab0 AS cor0
----
-57
-57
-57

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 <= + 29
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 50 = - + 54
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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 II rowsort
SELECT ALL + + ( + 38 ) AS col2, + ( 67 ) * + col1 col0 FROM tab0 AS cor0
----
38
1407
38
5427
38
67

query I rowsort
SELECT DISTINCT col0 * + - 32 FROM tab0 AS cor0
----
-2784
-3104
-480

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1523
SELECT DISTINCT COUNT( * ) DIV + ( - SUM( ALL - col1 ) ) DIV + COUNT( * ) AS col2 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-1523
SELECT DISTINCT COUNT ( * ) / + ( - SUM ( ALL - col1 ) ) / + COUNT ( * ) AS col2 FROM tab0 cor0
----
0

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-1525
SELECT ALL COUNT( * ) AS col1, - CAST( - MAX( + + 34 ) AS SIGNED ) AS col2, + SUM( DISTINCT + 19 ) col0 FROM tab0 AS cor0
----
3
34
19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-1525
SELECT ALL COUNT ( * ) AS col1, - CAST ( - MAX ( + + 34 ) AS INTEGER ) AS col2, + SUM ( DISTINCT + 19 ) col0 FROM tab0 AS cor0
----
3
34
19

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

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

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

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

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

query I rowsort
SELECT - ( - - col2 ) AS col2 FROM tab1
----
-59
-68
-96

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

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

query I rowsort
SELECT + 37 * + + col2 AS col0 FROM tab0
----
1739
3663
370

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

skipif mysql # not compatible
query I rowsort label-1534
SELECT DISTINCT COUNT ( - 10 ) AS col1 FROM tab1
----
3

query I rowsort
SELECT 48 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1536
SELECT ALL + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 WHERE NULL <> NULL
----

skipif mysql # not compatible
query I rowsort label-1536
SELECT ALL + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE NULL <> NULL
----

query I rowsort
SELECT + - col2 * col0 + - ( + col0 ) FROM tab0 AS cor0
----
-720
-957
-9700

query I rowsort
SELECT ( + col0 ) FROM tab1 AS cor0 WHERE - col0 + - + 46 NOT BETWEEN + col2 AND + 26
----
51
85
91

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1541
SELECT ALL - 75, MIN( ALL - - ( + col1 ) ) AS col0 FROM tab0 AS cor0 WHERE NULL >= - col1
----
-75
NULL

skipif mysql # not compatible
query II rowsort label-1541
SELECT ALL - 75, MIN ( ALL - - ( + col1 ) ) AS col0 FROM tab0 AS cor0 WHERE NULL >= - col1
----
-75
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1542
SELECT 45, COUNT( * ) + - COUNT( + col1 ) AS col2 FROM tab1 cor0
----
45
0

skipif mysql # not compatible
query II rowsort label-1542
SELECT 45, COUNT ( * ) + - COUNT ( + col1 ) AS col2 FROM tab1 cor0
----
45
0

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

query I rowsort
SELECT + ( 67 ) AS col2 FROM tab1 AS cor0
----
67
67
67

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

query I rowsort
SELECT ALL - col2 FROM tab0 WHERE NOT col0 = NULL
----

query I rowsort
SELECT DISTINCT - col2 - 25 AS col0 FROM tab0
----
-124
-35
-72

query I rowsort
SELECT DISTINCT - 44 * - + col1 AS col0 FROM tab1
----
2068
220
616

query III rowsort
SELECT * FROM tab0 WHERE NULL <= - - 5 / - col0 + col0
----

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1551
SELECT - COUNT ( ALL - col0 ) + + COUNT ( * ) - 72 col2 FROM tab0 AS cor0
----
-72

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1552
SELECT ALL + col0 + - 90 AS col0, + col2 + + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
-3
NULL
-75
NULL
7
NULL

skipif mysql # not compatible
query II rowsort label-1552
SELECT ALL + col0 + - 90 AS col0, + col2 + + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
-3
NULL
-75
NULL
7
NULL

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

query I rowsort
SELECT ALL - + 87 FROM tab0 WHERE + col1 IS NOT NULL
----
-87
-87
-87

query I rowsort
SELECT - 86 * + + 29 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 6e343369171ad88b4b363fa153dfd908

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1558
SELECT DISTINCT + + 56 AS col2, + MIN( ALL - 58 ) * - 54 + - - COUNT( * ) FROM tab1 AS cor0
----
56
3135

skipif mysql # not compatible
query II rowsort label-1558
SELECT DISTINCT + + 56 AS col2, + MIN ( ALL - 58 ) * - 54 + - - COUNT ( * ) FROM tab1 AS cor0
----
56
3135

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

skipif mysql # not compatible
query I rowsort label-1559
SELECT ALL + - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT - col1 IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1560
SELECT DISTINCT col2 DIV 30 AS col1 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-1560
SELECT DISTINCT col2 / 30 AS col1 FROM tab2 AS cor0
----
0
1

query I rowsort
SELECT + 44 * col1 * - - ( - - col2 ) AS col1 FROM tab1 AS cor0
----
12980
140624
59136

query I rowsort
SELECT DISTINCT + col2 * - + 41 + - col2 FROM tab0 AS cor0
----
-1974
-4158
-420

onlyif mysql # aggregate syntax: 
query I rowsort label-1563
SELECT ALL - COUNT( DISTINCT - - ( ( 25 ) ) ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-1563
SELECT ALL - COUNT ( DISTINCT - - ( ( 25 ) ) ) FROM tab0
----
-1

query I rowsort
SELECT + 88 * - ( 96 ) FROM tab0
----
-8448
-8448
-8448

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT DISTINCT + col0 AS col0, + col0 AS col0, col0 col2 FROM tab2
----
9 values hashing to a8fc5e3e19acbb4ca184fda05dbae34e

onlyif mysql # aggregate syntax: 
query I rowsort label-1566
SELECT ALL MIN( DISTINCT - 46 ) FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-1566
SELECT ALL MIN ( DISTINCT - 46 ) FROM tab2
----
-46

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 AS col0, - 27 col1 FROM tab1
----
59
-27
68
-27
96
-27

query I rowsort
SELECT 8 * - 33 FROM tab2
----
-264
-264
-264

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1572
SELECT - MAX( DISTINCT - col0 ) + - 95 FROM tab1 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-1572
SELECT - MAX ( DISTINCT - col0 ) + - 95 FROM tab1 AS cor0
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-1573
SELECT DISTINCT - + COUNT( * ) * - 33 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1573
SELECT DISTINCT - + COUNT ( * ) * - 33 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1575
SELECT DISTINCT MIN( - 96 ) FROM tab2
----
-96

skipif mysql # not compatible
query I rowsort label-1575
SELECT DISTINCT MIN ( - 96 ) FROM tab2
----
-96

query I rowsort
SELECT DISTINCT - 55 * - col2 AS col1 FROM tab0 AS cor0
----
2585
5445
550

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 25 + - col0 col2, - col2 AS col0 FROM tab2 AS cor0
----
-100
-58
-71
-23
-89
-40

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1582
SELECT 50 + - ( MIN( col0 ) ) AS col0 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-1582
SELECT 50 + - ( MIN ( col0 ) ) AS col0 FROM tab1
----
-1

query II rowsort
SELECT col0, + col1 AS col2 FROM tab0 WHERE NULL > 13
----

query I rowsort
SELECT - 20 + + 57 AS col2 FROM tab1
----
37
37
37

query I rowsort
SELECT DISTINCT col2 * - 92 AS col1 FROM tab0
----
-4324
-9108
-920

query I rowsort
SELECT ALL 50 FROM tab0 WHERE NOT NULL IS NOT NULL
----
50
50
50

onlyif mysql # aggregate syntax: 
query I rowsort label-1587
SELECT ALL MAX( 83 ) FROM tab2
----
83

skipif mysql # not compatible
query I rowsort label-1587
SELECT ALL MAX ( 83 ) FROM tab2
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-1588
SELECT ALL + SUM( DISTINCT - 91 ) col1 FROM tab2
----
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1588
SELECT ALL + SUM ( DISTINCT - 91 ) col1 FROM tab2
----
-91

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

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

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 LEFT JOIN tab2 AS cor1 ON NULL IS NOT NULL
----
18 values hashing to 18b19f89ce73392082a69acc4aed78f1

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL >= col0 / - + 22 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1592
SELECT DISTINCT - COUNT( * ) * + - COUNT( * ) FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-1592
SELECT DISTINCT - COUNT ( * ) * + - COUNT ( * ) FROM tab1
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1593
SELECT DISTINCT COUNT( * ) DIV - 80 * + - ( ( 44 ) ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1593
SELECT DISTINCT COUNT ( * ) / - 80 * + - ( ( 44 ) ) AS col2 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1594
SELECT ALL COUNT( + - col0 ) * - - 89 col1 FROM tab1
----
267

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1596
SELECT ALL 28 * + MIN( DISTINCT + col2 ) FROM tab2 AS cor0
----
644

skipif mysql # not compatible
query I rowsort label-1596
SELECT ALL 28 * + MIN ( DISTINCT + col2 ) FROM tab2 AS cor0
----
644

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 col1 FROM tab0 AS cor0 WHERE NOT col1 > - + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1599
SELECT SUM( DISTINCT col2 ) * 84 AS col0 FROM tab1 cor0
----
18732

skipif mysql # not compatible
query I rowsort label-1599
SELECT SUM ( DISTINCT col2 ) * 84 AS col0 FROM tab1 cor0
----
18732

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1600
SELECT + col0 + - col2 * + col2 + + 58 FROM tab1 cor0 WHERE NOT - CAST( col2 AS SIGNED ) IS NULL
----
-3338
-4475
-9107

skipif mysql # not compatible
query I rowsort label-1600
SELECT + col0 + - col2 * + col2 + + 58 FROM tab1 cor0 WHERE NOT - CAST ( col2 AS INTEGER ) IS NULL
----
-3338
-4475
-9107

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

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

query I rowsort
SELECT col2 * + ( - 43 ) + - col1 * col2 FROM tab1 AS cor0
----
-2832
-5472
-6120

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1604
SELECT MIN( ALL + 93 ) * + 58 FROM tab0
----
5394

skipif mysql # not compatible
query I rowsort label-1604
SELECT MIN ( ALL + 93 ) * + 58 FROM tab0
----
5394

query II rowsort
SELECT ALL + col0 AS col1, col0 FROM tab2 WHERE NOT - col2 / col0 * + col2 + col2 + 74 + + 15 >= - - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1606
SELECT 28 * - SUM( DISTINCT - - col2 ) col2 FROM tab2
----
-3388

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1606
SELECT 28 * - SUM ( DISTINCT - - col2 ) col2 FROM tab2
----
-3388

query I rowsort
SELECT ALL - ( + + 12 ) FROM tab1
----
-12
-12
-12

query I rowsort
SELECT 69 * - col0 AS col2 FROM tab2
----
-3174
-4416
-5175

query I rowsort
SELECT ALL ( + 98 ) * + ( 80 ) FROM tab2
----
7840
7840
7840

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1612
SELECT ALL + CAST( NULL AS DECIMAL ) AS col2, - col1 FROM tab0 AS cor0
----
NULL
-1
NULL
-21
NULL
-81

skipif mysql # not compatible
query II rowsort label-1612
SELECT ALL + CAST ( NULL AS REAL ) AS col2, - col1 FROM tab0 AS cor0
----
NULL
-1
NULL
-21
NULL
-81

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

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

query I rowsort
SELECT + 56 * + 83 AS col0 FROM tab1 AS cor0
----
4648
4648
4648

query I rowsort
SELECT + col0 + + col1 * + 79 FROM tab0 AS cor0
----
1746
176
6414

onlyif mysql # DIV for integer division: 
query I rowsort label-1617
SELECT DISTINCT + - col2 * + col2 + + - 11 DIV + + col2 FROM tab0 WHERE - + col1 DIV + + 72 + - - col2 * col1 NOT BETWEEN ( NULL ) AND + col0
----
-101
-2209
-9801

skipif mysql # not compatible
query I rowsort label-1617
SELECT DISTINCT + - col2 * + col2 + + - 11 / + + col2 FROM tab0 WHERE - + col1 / + + 72 + - - col2 * col1 NOT BETWEEN ( NULL ) AND + col0
----
-101
-2209
-9801

onlyif mysql # aggregate syntax: 
query I rowsort label-1618
SELECT DISTINCT - + SUM( + col2 ) FROM tab1 WHERE NOT NULL > - 9
----
NULL

skipif mysql # not compatible
query I rowsort label-1618
SELECT DISTINCT - + SUM ( + col2 ) FROM tab1 WHERE NOT NULL > - 9
----
NULL

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

query I rowsort
SELECT col0 + col2 + + col2 AS col2 FROM tab1 AS cor0
----
203
227
243

query I rowsort
SELECT ALL + - 24 + - - col1 * + col1 AS col1 FROM tab1 AS cor0
----
1
172
2185

query I rowsort
SELECT DISTINCT - 3 + - + 29 AS col0 FROM tab2 AS cor0
----
-32

query I rowsort
SELECT DISTINCT - col0 * col1 * - + col0 + - col0 + + 60 AS col1 FROM tab2 AS cor0
----
107930
315388
376860

query II rowsort
SELECT - 75 AS col1, col0 + + col2 * 0 AS col0 FROM tab1 AS cor0
----
-75
51
-75
85
-75
91

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

query I rowsort
SELECT DISTINCT + 74 * - 4 * 94 - - + col2 FROM tab2
----
-27766
-27784
-27801

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

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

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

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN + + col1 + + - col2 / col0 + - col1 AND ( 79 )
----

query I rowsort
SELECT col0 - 1 FROM tab0
----
14
86
96

query I rowsort
SELECT - col2 * - 56 * + col0 + + - col0 FROM tab1
----
274125
280755
346437

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1633
SELECT - 55 * 77 * ( col2 ) DIV col2 - - - col2 AS col1 FROM tab0 AS cor0
----
-4245
-4282
-4334

skipif mysql # not compatible
query I rowsort label-1633
SELECT - 55 * 77 * ( col2 ) / col2 - - - col2 AS col1 FROM tab0 AS cor0
----
-4245
-4282
-4334

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

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

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + 82 * + col2 IS NOT NULL
----

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

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

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

skipif mysql # not compatible
query I rowsort label-1637
SELECT - + MAX ( 7 ) AS col0 FROM tab2 AS cor0
----
-7

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

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

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

query I rowsort
SELECT ALL - + 12 * col1 AS col2 FROM tab0 AS cor0
----
-12
-252
-972

query I rowsort
SELECT col2 * - - col1 * + col0 FROM tab2 cor0
----
197120
291450
53958

onlyif mysql # aggregate syntax: 
query I rowsort label-1642
SELECT COUNT( + ( col2 ) ) * - 70 FROM tab0
----
-210

skipif mysql # not compatible
query I rowsort label-1642
SELECT COUNT ( + ( col2 ) ) * - 70 FROM tab0
----
-210

query II rowsort
SELECT col1 + + 41 AS col1, - col2 FROM tab0
----
122
-47
42
-99
62
-10

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1646
SELECT + COUNT( + - col1 ) * + COUNT( * ) + + MIN( col0 ) AS col2 FROM tab0
----
24

skipif mysql # not compatible
query I rowsort label-1646
SELECT + COUNT ( + - col1 ) * + COUNT ( * ) + + MIN ( col0 ) AS col2 FROM tab0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-1647
SELECT ALL - 10 + - SUM( ALL + col2 ) AS col2 FROM tab1 AS cor0
----
-233

skipif mysql # not compatible
query I rowsort label-1647
SELECT ALL - 10 + - SUM ( ALL + col2 ) AS col2 FROM tab1 AS cor0
----
-233

query I rowsort
SELECT DISTINCT + col2 * 39 + + col0 FROM tab0 AS cor0
----
1848
3958
477

onlyif mysql # aggregate syntax: 
query I rowsort label-1649
SELECT ALL + COUNT( * ) + + - 51 * + + 5 FROM tab0 AS cor0
----
-252

skipif mysql # not compatible
query I rowsort label-1649
SELECT ALL + COUNT ( * ) + + - 51 * + + 5 FROM tab0 AS cor0
----
-252

query II rowsort
SELECT col2 AS col2, - col1 + - col1 AS col1 FROM tab2
----
23
-102
40
-154
58
-134

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

query I rowsort
SELECT - 2 * col2 + + + 29 FROM tab2 AS cor0
----
-17
-51
-87

query I rowsort
SELECT ALL - 65 AS col1 FROM tab1 cor0
----
-65
-65
-65

query I rowsort
SELECT DISTINCT - ( + 85 ) + 52 FROM tab1 AS cor0
----
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-1655
SELECT 41 AS col1, + COUNT( * ) AS col2 FROM tab0
----
41
3

skipif mysql # not compatible
query II rowsort label-1655
SELECT 41 AS col1, + COUNT ( * ) AS col2 FROM tab0
----
41
3

query II rowsort
SELECT 47 AS col1, 54 + - ( + col0 ) AS col0 FROM tab2
----
47
-10
47
-21
47
8

query I rowsort
SELECT ALL - col2 - + col0 * + - col2 - + - col1 FROM tab0
----
739
881
9505

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

query II rowsort
SELECT + col1 AS col2, - 9 + + col2 FROM tab0
----
1
90
21
1
81
38

query II rowsort
SELECT ALL - col0 AS col1, col2 + + ( + col2 ) FROM tab2
----
-46
46
-64
80
-75
116

onlyif mysql # aggregate syntax: 
query II rowsort label-1661
SELECT DISTINCT 12 AS col0, - COUNT( DISTINCT + ( + - 46 ) ) FROM tab2
----
12
-1

skipif mysql # not compatible
query II rowsort label-1661
SELECT DISTINCT 12 AS col0, - COUNT ( DISTINCT + ( + - 46 ) ) FROM tab2
----
12
-1

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

query I rowsort
SELECT DISTINCT + - 39 FROM tab0 cor0
----
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-1664
SELECT - col1 DIV + 3 + + + col1 FROM tab1 AS cor0
----
10
32
4

skipif mysql # not compatible
query I rowsort label-1664
SELECT - col1 / + 3 + + + col1 FROM tab1 AS cor0
----
10
32
4

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

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

query I rowsort
SELECT - + col1 + + - ( + col2 ) + - 84 * + + col1 * + + col0 AS col1 FROM tab0 AS cor0
----
-102188
-153499
-8248

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

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

query I rowsort
SELECT - - 75 FROM tab0 cor0
----
75
75
75

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

query I rowsort
SELECT ALL - col1 * - col2 * - - col1 FROM tab0
----
308367
4410
99

query I rowsort
SELECT - 85 * + col1 AS col0 FROM tab2
----
-4335
-5695
-6545

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col0 * + col1 = - + col2
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1674
SELECT ALL CAST( NULL AS SIGNED ) AS col2, - col1 + + col2 FROM tab1
----
NULL
21
NULL
54
NULL
82

skipif mysql # not compatible
query II rowsort label-1674
SELECT ALL CAST ( NULL AS INTEGER ) AS col2, - col1 + + col2 FROM tab1
----
NULL
21
NULL
54
NULL
82

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1675
SELECT ALL + col2 AS col2, CAST( NULL AS SIGNED ) * 14 FROM tab1
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-1675
SELECT ALL + col2 AS col2, CAST ( NULL AS INTEGER ) * 14 FROM tab1
----
59
NULL
68
NULL
96
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1677
SELECT - MAX( DISTINCT col2 ) + - 96 FROM tab2 cor0
----
-154

skipif mysql # not compatible
query I rowsort label-1677
SELECT - MAX ( DISTINCT col2 ) + - 96 FROM tab2 cor0
----
-154

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 69 + col2 + 31 col2 FROM tab1 AS cor0
----
21
30
58

query I rowsort
SELECT col1 + + 88 FROM tab2 AS cor0
----
139
155
165

query I rowsort
SELECT 32 + col2 FROM tab0 AS cor0
----
131
42
79

query I rowsort
SELECT DISTINCT - 25 * col0 AS col2 FROM tab2
----
-1150
-1600
-1875

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1683
SELECT ALL + 99 + MIN( + col1 ) DIV - 3 AS col0 FROM tab1
----
98

skipif mysql # not compatible
query I rowsort label-1683
SELECT ALL + 99 + MIN ( + col1 ) / - 3 AS col0 FROM tab1
----
98

query I rowsort
SELECT DISTINCT 96 + - col0 FROM tab1
----
11
45
5

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

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

query III rowsort
SELECT * FROM tab2 WHERE col0 + 28 * col0 IN ( ( + col2 ) )
----

query I rowsort
SELECT + 69 * col1 AS col1 FROM tab1
----
3243
345
966

query I rowsort
SELECT 77 * 51 FROM tab0
----
3927
3927
3927

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

skipif mysql # not compatible
query I rowsort label-1690
SELECT DISTINCT + CAST ( + COUNT ( * ) AS INTEGER ) FROM tab0
----
3

query I rowsort
SELECT col0 * col2 + 82 AS col0 FROM tab1
----
4978
5097
6270

onlyif mysql # aggregate syntax: 
query I rowsort label-1692
SELECT ALL MIN( DISTINCT ( - col0 ) ) AS col1 FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-1692
SELECT ALL MIN ( DISTINCT ( - col0 ) ) AS col1 FROM tab0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-1693
SELECT DISTINCT + MIN( 88 ) col0 FROM tab0
----
88

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1693
SELECT DISTINCT + MIN ( 88 ) col0 FROM tab0
----
88

query I rowsort
SELECT ALL col2 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
59
68
96

onlyif mysql # DIV for integer division: 
query I rowsort label-1695
SELECT col1 - ( col1 + 42 DIV 52 ) FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1695
SELECT col1 - ( col1 + 42 / 52 ) FROM tab2
----
0
0
0

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

skipif mysql # not compatible
query I rowsort label-1696
SELECT COUNT ( * ) / + 82 AS col1 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1697
SELECT * FROM tab0 WHERE NOT + CAST( + col1 AS SIGNED ) + + col1 > ( NULL )
----

skipif mysql # not compatible
query III rowsort label-1697
SELECT * FROM tab0 WHERE NOT + CAST ( + col1 AS INTEGER ) + + col1 > ( NULL )
----

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

query I rowsort
SELECT + col0 + 50 * + col0 FROM tab2
----
2346
3264
3825

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col2 FROM tab0 WHERE - col2 + - col0 < col0
----
1
21
81

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1702
SELECT DISTINCT 63 + + CAST( col2 AS SIGNED ) FROM tab1
----
122
131
159

skipif mysql # not compatible
query I rowsort label-1702
SELECT DISTINCT 63 + + CAST ( col2 AS INTEGER ) FROM tab1
----
122
131
159

onlyif mysql # aggregate syntax: 
query I rowsort label-1703
SELECT COUNT( - 7 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-1703
SELECT COUNT ( - 7 ) FROM tab2
----
3

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

query I rowsort
SELECT col1 FROM tab0 WHERE NOT ( + 32 ) IN ( + col0 )
----
1
21
81

query I rowsort
SELECT DISTINCT - col0 * + col0 + 36 FROM tab2
----
-2080
-4060
-5589

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

skipif mysql # not compatible
query I rowsort label-1707
SELECT CAST ( - 29 AS INTEGER ) AS col2 FROM tab0
----
-29
-29
-29

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1708
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + CAST( NULL AS DECIMAL ) + col0 NOT IN ( + col1 + + 28 )
----

skipif mysql # not compatible
query III rowsort label-1708
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + CAST ( NULL AS REAL ) + col0 NOT IN ( + col1 + + 28 )
----

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

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

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

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

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

query I rowsort
SELECT - 34 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1
----
9 values hashing to 40442a74794ded4c78101eefe525a5bb

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

query I rowsort
SELECT + 75 + 17 FROM tab0 AS cor0 CROSS JOIN tab1
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1717
SELECT COUNT ( * ) col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) < - col0
----
0

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

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

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

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

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

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

query I rowsort
SELECT ALL col1 * 88 + - col0 FROM tab1 AS cor0
----
1181
355
4045

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 81 + - 52 <> - 4 * col1 + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + col2 col0 FROM tab0 cor0
----
100
128
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1724
SELECT DISTINCT + 83 + + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT ( 85 * 2 ) > ( CAST( + ( ( col1 ) ) AS SIGNED ) )
----
83

skipif mysql # not compatible
query I rowsort label-1724
SELECT DISTINCT + 83 + + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT ( 85 * 2 ) > ( CAST ( + ( ( col1 ) ) AS INTEGER ) )
----
83

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

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

query I rowsort
SELECT 19 FROM tab1 WHERE ( 68 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1728
SELECT - MIN( DISTINCT - col2 ) + 22 * + 88 FROM tab0
----
2035

skipif mysql # not compatible
query I rowsort label-1728
SELECT - MIN ( DISTINCT - col2 ) + 22 * + 88 FROM tab0
----
2035

query I rowsort
SELECT col0 * ( + col1 ) + col2 FROM tab1
----
4345
484
810

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

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

query I rowsort
SELECT - col1 + 48 AS col2 FROM tab0
----
-33
27
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1732
SELECT SUM( ALL - - 87 ) + COUNT( * ) AS col2 FROM tab2
----
264

skipif mysql # not compatible
query I rowsort label-1732
SELECT SUM ( ALL - - 87 ) + COUNT ( * ) AS col2 FROM tab2
----
264

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1734
SELECT DISTINCT 64 * CAST( 77 AS DECIMAL ) FROM tab1 WHERE NOT col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-1734
SELECT DISTINCT 64 * CAST ( 77 AS REAL ) FROM tab1 WHERE NOT col0 IS NOT NULL
----

query I rowsort
SELECT col0 + + 47 FROM tab2
----
111
122
93

query I rowsort
SELECT + 2 + col2 AS col1 FROM tab0
----
101
12
49

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1738
SELECT ALL col0 DIV + col0 + + col1 FROM tab2 AS cor0
----
52
68
78

skipif mysql # not compatible
query I rowsort label-1738
SELECT ALL col0 / + col0 + + col1 FROM tab2 AS cor0
----
52
68
78

query III rowsort
SELECT * FROM tab1 WHERE ( ( - 64 ) > 6 - 22 * - 62 )
----

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

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

skipif mysql # not compatible
query I rowsort label-1741
SELECT 0 * + COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1742
SELECT DISTINCT MIN( DISTINCT + - col0 ) - + 13 FROM tab0
----
-110

skipif mysql # not compatible
query I rowsort label-1742
SELECT DISTINCT MIN ( DISTINCT + - col0 ) - + 13 FROM tab0
----
-110

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

query I rowsort
SELECT ALL + 42 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442

query I rowsort
SELECT ALL - - col2 * + 84 + + 85 FROM tab2 AS cor0
----
2017
3445
4957

onlyif mysql # DIV for integer division: 
query I rowsort label-1746
SELECT DISTINCT 54 DIV - + col1 FROM tab1 AS cor0
----
-1
-10
-3

skipif mysql # not compatible
query I rowsort label-1746
SELECT DISTINCT 54 / - + col1 FROM tab1 AS cor0
----
-1
-10
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1747
SELECT * FROM tab2 cor0 WHERE col1 * - CAST( 36 AS DECIMAL ) / col0 IS NULL
----

skipif mysql # not compatible
query III rowsort label-1747
SELECT * FROM tab2 cor0 WHERE col1 * - CAST ( 36 AS REAL ) / col0 IS NULL
----

query I rowsort
SELECT DISTINCT + col0 * - 91 FROM tab0 AS cor0 WHERE NOT ( + col0 ) NOT IN ( + col1 )
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 * - col2 + col2 col2 FROM tab1 AS cor0
----
1440
3264
354

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + ( col2 ) col1 FROM tab2 AS cor0
----
23
40
58

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

query II rowsort
SELECT - col0 AS col2, - col0 * 71 FROM tab0 AS cor0
----
-15
-1065
-87
-6177
-97
-6887

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

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

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

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

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

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

query II rowsort
SELECT DISTINCT ( - col1 ), col0 * + col0 * + col0 + - col0 AS col0 FROM tab1
----
-14
132600
-47
753480
-5
614040

query I rowsort
SELECT col1 / + col0 AS col1 FROM tab1 WHERE NOT NULL >= ( col2 + - 75 ) AND NOT + col1 BETWEEN - col2 AND + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 31 * + ( col2 ) col2 FROM tab1
----
-1829
-2108
-2976

query I rowsort
SELECT DISTINCT - 86 * + - ( + col2 ) * - 63 + + col1 FROM tab0 AS cor0
----
-254565
-536381
-54159

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

query I rowsort
SELECT 87 + + 2 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
89
89
89

onlyif mysql # DIV for integer division: 
query I rowsort label-1765
SELECT + + 84 DIV col1 + col2 + - 17 + col1 col2 FROM tab0 AS cor0
----
112
167
18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1765
SELECT + + 84 / col1 + col2 + - 17 + col1 col2 FROM tab0 AS cor0
----
112
167
18

onlyif mysql # aggregate syntax: 
query I rowsort label-1766
SELECT DISTINCT + MIN( ALL - col0 ) FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-1766
SELECT DISTINCT + MIN ( ALL - col0 ) FROM tab2
----
-75

query I rowsort
SELECT + col0 - + col2 FROM tab2 WHERE NOT 65 * - + col1 IN ( + col1 * ( col1 ) )
----
17
23
24

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

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

query I rowsort
SELECT + - col0 * 86 * - col0 + - col0 AS col1 FROM tab2 AS cor0
----
181930
352192
483675

query I rowsort
SELECT + + ( 92 ) + 73 FROM tab2 cor0
----
165
165
165

onlyif mysql # aggregate syntax: 
query I rowsort label-1771
SELECT ALL - + COUNT( * ) + + 25 FROM tab2 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-1771
SELECT ALL - + COUNT ( * ) + + 25 FROM tab2 AS cor0
----
22

query I rowsort
SELECT DISTINCT - - col2 * 77 * 36 + - col2 FROM tab1 AS cor0
----
163489
188428
266016

query I rowsort
SELECT 42 FROM tab2 AS cor0 WHERE - col2 IS NOT NULL
----
42
42
42

query I rowsort
SELECT col1 * + - 50 * - + col0 AS col0 FROM tab1
----
21250
213850
35700

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1776
SELECT * FROM tab0 WHERE + ( + col1 ) * - + 98 NOT BETWEEN - - 2 * + col0 AND CAST( - col0 AS SIGNED ) / - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1776
SELECT * FROM tab0 WHERE + ( + col1 ) * - + 98 NOT BETWEEN - - 2 * + col0 AND CAST ( - col0 AS INTEGER ) / - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

query I rowsort
SELECT DISTINCT ( col1 ) + col1 FROM tab0 AS cor0
----
162
2
42

query II rowsort
SELECT + - col1 + + col0 AS col1, - ( + 94 ) * + ( col0 ) + + col2 AS col1 FROM tab0 cor0
----
-66
-1363
66
-8168
96
-9019

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

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

query I rowsort
SELECT - 95 * 22 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to dc44267d1cc00255370bd78e18c1acfe

query I rowsort
SELECT - col2 * + 41 + - + 81 + + col2 / 93 AS col2 FROM tab0 WHERE - col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1784
SELECT DISTINCT col1 * + CAST( + col2 AS SIGNED ) AS col0 FROM tab1
----
1344
295
3196

skipif mysql # not compatible
query I rowsort label-1784
SELECT DISTINCT col1 * + CAST ( + col2 AS INTEGER ) AS col0 FROM tab1
----
1344
295
3196

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1787
SELECT COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( 99 * + 91 * + + CAST( - 16 AS SIGNED ) + ( - + col2 ) ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1787
SELECT COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( 99 * + 91 * + + CAST ( - 16 AS INTEGER ) + ( - + col2 ) ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1788
SELECT ALL ( + COUNT( * ) ) * COUNT( * ) + - 24 FROM tab2 cor0
----
-15

skipif mysql # not compatible
query I rowsort label-1788
SELECT ALL ( + COUNT ( * ) ) * COUNT ( * ) + - 24 FROM tab2 cor0
----
-15

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col1 * + + ( col2 ) + + - ( col2 ) <> 90
----

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1791
SELECT 42 DIV 14 * - - col1 col0, + col2 + col0 FROM tab1
----
141
159
15
144
42
147

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1791
SELECT 42 / 14 * - - col1 col0, + col2 + col0 FROM tab1
----
141
159
15
144
42
147

query III rowsort
SELECT ALL * FROM tab0 WHERE ( 97 ) IS NULL
----

query II rowsort
SELECT 22 AS col2, 73 * + + col0 AS col1 FROM tab0
----
22
1095
22
6351
22
7081

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1795
SELECT DISTINCT * FROM tab2 WHERE ( + + 56 * + - CAST( col1 AS SIGNED ) + - col0 / - col0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-1795
SELECT DISTINCT * FROM tab2 WHERE ( + + 56 * + - CAST ( col1 AS INTEGER ) + - col0 / - col0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1796
SELECT DISTINCT 84 DIV COUNT( * ) AS col1 FROM tab2
----
28

skipif mysql # not compatible
query I rowsort label-1796
SELECT DISTINCT 84 / COUNT ( * ) AS col1 FROM tab2
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1797
SELECT ALL - 77 * + + 42 * + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1797
SELECT ALL - 77 * + + 42 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1798
SELECT DISTINCT + col1 DIV col0 * + - col1 FROM tab2
----
-51
-77
0

skipif mysql # not compatible
query I rowsort label-1798
SELECT DISTINCT + col1 / col0 * + - col1 FROM tab2
----
-51
-77
0

query I rowsort
SELECT - + 99 * - col2 FROM tab0 AS cor0
----
4653
9801
990

query I rowsort
SELECT + 38 AS col0 FROM tab1 cor0
----
38
38
38

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1801
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col0, + col1 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-1801
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col0, + col1 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 87 + - col2 col2 FROM tab1 AS cor0
----
-9
19
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1803
SELECT + - col0 / col2 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1803
SELECT + - col0 / col2 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1804
SELECT ALL + MIN( DISTINCT col0 ) + - SUM( DISTINCT + CAST( + - 54 AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
105

skipif mysql # not compatible
query I rowsort label-1804
SELECT ALL + MIN ( DISTINCT col0 ) + - SUM ( DISTINCT + CAST ( + - 54 AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
105

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 62 - + - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1806
SELECT - CAST( - + col0 AS SIGNED ) * - col1 * - + col0 AS col1 FROM tab1 AS cor0 WHERE NULL > NULL
----

skipif mysql # not compatible
query I rowsort label-1806
SELECT - CAST ( - + col0 AS INTEGER ) * - col1 * - + col0 AS col1 FROM tab1 AS cor0 WHERE NULL > NULL
----

query I rowsort
SELECT DISTINCT - col1 + - col0 * + col2 FROM tab2 cor0
----
-1109
-2637
-4417

query I rowsort
SELECT DISTINCT col0 + - - col1 + ( + col2 ) FROM tab1
----
149
161
206

onlyif mysql # aggregate syntax: 
query I rowsort label-1809
SELECT - SUM( ALL - - 5 ) + - 25 FROM tab1
----
-40

skipif mysql # not compatible
query I rowsort label-1809
SELECT - SUM ( ALL - - 5 ) + - 25 FROM tab1
----
-40

query I rowsort
SELECT col0 + + col2 * + col1 + - col2 FROM tab0
----
287
3775
97

query III rowsort
SELECT * FROM tab1 WHERE + - col0 + + 92 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1812
SELECT ( + - 62 ) + + CAST( NULL AS SIGNED ) AS col0, - col2 FROM tab1
----
NULL
-59
NULL
-68
NULL
-96

skipif mysql # not compatible
query II rowsort label-1812
SELECT ( + - 62 ) + + CAST ( NULL AS INTEGER ) AS col0, - col2 FROM tab1
----
NULL
-59
NULL
-68
NULL
-96

query I rowsort
SELECT ALL col0 - - 58 + + col0 AS col1 FROM tab2
----
150
186
208

query I rowsort
SELECT - 95 * - + 11 + - - col0 FROM tab0
----
1060
1132
1142

query III rowsort
SELECT * FROM tab1 WHERE - + 23 * + + col1 + + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1816
SELECT + col0 col2, + col1 / CAST( NULL AS SIGNED ) AS col0 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-1816
SELECT + col0 col2, + col1 / CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
51
NULL
85
NULL
91
NULL

query I rowsort
SELECT ALL col1 - - col2 FROM tab0 AS cor0 WHERE NOT + ( - + 70 ) BETWEEN ( col0 ) AND NULL
----
100
128
31

query I rowsort
SELECT DISTINCT + + col1 * + + 45 * - 37 AS col2 FROM tab0 AS cor0
----
-134865
-1665
-34965

query I rowsort
SELECT - + col1 AS col2 FROM tab2 AS cor0 WHERE + 4 * + col1 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <> - 91 * - 87 * col1
----

query I rowsort
SELECT ALL - 43 + - ( - col2 ) + + + col0 AS col2 FROM tab0 cor0
----
153
19
54

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 * - - ( + 91 ) > - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 - + - 99 AS col0 FROM tab0
----
114
186
196

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1824
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL <= ( col2 / CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-1824
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL <= ( col2 / CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT + + 77 * col2 AS col2 FROM tab1 cor0
----
4543
5236
7392

query I rowsort
SELECT DISTINCT + col0 * col0 + col2 + - col2 FROM tab1 AS cor0
----
2601
7225
8281

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col2 + - 70 = + - 92 - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1828
SELECT COUNT( + + col2 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1828
SELECT COUNT ( + + col2 ) AS col1 FROM tab2 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-1829
SELECT DISTINCT + + col0 DIV + - 62 - col0 FROM tab0 AS cor0
----
-15
-88
-98

skipif mysql # not compatible
query I rowsort label-1829
SELECT DISTINCT + + col0 / + - 62 - col0 FROM tab0 AS cor0
----
-15
-88
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-1830
SELECT - 88 DIV - + col0 AS col1 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-1830
SELECT - 88 / - + col0 AS col1 FROM tab1 AS cor0
----
0
1
1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( ( col2 + + + col2 ) NOT BETWEEN NULL AND NULL )
----

query I rowsort
SELECT ALL + 37 AS col2 FROM tab0 cor0
----
37
37
37

onlyif mysql # aggregate syntax: 
query I rowsort label-1833
SELECT - COUNT( - ( - ( - col0 ) ) ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1833
SELECT - COUNT ( - ( - ( - col0 ) ) ) AS col0 FROM tab2 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND 99
----

query II rowsort
SELECT ALL - 30 + + col2 * col0 AS col1, + col0 AS col0 FROM tab2 AS cor0
----
1028
46
2530
64
4320
75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1836
SELECT ALL - 0 * - + CAST( NULL AS SIGNED ), + col1 * - col0 AS col1 FROM tab1 AS cor0
----
NULL
-425
NULL
-4277
NULL
-714

skipif mysql # not compatible
query II rowsort label-1836
SELECT ALL - 0 * - + CAST ( NULL AS INTEGER ), + col1 * - col0 AS col1 FROM tab1 AS cor0
----
NULL
-425
NULL
-4277
NULL
-714

query III rowsort
SELECT * FROM tab0 WHERE + 52 IS NULL
----

query I rowsort
SELECT DISTINCT - ( + 70 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-1839
SELECT DISTINCT - 99 + + COUNT( * ) * - ( + + ( - 11 ) ) FROM tab0
----
-66

skipif mysql # not compatible
query I rowsort label-1839
SELECT DISTINCT - 99 + + COUNT ( * ) * - ( + + ( - 11 ) ) FROM tab0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-1840
SELECT DISTINCT + MIN( + col0 ) FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-1840
SELECT DISTINCT + MIN ( + col0 ) FROM tab0 AS cor0
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-1841
SELECT col0 DIV + 82 + - col2 FROM tab1 AS cor0
----
-58
-67
-96

skipif mysql # not compatible
query I rowsort label-1841
SELECT col0 / + 82 + - col2 FROM tab1 AS cor0
----
-58
-67
-96

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 53 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1843
SELECT + MIN( + 84 ) col1 FROM tab1 AS cor0
----
84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1843
SELECT + MIN ( + 84 ) col1 FROM tab1 AS cor0
----
84

query I rowsort
SELECT DISTINCT col1 + - col0 * + - 19 + + col1 * col0 FROM tab1 AS cor0
----
1697
2045
6053

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + - - ( - col2 ) + + 20 * col2 col2 FROM tab1 AS cor0
----
1116
1245
1810

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1846
SELECT ALL + + COUNT( * ) * + - COUNT( * ) + - MAX( col0 ) / - + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1846
SELECT ALL + + COUNT ( * ) * + - COUNT ( * ) + - MAX ( col0 ) / - + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + + col2 + - + col0 FROM tab1 AS cor0
----
-23
-26
45

onlyif mysql # aggregate syntax: 
query I rowsort label-1848
SELECT + MAX( ALL - 26 ) AS col0 FROM tab2 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-1848
SELECT + MAX ( ALL - 26 ) AS col0 FROM tab2 AS cor0
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-1849
SELECT - SUM( ALL - + col0 ) - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NULL IN ( col2 * 62, - col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1849
SELECT - SUM ( ALL - + col0 ) - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NULL IN ( col2 * 62, - col2 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1850
SELECT col1, - CAST( NULL AS SIGNED ) + - col0 FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-1850
SELECT col1, - CAST ( NULL AS INTEGER ) + - col0 FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - 64 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 10 + + col2 FROM tab2
----
13
30
48

query I rowsort
SELECT ALL - + col0 FROM tab1 WHERE NOT 0 + - - 14 * + col1 * + 54 + + col1 / + + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1854
SELECT COUNT( DISTINCT - + ( + 85 ) ) * + + COUNT( * ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-1854
SELECT COUNT ( DISTINCT - + ( + 85 ) ) * + + COUNT ( * ) FROM tab2
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1855
SELECT CAST( NULL AS DECIMAL ) - + col0 AS col1 FROM tab1 WHERE - - col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-1855
SELECT CAST ( NULL AS REAL ) - + col0 AS col1 FROM tab1 WHERE - - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1856
SELECT ALL MIN( - 47 ) - + COUNT( * ) * + + SUM( + col2 ) AS col2 FROM tab1
----
-716

skipif mysql # not compatible
query I rowsort label-1856
SELECT ALL MIN ( - 47 ) - + COUNT ( * ) * + + SUM ( + col2 ) AS col2 FROM tab1
----
-716

onlyif mysql # DIV for integer division: 
query I rowsort label-1857
SELECT DISTINCT col1 * - + col0 - 37 DIV col2 FROM tab0
----
-1215
-1830
-97

skipif mysql # not compatible
query I rowsort label-1857
SELECT DISTINCT col1 * - + col0 - 37 / col2 FROM tab0
----
-1215
-1830
-97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1858
SELECT DISTINCT col1 - 54, CAST( NULL AS SIGNED ) * - ( + 27 ) AS col1 FROM tab0
----
-33
NULL
-53
NULL
27
NULL

skipif mysql # not compatible
query II rowsort label-1858
SELECT DISTINCT col1 - 54, CAST ( NULL AS INTEGER ) * - ( + 27 ) AS col1 FROM tab0
----
-33
NULL
-53
NULL
27
NULL

query II rowsort
SELECT ALL col2 - - + 87, col1 FROM tab2
----
110
51
127
77
145
67

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + - 41 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1861
SELECT DISTINCT + MAX( col0 ) AS col0 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-1861
SELECT DISTINCT + MAX ( col0 ) AS col0 FROM tab0
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1862
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-1862
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

query I rowsort
SELECT - ( - 46 ) FROM tab0
----
46
46
46

query I rowsort
SELECT ALL + ( - 31 ) * + + 9 FROM tab2 cor0 WHERE NULL = ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1865
SELECT CAST( NULL AS SIGNED ) * + 60 * + 76 AS col0, col0 col2 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1865
SELECT CAST ( NULL AS INTEGER ) * + 60 * + 76 AS col0, col0 col2 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

query II rowsort
SELECT 87, + col2 AS col2 FROM tab1 AS cor0
----
87
59
87
68
87
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1867
SELECT ALL - COUNT( * ) + - + SUM( - col2 ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( + col2, - col2 * - - 31, - 26 + - col1 + - col0 * 18 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1867
SELECT ALL - COUNT ( * ) + - + SUM ( - col2 ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( + col2, - col2 * - - 31, - 26 + - col1 + - col0 * 18 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1868
SELECT ALL - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-1868
SELECT ALL - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) <= NULL
----
0

query I rowsort
SELECT + ( - 49 ) * 50 + + 80 AS col0 FROM tab0 AS cor0
----
-2370
-2370
-2370

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IN ( 99, + 34 - + + 49 + + col1, - 50, + - col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + - 23 <> ( NULL )
----

query I rowsort
SELECT DISTINCT + 44 * + col1 FROM tab1
----
2068
220
616

onlyif mysql # aggregate syntax: 
query I rowsort label-1873
SELECT + SUM( DISTINCT - 50 ) AS col1 FROM tab1
----
-50

skipif mysql # not compatible
query I rowsort label-1873
SELECT + SUM ( DISTINCT - 50 ) AS col1 FROM tab1
----
-50

query I rowsort
SELECT ALL + col2 AS col2 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1875
SELECT ALL COUNT( DISTINCT - + CAST( col0 AS SIGNED ) ) + - COUNT( * ) AS col0, - COUNT( * ) FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND + col0
----
0
0

skipif mysql # not compatible
query II rowsort label-1875
SELECT ALL COUNT ( DISTINCT - + CAST ( col0 AS INTEGER ) ) + - COUNT ( * ) AS col0, - COUNT ( * ) FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND + col0
----
0
0

query II rowsort
SELECT ALL col0, - ( + col1 ) FROM tab2
----
46
-51
64
-77
75
-67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 32 col1, 26 + col1 AS col1 FROM tab1
----
-32
31
-32
40
-32
73

onlyif mysql # aggregate syntax: 
query I rowsort label-1878
SELECT + 85 * + ( 20 ) + - COUNT( * ) col0 FROM tab0
----
1697

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1878
SELECT + 85 * + ( 20 ) + - COUNT ( * ) col0 FROM tab0
----
1697

onlyif mysql # DIV for integer division: 
query I rowsort label-1879
SELECT - col2 DIV - 92 + - col1 - - col0 - 29 * + - col1 + + 28 FROM tab2
----
1502
1979
2248

skipif mysql # not compatible
query I rowsort label-1879
SELECT - col2 / - 92 + - col1 - - col0 - 29 * + - col1 + + 28 FROM tab2
----
1502
1979
2248

onlyif mysql # aggregate syntax: 
query I rowsort label-1880
SELECT 80 + COUNT( + 64 ) col0 FROM tab1
----
83

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1880
SELECT 80 + COUNT ( + 64 ) col0 FROM tab1
----
83

query I rowsort
SELECT + col2 * - - col0 + - - ( col2 ) AS col1 FROM tab2 AS cor0
----
1081
2600
4408

query I rowsort
SELECT + col0 + 29 + + col2 AS col0 FROM tab0 AS cor0
----
126
225
91

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 14 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL - col0 AS col1, - col0 * col2 FROM tab2 AS cor0
----
-46
-1058
-64
-2560
-75
-4350

query I rowsort
SELECT DISTINCT + 57 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
57

onlyif mysql # aggregate syntax: 
query II rowsort label-1886
SELECT DISTINCT - MIN( ALL col0 ), ( - + COUNT( * ) ) * COUNT( * ) AS col0 FROM tab0
----
-15
-9

skipif mysql # not compatible
query II rowsort label-1886
SELECT DISTINCT - MIN ( ALL col0 ), ( - + COUNT ( * ) ) * COUNT ( * ) AS col0 FROM tab0
----
-15
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 62 col1 FROM tab2 WHERE - + col2 IS NOT NULL
----
62
62
62

query I rowsort
SELECT col0 + + ( + - 49 ) FROM tab0 cor0
----
-34
38
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1889
SELECT - ( + CAST( NULL AS SIGNED ) ) + col0 * col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1889
SELECT - ( + CAST ( NULL AS INTEGER ) ) + col0 * col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 52 + + col0 + + 83 - col2 * + 93 FROM tab0 cor0
----
-4325
-812
-9079

onlyif mysql # aggregate syntax: 
query I rowsort label-1891
SELECT 98 + + - COUNT( * ) col2 FROM tab0 AS cor0
----
95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1891
SELECT 98 + + - COUNT ( * ) col2 FROM tab0 AS cor0
----
95

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 58 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1893
SELECT ALL - 29 + + COUNT( * ) FROM tab1 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-1893
SELECT ALL - 29 + + COUNT ( * ) FROM tab1 AS cor0
----
-26

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL BETWEEN NULL AND - ( - col1 ) / - col2 - 31
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 - + col1 - - 57 col2, 26 FROM tab2
----
57
26

onlyif mysql # aggregate syntax: 
query I rowsort label-1896
SELECT - MAX( - 88 ) AS col1 FROM tab0
----
88

skipif mysql # not compatible
query I rowsort label-1896
SELECT - MAX ( - 88 ) AS col1 FROM tab0
----
88

query III rowsort
SELECT * FROM tab1 WHERE NULL < - col0 * + + col2
----

query I rowsort
SELECT - ( + col0 ) * + col2 * col1 - col0 + - 76 FROM tab1
----
-25236
-291003
-68671

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col1 + - col0 NOT IN ( col0, - 75 * col1, - + ( + 40 ) * + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1900
SELECT ALL - + MAX( DISTINCT - 99 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
99

skipif mysql # not compatible
query I rowsort label-1900
SELECT ALL - + MAX ( DISTINCT - 99 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 79 col1 FROM tab1
----
79
79
79

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 77 + + 63 + + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1903
SELECT + 97 * + MIN( ALL + col1 ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1903
SELECT + 97 * + MIN ( ALL + col1 ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT ALL - col2 FROM tab2 cor0 WHERE 22 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1905
SELECT COUNT( * ) * + - 60 AS col1, - 72 FROM tab1 cor0
----
-180
-72

skipif mysql # not compatible
query II rowsort label-1905
SELECT COUNT ( * ) * + - 60 AS col1, - 72 FROM tab1 cor0
----
-180
-72

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + + col1 + - col2 IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1907
SELECT ALL + CAST( NULL AS SIGNED ) + + 85 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1907
SELECT ALL + CAST ( NULL AS INTEGER ) + + 85 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( - 57 ) FROM tab2
----
-57
-57
-57

query II rowsort
SELECT col1 AS col2, col0 FROM tab0 WHERE + col1 < NULL OR NULL >= - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1910
SELECT - ( col0 ) DIV - col0 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1910
SELECT - ( col0 ) / - col0 FROM tab1
----
1
1
1

query I rowsort
SELECT ( - 42 ) * - col1 FROM tab2
----
2142
2814
3234

onlyif mysql # DIV for integer division: 
query I rowsort label-1912
SELECT + 35 DIV + col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1912
SELECT + 35 / + col0 FROM tab1
----
0
0
0

query I rowsort
SELECT col1 AS col1 FROM tab2 WHERE NOT + 4 + + 63 < + + 17
----
51
67
77

query III rowsort
SELECT * FROM tab2 WHERE NULL >= 78
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col1 + - col2 + + + 43 - 58 IS NULL
----

query I rowsort
SELECT + col1 FROM tab1 AS cor0 WHERE - col1 NOT BETWEEN NULL AND 99 + + col2
----

query I rowsort
SELECT DISTINCT - col1 * + col0 + + 59 - - col2 FROM tab0 AS cor0 WHERE col2 + + - col2 + + col0 = NULL
----

query I rowsort
SELECT - 19 * + 44 + - - col1 FROM tab2 AS cor0
----
-759
-769
-785

query I rowsort
SELECT - col2 + col0 + - 97 + + + col0 AS col0 FROM tab0 AS cor0
----
-114
-2
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 + + - col0 col0, - 22 FROM tab1
----
-23
-22
-26
-22
45
-22

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1921
SELECT - 66 DIV + + CAST( - col1 AS SIGNED ) + + - 99 FROM tab0
----
-33
-96
-99

skipif mysql # not compatible
query I rowsort label-1921
SELECT - 66 / + + CAST ( - col1 AS INTEGER ) + + - 99 FROM tab0
----
-33
-96
-99

query I rowsort
SELECT ALL + 32 FROM tab2 WHERE NOT NULL NOT BETWEEN col0 + + col2 * - + 40 AND ( + ( - col1 ) )
----

query I rowsort
SELECT DISTINCT 0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
0

query I rowsort
SELECT ALL + 79 * - col1 FROM tab0
----
-1659
-6399
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-1925
SELECT + 21 DIV col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1925
SELECT + 21 / col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1926
SELECT DISTINCT - col0 * - CAST( - col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-425
-4277
-714

skipif mysql # not compatible
query I rowsort label-1926
SELECT DISTINCT - col0 * - CAST ( - col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-1927
SELECT DISTINCT - - COUNT( - - col1 ) + 36 AS col1 FROM tab0 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-1927
SELECT DISTINCT - - COUNT ( - - col1 ) + 36 AS col1 FROM tab0 AS cor0
----
39

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 76 BETWEEN - - 14 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1929
SELECT - + MAX( DISTINCT - - col0 ) AS col1 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-1929
SELECT - + MAX ( DISTINCT - - col0 ) AS col1 FROM tab2 AS cor0
----
-75

query I rowsort
SELECT + ( - col0 ) - + col0 * - col0 AS col1 FROM tab2 AS cor0 WHERE 69 NOT BETWEEN + ( - + col0 ) * - col2 AND - col0
----
2070
4032
5550

query III rowsort
SELECT * FROM tab1 cor0 WHERE + col1 + + col1 IS NULL
----

query I rowsort
SELECT + + col0 * - col2 * - col0 * - ( - col1 ) + - 85 AS col2 FROM tab0 AS cor0
----
1589405
856490
931406

onlyif mysql # aggregate syntax: 
query I rowsort label-1933
SELECT - + MAX( DISTINCT ( col1 ) ) FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-1933
SELECT - + MAX ( DISTINCT ( col1 ) ) FROM tab2 AS cor0
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1934
SELECT ALL * FROM tab0 AS cor0 WHERE - CAST( + col0 AS SIGNED ) * CAST( NULL AS SIGNED ) * - - col0 * - - ( - 9 ) + + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1934
SELECT ALL * FROM tab0 AS cor0 WHERE - CAST ( + col0 AS INTEGER ) * CAST ( NULL AS INTEGER ) * - - col0 * - - ( - 9 ) + + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col1 + - 9 FROM tab2 AS cor0
----
-60
-76
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-1936
SELECT - + SUM( DISTINCT + - col0 ) FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-1936
SELECT - + SUM ( DISTINCT + - col0 ) FROM tab2 AS cor0
----
185

query I rowsort
SELECT ALL 15 - + 29 AS col2 FROM tab1 AS cor0
----
-14
-14
-14

query I rowsort
SELECT ALL 73 + - col0 + - - col2 * - + 4 - - 18 FROM tab1
----
-230
-272
-344

query I rowsort
SELECT - + col0 FROM tab2 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT DISTINCT + col0 - - 99 AS col1, + 30 + - + col1 FROM tab2
----
145
-21
163
-47
174
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-1941
SELECT + COUNT( DISTINCT - col0 ) - + 54 + - ( - COUNT( * ) ) + + 54 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-1941
SELECT + COUNT ( DISTINCT - col0 ) - + 54 + - ( - COUNT ( * ) ) + + 54 FROM tab0
----
6

query I rowsort
SELECT - 46 * + + col1 * + + 55 FROM tab1
----
-118910
-12650
-35420

query I rowsort
SELECT DISTINCT + col0 * + + col2 AS col0 FROM tab1
----
4896
5015
6188

onlyif mysql # DIV for integer division: 
query I rowsort label-1944
SELECT DISTINCT + 0 DIV + ( + 42 ) * 20 AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1944
SELECT DISTINCT + 0 / + ( + 42 ) * 20 AS col0 FROM tab0
----
0

query I rowsort
SELECT + col0 * + + 19 AS col2 FROM tab2
----
1216
1425
874

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 + col2 NOT BETWEEN - col2 + + - col2 * col1 * col0 AND NULL
----

query II rowsort
SELECT ALL - col2, col2 FROM tab2
----
-23
23
-40
40
-58
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1948
SELECT + MIN( col2 ) col0 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1948
SELECT + MIN ( col2 ) col0 FROM tab0 AS cor0
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1949
SELECT ALL - 76 DIV + COUNT( col0 ) FROM tab1 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-1949
SELECT ALL - 76 / + COUNT ( col0 ) FROM tab1 AS cor0
----
-25

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 10 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1951
SELECT ALL + - MAX( 45 ) FROM tab2 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-1951
SELECT ALL + - MAX ( 45 ) FROM tab2 AS cor0
----
-45

query II rowsort
SELECT + col0, - col0 * - - col2 AS col2 FROM tab2 AS cor0 WHERE NOT - 93 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - 3 AS col2 FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab2 AS cor0 WHERE - col0 - 20 + - col2 + + 83 / + col1 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL < - 37 + + 38 + - - 83
----

query I rowsort
SELECT DISTINCT ( - + 27 ) * - + col1 FROM tab2
----
1377
1809
2079

query II rowsort
SELECT + ( 51 ) + + ( - 77 ), + col1 AS col0 FROM tab1
----
-26
14
-26
47
-26
5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1958
SELECT ALL + - col2, + CAST( NULL AS SIGNED ) * ( 9 ) - - - 85 AS col1 FROM tab1 WHERE NOT 90 * - - col2 + + 94 + - col0 IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-1958
SELECT ALL + - col2, + CAST ( NULL AS INTEGER ) * ( 9 ) - - - 85 AS col1 FROM tab1 WHERE NOT 90 * - - col2 + + 94 + - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1959
SELECT ALL - ( - MIN( ALL + + col0 ) ) FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-1959
SELECT ALL - ( - MIN ( ALL + + col0 ) ) FROM tab1
----
51

query II rowsort
SELECT col1 + + + col0 AS col1, - col2 AS col2 FROM tab2
----
141
-40
142
-58
97
-23

query I rowsort
SELECT col2 * - 26 * + + col1 + - + col1 + - 57 + - - col2 AS col0 FROM tab2
----
-101102
-30583
-80174

query I rowsort
SELECT ALL 77 * - - 78 AS col0 FROM tab2 AS cor0
----
6006
6006
6006

onlyif mysql # aggregate syntax: 
query I rowsort label-1963
SELECT ALL COUNT( * ) + - - 59 AS col1 FROM tab2 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-1963
SELECT ALL COUNT ( * ) + - - 59 AS col1 FROM tab2 AS cor0
----
62

query I rowsort
SELECT ALL + col2 + - + col1 FROM tab1
----
21
54
82

query I rowsort
SELECT col1 * + + col2 FROM tab2
----
1173
3080
3886

query I rowsort
SELECT - col2 - 73 FROM tab2
----
-113
-131
-96

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1967
SELECT 18 - - CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1967
SELECT 18 - - CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 - + 7 + + col1 * + col1 * 35 * - col1 + - + col2 AS col2 FROM tab0
----
-140
-18600408
-324131

query I rowsort
SELECT 99 * 69 FROM tab2 AS cor0 WHERE ( - 75 BETWEEN + 96 * col1 + - col2 AND - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1970
SELECT - + COUNT( DISTINCT + col2 ) + MIN( DISTINCT col0 ) FROM tab2 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-1970
SELECT - + COUNT ( DISTINCT + col2 ) + MIN ( DISTINCT col0 ) FROM tab2 AS cor0
----
43

query I rowsort
SELECT DISTINCT col2 * + + 90 + col0 FROM tab2 AS cor0
----
2116
3664
5295

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1972
SELECT DISTINCT COUNT( ALL + col2 ) * + ( - COUNT( - CAST( NULL AS SIGNED ) ) ) AS col1, 10 FROM tab0 AS cor0
----
0
10

skipif mysql # not compatible
query II rowsort label-1972
SELECT DISTINCT COUNT ( ALL + col2 ) * + ( - COUNT ( - CAST ( NULL AS INTEGER ) ) ) AS col1, 10 FROM tab0 AS cor0
----
0
10

onlyif mysql # aggregate syntax: 
query I rowsort label-1973
SELECT - 9 + + COUNT( * ) AS col2 FROM tab2 cor0
----
-6

skipif mysql # not compatible
query I rowsort label-1973
SELECT - 9 + + COUNT ( * ) AS col2 FROM tab2 cor0
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1974
SELECT DISTINCT + - MIN( + col0 ) / + + 27 * 1 AS col2 FROM tab0 AS cor0 WHERE NULL IN ( 35, col2 + + ( + - 31 ) + ( CAST( NULL AS SIGNED ) ) - + 13 * - ( + col2 ) * 8 * - + 28 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1974
SELECT DISTINCT + - MIN ( + col0 ) / + + 27 * 1 AS col2 FROM tab0 AS cor0 WHERE NULL IN ( 35, col2 + + ( + - 31 ) + ( CAST ( NULL AS INTEGER ) ) - + 13 * - ( + col2 ) * 8 * - + 28 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1975
SELECT ALL + CAST( - CAST( NULL AS SIGNED ) AS DECIMAL ) + + col0 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1975
SELECT ALL + CAST ( - CAST ( NULL AS INTEGER ) AS REAL ) + + col0 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1976
SELECT - - col0 * col1 / - - col1 * - - ( 69 ) + + 38 - + 59 * + col0 * - CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1976
SELECT - - col0 * col1 / - - col1 * - - ( 69 ) + + 38 - + 59 * + col0 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
15
87
97

query II rowsort
SELECT DISTINCT + col2 * 1, + col1 FROM tab2
----
23
51
40
77
58
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1979
SELECT + ( - - 91 ) / + col2 / col1 / - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1979
SELECT + ( - - 91 ) / + col2 / col1 / - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT 10, + col2 FROM tab0
----
10
10
10
47
10
99

query I rowsort
SELECT col0 * - + col2 * - col2 FROM tab2
----
102400
24334
252300

query I rowsort
SELECT DISTINCT col2 * + ( - + 9 ) FROM tab0
----
-423
-891
-90

query II rowsort
SELECT col1 AS col0, col1 + + - 95 AS col0 FROM tab1
----
14
-81
47
-48
5
-90

query II rowsort
SELECT col1, - 46 + ( + - 11 ) FROM tab0
----
1
-57
21
-57
81
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-1985
SELECT ALL 56 * col1 DIV - 29 FROM tab0
----
-1
-156
-40

skipif mysql # not compatible
query I rowsort label-1985
SELECT ALL 56 * col1 / - 29 FROM tab0
----
-1
-156
-40

query I rowsort
SELECT col1 * - col0 * + col1 AS col2 FROM tab0
----
-38367
-97
-98415

onlyif mysql # aggregate syntax: 
query II rowsort label-1987
SELECT ALL - 95 AS col0, - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-95
-3

skipif mysql # not compatible
query II rowsort label-1987
SELECT ALL - 95 AS col0, - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-95
-3

query I rowsort
SELECT + + ( - col0 ) * - col0 AS col0 FROM tab2 AS cor0
----
2116
4096
5625

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1989
SELECT + COUNT( * ) DIV - + 95 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1989
SELECT + COUNT ( * ) / - + 95 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1990
SELECT - 62 + + COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-53

skipif mysql # not compatible
query I rowsort label-1990
SELECT - 62 + + COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-53

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT - 63 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - col0 ) * + + 84 * + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + 50 + - - 65 AND - - 67
----

query I rowsort
SELECT DISTINCT - 43 AS col1 FROM tab2 AS cor0 WHERE NOT - col2 * - + 19 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1995
SELECT DISTINCT - COUNT( * ) + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1995
SELECT DISTINCT - COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT + - col0 * - 48 AS col1 FROM tab2 AS cor0 WHERE col2 > - - col1 * + - ( + col2 ) / + col0 * + 2 + 29 + - - 10 - + col2 * col0
----
2208
3072
3600

onlyif mysql # DIV for integer division: 
query I rowsort label-1997
SELECT DISTINCT col1 DIV 20 FROM tab0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-1997
SELECT DISTINCT col1 / 20 FROM tab0
----
0
1
4

query I rowsort
SELECT ALL + ( + 24 ) FROM tab1
----
24
24
24

onlyif mysql # aggregate syntax: 
query I rowsort label-1999
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-1999
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-3

query I rowsort
SELECT + 57 * + col0 + - ( - - 0 ) * col0 AS col1 FROM tab2 AS cor0
----
2622
3648
4275

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 52 + - + col2 * + col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2002
SELECT DISTINCT + col2 FROM tab1 AS cor0 WHERE CAST( + 65 AS SIGNED ) * - - col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-2002
SELECT DISTINCT + col2 FROM tab1 AS cor0 WHERE CAST ( + 65 AS INTEGER ) * - - col0 IS NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT 63 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2004
SELECT - col0 DIV + + col0 - - col0 - - col2 * + + col1 * + 11 - + col2 AS col1 FROM tab1 AS cor0
----
14738
3270
35178

skipif mysql # not compatible
query I rowsort label-2004
SELECT - col0 / + + col0 - - col0 - - col2 * + + col1 * + 11 - + col2 AS col1 FROM tab1 AS cor0
----
14738
3270
35178

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 > + col1
----
87
21
10
97
1
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2006
SELECT + + 30 - - CAST( - + ( col0 ) AS SIGNED ) * - col2 * col0 AS col2 FROM tab0 AS cor0
----
10605
75720
931521

skipif mysql # not compatible
query I rowsort label-2006
SELECT + + 30 - - CAST ( - + ( col0 ) AS INTEGER ) * - col2 * col0 AS col2 FROM tab0 AS cor0
----
10605
75720
931521

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2007
SELECT - + COUNT( 34 ) AS col2 FROM tab1 AS cor0 WHERE NULL <> CAST( - 24 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-2007
SELECT - + COUNT ( 34 ) AS col2 FROM tab1 AS cor0 WHERE NULL <> CAST ( - 24 AS INTEGER )
----
0

query II rowsort
SELECT - + 76 * + 15 AS col1, ( - 10 ) AS col0 FROM tab2 AS cor0
----
-1140
-10
-1140
-10
-1140
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-2009
SELECT - 67 DIV + + col2 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2009
SELECT - 67 / + + col2 FROM tab1 AS cor0
----
-1
0
0

query I rowsort
SELECT col1 * - + col2 FROM tab0 AS cor0
----
-210
-3807
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( + col0 ) * - - col0 + + col0 col1, 26 FROM tab0 AS cor0
----
240
26
7656
26
9506
26

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2012
SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN 77 + + col0 - + CAST( col2 AS DECIMAL ) AND - col1
----

skipif mysql # not compatible
query III rowsort label-2012
SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN 77 + + col0 - + CAST ( col2 AS REAL ) AND - col1
----

query II rowsort
SELECT col0, - col1 AS col1 FROM tab0
----
15
-81
87
-21
97
-1

query II rowsort
SELECT ALL + 15, + col0 + + col2 AS col1 FROM tab0
----
15
196
15
62
15
97

query II rowsort
SELECT ALL + col1 AS col0, col2 FROM tab2 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
51
23
67
58
77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-2016
SELECT - + SUM( + 40 ) AS col2 FROM tab2 WHERE NOT col2 IS NULL
----
-120

skipif mysql # not compatible
query I rowsort label-2016
SELECT - + SUM ( + 40 ) AS col2 FROM tab2 WHERE NOT col2 IS NULL
----
-120

query II rowsort
SELECT col0 AS col0, - col2 FROM tab2 AS cor0
----
46
-23
64
-40
75
-58

query I rowsort
SELECT ALL + 21 + + ( - col2 ) + + + col2 FROM tab2 AS cor0
----
21
21
21

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2019
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - CAST( NULL AS SIGNED ) * + col2 + - col2 < NULL
----

skipif mysql # not compatible
query III rowsort label-2019
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - CAST ( NULL AS INTEGER ) * + col2 + - col2 < NULL
----

query I rowsort
SELECT DISTINCT col0 + ( - col1 ) AS col1 FROM tab2 cor0
----
-13
-5
8

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL < + 10
----

query I rowsort
SELECT + col2 - - col2 FROM tab1 WHERE - col0 < - col1 + - 74
----
118

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2023
SELECT ALL col2 DIV + CAST( - 25 AS SIGNED ) FROM tab2
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-2023
SELECT ALL col2 / + CAST ( - 25 AS INTEGER ) FROM tab2
----
-1
-2
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2024
SELECT + 23 + + 24, COUNT( * ) AS col2 FROM tab2
----
47
3

skipif mysql # not compatible
query II rowsort label-2024
SELECT + 23 + + 24, COUNT ( * ) AS col2 FROM tab2
----
47
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 col2 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2026
SELECT CAST( - col2 AS SIGNED ) + - - col2 * - - CAST( NULL AS SIGNED ) + - col2 + - - col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2026
SELECT CAST ( - col2 AS INTEGER ) + - - col2 * - - CAST ( NULL AS INTEGER ) + - col2 + - - col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - 52 * + col2 + + - col0 AS col1 FROM tab1
----
-3153
-3627
-5043

query I rowsort
SELECT + col1 + - ( 67 ) FROM tab0
----
-46
-66
14

onlyif mysql # DIV for integer division: 
query I rowsort label-2029
SELECT 44 DIV + col1 FROM tab0 cor0
----
0
2
44

skipif mysql # not compatible
query I rowsort label-2029
SELECT 44 / + col1 FROM tab0 cor0
----
0
2
44

query I rowsort
SELECT + col2 * - 13 FROM tab2 AS cor0 WHERE NULL = col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2031
SELECT 77 - + - COUNT( * ) col0 FROM tab1
----
80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2031
SELECT 77 - + - COUNT ( * ) col0 FROM tab1
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2032
SELECT ALL - MIN( 3 ) col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2032
SELECT ALL - MIN ( 3 ) col0 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT DISTINCT 0 FROM tab2 cor0
----
0

query II rowsort
SELECT ALL + col2 AS col0, col2 AS col2 FROM tab2 AS cor0
----
23
23
40
40
58
58

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 0 = - col2 * - ( - col1 ) + - 52
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN - 61 + 78 * + 67 AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 57 IS NOT NULL
----

query II rowsort
SELECT + + 55 AS col1, - ( + + col0 ) FROM tab2 AS cor0
----
55
-46
55
-64
55
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-2039
SELECT 46 DIV + 79 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2039
SELECT 46 / + 79 AS col0 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2040
SELECT ALL - ( + + COUNT( * ) ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-2040
SELECT ALL - ( + + COUNT ( * ) ) AS col0 FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2041
SELECT DISTINCT COUNT( - 31 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2041
SELECT DISTINCT COUNT ( - 31 ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2042
SELECT COUNT( * ) * 57 AS col2 FROM tab2
----
171

skipif mysql # not compatible
query I rowsort label-2042
SELECT COUNT ( * ) * 57 AS col2 FROM tab2
----
171

query I rowsort
SELECT + ( - 75 ) FROM tab1
----
-75
-75
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2044
SELECT - MIN( DISTINCT + + ( - col1 ) ) AS col2 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-2044
SELECT - MIN ( DISTINCT + + ( - col1 ) ) AS col2 FROM tab0
----
81

query I rowsort
SELECT - - col2 AS col0 FROM tab0 WHERE NOT + 74 < - col0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2046
SELECT 42 * COUNT( * ) col1 FROM tab0 cor0
----
126

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2046
SELECT 42 * COUNT ( * ) col1 FROM tab0 cor0
----
126

query I rowsort
SELECT - col0 * 34 FROM tab1 cor0
----
-1734
-2890
-3094

onlyif mysql # aggregate syntax: 
query I rowsort label-2048
SELECT COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NOT col2 IS NOT NULL )
----
3

skipif mysql # not compatible
query I rowsort label-2048
SELECT COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NOT col2 IS NOT NULL )
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-2049
SELECT DISTINCT + COUNT( * ) + + + 41 col0, - 37 AS col0 FROM tab1 AS cor0
----
44
-37

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2049
SELECT DISTINCT + COUNT ( * ) + + + 41 col0, - 37 AS col0 FROM tab1 AS cor0
----
44
-37

query I rowsort
SELECT + ( col2 ) + 47 + 50 - + col1 * - 36 FROM tab1
----
1857
336
697

query III rowsort
SELECT * FROM tab2 WHERE + col1 <> col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-2052
SELECT ALL - col2 + - col2 DIV + 52 + + + 35 - - 84 AS col2 FROM tab1 AS cor0
----
22
50
59

skipif mysql # not compatible
query I rowsort label-2052
SELECT ALL - col2 + - col2 / + 52 + + + 35 - - 84 AS col2 FROM tab1 AS cor0
----
22
50
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - 0 * col0 * - + col0 + - col0 col2 FROM tab0 AS cor0
----
-15
-87
-97

query I rowsort
SELECT ALL - 30 + + col2 * - 5 * col1 AS col0 FROM tab2 AS cor0
----
-15430
-19460
-5895

query I rowsort
SELECT - col0 + - 60 FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
-147
-157
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2056
SELECT CAST( - - col0 AS SIGNED ) FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-2056
SELECT CAST ( - - col0 AS INTEGER ) FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT ALL + col2 + - 83 + - - 6 AS col2 FROM tab2 AS cor0
----
-19
-37
-54

query III rowsort
SELECT * FROM tab0 WHERE 0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2059
SELECT ALL + SUM( DISTINCT col2 ) AS col0 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-2059
SELECT ALL + SUM ( DISTINCT col2 ) AS col0 FROM tab0
----
156

query III rowsort
SELECT * FROM tab1 WHERE - - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2061
SELECT DISTINCT COUNT( + 81 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2061
SELECT DISTINCT COUNT ( + 81 ) FROM tab2
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-2062
SELECT - col2 - - col1 DIV - col2 + - col2 AS col0, - 96 AS col0 FROM tab1
----
-118
-96
-136
-96
-192
-96

skipif mysql # not compatible
query II rowsort label-2062
SELECT - col2 - - col1 / - col2 + - col2 AS col0, - 96 AS col0 FROM tab1
----
-118
-96
-136
-96
-192
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2063
SELECT + COUNT( * ) + + ( + - 34 ) AS col1 FROM tab0
----
-31

skipif mysql # not compatible
query I rowsort label-2063
SELECT + COUNT ( * ) + + ( + - 34 ) AS col1 FROM tab0
----
-31

query I rowsort
SELECT col2 + + 88 FROM tab0 AS cor0 WHERE + col0 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2065
SELECT ALL 0 + - SUM( DISTINCT col2 ) AS col0 FROM tab2 cor0
----
-121

skipif mysql # not compatible
query I rowsort label-2065
SELECT ALL 0 + - SUM ( DISTINCT col2 ) AS col0 FROM tab2 cor0
----
-121

query I rowsort
SELECT + 78 + + 80 + + ( + col0 ) + - 2 AS col2 FROM tab0 AS cor0
----
171
243
253

query II rowsort
SELECT DISTINCT + 71 + - col2 * + col2 * 99, - 57 + - - ( 90 ) + col1 AS col2 FROM tab1 AS cor0
----
-344548
38
-457705
80
-912313
47

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN - col1 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - ( 34 ) + col1 * - col0 + - + ( + - col1 ) col2, - 32 * + col2 AS col2 FROM tab1 cor0
----
-4264
-2176
-454
-1888
-734
-3072

query II rowsort
SELECT ALL - col2 AS col1, 64 FROM tab2 WHERE - 64 / + + col2 IS NOT NULL
----
-23
64
-40
64
-58
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2071
SELECT DISTINCT - 76 * + MAX( DISTINCT + CAST( NULL AS SIGNED ) ), COUNT( * ) AS col0 FROM tab0 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-2071
SELECT DISTINCT - 76 * + MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ), COUNT ( * ) AS col0 FROM tab0 AS cor0
----
NULL
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 <= - - 87
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2073
SELECT DISTINCT 32 DIV MAX( + ( - - col0 ) ) col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2073
SELECT DISTINCT 32 / MAX ( + ( - - col0 ) ) col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT + - col0 FROM tab1 AS cor0 WHERE NOT 44 - - col2 IS NULL
----
-51
-85
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + 64 ) col1 FROM tab1 AS cor0
----
64

query I rowsort
SELECT - - col0 * - - ( 4 ) FROM tab2 AS cor0
----
184
256
300

query I rowsort
SELECT - + 12 + col1 AS col1 FROM tab1 cor0
----
-7
2
35

onlyif mysql # DIV for integer division: 
query II rowsort label-2078
SELECT ALL 21, 70 * + col1 DIV + - col1 col2 FROM tab1 AS cor0
----
21
-70
21
-70
21
-70

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2078
SELECT ALL 21, 70 * + col1 / + - col1 col2 FROM tab1 AS cor0
----
21
-70
21
-70
21
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-2079
SELECT - - COUNT( + - col0 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2079
SELECT - - COUNT ( + - col0 ) FROM tab0 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2080
SELECT - 32 DIV + - col2 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2080
SELECT - 32 / + - col2 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT col1 * + col0 * 79 * - col0 FROM tab0
----
-12556971
-1439775
-743311

query II rowsort
SELECT + col1 + col0 AS col1, col0 * - + 27 + + col2 * + 68 + - - col2 * + - col1 AS col0 FROM tab0 AS cor0
----
108
-1879
96
-1016
98
4014

query I rowsort
SELECT - - 52 + - + col0 * + + col0 FROM tab2 AS cor0
----
-2064
-4044
-5573

query I rowsort
SELECT + - col2 + + + col0 FROM tab2 AS cor0
----
17
23
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2085
SELECT - CAST( col1 AS SIGNED ) FROM tab2 AS cor0 WHERE col2 * col2 IS NOT NULL
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-2085
SELECT - CAST ( col1 AS INTEGER ) FROM tab2 AS cor0 WHERE col2 * col2 IS NOT NULL
----
-51
-67
-77

query I rowsort
SELECT ALL - col1 - - + col0 FROM tab1 AS cor0
----
37
44
80

query I rowsort
SELECT - col1 + + 96 AS col0 FROM tab2
----
19
29
45

query I rowsort
SELECT ALL 63 - 30 - - col0 AS col2 FROM tab1
----
118
124
84

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2089
SELECT + col1 * + 14 + + - 69 AS col1, CAST( NULL AS SIGNED ) * col2 FROM tab2
----
1009
NULL
645
NULL
869
NULL

skipif mysql # not compatible
query II rowsort label-2089
SELECT + col1 * + 14 + + - 69 AS col1, CAST ( NULL AS INTEGER ) * col2 FROM tab2
----
1009
NULL
645
NULL
869
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2090
SELECT MAX( + col1 ) * + 52 AS col1 FROM tab2
----
4004

skipif mysql # not compatible
query I rowsort label-2090
SELECT MAX ( + col1 ) * + 52 AS col1 FROM tab2
----
4004

onlyif mysql # aggregate syntax: 
query I rowsort label-2091
SELECT SUM( ALL - ( + + col0 ) ) FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-2091
SELECT SUM ( ALL - ( + + col0 ) ) FROM tab0
----
-199

onlyif mysql # aggregate syntax: 
query I rowsort label-2092
SELECT ALL 52 - COUNT( * ) FROM tab0
----
49

skipif mysql # not compatible
query I rowsort label-2092
SELECT ALL 52 - COUNT ( * ) FROM tab0
----
49

query I rowsort
SELECT DISTINCT + col0 * + 44 AS col0 FROM tab2
----
2024
2816
3300

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + + col2 * + 61 IS NULL
----

query I rowsort
SELECT ( ( - + 80 ) ) FROM tab2 WHERE NULL BETWEEN NULL AND - col0
----

query I rowsort
SELECT DISTINCT col2 * - - col1 AS col0 FROM tab2
----
1173
3080
3886

query III rowsort
SELECT * FROM tab0 WHERE + - col1 + - 28 + - - col1 + - col2 * col0 >= + col1 * + - col1 + col0
----
15
81
47

query I rowsort
SELECT DISTINCT col2 + + 84 * - - col1 FROM tab2 AS cor0
----
4307
5686
6508

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2099
SELECT ALL - + col2 / CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2099
SELECT ALL - + col2 / CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
15
87
97

query I rowsort
SELECT - - col2 * + col0 * 35 FROM tab0 cor0
----
24675
30450
336105

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2102
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - col0 * - - col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2102
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - col0 * - - col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2103
SELECT DISTINCT + COUNT( * ) * 17 AS col2 FROM tab2 cor0
----
51

skipif mysql # not compatible
query I rowsort label-2103
SELECT DISTINCT + COUNT ( * ) * 17 AS col2 FROM tab2 cor0
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2104
SELECT ( - COUNT( * ) ) DIV - MAX( ALL 92 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2104
SELECT ( - COUNT ( * ) ) / - MAX ( ALL 92 ) FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2105
SELECT ALL - MIN( ALL col1 ) * - CAST( + COUNT( * ) AS SIGNED ) FROM tab0 AS cor0 WHERE NULL NOT BETWEEN + col2 AND - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2105
SELECT ALL - MIN ( ALL col1 ) * - CAST ( + COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0 WHERE NULL NOT BETWEEN + col2 AND - col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2106
SELECT - MAX( DISTINCT - - 44 ) AS col2 FROM tab2 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-2106
SELECT - MAX ( DISTINCT - - 44 ) AS col2 FROM tab2 AS cor0
----
-44

onlyif mysql # aggregate syntax: 
query II rowsort label-2107
SELECT DISTINCT - - COUNT( * ), + 50 AS col2 FROM tab2 AS cor0
----
3
50

skipif mysql # not compatible
query II rowsort label-2107
SELECT DISTINCT - - COUNT ( * ), + 50 AS col2 FROM tab2 AS cor0
----
3
50

onlyif mysql # aggregate syntax: 
query I rowsort label-2108
SELECT + 85 * COUNT( * ) FROM tab1 AS cor0
----
255

skipif mysql # not compatible
query I rowsort label-2108
SELECT + 85 * COUNT ( * ) FROM tab1 AS cor0
----
255

query I rowsort
SELECT ALL + + ( + 96 ) * + 85 AS col2 FROM tab1 AS cor0 WHERE NOT + col2 * + col2 + 45 + - col1 + - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2110
SELECT + CAST( NULL AS DECIMAL ) * + - col1 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2110
SELECT + CAST ( NULL AS REAL ) * + - col1 AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2111
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab0 WHERE NOT col2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2111
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab0 WHERE NOT col2 IS NULL
----
3

query I rowsort
SELECT - col2 * - + 55 FROM tab2
----
1265
2200
3190

query I rowsort
SELECT DISTINCT - 23 FROM tab2 WHERE NOT + 81 > NULL
----

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE ( NOT NULL IS NULL )
----

query II rowsort
SELECT + 35 * + col0 AS col0, + col2 * + + 64 FROM tab2
----
1610
1472
2240
2560
2625
3712

query II rowsort
SELECT ALL + col1, + col2 AS col0 FROM tab0 WHERE - col1 * + - col2 + - + col1 + - col0 BETWEEN - 48 AND ( + col2 * - 79 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2117
SELECT ALL - CAST( - COUNT( * ) AS SIGNED ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2117
SELECT ALL - CAST ( - COUNT ( * ) AS INTEGER ) FROM tab0 cor0
----
3

query I rowsort
SELECT DISTINCT + 90 + 55 + 24 FROM tab2 AS cor0
----
169

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2119
SELECT DISTINCT - col0 AS col2 FROM tab0 AS cor0 WHERE col0 NOT BETWEEN NULL AND CAST( NULL AS DECIMAL ) * - 97
----

skipif mysql # not compatible
query I rowsort label-2119
SELECT DISTINCT - col0 AS col2 FROM tab0 AS cor0 WHERE col0 NOT BETWEEN NULL AND CAST ( NULL AS REAL ) * - 97
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE 20 + col2 IS NULL
----

query I rowsort
SELECT - col0 * - col2 + - col2 AS col2 FROM tab1 cor0
----
4800
4956
6120

onlyif mysql # aggregate syntax: 
query I rowsort label-2122
SELECT DISTINCT MAX( + col0 ) FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-2122
SELECT DISTINCT MAX ( + col0 ) FROM tab1
----
91

query I rowsort
SELECT ALL + col2 AS col2 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col1 * + - col1 * col2 FROM tab0
----
-308367
-4410
-99

query I rowsort
SELECT + col1 AS col2 FROM tab1 AS cor0 WHERE - col1 * - - 81 IS NOT NULL
----
14
47
5

query I rowsort
SELECT ALL - - col2 * - 40 + - col0 * + col1 FROM tab2 AS cor0
----
-3266
-6528
-7345

query I rowsort
SELECT + + col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2128
SELECT - - MAX( DISTINCT + col0 ) FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-2128
SELECT - - MAX ( DISTINCT + col0 ) FROM tab1 AS cor0
----
91

query I rowsort
SELECT ALL - col2 + + 95 FROM tab2 AS cor0
----
37
55
72

query I rowsort
SELECT DISTINCT + + col0 + col2 * + 2 * + col1 AS col0 FROM tab1 AS cor0
----
2739
6483
675

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL BETWEEN - col2 AND - + 89
----

query I rowsort
SELECT ALL - ( + col0 ) + + + ( + ( - col1 ) ) * - - col2 AS col2 FROM tab0
----
-196
-297
-3822

query III rowsort
SELECT * FROM tab1 WHERE - 44 + col1 * - 37 BETWEEN NULL AND + col2 + 96
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2134
SELECT DISTINCT 61 * 89 * COUNT( * ) FROM tab0
----
16287

skipif mysql # not compatible
query I rowsort label-2134
SELECT DISTINCT 61 * 89 * COUNT ( * ) FROM tab0
----
16287

query I rowsort
SELECT - col0 + - - 96 FROM tab2
----
21
32
50

query I rowsort
SELECT DISTINCT + col2 - col1 AS col1 FROM tab0
----
-11
-34
98

onlyif mysql # aggregate syntax: 
query I rowsort label-2137
SELECT + COUNT( * ) * - + COUNT( * ) col2 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2137
SELECT + COUNT ( * ) * - + COUNT ( * ) col2 FROM tab2 AS cor0
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 * + 62 col2, col1 AS col1 FROM tab0 AS cor0
----
1302
21
5022
81
62
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2139
SELECT ALL 95 DIV COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
10

skipif mysql # not compatible
query I rowsort label-2139
SELECT ALL 95 / COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1, col2 col0 FROM tab1
----
14
96
47
68
5
59

onlyif mysql # aggregate syntax: 
query II rowsort label-2141
SELECT - 16 AS col1, 69 * + 22 * - + 22 * COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-16
-300564

skipif mysql # not compatible
query II rowsort label-2141
SELECT - 16 AS col1, 69 * + 22 * - + 22 * COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-16
-300564

query I rowsort
SELECT + 74 / + 32 + - + 75 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2143
SELECT - - CAST( + + 28 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
28
28
28

skipif mysql # not compatible
query I rowsort label-2143
SELECT - - CAST ( + + 28 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
28
28
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * - col1 + 52 col2 FROM tab2 AS cor0
----
2398
4980
5077

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
10
47
99

query I rowsort
SELECT - col1 + - 26 FROM tab2 AS cor0 WHERE NOT + 14 < + + col0
----

query I rowsort
SELECT DISTINCT 80 * 33 AS col0 FROM tab2
----
2640

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 19 * - ( + - 88 ) col1 FROM tab1
----
1672
1672
1672

query I rowsort
SELECT DISTINCT + col2 * 9 AS col2 FROM tab1
----
531
612
864

query I rowsort
SELECT + col2 * + 27 FROM tab2
----
1080
1566
621

onlyif mysql # DIV for integer division: 
query I rowsort label-2151
SELECT ALL + col1 DIV + + col2 FROM tab0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-2151
SELECT ALL + col1 / + + col2 FROM tab0
----
0
1
2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2152
SELECT DISTINCT + col2 AS col0, CAST( NULL AS SIGNED ) FROM tab0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-2152
SELECT DISTINCT + col2 AS col0, CAST ( NULL AS INTEGER ) FROM tab0
----
10
NULL
47
NULL
99
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2153
SELECT ALL + COUNT( * ) AS col2 FROM tab2 WHERE NULL > - + ( - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-2153
SELECT ALL + COUNT ( * ) AS col2 FROM tab2 WHERE NULL > - + ( - col1 )
----
0

query I rowsort
SELECT 14 + - 55 + + 79 AS col1 FROM tab1
----
38
38
38

query III rowsort
SELECT ALL * FROM tab1 WHERE + col1 * col2 + - col2 <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2156
SELECT - ( + 44 ) DIV - - col2 + - col1 + + 55 - - + 95 * - + 13 AS col1 FROM tab0
----
-1181
-1205
-1261

skipif mysql # not compatible
query I rowsort label-2156
SELECT - ( + 44 ) / - - col2 + - col1 + + 55 - - + 95 * - + 13 AS col1 FROM tab0
----
-1181
-1205
-1261

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2157
SELECT + ( - CAST( - col1 AS SIGNED ) ) + col2 AS col0, col2 + - - col1 col1 FROM tab1 AS cor0
----
110
110
115
115
64
64

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2157
SELECT + ( - CAST ( - col1 AS INTEGER ) ) + col2 AS col0, col2 + - - col1 col1 FROM tab1 AS cor0
----
110
110
115
115
64
64

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NULL NOT BETWEEN + col1 AND 61 / - col2
----

query I rowsort
SELECT + 18 + 14 FROM tab0
----
32
32
32

query II rowsort
SELECT DISTINCT ( + 51 ), col2 FROM tab2 AS cor0
----
51
23
51
40
51
58

query II rowsort
SELECT - + col1 + - col2 AS col2, - 97 AS col1 FROM tab1 AS cor0
----
-110
-97
-115
-97
-64
-97

query I rowsort
SELECT ALL col2 - - + col2 * ( + col0 ) FROM tab1
----
4992
5074
6256

query II rowsort
SELECT DISTINCT + col0 - col2 * + 89, col2 + + col2 AS col1 FROM tab2
----
-2001
46
-3496
80
-5087
116

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 25 * - 57 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col1 FROM tab2 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2166
SELECT MIN( + col2 ) FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-2166
SELECT MIN ( + col2 ) FROM tab2
----
23

query I rowsort
SELECT DISTINCT + col1 * + 35 FROM tab2
----
1785
2345
2695

query III rowsort
SELECT * FROM tab2 WHERE NOT 96 - col0 * ( col2 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 AS col2, + col2 col0 FROM tab1
----
59
59
68
68
96
96

query I rowsort
SELECT DISTINCT - + 13 AS col2 FROM tab1 AS cor0
----
-13

query II rowsort
SELECT ALL - col1, col0 FROM tab1 AS cor0
----
-14
51
-47
91
-5
85

query I rowsort
SELECT + - 86 * + + 24 FROM tab1 cor0
----
-2064
-2064
-2064

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col1 >= - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2174
SELECT 21 col2 FROM tab0 WHERE ( 98 ) <> + CAST( NULL AS SIGNED ) * 80
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2174
SELECT 21 col2 FROM tab0 WHERE ( 98 ) <> + CAST ( NULL AS INTEGER ) * 80
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + 77 * + col1 > ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2176
SELECT DISTINCT - ( COUNT( * ) ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-2176
SELECT DISTINCT - ( COUNT ( * ) ) AS col0 FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2177
SELECT COUNT( DISTINCT - ( 77 ) ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-2177
SELECT COUNT ( DISTINCT - ( 77 ) ) FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2178
SELECT + 36 - COUNT( * ) * 10 AS col0 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-2178
SELECT + 36 - COUNT ( * ) * 10 AS col0 FROM tab1
----
6

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) BETWEEN ( + col1 ) AND 51 + col0
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + 35 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2181
SELECT * FROM tab0 WHERE - col2 BETWEEN + col2 AND - CAST( NULL AS SIGNED ) * 32
----

skipif mysql # not compatible
query III rowsort label-2181
SELECT * FROM tab0 WHERE - col2 BETWEEN + col2 AND - CAST ( NULL AS INTEGER ) * 32
----

query I rowsort
SELECT col0 * col1 + + ( col2 + + 65 ) FROM tab2
----
2434
5033
5148

query I rowsort
SELECT + col0 + - col2 * + 21 FROM tab1
----
-1154
-1337
-1965

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + col1 col0 FROM tab1 WHERE ( 51 ) IN ( col0 )
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( 62 + + 56 * - col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2186
SELECT - 70 * COUNT( 90 ) FROM tab1 WHERE NULL IS NULL
----
-210

skipif mysql # not compatible
query I rowsort label-2186
SELECT - 70 * COUNT ( 90 ) FROM tab1 WHERE NULL IS NULL
----
-210

onlyif mysql # aggregate syntax: 
query I rowsort label-2187
SELECT ( + COUNT( * ) ) + MIN( ALL col0 ) FROM tab2
----
49

skipif mysql # not compatible
query I rowsort label-2187
SELECT ( + COUNT ( * ) ) + MIN ( ALL col0 ) FROM tab2
----
49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 72 col1 FROM tab0
----
-72

query I rowsort
SELECT - 19 + + col2 AS col2 FROM tab2
----
21
39
4

query I rowsort
SELECT - col2 AS col0 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN - col2 * col0 AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2191
SELECT - COUNT( DISTINCT + ( + 63 ) ) + COUNT( * ) FROM tab0 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-2191
SELECT - COUNT ( DISTINCT + ( + 63 ) ) + COUNT ( * ) FROM tab0 AS cor0
----
2

query I rowsort
SELECT - 63 + + col0 * col2 FROM tab1 AS cor0
----
4833
4952
6125

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2193
SELECT * FROM tab1 cor0 WHERE NULL <> - ( 50 ) + 88 * + ( + CAST( col2 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2193
SELECT * FROM tab1 cor0 WHERE NULL <> - ( 50 ) + 88 * + ( + CAST ( col2 AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab2 AS cor0 WHERE col0 IN ( col0 * - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - col0 - col0 col1 FROM tab1
----
-4368
-510
-765

onlyif mysql # aggregate syntax: 
query I rowsort label-2196
SELECT DISTINCT 23 / MIN( DISTINCT 5 ) AS col2 FROM tab2 cor0 CROSS JOIN tab2 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2196
SELECT DISTINCT 23 / MIN ( DISTINCT 5 ) AS col2 FROM tab2 cor0 CROSS JOIN tab2 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----
NULL

query I rowsort
SELECT - + col0 * - 62 AS col1 FROM tab0 AS cor0
----
5394
6014
930

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <> 56
----

query I rowsort
SELECT + - 36 * - ( col0 * - 98 ) AS col0 FROM tab0 AS cor0
----
-306936
-342216
-52920

onlyif mysql # aggregate syntax: 
query I rowsort label-2200
SELECT ALL + COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( 58 * - col2 + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-2200
SELECT ALL + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( 58 * - col2 + col0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2201
SELECT COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE ( col2 ) >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-2201
SELECT COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE ( col2 ) >= NULL
----
0

query I rowsort
SELECT - 61 * - col1 FROM tab1 AS cor0
----
2867
305
854

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 NOT BETWEEN - ( 37 ) AND col1 * + col0
----

query I rowsort
SELECT + 32 - col1 FROM tab2 AS cor0
----
-19
-35
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-2205
SELECT ALL COUNT( ALL col1 ) FROM tab1 AS cor0 WHERE NOT col2 = col2 + col1
----
3

skipif mysql # not compatible
query I rowsort label-2205
SELECT ALL COUNT ( ALL col1 ) FROM tab1 AS cor0 WHERE NOT col2 = col2 + col1
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 97 + + col1 <= 40
----

query I rowsort
SELECT + ( col0 ) - + col0 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 67 * col1 col0 FROM tab1 AS cor0
----
-3149
-335
-938

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2209
SELECT DISTINCT col0 * 20 + CAST( 92 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
1832
2032
392

skipif mysql # not compatible
query I rowsort label-2209
SELECT DISTINCT col0 * 20 + CAST ( 92 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
1832
2032
392

query I rowsort
SELECT 98 - 50 FROM tab1 cor0
----
48
48
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2211
SELECT DISTINCT col0 * ( + col2 ) FROM tab2 AS cor0 WHERE col2 NOT BETWEEN ( col2 ) AND ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-2211
SELECT DISTINCT col0 * ( + col2 ) FROM tab2 AS cor0 WHERE col2 NOT BETWEEN ( col2 ) AND ( - CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT - 58 + + col2 FROM tab0 AS cor0 WHERE NOT ( 84 * 62 + col0 ) IS NULL
----
-11
-48
41

onlyif mysql # aggregate syntax: 
query I rowsort label-2213
SELECT ALL + MAX( ALL - + col1 ) AS col0 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-2213
SELECT ALL + MAX ( ALL - + col1 ) AS col0 FROM tab2
----
-51

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN ( - col1 ) AND ( - col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( col0 ) > + col0 / col2
----

query I rowsort
SELECT - ( 74 ) FROM tab2 AS cor0
----
-74
-74
-74

query I rowsort
SELECT ALL + col1 FROM tab0 AS cor0 WHERE NOT ( - col2 ) < - col1
----
21
81

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 10 = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2219
SELECT ALL COUNT( DISTINCT + CAST( + col1 AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2219
SELECT ALL COUNT ( DISTINCT + CAST ( + col1 AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 67 * - + col1 * + col1 - col0 col1 FROM tab2 AS cor0
----
-174313
-300838
-397307

query I rowsort
SELECT DISTINCT + + 83 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
83

query II rowsort
SELECT + 86 AS col1, col2 - - - col1 AS col1 FROM tab2
----
86
-28
86
-37
86
-9

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2223
SELECT ( + + COUNT( - CAST( NULL AS DECIMAL ) ) ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2223
SELECT ( + + COUNT ( - CAST ( NULL AS REAL ) ) ) AS col1 FROM tab0
----
0

query I rowsort
SELECT DISTINCT 61 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-2225
SELECT COUNT( * ) * ( + 69 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2225
SELECT COUNT ( * ) * ( + 69 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT DISTINCT - ( - 72 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
72

query I rowsort
SELECT ALL 42 AS col1 FROM tab2 cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT 72 * col0 FROM tab0 cor0
----
1080
6264
6984

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col0, + 75 + + + col0 FROM tab1 AS cor0
----
59
160
68
166
96
126

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 * - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2231
SELECT + MIN( - col1 ) AS col0 FROM tab1 cor0
----
-47

skipif mysql # not compatible
query I rowsort label-2231
SELECT + MIN ( - col1 ) AS col0 FROM tab1 cor0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-2232
SELECT ALL + 71 * + COUNT( * ) + - COUNT( * ) FROM tab0 AS cor0
----
210

skipif mysql # not compatible
query I rowsort label-2232
SELECT ALL + 71 * + COUNT ( * ) + - COUNT ( * ) FROM tab0 AS cor0
----
210

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2233
SELECT ALL - CAST( + + COUNT( * ) AS SIGNED ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2233
SELECT ALL - CAST ( + + COUNT ( * ) AS INTEGER ) FROM tab2 cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2234
SELECT DISTINCT - 43 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( + CAST( CAST( col0 AS SIGNED ) AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-2234
SELECT DISTINCT - 43 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( + CAST ( CAST ( col0 AS INTEGER ) AS INTEGER ) )
----

query I rowsort
SELECT ALL - 23 AS col0 FROM tab2 AS cor0
----
-23
-23
-23

query I rowsort
SELECT DISTINCT 65 * ( + 51 ) + col0 FROM tab2 AS cor0 WHERE NULL >= - 55 - - col2
----

query I rowsort
SELECT ALL + col1 * col2 * col1 * - col1 + col1 FROM tab2
----
-17444187
-18261243
-3050922

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2238
SELECT DISTINCT 55 DIV + COUNT( * ) AS col0 FROM tab1 WHERE NOT 5 IS NULL
----
18

skipif mysql # not compatible
query I rowsort label-2238
SELECT DISTINCT 55 / + COUNT ( * ) AS col0 FROM tab1 WHERE NOT 5 IS NULL
----
18

query I rowsort
SELECT DISTINCT 86 + 69 FROM tab1
----
155

onlyif mysql # DIV for integer division: 
query I rowsort label-2240
SELECT + 71 * - + col1 * 83 * + col0 * - ( + 59 DIV 81 ) + + 66 FROM tab0
----
66
66
66

skipif mysql # not compatible
query I rowsort label-2240
SELECT + 71 * - + col1 * 83 * + col0 * - ( + 59 / 81 ) + + 66 FROM tab0
----
66
66
66

query I rowsort
SELECT col1 + 82 AS col1 FROM tab2
----
133
149
159

onlyif mysql # aggregate syntax: 
query I rowsort label-2242
SELECT ALL ( - COUNT( * ) ) col0 FROM tab1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2242
SELECT ALL ( - COUNT ( * ) ) col0 FROM tab1
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-2243
SELECT + col0 DIV - col1 + + + ( + col1 ) AS col2 FROM tab1
----
-12
11
46

skipif mysql # not compatible
query I rowsort label-2243
SELECT + col0 / - col1 + + + ( + col1 ) AS col2 FROM tab1
----
-12
11
46

query I rowsort
SELECT col1 * - col2 + - 33 AS col0 FROM tab0
----
-132
-243
-3840

onlyif mysql # aggregate syntax: 
query I rowsort label-2245
SELECT ALL ( COUNT( 96 ) ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2245
SELECT ALL ( COUNT ( 96 ) ) AS col1 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2246
SELECT ALL + MIN( ALL + 80 ) * + - ( + - 6 ) + 15 AS col2 FROM tab2 AS cor0
----
495

skipif mysql # not compatible
query I rowsort label-2246
SELECT ALL + MIN ( ALL + 80 ) * + - ( + - 6 ) + 15 AS col2 FROM tab2 AS cor0
----
495

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 99 BETWEEN NULL AND 10 / - + 15
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col2 FROM tab1 AS cor0 WHERE ( NULL ) IN ( + 31 )
----

query I rowsort
SELECT DISTINCT + col1 * 97 FROM tab0 AS cor0 WHERE NULL IN ( - 83 + + col0 )
----

query I rowsort
SELECT DISTINCT - 49 * - col2 - + + 90 FROM tab1
----
2801
3242
4614

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 80 * - + col2 + - 77 * + 80 col1 FROM tab2
----
-10800
-8000
-9360

query I rowsort
SELECT ALL - - col0 * - - 76 AS col2 FROM tab1 AS cor0
----
3876
6460
6916

query III rowsort
SELECT * FROM tab2 cor0 WHERE + 80 BETWEEN col1 * 25 AND NULL
----

query II rowsort
SELECT DISTINCT + col0 AS col1, col2 + col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
51
110
85
64
91
115

onlyif mysql # aggregate syntax: 
query I rowsort label-2255
SELECT ALL + + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2255
SELECT ALL + + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2256
SELECT ALL COUNT( col2 ) DIV 93 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2256
SELECT ALL COUNT ( col2 ) / 93 FROM tab0 cor0
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( col0 ) BETWEEN NULL AND ( + col0 / - - ( col1 ) )
----
15
81
47
87
21
10

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( 27 - col2 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2259
SELECT - + col1 / + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2259
SELECT - + col1 / + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2261
SELECT CAST( + 69 AS SIGNED ) AS col0 FROM tab1
----
69
69
69

skipif mysql # not compatible
query I rowsort label-2261
SELECT CAST ( + 69 AS INTEGER ) AS col0 FROM tab1
----
69
69
69

query II rowsort
SELECT ALL - col1 AS col0, col0 FROM tab2
----
-51
46
-67
75
-77
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2263
SELECT - MAX( ALL - + 26 ) FROM tab2
----
26

skipif mysql # not compatible
query I rowsort label-2263
SELECT - MAX ( ALL - + 26 ) FROM tab2
----
26

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 26 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( 41 * + col2 ) > ( NULL )
----

query I rowsort
SELECT + + ( - col0 ) * 73 FROM tab1 cor0
----
-3723
-6205
-6643

query I rowsort
SELECT - + 46 * + col0 AS col1 FROM tab2 AS cor0
----
-2116
-2944
-3450

onlyif mysql # aggregate syntax: 
query I rowsort label-2268
SELECT DISTINCT + SUM( - col0 ) col2 FROM tab1
----
-227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2268
SELECT DISTINCT + SUM ( - col0 ) col2 FROM tab1
----
-227

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN - + col2 AND - col0
----

query I rowsort
SELECT + ( col2 ) + 44 FROM tab0 AS cor0
----
143
54
91

query I rowsort
SELECT ALL + col1 / 99 + 18 * 89 AS col0 FROM tab0 AS cor0 WHERE ( NOT - - col0 * col2 NOT IN ( 6 * + col0 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2272
SELECT - col2 DIV - + col2 AS col1 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2272
SELECT - col2 / - + col2 AS col1 FROM tab1 AS cor0
----
1
1
1

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 < + 18
----

query I rowsort
SELECT + - ( - - col1 ) FROM tab0 cor0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-2275
SELECT DISTINCT + COUNT( DISTINCT - col0 ) + + - COUNT( * ) AS col0, + COUNT( * ) FROM tab1 AS cor0
----
0
3

skipif mysql # not compatible
query II rowsort label-2275
SELECT DISTINCT + COUNT ( DISTINCT - col0 ) + + - COUNT ( * ) AS col0, + COUNT ( * ) FROM tab1 AS cor0
----
0
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2276
SELECT - SUM( DISTINCT + ( - col1 ) ) FROM tab1 cor0
----
66

skipif mysql # not compatible
query I rowsort label-2276
SELECT - SUM ( DISTINCT + ( - col1 ) ) FROM tab1 cor0
----
66

query III rowsort
SELECT * FROM tab2 cor0 WHERE col2 * - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2278
SELECT DISTINCT COUNT( ALL - - col2 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2278
SELECT DISTINCT COUNT ( ALL - - col2 ) FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2279
SELECT + 90 - + + CAST( + - 16 AS SIGNED ) AS col0 FROM tab1
----
106
106
106

skipif mysql # not compatible
query I rowsort label-2279
SELECT + 90 - + + CAST ( + - 16 AS INTEGER ) AS col0 FROM tab1
----
106
106
106

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 + + ( + - col0 ) * + ( col0 ) IN ( - - col1 * - 6 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2281
SELECT + - CAST( NULL AS SIGNED ) * + COUNT( * ) + + 32 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2281
SELECT + - CAST ( NULL AS INTEGER ) * + COUNT ( * ) + + 32 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2282
SELECT ALL + 23 + + - MIN( ALL - col0 ) FROM tab2 AS cor0
----
98

skipif mysql # not compatible
query I rowsort label-2282
SELECT ALL + 23 + + - MIN ( ALL - col0 ) FROM tab2 AS cor0
----
98

query I rowsort
SELECT ALL - col2 / 71 AS col2 FROM tab1 AS cor0 WHERE + col0 <> NULL
----

query III rowsort
SELECT col2, col0 + - ( + col0 ), + + col1 AS col0 FROM tab2 AS cor0 WHERE - col1 IS NULL
----

query I rowsort
SELECT - col0 + + - col1 AS col1 FROM tab1 AS cor0
----
-138
-65
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-2286
SELECT ALL - 8 + - COUNT( * ) AS col0 FROM tab0
----
-11

skipif mysql # not compatible
query I rowsort label-2286
SELECT ALL - 8 + - COUNT ( * ) AS col0 FROM tab0
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-2287
SELECT ALL - - COUNT( * ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-2287
SELECT ALL - - COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 25 - col0 col0 FROM tab2
----
-21
-39
-50

query I rowsort
SELECT DISTINCT - 80 AS col2 FROM tab1
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-2290
SELECT + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT 43 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2290
SELECT + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT 43 IS NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2291
SELECT + CAST( col1 AS SIGNED ) AS col1, + col2 DIV + col0 * + col1 FROM tab2 AS cor0
----
51
0
67
0
77
0

skipif mysql # not compatible
query II rowsort label-2291
SELECT + CAST ( col1 AS INTEGER ) AS col1, + col2 / + col0 * + col1 FROM tab2 AS cor0
----
51
0
67
0
77
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) = ( 64 * - + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 * 64 AS col1, col1 - + col2 + + - 60 + - - ( - 95 ) col0 FROM tab1 AS cor0
----
-3008
-176
-320
-209
-896
-237

query I rowsort
SELECT DISTINCT col0 * - 33 * col2 + + 50 * + + col1 FROM tab2 AS cor0
----
-140200
-32364
-80630

query I rowsort
SELECT col2 AS col2 FROM tab2 AS cor0 WHERE NOT + col2 IS NULL
----
23
40
58

query I rowsort
SELECT col0 * + + col0 FROM tab2 AS cor0
----
2116
4096
5625

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 * - 26 <= NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 - - col1 > ( 98 + - 30 )
----
15
81
47
97
1
99

query I rowsort
SELECT ALL + 35 * col0 * + col2 FROM tab0
----
24675
30450
336105

onlyif mysql # aggregate syntax: 
query I rowsort label-2300
SELECT DISTINCT - 2 * - MAX( + + col0 ) AS col0 FROM tab2
----
150

skipif mysql # not compatible
query I rowsort label-2300
SELECT DISTINCT - 2 * - MAX ( + + col0 ) AS col0 FROM tab2
----
150

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2301
SELECT ALL - CAST( NULL AS SIGNED ) FROM tab1 WHERE - col2 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2301
SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab1 WHERE - col2 IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2302
SELECT ALL col1 DIV - 56 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2302
SELECT ALL col1 / - 56 AS col1 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2303
SELECT + - 98 + - AVG ( ALL col1 ) * - - COUNT( DISTINCT + col2 ) col1 FROM tab1 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-2303
SELECT + - 98 + - AVG ( ALL col1 ) * - - COUNT ( DISTINCT + col2 ) col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 BETWEEN 18 AND ( - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + - 4 * + col2 + + + 0 FROM tab1 AS cor0
----
-236
-272
-384

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 NOT BETWEEN + - 57 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2307
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab2 WHERE NOT 98 * 43 * - - ( 30 ) + + - col1 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2307
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab2 WHERE NOT 98 * 43 * - - ( 30 ) + + - col1 IS NULL
----
-3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 8 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2309
SELECT + 64 + + + COUNT( * ) FROM tab0 cor0
----
67

skipif mysql # not compatible
query I rowsort label-2309
SELECT + 64 + + + COUNT ( * ) FROM tab0 cor0
----
67

query I rowsort
SELECT - col1 * - - col2 + - + 36 AS col0 FROM tab0 AS cor0 WHERE NULL <= col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2311
SELECT DISTINCT - MAX( DISTINCT ( + col1 ) ) col2 FROM tab0
----
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2311
SELECT DISTINCT - MAX ( DISTINCT ( + col1 ) ) col2 FROM tab0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-2312
SELECT DISTINCT MAX( ALL + col0 ) - + - 48 FROM tab2
----
123

skipif mysql # not compatible
query I rowsort label-2312
SELECT DISTINCT MAX ( ALL + col0 ) - + - 48 FROM tab2
----
123

query I rowsort
SELECT ALL col1 * + - col1 * + 46 - + col2 + + ( ( + ( + col0 ) ) ) * col2 + ( - col2 ) + - col2 * col2 * col1 FROM tab2
----
-145613
-393454
-427648

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 99 * + 67 * + col0 col2 FROM tab2
----
305118
424512
497475

onlyif mysql # aggregate syntax: 
query I rowsort label-2315
SELECT DISTINCT - + COUNT( DISTINCT - + 15 ) + + 28 * + COUNT( * ) col1 FROM tab0 cor0
----
83

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2315
SELECT DISTINCT - + COUNT ( DISTINCT - + 15 ) + + 28 * + COUNT ( * ) col1 FROM tab0 cor0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-2316
SELECT SUM( DISTINCT + col0 ) / + + COUNT( * ) AS col0 FROM tab0 WHERE NOT NULL <> ( 9 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2316
SELECT SUM ( DISTINCT + col0 ) / + + COUNT ( * ) AS col0 FROM tab0 WHERE NOT NULL <> ( 9 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2317
SELECT + - COUNT( * ) + - COUNT( * ) FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-18

skipif mysql # not compatible
query I rowsort label-2317
SELECT + - COUNT ( * ) + - COUNT ( * ) FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-18

query I rowsort
SELECT DISTINCT ( - - 74 ) FROM tab1 AS cor0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-2319
SELECT - 88 * - COUNT( * ) + COUNT( * ) AS col0 FROM tab0 AS cor0
----
267

skipif mysql # not compatible
query I rowsort label-2319
SELECT - 88 * - COUNT ( * ) + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
267

query II rowsort
SELECT DISTINCT + col0 AS col0, - col1 * - - col2 FROM tab0 AS cor0
----
15
-3807
87
-210
97
-99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 > NULL
----

query I rowsort
SELECT DISTINCT 66 * - col0 * + ( - + col2 ) + - col2 AS col1 FROM tab2 AS cor0
----
168920
287042
69805

query I rowsort
SELECT DISTINCT - col0 * + 16 * + - 39 * - col1 * 51 FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
-3086928
-38666160
-58142448

onlyif mysql # aggregate syntax: 
query I rowsort label-2324
SELECT SUM( DISTINCT - - col1 ) AS col1 FROM tab2 cor0
----
195

skipif mysql # not compatible
query I rowsort label-2324
SELECT SUM ( DISTINCT - - col1 ) AS col1 FROM tab2 cor0
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-2325
SELECT ALL + 63 * + 89 * - COUNT( * ) AS col0 FROM tab2
----
-16821

skipif mysql # not compatible
query I rowsort label-2325
SELECT ALL + 63 * + 89 * - COUNT ( * ) AS col0 FROM tab2
----
-16821

onlyif mysql # aggregate syntax: 
query I rowsort label-2326
SELECT DISTINCT 70 * COUNT( * ) FROM tab2
----
210

skipif mysql # not compatible
query I rowsort label-2326
SELECT DISTINCT 70 * COUNT ( * ) FROM tab2
----
210

query II rowsort
SELECT 28 * + col2 AS col1, - col2 AS col2 FROM tab1
----
1652
-59
1904
-68
2688
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-2328
SELECT DISTINCT + col2 * col0 DIV + - col0 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-2328
SELECT DISTINCT + col2 * col0 / + - col0 FROM tab1
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2329
SELECT DISTINCT + MAX( DISTINCT + col0 ) AS col0 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-2329
SELECT DISTINCT + MAX ( DISTINCT + col0 ) AS col0 FROM tab2
----
75

query I rowsort
SELECT ALL col1 * - - col1 AS col1 FROM tab2 cor0
----
2601
4489
5929

onlyif mysql # aggregate syntax: 
query I rowsort label-2331
SELECT 32 * + COUNT( DISTINCT + ( + col0 ) ) col1 FROM tab2 AS cor0
----
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2331
SELECT 32 * + COUNT ( DISTINCT + ( + col0 ) ) col1 FROM tab2 AS cor0
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2332
SELECT * FROM tab1 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) + 23 * - - 53 <= NULL
----

skipif mysql # not compatible
query III rowsort label-2332
SELECT * FROM tab1 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) + 23 * - - 53 <= NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 * + 4 IS NOT NULL AND NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2334
SELECT ALL - + MAX( + CAST( NULL AS SIGNED ) ) FROM tab2 WHERE NOT ( NOT ( NOT NULL IS NULL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2334
SELECT ALL - + MAX ( + CAST ( NULL AS INTEGER ) ) FROM tab2 WHERE NOT ( NOT ( NOT NULL IS NULL ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2335
SELECT CAST( + + col1 AS SIGNED ) FROM tab2 WHERE + 3 IS NULL
----

skipif mysql # not compatible
query I rowsort label-2335
SELECT CAST ( + + col1 AS INTEGER ) FROM tab2 WHERE + 3 IS NULL
----

query I rowsort
SELECT ALL col1 + - + col0 AS col2 FROM tab0
----
-66
-96
66

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 81 IS NULL
----

query I rowsort
SELECT DISTINCT + col0 + + + col2 FROM tab2 cor0
----
104
133
69

query I rowsort
SELECT ALL - 74 AS col0 FROM tab2 cor0
----
-74
-74
-74

onlyif mysql # aggregate syntax: 
query II rowsort label-2340
SELECT + COUNT( * ) AS col1, - COUNT( + col2 ) AS col2 FROM tab2 AS cor0
----
3
-3

skipif mysql # not compatible
query II rowsort label-2340
SELECT + COUNT ( * ) AS col1, - COUNT ( + col2 ) AS col2 FROM tab2 AS cor0
----
3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2341
SELECT ALL - COUNT( * ) + 27 FROM tab1 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-2341
SELECT ALL - COUNT ( * ) + 27 FROM tab1 AS cor0
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-2342
SELECT + + col1 DIV + 42 AS col0 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2342
SELECT + + col1 / + 42 AS col0 FROM tab0 AS cor0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2343
SELECT ALL + MAX( DISTINCT - - col0 ) - - - ( + AVG ( DISTINCT + col2 ) ) FROM tab0 cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2343
SELECT ALL + MAX ( DISTINCT - - col0 ) - - - ( + AVG ( DISTINCT + col2 ) ) FROM tab0 cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

query I rowsort
SELECT ALL - - col2 AS col2 FROM tab1 AS cor0 WHERE - col2 NOT BETWEEN NULL AND col2
----

query I rowsort
SELECT ALL + 8 + col0 AS col1 FROM tab2 AS cor0
----
54
72
83

query I rowsort
SELECT DISTINCT col1 * - - col0 + - col0 FROM tab1
----
340
4186
663

onlyif mysql # aggregate syntax: 
query I rowsort label-2347
SELECT MIN( ALL 44 ) - + - 48 * - + ( COUNT( * ) ) AS col1 FROM tab0
----
-100

skipif mysql # not compatible
query I rowsort label-2347
SELECT MIN ( ALL 44 ) - + - 48 * - + ( COUNT ( * ) ) AS col1 FROM tab0
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-2348
SELECT ALL ( 61 ) - - COUNT( * ) FROM tab1
----
64

skipif mysql # not compatible
query I rowsort label-2348
SELECT ALL ( 61 ) - - COUNT ( * ) FROM tab1
----
64

query I rowsort
SELECT + 58 - - col2 AS col0 FROM tab0
----
105
157
68

query II rowsort
SELECT DISTINCT col1, 3 + - col1 FROM tab0
----
1
2
21
-18
81
-78

query I rowsort
SELECT ALL col1 - col2 + col0 AS col2 FROM tab0
----
-1
49
98

query I rowsort
SELECT DISTINCT col1 - + + col2 * - col2 FROM tab0
----
121
2290
9802

query I rowsort
SELECT + 42 FROM tab2 WHERE NULL IN ( + + col2, + 11, 31 + col1, - + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2354
SELECT - COUNT( * ) + + - 99 AS col1 FROM tab0
----
-102

skipif mysql # not compatible
query I rowsort label-2354
SELECT - COUNT ( * ) + + - 99 AS col1 FROM tab0
----
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-2355
SELECT ALL + MIN( 98 ) AS col1 FROM tab0 AS cor0
----
98

skipif mysql # not compatible
query I rowsort label-2355
SELECT ALL + MIN ( 98 ) AS col1 FROM tab0 AS cor0
----
98

query I rowsort
SELECT - 12 + + + col2 AS col2 FROM tab1 AS cor0
----
47
56
84

query II rowsort
SELECT col1 AS col1, + 27 FROM tab0 cor0
----
1
27
21
27
81
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2358
SELECT DISTINCT + col2 * + CAST( + + 28 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
1316
2772
280

skipif mysql # not compatible
query I rowsort label-2358
SELECT DISTINCT + col2 * + CAST ( + + 28 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
1316
2772
280

query I rowsort
SELECT DISTINCT - + col2 AS col2 FROM tab1 WHERE - col1 <= - col1
----
-59
-68
-96

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) IN ( ( + 88 ) + ( + - col0 ) / + + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2361
SELECT + - COUNT( ALL - 92 ) * - - SUM( ALL - 71 ) - + COUNT( * ) FROM tab1 AS cor0
----
636

skipif mysql # not compatible
query I rowsort label-2361
SELECT + - COUNT ( ALL - 92 ) * - - SUM ( ALL - 71 ) - + COUNT ( * ) FROM tab1 AS cor0
----
636

query I rowsort
SELECT - - col0 * col2 + + col1 FROM tab2 cor0
----
1109
2637
4417

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 + col2 / + + ( 87 ) NOT BETWEEN 69 AND col0
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL > - 12
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
23
40
58

query II rowsort
SELECT DISTINCT + col1 * - col2, col2 FROM tab1 AS cor0
----
-1344
96
-295
59
-3196
68

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) = - col0 + + col2
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col1 + col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2369
SELECT DISTINCT col1 DIV - - col1 AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-2369
SELECT DISTINCT col1 / - - col1 AS col0 FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2370
SELECT DISTINCT + MIN( DISTINCT - - col2 ) AS col2 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-2370
SELECT DISTINCT + MIN ( DISTINCT - - col2 ) AS col2 FROM tab2
----
23

query I rowsort
SELECT DISTINCT - 98 * - - 59 + + - 57 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-5839

query I rowsort
SELECT + 87 + col2 AS col0 FROM tab0
----
134
186
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2373
SELECT ALL - 22 * + 56 col1 FROM tab0 AS cor0 WHERE - CAST( - 53 AS SIGNED ) / - - 99 * ( + + CAST( + col2 AS SIGNED ) ) * - col1 * - CAST( NULL AS SIGNED ) - col1 IS NULL
----
-1232
-1232
-1232

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2373
SELECT ALL - 22 * + 56 col1 FROM tab0 AS cor0 WHERE - CAST ( - 53 AS INTEGER ) / - - 99 * ( + + CAST ( + col2 AS INTEGER ) ) * - col1 * - CAST ( NULL AS INTEGER ) - col1 IS NULL
----
-1232
-1232
-1232

onlyif mysql # aggregate syntax: 
query I rowsort label-2374
SELECT ALL 59 + 43 * + COUNT( ALL - - col0 ) - - 16 FROM tab0 AS cor0
----
204

skipif mysql # not compatible
query I rowsort label-2374
SELECT ALL 59 + 43 * + COUNT ( ALL - - col0 ) - - 16 FROM tab0 AS cor0
----
204

query I rowsort
SELECT - 85 + + col1 + col1 + + + col1 * + 0 * 89 AS col1 FROM tab1
----
-57
-75
9

query I rowsort
SELECT DISTINCT - ( - 57 ) FROM tab1 AS cor0
----
57

query I rowsort
SELECT + + col0 + + col2 + - 85 FROM tab2 AS cor0
----
-16
19
48

onlyif mysql # aggregate syntax: 
query I rowsort label-2378
SELECT ALL - COUNT( * ) + + 51 AS col2 FROM tab2 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-2378
SELECT ALL - COUNT ( * ) + + 51 AS col2 FROM tab2 AS cor0
----
48

onlyif mysql # aggregate syntax: 
query II rowsort label-2379
SELECT - - 50 + + - 35, COUNT( - 80 ) + 80 AS col1 FROM tab2 AS cor0
----
15
83

skipif mysql # not compatible
query II rowsort label-2379
SELECT - - 50 + + - 35, COUNT ( - 80 ) + 80 AS col1 FROM tab2 AS cor0
----
15
83

query I rowsort
SELECT ALL - col0 + 46 + - col0 FROM tab1 AS cor0
----
-124
-136
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-2381
SELECT ALL + + 22 + + - MAX( col0 ) AS col1 FROM tab1 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-2381
SELECT ALL + + 22 + + - MAX ( col0 ) AS col1 FROM tab1 AS cor0
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-2382
SELECT - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE - col2 + col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2382
SELECT - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE - col2 + col1 IS NULL
----
0

query I rowsort
SELECT ALL + 76 AS col1 FROM tab0 AS cor0 WHERE - 78 IS NULL
----

query I rowsort
SELECT - col1 * - + 39 + + 49 FROM tab1
----
1882
244
595

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - 48 * - col0 + - + col0 + - + ( + col2 ) col2 FROM tab2 WHERE - col0 IS NULL
----

query II rowsort
SELECT ALL 15, + 57 + + + ( + + col0 ) AS col1 FROM tab2
----
15
103
15
121
15
132

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2387
SELECT ALL - col0 + - 44 FROM tab2 WHERE ( - ( col2 ) + + + CAST( - - ( - - 44 ) AS SIGNED ) * col0 * ( - col2 ) * 16 + - - 78 / - 54 * col0 ) NOT BETWEEN NULL AND ( + 0 / + + col0 * - - ( + + col0 ) + 95 )
----

skipif mysql # not compatible
query I rowsort label-2387
SELECT ALL - col0 + - 44 FROM tab2 WHERE ( - ( col2 ) + + + CAST ( - - ( - - 44 ) AS INTEGER ) * col0 * ( - col2 ) * 16 + - - 78 / - 54 * col0 ) NOT BETWEEN NULL AND ( + 0 / + + col0 * - - ( + + col0 ) + 95 )
----

query I rowsort
SELECT 78 * + + col2 AS col0 FROM tab2
----
1794
3120
4524

query I rowsort
SELECT DISTINCT 83 AS col1 FROM tab0 WHERE NOT ( NULL ) < 59 * - col2 + col0
----

query I rowsort
SELECT ALL 86 * - + 24 FROM tab0
----
-2064
-2064
-2064

query I rowsort
SELECT 19 * + + 99 AS col1 FROM tab2
----
1881
1881
1881

onlyif mysql # aggregate syntax: 
query I rowsort label-2392
SELECT DISTINCT COUNT( * ) * + COUNT( col2 ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-2392
SELECT DISTINCT COUNT ( * ) * + COUNT ( col2 ) FROM tab2
----
9

query I rowsort
SELECT 20 AS col1 FROM tab0 cor0
----
20
20
20

onlyif mysql # DIV for integer division: 
query I rowsort label-2394
SELECT - ( + 22 ) DIV - col1 FROM tab1 cor0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-2394
SELECT - ( + 22 ) / - col1 FROM tab1 cor0
----
0
1
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2395
SELECT DISTINCT + SUM( + - 92 ) * - 94 FROM tab2, tab0 AS cor0
----
77832

skipif mysql # not compatible
query I rowsort label-2395
SELECT DISTINCT + SUM ( + - 92 ) * - 94 FROM tab2, tab0 AS cor0
----
77832

onlyif mysql # aggregate syntax: 
query I rowsort label-2396
SELECT DISTINCT - COUNT( * ) col1 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2396
SELECT DISTINCT - COUNT ( * ) col1 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2397
SELECT ALL + COUNT( * ) * COUNT( * ) AS col2 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2397
SELECT ALL + COUNT ( * ) * COUNT ( * ) AS col2 FROM tab2 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2398
SELECT + COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( NULL ) < + + col1 * + - col0
----
0

skipif mysql # not compatible
query I rowsort label-2398
SELECT + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( NULL ) < + + col1 * + - col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2399
SELECT DISTINCT - - MIN( ALL + ( + col2 ) ) FROM tab2 cor0
----
23

skipif mysql # not compatible
query I rowsort label-2399
SELECT DISTINCT - - MIN ( ALL + ( + col2 ) ) FROM tab2 cor0
----
23

query I rowsort
SELECT ALL col2 FROM tab2 AS cor0 WHERE + col2 * + 92 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2401
SELECT ALL + COUNT( * ) * + SUM( DISTINCT ( - col0 ) ) FROM tab0 AS cor0
----
-597

skipif mysql # not compatible
query I rowsort label-2401
SELECT ALL + COUNT ( * ) * + SUM ( DISTINCT ( - col0 ) ) FROM tab0 AS cor0
----
-597

query I rowsort
SELECT + 31 * ( 11 ) * - + col2 FROM tab2
----
-13640
-19778
-7843

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 61 col0 FROM tab0
----
61
61
61

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 95 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 = ( NULL )
----

query I rowsort
SELECT DISTINCT + + ( - - col1 ) * + col2 + col0 FROM tab2 AS cor0
----
1219
3144
3961

query I rowsort
SELECT + 62 + ( + 5 ) * + 89 AS col1 FROM tab0 AS cor0
----
507
507
507

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col2 + - 70 * - col1 IS NOT NULL
----

query I rowsort
SELECT - 21 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 631fbd1fd929405aba54a22c2a06c757

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2410
SELECT - CAST( NULL AS SIGNED ) AS col1, 3 FROM tab1
----
NULL
3
NULL
3
NULL
3

skipif mysql # not compatible
query II rowsort label-2410
SELECT - CAST ( NULL AS INTEGER ) AS col1, 3 FROM tab1
----
NULL
3
NULL
3
NULL
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2411
SELECT DISTINCT * FROM tab0 WHERE NOT - col1 + - ( + col0 ) + CAST( + 93 AS SIGNED ) + - col0 <> NULL
----

skipif mysql # not compatible
query III rowsort label-2411
SELECT DISTINCT * FROM tab0 WHERE NOT - col1 + - ( + col0 ) + CAST ( + 93 AS INTEGER ) + - col0 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2412
SELECT * FROM tab0 WHERE NULL < - + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2412
SELECT * FROM tab0 WHERE NULL < - + CAST ( NULL AS INTEGER )
----

query II rowsort
SELECT + col0, - 10 + col1 FROM tab2 AS cor0
----
46
41
64
67
75
57

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL IN ( + 39, - 65, - + col0, - 37, 9, + + ( col2 ) )
----

query I rowsort
SELECT DISTINCT - 92 + + + 43 FROM tab1 AS cor0
----
-49

query I rowsort
SELECT DISTINCT + col2 + - + col0 FROM tab0 AS cor0
----
-77
2
32

query II rowsort
SELECT + col0 * - col2 * + + col2 AS col2, - 60 AS col2 FROM tab1 AS cor0
----
-295885
-60
-420784
-60
-470016
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-2418
SELECT col1 DIV - 80 + + col1 AS col0 FROM tab0 AS cor0
----
1
21
80

skipif mysql # not compatible
query I rowsort label-2418
SELECT col1 / - 80 + + col1 AS col0 FROM tab0 AS cor0
----
1
21
80

query I rowsort
SELECT DISTINCT + - col1 * ( - 40 ) + - - 87 FROM tab0 AS cor0
----
127
3327
927

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 - + 77 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col2 - 18 FROM tab1 AS cor0
----
-114
-77
-86

query I rowsort
SELECT col0 - + ( col0 ) + + - col1 + col1 AS col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2423
SELECT + COUNT( - + col0 ) - + + 53 AS col1 FROM tab2 AS cor0
----
-50

skipif mysql # not compatible
query I rowsort label-2423
SELECT + COUNT ( - + col0 ) - + + 53 AS col1 FROM tab2 AS cor0
----
-50

query I rowsort
SELECT DISTINCT - ( + 68 ) FROM tab0, tab1 AS cor0
----
-68

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2425
SELECT DISTINCT col2 - - col2 + 79 DIV + + 23 AS col1, col1 * + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
201
NULL
23
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-2425
SELECT DISTINCT col2 - - col2 + 79 / + + 23 AS col1, col1 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
201
NULL
23
NULL
97
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 99 col2 FROM tab0
----
-99

query III rowsort
SELECT ALL * FROM tab2 WHERE col1 + 8 + + 11 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( 42 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-2429
SELECT ALL col1 DIV - 99 * col0 AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2429
SELECT ALL col1 / - 99 * col0 AS col1 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2430
SELECT DISTINCT COUNT( * ) * - SUM( + col0 ) FROM tab0
----
-597

skipif mysql # not compatible
query I rowsort label-2430
SELECT DISTINCT COUNT ( * ) * - SUM ( + col0 ) FROM tab0
----
-597

onlyif mysql # aggregate syntax: 
query I rowsort label-2431
SELECT ALL + 1 * - + SUM( ALL - col1 ) FROM tab0 cor0 WHERE NOT + 16 * - col1 + + + 27 <> - + ( + - 84 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2431
SELECT ALL + 1 * - + SUM ( ALL - col1 ) FROM tab0 cor0 WHERE NOT + 16 * - col1 + + + 27 <> - + ( + - 84 )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 6 col1 FROM tab0 AS cor0
----
-6
-6
-6

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 * - 27 IN ( - 81 * + col2, col1 * - - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-2434
SELECT ALL COUNT( DISTINCT - col2 ), - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
3
-3

skipif mysql # not compatible
query II rowsort label-2434
SELECT ALL COUNT ( DISTINCT - col2 ), - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
3
-3

query I rowsort
SELECT DISTINCT col0 + - col2 + col2 + - 12 AS col2 FROM tab1 AS cor0
----
39
73
79

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2436
SELECT ALL col2 AS col2 FROM tab0 AS cor0 WHERE NOT ( CAST( NULL AS DECIMAL ) - - + col2 + + - col0 * + col2 ) <= NULL
----

skipif mysql # not compatible
query I rowsort label-2436
SELECT ALL col2 AS col2 FROM tab0 AS cor0 WHERE NOT ( CAST ( NULL AS REAL ) - - + col2 + + - col0 * + col2 ) <= NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - + col1 >= NULL
----

query II rowsort
SELECT DISTINCT + col1 AS col1, col1 * - col1 AS col1 FROM tab1
----
14
-196
47
-2209
5
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2439
SELECT DISTINCT - col2 * CAST( - col0 AS SIGNED ) + col2 + + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2439
SELECT DISTINCT - col2 * CAST ( - col0 AS INTEGER ) + col2 + + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT - col2 * + + ( - col2 ) + - - col0 AS col0 FROM tab0
----
187
2224
9898

onlyif mysql # aggregate syntax: 
query I rowsort label-2441
SELECT COUNT( * ) * + 57 + + SUM( ALL col1 ) AS col1 FROM tab2
----
366

skipif mysql # not compatible
query I rowsort label-2441
SELECT COUNT ( * ) * + 57 + + SUM ( ALL col1 ) AS col1 FROM tab2
----
366

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2442
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) + - 62 * + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2442
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) + - 62 * + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - + col2 + 38 * + col2 FROM tab1 AS cor0
----
2183
2516
3552

query I rowsort
SELECT ALL 40 * - - col2 AS col0 FROM tab2 AS cor0
----
1600
2320
920

query I rowsort
SELECT - 35 * + col0 AS col0 FROM tab0 AS cor0
----
-3045
-3395
-525

query II rowsort
SELECT ALL + - col2 + + col0, col0 FROM tab1 AS cor0
----
-45
51
23
91
26
85

query I rowsort
SELECT ALL - 82 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to f800b0aad28b82b2deb67f7045c9a45c

query II rowsort
SELECT ALL col2 * + - col0, + col1 FROM tab2
----
-1058
51
-2560
77
-4350
67

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 0 IS NOT NULL
----

query I rowsort
SELECT + col0 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - 79 FROM tab0 cor0
----
-79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2452
SELECT MIN( + + 72 ) DIV + + ( + 48 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2452
SELECT MIN ( + + 72 ) / + + ( + 48 ) FROM tab1 AS cor0
----
1

query I rowsort
SELECT + col1 FROM tab0 WHERE NOT - 27 NOT BETWEEN + + 21 AND - + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - ( - 66 ) col0 FROM tab1 WHERE + + ( - col2 ) * + col2 NOT BETWEEN - - col0 AND NULL
----
-66
-66
-66

query II rowsort
SELECT DISTINCT + col1, + col1 * + col0 FROM tab1
----
14
714
47
4277
5
425

query I rowsort
SELECT ALL - col0 * 9 * - - ( - ( + - col1 ) ) AS col0 FROM tab1
----
-3825
-38493
-6426

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2457
SELECT - ( - - col0 ) * CAST( + col0 AS SIGNED ) AS col2 FROM tab2
----
-2116
-4096
-5625

skipif mysql # not compatible
query I rowsort label-2457
SELECT - ( - - col0 ) * CAST ( + col0 AS INTEGER ) AS col2 FROM tab2
----
-2116
-4096
-5625

query I rowsort
SELECT DISTINCT 65 * - col2 AS col0 FROM tab2
----
-1495
-2600
-3770

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 / + col0 IS NOT NULL
----

query I rowsort
SELECT ALL - col1 * - 34 AS col1 FROM tab0
----
2754
34
714

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2461
SELECT ALL + CAST( NULL AS SIGNED ) / + 79 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2461
SELECT ALL + CAST ( NULL AS INTEGER ) / + 79 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 39 AS col0 FROM tab0 cor0
----
39
39
39

onlyif mysql # aggregate syntax: 
query I rowsort label-2463
SELECT ALL + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE ( NOT NULL IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-2463
SELECT ALL + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE ( NOT NULL IS NULL )
----
0

query II rowsort
SELECT ALL + col1 AS col0, - 31 FROM tab2 cor0
----
51
-31
67
-31
77
-31

query I rowsort
SELECT ALL - - 25 * - - col0 AS col0 FROM tab1 AS cor0
----
1275
2125
2275

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2466
SELECT CAST( NULL AS DECIMAL ) / 93 * - col0 * + 53 * + col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2466
SELECT CAST ( NULL AS REAL ) / 93 * - col0 * + 53 * + col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - 48 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

query I rowsort
SELECT + - 9 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to caf28657beb43049740febe1fa9ded5a

query II rowsort
SELECT 54 AS col0, + col1 - + 31 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
54
-10
54
-30
54
50

query II rowsort
SELECT + - ( col0 ), + 12 AS col1 FROM tab1 AS cor0
----
-51
12
-85
12
-91
12

onlyif mysql # aggregate syntax: 
query I rowsort label-2471
SELECT ALL SUM( - 41 ) FROM tab0 AS cor0
----
-123

skipif mysql # not compatible
query I rowsort label-2471
SELECT ALL SUM ( - 41 ) FROM tab0 AS cor0
----
-123

onlyif mysql # DIV for integer division: 
query I rowsort label-2472
SELECT ALL + - 91 DIV 45 DIV col1 DIV + col2 col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2472
SELECT ALL + - 91 / 45 / col1 / + col2 col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col2 + + 90 - + - col2 FROM tab1
----
208
226
282

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - 7 col2 FROM tab2 WHERE NOT NULL IN ( + col2 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2475
SELECT COUNT( * ) col2, - 11 * - + COUNT( * ) FROM tab2
----
3
33

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2475
SELECT COUNT ( * ) col2, - 11 * - + COUNT ( * ) FROM tab2
----
3
33

onlyif mysql # aggregate syntax: 
query I rowsort label-2476
SELECT MIN( ALL - + 86 ) FROM tab2
----
-86

skipif mysql # not compatible
query I rowsort label-2476
SELECT MIN ( ALL - + 86 ) FROM tab2
----
-86

query III rowsort
SELECT * FROM tab1 WHERE - - 59 IN ( 41 + - + 29, - 75, col1, + 4 )
----

query I rowsort
SELECT + col1 * 53 + col1 + + 11 FROM tab0 AS cor0
----
1145
4385
65

query I rowsort
SELECT DISTINCT + col1 + + 18 FROM tab0 AS cor0
----
19
39
99

query I rowsort
SELECT - 2 + - col0 * 22 FROM tab1 AS cor0
----
-1124
-1872
-2004

query I rowsort
SELECT ALL - 23 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ce60bf4b0647d0fcb18a0562e351c52d

onlyif mysql # aggregate syntax: 
query I rowsort label-2482
SELECT + ( 93 ) - - COUNT( * ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-2482
SELECT + ( 93 ) - - COUNT ( * ) FROM tab1 AS cor0
----
96

query I rowsort
SELECT ALL + 28 - + - col1 FROM tab1 AS cor0
----
33
42
75

query I rowsort
SELECT ALL 54 + - 90 * 82 AS col1 FROM tab0 AS cor0
----
-7326
-7326
-7326

query I rowsort
SELECT - - col1 * + 43 AS col1 FROM tab1 AS cor0
----
2021
215
602

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 < - ( + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - col1, ( + - 35 ) AS col0 FROM tab2 AS cor0
----
-51
-35
-67
-35
-77
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-2488
SELECT col1 DIV - - col0 - - 22 + - 73 * col0 FROM tab0 cor0
----
-1068
-6329
-7059

skipif mysql # not compatible
query I rowsort label-2488
SELECT col1 / - - col0 - - 22 + - 73 * col0 FROM tab0 cor0
----
-1068
-6329
-7059

query I rowsort
SELECT ( + + ( col1 ) ) AS col0 FROM tab2 cor0
----
51
67
77

query I rowsort
SELECT ALL - + col0 FROM tab0 WHERE - + 94 IS NULL
----

query I rowsort
SELECT 14 AS col2 FROM tab0 WHERE NOT col1 IS NULL
----
14
14
14

query I rowsort
SELECT + + col2 AS col0 FROM tab0 WHERE NOT - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2493
SELECT DISTINCT - CAST( + CAST( NULL AS DECIMAL ) AS SIGNED ) / - CAST( + - 55 AS SIGNED ) * + col0 / + col2 - - col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2493
SELECT DISTINCT - CAST ( + CAST ( NULL AS REAL ) AS INTEGER ) / - CAST ( + - 55 AS INTEGER ) * + col0 / + col2 - - col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2494
SELECT - COUNT( + + 2 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2494
SELECT - COUNT ( + + 2 ) FROM tab0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2495
SELECT DISTINCT ( - SUM( + CAST( - 90 AS SIGNED ) ) ) FROM tab0
----
270

skipif mysql # not compatible
query I rowsort label-2495
SELECT DISTINCT ( - SUM ( + CAST ( - 90 AS INTEGER ) ) ) FROM tab0
----
270

query II rowsort
SELECT ALL col2 * col1, + 88 AS col2 FROM tab0
----
210
88
3807
88
99
88

query I rowsort
SELECT ALL + + 53 * - col1 AS col0 FROM tab2 AS cor0
----
-2703
-3551
-4081

onlyif mysql # aggregate syntax: 
query II rowsort label-2498
SELECT DISTINCT 76 * - MAX( ALL + - col0 ) col1, COUNT( * ) - MAX( DISTINCT - 22 ) AS col1 FROM tab0
----
1140
25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2498
SELECT DISTINCT 76 * - MAX ( ALL + - col0 ) col1, COUNT ( * ) - MAX ( DISTINCT - 22 ) AS col1 FROM tab0
----
1140
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2499
SELECT DISTINCT - col0 + CAST( - - ( - 58 ) AS SIGNED ) FROM tab2 AS cor0
----
-104
-122
-133

skipif mysql # not compatible
query I rowsort label-2499
SELECT DISTINCT - col0 + CAST ( - - ( - 58 ) AS INTEGER ) FROM tab2 AS cor0
----
-104
-122
-133

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2500
SELECT DISTINCT + - CAST( NULL AS SIGNED ) * 29, 57 * + 45 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN - ( + col1 ) + + + col1 AND - + 50
----

skipif mysql # not compatible
query II rowsort label-2500
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * 29, 57 * + 45 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN - ( + col1 ) + + + col1 AND - + 50
----

query II rowsort
SELECT - col1 AS col1, - 37 FROM tab1 AS cor0
----
-14
-37
-47
-37
-5
-37

query I rowsort
SELECT ALL 68 + - col1 FROM tab1 cor0
----
21
54
63

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( + 19 ) + col2 + + col2 * 45 IS NULL
----

query I rowsort
SELECT + 43 + - + col1 + - 52 + - col0 FROM tab1 AS cor0
----
-147
-74
-99

query I rowsort
SELECT ALL + col1 + - - col1 - + col2 FROM tab1 AS cor0
----
-49
-68
26

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - col1 ) BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT ALL 1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2508
SELECT ALL 20 DIV col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2508
SELECT ALL 20 / col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2509
SELECT 23 + COUNT( * ) FROM tab0
----
26

skipif mysql # not compatible
query I rowsort label-2509
SELECT 23 + COUNT ( * ) FROM tab0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-2510
SELECT DISTINCT - SUM( ALL + col1 ) AS col1 FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-2510
SELECT DISTINCT - SUM ( ALL + col1 ) AS col1 FROM tab0
----
-103

query I rowsort
SELECT + col0 + - 94 FROM tab2
----
-19
-30
-48

query I rowsort
SELECT col0 * - + 15 AS col2 FROM tab2
----
-1125
-690
-960

onlyif mysql # DIV for integer division: 
query I rowsort label-2513
SELECT ALL - 35 DIV + 10 AS col0 FROM tab0
----
-3
-3
-3

skipif mysql # not compatible
query I rowsort label-2513
SELECT ALL - 35 / + 10 AS col0 FROM tab0
----
-3
-3
-3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( + + 46 - - - col1 / - col0 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2515
SELECT ALL + COUNT( * ) * - 88 FROM tab1 AS cor0
----
-264

skipif mysql # not compatible
query I rowsort label-2515
SELECT ALL + COUNT ( * ) * - 88 FROM tab1 AS cor0
----
-264

onlyif mysql # DIV for integer division: 
query I rowsort label-2516
SELECT - - col2 DIV + col1 + col0 FROM tab1 AS cor0
----
57
92
96

skipif mysql # not compatible
query I rowsort label-2516
SELECT - - col2 / + col1 + col0 FROM tab1 AS cor0
----
57
92
96

query I rowsort
SELECT DISTINCT + ( + col0 ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 16 <> NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE 16 NOT IN ( - 98, col1 * + - col2 + - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 92 + 71 FROM tab1 AS cor0
----
163
163
163

onlyif mysql # aggregate syntax: 
query I rowsort label-2521
SELECT ALL MAX( + col1 ) FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-2521
SELECT ALL MAX ( + col1 ) FROM tab1
----
47

query I rowsort
SELECT + col1 / + + col1 * - + 80 * - col0 + - 7 + col1 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - - 10 AS col1 FROM tab1 AS cor0
----
10
10
10

onlyif mysql # aggregate syntax: 
query II rowsort label-2524
SELECT DISTINCT - COUNT( * ) AS col1, - 84 col1 FROM tab2 AS cor0
----
-3
-84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2524
SELECT DISTINCT - COUNT ( * ) AS col1, - 84 col1 FROM tab2 AS cor0
----
-3
-84

query II rowsort
SELECT DISTINCT ( + ( + 70 ) ), - 15 + col1 + - col2 AS col1 FROM tab0 AS cor0
----
70
-113
70
-4
70
19

onlyif mysql # DIV for integer division: 
query I rowsort label-2526
SELECT - - col1 DIV 28 + + 71 FROM tab1 AS cor0
----
71
71
72

skipif mysql # not compatible
query I rowsort label-2526
SELECT - - col1 / 28 + + 71 FROM tab1 AS cor0
----
71
71
72

onlyif mysql # aggregate syntax: 
query I rowsort label-2527
SELECT DISTINCT + + SUM( ALL - col0 ) AS col1 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-2527
SELECT DISTINCT + + SUM ( ALL - col0 ) AS col1 FROM tab2 AS cor0
----
-185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2528
SELECT - ( + col2 ) / + - col1 * ( ( - CAST( NULL AS SIGNED ) ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2528
SELECT - ( + col2 ) / + - col1 * ( ( - CAST ( NULL AS INTEGER ) ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2529
SELECT ALL - col0 * - col2 DIV + col2 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-2529
SELECT ALL - col0 * - col2 / + col2 FROM tab1
----
51
85
91

query I rowsort
SELECT col2 * + col0 * - col0 * + col1 AS col2 FROM tab0
----
-1589490
-856575
-931491

query I rowsort
SELECT + 21 * + col0 FROM tab0
----
1827
2037
315

query I rowsort
SELECT 70 FROM tab2 WHERE NOT - 75 + - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2533
SELECT ALL 28 AS col2, + COUNT( * ) AS col0 FROM tab2
----
28
3

skipif mysql # not compatible
query II rowsort label-2533
SELECT ALL 28 AS col2, + COUNT ( * ) AS col0 FROM tab2
----
28
3

query III rowsort
SELECT ALL * FROM tab0 WHERE - - 85 = col0 + 15
----

query I rowsort
SELECT ALL + 75 FROM tab2 AS cor0 WHERE NOT col2 <= col1
----

query II rowsort
SELECT col2 + - - col1 AS col1, 62 * col1 * + + col1 FROM tab2 AS cor0 WHERE NOT col0 < NULL
----

query II rowsort
SELECT ALL + + col1 * - col1 AS col2, col2 AS col1 FROM tab1 cor0
----
-196
96
-2209
68
-25
59

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN col1 * - 50 + ( - col2 ) AND - - 12 * 57 + col1 + - - col0
----

query II rowsort
SELECT DISTINCT ( - col2 ) AS col0, + col0 AS col1 FROM tab0 AS cor0
----
-10
87
-47
15
-99
97

query I rowsort
SELECT ALL col2 * - - col1 * + + col1 AS col1 FROM tab2
----
237160
260362
59823

query III rowsort
SELECT * FROM tab2 WHERE - + 32 * - ( col2 ) >= + ( col0 ) * - + col1 - + + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 1 FROM tab2 cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + - 73 col2 FROM tab0 AS cor0
----
-154
-74
-94

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 = - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2545
SELECT + - MIN( DISTINCT col1 ) AS col1 FROM tab0 AS cor0 WHERE NULL <= - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2545
SELECT + - MIN ( DISTINCT col1 ) AS col1 FROM tab0 AS cor0 WHERE NULL <= - col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2546
SELECT DISTINCT - col0 * - col1 + col0 * + col2 DIV - col2 + col2 FROM tab2 AS cor0
----
2323
4904
5008

skipif mysql # not compatible
query I rowsort label-2546
SELECT DISTINCT - col0 * - col1 + col0 * + col2 / - col2 + col2 FROM tab2 AS cor0
----
2323
4904
5008

query I rowsort
SELECT ALL + col0 * + col1 + - col0 FROM tab2 AS cor0
----
2300
4864
4950

onlyif mysql # aggregate syntax: 
query I rowsort label-2548
SELECT - MIN( + col0 ) AS col0 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-2548
SELECT - MIN ( + col0 ) AS col0 FROM tab2 AS cor0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-2549
SELECT DISTINCT + 84 + COUNT( * ) FROM tab2 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-2549
SELECT DISTINCT + 84 + COUNT ( * ) FROM tab2 AS cor0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-2550
SELECT MAX( 77 ) AS col0 FROM tab1 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-2550
SELECT MAX ( 77 ) AS col0 FROM tab1 AS cor0
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2551
SELECT * FROM tab2 cor0 WHERE CAST( NULL AS SIGNED ) * + 61 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2551
SELECT * FROM tab2 cor0 WHERE CAST ( NULL AS INTEGER ) * + 61 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ( - 85 ) FROM tab0 AS cor0
----
-85
-85
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-2553
SELECT + MAX( ALL - - 8 ) AS col2 FROM tab0
----
8

skipif mysql # not compatible
query I rowsort label-2553
SELECT + MAX ( ALL - - 8 ) AS col2 FROM tab0
----
8

query I rowsort
SELECT DISTINCT - 33 AS col1 FROM tab1
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-2555
SELECT 41 + - COUNT( * ) col1 FROM tab2
----
38

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2555
SELECT 41 + - COUNT ( * ) col1 FROM tab2
----
38

query I rowsort
SELECT + 78 + - col2 FROM tab2 AS cor0
----
20
38
55

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 3 * col1 < col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2558
SELECT * FROM tab2 AS cor0 WHERE 90 * - ( CAST( + col1 AS SIGNED ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2558
SELECT * FROM tab2 AS cor0 WHERE 90 * - ( CAST ( + col1 AS INTEGER ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - - 95 - + 82 FROM tab1 AS cor0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-2560
SELECT - 16 * + + ( - MIN( ALL - - 93 ) ) FROM tab1, tab0 cor0
----
1488

skipif mysql # not compatible
query I rowsort label-2560
SELECT - 16 * + + ( - MIN ( ALL - - 93 ) ) FROM tab1, tab0 cor0
----
1488

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2562
SELECT ALL ( + ( + COUNT( * ) ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2562
SELECT ALL ( + ( + COUNT ( * ) ) ) FROM tab2
----
3

query I rowsort
SELECT ALL 83 * col0 * - + col2 FROM tab0
----
-58515
-72210
-797049

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE - col1 * - 90 BETWEEN NULL AND NULL
----

query I rowsort
SELECT + ( + + 52 ) AS col2 FROM tab2 AS cor0
----
52
52
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2566
SELECT + + MIN( ALL + col1 ) DIV - ( - 6 ) AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2566
SELECT + + MIN ( ALL + col1 ) / - ( - 6 ) AS col1 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2567
SELECT ALL + MIN( DISTINCT - - 13 ) * + 13 FROM tab0 AS cor0 WHERE NOT col1 <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2567
SELECT ALL + MIN ( DISTINCT - - 13 ) * + 13 FROM tab0 AS cor0 WHERE NOT col1 <> NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE - col1 * - col2 BETWEEN - 71 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2569
SELECT - SUM( + - col2 ) AS col2 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-2569
SELECT - SUM ( + - col2 ) AS col2 FROM tab2
----
121

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL BETWEEN col2 + + col2 / 51 AND - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2571
SELECT * FROM tab0 WHERE NOT + 48 * - - col2 - - col0 > ( + - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2571
SELECT * FROM tab0 WHERE NOT + 48 * - - col2 - - col0 > ( + - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2572
SELECT + ( + COUNT( * ) ) + - COUNT( * ), 63 * - 94 AS col1 FROM tab1
----
0
-5922

skipif mysql # not compatible
query II rowsort label-2572
SELECT + ( + COUNT ( * ) ) + - COUNT ( * ), 63 * - 94 AS col1 FROM tab1
----
0
-5922

onlyif mysql # DIV for integer division: 
query I rowsort label-2573
SELECT ( - + 41 ) DIV + col0 + + 62 + col0 AS col0 FROM tab1
----
113
147
153

skipif mysql # not compatible
query I rowsort label-2573
SELECT ( - + 41 ) / + col0 + + 62 + col0 AS col0 FROM tab1
----
113
147
153

query I rowsort
SELECT 73 + + 43 FROM tab2
----
116
116
116

query I rowsort
SELECT ( + col0 ) + 74 FROM tab2 cor0
----
120
138
149

onlyif mysql # aggregate syntax: 
query II rowsort label-2576
SELECT - COUNT( * ) AS col2, 0 * + + 43 FROM tab2 cor0
----
-3
0

skipif mysql # not compatible
query II rowsort label-2576
SELECT - COUNT ( * ) AS col2, 0 * + + 43 FROM tab2 cor0
----
-3
0

query I rowsort
SELECT col1 FROM tab0 WHERE NULL = col0
----

query II rowsort
SELECT ALL col0 AS col0, col0 AS col1 FROM tab1
----
51
51
85
85
91
91

query I rowsort
SELECT col2 + - col2 - col2 FROM tab0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2580
SELECT ALL COUNT( * ) + + COUNT( - + 92 ) AS col0 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-2580
SELECT ALL COUNT ( * ) + + COUNT ( - + 92 ) AS col0 FROM tab2
----
6

query I rowsort
SELECT + + col1 + - col1 + + - 9 FROM tab2 AS cor0
----
-9
-9
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2582
SELECT ALL + + COUNT( * ) + 48 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-2582
SELECT ALL + + COUNT ( * ) + 48 FROM tab1 AS cor0
----
51

query I rowsort
SELECT ALL - col0 FROM tab0 AS cor0 WHERE NOT NULL <= - col0 AND NOT NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 * - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 * col0 + - 53 + col2 AS col0 FROM tab0 AS cor0 WHERE + ( - col2 ) * + col2 IS NULL
----

query I rowsort
SELECT ALL - - ( + + col1 ) AS col1 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2587
SELECT DISTINCT COUNT( col0 ) + - 73 AS col2 FROM tab1 AS cor0
----
-70

skipif mysql # not compatible
query I rowsort label-2587
SELECT DISTINCT COUNT ( col0 ) + - 73 AS col2 FROM tab1 AS cor0
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-2588
SELECT DISTINCT - MAX( ALL + + ( - - col0 ) ) - COUNT( * ) AS col0 FROM tab1
----
-94

skipif mysql # not compatible
query I rowsort label-2588
SELECT DISTINCT - MAX ( ALL + + ( - - col0 ) ) - COUNT ( * ) AS col0 FROM tab1
----
-94

query II rowsort
SELECT ALL + 65 AS col0, + 40 * - 50 AS col1 FROM tab0, tab0 AS cor0
----
18 values hashing to 1f3fe744b46905682e01f10aced8d561

onlyif mysql # aggregate syntax: 
query I rowsort label-2590
SELECT ALL - SUM( + col2 ) - - COUNT( * ) FROM tab0
----
-153

skipif mysql # not compatible
query I rowsort label-2590
SELECT ALL - SUM ( + col2 ) - - COUNT ( * ) FROM tab0
----
-153

query I rowsort
SELECT + col0 * + col2 * - col2 FROM tab0
----
-33135
-8700
-950697

onlyif mysql # aggregate syntax: 
query II rowsort label-2592
SELECT - COUNT( * ) * 66 AS col2, COUNT( * ) FROM tab2
----
-198
3

skipif mysql # not compatible
query II rowsort label-2592
SELECT - COUNT ( * ) * 66 AS col2, COUNT ( * ) FROM tab2
----
-198
3

query I rowsort
SELECT ALL 89 * - 87 FROM tab2
----
-7743
-7743
-7743

onlyif mysql # DIV for integer division: 
query I rowsort label-2594
SELECT ALL + col1 - - col0 + + - col0 + col1 + + col2 + + + col2 * - col2 + - 33 DIV - col2 FROM tab2
----
-1406
-3172
-403

skipif mysql # not compatible
query I rowsort label-2594
SELECT ALL + col1 - - col0 + + - col0 + col1 + + col2 + + + col2 * - col2 + - 33 / - col2 FROM tab2
----
-1406
-3172
-403

onlyif mysql # aggregate syntax: 
query I rowsort label-2595
SELECT DISTINCT MAX( - - col2 ) - + - 98 AS col1 FROM tab1
----
194

skipif mysql # not compatible
query I rowsort label-2595
SELECT DISTINCT MAX ( - - col2 ) - + - 98 AS col1 FROM tab1
----
194

query I rowsort
SELECT DISTINCT - - col0 * + + col2 * + col2 FROM tab2 AS cor0
----
102400
24334
252300

onlyif mysql # aggregate syntax: 
query I rowsort label-2597
SELECT COUNT( * ) * - - MAX( DISTINCT - col2 ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-30

skipif mysql # not compatible
query I rowsort label-2597
SELECT COUNT ( * ) * - - MAX ( DISTINCT - col2 ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-30

query I rowsort
SELECT ALL + + 31 FROM tab1 cor0
----
31
31
31

onlyif mysql # aggregate syntax: 
query I rowsort label-2599
SELECT - MIN( 83 ) FROM tab0 AS cor0
----
-83

skipif mysql # not compatible
query I rowsort label-2599
SELECT - MIN ( 83 ) FROM tab0 AS cor0
----
-83

query II rowsort
SELECT 94 AS col2, col1 AS col1 FROM tab0
----
94
1
94
21
94
81

query I rowsort
SELECT + + 54 FROM tab0 cor0 WHERE NOT + 42 * col1 IS NULL
----
54
54
54

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) > + - col2 * - 41 / + - col1
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 20 / 14 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2604
SELECT DISTINCT + + 42 * COUNT( * ) FROM tab2 WHERE + 77 * + col2 * - 38 IS NOT NULL
----
126

skipif mysql # not compatible
query I rowsort label-2604
SELECT DISTINCT + + 42 * COUNT ( * ) FROM tab2 WHERE + 77 * + col2 * - 38 IS NOT NULL
----
126

query I rowsort
SELECT ALL + ( 87 ) AS col0 FROM tab0
----
87
87
87

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2606
SELECT ALL CAST( + - col0 AS SIGNED ) DIV - 85 * - col1 + - col2 * + col1 FROM tab2
----
-1173
-3080
-3886

skipif mysql # not compatible
query I rowsort label-2606
SELECT ALL CAST ( + - col0 AS INTEGER ) / - 85 * - col1 + - col2 * + col1 FROM tab2
----
-1173
-3080
-3886

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2607
SELECT CAST( NULL AS SIGNED ) * + 28 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2607
SELECT CAST ( NULL AS INTEGER ) * + 28 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 9 AS col2 FROM tab2 WHERE - 16 * - - col0 * + col0 IS NULL
----

query I rowsort
SELECT col1 * 61 AS col0 FROM tab0 WHERE NOT + col0 IS NULL
----
1281
4941
61

query II rowsort
SELECT ALL - - 62 + + col1 AS col0, + col1 AS col1 FROM tab1 AS cor0
----
109
47
67
5
76
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2611
SELECT - + col0 + - + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2611
SELECT - + col0 + - + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2612
SELECT 43 * + 67 + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
2884

skipif mysql # not compatible
query I rowsort label-2612
SELECT 43 * + 67 + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
2884

query II rowsort
SELECT ALL - + 95 AS col2, + 96 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
18 values hashing to a0f918997e26d704c1927514a7318a14

query I rowsort
SELECT - col1 + - 92 FROM tab0
----
-113
-173
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-2615
SELECT 67 + + COUNT( * ) + + 38 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
114

skipif mysql # not compatible
query I rowsort label-2615
SELECT 67 + + COUNT ( * ) + + 38 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
114

query I rowsort
SELECT DISTINCT + + 56 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
56

query I rowsort
SELECT - - 15 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

query II rowsort
SELECT + col1 AS col1, + 21 AS col1 FROM tab2 AS cor0
----
51
21
67
21
77
21

onlyif mysql # aggregate syntax: 
query I rowsort label-2619
SELECT - 87 * + - COUNT( * ) - - 13 AS col2 FROM tab0 AS cor0
----
274

skipif mysql # not compatible
query I rowsort label-2619
SELECT - 87 * + - COUNT ( * ) - - 13 AS col2 FROM tab0 AS cor0
----
274

query I rowsort
SELECT col2 * + + 72 FROM tab0 AS cor0
----
3384
7128
720

onlyif mysql # aggregate syntax: 
query I rowsort label-2621
SELECT ALL 62 * + ( COUNT( * ) ) FROM tab0 cor0
----
186

skipif mysql # not compatible
query I rowsort label-2621
SELECT ALL 62 * + ( COUNT ( * ) ) FROM tab0 cor0
----
186

query I rowsort
SELECT ALL - col0 + + col1 * + col0 * - ( - - col0 ) FROM tab1 AS cor0
----
-36210
-36465
-389298

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT NULL IS NULL OR NOT - col0 >= - + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2624
SELECT + COUNT( * ) * + 83 col1 FROM tab0 AS cor0
----
249

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2624
SELECT + COUNT ( * ) * + 83 col1 FROM tab0 AS cor0
----
249

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2625
SELECT + - MAX( ALL CAST( + 84 AS SIGNED ) ) FROM tab2 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-2625
SELECT + - MAX ( ALL CAST ( + 84 AS INTEGER ) ) FROM tab2 AS cor0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-2626
SELECT DISTINCT + COUNT( * ) + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-2626
SELECT DISTINCT + COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
6

query I rowsort
SELECT - 87 * - - col1 - ( - + col2 ) FROM tab0 AS cor0
----
-1817
-7000
12

onlyif mysql # aggregate syntax: 
query I rowsort label-2628
SELECT ALL + + SUM( ALL + col1 ) FROM tab0 AS cor0 WHERE ( NULL ) >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2628
SELECT ALL + + SUM ( ALL + col1 ) FROM tab0 AS cor0 WHERE ( NULL ) >= NULL
----
NULL

query I rowsort
SELECT DISTINCT + ( - - col0 ) AS col2 FROM tab2 AS cor0 WHERE + col1 = - 39 * - col0 + col0 + + 75 + + col1
----

query I rowsort
SELECT 92 - - + col1 FROM tab0
----
113
173
93

query III rowsort
SELECT * FROM tab0 WHERE + 52 BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL IS NOT NULL AND NULL IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col0 FROM tab1 WHERE - col1 * + - col0 BETWEEN NULL AND + col0 + + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 * 25 col2, col0 AS col1 FROM tab2
----
1150
46
1600
64
1875
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2635
SELECT - - COUNT( * ) * COUNT( * ) FROM tab0 cor0
----
9

skipif mysql # not compatible
query I rowsort label-2635
SELECT - - COUNT ( * ) * COUNT ( * ) FROM tab0 cor0
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2636
SELECT ALL 17 * - MIN( col0 ) * + - CAST( NULL AS SIGNED ) + - COUNT( * ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2636
SELECT ALL 17 * - MIN ( col0 ) * + - CAST ( NULL AS INTEGER ) + - COUNT ( * ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT + col0 FROM tab0 WHERE NOT + col2 IS NULL
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2638
SELECT ALL + - CAST( NULL AS SIGNED ) * col2 * - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2638
SELECT ALL + - CAST ( NULL AS INTEGER ) * col2 * - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 25 + - col1 FROM tab1 AS cor0
----
-30
-39
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2640
SELECT + + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) AS col2, + COUNT( * ) - + COUNT( * ) AS col1 FROM tab1 cor0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-2640
SELECT + + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2, + COUNT ( * ) - + COUNT ( * ) AS col1 FROM tab1 cor0
----
NULL
0

query I rowsort
SELECT ALL + + 69 AS col1 FROM tab1 cor0
----
69
69
69

onlyif mysql # aggregate syntax: 
query I rowsort label-2642
SELECT DISTINCT COUNT( * ) + - 48 + - COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
-48

skipif mysql # not compatible
query I rowsort label-2642
SELECT DISTINCT COUNT ( * ) + - 48 + - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2643
SELECT + - CAST( 18 AS SIGNED ) AS col0, + COUNT( * ) + - + COUNT( DISTINCT 9 ) FROM tab0 cor0
----
-18
2

skipif mysql # not compatible
query II rowsort label-2643
SELECT + - CAST ( 18 AS INTEGER ) AS col0, + COUNT ( * ) + - + COUNT ( DISTINCT 9 ) FROM tab0 cor0
----
-18
2

query I rowsort
SELECT ALL - + ( 39 ) AS col1 FROM tab0 AS cor0
----
-39
-39
-39

query I rowsort
SELECT DISTINCT + col0 * + + 3 FROM tab1
----
153
255
273

query I rowsort
SELECT ( + + col0 ) * col0 FROM tab0
----
225
7569
9409

query I rowsort
SELECT DISTINCT col1 * - 46 AS col1 FROM tab2
----
-2346
-3082
-3542

onlyif mysql # DIV for integer division: 
query I rowsort label-2648
SELECT DISTINCT col1 DIV + 74 AS col0 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-2648
SELECT DISTINCT col1 / + 74 AS col0 FROM tab0
----
0
1

query I rowsort
SELECT + + 64 * - col2 + - - ( - + 29 ) FROM tab1 WHERE NOT NULL >= NULL
----

query II rowsort
SELECT DISTINCT + col2, + col1 AS col1 FROM tab0
----
10
21
47
81
99
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2651
SELECT - col0 * - col0 + - 64 FROM tab0 WHERE col1 + - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2651
SELECT - col0 * - col0 + - 64 FROM tab0 WHERE col1 + - CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2652
SELECT DISTINCT + col0 + col2 DIV - 71 + 5 FROM tab2 AS cor0
----
51
69
80

skipif mysql # not compatible
query I rowsort label-2652
SELECT DISTINCT + col0 + col2 / - 71 + 5 FROM tab2 AS cor0
----
51
69
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2653
SELECT - MAX( + col2 ) AS col0 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-2653
SELECT - MAX ( + col2 ) AS col0 FROM tab1 AS cor0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2654
SELECT DISTINCT MIN( DISTINCT col1 ) * 44 col0 FROM tab2
----
2244

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2654
SELECT DISTINCT MIN ( DISTINCT col1 ) * 44 col0 FROM tab2
----
2244

onlyif mysql # DIV for integer division: 
query I rowsort label-2655
SELECT ( 88 ) DIV col2 AS col2 FROM tab0
----
0
1
8

skipif mysql # not compatible
query I rowsort label-2655
SELECT ( 88 ) / col2 AS col2 FROM tab0
----
0
1
8

query I rowsort
SELECT ALL col1 FROM tab1 WHERE col0 * - col0 IS NOT NULL
----
14
47
5

query I rowsort
SELECT + 96 * 25 FROM tab2 WHERE ( col0 ) - col2 IS NOT NULL
----
2400
2400
2400

query I rowsort
SELECT DISTINCT 61 * - 65 + col0 FROM tab1
----
-3874
-3880
-3914

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2659
SELECT + col2 FROM tab0 WHERE ( CAST( NULL AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2659
SELECT + col2 FROM tab0 WHERE ( CAST ( NULL AS INTEGER ) ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2660
SELECT DISTINCT 43 - - COUNT( - 83 ) * - COUNT( * ) AS col2 FROM tab0
----
34

skipif mysql # not compatible
query I rowsort label-2660
SELECT DISTINCT 43 - - COUNT ( - 83 ) * - COUNT ( * ) AS col2 FROM tab0
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-2661
SELECT + COUNT( * ) * 73 FROM tab1
----
219

skipif mysql # not compatible
query I rowsort label-2661
SELECT + COUNT ( * ) * 73 FROM tab1
----
219

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT BETWEEN + ( 82 ) / col0 AND ( + col0 / col1 + + 52 )
----

query I rowsort
SELECT - col2 * - ( - col2 ) AS col1 FROM tab0
----
-100
-2209
-9801

query I rowsort
SELECT col1 * ( + 83 ) AS col0 FROM tab1
----
1162
3901
415

query I rowsort
SELECT - 33 * ( - col2 ) AS col0 FROM tab2
----
1320
1914
759

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2666
SELECT ALL + col2 AS col1 FROM tab1 WHERE - CAST( col2 AS DECIMAL ) / col2 IN ( 69 )
----

skipif mysql # not compatible
query I rowsort label-2666
SELECT ALL + col2 AS col1 FROM tab1 WHERE - CAST ( col2 AS REAL ) / col2 IN ( 69 )
----

query I rowsort
SELECT ALL col2 + + col2 * + col2 FROM tab1
----
3540
4692
9312

query I rowsort
SELECT + 23 * - 48 AS col2 FROM tab1
----
-1104
-1104
-1104

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col0 * + col1 < ( 82 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <= ( col2 ) * 43
----

query I rowsort
SELECT col0 * 14 FROM tab2
----
1050
644
896

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2672
SELECT CAST( NULL AS SIGNED ) * - 22 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2672
SELECT CAST ( NULL AS INTEGER ) * - 22 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 23 * 90 FROM tab2
----
-2070

query I rowsort
SELECT 23 * 64 AS col2 FROM tab0
----
1472
1472
1472

query I rowsort
SELECT ALL col2 * 9 FROM tab1
----
531
612
864

query I rowsort
SELECT - col1 FROM tab0 WHERE NOT 65 + col0 BETWEEN NULL AND 88
----
-1
-21

query I rowsort
SELECT ALL + 62 + col1 AS col1 FROM tab1 WHERE NOT ( 88 ) NOT IN ( col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2678
SELECT + CAST( NULL AS SIGNED ) - - COUNT( DISTINCT col0 + + 88 ) FROM tab1 WHERE col0 / - col1 BETWEEN ( - col1 * 73 ) AND col1 + + 13 * + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2678
SELECT + CAST ( NULL AS INTEGER ) - - COUNT ( DISTINCT col0 + + 88 ) FROM tab1 WHERE col0 / - col1 BETWEEN ( - col1 * 73 ) AND col1 + + 13 * + col1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + 68 col2 FROM tab0
----
3196
6732
680

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 >= ( + 44 / - col1 + col1 * 29 )
----
15
81
47
87
21
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2681
SELECT ( - 59 ) + CAST( col2 AS SIGNED ) col2 FROM tab1
----
0
37
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2681
SELECT ( - 59 ) + CAST ( col2 AS INTEGER ) col2 FROM tab1
----
0
37
9

query I rowsort
SELECT ALL + col2 / col2 + 97 FROM tab1 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2683
SELECT ALL + COUNT( * ) AS col0 FROM tab1 WHERE col0 * col0 <= ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-2683
SELECT ALL + COUNT ( * ) AS col0 FROM tab1 WHERE col0 * col0 <= ( NULL )
----
0

query I rowsort
SELECT DISTINCT - 44 + col1 AS col0 FROM tab0 WHERE - 82 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 BETWEEN NULL AND - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2686
SELECT * FROM tab1 WHERE - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2686
SELECT * FROM tab1 WHERE - CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT ALL 17 + + 36 * col1 FROM tab1
----
1709
197
521

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2688
SELECT DISTINCT * FROM tab0 WHERE col0 BETWEEN ( - 89 * + col0 ) AND 56 + + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-2688
SELECT DISTINCT * FROM tab0 WHERE col0 BETWEEN ( - 89 * + col0 ) AND 56 + + CAST ( NULL AS REAL )
----

query I rowsort
SELECT - ( + 96 ) AS col0 FROM tab2
----
-96
-96
-96

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 29 * - col0 BETWEEN NULL AND 82
----

query I rowsort
SELECT col2 FROM tab0 WHERE NOT ( col0 ) IN ( col1 )
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2692
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - 1 + col2 * - CAST( NULL AS SIGNED ) AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-2692
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - 1 + col2 * - CAST ( NULL AS INTEGER ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2693
SELECT - 68 * MIN( - col2 ) AS col1 FROM tab1 AS cor0
----
6528

skipif mysql # not compatible
query I rowsort label-2693
SELECT - 68 * MIN ( - col2 ) AS col1 FROM tab1 AS cor0
----
6528

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE NOT col2 * - col1 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + 35 * 59 AS col0 FROM tab1 cor0
----
2065
2065
2065

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 14 * col0 col2 FROM tab0 cor0
----
1218
1358
210

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab2 cor0 WHERE NOT + col1 < NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IN ( 21 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - 5 ) <> + 16
----

query I rowsort
SELECT - ( col2 ) AS col2 FROM tab0 WHERE NOT 27 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2702
SELECT ALL - ( + SUM( ALL 8 ) ) FROM tab2
----
-24

skipif mysql # not compatible
query I rowsort label-2702
SELECT ALL - ( + SUM ( ALL 8 ) ) FROM tab2
----
-24

query I rowsort
SELECT ( 71 ) FROM tab0 AS cor0 CROSS JOIN tab0
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

onlyif mysql # aggregate syntax: 
query I rowsort label-2704
SELECT COUNT( * ) + COUNT( * ) * 62 FROM tab1 AS cor0 CROSS JOIN tab2
----
567

skipif mysql # not compatible
query I rowsort label-2704
SELECT COUNT ( * ) + COUNT ( * ) * 62 FROM tab1 AS cor0 CROSS JOIN tab2
----
567

query I rowsort
SELECT ALL - 47 + + col0 AS col2 FROM tab0 AS cor0
----
-32
40
50

query I rowsort
SELECT - 54 AS col0 FROM tab2 AS cor0
----
-54
-54
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-2707
SELECT ALL COUNT( * ) + + ( - 0 ) col0 FROM tab2 AS cor0 WHERE NOT ( - col0 ) IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2707
SELECT ALL COUNT ( * ) + + ( - 0 ) col0 FROM tab2 AS cor0 WHERE NOT ( - col0 ) IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <> ( + 12 )
----

query I rowsort
SELECT ALL - col1 + - 11 AS col1 FROM tab2 AS cor0
----
-62
-78
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-2710
SELECT DISTINCT COUNT( * ) * 48 FROM tab0 AS cor0
----
144

skipif mysql # not compatible
query I rowsort label-2710
SELECT DISTINCT COUNT ( * ) * 48 FROM tab0 AS cor0
----
144

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 * + col0 + + col1 BETWEEN ( NULL ) AND ( col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 36 FROM tab1 AS cor0 WHERE 11 >= + col0
----

query I rowsort
SELECT + - 34 * 16 AS col0 FROM tab2 AS cor0
----
-544
-544
-544

onlyif mysql # aggregate syntax: 
query I rowsort label-2714
SELECT DISTINCT - - COUNT( * ) + 63 * + 66 FROM tab1 AS cor0
----
4161

skipif mysql # not compatible
query I rowsort label-2714
SELECT DISTINCT - - COUNT ( * ) + 63 * + 66 FROM tab1 AS cor0
----
4161

query I rowsort
SELECT DISTINCT col1 * 17 FROM tab0 AS cor0
----
1377
17
357

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 39 * col0 col1 FROM tab0 AS cor0 WHERE ( col0 ) NOT IN ( + col2 )
----
3393
3783
585

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2717
SELECT ALL ( - + 66 ) DIV COUNT( * ) FROM tab2
----
-22

skipif mysql # not compatible
query I rowsort label-2717
SELECT ALL ( - + 66 ) / COUNT ( * ) FROM tab2
----
-22

onlyif mysql # DIV for integer division: 
query I rowsort label-2718
SELECT - col0 * 16 DIV - col1 FROM tab0
----
1552
2
66

skipif mysql # not compatible
query I rowsort label-2718
SELECT - col0 * 16 / - col1 FROM tab0
----
1552
2
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2719
SELECT + COUNT( * ) * - 44 + COUNT( * ) AS col0 FROM tab0 WHERE CAST( NULL AS SIGNED ) IS NULL
----
-129

skipif mysql # not compatible
query I rowsort label-2719
SELECT + COUNT ( * ) * - 44 + COUNT ( * ) AS col0 FROM tab0 WHERE CAST ( NULL AS INTEGER ) IS NULL
----
-129

query I rowsort
SELECT - 53 * col0 FROM tab1
----
-2703
-4505
-4823

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2721
SELECT ALL + 38 DIV + - COUNT( + 50 ) AS col2 FROM tab2
----
-12

skipif mysql # not compatible
query I rowsort label-2721
SELECT ALL + 38 / + - COUNT ( + 50 ) AS col2 FROM tab2
----
-12

query I rowsort
SELECT + 67 * - - col1 AS col1 FROM tab0
----
1407
5427
67

query I rowsort
SELECT 5 FROM tab1 WHERE col1 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 <= ( - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 33 * - col0 * + col2 AS col2 FROM tab1
----
-161568
-165495
-204204

onlyif mysql # DIV for integer division: 
query I rowsort label-2726
SELECT DISTINCT - + col0 + + + col1 + - col2 DIV 95 AS col1 FROM tab1 cor0
----
-38
-44
-80

skipif mysql # not compatible
query I rowsort label-2726
SELECT DISTINCT - + col0 + + + col1 + - col2 / 95 AS col1 FROM tab1 cor0
----
-38
-44
-80

query I rowsort
SELECT DISTINCT + col1 * - - col2 + 67 FROM tab1 AS cor0
----
1411
3263
362

onlyif mysql # aggregate syntax: 
query I rowsort label-2728
SELECT ALL - - COUNT( * ) + - 23 AS col0 FROM tab0 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-2728
SELECT ALL - - COUNT ( * ) + - 23 AS col0 FROM tab0 AS cor0
----
-20

query I rowsort
SELECT DISTINCT + - ( + 98 ) FROM tab0 AS cor0
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-2730
SELECT + MIN( - 92 ) + 44 AS col1 FROM tab1 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-2730
SELECT + MIN ( - 92 ) + 44 AS col1 FROM tab1 AS cor0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-2731
SELECT ALL + 92 * + 4 + + COUNT( * ) FROM tab0 AS cor0
----
371

skipif mysql # not compatible
query I rowsort label-2731
SELECT ALL + 92 * + 4 + + COUNT ( * ) FROM tab0 AS cor0
----
371

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 74 BETWEEN NULL AND 75
----

query I rowsort
SELECT + 67 + + + col0 FROM tab1 AS cor0
----
118
152
158

query I rowsort
SELECT col0 + ( + 71 ) AS col1 FROM tab1 WHERE NULL IS NULL
----
122
156
162

onlyif mysql # aggregate syntax: 
query I rowsort label-2735
SELECT ALL COUNT( * ) FROM tab1 WHERE ( NULL NOT BETWEEN + 17 * 65 AND ( + col1 ) )
----
0

skipif mysql # not compatible
query I rowsort label-2735
SELECT ALL COUNT ( * ) FROM tab1 WHERE ( NULL NOT BETWEEN + 17 * 65 AND ( + col1 ) )
----
0

query I rowsort
SELECT 83 AS col1 FROM tab2, tab2 cor0
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2737
SELECT DISTINCT CAST( + COUNT( * ) AS SIGNED ) col2 FROM tab2 WHERE NOT + - 57 = + col0 + col0 * + col0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2737
SELECT DISTINCT CAST ( + COUNT ( * ) AS INTEGER ) col2 FROM tab2 WHERE NOT + - 57 = + col0 + col0 * + col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2738
SELECT MIN( - 53 ) col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-53

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2738
SELECT MIN ( - 53 ) col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2739
SELECT DISTINCT - 33 - - CAST( - 36 AS SIGNED ) FROM tab1
----
-69

skipif mysql # not compatible
query I rowsort label-2739
SELECT DISTINCT - 33 - - CAST ( - 36 AS INTEGER ) FROM tab1
----
-69

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE NULL IN ( ( + 10 ) )
----

query I rowsort
SELECT ALL - ( + + 51 ) FROM tab0 AS cor0
----
-51
-51
-51

query I rowsort
SELECT 90 * + col2 + - ( 42 ) FROM tab2 AS cor0
----
2028
3558
5178

query I rowsort
SELECT + 33 - + 0 FROM tab0 AS cor0
----
33
33
33

query I rowsort
SELECT - 26 - 86 * col0 AS col2 FROM tab1 cor0 WHERE ( col0 ) <= col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2745
SELECT 96 - COUNT( * ) - COUNT( * ) FROM tab0 cor0
----
90

skipif mysql # not compatible
query I rowsort label-2745
SELECT 96 - COUNT ( * ) - COUNT ( * ) FROM tab0 cor0
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2746
SELECT + CAST( NULL AS SIGNED ) - 27 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2746
SELECT + CAST ( NULL AS INTEGER ) - 27 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2747
SELECT SUM( ALL + 84 ) AS col0 FROM tab0 AS cor0
----
252

skipif mysql # not compatible
query I rowsort label-2747
SELECT SUM ( ALL + 84 ) AS col0 FROM tab0 AS cor0
----
252

query I rowsort
SELECT ALL + - 22 AS col1 FROM tab2 AS cor0
----
-22
-22
-22

query I rowsort
SELECT col2 + - 73 FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN + - col1 / col1 AND + col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2750
SELECT COUNT( ALL col1 ) col0, + COUNT( * ) + + + 55 FROM tab0
----
3
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2750
SELECT COUNT ( ALL col1 ) col0, + COUNT ( * ) + + + 55 FROM tab0
----
3
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2751
SELECT + COUNT( - col0 ) - COUNT( * ) AS col2 FROM tab0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2751
SELECT + COUNT ( - col0 ) - COUNT ( * ) AS col2 FROM tab0 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT DISTINCT - col2 * + + col1 FROM tab1
----
-1344
-295
-3196

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL > + 55
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2754
SELECT DISTINCT + ( MIN( - col2 ) ) col1 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2754
SELECT DISTINCT + ( MIN ( - col2 ) ) col1 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - col0 ) NOT IN ( col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 WHERE col2 - col0 <> - col0 + col2 * + 80
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2757
SELECT DISTINCT CAST( - - col1 AS SIGNED ) + + 34 AS col0 FROM tab1 WHERE NULL < ( NULL )
----

skipif mysql # not compatible
query I rowsort label-2757
SELECT DISTINCT CAST ( - - col1 AS INTEGER ) + + 34 AS col0 FROM tab1 WHERE NULL < ( NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + 52 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 57 FROM tab2 WHERE NOT NULL <= ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2760
SELECT ALL MAX( DISTINCT - - ( CAST( + + 53 AS SIGNED ) ) ) FROM tab1
----
53

skipif mysql # not compatible
query I rowsort label-2760
SELECT ALL MAX ( DISTINCT - - ( CAST ( + + 53 AS INTEGER ) ) ) FROM tab1
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-2761
SELECT DISTINCT ( MIN( DISTINCT - + col1 ) ) FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-2761
SELECT DISTINCT ( MIN ( DISTINCT - + col1 ) ) FROM tab0 AS cor0
----
-81

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( + 34 ) NOT IN ( + 7 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + col1 * + col0 - - 91 + 63 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2764
SELECT ALL CAST( - - col2 AS SIGNED ) FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-2764
SELECT ALL CAST ( - - col2 AS INTEGER ) FROM tab2
----
23
40
58

query II rowsort
SELECT DISTINCT col2, + 30 * + - 14 AS col1 FROM tab1
----
59
-420
68
-420
96
-420

query I rowsort
SELECT ALL 37 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

query I rowsort
SELECT DISTINCT 20 + + col1 FROM tab1 AS cor0
----
25
34
67

onlyif mysql # aggregate syntax: 
query I rowsort label-2768
SELECT ALL - ( + + COUNT( col2 ) ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2768
SELECT ALL - ( + + COUNT ( col2 ) ) AS col0 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2769
SELECT ALL + 85 + + MAX( DISTINCT + 75 ) AS col1 FROM tab0 cor0
----
160

skipif mysql # not compatible
query I rowsort label-2769
SELECT ALL + 85 + + MAX ( DISTINCT + 75 ) AS col1 FROM tab0 cor0
----
160

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 44 <= 31
----

query I rowsort
SELECT DISTINCT col1 + - 67 FROM tab1 AS cor0
----
-20
-53
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-2772
SELECT ALL + COUNT( * ) + - - COUNT( * ) FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-2772
SELECT ALL + COUNT ( * ) + - - COUNT ( * ) FROM tab0 AS cor0
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-2773
SELECT DISTINCT ( - col0 ) DIV col0 + ( col0 ) * - col0 FROM tab0 AS cor0
----
-226
-7570
-9410

skipif mysql # not compatible
query I rowsort label-2773
SELECT DISTINCT ( - col0 ) / col0 + ( col0 ) * - col0 FROM tab0 AS cor0
----
-226
-7570
-9410

query I rowsort
SELECT - ( - ( + 18 ) ) + col0 * - 53 AS col1 FROM tab0 AS cor0
----
-4593
-5123
-777

onlyif mysql # aggregate syntax: 
query I rowsort label-2775
SELECT ALL COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2775
SELECT ALL COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 26 * - + 4 * col2 / - - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE 25 + 87 NOT IN ( - + col0 * + 79 + + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 7 * col1 + col1 AS col2 FROM tab2
----
408
536
616

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 AS cor0 WHERE NOT + 45 IS NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

query I rowsort
SELECT col1 * 20 + - 19 + col0 * + 99 FROM tab1
----
5310
8496
9930

query I rowsort
SELECT ALL + ( + 15 ) FROM tab0
----
15
15
15

query I rowsort
SELECT DISTINCT + col2 FROM tab1 WHERE NOT NULL > NULL
----

query I rowsort
SELECT + col1 + - - col0 AS col0 FROM tab1
----
138
65
90

query II rowsort
SELECT DISTINCT - 72, col2 AS col1 FROM tab1
----
-72
59
-72
68
-72
96

query I rowsort
SELECT + col0 * - 84 * col1 AS col0 FROM tab1
----
-35700
-359268
-59976

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 NOT IN ( - 2 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 <> NULL
----

query I rowsort
SELECT - + col2 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND + 94
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( - col1 ) / + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + + 14 AS col1 FROM tab2 WHERE NULL IN ( - - col2, 36 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL IS NOT NULL AND + 97 + - 56 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE + 12 >= + col0 * - 45
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col2 - - 97 AS col2 FROM tab2
----
120
137
155

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + + 6 * - col2 BETWEEN NULL AND - col2
----

query II rowsort
SELECT ALL + col0 - - + col2, - ( + col2 ) AS col0 FROM tab1
----
144
-59
147
-96
159
-68

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT col1 = ( + + col1 + + col2 ) )
----

query I rowsort
SELECT DISTINCT + - col2 * - 10 + + col1 AS col0 FROM tab1 cor0
----
595
727
974

onlyif mysql # aggregate syntax: 
query I rowsort label-2799
SELECT - - ( + 84 ) * + - COUNT( * ) AS col1 FROM tab2 cor0
----
-252

skipif mysql # not compatible
query I rowsort label-2799
SELECT - - ( + 84 ) * + - COUNT ( * ) AS col1 FROM tab2 cor0
----
-252

onlyif mysql # DIV for integer division: 
query I rowsort label-2800
SELECT DISTINCT - 62 DIV - - 36 + - ( + 8 ) AS col1 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-2800
SELECT DISTINCT - 62 / - - 36 + - ( + 8 ) AS col1 FROM tab2 AS cor0
----
-9

query I rowsort
SELECT - ( + 31 ) FROM tab0 AS cor0
----
-31
-31
-31

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 4 * + + col2 / col1 + + + 81 <> NULL
----

query II rowsort
SELECT - col2, col1 + - col2 AS col2 FROM tab1
----
-59
-54
-68
-21
-96
-82

query I rowsort
SELECT DISTINCT + + col1 AS col1 FROM tab1 WHERE + col0 BETWEEN NULL AND + + col2
----

query I rowsort
SELECT DISTINCT - 15 * + col2 AS col0 FROM tab1
----
-1020
-1440
-885

query III rowsort
SELECT ALL * FROM tab0 WHERE + ( + + 30 ) * - - col2 = - + 1 OR NOT - - col2 * col0 + + 48 IS NOT NULL
----

query II rowsort
SELECT DISTINCT col2, col0 + + + 45 AS col1 FROM tab0
----
10
132
47
60
99
142

query I rowsort
SELECT ALL - - 50 AS col1 FROM tab1 AS cor0
----
50
50
50

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2809
SELECT * FROM tab2 AS cor0 WHERE NOT col2 + + col0 + - CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2809
SELECT * FROM tab2 AS cor0 WHERE NOT col2 + + col0 + - CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 IN ( - col1 / - + 88 + - + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2811
SELECT DISTINCT - + COUNT( * ) AS col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-2811
SELECT DISTINCT - + COUNT ( * ) AS col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
-9

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 + - col0 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 75 * + col0 IS NULL
----

query I rowsort
SELECT col0 * 30 FROM tab1 AS cor0 WHERE + ( + col1 ) * col2 * - - ( - + col1 ) NOT IN ( - 71 )
----
1530
2550
2730

query I rowsort
SELECT ALL - col0 AS col2 FROM tab2 AS cor0 WHERE - col0 - + + col1 + col0 + col0 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2816
SELECT ALL - ( - COUNT( * ) ) + + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2816
SELECT ALL - ( - COUNT ( * ) ) + + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 60 * + 53 + - - col0 * col0 AS col2 FROM tab2 cor0
----
5296
7276
8805

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2818
SELECT DISTINCT * FROM tab1 cor0 WHERE 40 + CAST( - + col2 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-2818
SELECT DISTINCT * FROM tab1 cor0 WHERE 40 + CAST ( - + col2 AS INTEGER ) IS NULL
----

query II rowsort
SELECT - - ( - + col2 ) AS col1, + 74 + - - col0 FROM tab1 AS cor0
----
-59
159
-68
165
-96
125

query I rowsort
SELECT DISTINCT - + col2 + - col2 FROM tab0 AS cor0
----
-198
-20
-94

query I rowsort
SELECT DISTINCT col2 * - col2 AS col1 FROM tab2 WHERE - col1 >= - col1 * + ( + col0 ) * col2 + 50 + + + 65 * + 48 * + col2
----
-1600
-3364

query I rowsort
SELECT 26 * + + ( + col1 ) FROM tab2
----
1326
1742
2002

query I rowsort
SELECT ALL - 66 * + 5 - + 47 * - - col0 AS col0 FROM tab0
----
-1035
-4419
-4889

query I rowsort
SELECT ALL - col2 * 11 FROM tab2
----
-253
-440
-638

query I rowsort
SELECT + col1 FROM tab0 WHERE - 88 / - col0 * + col2 + - - col0 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col2 + + - col1 col0 FROM tab2
----
-1109
-2637
-4417

onlyif mysql # DIV for integer division: 
query I rowsort label-2827
SELECT ALL + + 55 DIV + 73 * 17 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2827
SELECT ALL + + 55 / + 73 * 17 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - 39 + 42 FROM tab0 AS cor0
----
3
3
3

query I rowsort
SELECT + 42 + col2 FROM tab2 AS cor0
----
100
65
82

query I rowsort
SELECT + col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - col1 + 6 AS col2 FROM tab2 AS cor0
----
-45
-61
-71

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 15 * + + 49 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2833
SELECT DISTINCT - 95 + - ( COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
-98

skipif mysql # not compatible
query I rowsort label-2833
SELECT DISTINCT - 95 + - ( COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
-98

query I rowsort
SELECT DISTINCT col1 - + - col0 FROM tab0 AS cor0
----
108
96
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2835
SELECT ALL + col1 - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2835
SELECT ALL + col1 - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - - col0 * + + col1 IN ( + + col0 )
----

query I rowsort
SELECT 70 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 44 * + col0 * + + col0 col1 FROM tab2 AS cor0
----
-180224
-247500
-93104

onlyif mysql # aggregate syntax: 
query I rowsort label-2839
SELECT DISTINCT MAX( DISTINCT + + col2 ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-2839
SELECT DISTINCT MAX ( DISTINCT + + col2 ) FROM tab1 AS cor0
----
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col0 * col0 col1 FROM tab2 AS cor0
----
262144
421875
97336

onlyif mysql # aggregate syntax: 
query I rowsort label-2841
SELECT MAX( DISTINCT - + 69 ) * - - 95 + 92 AS col1 FROM tab0 AS cor0 WHERE NOT - col1 IS NULL
----
-6463

skipif mysql # not compatible
query I rowsort label-2841
SELECT MAX ( DISTINCT - + 69 ) * - - 95 + 92 AS col1 FROM tab0 AS cor0 WHERE NOT - col1 IS NULL
----
-6463

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2842
SELECT ALL - CAST( NULL AS SIGNED ) / - COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2842
SELECT ALL - CAST ( NULL AS INTEGER ) / - COUNT ( * ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2843
SELECT ALL + SUM( ALL + - col2 ) AS col1 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-2843
SELECT ALL + SUM ( ALL + - col2 ) AS col1 FROM tab0 AS cor0
----
-156

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2844
SELECT + + 5 DIV + ( - SUM( DISTINCT + ( + - col1 ) ) ) FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2844
SELECT + + 5 / + ( - SUM ( DISTINCT + ( + - col1 ) ) ) FROM tab1 cor0
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND - col0 * - col0
----

query I rowsort
SELECT - 74 * + col0 + - col1 AS col2 FROM tab1 cor0 WHERE NOT + col2 IS NULL
----
-3788
-6295
-6781

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 13 * - 42 IS NOT NULL
----

query I rowsort
SELECT + - ( 29 ) * + col0 * + col0 AS col1 FROM tab0 AS cor0
----
-219501
-272861
-6525

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2849
SELECT ALL + 69, - CAST( NULL AS SIGNED ) + - CAST( NULL AS SIGNED ) + - col0 * - - ( col2 ) AS col2 FROM tab0 AS cor0
----
69
NULL
69
NULL
69
NULL

skipif mysql # not compatible
query II rowsort label-2849
SELECT ALL + 69, - CAST ( NULL AS INTEGER ) + - CAST ( NULL AS INTEGER ) + - col0 * - - ( col2 ) AS col2 FROM tab0 AS cor0
----
69
NULL
69
NULL
69
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2850
SELECT ALL + col2 * - 4 * + col1 FROM tab2 WHERE ( + - CAST( NULL AS SIGNED ) ) + col1 IS NULL
----
-12320
-15544
-4692

skipif mysql # not compatible
query I rowsort label-2850
SELECT ALL + col2 * - 4 * + col1 FROM tab2 WHERE ( + - CAST ( NULL AS INTEGER ) ) + col1 IS NULL
----
-12320
-15544
-4692

onlyif mysql # DIV for integer division: 
query II rowsort label-2851
SELECT ALL 85 DIV + - col2, + ( + col1 ) AS col2 FROM tab2
----
-1
67
-2
77
-3
51

skipif mysql # not compatible
query II rowsort label-2851
SELECT ALL 85 / + - col2, + ( + col1 ) AS col2 FROM tab2
----
-1
67
-2
77
-3
51

query III rowsort
SELECT * FROM tab0 WHERE NOT + 84 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-2853
SELECT ALL - col2 + 84 DIV + + 56 FROM tab1 AS cor0
----
-58
-67
-95

skipif mysql # not compatible
query I rowsort label-2853
SELECT ALL - col2 + 84 / + + 56 FROM tab1 AS cor0
----
-58
-67
-95

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col2 <= col0
----

query II rowsort
SELECT + col1 AS col1, col2 AS col2 FROM tab0
----
1
99
21
10
81
47

onlyif mysql # DIV for integer division: 
query I rowsort label-2856
SELECT DISTINCT col2 DIV col1 * - col2 * - - col1 + col0 FROM tab1
----
-3105
-3160
-8013

skipif mysql # not compatible
query I rowsort label-2856
SELECT DISTINCT col2 / col1 * - col2 * - - col1 + col0 FROM tab1
----
-3105
-3160
-8013

query I rowsort
SELECT col0 + + 38 FROM tab2 AS cor0
----
102
113
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2858
SELECT MIN( ALL - 59 ) - + + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-62

skipif mysql # not compatible
query I rowsort label-2858
SELECT MIN ( ALL - 59 ) - + + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-62

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NULL NOT BETWEEN - col0 AND col2
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 NOT BETWEEN NULL AND + col2
----

query I rowsort
SELECT DISTINCT + col2 * col2 + 93 AS col1 FROM tab0 AS cor0
----
193
2302
9894

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + ( + 69 ) ) IS NULL
----

query I rowsort
SELECT col0 + + + 5 FROM tab2 AS cor0
----
51
69
80

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL >= col0 * - col2
----

query I rowsort
SELECT DISTINCT - col1 - 67 FROM tab0 cor0
----
-148
-68
-88

query II rowsort
SELECT ALL 85 * + col1 * + col2 + - col0 AS col2, ( - + col1 ) FROM tab1
----
114189
-14
24990
-5
271569
-47

query I rowsort
SELECT DISTINCT + + ( + + col1 ) AS col0 FROM tab2 WHERE NOT 64 = + + col1
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2868
SELECT COUNT( + 83 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2868
SELECT COUNT ( + 83 ) FROM tab1
----
3

query I rowsort
SELECT DISTINCT col2 - + + col0 AS col0 FROM tab1
----
-23
-26
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2870
SELECT - 58 * + col1 + + col2 + - col0 + + CAST( NULL AS SIGNED ) * - 15 FROM tab0 WHERE 52 BETWEEN NULL AND + 74 + + col2
----

skipif mysql # not compatible
query I rowsort label-2870
SELECT - 58 * + col1 + + col2 + - col0 + + CAST ( NULL AS INTEGER ) * - 15 FROM tab0 WHERE 52 BETWEEN NULL AND + 74 + + col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2871
SELECT ALL MAX( ALL - - CAST( NULL AS SIGNED ) ) AS col0, - 88 FROM tab0
----
NULL
-88

skipif mysql # not compatible
query II rowsort label-2871
SELECT ALL MAX ( ALL - - CAST ( NULL AS INTEGER ) ) AS col0, - 88 FROM tab0
----
NULL
-88

query I rowsort
SELECT 44 * - + 94 FROM tab0
----
-4136
-4136
-4136

query I rowsort
SELECT - col1 * - + col1 - - - 61 + - - col2 * 40 * + col0 + + col0 + - 35 + - ( - col1 ) * + + 70 FROM tab2 AS cor0
----
113687
183158
48441

onlyif mysql # aggregate syntax: 
query I rowsort label-2874
SELECT DISTINCT + + COUNT( + col1 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2874
SELECT DISTINCT + + COUNT ( + col1 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL - 18 + + + 7 AS col0 FROM tab2 AS cor0
----
-11
-11
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-2876
SELECT DISTINCT + COUNT( * ) * + 11 + 67 AS col1 FROM tab0 AS cor0
----
100

skipif mysql # not compatible
query I rowsort label-2876
SELECT DISTINCT + COUNT ( * ) * + 11 + 67 AS col1 FROM tab0 AS cor0
----
100

query I rowsort
SELECT DISTINCT + col0 + 43 * + - col2 FROM tab2 AS cor0
----
-1656
-2419
-943

query I rowsort
SELECT ALL - - ( + + 45 ) AS col1 FROM tab2 cor0
----
45
45
45

query III rowsort
SELECT * FROM tab1 WHERE NOT + + 60 BETWEEN col0 AND NULL
----
85
5
59
91
47
68

onlyif mysql # aggregate syntax: 
query I rowsort label-2880
SELECT DISTINCT ( SUM( 74 ) ) FROM tab0, tab2 AS cor0
----
666

skipif mysql # not compatible
query I rowsort label-2880
SELECT DISTINCT ( SUM ( 74 ) ) FROM tab0, tab2 AS cor0
----
666

query I rowsort
SELECT - + 38 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e571541ae40cb0ddaca16e11f4359507

query I rowsort
SELECT + col2 * - + 35 FROM tab2 AS cor0
----
-1400
-2030
-805

query I rowsort
SELECT DISTINCT - 18 * - 35 AS col2 FROM tab1 AS cor0
----
630

query I rowsort
SELECT ALL col2 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT ( + - col1 ) AS col1 FROM tab0 cor0
----
-1
-21
-81

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col2 + col2 IS NOT NULL
----

query II rowsort
SELECT col2, + 44 * + + ( + 19 ) FROM tab1
----
59
836
68
836
96
836

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2888
SELECT ALL - COUNT( * ) * - CAST( + + COUNT( * ) AS SIGNED ) FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-2888
SELECT ALL - COUNT ( * ) * - CAST ( + + COUNT ( * ) AS INTEGER ) FROM tab1
----
9

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN 56 AND ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2890
SELECT - col2 DIV 94 col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2890
SELECT - col2 / 94 col0 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query II rowsort label-2891
SELECT col2 DIV + col1 col2, - col1 col2 FROM tab1
----
1
-47
11
-5
6
-14

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2891
SELECT col2 / + col1 col2, - col1 col2 FROM tab1
----
1
-47
11
-5
6
-14

query I rowsort
SELECT ALL col1 * - ( - col0 ) AS col0 FROM tab1
----
425
4277
714

onlyif mysql # aggregate syntax: 
query I rowsort label-2893
SELECT DISTINCT COUNT( - 47 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2893
SELECT DISTINCT COUNT ( - 47 ) AS col0 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2894
SELECT MIN( ALL + - col1 ) FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-2894
SELECT MIN ( ALL + - col1 ) FROM tab2
----
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-2895
SELECT DISTINCT 96 * + - COUNT( * ) AS col2, - 55 + - - COUNT( * ) FROM tab0
----
-288
-52

skipif mysql # not compatible
query II rowsort label-2895
SELECT DISTINCT 96 * + - COUNT ( * ) AS col2, - 55 + - - COUNT ( * ) FROM tab0
----
-288
-52

query I rowsort
SELECT col2 AS col0 FROM tab1 WHERE NOT 28 + - col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - col0 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
-15
-87
-97

onlyif mysql # DIV for integer division: 
query II rowsort label-2898
SELECT col2, 19 DIV + 12 + + col1 + - col1 + 11 FROM tab2 AS cor0
----
23
12
40
12
58
12

skipif mysql # not compatible
query II rowsort label-2898
SELECT col2, 19 / + 12 + + col1 + - col1 + 11 FROM tab2 AS cor0
----
23
12
40
12
58
12

query II rowsort
SELECT col2 + - col2 AS col1, + col1 FROM tab1 cor0 WHERE col0 >= NULL
----

query I rowsort
SELECT + ( col0 ) + - + col2 FROM tab1
----
-45
23
26

query I rowsort
SELECT - + 63 * + + 88 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to a4d3c6b84ec7f66f4785253b11010300

onlyif mysql # aggregate syntax: 
query I rowsort label-2902
SELECT DISTINCT 35 + MAX( DISTINCT + col2 ) * - 6 FROM tab0
----
-559

skipif mysql # not compatible
query I rowsort label-2902
SELECT DISTINCT 35 + MAX ( DISTINCT + col2 ) * - 6 FROM tab0
----
-559

query I rowsort
SELECT - - 52 AS col1 FROM tab0 AS cor0
----
52
52
52

query I rowsort
SELECT DISTINCT - col1 FROM tab1 AS cor0 WHERE NOT 26 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 9 * col2 + - - 10 AS col1 FROM tab1 AS cor0
----
-521
-602
-854

onlyif mysql # aggregate syntax: 
query I rowsort label-2906
SELECT DISTINCT + SUM( DISTINCT 81 ) FROM tab1 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-2906
SELECT DISTINCT + SUM ( DISTINCT 81 ) FROM tab1 AS cor0
----
81

query I rowsort
SELECT DISTINCT 26 * col0 + - col0 + - - col1 - col2 FROM tab0 AS cor0 WHERE NOT NULL = ( NULL )
----

query II rowsort
SELECT ALL - + 68 + + col1 AS col0, col2 AS col2 FROM tab2 AS cor0
----
-1
58
-17
23
9
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - + col0 * col2 col1 FROM tab0 AS cor0
----
-720
-957
-9700

query I rowsort
SELECT - + ( col0 ) FROM tab2 AS cor0 WHERE + col2 + + - col0 BETWEEN NULL AND + ( col1 )
----

query I rowsort
SELECT + - 21 - 36 FROM tab1 AS cor0
----
-57
-57
-57

query III rowsort
SELECT ALL * FROM tab1 WHERE + 25 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 87 col1 FROM tab2, tab2 AS cor0
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

query I rowsort
SELECT + + col0 AS col1 FROM tab2 WHERE + + col0 IS NOT NULL
----
46
64
75

onlyif mysql # DIV for integer division: 
query I rowsort label-2915
SELECT ALL 87 DIV 90 * - - col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2915
SELECT ALL 87 / 90 * - - col0 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT + col0 * + + 37 - col0 AS col2 FROM tab1
----
1836
3060
3276

query I rowsort
SELECT + col0 + + 51 AS col0 FROM tab0
----
138
148
66

query I rowsort
SELECT + ( - + col1 ) FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2919
SELECT + - CAST( NULL AS SIGNED ) * + 37 - + 5 * - col1 * + - 88 * - col2 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-2919
SELECT + - CAST ( NULL AS INTEGER ) * + 37 - + 5 * - col1 * + - 88 * - col2 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - ( + + ( + col1 ) ) AS col2 FROM tab0 AS cor0
----
-1
-21
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2921
SELECT ALL CAST( + MAX( + col2 ) AS SIGNED ) FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-2921
SELECT ALL CAST ( + MAX ( + col2 ) AS INTEGER ) FROM tab2
----
58

onlyif mysql # aggregate syntax: 
query II rowsort label-2922
SELECT DISTINCT - ( ( - COUNT( * ) ) ), + 70 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9
70

skipif mysql # not compatible
query II rowsort label-2922
SELECT DISTINCT - ( ( - COUNT ( * ) ) ), + 70 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9
70

query I rowsort
SELECT + 97 AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab1 cor1 )
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

query I rowsort
SELECT - 20 * + col2 FROM tab2 AS cor0
----
-1160
-460
-800

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( NOT - + col0 / + col0 IS NULL )
----

query I rowsort
SELECT + + 11 AS col1 FROM tab0 cor0
----
11
11
11

onlyif mysql # aggregate syntax: 
query I rowsort label-2927
SELECT COUNT( * ) * - - 78 AS col2 FROM tab2 cor0
----
234

skipif mysql # not compatible
query I rowsort label-2927
SELECT COUNT ( * ) * - - 78 AS col2 FROM tab2 cor0
----
234

query I rowsort
SELECT - col2 * + + col1 FROM tab2 AS cor0
----
-1173
-3080
-3886

query I rowsort
SELECT 93 * col1 AS col2 FROM tab0 AS cor0
----
1953
7533
93

onlyif mysql # aggregate syntax: 
query I rowsort label-2930
SELECT + MIN( col0 ) * + 80 - - 12 AS col2 FROM tab0 AS cor0
----
1212

skipif mysql # not compatible
query I rowsort label-2930
SELECT + MIN ( col0 ) * + 80 - - 12 AS col2 FROM tab0 AS cor0
----
1212

query I rowsort
SELECT ALL - + 33 * + col1 FROM tab1 AS cor0
----
-1551
-165
-462

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + col1 * - 67 * - 10 * + 95 col0, col2 AS col1 FROM tab1 AS cor0
----
-2991550
68
-318250
59
-891100
96

onlyif mysql # DIV for integer division: 
query II rowsort label-2933
SELECT DISTINCT col1 DIV - col0 AS col2, 67 AS col0 FROM tab0 AS cor0
----
-5
67
0
67

skipif mysql # not compatible
query II rowsort label-2933
SELECT DISTINCT col1 / - col0 AS col2, 67 AS col0 FROM tab0 AS cor0
----
-5
67
0
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2934
SELECT DISTINCT - CAST( - CAST( CAST( NULL AS SIGNED ) AS DECIMAL ) AS DECIMAL ) * 92 / + COUNT( * ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2934
SELECT DISTINCT - CAST ( - CAST ( CAST ( NULL AS INTEGER ) AS REAL ) AS REAL ) * 92 / + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL BETWEEN - - 54 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 25 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 65 * col1 AS col0 FROM tab2
----
-3315
-4355
-5005

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - 44 ) + col2 col2 FROM tab0
----
143
54
91

query I rowsort
SELECT 3 + 60 FROM tab0 WHERE NOT - col2 IS NULL
----
63
63
63

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL >= col1 - col0 / - + 87
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2941
SELECT + col1 * col2 * col2 DIV - col2 FROM tab2 AS cor0
----
-1173
-3080
-3886

skipif mysql # not compatible
query I rowsort label-2941
SELECT + col1 * col2 * col2 / - col2 FROM tab2 AS cor0
----
-1173
-3080
-3886

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 col2, 37 FROM tab2
----
23
37
40
37
58
37

onlyif mysql # aggregate syntax: 
query I rowsort label-2943
SELECT + 59 - - SUM( - col2 ) * + MIN( ALL col0 ) FROM tab0
----
-2281

skipif mysql # not compatible
query I rowsort label-2943
SELECT + 59 - - SUM ( - col2 ) * + MIN ( ALL col0 ) FROM tab0
----
-2281

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2944
SELECT - CAST( + 24 AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc

skipif mysql # not compatible
query I rowsort label-2944
SELECT - CAST ( + 24 AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc

onlyif mysql # aggregate syntax: 
query I rowsort label-2945
SELECT + 25 + - COUNT( * ) col1 FROM tab0
----
22

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2945
SELECT + 25 + - COUNT ( * ) col1 FROM tab0
----
22

query II rowsort
SELECT ALL col2, + 80 FROM tab1
----
59
80
68
80
96
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2947
SELECT DISTINCT COUNT( col0 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2947
SELECT DISTINCT COUNT ( col0 ) AS col0 FROM tab1
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 7 < - col2
----

query I rowsort
SELECT DISTINCT + col2 FROM tab2 AS cor0 WHERE - ( - ( + col2 ) ) + + ( + 56 ) IS NOT NULL
----
23
40
58

query I rowsort
SELECT - - col2 * col2 + - - col0 FROM tab1 AS cor0
----
3566
4715
9267

query I rowsort
SELECT ALL - 32 - - - 67 AS col2 FROM tab1
----
-99
-99
-99

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col0 * + col0 - - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2953
SELECT - MIN( - col1 ) AS col2 FROM tab2 AS cor0 WHERE NOT - col0 NOT BETWEEN ( + - 77 * col1 ) AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2953
SELECT - MIN ( - col1 ) AS col2 FROM tab2 AS cor0 WHERE NOT - col0 NOT BETWEEN ( + - 77 * col1 ) AND NULL
----
NULL

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL > NULL
----

query II rowsort
SELECT 32, col2 FROM tab0
----
32
10
32
47
32
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2956
SELECT ALL + - MIN( 85 ) AS col1 FROM tab2 cor0
----
-85

skipif mysql # not compatible
query I rowsort label-2956
SELECT ALL + - MIN ( 85 ) AS col1 FROM tab2 cor0
----
-85

query I rowsort
SELECT DISTINCT - 28 + - + col1 FROM tab1 AS cor0
----
-33
-42
-75

query II rowsort
SELECT + col2, 18 AS col0 FROM tab2 AS cor0
----
23
18
40
18
58
18

onlyif mysql # aggregate syntax: 
query I rowsort label-2959
SELECT DISTINCT COUNT( * ) * + 99 + 20 FROM tab2
----
317

skipif mysql # not compatible
query I rowsort label-2959
SELECT DISTINCT COUNT ( * ) * + 99 + 20 FROM tab2
----
317

query I rowsort
SELECT col1 * - col0 * + col0 FROM tab2
----
-107916
-315392
-376875

query III rowsort
SELECT * FROM tab1 WHERE ( NULL > NULL )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <> col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2963
SELECT - 60 * COUNT( * ) + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2963
SELECT - 60 * COUNT ( * ) + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL col1 + - + col2 AS col0 FROM tab0
----
-98
11
34

query I rowsort
SELECT - - col0 * + col0 * - col1 AS col0 FROM tab2 WHERE NULL <= - 43 * - 99 * + col1 * - + col0 + ( + col0 )
----

query I rowsort
SELECT DISTINCT - 93 * - - col0 FROM tab2
----
-4278
-5952
-6975

onlyif mysql # aggregate syntax: 
query I rowsort label-2967
SELECT DISTINCT + + COUNT( * ) * + + 65 FROM tab1 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-2967
SELECT DISTINCT + + COUNT ( * ) * + + 65 FROM tab1 AS cor0
----
195

query I rowsort
SELECT ALL + col2 + + ( + col0 ) FROM tab0 AS cor0
----
196
62
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2969
SELECT + + COUNT( * ) - - COUNT( * ) FROM tab2 cor0
----
6

skipif mysql # not compatible
query I rowsort label-2969
SELECT + + COUNT ( * ) - - COUNT ( * ) FROM tab2 cor0
----
6

query I rowsort
SELECT col2 - 68 - + 31 FROM tab0 AS cor0
----
-52
-89
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2971
SELECT + COUNT( * ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2971
SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
3

query I rowsort
SELECT + col0 * + 57 * + col2 - - 17 AS col1 FROM tab1 AS cor0
----
279089
285872
352733

onlyif mysql # aggregate syntax: 
query I rowsort label-2973
SELECT + COUNT( * ) - + MIN( ALL - - ( - - 98 ) ) AS col2 FROM tab1 AS cor0
----
-95

skipif mysql # not compatible
query I rowsort label-2973
SELECT + COUNT ( * ) - + MIN ( ALL - - ( - - 98 ) ) AS col2 FROM tab1 AS cor0
----
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2974
SELECT DISTINCT - col0 / + col1 + + + ( col2 ) + + 27 * + 29 / + col2 * - 33 / CAST( NULL AS SIGNED ) * - - CAST( NULL AS SIGNED ) * + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2974
SELECT DISTINCT - col0 / + col1 + + + ( col2 ) + + 27 * + 29 / + col2 * - 33 / CAST ( NULL AS INTEGER ) * - - CAST ( NULL AS INTEGER ) * + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2975
SELECT DISTINCT + ( + MIN( ALL - 43 ) ) + - + 22 * + 17 * - + 5 FROM tab2 WHERE NULL >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2975
SELECT DISTINCT + ( + MIN ( ALL - 43 ) ) + - + 22 * + 17 * - + 5 FROM tab2 WHERE NULL >= NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2976
SELECT - ( + CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2976
SELECT - ( + CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 FROM tab2 WHERE + + 72 BETWEEN + - col0 - 84 AND NULL
----

query I rowsort
SELECT ALL - col0 * - 97 FROM tab1
----
4947
8245
8827

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col0 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2980
SELECT COUNT( * ) * - - COUNT( * ) FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2980
SELECT COUNT ( * ) * - - COUNT ( * ) FROM tab2 AS cor0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-2981
SELECT DISTINCT + col1 DIV + + ( - col1 ) FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2981
SELECT DISTINCT + col1 / + + ( - col1 ) FROM tab1 AS cor0
----
-1

query I rowsort
SELECT ALL - - col1 * - - col0 * + - col2 * - col0 * + col2 FROM tab2 AS cor0
----
1267807500
504627200
57087564

query I rowsort
SELECT + + col0 * + - col2 * + col0 FROM tab2 AS cor0
----
-163840
-326250
-48668

query I rowsort
SELECT - - 36 * - col1 * + + col2 FROM tab2 AS cor0
----
-110880
-139896
-42228

query I rowsort
SELECT DISTINCT + + 1 AS col1 FROM tab2 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2986
SELECT MAX( DISTINCT - 19 ), 37 + + ( + 25 ) AS col2 FROM tab0
----
-19
62

skipif mysql # not compatible
query II rowsort label-2986
SELECT MAX ( DISTINCT - 19 ), 37 + + ( + 25 ) AS col2 FROM tab0
----
-19
62

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-2987
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT - 45 - + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-2987
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT - 45 - + CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT + col1 AS col1 FROM tab1 WHERE NOT NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2989
SELECT ALL - ( + - MIN( DISTINCT + + col2 ) ) FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-2989
SELECT ALL - ( + - MIN ( DISTINCT + + col2 ) ) FROM tab0
----
10

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND 93 OR NULL IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 15 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 19 col0 FROM tab0 AS cor0
----
19
19
19

query I rowsort
SELECT ALL + col0 FROM tab2 AS cor0 WHERE 46 + + 67 IS NOT NULL
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2994
SELECT ALL + ( + - col1 ) * + - CAST( NULL AS SIGNED ) + - + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2994
SELECT ALL + ( + - col1 ) * + - CAST ( NULL AS INTEGER ) + - + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + col0 * - - 11 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2996
SELECT - 85 * - col2 + + CAST( NULL AS SIGNED ) - ( + col1 ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2996
SELECT - 85 * - col2 + + CAST ( NULL AS INTEGER ) - ( + col1 ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + col2 col1 FROM tab2
----
117
125
74

query I rowsort
SELECT + 19 + col0 AS col1 FROM tab1
----
104
110
70

query I rowsort
SELECT col1 * + + 10 AS col0 FROM tab1
----
140
470
50

query II rowsort
SELECT DISTINCT - 78 AS col2, - col0 FROM tab0
----
-78
-15
-78
-87
-78
-97

query I rowsort
SELECT DISTINCT - 81 + 50 AS col2 FROM tab1
----
-31

query I rowsort
SELECT DISTINCT 8 FROM tab2 WHERE NOT + col1 / 39 - - + 79 / - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3003
SELECT + - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE ( NULL IS NOT NULL )
----
0

skipif mysql # not compatible
query I rowsort label-3003
SELECT + - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE ( NULL IS NOT NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3004
SELECT - MIN( ALL - col0 ) FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-3004
SELECT - MIN ( ALL - col0 ) FROM tab1 AS cor0
----
91

query I rowsort
SELECT ALL - 78 + col1 AS col0 FROM tab0 AS cor0
----
-57
-77
3

query I rowsort
SELECT ALL ( 85 ) + 10 FROM tab0
----
95
95
95

query I rowsort
SELECT - ( + 20 ) - - col0 AS col0 FROM tab0
----
-5
67
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3008
SELECT ALL - ( - 43 ) * - + CAST( - 57 AS SIGNED ) - + + COUNT( * ) AS col0 FROM tab2
----
2448

skipif mysql # not compatible
query I rowsort label-3008
SELECT ALL - ( - 43 ) * - + CAST ( - 57 AS INTEGER ) - + + COUNT ( * ) AS col0 FROM tab2
----
2448

onlyif mysql # DIV for integer division: 
query II rowsort label-3009
SELECT col2 * - col0 + + col1 + + col1 DIV - col2 AS col2, col2 + - col1 FROM tab0
----
-625
-34
-851
-11
-9602
98

skipif mysql # not compatible
query II rowsort label-3009
SELECT col2 * - col0 + + col1 + + col1 / - col2 AS col2, col2 + - col1 FROM tab0
----
-625
-34
-851
-11
-9602
98

query I rowsort
SELECT DISTINCT - col1 - + + col1 FROM tab2
----
-102
-134
-154

onlyif mysql # aggregate syntax: 
query I rowsort label-3011
SELECT DISTINCT - COUNT( * ) * - + 0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3011
SELECT DISTINCT - COUNT ( * ) * - + 0 FROM tab1
----
0

query II rowsort
SELECT + 36 + 60 AS col0, + col0 * + 34 AS col2 FROM tab1
----
96
1734
96
2890
96
3094

query I rowsort
SELECT - + 72 + - col2 - - 58 - - + col1 + + - col1 * + col0 * - ( + + 99 ) FROM tab2 AS cor0
----
232268
487895
497470

query I rowsort
SELECT DISTINCT - col2 * + 39 FROM tab2 AS cor0
----
-1560
-2262
-897

onlyif mysql # DIV for integer division: 
query II rowsort label-3015
SELECT DISTINCT - - 29 + + - col2 AS col0, col0 DIV + col0 - 7 * - + col0 FROM tab1 cor0
----
-30
596
-39
638
-67
358

skipif mysql # not compatible
query II rowsort label-3015
SELECT DISTINCT - - 29 + + - col2 AS col0, col0 / + col0 - 7 * - + col0 FROM tab1 cor0
----
-30
596
-39
638
-67
358

query I rowsort
SELECT ALL col0 + col1 - - - col2 FROM tab0 AS cor0
----
-1
49
98

query I rowsort
SELECT ALL + 17 AS col0 FROM tab2 cor0
----
17
17
17

onlyif mysql # DIV for integer division: 
query I rowsort label-3018
SELECT + 91 DIV + col0 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3018
SELECT + 91 / + col0 FROM tab1
----
1
1
1

query I rowsort
SELECT ALL 57 * - ( col1 ) FROM tab0
----
-1197
-4617
-57

query I rowsort
SELECT ALL + col1 * - - col2 FROM tab2
----
1173
3080
3886

query I rowsort
SELECT + 54 + col2 AS col2 FROM tab0 WHERE NOT NULL NOT IN ( col1, 49, - 2 - - + col2 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3022
SELECT 90 AS col0, col1 * col2 DIV - - col1 col2 FROM tab1
----
90
59
90
68
90
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3022
SELECT 90 AS col0, col1 * col2 / - - col1 col2 FROM tab1
----
90
59
90
68
90
96

onlyif mysql # DIV for integer division: 
query II rowsort label-3023
SELECT - - 65 DIV - 66 * + col1, col1 FROM tab2 AS cor0
----
0
51
0
67
0
77

skipif mysql # not compatible
query II rowsort label-3023
SELECT - - 65 / - 66 * + col1, col1 FROM tab2 AS cor0
----
0
51
0
67
0
77

query III rowsort
SELECT ALL - 52, - col2 * - 2 * + - col0, + 91 + + col0 FROM tab2 cor0 WHERE NOT NULL > col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3025
SELECT ALL - MIN( ALL col2 ) FROM tab2 WHERE NOT + - 19 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3025
SELECT ALL - MIN ( ALL col2 ) FROM tab2 WHERE NOT + - 19 IS NOT NULL
----
NULL

query I rowsort
SELECT - 89 * - 27 * + + col0 FROM tab2
----
110538
153792
180225

query I rowsort
SELECT DISTINCT + col0 * + 79 * col1 FROM tab1
----
33575
337883
56406

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3028
SELECT DISTINCT * FROM tab1 WHERE NOT - CAST( - col0 AS SIGNED ) + + - col2 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3028
SELECT DISTINCT * FROM tab1 WHERE NOT - CAST ( - col0 AS INTEGER ) + + - col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 + - - col2 <= NULL
----

query I rowsort
SELECT - 5 + 42 AS col2 FROM tab0
----
37
37
37

onlyif mysql # aggregate syntax: 
query I rowsort label-3031
SELECT ALL - COUNT( ALL 15 ) + COUNT( * ) AS col1 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-3031
SELECT ALL - COUNT ( ALL 15 ) + COUNT ( * ) AS col1 FROM tab1 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3032
SELECT DISTINCT - - MAX( DISTINCT - 46 ) + + - 79 FROM tab0 AS cor0
----
-125

skipif mysql # not compatible
query I rowsort label-3032
SELECT DISTINCT - - MAX ( DISTINCT - 46 ) + + - 79 FROM tab0 AS cor0
----
-125

query II rowsort
SELECT col1, - 62 * col2 + + col0 AS col2 FROM tab2 AS cor0
----
51
-1380
67
-3521
77
-2416

query II rowsort
SELECT - - col0 AS col1, col1 + + col0 AS col0 FROM tab1 cor0
----
51
65
85
90
91
138

query I rowsort
SELECT ALL + + col1 * 61 + - 26 FROM tab2 AS cor0
----
3085
4061
4671

query I rowsort
SELECT DISTINCT 22 FROM tab2 AS cor0 WHERE 62 IS NULL
----

query I rowsort
SELECT + 96 FROM tab2 AS cor0 WHERE NULL = + 11 + + 51
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3038
SELECT + - ( CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3038
SELECT + - ( CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE - col2 BETWEEN + 24 AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3040
SELECT DISTINCT - MIN( ALL + col2 ) FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-3040
SELECT DISTINCT - MIN ( ALL + col2 ) FROM tab1
----
-59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3041
SELECT MIN( ALL + 54 ) DIV - 95 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3041
SELECT MIN ( ALL + 54 ) / - 95 AS col1 FROM tab1
----
0

query III rowsort
SELECT * FROM tab2 WHERE - + col2 NOT IN ( - - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col2 * + col2 * - col0 + + + 94 FROM tab1 AS cor0
----
-295791
-420690
-469922

query I rowsort
SELECT - col0 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) >= 24
----

query I rowsort
SELECT DISTINCT 83 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 44 col1 FROM tab0
----
-44
-44
-44

query II rowsort
SELECT + col2 * + + 63 * + + 83, 58 AS col2 FROM tab1 AS cor0
----
308511
58
355572
58
501984
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3048
SELECT DISTINCT SUM( - 94 ) FROM tab2 AS cor0
----
-282

skipif mysql # not compatible
query I rowsort label-3048
SELECT DISTINCT SUM ( - 94 ) FROM tab2 AS cor0
----
-282

onlyif mysql # aggregate syntax: 
query I rowsort label-3049
SELECT DISTINCT SUM( ALL + - col1 ) FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-3049
SELECT DISTINCT SUM ( ALL + - col1 ) FROM tab1 AS cor0
----
-66

query I rowsort
SELECT + ( - col2 ) * + col1 + + - 16 AS col2 FROM tab2 AS cor0
----
-1189
-3096
-3902

onlyif mysql # DIV for integer division: 
query I rowsort label-3051
SELECT - - 42 DIV + ( + + col1 ) FROM tab1 cor0
----
0
3
8

skipif mysql # not compatible
query I rowsort label-3051
SELECT - - 42 / + ( + + col1 ) FROM tab1 cor0
----
0
3
8

onlyif mysql # aggregate syntax: 
query II rowsort label-3052
SELECT DISTINCT + COUNT( * ) AS col2, + SUM( - col2 ) AS col0 FROM tab0 AS cor0
----
3
-156

skipif mysql # not compatible
query II rowsort label-3052
SELECT DISTINCT + COUNT ( * ) AS col2, + SUM ( - col2 ) AS col0 FROM tab0 AS cor0
----
3
-156

query III rowsort
SELECT ALL * FROM tab0 WHERE + 71 >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 99 * + col1 / col0 + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( NULL ) < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 41 * - col2 * - ( 53 ) col1 FROM tab2 cor0
----
126034
49979
86920

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3057
SELECT ALL - 50 + + - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0 WHERE NOT + col0 * + 33 - - col0 - CAST( - + 64 AS SIGNED ) * col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3057
SELECT ALL - 50 + + - CAST ( NULL AS REAL ) FROM tab2 AS cor0 WHERE NOT + col0 * + 33 - - col0 - CAST ( - + 64 AS INTEGER ) * col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3058
SELECT + ( - COUNT( + + 28 ) ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3058
SELECT + ( - COUNT ( + + 28 ) ) AS col0 FROM tab1 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 + + - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3060
SELECT ALL - COUNT( * ) FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-3060
SELECT ALL - COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL < NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3061
SELECT + COUNT( * ), COUNT( + + CAST( + ( - 68 ) AS SIGNED ) ) FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-3061
SELECT + COUNT ( * ), COUNT ( + + CAST ( + ( - 68 ) AS INTEGER ) ) FROM tab2 AS cor0
----
3
3

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab2 cor0 WHERE 95 IS NULL
----

query I rowsort
SELECT 64 + - ( - col0 ) * 81 FROM tab1 AS cor0
----
4195
6949
7435

onlyif mysql # aggregate syntax: 
query I rowsort label-3064
SELECT ALL 31 + + COUNT( * ) AS col0 FROM tab1 cor0
----
34

skipif mysql # not compatible
query I rowsort label-3064
SELECT ALL 31 + + COUNT ( * ) AS col0 FROM tab1 cor0
----
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 0 + + 93 col0 FROM tab2 cor0
----
93
93
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3066
SELECT 89 * COUNT( * ) - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NULL = NULL
----
0

skipif mysql # not compatible
query I rowsort label-3066
SELECT 89 * COUNT ( * ) - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NULL = NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3067
SELECT ALL - - col2 * - - 73 / 36 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3067
SELECT ALL - - col2 * - - 73 / 36 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3068
SELECT ALL COUNT( * ) + SUM( col2 ) FROM tab2
----
124

skipif mysql # not compatible
query I rowsort label-3068
SELECT ALL COUNT ( * ) + SUM ( col2 ) FROM tab2
----
124

query I rowsort
SELECT col2 + 86 AS col2 FROM tab0
----
133
185
96

query III rowsort
SELECT * FROM tab2 WHERE - 44 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3071
SELECT ALL 59 DIV + + ( - ( + COUNT( * ) ) ) AS col2 FROM tab0
----
-19

skipif mysql # not compatible
query I rowsort label-3071
SELECT ALL 59 / + + ( - ( + COUNT ( * ) ) ) AS col2 FROM tab0
----
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-3072
SELECT + 88, - COUNT( * ) AS col1 FROM tab1
----
88
-3

skipif mysql # not compatible
query II rowsort label-3072
SELECT + 88, - COUNT ( * ) AS col1 FROM tab1
----
88
-3

query II rowsort
SELECT DISTINCT + col2, + ( col1 ) + col0 AS col1 FROM tab1
----
59
90
68
138
96
65

query I rowsort
SELECT + col0 * + + 22 AS col2 FROM tab0
----
1914
2134
330

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 54 col0 FROM tab1 AS cor0
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3076
SELECT ALL CAST( + + col1 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-3076
SELECT ALL CAST ( + + col1 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
1
21
81

query I rowsort
SELECT DISTINCT - - 37 AS col1 FROM tab2 AS cor0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-3078
SELECT ALL - SUM( - 64 ) AS col0 FROM tab0 cor0
----
192

skipif mysql # not compatible
query I rowsort label-3078
SELECT ALL - SUM ( - 64 ) AS col0 FROM tab0 cor0
----
192

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - - col0 IS NOT NULL )
----

query I rowsort
SELECT - 17 * - + ( col0 ) AS col0 FROM tab1 AS cor0
----
1445
1547
867

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3081
SELECT + CAST( NULL AS SIGNED ) * - + col2 col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3081
SELECT + CAST ( NULL AS INTEGER ) * - + col2 col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3082
SELECT ALL 91 * + + SUM( - + col2 ) FROM tab1
----
-20293

skipif mysql # not compatible
query I rowsort label-3082
SELECT ALL 91 * + + SUM ( - + col2 ) FROM tab1
----
-20293

query II rowsort
SELECT DISTINCT + col1 AS col0, 13 * + + col2 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3084
SELECT + 82, + COUNT( * ) AS col2 FROM tab2
----
82
3

skipif mysql # not compatible
query II rowsort label-3084
SELECT + 82, + COUNT ( * ) AS col2 FROM tab2
----
82
3

query I rowsort
SELECT ( - + 50 ) AS col1 FROM tab0
----
-50
-50
-50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 44 col2 FROM tab1
----
44

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL < + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3088
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( NULL ) <= col2 + 17 * - + col2 / - col2
----
0

skipif mysql # not compatible
query I rowsort label-3088
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( NULL ) <= col2 + 17 * - + col2 / - col2
----
0

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab1 AS cor0 WHERE + col0 - + + col2 IS NOT NULL
----
-14
-47
-5

query I rowsort
SELECT ALL + 45 * - col1 FROM tab0 cor0
----
-3645
-45
-945

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col2, + col0 FROM tab1 AS cor0
----
14
51
47
91
5
85

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3092
SELECT DISTINCT 61 + + 31 DIV CAST( - 48 AS SIGNED ) FROM tab0 AS cor0
----
61

skipif mysql # not compatible
query I rowsort label-3092
SELECT DISTINCT 61 + + 31 / CAST ( - 48 AS INTEGER ) FROM tab0 AS cor0
----
61

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3094
SELECT DISTINCT CAST( - 36 AS SIGNED ) * + + col2 FROM tab2
----
-1440
-2088
-828

skipif mysql # not compatible
query I rowsort label-3094
SELECT DISTINCT CAST ( - 36 AS INTEGER ) * + + col2 FROM tab2
----
-1440
-2088
-828

onlyif mysql # DIV for integer division: 
query I rowsort label-3095
SELECT DISTINCT + col1 * col0 * 97 * - col2 + - + 95 + + col1 DIV 6 AS col2 FROM tab1
----
-2432370
-28211180
-6648861

skipif mysql # not compatible
query I rowsort label-3095
SELECT DISTINCT + col1 * col0 * 97 * - col2 + - + 95 + + col1 / 6 AS col2 FROM tab1
----
-2432370
-28211180
-6648861

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + + col1 ) + + + col0 col0 FROM tab2 AS cor0
----
141
142
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3097
SELECT MAX( ALL + 34 ) col0 FROM tab1 AS cor0
----
34

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3097
SELECT MAX ( ALL + 34 ) col0 FROM tab1 AS cor0
----
34

query I rowsort
SELECT ALL + + 8 - 48 + + + col2 FROM tab0 AS cor0
----
-30
59
7

query I rowsort
SELECT col2 * - col2 - col0 AS col2 FROM tab2
----
-1664
-3439
-575

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3100
SELECT ALL COUNT( - col2 ) + + ( + COUNT( * ) ) DIV - COUNT( * ), + COUNT( * ) AS col0 FROM tab0
----
2
3

skipif mysql # not compatible
query II rowsort label-3100
SELECT ALL COUNT ( - col2 ) + + ( + COUNT ( * ) ) / - COUNT ( * ), + COUNT ( * ) AS col0 FROM tab0
----
2
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3101
SELECT ALL - 29 * - COUNT( * ) - COUNT( * ) AS col0 FROM tab2
----
84

skipif mysql # not compatible
query I rowsort label-3101
SELECT ALL - 29 * - COUNT ( * ) - COUNT ( * ) AS col0 FROM tab2
----
84

query I rowsort
SELECT - col2 - 15 FROM tab2
----
-38
-55
-73

query I rowsort
SELECT - col0 * 60 + + 46 - + col2 + - col0 * col2 AS col1 FROM tab0
----
-15476
-1606
-6054

onlyif mysql # aggregate syntax: 
query I rowsort label-3104
SELECT ALL - COUNT( * ) + + + 20 FROM tab0 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-3104
SELECT ALL - COUNT ( * ) + + + 20 FROM tab0 AS cor0
----
17

query I rowsort
SELECT - + col2 + + + 75 FROM tab1 AS cor0
----
-21
16
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3106
SELECT MIN( - - col0 ) AS col2 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-3106
SELECT MIN ( - - col0 ) AS col2 FROM tab0 AS cor0
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3107
SELECT ALL col2, col1 + + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-3107
SELECT ALL col2, col1 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
59
NULL
68
NULL
96
NULL

query I rowsort
SELECT ALL + 64 AS col0 FROM tab2 cor0
----
64
64
64

query II rowsort
SELECT DISTINCT col1, 89 AS col0 FROM tab2 AS cor0
----
51
89
67
89
77
89

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 * col1 BETWEEN - 3 * + 63 + - ( - col0 ) + + + 25 + 68 AND NULL
----

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 III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL IN ( 57 / + + col1 )
----

query I rowsort
SELECT 77 AS col2 FROM tab0 AS cor0 WHERE NOT NULL <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT ALL + - 98 col2, 70 AS col0, col2 + + col0 AS col2 FROM tab1 AS cor0
----
9 values hashing to d425d2ed754d2105397d6d1a83b37020

query II rowsort
SELECT - 93, col1 * + col1 AS col0 FROM tab1 AS cor0
----
-93
196
-93
2209
-93
25

query I rowsort
SELECT ( - - col0 ) AS col2 FROM tab2 cor0
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3117
SELECT + SUM( - 68 ) * - COUNT( * ) * + 12 + - - 46 + + + COUNT( * ) FROM tab0 AS cor0
----
7393

skipif mysql # not compatible
query I rowsort label-3117
SELECT + SUM ( - 68 ) * - COUNT ( * ) * + 12 + - - 46 + + + COUNT ( * ) FROM tab0 AS cor0
----
7393

onlyif mysql # DIV for integer division: 
query I rowsort label-3118
SELECT - col1 DIV + col1 col2 FROM tab1 cor0
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3118
SELECT - col1 / + col1 col2 FROM tab1 cor0
----
-1
-1
-1

query II rowsort
SELECT ALL col0, + col2 FROM tab1 AS cor0
----
51
96
85
59
91
68

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL NOT IN ( + ( 52 ) - col2, - col1, + 13 * + - col1, - col0, - - col0 )
----

query II rowsort
SELECT DISTINCT - + col0, - 30 * col0 AS col1 FROM tab2 AS cor0
----
-46
-1380
-64
-1920
-75
-2250

query I rowsort
SELECT col0 AS col1 FROM tab1 AS cor0 WHERE NOT col0 - 56 IS NOT NULL
----

query II rowsort
SELECT DISTINCT 10, col2 * + - col1 AS col1 FROM tab2 WHERE + - 77 NOT BETWEEN NULL AND col1
----

query I rowsort
SELECT 78 * + + 11 + - col0 + + - 11 FROM tab0
----
750
760
832

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 97 * col1 + - + 88 + col1 col2 FROM tab1
----
1284
402
4518

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3126
SELECT CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( + col1, + col0, + - col2, - col2 * + col1 )
----

skipif mysql # not compatible
query I rowsort label-3126
SELECT CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( + col1, + col0, + - col2, - col2 * + col1 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col2 <> 46
----

query II rowsort
SELECT DISTINCT 44 AS col1, 81 FROM tab2 WHERE NOT NULL IS NOT NULL
----
44
81

query III rowsort
SELECT * FROM tab0 WHERE col1 * - - 39 IS NULL
----

query I rowsort
SELECT 84 * 23 FROM tab2
----
1932
1932
1932

query I rowsort
SELECT ALL - - col2 AS col1 FROM tab0 WHERE NOT + - col0 IS NULL
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3132
SELECT + - col0 / + col1 + - - ( - col2 ) + - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3132
SELECT + - col0 / + col1 + - - ( - col2 ) + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col1 + + + 29 FROM tab1 AS cor0
----
-18
15
24

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NOT - col2 * col2 NOT BETWEEN + 65 AND NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3135
SELECT DISTINCT - + 61 + - COUNT( * ) FROM tab2 AS cor0 WHERE NULL NOT IN ( + 61 * - 44, col2 * + - col2 )
----
-61

skipif mysql # not compatible
query I rowsort label-3135
SELECT DISTINCT - + 61 + - COUNT ( * ) FROM tab2 AS cor0 WHERE NULL NOT IN ( + 61 * - 44, col2 * + - col2 )
----
-61

query I rowsort
SELECT DISTINCT - 34 AS col2 FROM tab2 AS cor0 WHERE NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3137
SELECT ALL COUNT( * ) - + 5 * + 19 AS col2 FROM tab1 AS cor0
----
-92

skipif mysql # not compatible
query I rowsort label-3137
SELECT ALL COUNT ( * ) - + 5 * + 19 AS col2 FROM tab1 AS cor0
----
-92

query I rowsort
SELECT col2 / - col2 AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - - 19 FROM tab2 AS cor0 WHERE ( NOT 0 < NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3140
SELECT DISTINCT - 83 + + MAX( - col1 ) AS col2 FROM tab1
----
-88

skipif mysql # not compatible
query I rowsort label-3140
SELECT DISTINCT - 83 + + MAX ( - col1 ) AS col2 FROM tab1
----
-88

query I rowsort
SELECT DISTINCT col2 - - col1 + 45 + + - 94 * col2 * + 28 FROM tab0
----
-123531
-260423
-26244

query I rowsort
SELECT DISTINCT ( + - col0 ) - col0 FROM tab0
----
-174
-194
-30

onlyif mysql # DIV for integer division: 
query II rowsort label-3143
SELECT ALL + 68 DIV + col2, - 84 AS col2 FROM tab0
----
0
-84
1
-84
6
-84

skipif mysql # not compatible
query II rowsort label-3143
SELECT ALL + 68 / + col2, - 84 AS col2 FROM tab0
----
0
-84
1
-84
6
-84

query I rowsort
SELECT - + col1 - - 9 AS col2 FROM tab0 cor0
----
-12
-72
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 46 col0 FROM tab1 cor0
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3146
SELECT ALL - - CAST( 10 AS SIGNED ) FROM tab1 AS cor0
----
10
10
10

skipif mysql # not compatible
query I rowsort label-3146
SELECT ALL - - CAST ( 10 AS INTEGER ) FROM tab1 AS cor0
----
10
10
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3147
SELECT SUM( + col1 ) * 48 FROM tab1 AS cor0
----
3168

skipif mysql # not compatible
query I rowsort label-3147
SELECT SUM ( + col1 ) * 48 FROM tab1 AS cor0
----
3168

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE - 13 IS NOT NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

onlyif mysql # aggregate syntax: 
query I rowsort label-3149
SELECT COUNT( * ) * - COUNT( * ) AS col0 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-3149
SELECT COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab2
----
-9

query I rowsort
SELECT ALL + 30 FROM tab1 WHERE NOT + - col1 IS NULL
----
30
30
30

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 4 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3152
SELECT CAST( + COUNT( * ) AS SIGNED ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3152
SELECT CAST ( + COUNT ( * ) AS INTEGER ) FROM tab1 cor0
----
3

query I rowsort
SELECT DISTINCT + 91 FROM tab1 AS cor0 WHERE NOT NULL = NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - 52 > NULL
----

query II rowsort
SELECT 31 AS col2, col0 AS col2 FROM tab2
----
31
46
31
64
31
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3156
SELECT DISTINCT + MIN( DISTINCT + 82 ) FROM tab2
----
82

skipif mysql # not compatible
query I rowsort label-3156
SELECT DISTINCT + MIN ( DISTINCT + 82 ) FROM tab2
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-3157
SELECT + 37 * - COUNT( * ) AS col2 FROM tab1
----
-111

skipif mysql # not compatible
query I rowsort label-3157
SELECT + 37 * - COUNT ( * ) AS col2 FROM tab1
----
-111

onlyif mysql # aggregate syntax: 
query I rowsort label-3158
SELECT MAX( ALL - + col2 ) AS col1 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-3158
SELECT MAX ( ALL - + col2 ) AS col1 FROM tab0
----
-10

query II rowsort
SELECT DISTINCT + ( - col0 ) AS col2, - col1 - - 24 - - ( + col2 ) * - - 51 AS col1 FROM tab0
----
-15
2340
-87
513
-97
5072

query I rowsort
SELECT DISTINCT + - col0 + - ( + col0 ) FROM tab1 cor0
----
-102
-170
-182

query I rowsort
SELECT ALL 94 + 89 FROM tab0 AS cor0
----
183
183
183

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3162
SELECT ALL + - 23, - 5 AS col2 FROM tab2 AS cor0 WHERE CAST( + ( + CAST( 30 AS SIGNED ) ) AS SIGNED ) IS NOT NULL
----
-23
-5
-23
-5
-23
-5

skipif mysql # not compatible
query II rowsort label-3162
SELECT ALL + - 23, - 5 AS col2 FROM tab2 AS cor0 WHERE CAST ( + ( + CAST ( 30 AS INTEGER ) ) AS INTEGER ) IS NOT NULL
----
-23
-5
-23
-5
-23
-5

query I rowsort
SELECT - col1 * + col1 + 65 AS col2 FROM tab1 AS cor0
----
-131
-2144
40

query I rowsort
SELECT ALL 90 * - col2 FROM tab0
----
-4230
-8910
-900

query II rowsort
SELECT - ( - - 44 ), 76 + col2 + - col0 + col0 AS col2 FROM tab2 AS cor0
----
-44
116
-44
134
-44
99

query I rowsort
SELECT ALL + col2 / 2 FROM tab1 cor0 WHERE NULL BETWEEN + 4 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3167
SELECT + - CAST( - 22 AS SIGNED ) FROM tab0 AS cor0
----
22
22
22

skipif mysql # not compatible
query I rowsort label-3167
SELECT + - CAST ( - 22 AS INTEGER ) FROM tab0 AS cor0
----
22
22
22

onlyif mysql # aggregate syntax: 
query I rowsort label-3168
SELECT + COUNT( * ) - - COUNT( * ) + - - 66 * + 98 AS col0 FROM tab2 AS cor0
----
6474

skipif mysql # not compatible
query I rowsort label-3168
SELECT + COUNT ( * ) - - COUNT ( * ) + - - 66 * + 98 AS col0 FROM tab2 AS cor0
----
6474

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3169
SELECT col1 * + CAST( NULL AS SIGNED ) * 44 + col0 * - - 5 - + + col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3169
SELECT col1 * + CAST ( NULL AS INTEGER ) * 44 + col0 * - - 5 - + + col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3170
SELECT col0 DIV + col2 + + col1 - - 61 FROM tab0 AS cor0
----
142
62
90

skipif mysql # not compatible
query I rowsort label-3170
SELECT col0 / + col2 + + col1 - - 61 FROM tab0 AS cor0
----
142
62
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3171
SELECT ALL - 38 + - CAST( col0 AS SIGNED ) FROM tab0 AS cor0
----
-125
-135
-53

skipif mysql # not compatible
query I rowsort label-3171
SELECT ALL - 38 + - CAST ( col0 AS INTEGER ) FROM tab0 AS cor0
----
-125
-135
-53

query I rowsort
SELECT ALL 92 * + 30 - col2 FROM tab1
----
2664
2692
2701

query I rowsort
SELECT DISTINCT 63 - + 40 AS col0 FROM tab1
----
23

query I rowsort
SELECT DISTINCT + col0 * 85 AS col0 FROM tab0
----
1275
7395
8245

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NOT NULL <> 19 )
----

query I rowsort
SELECT ALL + 6 + + col0 AS col0 FROM tab2 WHERE NOT + col1 NOT BETWEEN NULL AND ( - 98 + + - 31 )
----

query I rowsort
SELECT 9 * - - col1 FROM tab0
----
189
729
9

query I rowsort
SELECT DISTINCT ( col0 ) * + col2 FROM tab1
----
4896
5015
6188

query I rowsort
SELECT 99 * col1 * - col0 FROM tab1 AS cor0
----
-42075
-423423
-70686

onlyif mysql # aggregate syntax: 
query I rowsort label-3180
SELECT - SUM( ALL 17 ) * + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-153

skipif mysql # not compatible
query I rowsort label-3180
SELECT - SUM ( ALL 17 ) * + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-153

onlyif mysql # aggregate syntax: 
query II rowsort label-3181
SELECT - 31 + + COUNT( * ), + 50 AS col2 FROM tab0 cor0 WHERE NOT NULL IS NULL
----
-31
50

skipif mysql # not compatible
query II rowsort label-3181
SELECT - 31 + + COUNT ( * ), + 50 AS col2 FROM tab0 cor0 WHERE NOT NULL IS NULL
----
-31
50

onlyif mysql # aggregate syntax: 
query I rowsort label-3182
SELECT DISTINCT MAX( + col0 ) AS col1 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-3182
SELECT DISTINCT MAX ( + col0 ) AS col1 FROM tab2 AS cor0
----
75

query II rowsort
SELECT DISTINCT 41, ( + 17 ) AS col0 FROM tab0 AS cor0
----
41
17

query I rowsort
SELECT 50 * - col2 FROM tab0 AS cor0
----
-2350
-4950
-500

query I rowsort
SELECT + col1 * 37 + col0 FROM tab0 cor0
----
134
3012
864

query II rowsort
SELECT DISTINCT - 54, 24 AS col0 FROM tab1 AS cor0
----
-54
24

onlyif mysql # aggregate syntax: 
query I rowsort label-3187
SELECT ALL + SUM( - col1 ) - + COUNT( * ) AS col0 FROM tab0
----
-106

skipif mysql # not compatible
query I rowsort label-3187
SELECT ALL + SUM ( - col1 ) - + COUNT ( * ) AS col0 FROM tab0
----
-106

query I rowsort
SELECT ALL 12 * - 41 AS col0 FROM tab0 WHERE 87 * + col2 IS NOT NULL
----
-492
-492
-492

query III rowsort
SELECT ALL * FROM tab2 WHERE ( + col0 ) BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3190
SELECT DISTINCT 40 + + COUNT( * ) AS col1 FROM tab1
----
43

skipif mysql # not compatible
query I rowsort label-3190
SELECT DISTINCT 40 + + COUNT ( * ) AS col1 FROM tab1
----
43

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) BETWEEN - col2 AND ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3192
SELECT DISTINCT MAX( - 59 ) AS col0 FROM tab0
----
-59

skipif mysql # not compatible
query I rowsort label-3192
SELECT DISTINCT MAX ( - 59 ) AS col0 FROM tab0
----
-59

query III rowsort
SELECT ALL * FROM tab0 WHERE 25 * col1 NOT IN ( + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE - col2 BETWEEN ( + col0 * 40 ) AND ( col1 + + 61 )
----

query I rowsort
SELECT - 20 - - col0 FROM tab0
----
-5
67
77

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE NOT NULL NOT BETWEEN ( - col0 ) AND + ( - 56 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3197
SELECT COUNT( * ) AS col2 FROM tab0 WHERE NOT ( 55 / col1 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3197
SELECT COUNT ( * ) AS col2 FROM tab0 WHERE NOT ( 55 / col1 ) IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3198
SELECT SUM( DISTINCT col2 ) - - 55 AS col1 FROM tab1 WHERE - col2 + - col1 * - col1 IN ( ( + ( + 4 ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3198
SELECT SUM ( DISTINCT col2 ) - - 55 AS col1 FROM tab1 WHERE - col2 + - col1 * - col1 IN ( ( + ( + 4 ) ) )
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - 75 + + col2 ) NOT IN ( - 26 * + 56 )
----

query I rowsort
SELECT ( 25 ) * + col2 AS col0 FROM tab1
----
1475
1700
2400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3201
SELECT ALL - COUNT( * ) * - CAST( NULL AS SIGNED ) + + 3 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3201
SELECT ALL - COUNT ( * ) * - CAST ( NULL AS INTEGER ) + + 3 AS col2 FROM tab1
----
NULL

query I rowsort
SELECT 70 + 85 AS col0 FROM tab2
----
155
155
155

query I rowsort
SELECT ALL col0 + 16 * + 84 FROM tab0
----
1359
1431
1441

query I rowsort
SELECT ALL - 72 + 16 FROM tab1
----
-56
-56
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-3205
SELECT col0 * 49 + ( ( - col0 ) - col0 DIV col1 ) * col0 AS col2 FROM tab1
----
-255
-3913
-4505

skipif mysql # not compatible
query I rowsort label-3205
SELECT col0 * 49 + ( ( - col0 ) - col0 / col1 ) * col0 AS col2 FROM tab1
----
-255
-3913
-4505

query I rowsort
SELECT col2 * 94 AS col2 FROM tab2
----
2162
3760
5452

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3207
SELECT * FROM tab2 WHERE NOT - CAST( NULL AS DECIMAL ) = NULL
----

skipif mysql # not compatible
query III rowsort label-3207
SELECT * FROM tab2 WHERE NOT - CAST ( NULL AS REAL ) = NULL
----

query III rowsort
SELECT * FROM tab0 WHERE ( col2 ) <> ( 53 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL ( - 49 ) * ( col0 * - col2 ) FROM tab0
----
34545
42630
470547

onlyif mysql # aggregate syntax: 
query I rowsort label-3210
SELECT COUNT( col0 ) * - 20 FROM tab2 AS cor0 WHERE - col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3210
SELECT COUNT ( col0 ) * - 20 FROM tab2 AS cor0 WHERE - col0 IS NULL
----
0

query I rowsort
SELECT col0 * 49 AS col2 FROM tab2 AS cor0 WHERE ( + col2 ) IS NOT NULL
----
2254
3136
3675

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3212
SELECT * FROM tab0 AS cor0 WHERE + CAST( - col2 AS SIGNED ) / ( + col2 ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-3212
SELECT * FROM tab0 AS cor0 WHERE + CAST ( - col2 AS INTEGER ) / ( + col2 ) IS NULL
----

query I rowsort
SELECT ALL col1 + - 22 FROM tab0 AS cor0
----
-1
-21
59

query I rowsort
SELECT + col1 * - 18 + 26 AS col0 FROM tab0 cor0
----
-1432
-352
8

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( + col2 ) IS NULL
----

query I rowsort
SELECT - 12 * col0 + + col1 FROM tab2 AS cor0
----
-501
-691
-833

query III rowsort
SELECT * FROM tab1 cor0 WHERE 16 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3218
SELECT ALL COUNT( * ) + 0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3218
SELECT ALL COUNT ( * ) + 0 FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL - 20 + + col2 AS col0 FROM tab2 cor0
----
20
3
38

query I rowsort
SELECT DISTINCT - - col0 - - col2 AS col1 FROM tab1 AS cor0
----
144
147
159

onlyif mysql # aggregate syntax: 
query I rowsort label-3221
SELECT ( COUNT( * ) ) FROM tab0 AS cor0 WHERE col2 * 44 + 47 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-3221
SELECT ( COUNT ( * ) ) FROM tab0 AS cor0 WHERE col2 * 44 + 47 <> NULL
----
0

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE + 12 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3223
SELECT DISTINCT * FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) * ( col1 ) >= ( + col2 * - col1 )
----

skipif mysql # not compatible
query III rowsort label-3223
SELECT DISTINCT * FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) * ( col1 ) >= ( + col2 * - col1 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + 60 + ( col1 ) BETWEEN ( - 72 ) AND col0
----
51
14
96
91
47
68

query I rowsort
SELECT + col1 * - + col2 * + col2 FROM tab0
----
-178929
-2100
-9801

query I rowsort
SELECT col2 * + - col0 * col2 FROM tab2
----
-102400
-24334
-252300

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3227
SELECT - ( - - ( CAST( NULL AS SIGNED ) ) ) * - col1 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3227
SELECT - ( - - ( CAST ( NULL AS INTEGER ) ) ) * - col1 AS col1 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 60 - col1 IS NOT NULL
----

query I rowsort
SELECT ALL - col0 FROM tab2 AS cor0 WHERE NOT col2 * - 36 IS NOT NULL
----

query I rowsort
SELECT ALL col1 * col2 FROM tab1 WHERE ( - col1 ) = NULL
----

query I rowsort
SELECT ALL - 51 * col0 * - + col2 FROM tab1
----
249696
255765
315588

onlyif mysql # aggregate syntax: 
query I rowsort label-3232
SELECT DISTINCT - - COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-3232
SELECT DISTINCT - - COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3234
SELECT + ( + ( + MIN( DISTINCT 88 ) ) ) AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
88

skipif mysql # not compatible
query I rowsort label-3234
SELECT + ( + ( + MIN ( DISTINCT 88 ) ) ) AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3235
SELECT + CAST( NULL AS SIGNED ) * + + 9 FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3235
SELECT + CAST ( NULL AS INTEGER ) * + + 9 FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # DIV for integer division: 
query II rowsort label-3236
SELECT - col2 AS col2, 76 DIV - 59 + col0 AS col1 FROM tab1
----
-59
84
-68
90
-96
50

skipif mysql # not compatible
query II rowsort label-3236
SELECT - col2 AS col2, 76 / - 59 + col0 AS col1 FROM tab1
----
-59
84
-68
90
-96
50

onlyif mysql # aggregate syntax: 
query I rowsort label-3237
SELECT ALL - SUM( ALL 2 ) + COUNT( * ) * 59 FROM tab2 cor0
----
171

skipif mysql # not compatible
query I rowsort label-3237
SELECT ALL - SUM ( ALL 2 ) + COUNT ( * ) * 59 FROM tab2 cor0
----
171

query I rowsort
SELECT ALL - - col2 + + - col1 AS col1 FROM tab2 AS cor0
----
-28
-37
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-3239
SELECT DISTINCT - col2 + - col0 DIV + col2 FROM tab1 AS cor0
----
-60
-69
-96

skipif mysql # not compatible
query I rowsort label-3239
SELECT DISTINCT - col2 + - col0 / + col2 FROM tab1 AS cor0
----
-60
-69
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3240
SELECT MIN( - - ( - + 34 ) ) * 96 AS col1 FROM tab1
----
-3264

skipif mysql # not compatible
query I rowsort label-3240
SELECT MIN ( - - ( - + 34 ) ) * 96 AS col1 FROM tab1
----
-3264

query I rowsort
SELECT DISTINCT - col0 * + 40 * + col2 AS col0 FROM tab2
----
-102400
-174000
-42320

onlyif mysql # aggregate syntax: 
query I rowsort label-3242
SELECT DISTINCT ( - - MAX( ALL - col0 ) ) AS col0 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-3242
SELECT DISTINCT ( - - MAX ( ALL - col0 ) ) AS col0 FROM tab1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-3243
SELECT 51 * + SUM( ALL + col0 ) FROM tab1
----
11577

skipif mysql # not compatible
query I rowsort label-3243
SELECT 51 * + SUM ( ALL + col0 ) FROM tab1
----
11577

onlyif mysql # aggregate syntax: 
query I rowsort label-3244
SELECT ( + MIN( - col1 ) ) * COUNT( * ) FROM tab1
----
-141

skipif mysql # not compatible
query I rowsort label-3244
SELECT ( + MIN ( - col1 ) ) * COUNT ( * ) FROM tab1
----
-141

onlyif mysql # DIV for integer division: 
query I rowsort label-3245
SELECT DISTINCT + col2 DIV + - col1 AS col0 FROM tab0
----
-99
0

skipif mysql # not compatible
query I rowsort label-3245
SELECT DISTINCT + col2 / + - col1 AS col0 FROM tab0
----
-99
0

query III rowsort
SELECT * FROM tab0 WHERE ( + - 63 + col1 * - col1 ) IS NULL
----

query I rowsort
SELECT + 68 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 = ( col1 )
----

query I rowsort
SELECT - ( + col2 ) + + + col0 + + col0 FROM tab2 cor0
----
69
88
92

onlyif mysql # DIV for integer division: 
query I rowsort label-3250
SELECT DISTINCT - col1 + col1 DIV - col0 FROM tab0 AS cor0
----
-1
-21
-86

skipif mysql # not compatible
query I rowsort label-3250
SELECT DISTINCT - col1 + col1 / - col0 FROM tab0 AS cor0
----
-1
-21
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-3251
SELECT COUNT( ALL - 80 ) FROM tab2 AS cor0 WHERE col2 * - - col0 * - - 13 <= ( - col0 * ( - 88 ) )
----
0

skipif mysql # not compatible
query I rowsort label-3251
SELECT COUNT ( ALL - 80 ) FROM tab2 AS cor0 WHERE col2 * - - col0 * - - 13 <= ( - col0 * ( - 88 ) )
----
0

query I rowsort
SELECT ALL col2 + - col2 + + 16 FROM tab0 AS cor0
----
16
16
16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 + - 82 col1, + 98 AS col1 FROM tab1 AS cor0
----
-35
98
-68
98
-77
98

query I rowsort
SELECT - + col1 + - + col1 AS col2 FROM tab2 AS cor0
----
-102
-134
-154

query I rowsort
SELECT col2 AS col0 FROM tab2 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 11 - 35 FROM tab0 AS cor0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-3257
SELECT - 95 - + - COUNT( * ) col1 FROM tab0 AS cor0
----
-92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3257
SELECT - 95 - + - COUNT ( * ) col1 FROM tab0 AS cor0
----
-92

query I rowsort
SELECT - - 67 * - + col2 AS col1 FROM tab1 cor0
----
-3953
-4556
-6432

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - ( + 35 ) NOT IN ( + - col0 * + col1 )
----

query I rowsort
SELECT ( + + col2 ) FROM tab2 AS cor0 WHERE NOT ( 97 ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3261
SELECT SUM( + + 97 ) FROM tab1 AS cor0
----
291

skipif mysql # not compatible
query I rowsort label-3261
SELECT SUM ( + + 97 ) FROM tab1 AS cor0
----
291

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL BETWEEN ( + col1 ) AND - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3263
SELECT MIN( + 35 ) * + MAX( ALL + - col1 ) FROM tab2 AS cor0
----
-1785

skipif mysql # not compatible
query I rowsort label-3263
SELECT MIN ( + 35 ) * + MAX ( ALL + - col1 ) FROM tab2 AS cor0
----
-1785

query I rowsort
SELECT + 83 AS col0 FROM tab0 AS cor0 WHERE NOT col0 * - + col1 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - col2 AS col0 FROM tab1 AS cor0 WHERE ( + col0 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3266
SELECT ALL - - col0 DIV + col2 - 58 + col0 FROM tab2 AS cor0
----
-10
18
7

skipif mysql # not compatible
query I rowsort label-3266
SELECT ALL - - col0 / + col2 - 58 + col0 FROM tab2 AS cor0
----
-10
18
7

query II rowsort
SELECT DISTINCT - col1, col1 AS col2 FROM tab0
----
-1
1
-21
21
-81
81

query III rowsort
SELECT * FROM tab2 WHERE NOT 74 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3269
SELECT + SUM( col0 ) AS col0 FROM tab1 WHERE NOT - - ( + 18 ) * + col2 * + + 3 + col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3269
SELECT + SUM ( col0 ) AS col0 FROM tab1 WHERE NOT - - ( + 18 ) * + col2 * + + 3 + col2 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3270
SELECT - COUNT( * ), ( + + COUNT( * ) ) AS col1 FROM tab2
----
-3
3

skipif mysql # not compatible
query II rowsort label-3270
SELECT - COUNT ( * ), ( + + COUNT ( * ) ) AS col1 FROM tab2
----
-3
3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( + col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NULL > col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3273
SELECT + + col0 * - col2 * + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3273
SELECT + + col0 * - col2 * + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT - - ( - + col1 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3275
SELECT DISTINCT + ( - col1 ) * - CAST( col1 AS SIGNED ) AS col2 FROM tab1 WHERE + - 81 <> ( + + 95 )
----
196
2209
25

skipif mysql # not compatible
query I rowsort label-3275
SELECT DISTINCT + ( - col1 ) * - CAST ( col1 AS INTEGER ) AS col2 FROM tab1 WHERE + - 81 <> ( + + 95 )
----
196
2209
25

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3276
SELECT + ( col1 ) AS col0, CAST( - 92 AS SIGNED ) AS col0 FROM tab2 cor0
----
51
-92
67
-92
77
-92

skipif mysql # not compatible
query II rowsort label-3276
SELECT + ( col1 ) AS col0, CAST ( - 92 AS INTEGER ) AS col0 FROM tab2 cor0
----
51
-92
67
-92
77
-92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 60 col2 FROM tab0 AS cor0
----
-60
-60
-60

query I rowsort
SELECT DISTINCT - col2 + - ( - col1 ) FROM tab0 AS cor0
----
-98
11
34

query I rowsort
SELECT + 0 + ( + - col1 ) + - - col1 - col2 FROM tab2 AS cor0
----
-23
-40
-58

query III rowsort
SELECT * FROM tab0 cor0 WHERE 76 * - - ( + + 92 ) <> 90
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 8 AS col0 FROM tab0 AS cor0 WHERE - col1 <= + col1 + col2 * col1
----
8

onlyif mysql # DIV for integer division: 
query II rowsort label-3282
SELECT ALL + col1 DIV col1, ( - - 78 ) + + 98 + + col1 DIV - col1 AS col1 FROM tab1 AS cor0
----
1
175
1
175
1
175

skipif mysql # not compatible
query II rowsort label-3282
SELECT ALL + col1 / col1, ( - - 78 ) + + 98 + + col1 / - col1 AS col1 FROM tab1 AS cor0
----
1
175
1
175
1
175

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3283
SELECT DISTINCT 80 + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3283
SELECT DISTINCT 80 + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) <= + col0
----

query I rowsort
SELECT col0 AS col2 FROM tab2 cor0 WHERE ( col2 ) IS NOT NULL
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3286
SELECT DISTINCT - - CAST( + - col2 AS SIGNED ) + col1 AS col1 FROM tab1 AS cor0
----
-21
-54
-82

skipif mysql # not compatible
query I rowsort label-3286
SELECT DISTINCT - - CAST ( + - col2 AS INTEGER ) + col1 AS col1 FROM tab1 AS cor0
----
-21
-54
-82

query I rowsort
SELECT ( - col2 ) * col2 AS col1 FROM tab0 WHERE + 60 NOT IN ( col1 + 21 * - col0 / - + 68 )
----
-100
-2209
-9801

onlyif mysql # aggregate syntax: 
query II rowsort label-3288
SELECT ALL - 72 AS col1, - COUNT( * ) FROM tab0
----
-72
-3

skipif mysql # not compatible
query II rowsort label-3288
SELECT ALL - 72 AS col1, - COUNT ( * ) FROM tab0
----
-72
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3289
SELECT + 27 * + 77 * - 30 + col1 * + - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3289
SELECT + 27 * + 77 * - 30 + col1 * + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3290
SELECT + SUM( DISTINCT + col2 ) AS col1 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-3290
SELECT + SUM ( DISTINCT + col2 ) AS col1 FROM tab0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-3291
SELECT ALL + MIN( DISTINCT - col0 ) AS col1 FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-3291
SELECT ALL + MIN ( DISTINCT - col0 ) AS col1 FROM tab1
----
-91

query I rowsort
SELECT + ( 55 ) AS col2 FROM tab1
----
55
55
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3293
SELECT 61 DIV COUNT( * ) FROM tab1
----
20

skipif mysql # not compatible
query I rowsort label-3293
SELECT 61 / COUNT ( * ) FROM tab1
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3294
SELECT ALL CAST( + col0 AS SIGNED ) + + - 78 + + col2 * + col0 + col2 AS col2 FROM tab2
----
1049
2586
4405

skipif mysql # not compatible
query I rowsort label-3294
SELECT ALL CAST ( + col0 AS INTEGER ) + + - 78 + + col2 * + col0 + col2 AS col2 FROM tab2
----
1049
2586
4405

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-3296
SELECT + 55 DIV + + 10 AS col2 FROM tab2
----
5
5
5

skipif mysql # not compatible
query I rowsort label-3296
SELECT + 55 / + + 10 AS col2 FROM tab2
----
5
5
5

onlyif mysql # aggregate syntax: 
query II rowsort label-3297
SELECT DISTINCT - 85 * - - 48 * + COUNT( * ) AS col2, + 79 AS col0 FROM tab0
----
-12240
79

skipif mysql # not compatible
query II rowsort label-3297
SELECT DISTINCT - 85 * - - 48 * + COUNT ( * ) AS col2, + 79 AS col0 FROM tab0
----
-12240
79

query I rowsort
SELECT ALL 17 + - + col2 + - col1 * col1 FROM tab0 cor0
----
-434
-6591
-83

query I rowsort
SELECT DISTINCT + + col1 + - col2 AS col0 FROM tab0 AS cor0
----
-98
11
34

query I rowsort
SELECT DISTINCT - - col2 + - col1 + 30 FROM tab2 AS cor0
----
-7
2
21

query I rowsort
SELECT ALL col1 + + - 93 AS col1 FROM tab1
----
-46
-79
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3302
SELECT DISTINCT + CAST( NULL AS SIGNED ) / + - col1 - - + col0 * ( + + col0 ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3302
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / + - col1 - - + col0 * ( + + col0 ) AS col0 FROM tab1
----
NULL

query I rowsort
SELECT + + 31 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3304
SELECT - COUNT( * ) DIV 28 + + 31 FROM tab2
----
31

skipif mysql # not compatible
query I rowsort label-3304
SELECT - COUNT ( * ) / 28 + + 31 FROM tab2
----
31

query I rowsort
SELECT ALL col1 * col0 * + col0 AS col0 FROM tab1
----
36125
36414
389207

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 75 col0 FROM tab0 AS cor0
----
-75
-75
-75

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col1 * - col1 <> + - col1
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( 6 ) <> 65
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3309
SELECT DISTINCT COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT - 62 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3309
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT - 62 IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3310
SELECT - + 61 / - ( - col1 ) + - CAST( NULL AS SIGNED ) * - 0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3310
SELECT - + 61 / - ( - col1 ) + - CAST ( NULL AS INTEGER ) * - 0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3311
SELECT ALL - ( + MIN( + - col2 ) ) DIV - 15 col0 FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3311
SELECT ALL - ( + MIN ( + - col2 ) ) / - 15 col0 FROM tab0 AS cor0
----
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + 44 ) col2 FROM tab0
----
-44
-44
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-3313
SELECT SUM( ALL - col2 ) FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-3313
SELECT SUM ( ALL - col2 ) FROM tab1
----
-223

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + ( + 35 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col1, col0 + - - 51 FROM tab0
----
-1
148
-21
138
-81
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3316
SELECT MAX( ALL + - col0 ) AS col1 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-3316
SELECT MAX ( ALL + - col0 ) AS col1 FROM tab1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-3317
SELECT DISTINCT + 77 * - + SUM( DISTINCT + + col0 ) AS col1 FROM tab1
----
-17479

skipif mysql # not compatible
query I rowsort label-3317
SELECT DISTINCT + 77 * - + SUM ( DISTINCT + + col0 ) AS col1 FROM tab1
----
-17479

query I rowsort
SELECT DISTINCT + 71 + + 96 AS col0 FROM tab0 AS cor0
----
167

query I rowsort
SELECT col0 + - + 80 AS col2 FROM tab2
----
-16
-34
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3320
SELECT ALL - ( MIN( ALL - 88 ) ) col1 FROM tab1
----
88

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3320
SELECT ALL - ( MIN ( ALL - 88 ) ) col1 FROM tab1
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-3321
SELECT ALL - 73 + - MIN( - col1 ) * - 43 FROM tab2
----
-3384

skipif mysql # not compatible
query I rowsort label-3321
SELECT ALL - 73 + - MIN ( - col1 ) * - 43 FROM tab2
----
-3384

query I rowsort
SELECT ALL + col1 * - + col2 + + col0 AS col2 FROM tab1 cor0
----
-1293
-210
-3105

query I rowsort
SELECT - - col0 * + col2 + - 90 AS col1 FROM tab2 AS cor0 WHERE - 96 * + col2 NOT IN ( - col2, 96 )
----
2470
4260
968

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col2 ) col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL 48 + col1 * - 14 + + col0 AS col2 FROM tab0 cor0
----
-1071
-159
131

query II rowsort
SELECT ALL + col0, col0 * 19 AS col2 FROM tab2 AS cor0
----
46
874
64
1216
75
1425

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3327
SELECT col1 AS col2, 84 DIV - CAST( - col2 AS SIGNED ) FROM tab2 AS cor0
----
51
3
67
1
77
2

skipif mysql # not compatible
query II rowsort label-3327
SELECT col1 AS col2, 84 / - CAST ( - col2 AS INTEGER ) FROM tab2 AS cor0
----
51
3
67
1
77
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + 33 col1, + col2 FROM tab1 AS cor0
----
-33
59
-33
68
-33
96

query I rowsort
SELECT + ( + - ( + ( - 96 ) ) ) AS col0 FROM tab1 AS cor0
----
96
96
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3330
SELECT - - MIN( - - col2 ) * CAST( + + 4 AS SIGNED ) * + + COUNT( * ) AS col0 FROM tab2 cor0
----
276

skipif mysql # not compatible
query I rowsort label-3330
SELECT - - MIN ( - - col2 ) * CAST ( + + 4 AS INTEGER ) * + + COUNT ( * ) AS col0 FROM tab2 cor0
----
276

query III rowsort
SELECT * FROM tab0 WHERE - col0 * ( col2 ) + 68 + col0 * 8 * - col0 + ( + col2 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3332
SELECT ALL col0 DIV + 35 + - col0 + - CAST( - col1 AS SIGNED ) * - col1 * 15 * + col2 + col0 FROM tab1
----
-22123
-2253178
-282239

skipif mysql # not compatible
query I rowsort label-3332
SELECT ALL col0 / + 35 + - col0 + - CAST ( - col1 AS INTEGER ) * - col1 * 15 * + col2 + col0 FROM tab1
----
-22123
-2253178
-282239

query I rowsort
SELECT + 65 - col2 * - - col0 * + - col0 + + col0 AS col0 FROM tab2
----
163969
326390
48779

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 51 - - 48 AS col1, - col1 + - + col2 col0 FROM tab1
----
99
-110
99
-115
99
-64

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 * - col1 NOT IN ( + - col0, + col2 * col0, 53 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 97 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - + 13 ) * + + col0 + - + col2 col2 FROM tab2
----
-1033
-621
-872

onlyif mysql # aggregate syntax: 
query I rowsort label-3338
SELECT DISTINCT MAX( DISTINCT - + 45 ) FROM tab2
----
-45

skipif mysql # not compatible
query I rowsort label-3338
SELECT DISTINCT MAX ( DISTINCT - + 45 ) FROM tab2
----
-45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 19 * + - ( + col2 ) - 68 col1 FROM tab2 AS cor0
----
-1170
-505
-828

onlyif mysql # DIV for integer division: 
query I rowsort label-3340
SELECT col2 DIV + col2 + - - col0 FROM tab1 AS cor0
----
52
86
92

skipif mysql # not compatible
query I rowsort label-3340
SELECT col2 / + col2 + - - col0 FROM tab1 AS cor0
----
52
86
92

query I rowsort
SELECT ALL 84 - + + 4 AS col2 FROM tab1
----
80
80
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3342
SELECT ALL COUNT( * ) * 10 AS col1 FROM tab1
----
30

skipif mysql # not compatible
query I rowsort label-3342
SELECT ALL COUNT ( * ) * 10 AS col1 FROM tab1
----
30

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3344
SELECT ALL + MAX( ALL + col0 ) col1 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3344
SELECT ALL + MAX ( ALL + col0 ) col1 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3345
SELECT SUM( ALL - 59 ) FROM tab0 AS cor0
----
-177

skipif mysql # not compatible
query I rowsort label-3345
SELECT SUM ( ALL - 59 ) FROM tab0 AS cor0
----
-177

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN - 18 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * 81 col0 FROM tab2 AS cor0
----
3726
5184
6075

query I rowsort
SELECT - ( 44 ) AS col2 FROM tab0 AS cor0
----
-44
-44
-44

query I rowsort
SELECT col1 * 72 FROM tab1 AS cor0
----
1008
3384
360

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL < - col1
----

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE NOT ( 0 NOT BETWEEN col2 + - col0 AND - ( col2 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3352
SELECT ALL - SUM( ALL + 18 ) FROM tab2 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-3352
SELECT ALL - SUM ( ALL + 18 ) FROM tab2 AS cor0
----
-54

query II rowsort
SELECT - 25 AS col2, + col0 FROM tab2 AS cor0
----
-25
46
-25
64
-25
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3354
SELECT ALL + AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3354
SELECT ALL + AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT ALL + + 59, col0 FROM tab1 AS cor0
----
59
51
59
85
59
91

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + col2 ) - + col1 <> NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT 34 + - - 49 BETWEEN NULL AND + - 26
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 50 * 31 col2 FROM tab1
----
-1550

onlyif mysql # DIV for integer division: 
query I rowsort label-3359
SELECT DISTINCT - 44 DIV 49 AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3359
SELECT DISTINCT - 44 / 49 AS col2 FROM tab0
----
0

query I rowsort
SELECT ALL + 17 * - - 92 FROM tab1
----
1564
1564
1564

query I rowsort
SELECT col1 * - 68 AS col0 FROM tab0 WHERE NOT col2 IS NULL
----
-1428
-5508
-68

query I rowsort
SELECT + - col0 AS col2 FROM tab1 cor0 WHERE NOT + col2 / - col2 IS NOT NULL
----

query I rowsort
SELECT ALL - + 89 AS col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 924a74d31360fa4301c953b423a4710e

onlyif mysql # aggregate syntax: 
query I rowsort label-3364
SELECT DISTINCT - COUNT( * ) AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-9

skipif mysql # not compatible
query I rowsort label-3364
SELECT DISTINCT - COUNT ( * ) AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-9

query I rowsort
SELECT ALL col2 * col0 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + - 46 * + + ( 56 ) - col0 FROM tab1 AS cor0
----
-2627
-2661
-2667

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3367
SELECT * FROM tab0 AS cor0 WHERE CAST( - col0 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-3367
SELECT * FROM tab0 AS cor0 WHERE CAST ( - col0 AS INTEGER ) IS NULL
----

query I rowsort
SELECT ALL - col1 * + col1 + - - 44 AS col0 FROM tab2 AS cor0
----
-2557
-4445
-5885

query I rowsort
SELECT DISTINCT + 30 - - - 73 AS col1 FROM tab0 cor0
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-3370
SELECT DISTINCT + COUNT( * ) + - MIN( ALL + - col0 ) FROM tab0
----
100

skipif mysql # not compatible
query I rowsort label-3370
SELECT DISTINCT + COUNT ( * ) + - MIN ( ALL + - col0 ) FROM tab0
----
100

query II rowsort
SELECT 91 AS col0, col0 AS col0 FROM tab0
----
91
15
91
87
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 - 43 col0 FROM tab1
----
16
25
53

query I rowsort
SELECT ALL + col1 FROM tab0 WHERE NOT NULL NOT BETWEEN + 1 AND + - col0 - col1 + - col0
----

query III rowsort
SELECT ALL * FROM tab2 WHERE - col0 / ( + col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col2 + - - 12 FROM tab1
----
108
71
80

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab2 AS cor0 WHERE + 74 - + col2 BETWEEN NULL AND 35
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3377
SELECT - COUNT( * ) AS col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-3377
SELECT - COUNT ( * ) AS col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
-9

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col0 + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3379
SELECT + - COUNT( * ) FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3379
SELECT + - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
-3

query I rowsort
SELECT DISTINCT + ( ( - col2 ) ) * 90 FROM tab2 AS cor0
----
-2070
-3600
-5220

query I rowsort
SELECT ALL 39 * - col0 FROM tab0
----
-3393
-3783
-585

query II rowsort
SELECT col2 AS col2, col0 AS col2 FROM tab0
----
10
87
47
15
99
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3383
SELECT ALL + col2 * + ( 54 ) * CAST( + - 49 AS SIGNED ) + + col0 + - CAST( NULL AS SIGNED ) col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3383
SELECT ALL + col2 * + ( 54 ) * CAST ( + - 49 AS INTEGER ) + + col0 + - CAST ( NULL AS INTEGER ) col2 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NOT NULL IN ( - col1 + col2 + - ( + col0 ), - col1 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3385
SELECT 83 DIV + 87 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3385
SELECT 83 / + 87 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3386
SELECT - MAX( DISTINCT 27 ) FROM tab2
----
-27

skipif mysql # not compatible
query I rowsort label-3386
SELECT - MAX ( DISTINCT 27 ) FROM tab2
----
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-3387
SELECT DISTINCT + 50 DIV 8 * + col0 AS col1 FROM tab2
----
276
384
450

skipif mysql # not compatible
query I rowsort label-3387
SELECT DISTINCT + 50 / 8 * + col0 AS col1 FROM tab2
----
276
384
450

onlyif mysql # aggregate syntax: 
query II rowsort label-3388
SELECT + 28 AS col1, COUNT( * ) FROM tab1
----
28
3

skipif mysql # not compatible
query II rowsort label-3388
SELECT + 28 AS col1, COUNT ( * ) FROM tab1
----
28
3

onlyif mysql # aggregate syntax: 
query II rowsort label-3389
SELECT - COUNT( * ) AS col2, 0 AS col0 FROM tab1 AS cor0
----
-3
0

skipif mysql # not compatible
query II rowsort label-3389
SELECT - COUNT ( * ) AS col2, 0 AS col0 FROM tab1 AS cor0
----
-3
0

query I rowsort
SELECT - col0 + ( + col2 ) * + col0 AS col1 FROM tab1 AS cor0
----
4845
4930
6097

onlyif mysql # aggregate syntax: 
query I rowsort label-3391
SELECT DISTINCT - + COUNT( * ) + + 27 + - ( - + COUNT( * ) ) FROM tab1 cor0
----
27

skipif mysql # not compatible
query I rowsort label-3391
SELECT DISTINCT - + COUNT ( * ) + + 27 + - ( - + COUNT ( * ) ) FROM tab1 cor0
----
27

query I rowsort
SELECT ALL - + 23 AS col1 FROM tab2 AS cor0
----
-23
-23
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-3393
SELECT - COUNT( ALL + col0 ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3393
SELECT - COUNT ( ALL + col0 ) FROM tab1 cor0
----
-3

query I rowsort
SELECT ALL - col2 FROM tab0 AS cor0 WHERE - 22 * + col0 IS NOT NULL
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3395
SELECT + SUM( DISTINCT - + col2 ) FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-3395
SELECT + SUM ( DISTINCT - + col2 ) FROM tab0 AS cor0
----
-156

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 41 + col2 NOT BETWEEN 45 AND 20
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-3397
SELECT + col0 DIV col0 + + - col1 * col2 col1 FROM tab1 AS cor0
----
-1343
-294
-3195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3397
SELECT + col0 / col0 + + - col1 * col2 col1 FROM tab1 AS cor0
----
-1343
-294
-3195

query I rowsort
SELECT - col2 - - + 60 + - col0 AS col0 FROM tab1 AS cor0
----
-84
-87
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3399
SELECT ALL + + COUNT( * ) - + 67 FROM tab1 AS cor0
----
-64

skipif mysql # not compatible
query I rowsort label-3399
SELECT ALL + + COUNT ( * ) - + 67 FROM tab1 AS cor0
----
-64

query I rowsort
SELECT + 18 - + - col2 FROM tab2 AS cor0
----
41
58
76

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3401
SELECT - CAST( NULL AS SIGNED ) - + col1, 92 AS col2 FROM tab1 cor0
----
NULL
92
NULL
92
NULL
92

skipif mysql # not compatible
query II rowsort label-3401
SELECT - CAST ( NULL AS INTEGER ) - + col1, 92 AS col2 FROM tab1 cor0
----
NULL
92
NULL
92
NULL
92

query I rowsort
SELECT ALL ( - col1 ) * + 15 AS col0 FROM tab0
----
-1215
-15
-315

query I rowsort
SELECT DISTINCT 45 - + col0 AS col2 FROM tab2
----
-1
-19
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-3404
SELECT ALL col1 - + col1 DIV + 8 col1 FROM tab2
----
45
59
68

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3404
SELECT ALL col1 - + col1 / + 8 col1 FROM tab2
----
45
59
68

query I rowsort
SELECT + 49 FROM tab1 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT + 25 * - col1 + + col0 FROM tab1 AS cor0
----
-1084
-299
-40

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT - ( - col0 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT 63 * - 31 * - 96 AS col1 FROM tab1
----
187488

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3409
SELECT ALL - ( + CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3409
SELECT ALL - ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3410
SELECT DISTINCT + - MAX( DISTINCT ( col2 ) ) AS col0 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-3410
SELECT DISTINCT + - MAX ( DISTINCT ( col2 ) ) AS col0 FROM tab0 AS cor0
----
-99

query I rowsort
SELECT - + 23 AS col0 FROM tab0 cor0
----
-23
-23
-23

query I rowsort
SELECT + col0 * + col0 + - col2 * 87 FROM tab1 AS cor0
----
-5751
2092
2365

query II rowsort
SELECT DISTINCT + col0 AS col0, + col2 * - - 7 * 12 + + 83 + 82 FROM tab0 AS cor0
----
15
4113
87
1005
97
8481

query I rowsort
SELECT + col1 * + + col0 * + 76 FROM tab1 AS cor0
----
32300
325052
54264

onlyif mysql # aggregate syntax: 
query I rowsort label-3415
SELECT + + SUM( - col0 ) AS col0 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-3415
SELECT + + SUM ( - col0 ) AS col0 FROM tab2 AS cor0
----
-185

onlyif mysql # aggregate syntax: 
query I rowsort label-3416
SELECT DISTINCT + + ( - - MAX( DISTINCT + col2 ) ) col0 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3416
SELECT DISTINCT + + ( - - MAX ( DISTINCT + col2 ) ) col0 FROM tab2 AS cor0
----
58

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT col0 * + col1 IS NOT NULL
----

query II rowsort
SELECT 86, - 71 AS col0 FROM tab0 AS cor0
----
86
-71
86
-71
86
-71

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 * - + col0 + + ( - col0 ) * - - col2 * - 45 NOT BETWEEN - - col0 AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 * - col1, - col1 col2 FROM tab0
----
1
-1
441
-21
6561
-81

query I rowsort
SELECT DISTINCT + 23 * + col2 * col0 AS col1 FROM tab2
----
100050
24334
58880

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 36 * - + col0, 18 col2 FROM tab1
----
-1836
18
-3060
18
-3276
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3423
SELECT DISTINCT CAST( + MAX( DISTINCT CAST( NULL AS SIGNED ) ) AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3423
SELECT DISTINCT CAST ( + MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) AS INTEGER ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT - 80 AS col1 FROM tab1 cor0
----
-80
-80
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + ( + - col2 ) col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3426
SELECT DISTINCT + - COUNT( * ) FROM tab1 AS cor0 WHERE NOT col1 * + 7 * - - col2 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3426
SELECT DISTINCT + - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT col1 * + 7 * - - col2 IS NULL
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3427
SELECT * FROM tab0 AS cor0 WHERE col0 NOT BETWEEN NULL AND - - 6 / CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3427
SELECT * FROM tab0 AS cor0 WHERE col0 NOT BETWEEN NULL AND - - 6 / CAST ( NULL AS INTEGER )
----

query II rowsort
SELECT col1 * - 23 + + col1 AS col0, + col1 AS col0 FROM tab0
----
-1782
81
-22
1
-462
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3429
SELECT ALL COUNT( + ( - 66 ) ) * CAST( - + SUM( - + col1 ) AS SIGNED ) FROM tab2 AS cor0
----
585

skipif mysql # not compatible
query I rowsort label-3429
SELECT ALL COUNT ( + ( - 66 ) ) * CAST ( - + SUM ( - + col1 ) AS INTEGER ) FROM tab2 AS cor0
----
585

onlyif mysql # aggregate syntax: 
query I rowsort label-3430
SELECT COUNT( * ) + 27 - + ( + + 74 ) FROM tab2 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-3430
SELECT COUNT ( * ) + 27 - + ( + + 74 ) FROM tab2 AS cor0
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3431
SELECT - - MAX( DISTINCT + CAST( NULL AS SIGNED ) ) * + COUNT( * ) + - - COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3431
SELECT - - MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) * + COUNT ( * ) + - - COUNT ( * ) FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - - col2 col1 FROM tab0 cor0
----
100
128
31

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <> - 12 + + - col1
----

query III rowsort
SELECT * FROM tab0 WHERE + ( - + col0 ) IS NULL
----

query I rowsort
SELECT - ( - 13 ) * - col0 FROM tab2
----
-598
-832
-975

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 36 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3437
SELECT ALL MIN( col2 ), 56 AS col1 FROM tab2
----
23
56

skipif mysql # not compatible
query II rowsort label-3437
SELECT ALL MIN ( col2 ), 56 AS col1 FROM tab2
----
23
56

query I rowsort
SELECT DISTINCT - 19 AS col0 FROM tab2 AS cor0
----
-19

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 19 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3440
SELECT - MIN( DISTINCT - - 16 ) FROM tab1
----
-16

skipif mysql # not compatible
query I rowsort label-3440
SELECT - MIN ( DISTINCT - - 16 ) FROM tab1
----
-16

query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE NOT + 48 >= NULL
----

query I rowsort
SELECT DISTINCT - + col2 + - 49 FROM tab0 AS cor0
----
-148
-59
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3443
SELECT + MAX( - col0 ) AS col1 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-3443
SELECT + MAX ( - col0 ) AS col1 FROM tab1 AS cor0
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-3444
SELECT + 26 DIV - col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3444
SELECT + 26 / - col1 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3445
SELECT - CAST( + 1 AS SIGNED ) * col1 FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-3445
SELECT - CAST ( + 1 AS INTEGER ) * col1 FROM tab0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-3446
SELECT DISTINCT + COUNT( * ) * + MAX( - 18 ) FROM tab0
----
-54

skipif mysql # not compatible
query I rowsort label-3446
SELECT DISTINCT + COUNT ( * ) * + MAX ( - 18 ) FROM tab0
----
-54

query I rowsort
SELECT DISTINCT - 8 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-8

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col0 * + - 77 AND - col1
----

query I rowsort
SELECT DISTINCT + col1 + - 49 * - col2 AS col0 FROM tab1 AS cor0
----
2896
3379
4718

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3450
SELECT DISTINCT - 68 - CAST( - 73 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-3450
SELECT DISTINCT - 68 - CAST ( - 73 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
5

query I rowsort
SELECT col1 + + - 42 AS col2 FROM tab1 AS cor0
----
-28
-37
5

query III rowsort
SELECT * FROM tab1 WHERE - ( + col0 ) * - + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3453
SELECT DISTINCT - 53 * + COUNT( * ) + - MIN( ALL + col2 ) FROM tab2
----
-182

skipif mysql # not compatible
query I rowsort label-3453
SELECT DISTINCT - 53 * + COUNT ( * ) + - MIN ( ALL + col2 ) FROM tab2
----
-182

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - - ( col2 ) * + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col1 * - 60 AS col1 FROM tab1 cor0
----
2820
300
840

onlyif mysql # aggregate syntax: 
query I rowsort label-3456
SELECT DISTINCT - COUNT( * ) * 75 AS col1 FROM tab0 AS cor0
----
-225

skipif mysql # not compatible
query I rowsort label-3456
SELECT DISTINCT - COUNT ( * ) * 75 AS col1 FROM tab0 AS cor0
----
-225

query II rowsort
SELECT DISTINCT + 44 - 57 AS col2, - col0 + - - 22 FROM tab1 AS cor0
----
-13
-29
-13
-63
-13
-69

query I rowsort
SELECT + col1 + - - 91 AS col2 FROM tab0 AS cor0
----
112
172
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3459
SELECT + CAST( - - 5 AS SIGNED ) FROM tab2 cor0
----
5
5
5

skipif mysql # not compatible
query I rowsort label-3459
SELECT + CAST ( - - 5 AS INTEGER ) FROM tab2 cor0
----
5
5
5

query III rowsort
SELECT ALL * FROM tab2 WHERE - + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-3461
SELECT DISTINCT + col0 DIV + + 23 FROM tab0
----
0
3
4

skipif mysql # not compatible
query I rowsort label-3461
SELECT DISTINCT + col0 / + + 23 FROM tab0
----
0
3
4

query I rowsort
SELECT ALL + col2 * - 50 FROM tab1
----
-2950
-3400
-4800

query III rowsort
SELECT ALL * FROM tab2 WHERE col1 BETWEEN - 28 + + 20 - + col0 AND NULL
----

query II rowsort
SELECT DISTINCT + 35, col2 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - 38 * - col2 FROM tab0
----
1786
3762
380

query II rowsort
SELECT ALL 63, 69 AS col1 FROM tab0
----
63
69
63
69
63
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3467
SELECT ALL + 72 * + - CAST( - 27 AS SIGNED ) FROM tab2
----
1944
1944
1944

skipif mysql # not compatible
query I rowsort label-3467
SELECT ALL + 72 * + - CAST ( - 27 AS INTEGER ) FROM tab2
----
1944
1944
1944

onlyif mysql # aggregate syntax: 
query II rowsort label-3468
SELECT + 4 * - MAX( 74 ) AS col1, - 73 AS col0 FROM tab0
----
-296
-73

skipif mysql # not compatible
query II rowsort label-3468
SELECT + 4 * - MAX ( 74 ) AS col1, - 73 AS col0 FROM tab0
----
-296
-73

query II rowsort
SELECT 66 AS col1, 37 FROM tab2 AS cor0
----
66
37
66
37
66
37

onlyif mysql # DIV for integer division: 
query I rowsort label-3470
SELECT - - 53 DIV col1 FROM tab0 AS cor0
----
0
2
53

skipif mysql # not compatible
query I rowsort label-3470
SELECT - - 53 / col1 FROM tab0 AS cor0
----
0
2
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * col2 col0 FROM tab2 AS cor0 WHERE NOT - col0 * 94 IS NULL
----
-1173
-3080
-3886

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - ( - col1 ) ) <= - 84
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 WHERE + - 49 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3474
SELECT - COUNT( DISTINCT col2 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3474
SELECT - COUNT ( DISTINCT col2 ) FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3475
SELECT - CAST( - - col1 AS SIGNED ) col2 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3475
SELECT - CAST ( - - col1 AS INTEGER ) col2 FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT 72 + col0 AS col0 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
118
136
147

query I rowsort
SELECT ALL + col2 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
23
40
58

query I rowsort
SELECT ALL + col2 + - + col0 FROM tab0 AS cor0
----
-77
2
32

onlyif mysql # aggregate syntax: 
query II rowsort label-3479
SELECT ALL - MIN( + 33 ), COUNT( * ) AS col2 FROM tab2 cor0
----
-33
3

skipif mysql # not compatible
query II rowsort label-3479
SELECT ALL - MIN ( + 33 ), COUNT ( * ) AS col2 FROM tab2 cor0
----
-33
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3480
SELECT ALL + MIN( 80 ) FROM tab2
----
80

skipif mysql # not compatible
query I rowsort label-3480
SELECT ALL + MIN ( 80 ) FROM tab2
----
80

query IIIIII rowsort
SELECT * FROM tab0, tab0 cor0 WHERE NOT - + 88 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3482
SELECT - COUNT( col0 ) col2 FROM tab0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3482
SELECT - COUNT ( col0 ) col2 FROM tab0
----
-3

query I rowsort
SELECT + col1 * + 57 FROM tab2
----
2907
3819
4389

onlyif mysql # aggregate syntax: 
query I rowsort label-3484
SELECT MAX( ALL - 5 ) AS col1 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-3484
SELECT MAX ( ALL - 5 ) AS col1 FROM tab1
----
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 col1, 2 * - + ( + 82 ) FROM tab1
----
59
-164
68
-164
96
-164

onlyif mysql # aggregate syntax: 
query I rowsort label-3486
SELECT + + COUNT( * ) * - + SUM( - - col0 ) + 12 FROM tab0 AS cor0
----
-585

skipif mysql # not compatible
query I rowsort label-3486
SELECT + + COUNT ( * ) * - + SUM ( - - col0 ) + 12 FROM tab0 AS cor0
----
-585

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3487
SELECT ALL + col2 + col0 * - - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3487
SELECT ALL + col2 + col0 * - - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3488
SELECT ALL - MIN( DISTINCT + 72 ) FROM tab2 cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3488
SELECT ALL - MIN ( DISTINCT + 72 ) FROM tab2 cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 + col0 <= + col1 * + 86
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3490
SELECT + + COUNT( DISTINCT - 0 ) col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3490
SELECT + + COUNT ( DISTINCT - 0 ) col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
1

query I rowsort
SELECT DISTINCT ( + + col1 ) * + col1 AS col2 FROM tab1
----
196
2209
25

query I rowsort
SELECT ALL 76 * + col0 AS col1 FROM tab0
----
1140
6612
7372

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab1 AS cor0 WHERE NOT - 90 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 * - - 86 AS col2 FROM tab1 AS cor0
----
5074
5848
8256

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 * + - col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3496
SELECT col1 DIV + 67 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-3496
SELECT col1 / + 67 FROM tab2 AS cor0
----
0
1
1

query I rowsort
SELECT DISTINCT + ( - - col2 ) FROM tab0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3498
SELECT + MIN( ALL - col2 ) AS col2 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-3498
SELECT + MIN ( ALL - col2 ) AS col2 FROM tab0
----
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-3499
SELECT ALL col2 DIV - col0 + - + col2 AS col0 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-3499
SELECT ALL col2 / - col0 + - + col2 AS col0 FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT DISTINCT + - 88 AS col2 FROM tab1 cor0
----
-88

query I rowsort
SELECT 48 + - - col1 FROM tab1
----
53
62
95

query II rowsort
SELECT ALL col2 AS col2, 60 AS col1 FROM tab2
----
23
60
40
60
58
60

onlyif mysql # aggregate syntax: 
query I rowsort label-3503
SELECT 57 + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
66

skipif mysql # not compatible
query I rowsort label-3503
SELECT 57 + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3504
SELECT + - AVG ( - + CAST( NULL AS SIGNED ) ) FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3504
SELECT + - AVG ( - + CAST ( NULL AS INTEGER ) ) FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3505
SELECT DISTINCT - - 4 DIV + ( + - MAX( + 26 ) ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3505
SELECT DISTINCT - - 4 / + ( + - MAX ( + 26 ) ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT - 64 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL 57 + - 97 FROM tab0 cor0
----
-40
-40
-40

query I rowsort
SELECT ALL - col0 * 18 + - + col0 AS col1 FROM tab2 AS cor0
----
-1216
-1425
-874

query I rowsort
SELECT ALL + col1 FROM tab1 cor0 WHERE NULL IS NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3510
SELECT DISTINCT - + COUNT( ALL col1 ) FROM tab0 AS cor0 WHERE NOT 96 - - - 40 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3510
SELECT DISTINCT - + COUNT ( ALL col1 ) FROM tab0 AS cor0 WHERE NOT 96 - - - 40 IS NULL
----
-3

query III rowsort
SELECT * FROM tab2 WHERE ( col1 ) = NULL
----

query I rowsort
SELECT DISTINCT ( - - col1 ) FROM tab2
----
51
67
77

onlyif mysql # DIV for integer division: 
query I rowsort label-3513
SELECT + col0 DIV + + col1 AS col2 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3513
SELECT + col0 / + + col1 AS col2 FROM tab2
----
0
0
1

query I rowsort
SELECT ALL - ( 85 ) FROM tab1
----
-85
-85
-85

query I rowsort
SELECT - 99 + + col0 FROM tab0
----
-12
-2
-84

onlyif mysql # aggregate syntax: 
query II rowsort label-3516
SELECT + COUNT( * ) + 35, SUM( ALL + - 43 ) AS col0 FROM tab2
----
38
-129

skipif mysql # not compatible
query II rowsort label-3516
SELECT + COUNT ( * ) + 35, SUM ( ALL + - 43 ) AS col0 FROM tab2
----
38
-129

query I rowsort
SELECT DISTINCT - ( 31 ) AS col1 FROM tab1
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3518
SELECT ALL CAST( - + ( - - col1 ) AS SIGNED ) * + 11 + + 70 AS col2 FROM tab2
----
-491
-667
-777

skipif mysql # not compatible
query I rowsort label-3518
SELECT ALL CAST ( - + ( - - col1 ) AS INTEGER ) * + 11 + + 70 AS col2 FROM tab2
----
-491
-667
-777

query III rowsort
SELECT * FROM tab1 WHERE ( + + col2 * + col1 + - col0 + - col1 + + 58 + + 86 ) IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - + col2 + col1 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3521
SELECT - CAST( + + COUNT( * ) AS SIGNED ) FROM tab0 AS cor0 WHERE ( NOT + col2 IS NOT NULL )
----
0

skipif mysql # not compatible
query I rowsort label-3521
SELECT - CAST ( + + COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0 WHERE ( NOT + col2 IS NOT NULL )
----
0

query I rowsort
SELECT ALL col0 * + + col2 + - + 47 + 97 FROM tab0 AS cor0
----
755
920
9653

query I rowsort
SELECT + - 76 AS col1 FROM tab0 AS cor0
----
-76
-76
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-3524
SELECT DISTINCT SUM( ALL col0 ) FROM tab2 cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3524
SELECT DISTINCT SUM ( ALL col0 ) FROM tab2 cor0 WHERE NULL IS NOT NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col0 + - ( - - 59 ) IS NOT NULL
----

query II rowsort
SELECT ALL + col2 AS col0, col0 - - col2 FROM tab1 cor0
----
59
144
68
159
96
147

query II rowsort
SELECT ALL + col1, col0 FROM tab2 AS cor0
----
51
46
67
75
77
64

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 28 + + 57 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - - col1 * + col1 - - 49 FROM tab1 AS cor0
----
2258
245
74

query I rowsort
SELECT 37 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
37
37
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3531
SELECT - 6 * + CAST( + ( - - col2 ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-354
-408
-576

skipif mysql # not compatible
query I rowsort label-3531
SELECT - 6 * + CAST ( + ( - - col2 ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-354
-408
-576

onlyif mysql # aggregate syntax: 
query I rowsort label-3532
SELECT + - 89 * - SUM( ALL col0 ) + - + MIN( - col2 ) col1 FROM tab2 AS cor0
----
16523

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3532
SELECT + - 89 * - SUM ( ALL col0 ) + - + MIN ( - col2 ) col1 FROM tab2 AS cor0
----
16523

query II rowsort
SELECT - 51 AS col2, - 58 AS col1 FROM tab0 AS cor0
----
-51
-58
-51
-58
-51
-58

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 NOT BETWEEN - - col2 * col1 AND ( - 2 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 58 < + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col0 * + + ( - 30 ) FROM tab2 AS cor0
----
-1380
-1920
-2250

query II rowsort
SELECT DISTINCT 12 AS col2, col0 AS col2 FROM tab1
----
12
51
12
85
12
91

query I rowsort
SELECT ALL - col2 + - + ( + - 59 ) AS col2 FROM tab0 WHERE NULL = NULL
----

query II rowsort
SELECT + col0 AS col1, col1 AS col1 FROM tab0
----
15
81
87
21
97
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 AS col2, 15 * + col2 col1 FROM tab0
----
-1
1485
-21
150
-81
705

query I rowsort
SELECT + col2 * + ( - + col0 ) FROM tab0 AS cor0
----
-705
-870
-9603

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-3542
SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE CAST( NULL AS SIGNED ) = NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-3542
SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE CAST ( NULL AS INTEGER ) = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + 32 ) col0 FROM tab2 AS cor0
----
32
32
32

query I rowsort
SELECT 7 + col0 + + - 51 + col0 AS col0 FROM tab1 AS cor0
----
126
138
58

query I rowsort
SELECT DISTINCT - 44 * + col0 + + col2 AS col1 FROM tab1 AS cor0
----
-2148
-3681
-3936

onlyif mysql # aggregate syntax: 
query I rowsort label-3546
SELECT ALL + + 37 + MIN( - 85 ) FROM tab1 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-3546
SELECT ALL + + 37 + MIN ( - 85 ) FROM tab1 AS cor0
----
-48

query I rowsort
SELECT ALL + col2 + - col2 AS col1 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query II rowsort label-3548
SELECT ALL - ( - + col2 ) DIV col1 AS col2, - col1 FROM tab0
----
0
-21
0
-81
99
-1

skipif mysql # not compatible
query II rowsort label-3548
SELECT ALL - ( - + col2 ) / col1 AS col2, - col1 FROM tab0
----
0
-21
0
-81
99
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3549
SELECT col0 * + col0 - + col1 - - 37 DIV + ( - - col2 ) + - + col2 AS col2 FROM tab2 WHERE + col2 + - col2 IS NOT NULL
----
2043
3979
5500

skipif mysql # not compatible
query I rowsort label-3549
SELECT col0 * + col0 - + col1 - - 37 / + ( - - col2 ) + - + col2 AS col2 FROM tab2 WHERE + col2 + - col2 IS NOT NULL
----
2043
3979
5500

query I rowsort
SELECT + col0 - + - col1 - 63 / + col0 FROM tab1 WHERE - col1 * + col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 31 col1, - 2 * - col1 * + - 87 AS col2 FROM tab2
----
31
-11658
31
-13398
31
-8874

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0, 28 col0 FROM tab0
----
15
28
87
28
97
28

query III rowsort
SELECT * FROM tab2 WHERE - 58 * - + 27 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3554
SELECT 3 * + + COUNT( * ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-3554
SELECT 3 * + + COUNT ( * ) FROM tab2
----
9

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL > + 98
----

query I rowsort
SELECT - col2 / - col0 + + 13 FROM tab1 WHERE - - col1 - - col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + + 18 col0 FROM tab0
----
-29
-81
8

query I rowsort
SELECT - 71 * + 9 FROM tab2 AS cor0
----
-639
-639
-639

query I rowsort
SELECT + 42 - 69 FROM tab2 AS cor0
----
-27
-27
-27

query I rowsort
SELECT DISTINCT - col2 - + - col1 AS col2 FROM tab1
----
-21
-54
-82

query I rowsort
SELECT DISTINCT - 67 AS col0 FROM tab1 cor0
----
-67

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3562
SELECT ALL * FROM tab1 AS cor0 WHERE CAST( - col0 AS SIGNED ) <> - 57
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3562
SELECT ALL * FROM tab1 AS cor0 WHERE CAST ( - col0 AS INTEGER ) <> - 57
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL > + 68
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3564
SELECT ALL + + ( ( + COUNT( * ) ) ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3564
SELECT ALL + + ( ( + COUNT ( * ) ) ) AS col1 FROM tab0 AS cor0
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 - col2 * col2 <= - - 51
----

query I rowsort
SELECT + col1 AS col2 FROM tab1 AS cor0 WHERE NOT - col1 <= + + col1 * - 46
----
14
47
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3567
SELECT - 40 DIV + COUNT( * ) AS col2 FROM tab1
----
-13

skipif mysql # not compatible
query I rowsort label-3567
SELECT - 40 / + COUNT ( * ) AS col2 FROM tab1
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-3568
SELECT + 89 * - ( - - COUNT( * ) ) AS col2 FROM tab2
----
-267

skipif mysql # not compatible
query I rowsort label-3568
SELECT + 89 * - ( - - COUNT ( * ) ) AS col2 FROM tab2
----
-267

query I rowsort
SELECT ALL + 2 * + 54 AS col1 FROM tab0
----
108
108
108

query II rowsort
SELECT + 15, col0 AS col0 FROM tab2
----
15
46
15
64
15
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3571
SELECT COUNT( * ) * + 90 FROM tab0
----
270

skipif mysql # not compatible
query I rowsort label-3571
SELECT COUNT ( * ) * + 90 FROM tab0
----
270

query I rowsort
SELECT + ( - 60 ) FROM tab2
----
-60
-60
-60

query III rowsort
SELECT * FROM tab0 WHERE NOT + + 27 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL < - col0 + 10
----

query II rowsort
SELECT ALL col2 * col2, - 84 AS col1 FROM tab0 WHERE ( + col2 ) IS NULL
----

query I rowsort
SELECT ALL + 68 AS col1 FROM tab0
----
68
68
68

query I rowsort
SELECT + 10 * + 52 FROM tab0 WHERE NOT 26 > - 26 * - 15
----
520
520
520

query I rowsort
SELECT DISTINCT 89 * - + col1 AS col0 FROM tab2
----
-4539
-5963
-6853

onlyif mysql # aggregate syntax: 
query I rowsort label-3579
SELECT + - COUNT( - + col2 ) col2 FROM tab0 cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3579
SELECT + - COUNT ( - + col2 ) col2 FROM tab0 cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 + - - col0 + + - 84 col0 FROM tab1 AS cor0
----
60
63
75

query II rowsort
SELECT ALL - col2 AS col1, 91 * + - 36 + 5 AS col2 FROM tab1 cor0
----
-59
-3271
-68
-3271
-96
-3271

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 - + col1 = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3583
SELECT COUNT( ALL + + col1 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3583
SELECT COUNT ( ALL + + col1 ) AS col2 FROM tab2 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + + col1 col1 FROM tab1 cor0
----
-21
-54
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3585
SELECT + CAST( - col2 AS SIGNED ) col0 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3585
SELECT + CAST ( - col2 AS INTEGER ) col0 FROM tab2 AS cor0
----
-23
-40
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 18 col2, - 24 FROM tab1 AS cor0
----
18
-24
18
-24
18
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3587
SELECT + 5 * - col0 * - col1 / + 50 * + col2 * ( - + col2 ) * - col1 - - + col1 - - + col1 * - - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3587
SELECT + 5 * - col0 * - col1 / + 50 * + col2 * ( - + col2 ) * - col1 - - + col1 - - + col1 * - - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 / col0 col2 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3589
SELECT ALL CAST( NULL AS SIGNED ) - col0 * col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3589
SELECT ALL CAST ( NULL AS INTEGER ) - col0 * col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 83 AS col1 FROM tab2
----
83

query II rowsort
SELECT ALL + col2, - 77 FROM tab2
----
23
-77
40
-77
58
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-3592
SELECT ALL + COUNT( * ), 62 AS col0 FROM tab0
----
3
62

skipif mysql # not compatible
query II rowsort label-3592
SELECT ALL + COUNT ( * ), 62 AS col0 FROM tab0
----
3
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3593
SELECT + CAST( COUNT( + + col2 ) AS SIGNED ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3593
SELECT + CAST ( COUNT ( + + col2 ) AS INTEGER ) FROM tab0 AS cor0
----
3

query II rowsort
SELECT ALL + + col0 AS col1, col1 * + + col2 AS col2 FROM tab1 AS cor0
----
51
1344
85
295
91
3196

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1, - 68 col2 FROM tab0 AS cor0
----
-1
-68
-21
-68
-81
-68

query II rowsort
SELECT col0, - col2 * 52 AS col1 FROM tab0 cor0
----
15
-2444
87
-520
97
-5148

query III rowsort
SELECT * FROM tab1 WHERE NOT + + col1 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 18 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3599
SELECT ALL - COUNT( * ) * + 99 FROM tab1
----
-297

skipif mysql # not compatible
query I rowsort label-3599
SELECT ALL - COUNT ( * ) * + 99 FROM tab1
----
-297

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 * + ( col2 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 96 col0 FROM tab0
----
96
96
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 14 col2 FROM tab2
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3603
SELECT ALL CAST( NULL AS SIGNED ) + MIN( + - col1 ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3603
SELECT ALL CAST ( NULL AS INTEGER ) + MIN ( + - col1 ) AS col2 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN - 87 + 13 AND - 78
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3605
SELECT ALL + CAST( NULL AS DECIMAL ) - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3605
SELECT ALL + CAST ( NULL AS REAL ) - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query II rowsort
SELECT ALL col1, col2 * - - 48 AS col2 FROM tab2
----
51
1104
67
2784
77
1920

query I rowsort
SELECT DISTINCT - 36 * - 60 FROM tab2
----
2160

query I rowsort
SELECT DISTINCT - col1 * + 59 + + col2 AS col0 FROM tab0 AS cor0
----
-1229
-4732
40

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3609
SELECT ALL + CAST( NULL AS DECIMAL ) * + col2 + - col1, col0 / + CAST( NULL AS DECIMAL ) * - - col2 FROM tab0 cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3609
SELECT ALL + CAST ( NULL AS REAL ) * + col2 + - col1, col0 / + CAST ( NULL AS REAL ) * - - col2 FROM tab0 cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 40 + - + 75 * - + col1 col2 FROM tab0 AS cor0
----
115
1615
6115

query I rowsort
SELECT ALL + col1 + - col2 AS col1 FROM tab2 WHERE NULL <= + - col2 + - + 74 * col0 * col1
----

query II rowsort
SELECT + 64 AS col2, col2 FROM tab0
----
64
10
64
47
64
99

query I rowsort
SELECT ALL - col2 * + 71 AS col2 FROM tab1
----
-4189
-4828
-6816

query III rowsort
SELECT * FROM tab2 WHERE + col1 + col0 <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 57 <> - ( 57 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3616
SELECT - CAST( NULL AS SIGNED ), col0 * - 72 col2 FROM tab2
----
NULL
-3312
NULL
-4608
NULL
-5400

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3616
SELECT - CAST ( NULL AS INTEGER ), col0 * - 72 col2 FROM tab2
----
NULL
-3312
NULL
-4608
NULL
-5400

query I rowsort
SELECT col2 - - 36 FROM tab0
----
135
46
83

onlyif mysql # aggregate syntax: 
query I rowsort label-3618
SELECT + 37 - COUNT( * ) FROM tab1
----
34

skipif mysql # not compatible
query I rowsort label-3618
SELECT + 37 - COUNT ( * ) FROM tab1
----
34

query I rowsort
SELECT DISTINCT - 74 AS col1 FROM tab1 cor0
----
-74

query II rowsort
SELECT - - col2, col0 FROM tab0 AS cor0
----
10
87
47
15
99
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3621
SELECT - SUM( + - col2 ) FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-3621
SELECT - SUM ( + - col2 ) FROM tab0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-3622
SELECT ALL + COUNT( * ) + - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-3622
SELECT ALL + COUNT ( * ) + - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3623
SELECT ALL SUM( ALL - col0 ) * - ( + COUNT( * ) ) AS col2 FROM tab0
----
597

skipif mysql # not compatible
query I rowsort label-3623
SELECT ALL SUM ( ALL - col0 ) * - ( + COUNT ( * ) ) AS col2 FROM tab0
----
597

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3624
SELECT DISTINCT - CAST( COUNT( + col1 ) AS SIGNED ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-3624
SELECT DISTINCT - CAST ( COUNT ( + col1 ) AS INTEGER ) AS col2 FROM tab2
----
-3

query I rowsort
SELECT DISTINCT + 22 * - + ( - + 83 ) FROM tab0 AS cor0
----
1826

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3626
SELECT DISTINCT CAST( + col0 AS SIGNED ) DIV col1 AS col1 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-3626
SELECT DISTINCT CAST ( + col0 AS INTEGER ) / col1 AS col1 FROM tab2 AS cor0
----
0
1

query I rowsort
SELECT DISTINCT 20 AS col0 FROM tab1 cor0
----
20

query I rowsort
SELECT ALL + ( + 19 ) FROM tab0 AS cor0
----
19
19
19

onlyif mysql # aggregate syntax: 
query I rowsort label-3629
SELECT 46 * + COUNT( * ) AS col1 FROM tab1 AS cor0
----
138

skipif mysql # not compatible
query I rowsort label-3629
SELECT 46 * + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
138

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( col0 ) * - + 47 col2, col2 + - col0 * + col2 AS col1 FROM tab2
----
-2162
-1035
-3008
-2520
-3525
-4292

onlyif mysql # aggregate syntax: 
query I rowsort label-3631
SELECT DISTINCT COUNT( - + ( - 44 ) ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3631
SELECT DISTINCT COUNT ( - + ( - 44 ) ) AS col0 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3632
SELECT ALL SUM( DISTINCT 32 ) AS col0 FROM tab1
----
32

skipif mysql # not compatible
query I rowsort label-3632
SELECT ALL SUM ( DISTINCT 32 ) AS col0 FROM tab1
----
32

query I rowsort
SELECT ( - + col2 ) * + + col2 AS col2 FROM tab0
----
-100
-2209
-9801

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + 6 col0 FROM tab1 WHERE NOT + 75 / + col1 = - + 57 * - col1 + + + 18 + - col2
----
306
510
546

onlyif mysql # aggregate syntax: 
query I rowsort label-3635
SELECT ALL - - SUM( DISTINCT - + col2 ) AS col0 FROM tab2 WHERE + + col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3635
SELECT ALL - - SUM ( DISTINCT - + col2 ) AS col0 FROM tab2 WHERE + + col0 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3636
SELECT COUNT( * ), + COUNT( * ) FROM tab1
----
3
3

skipif mysql # not compatible
query II rowsort label-3636
SELECT COUNT ( * ), + COUNT ( * ) FROM tab1
----
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3637
SELECT ALL 66, + col2 - - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE NULL <> 76
----

skipif mysql # not compatible
query II rowsort label-3637
SELECT ALL 66, + col2 - - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE NULL <> 76
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 + + 89 col1 FROM tab0 AS cor0
----
104
176
186

query I rowsort
SELECT - col0 + + - col2 FROM tab0 AS cor0
----
-196
-62
-97

query II rowsort
SELECT 15 + + + ( - 92 ) AS col0, col0 AS col2 FROM tab2 AS cor0
----
-77
46
-77
64
-77
75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3641
SELECT - col0 + CAST( col0 AS SIGNED ) AS col1, col2 AS col2 FROM tab0 cor0
----
0
10
0
47
0
99

skipif mysql # not compatible
query II rowsort label-3641
SELECT - col0 + CAST ( col0 AS INTEGER ) AS col1, col2 AS col2 FROM tab0 cor0
----
0
10
0
47
0
99

query II rowsort
SELECT DISTINCT col1 AS col2, - 15 + + col2 AS col2 FROM tab0 AS cor0
----
1
84
21
-5
81
32

query I rowsort
SELECT ALL - col0 FROM tab1 WHERE NULL BETWEEN col0 * + 85 AND + 95
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 + - col2 IN ( col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3645
SELECT - 68 FROM tab0 WHERE NOT + CAST( col0 AS SIGNED ) NOT IN ( + col2 - + 91 )
----

skipif mysql # not compatible
query I rowsort label-3645
SELECT - 68 FROM tab0 WHERE NOT + CAST ( col0 AS INTEGER ) NOT IN ( + col2 - + 91 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3646
SELECT + col2 DIV 22 - + col0 * - 2 AS col0 FROM tab0
----
174
198
32

skipif mysql # not compatible
query I rowsort label-3646
SELECT + col2 / 22 - + col0 * - 2 AS col0 FROM tab0
----
174
198
32

onlyif mysql # DIV for integer division: 
query I rowsort label-3647
SELECT DISTINCT - ( - col2 ) DIV 71 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
0
1

skipif mysql # not compatible
query I rowsort label-3647
SELECT DISTINCT - ( - col2 ) / 71 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3648
SELECT CAST( col0 AS SIGNED ) - ( + ( ( - col2 ) ) + + 38 * 43 ) AS col0 FROM tab2
----
-1501
-1530
-1565

skipif mysql # not compatible
query I rowsort label-3648
SELECT CAST ( col0 AS INTEGER ) - ( + ( ( - col2 ) ) + + 38 * 43 ) AS col0 FROM tab2
----
-1501
-1530
-1565

onlyif mysql # aggregate syntax: 
query I rowsort label-3649
SELECT DISTINCT ( - 45 ) * - MAX( col1 + col2 ) AS col2 FROM tab0
----
5760

skipif mysql # not compatible
query I rowsort label-3649
SELECT DISTINCT ( - 45 ) * - MAX ( col1 + col2 ) AS col2 FROM tab0
----
5760

query III rowsort
SELECT * FROM tab0 WHERE NOT 97 + 42 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3651
SELECT - col2 / 6 + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3651
SELECT - col2 / 6 + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3652
SELECT DISTINCT MAX( DISTINCT col0 ) col1 FROM tab2
----
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3652
SELECT DISTINCT MAX ( DISTINCT col0 ) col1 FROM tab2
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-3653
SELECT - 97 DIV + col1 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3653
SELECT - 97 / + col1 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT ALL col0 - 69 * - 27 FROM tab1
----
1914
1948
1954

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) BETWEEN - ( col0 ) AND + 40
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3656
SELECT MIN( DISTINCT col0 ) col0 FROM tab2 WHERE - 25 + col1 * col0 <> NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3656
SELECT MIN ( DISTINCT col0 ) col0 FROM tab2 WHERE - 25 + col1 * col0 <> NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 0 * - col2 = col2
----

query I rowsort
SELECT + 87 + - 18 AS col1 FROM tab0
----
69
69
69

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL >= ( + col0 )
----

query I rowsort
SELECT + 21 + + col0 FROM tab1
----
106
112
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3661
SELECT ALL + MIN( ALL col1 ) DIV COUNT( * ) AS col1 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-3661
SELECT ALL + MIN ( ALL col1 ) / COUNT ( * ) AS col1 FROM tab1
----
1

query I rowsort
SELECT - ( + col0 ) + + col1 FROM tab0 WHERE NULL IN ( col0 + col2 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 - col0 NOT IN ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3664
SELECT ALL - COUNT( * ) AS col0 FROM tab1 WHERE col0 IN ( - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-3664
SELECT ALL - COUNT ( * ) AS col0 FROM tab1 WHERE col0 IN ( - col0 )
----
0

query III rowsort
SELECT * FROM tab1 WHERE + col2 * - col2 + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3666
SELECT CAST( NULL AS SIGNED ) * - MIN( - 16 * ( - col1 * - col2 ) ) AS col2 FROM tab0 WHERE NULL NOT BETWEEN 68 + col2 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3666
SELECT CAST ( NULL AS INTEGER ) * - MIN ( - 16 * ( - col1 * - col2 ) ) AS col2 FROM tab0 WHERE NULL NOT BETWEEN 68 + col2 AND NULL
----
NULL

query I rowsort
SELECT DISTINCT - col0 * col1 + - col2 FROM tab2 WHERE NOT - col2 <= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3668
SELECT col1 + - CAST( NULL AS SIGNED ) / + col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3668
SELECT col1 + - CAST ( NULL AS INTEGER ) / + col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3669
SELECT - SUM( DISTINCT + CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3669
SELECT - SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 * + col0 <> ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 87 * col0 col0 FROM tab2 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3672
SELECT - COUNT( + 99 ) * 82 FROM tab2 AS cor0
----
-246

skipif mysql # not compatible
query I rowsort label-3672
SELECT - COUNT ( + 99 ) * 82 FROM tab2 AS cor0
----
-246

query I rowsort
SELECT DISTINCT - col2 FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
-59
-68
-96

query I rowsort
SELECT - 86 * + col2 FROM tab1 cor0
----
-5074
-5848
-8256

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 <= col0 * 62
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3676
SELECT ALL + COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0
----
9

skipif mysql # not compatible
query I rowsort label-3676
SELECT ALL + COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-3677
SELECT ALL col1 DIV ( col0 ) AS col1 FROM tab0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-3677
SELECT ALL col1 / ( col0 ) AS col1 FROM tab0
----
0
0
5

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 88 + 49 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3679
SELECT - COUNT( DISTINCT + col1 ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3679
SELECT - COUNT ( DISTINCT + col1 ) AS col1 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT - + col0 * 7 AS col0 FROM tab0 AS cor0
----
-105
-609
-679

query I rowsort
SELECT DISTINCT + ( - 90 ) AS col2 FROM tab0 AS cor0
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-3682
SELECT DISTINCT - 56 + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-3682
SELECT DISTINCT - 56 + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-3683
SELECT ALL + COUNT( * ) + MIN( - col0 ) FROM tab2 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-3683
SELECT ALL + COUNT ( * ) + MIN ( - col0 ) FROM tab2 AS cor0
----
-72

query I rowsort
SELECT ALL - col2 FROM tab2 AS cor0 WHERE NOT ( - col2 ) IS NULL
----
-23
-40
-58

query I rowsort
SELECT + col1 * - 8 + ( 36 ) * - 62 AS col0 FROM tab0 AS cor0
----
-2240
-2400
-2880

query I rowsort
SELECT col1 * - col2 AS col0 FROM tab0 WHERE NOT NULL BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE col2 >= col0
----
51
14
96

query I rowsort
SELECT DISTINCT + col1 * ( 86 ) FROM tab2
----
4386
5762
6622

query III rowsort
SELECT * FROM tab2 WHERE 7 NOT IN ( + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3690
SELECT ALL SUM( - col1 ) AS col1 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-3690
SELECT ALL SUM ( - col1 ) AS col1 FROM tab1
----
-66

query III rowsort
SELECT * FROM tab0 WHERE ( col0 + col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3692
SELECT COUNT( * ) * + COUNT( ALL + 23 ) col0 FROM tab1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3692
SELECT COUNT ( * ) * + COUNT ( ALL + 23 ) col0 FROM tab1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3693
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT IN ( + CAST( NULL AS SIGNED ) * - col1 )
----

skipif mysql # not compatible
query III rowsort label-3693
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT IN ( + CAST ( NULL AS INTEGER ) * - col1 )
----

query I rowsort
SELECT ALL 7 AS col2 FROM tab0 WHERE NOT + 69 * + col2 - - col1 IS NULL
----
7
7
7

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL BETWEEN col2 AND 54
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3696
SELECT ALL - MAX( 91 ) FROM tab0
----
-91

skipif mysql # not compatible
query I rowsort label-3696
SELECT ALL - MAX ( 91 ) FROM tab0
----
-91

query I rowsort
SELECT - ( 14 ) + - ( + col1 ) AS col1 FROM tab2
----
-65
-81
-91

query I rowsort
SELECT - 78 FROM tab1 WHERE + 70 NOT IN ( ( + 41 ) )
----
-78
-78
-78

query I rowsort
SELECT col2 * + col0 + 24 FROM tab2
----
1082
2584
4374

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3700
SELECT - CAST( - col0 AS SIGNED ) * col1 + + col0 * + 0 FROM tab2 AS cor0
----
2346
4928
5025

skipif mysql # not compatible
query I rowsort label-3700
SELECT - CAST ( - col0 AS INTEGER ) * col1 + + col0 * + 0 FROM tab2 AS cor0
----
2346
4928
5025

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3701
SELECT ALL - 1 + - + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3701
SELECT ALL - 1 + - + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT - col2 AS col2, col1 AS col2 FROM tab0 AS cor0
----
-10
21
-47
81
-99
1

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 ) AS col0 FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT ALL - col2 + - + col2 FROM tab1 AS cor0
----
-118
-136
-192

onlyif mysql # aggregate syntax: 
query I rowsort label-3706
SELECT ALL + + MAX( col1 ) col1 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3706
SELECT ALL + + MAX ( col1 ) col1 FROM tab1 AS cor0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3707
SELECT ALL - SUM( - + col2 ) FROM tab0 cor0
----
156

skipif mysql # not compatible
query I rowsort label-3707
SELECT ALL - SUM ( - + col2 ) FROM tab0 cor0
----
156

query I rowsort
SELECT DISTINCT 61 AS col0 FROM tab0 WHERE NOT NULL IN ( 59 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 / 47 col0 FROM tab2 WHERE + - 62 <> NULL
----

query I rowsort
SELECT ALL col2 * - + 30 AS col0 FROM tab1
----
-1770
-2040
-2880

query I rowsort
SELECT DISTINCT col1 * - - ( col1 ) AS col1 FROM tab1
----
196
2209
25

onlyif mysql # aggregate syntax: 
query I rowsort label-3712
SELECT ALL - MAX( + col2 ) col1 FROM tab0
----
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3712
SELECT ALL - MAX ( + col2 ) col1 FROM tab0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3713
SELECT SUM( - ( col1 ) ) AS col1 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-3713
SELECT SUM ( - ( col1 ) ) AS col1 FROM tab2
----
-195

query I rowsort
SELECT + ( - 78 ) FROM tab0
----
-78
-78
-78

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3715
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 * + col2 - - 42 / - CAST( NULL AS SIGNED ) BETWEEN col2 + + col2 AND ( + 39 + col2 )
----

skipif mysql # not compatible
query III rowsort label-3715
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 * + col2 - - 42 / - CAST ( NULL AS INTEGER ) BETWEEN col2 + + col2 AND ( + 39 + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3716
SELECT DISTINCT SUM( ALL 76 ) AS col2 FROM tab1 AS cor0
----
228

skipif mysql # not compatible
query I rowsort label-3716
SELECT DISTINCT SUM ( ALL 76 ) AS col2 FROM tab1 AS cor0
----
228

onlyif mysql # aggregate syntax: 
query II rowsort label-3717
SELECT ALL 49 * - + MIN( DISTINCT - - 44 ) AS col1, MIN( + 37 ) FROM tab0
----
-2156
37

skipif mysql # not compatible
query II rowsort label-3717
SELECT ALL 49 * - + MIN ( DISTINCT - - 44 ) AS col1, MIN ( + 37 ) FROM tab0
----
-2156
37

query I rowsort
SELECT 68 * ( 74 ) FROM tab2 WHERE NOT ( - col1 * + + 31 + + + 76 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3719
SELECT DISTINCT - COUNT( * ) * - ( + - MAX( col0 ) ) + + + 90 * + 30 AS col0 FROM tab2 AS cor0
----
2475

skipif mysql # not compatible
query I rowsort label-3719
SELECT DISTINCT - COUNT ( * ) * - ( + - MAX ( col0 ) ) + + + 90 * + 30 AS col0 FROM tab2 AS cor0
----
2475

query I rowsort
SELECT ALL - - 77 AS col0 FROM tab1 AS cor0 WHERE - 97 / + col2 IS NOT NULL
----
77
77
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3721
SELECT + MIN( DISTINCT - ( + col2 ) ) FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-3721
SELECT + MIN ( DISTINCT - ( + col2 ) ) FROM tab2 AS cor0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3722
SELECT DISTINCT ( + + MIN( + col2 ) ) * 33 + - SUM( + col1 ) AS col1 FROM tab1 AS cor0
----
1881

skipif mysql # not compatible
query I rowsort label-3722
SELECT DISTINCT ( + + MIN ( + col2 ) ) * 33 + - SUM ( + col1 ) AS col1 FROM tab1 AS cor0
----
1881

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 * + col1 > + col1 * col2 + col1
----
97
1
99

query I rowsort
SELECT - col0 * - col1 * col1 + col1 + col2 AS col0 FROM tab1 cor0
----
10106
201134
2189

query I rowsort
SELECT ALL + col2 + + 73 FROM tab1 AS cor0
----
132
141
169

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3726
SELECT ALL 85 * CAST( - COUNT( * ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-255

skipif mysql # not compatible
query I rowsort label-3726
SELECT ALL 85 * CAST ( - COUNT ( * ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-255

onlyif mysql # DIV for integer division: 
query I rowsort label-3727
SELECT ALL col2 * - col1 DIV + col1 FROM tab2 cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-3727
SELECT ALL col2 * - col1 / + col1 FROM tab2 cor0
----
-23
-40
-58

query I rowsort
SELECT ALL - col1 * 4 + - + col2 * - col0 * + - col1 FROM tab2 AS cor0
----
-197428
-291718
-54162

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 15 * - 6 + - col1 col0 FROM tab2 AS cor0
----
13
23
39

query III rowsort
SELECT * FROM tab2 WHERE ( + 18 ) <> NULL
----

query II rowsort
SELECT 38 AS col2, col2 AS col2 FROM tab1
----
38
59
38
68
38
96

onlyif mysql # DIV for integer division: 
query I rowsort label-3732
SELECT DISTINCT - col2 DIV - - col2 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-3732
SELECT DISTINCT - col2 / - - col2 FROM tab1
----
-1

query I rowsort
SELECT DISTINCT - col1 * + 94 * col0 AS col0 FROM tab1
----
-39950
-402038
-67116

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3734
SELECT CAST( NULL AS SIGNED ) + col2 col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3734
SELECT CAST ( NULL AS INTEGER ) + col2 col2 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE ( + + 17 ) NOT IN ( + 89 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 59 <= + 23
----

query I rowsort
SELECT + col2 + + - 73 FROM tab0 AS cor0 WHERE ( NULL ) >= NULL
----

query I rowsort
SELECT ALL - col0 AS col2 FROM tab1 AS cor0 WHERE - 10 IS NOT NULL
----
-51
-85
-91

query I rowsort
SELECT ALL + - col0 + + col0 * + - col2 + col2 AS col1 FROM tab0 AS cor0
----
-673
-947
-9601

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col0 + - col0 IN ( - + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3741
SELECT - COUNT( DISTINCT + - 64 ) AS col2 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3741
SELECT - COUNT ( DISTINCT + - 64 ) AS col2 FROM tab2 AS cor0
----
-1

query III rowsort
SELECT ALL * FROM tab2 WHERE - - col1 / - + 95 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + - 41 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 4ba0c102091f9cbc9fe9439b04584e70

onlyif mysql # aggregate syntax: 
query I rowsort label-3744
SELECT DISTINCT + MIN( - col0 ) AS col1 FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-3744
SELECT DISTINCT + MIN ( - col0 ) AS col1 FROM tab0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3745
SELECT - MIN( ALL + - ( + ( + 55 ) ) ) FROM tab0 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-3745
SELECT - MIN ( ALL + - ( + ( + 55 ) ) ) FROM tab0 AS cor0
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3746
SELECT - CAST( NULL AS SIGNED ) * COUNT( * ) AS col2, - 29 FROM tab0 AS cor0
----
NULL
-29

skipif mysql # not compatible
query II rowsort label-3746
SELECT - CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col2, - 29 FROM tab0 AS cor0
----
NULL
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-3747
SELECT - SUM( 20 ) AS col1 FROM tab2 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-3747
SELECT - SUM ( 20 ) AS col1 FROM tab2 AS cor0
----
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3748
SELECT + COUNT( * ) DIV - + 1 AS col2 FROM tab1 AS cor0 WHERE NOT ( 76 ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3748
SELECT + COUNT ( * ) / - + 1 AS col2 FROM tab1 AS cor0 WHERE NOT ( 76 ) IS NULL
----
-3

query II rowsort
SELECT DISTINCT col2, 56 * - + col2 AS col1 FROM tab1
----
59
-3304
68
-3808
96
-5376

query II rowsort
SELECT ALL + 24 AS col0, + 80 AS col1 FROM tab0
----
24
80
24
80
24
80

onlyif mysql # DIV for integer division: 
query I rowsort label-3751
SELECT 31 DIV + col1 AS col0 FROM tab1
----
0
2
6

skipif mysql # not compatible
query I rowsort label-3751
SELECT 31 / + col1 AS col0 FROM tab1
----
0
2
6

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 73 NOT IN ( - 84 * 42 + - ( - col1 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 WHERE + ( - 48 ) = col0 * + - 17 / + col0 + + - col0 - col1 * col1
----

query I rowsort
SELECT DISTINCT 7 * ( - col1 ) AS col1 FROM tab2
----
-357
-469
-539

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 49 col0, + col0 AS col2 FROM tab0
----
-49
15
-49
87
-49
97

query I rowsort
SELECT + 43 FROM tab1 WHERE NOT + + col0 * 86 * + col0 + - 77 IS NULL
----
43
43
43

onlyif mysql # aggregate syntax: 
query I rowsort label-3757
SELECT - 36 * - COUNT( * ) FROM tab0 AS cor0
----
108

skipif mysql # not compatible
query I rowsort label-3757
SELECT - 36 * - COUNT ( * ) FROM tab0 AS cor0
----
108

query I rowsort
SELECT + col2 * - ( + - 42 ) FROM tab0 AS cor0
----
1974
4158
420

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3759
SELECT + col0 AS col0, + CAST( + col2 AS SIGNED ) col1 FROM tab0 cor0
----
15
47
87
10
97
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3759
SELECT + col0 AS col0, + CAST ( + col2 AS INTEGER ) col1 FROM tab0 cor0
----
15
47
87
10
97
99

query I rowsort
SELECT - col1 * + 38 + + col1 AS col1 FROM tab2 cor0
----
-1887
-2479
-2849

onlyif mysql # aggregate syntax: 
query I rowsort label-3761
SELECT + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-3761
SELECT + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3762
SELECT + COUNT( ALL - - 9 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-3762
SELECT + COUNT ( ALL - - 9 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3763
SELECT ALL + ( - - COUNT( * ) ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-3763
SELECT ALL + ( - - COUNT ( * ) ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 64 + + + col0, ( col1 ) col0 FROM tab1
----
115
14
149
5
155
47

query I rowsort
SELECT - 62 + + col1 AS col1 FROM tab2 AS cor0
----
-11
15
5

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 * col0 > col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3768
SELECT ALL - COUNT( * ) + - - COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3768
SELECT ALL - COUNT ( * ) + - - COUNT ( * ) FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3769
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + CAST( col2 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3769
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + CAST ( col2 AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT 13 - - col1 + - col0 + - - col1 / + col0 AS col1 FROM tab2 WHERE NOT - col1 * - + 9 * 82 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN ( NULL ) AND 30
----

query I rowsort
SELECT DISTINCT - 42 + - + 18 AS col0 FROM tab2
----
-60

query I rowsort
SELECT ALL + 96 AS col2 FROM tab1
----
96
96
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3774
SELECT - 51 * - COUNT( * ) AS col0 FROM tab0
----
153

skipif mysql # not compatible
query I rowsort label-3774
SELECT - 51 * - COUNT ( * ) AS col0 FROM tab0
----
153

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - - col2 >= col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3776
SELECT CAST( NULL AS DECIMAL ) * col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3776
SELECT CAST ( NULL AS REAL ) * col0 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT 8 AS col1, col2 AS col1 FROM tab0
----
8
10
8
47
8
99

query II rowsort
SELECT col0, 56 * 57 + col0 AS col1 FROM tab2
----
46
3238
64
3256
75
3267

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND - col2
----

query I rowsort
SELECT + + col0 * - + 41 AS col1 FROM tab2 cor0
----
-1886
-2624
-3075

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3781
SELECT DISTINCT - 92 * - 36 / + 89 + - CAST( NULL AS DECIMAL ) + - 72 * + - CAST( NULL AS SIGNED ) col1, - 50 + MIN( + col2 ) * SUM( 56 ) AS col2 FROM tab2 AS cor0
----
NULL
3814

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3781
SELECT DISTINCT - 92 * - 36 / + 89 + - CAST ( NULL AS REAL ) + - 72 * + - CAST ( NULL AS INTEGER ) col1, - 50 + MIN ( + col2 ) * SUM ( 56 ) AS col2 FROM tab2 AS cor0
----
NULL
3814

query I rowsort
SELECT ALL col1 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3783
SELECT + COUNT( DISTINCT - + col0 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3783
SELECT + COUNT ( DISTINCT - + col0 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL ( + - 45 ) AS col0 FROM tab0
----
-45
-45
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-3785
SELECT 42 * - 36 * + COUNT( * ) FROM tab0, tab1 AS cor0
----
-13608

skipif mysql # not compatible
query I rowsort label-3785
SELECT 42 * - 36 * + COUNT ( * ) FROM tab0, tab1 AS cor0
----
-13608

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3786
SELECT - CAST( - col0 AS SIGNED ) col0 FROM tab0
----
15
87
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3786
SELECT - CAST ( - col0 AS INTEGER ) col0 FROM tab0
----
15
87
97

query III rowsort
SELECT ALL * FROM tab2 WHERE + + 65 + - 76 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 59 AS col2 FROM tab2
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3789
SELECT - MAX( - CAST( - - col0 AS SIGNED ) ) FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-3789
SELECT - MAX ( - CAST ( - - col0 AS INTEGER ) ) FROM tab0 AS cor0
----
15

query I rowsort
SELECT + 6 * + + col1 AS col2 FROM tab1 AS cor0 WHERE NOT ( - 38 / - - col1 ) BETWEEN NULL AND - col0
----
282
30
84

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3791
SELECT ALL * 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-3791
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3792
SELECT - + 24 + - - COUNT( * ) FROM tab2 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-3792
SELECT - + 24 + - - COUNT ( * ) FROM tab2 AS cor0
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-3793
SELECT ALL - COUNT( * ) FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-9

skipif mysql # not compatible
query I rowsort label-3793
SELECT ALL - COUNT ( * ) FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3794
SELECT - 2 * + MAX( - 67 ) + - ( COUNT( * ) ) FROM tab1
----
131

skipif mysql # not compatible
query I rowsort label-3794
SELECT - 2 * + MAX ( - 67 ) + - ( COUNT ( * ) ) FROM tab1
----
131

query II rowsort
SELECT DISTINCT 6, 5 AS col1 FROM tab1 AS cor0 WHERE ( NULL IS NOT NULL )
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE 43 IN ( + + col2 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - ( col1 ) NOT BETWEEN NULL AND - 46
----
87
21
10
97
1
99

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE + col0 + - + col2 + + - ( - - 32 ) * + + col1 IN ( - 96 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3799
SELECT - CAST( CAST( + AVG ( DISTINCT col1 ) AS SIGNED ) AS SIGNED ) FROM tab0 AS cor0
----
-34

skipif mysql # not compatible
query I rowsort label-3799
SELECT - CAST ( CAST ( + AVG ( DISTINCT col1 ) AS INTEGER ) AS INTEGER ) FROM tab0 AS cor0
----
-34

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3800
SELECT - 43 AS col1, - col2 * col0 + - CAST( NULL AS SIGNED ) FROM tab2 cor0
----
-43
NULL
-43
NULL
-43
NULL

skipif mysql # not compatible
query II rowsort label-3800
SELECT - 43 AS col1, - col2 * col0 + - CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
-43
NULL
-43
NULL
-43
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3801
SELECT + 45 * - COUNT( * ) FROM tab1 AS cor0
----
-135

skipif mysql # not compatible
query I rowsort label-3801
SELECT + 45 * - COUNT ( * ) FROM tab1 AS cor0
----
-135

query II rowsort
SELECT - col1, + 98 + col2 AS col2 FROM tab2 AS cor0
----
-51
121
-67
156
-77
138

query II rowsort
SELECT - + col2 AS col0, - col0 * - + col1 FROM tab0 AS cor0
----
-10
1827
-47
1215
-99
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3804
SELECT COUNT( * ) * + 61 + COUNT( * ) AS col2 FROM tab0
----
186

skipif mysql # not compatible
query I rowsort label-3804
SELECT COUNT ( * ) * + 61 + COUNT ( * ) AS col2 FROM tab0
----
186

onlyif mysql # aggregate syntax: 
query I rowsort label-3805
SELECT ALL + 41 - - + ( - COUNT( * ) ) AS col1 FROM tab0
----
38

skipif mysql # not compatible
query I rowsort label-3805
SELECT ALL + 41 - - + ( - COUNT ( * ) ) AS col1 FROM tab0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-3806
SELECT DISTINCT - 8 - + COUNT( * ) AS col0 FROM tab2
----
-11

skipif mysql # not compatible
query I rowsort label-3806
SELECT DISTINCT - 8 - + COUNT ( * ) AS col0 FROM tab2
----
-11

query I rowsort
SELECT DISTINCT ( 92 ) * - col1 FROM tab1
----
-1288
-4324
-460

onlyif mysql # DIV for integer division: 
query I rowsort label-3808
SELECT - 28 DIV + col0 + 38 + ( + - col2 ) * 19 FROM tab0
----
-152
-1843
-856

skipif mysql # not compatible
query I rowsort label-3808
SELECT - 28 / + col0 + 38 + ( + - col2 ) * 19 FROM tab0
----
-152
-1843
-856

onlyif mysql # aggregate syntax: 
query I rowsort label-3809
SELECT ALL - ( - 76 ) + + + COUNT( * ) AS col0 FROM tab1 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-3809
SELECT ALL - ( - 76 ) + + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3810
SELECT - MIN( ALL + col0 ) DIV COUNT( * ) FROM tab2 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-3810
SELECT - MIN ( ALL + col0 ) / COUNT ( * ) FROM tab2 AS cor0
----
-15

query I rowsort
SELECT + 12 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 FROM tab0 WHERE + + 93 > ( - 54 * - col0 )
----

query I rowsort
SELECT DISTINCT - 15 * - col2 AS col1 FROM tab0 AS cor0
----
1485
150
705

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN + col0 AND NULL
----

query I rowsort
SELECT + - col0 * - 78 AS col0 FROM tab2 AS cor0
----
3588
4992
5850

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col2 * col1 <> col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3817
SELECT col0 * + CAST( col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
2601
7225
8281

skipif mysql # not compatible
query I rowsort label-3817
SELECT col0 * + CAST ( col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
2601
7225
8281

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + + col1 ) > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3819
SELECT ALL * FROM tab2 WHERE CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3819
SELECT ALL * FROM tab2 WHERE CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 67 * 41 col0 FROM tab1
----
2747
2747
2747

query I rowsort
SELECT ALL + ( + - col2 ) AS col0 FROM tab2
----
-23
-40
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3822
SELECT ALL - 75 * CAST( NULL AS SIGNED ) * + MIN( + ( - col2 ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3822
SELECT ALL - 75 * CAST ( NULL AS INTEGER ) * + MIN ( + ( - col2 ) ) FROM tab1
----
NULL

query II rowsort
SELECT ALL 97 AS col1, + 30 FROM tab0
----
97
30
97
30
97
30

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( + col0 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3825
SELECT CAST( NULL AS SIGNED ) * + 97 / + col1 AS col1 FROM tab1 cor0 WHERE - 71 > NULL
----

skipif mysql # not compatible
query I rowsort label-3825
SELECT CAST ( NULL AS INTEGER ) * + 97 / + col1 AS col1 FROM tab1 cor0 WHERE - 71 > NULL
----

query II rowsort
SELECT DISTINCT 72 + - 66, - 32 AS col2 FROM tab1
----
6
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-3827
SELECT 66 DIV - 76 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3827
SELECT 66 / - 76 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3828
SELECT COUNT( * ) + - 43 FROM tab0
----
-40

skipif mysql # not compatible
query I rowsort label-3828
SELECT COUNT ( * ) + - 43 FROM tab0
----
-40

query II rowsort
SELECT 92 + col0 * 22 + + ( + - col2 ) AS col2, 80 AS col2 FROM tab1
----
1118
80
1903
80
2026
80

query I rowsort
SELECT ALL - col2 + + + col1 + + - col1 - + col2 FROM tab2
----
-116
-46
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-3831
SELECT - 73 + + MAX( ALL col1 ) FROM tab1
----
-26

skipif mysql # not compatible
query I rowsort label-3831
SELECT - 73 + + MAX ( ALL col1 ) FROM tab1
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-3832
SELECT ALL 27 + + - COUNT( * ) + + 9 AS col2 FROM tab2 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-3832
SELECT ALL 27 + + - COUNT ( * ) + + 9 AS col2 FROM tab2 AS cor0
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3833
SELECT COUNT( * ) + + 78 * + CAST( NULL AS SIGNED ) * + COUNT( * ) + COUNT( * ) * CAST( + MAX( ALL 71 ) AS DECIMAL ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3833
SELECT COUNT ( * ) + + 78 * + CAST ( NULL AS INTEGER ) * + COUNT ( * ) + COUNT ( * ) * CAST ( + MAX ( ALL 71 ) AS REAL ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-3834
SELECT DISTINCT + col2 DIV + col0 + ( - col2 ) + + 2 AS col0, - CAST( NULL AS DECIMAL ) * col2 AS col1 FROM tab1 AS cor0
----
-57
NULL
-66
NULL
-93
NULL

skipif mysql # not compatible
query II rowsort label-3834
SELECT DISTINCT + col2 / + col0 + ( - col2 ) + + 2 AS col0, - CAST ( NULL AS REAL ) * col2 AS col1 FROM tab1 AS cor0
----
-57
NULL
-66
NULL
-93
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL >= 77
----

query I rowsort
SELECT + + 15 + ( + col0 ) * - col1 / - col1 * + 89 FROM tab0 AS cor0 WHERE - col1 <> NULL
----

query I rowsort
SELECT DISTINCT - col0 + + ( + col2 ) AS col0 FROM tab0 cor0
----
-77
2
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 76 col0, + col1 col1 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + col1 AS col2 FROM tab1 WHERE 94 = NULL
----

query I rowsort
SELECT - + col0 FROM tab1 WHERE 37 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3841
SELECT DISTINCT - 59 * MIN( + 10 ) * ( + - COUNT( * ) ) AS col2 FROM tab2
----
1770

skipif mysql # not compatible
query I rowsort label-3841
SELECT DISTINCT - 59 * MIN ( + 10 ) * ( + - COUNT ( * ) ) AS col2 FROM tab2
----
1770

query I rowsort
SELECT ALL col2 / + 32 FROM tab2 WHERE NOT - col2 <= - col2 + - - 12
----

query I rowsort
SELECT + 5 - + 10 FROM tab2
----
-5
-5
-5

query II rowsort
SELECT ALL col1, col0 AS col1 FROM tab0 AS cor0
----
1
97
21
87
81
15

query I rowsort
SELECT DISTINCT + - 60 AS col2 FROM tab2 cor0
----
-60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 38 col1 FROM tab2 WHERE NOT + 94 <> + 72
----

query I rowsort
SELECT ALL + - 51 * + + 54 + - 68 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 6a7787ceee4329ce3636ca1cfb1ae696

query I rowsort
SELECT ALL col0 * 95 AS col0 FROM tab2 AS cor0
----
4370
6080
7125

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 7 IS NOT NULL
----

query I rowsort
SELECT + col1 * - 12 FROM tab2 AS cor0
----
-612
-804
-924

onlyif mysql # DIV for integer division: 
query I rowsort label-3851
SELECT DISTINCT + - col0 DIV + col1 col1 FROM tab2 AS cor0
----
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3851
SELECT DISTINCT + - col0 / + col1 col1 FROM tab2 AS cor0
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3852
SELECT - + SUM( + 50 ) AS col1 FROM tab1 AS cor0
----
-150

skipif mysql # not compatible
query I rowsort label-3852
SELECT - + SUM ( + 50 ) AS col1 FROM tab1 AS cor0
----
-150

query II rowsort
SELECT col2, + 37 FROM tab0
----
10
37
47
37
99
37

onlyif mysql # DIV for integer division: 
query I rowsort label-3854
SELECT + 10 DIV + ( + 57 ) FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3854
SELECT + 10 / + ( + 57 ) FROM tab1
----
0
0
0

query I rowsort
SELECT ALL ( - col2 ) * - col1 * - + col2 + - - col1 - ( + + col0 ) * + col1 FROM tab1
----
-129724
-17825
-221558

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3856
SELECT * FROM tab0 WHERE NOT + col0 * + CAST( NULL AS SIGNED ) * + col1 * + col2 * - - col1 NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-3856
SELECT * FROM tab0 WHERE NOT + col0 * + CAST ( NULL AS INTEGER ) * + col1 * + col2 * - - col1 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3857
SELECT DISTINCT + COUNT( * ) * MAX( + col1 ) FROM tab0
----
243

skipif mysql # not compatible
query I rowsort label-3857
SELECT DISTINCT + COUNT ( * ) * MAX ( + col1 ) FROM tab0
----
243

onlyif mysql # DIV for integer division: 
query I rowsort label-3858
SELECT - col2 DIV 37 * - col2 AS col1 FROM tab2
----
0
40
58

skipif mysql # not compatible
query I rowsort label-3858
SELECT - col2 / 37 * - col2 AS col1 FROM tab2
----
0
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3859
SELECT DISTINCT - 9 * - - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3859
SELECT DISTINCT - 9 * - - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT col1 * - 76 FROM tab0
----
-1596
-6156
-76

query III rowsort
SELECT * FROM tab0 WHERE NOT + 45 BETWEEN + col0 AND 24
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col2 FROM tab1 WHERE 30 IS NOT NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3863
SELECT ( - COUNT( ALL - + 48 ) ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3863
SELECT ( - COUNT ( ALL - + 48 ) ) AS col1 FROM tab0
----
-3

query I rowsort
SELECT DISTINCT + + 6 + + col2 FROM tab0 AS cor0
----
105
16
53

onlyif mysql # DIV for integer division: 
query I rowsort label-3865
SELECT - - col2 DIV - col1 + 89 FROM tab1 cor0
----
78
83
88

skipif mysql # not compatible
query I rowsort label-3865
SELECT - - col2 / - col1 + 89 FROM tab1 cor0
----
78
83
88

query I rowsort
SELECT ALL + col1 + - + 84 AS col2 FROM tab2
----
-17
-33
-7

query I rowsort
SELECT 72 AS col1 FROM tab2 WHERE - col0 BETWEEN - + col1 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3868
SELECT DISTINCT col2 DIV + - col1 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3868
SELECT DISTINCT col2 / + - col1 AS col0 FROM tab2
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 0 IS NULL
----

query I rowsort
SELECT ALL + ( 54 ) AS col2 FROM tab1 cor0
----
54
54
54

query I rowsort
SELECT DISTINCT - - col0 AS col2 FROM tab1 AS cor0 WHERE NOT + col2 IS NOT NULL
----

query I rowsort
SELECT ALL + col0 + + + 7 * + col1 FROM tab0 AS cor0
----
104
234
582

onlyif mysql # aggregate syntax: 
query I rowsort label-3873
SELECT DISTINCT - MAX( ALL col0 ) col0 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3873
SELECT DISTINCT - MAX ( ALL col0 ) col0 FROM tab0 AS cor0
----
-97

query I rowsort
SELECT + col2 - - - ( + + 2 ) FROM tab0 AS cor0
----
45
8
97

query II rowsort
SELECT DISTINCT - col2 * - - col0 - - ( + col1 ) * + + col0 * col2 AS col0, 91 FROM tab1 AS cor0
----
20060
91
284648
91
63648
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3876
SELECT - + MIN( col1 ) - - COUNT( * ) * + - 15 FROM tab1 AS cor0
----
-50

skipif mysql # not compatible
query I rowsort label-3876
SELECT - + MIN ( col1 ) - - COUNT ( * ) * + - 15 FROM tab1 AS cor0
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-3877
SELECT DISTINCT + 21 + MAX( - - ( 67 ) ) * - 37 AS col0 FROM tab1 AS cor0
----
-2458

skipif mysql # not compatible
query I rowsort label-3877
SELECT DISTINCT + 21 + MAX ( - - ( 67 ) ) * - 37 AS col0 FROM tab1 AS cor0
----
-2458

query I rowsort
SELECT + 49 + + - col1 AS col2 FROM tab1
----
2
35
44

query I rowsort
SELECT DISTINCT col1 - - 23 * + col1 AS col1 FROM tab0
----
1944
24
504

query I rowsort
SELECT ALL 55 - ( + col2 ) FROM tab2
----
-3
15
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3881
SELECT + SUM( - 13 ) FROM tab0 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-3881
SELECT + SUM ( - 13 ) FROM tab0 AS cor0
----
-39

query I rowsort
SELECT col2 * - ( 27 ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1593
-1836
-2592

onlyif mysql # aggregate syntax: 
query I rowsort label-3883
SELECT ALL MAX( - 79 ) AS col2 FROM tab0 AS cor0
----
-79

skipif mysql # not compatible
query I rowsort label-3883
SELECT ALL MAX ( - 79 ) AS col2 FROM tab0 AS cor0
----
-79

query I rowsort
SELECT ALL col2 * + 5 AS col0 FROM tab1
----
295
340
480

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 24 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-3886
SELECT DISTINCT - COUNT( * ) AS col2, COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9
9

skipif mysql # not compatible
query II rowsort label-3886
SELECT DISTINCT - COUNT ( * ) AS col2, COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9
9

query I rowsort
SELECT + 87 * + + 41 AS col0 FROM tab0 AS cor0
----
3567
3567
3567

query I rowsort
SELECT + col2 * + + col0 AS col2 FROM tab2 AS cor0
----
1058
2560
4350

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 65 col1, - col1 FROM tab2 cor0
----
65
-51
65
-67
65
-77

query I rowsort
SELECT DISTINCT - col2 * - + col0 AS col0 FROM tab1 AS cor0
----
4896
5015
6188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
59
68
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - + col1 col1 FROM tab1 AS cor0
----
-425
-4277
-714

query I rowsort
SELECT + 77 * + col0 + + col2 + + - col1 AS col2 FROM tab0 AS cor0
----
1121
6688
7567

onlyif mysql # aggregate syntax: 
query II rowsort label-3894
SELECT SUM( ALL - + col0 ), 68 AS col1 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
NULL
68

skipif mysql # not compatible
query II rowsort label-3894
SELECT SUM ( ALL - + col0 ), 68 AS col1 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
NULL
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 * + col2 * + - ( + + col0 ) col0 FROM tab2 AS cor0
----
-163840
-326250
-48668

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND - col2 / - col2 * + ( + col2 )
----

query I rowsort
SELECT - ( - col0 ) + 16 FROM tab2
----
62
80
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3898
SELECT DISTINCT - col1 / ( CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3898
SELECT DISTINCT - col1 / ( CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3899
SELECT ALL - col0 DIV - - col1 AS col2 FROM tab0
----
-4
-97
0

skipif mysql # not compatible
query I rowsort label-3899
SELECT ALL - col0 / - - col1 AS col2 FROM tab0
----
-4
-97
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + col0 - 58 + + + 3 col2 FROM tab2
----
-31
-32
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-3901
SELECT DISTINCT - MIN( ALL col1 ) AS col1 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-3901
SELECT DISTINCT - MIN ( ALL col1 ) AS col1 FROM tab2
----
-51

query I rowsort
SELECT 61 * - col1 AS col2 FROM tab1
----
-2867
-305
-854

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3903
SELECT ALL - CAST( 27 AS SIGNED ) FROM tab1 AS cor0
----
-27
-27
-27

skipif mysql # not compatible
query I rowsort label-3903
SELECT ALL - CAST ( 27 AS INTEGER ) FROM tab1 AS cor0
----
-27
-27
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-3904
SELECT DISTINCT - + ( - COUNT( * ) ) + - + COUNT( * ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3904
SELECT DISTINCT - + ( - COUNT ( * ) ) + - + COUNT ( * ) FROM tab2 AS cor0
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 * - 96 NOT BETWEEN - 54 AND ( NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3906
SELECT - + 2 * - COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
18

skipif mysql # not compatible
query I rowsort label-3906
SELECT - + 2 * - COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 88 + + - col1 col1 FROM tab2 AS cor0
----
11
21
37

query I rowsort
SELECT ALL + col0 * + + 85 AS col1 FROM tab0 AS cor0
----
1275
7395
8245

query I rowsort
SELECT ALL + 93 FROM tab1 WHERE - 51 IS NOT NULL
----
93
93
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3910
SELECT 94 * - - COUNT( * ) AS col0 FROM tab0
----
282

skipif mysql # not compatible
query I rowsort label-3910
SELECT 94 * - - COUNT ( * ) AS col0 FROM tab0
----
282

query II rowsort
SELECT ALL + col0 AS col0, col0 AS col1 FROM tab1
----
51
51
85
85
91
91

onlyif mysql # aggregate syntax: 
query II rowsort label-3912
SELECT - 87 AS col2, COUNT( + 74 ) AS col0 FROM tab2
----
-87
3

skipif mysql # not compatible
query II rowsort label-3912
SELECT - 87 AS col2, COUNT ( + 74 ) AS col0 FROM tab2
----
-87
3

query I rowsort
SELECT DISTINCT ( 70 ) AS col2 FROM tab2
----
70

query II rowsort
SELECT - col1, 16 AS col0 FROM tab1
----
-14
16
-47
16
-5
16

onlyif mysql # aggregate syntax: 
query I rowsort label-3915
SELECT ( + - COUNT( DISTINCT + - 88 ) ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3915
SELECT ( + - COUNT ( DISTINCT + - 88 ) ) FROM tab0 AS cor0
----
-1

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 91 / + + ( + - col2 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 col0, - 48 * 63 FROM tab1 cor0
----
51
-3024
85
-3024
91
-3024

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3918
SELECT DISTINCT + col1 * - - CAST( - + 88 AS SIGNED ) + + col1 AS col2 FROM tab0 AS cor0
----
-1827
-7047
-87

skipif mysql # not compatible
query I rowsort label-3918
SELECT DISTINCT + col1 * - - CAST ( - + 88 AS INTEGER ) + + col1 AS col2 FROM tab0 AS cor0
----
-1827
-7047
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-3919
SELECT DISTINCT - MAX( + col1 ) AS col2 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-3919
SELECT DISTINCT - MAX ( + col1 ) AS col2 FROM tab1
----
-47

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( col0 + + col0, + col2 + col1 + + + col1 * + 8, + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3921
SELECT DISTINCT + 48 * - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE NOT + col1 * + 19 * - 87 > NULL
----

skipif mysql # not compatible
query I rowsort label-3921
SELECT DISTINCT + 48 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE NOT + col1 * + 19 * - 87 > NULL
----

query I rowsort
SELECT - + col1 * - col2 * + - col2 AS col1 FROM tab1 AS cor0
----
-129024
-17405
-217328

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( col2 * + + col2 * - col1 * - col2 + - col0 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + col2 AND + + ( - 69 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 96 col1 FROM tab0 AS cor0
----
96
96
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3926
SELECT - 60 * ( - - COUNT( ALL col1 ) ) FROM tab2 cor0
----
-180

skipif mysql # not compatible
query I rowsort label-3926
SELECT - 60 * ( - - COUNT ( ALL col1 ) ) FROM tab2 cor0
----
-180

query I rowsort
SELECT 10 * - - ( - - col2 ) * col2 * + col0 AS col2 FROM tab2
----
1024000
243340
2523000

onlyif mysql # DIV for integer division: 
query I rowsort label-3928
SELECT col1 DIV + ( - 8 ) FROM tab1
----
-1
-5
0

skipif mysql # not compatible
query I rowsort label-3928
SELECT col1 / + ( - 8 ) FROM tab1
----
-1
-5
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3929
SELECT - COUNT( ALL + - col2 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-3929
SELECT - COUNT ( ALL + - col2 ) FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3930
SELECT DISTINCT MAX( + + 20 ) AS col2 FROM tab1
----
20

skipif mysql # not compatible
query I rowsort label-3930
SELECT DISTINCT MAX ( + + 20 ) AS col2 FROM tab1
----
20

onlyif mysql # DIV for integer division: 
query I rowsort label-3931
SELECT col0 DIV ( + + col1 ) AS col0 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3931
SELECT col0 / ( + + col1 ) AS col0 FROM tab2
----
0
0
1

query I rowsort
SELECT ALL + col0 + + 79 AS col2 FROM tab1 cor0
----
130
164
170

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col2 AND - - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3934
SELECT ALL + col1 + + CAST( + col0 AS SIGNED ) + + - col0 + + 21 + + col0 FROM tab1 AS cor0
----
111
159
86

skipif mysql # not compatible
query I rowsort label-3934
SELECT ALL + col1 + + CAST ( + col0 AS INTEGER ) + + - col0 + + 21 + + col0 FROM tab1 AS cor0
----
111
159
86

query I rowsort
SELECT DISTINCT + - col1 + col2 + - 4 * + col0 FROM tab2 cor0
----
-212
-293
-309

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 NOT BETWEEN - ( ( - col2 ) ) AND NULL
----
97
1
99

query I rowsort
SELECT DISTINCT col2 - + 63 FROM tab2 AS cor0
----
-23
-40
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-3938
SELECT ALL 63 AS col0, MAX( ALL - col1 ) FROM tab1 AS cor0
----
63
-5

skipif mysql # not compatible
query II rowsort label-3938
SELECT ALL 63 AS col0, MAX ( ALL - col1 ) FROM tab1 AS cor0
----
63
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3939
SELECT + - MAX( col2 ) * - - MIN( + + col1 ) + + AVG ( ALL - col1 ) AS col0 FROM tab2 WHERE col2 * + - 88 + CAST( NULL AS SIGNED ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3939
SELECT + - MAX ( col2 ) * - - MIN ( + + col1 ) + + AVG ( ALL - col1 ) AS col0 FROM tab2 WHERE col2 * + - 88 + CAST ( NULL AS INTEGER ) IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3940
SELECT DISTINCT CAST( - - 69 AS SIGNED ) col1 FROM tab0
----
69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3940
SELECT DISTINCT CAST ( - - 69 AS INTEGER ) col1 FROM tab0
----
69

query I rowsort
SELECT 35 * - - col1 FROM tab2
----
1785
2345
2695

query I rowsort
SELECT ALL + col1 * 63 AS col2 FROM tab1
----
2961
315
882

query I rowsort
SELECT + 57 - + - 48 FROM tab0 AS cor0
----
105
105
105

query I rowsort
SELECT ALL + - 92 * + col0 FROM tab0 AS cor0
----
-1380
-8004
-8924

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 - 32 + + col1 col2 FROM tab2 AS cor0
----
102
122
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3946
SELECT + COUNT( * ) + + 11 AS col1 FROM tab1 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-3946
SELECT + COUNT ( * ) + + 11 AS col1 FROM tab1 AS cor0
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3947
SELECT DISTINCT - COUNT( * ) DIV MAX( ALL + 38 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3947
SELECT DISTINCT - COUNT ( * ) / MAX ( ALL + 38 ) FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-3948
SELECT - + col2 DIV + col1, col0 FROM tab1 cor0
----
-1
91
-11
85
-6
51

skipif mysql # not compatible
query II rowsort label-3948
SELECT - + col2 / + col1, col0 FROM tab1 cor0
----
-1
91
-11
85
-6
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3949
SELECT ALL COUNT( ALL + col0 ) col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3949
SELECT ALL COUNT ( ALL + col0 ) col2 FROM tab1 AS cor0
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 + - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col0 FROM tab2 AS cor0 WHERE - col0 IS NOT NULL
----
46
64
75

query I rowsort
SELECT col0 * + 98 FROM tab2
----
4508
6272
7350

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + ( - col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 80 / col0 = ( NULL )
----

query I rowsort
SELECT - + 71 AS col0 FROM tab0 AS cor0
----
-71
-71
-71

query I rowsort
SELECT - 42 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-42
-42
-42

query I rowsort
SELECT + + 92 * - + col0 AS col0 FROM tab0 AS cor0
----
-1380
-8004
-8924

onlyif mysql # DIV for integer division: 
query I rowsort label-3958
SELECT DISTINCT - - col1 DIV - ( + 23 ) + - - col0 AS col2 FROM tab2 AS cor0
----
44
61
73

skipif mysql # not compatible
query I rowsort label-3958
SELECT DISTINCT - - col1 / - ( + 23 ) + - - col0 AS col2 FROM tab2 AS cor0
----
44
61
73

query IIIIII rowsort
SELECT ALL * FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 ) WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3960
SELECT - 46 * + + MAX( - - col2 ) AS col0 FROM tab1
----
-4416

skipif mysql # not compatible
query I rowsort label-3960
SELECT - 46 * + + MAX ( - - col2 ) AS col0 FROM tab1
----
-4416

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3961
SELECT + CAST( NULL AS SIGNED ) * COUNT( * ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3961
SELECT + CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col1 FROM tab1
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col2 = + col1
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col1 * - col0 NOT BETWEEN 41 AND ( NULL )
----

query II rowsort
SELECT col0 AS col2, 25 + col1 - + 74 FROM tab1 AS cor0
----
51
-35
85
-44
91
-2

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - ( 66 ) AND + + 82
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 = + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ( + ( 82 ) ) AS col1 FROM tab2 AS cor0
----
82
82
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3968
SELECT + 21 * 95 * + 56 - 81 + + + col1 - + 37 * - - col2 - + col2 + + col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) <= ( - + CAST( 94 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-3968
SELECT + 21 * 95 * + 56 - 81 + + + col1 - + 37 * - - col2 - + col2 + + col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) <= ( - + CAST ( 94 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3969
SELECT - 66 + MAX( DISTINCT - 44 ) + + 29 AS col0 FROM tab2 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-3969
SELECT - 66 + MAX ( DISTINCT - 44 ) + + 29 AS col0 FROM tab2 AS cor0
----
-81

query I rowsort
SELECT ALL + + col1 + + + col1 AS col0 FROM tab1 AS cor0
----
10
28
94

query I rowsort
SELECT ALL 41 + 52 + + col1 AS col1 FROM tab1 AS cor0
----
107
140
98

query I rowsort
SELECT ALL + + col1 * + - 78 AS col1 FROM tab0 AS cor0 WHERE ( NULL IS NULL )
----
-1638
-6318
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-3973
SELECT DISTINCT + - SUM( DISTINCT + col2 ) + 59 AS col1 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-3973
SELECT DISTINCT + - SUM ( DISTINCT + col2 ) + 59 AS col1 FROM tab0 AS cor0
----
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + 44 - + + col0 col2 FROM tab1
----
-36
0
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3975
SELECT DISTINCT ( + + CAST( - 86 AS SIGNED ) ) AS col0 FROM tab1
----
-86

skipif mysql # not compatible
query I rowsort label-3975
SELECT DISTINCT ( + + CAST ( - 86 AS INTEGER ) ) AS col0 FROM tab1
----
-86

onlyif mysql # aggregate syntax: 
query II rowsort label-3976
SELECT DISTINCT MIN( ALL - 32 ) AS col0, + 81 AS col1 FROM tab2
----
-32
81

skipif mysql # not compatible
query II rowsort label-3976
SELECT DISTINCT MIN ( ALL - 32 ) AS col0, + 81 AS col1 FROM tab2
----
-32
81

onlyif mysql # DIV for integer division: 
query II rowsort label-3977
SELECT col1 DIV + + col0, - ( col0 ) AS col0 FROM tab2
----
0
-75
1
-46
1
-64

skipif mysql # not compatible
query II rowsort label-3977
SELECT col1 / + + col0, - ( col0 ) AS col0 FROM tab2
----
0
-75
1
-46
1
-64

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - + col0 BETWEEN - - 15 AND + - 88
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE - col0 / + 38 >= NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col1 NOT BETWEEN - ( - col0 ) + + col0 AND + + 39
----

query I rowsort
SELECT DISTINCT - col1 + + 60 * col0 * + col0 FROM tab0
----
13419
454119
564539

query I rowsort
SELECT ALL - + col0 - col0 - + col1 AS col1 FROM tab0 AS cor0
----
-111
-195
-195

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 30 + + - 69 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + - 9 FROM ( tab2 cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to caf28657beb43049740febe1fa9ded5a

query I rowsort
SELECT 97 + - col2 + - - col0 FROM tab0
----
174
65
95

onlyif mysql # DIV for integer division: 
query II rowsort label-3986
SELECT - col2 DIV - 52 + - col2 AS col1, col2 FROM tab2
----
-23
23
-40
40
-57
58

skipif mysql # not compatible
query II rowsort label-3986
SELECT - col2 / - 52 + - col2 AS col1, col2 FROM tab2
----
-23
23
-40
40
-57
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 66 * - - ( + 61 ) * + + col2 col2 FROM tab2
----
161040
233508
92598

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3988
SELECT ALL + 58 * CAST( - COUNT( * ) AS SIGNED ) * + - COUNT( * ) FROM tab1 AS cor0
----
522

skipif mysql # not compatible
query I rowsort label-3988
SELECT ALL + 58 * CAST ( - COUNT ( * ) AS INTEGER ) * + - COUNT ( * ) FROM tab1 AS cor0
----
522

query II rowsort
SELECT DISTINCT + col1 AS col1, + ( 42 ) + 55 + - 99 AS col0 FROM tab0 AS cor0
----
1
-2
21
-2
81
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-3990
SELECT + 37 DIV 69 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3990
SELECT + 37 / 69 AS col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3991
SELECT DISTINCT + col2 / + CAST( NULL AS SIGNED ) * CAST( col1 AS DECIMAL ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3991
SELECT DISTINCT + col2 / + CAST ( NULL AS INTEGER ) * CAST ( col1 AS REAL ) FROM tab0 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3992
SELECT DISTINCT - MIN( ALL + col1 ) AS col1 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-3992
SELECT DISTINCT - MIN ( ALL + col1 ) AS col1 FROM tab2 AS cor0
----
-51

query III rowsort
SELECT * FROM tab1 WHERE NOT - - col1 < 35
----
91
47
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3994
SELECT - - MIN( + + col2 ) FROM tab0 WHERE NOT NULL >= col2 + - ( - 37 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3994
SELECT - - MIN ( + + col2 ) FROM tab0 WHERE NOT NULL >= col2 + - ( - 37 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3995
SELECT ALL col2 DIV 71 * + 43 AS col2 FROM tab1
----
0
0
43

skipif mysql # not compatible
query I rowsort label-3995
SELECT ALL col2 / 71 * + 43 AS col2 FROM tab1
----
0
0
43

query I rowsort
SELECT 42 * - col1 * + 77 AS col2 FROM tab0
----
-261954
-3234
-67914

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3997
SELECT * FROM tab0 WHERE NOT NULL <> - + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-3997
SELECT * FROM tab0 WHERE NOT NULL <> - + CAST ( NULL AS REAL )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col0 * ( col1 ) * + col2 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL > + 52
----

query I rowsort
SELECT col2 + ( - col1 ) AS col0 FROM tab0
----
-11
-34
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 10 AS col2, + 29 col2 FROM tab2
----
10
29
10
29
10
29

query I rowsort
SELECT ALL 77 + + 68 FROM tab1
----
145
145
145

query I rowsort
SELECT DISTINCT + 94 + 26 + 20 * - col1 AS col2 FROM tab2 AS cor0
----
-1220
-1420
-900

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4004
SELECT ALL - 45 + - CAST( + col2 AS SIGNED ) FROM tab0 AS cor0
----
-144
-55
-92

skipif mysql # not compatible
query I rowsort label-4004
SELECT ALL - 45 + - CAST ( + col2 AS INTEGER ) FROM tab0 AS cor0
----
-144
-55
-92

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4005
SELECT col0 AS col2, CAST( col1 AS SIGNED ), - + col1 AS col2 FROM tab0 cor0
----
9 values hashing to a0362250d6de1a287d4ffc0df8aa6723

skipif mysql # not compatible
query III rowsort label-4005
SELECT col0 AS col2, CAST ( col1 AS INTEGER ), - + col1 AS col2 FROM tab0 cor0
----
9 values hashing to a0362250d6de1a287d4ffc0df8aa6723

onlyif mysql # aggregate syntax: 
query I rowsort label-4006
SELECT DISTINCT + COUNT( * ) + + + COUNT( * ) FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-4006
SELECT DISTINCT + COUNT ( * ) + + + COUNT ( * ) FROM tab2 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4007
SELECT ALL - MIN( 61 ) * - + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4007
SELECT ALL - MIN ( 61 ) * - + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT - - col2 + + 46 * col1 - - - col2 FROM tab2 AS cor0
----
2346
3082
3542

query I rowsort
SELECT ALL - 86 + + - ( + 10 ) FROM tab1 AS cor0
----
-96
-96
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 33 col2 FROM tab1 AS cor0
----
33
33
33

query I rowsort
SELECT DISTINCT - - col1 * + 47 AS col1 FROM tab1 cor0 WHERE 20 IS NOT NULL
----
2209
235
658

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 19 col1 FROM tab2 AS cor0
----
-19
-19
-19

query I rowsort
SELECT ALL + col0 + col2 + - + col1 FROM tab1 AS cor0
----
112
133
139

query I rowsort
SELECT + 11 AS col1 FROM tab1 cor0
----
11
11
11

query I rowsort
SELECT 92 + - + col0 + + col0 FROM tab0
----
92
92
92

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4016
SELECT DISTINCT CAST( NULL AS DECIMAL ) AS col2, col0 * - col0 * - col2 AS col2, + - col0 FROM tab1
----
9 values hashing to 2e82fb3e671fb52799e8230b636edcf9

skipif mysql # not compatible
query III rowsort label-4016
SELECT DISTINCT CAST ( NULL AS REAL ) AS col2, col0 * - col0 * - col2 AS col2, + - col0 FROM tab1
----
9 values hashing to 2e82fb3e671fb52799e8230b636edcf9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4017
SELECT DISTINCT * FROM tab1 WHERE CAST( - col1 AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4017
SELECT DISTINCT * FROM tab1 WHERE CAST ( - col1 AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 29 FROM tab1 cor0 WHERE - col0 IS NULL
----

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 50 IS NOT NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

query I rowsort
SELECT + 1 * + col1 AS col2 FROM tab0 AS cor0
----
1
21
81

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 <> 89
----

query I rowsort
SELECT DISTINCT col1 * 8 * - col0 FROM tab0 AS cor0
----
-14616
-776
-9720

onlyif mysql # aggregate syntax: 
query I rowsort label-4024
SELECT ALL + - COUNT( ALL - 8 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4024
SELECT ALL + - COUNT ( ALL - 8 ) FROM tab0 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-4025
SELECT + 16 DIV col2 * + col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4025
SELECT + 16 / col2 * + col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT col1 * - - ( + + col0 ) FROM tab0
----
1215
1827
97

query II rowsort
SELECT DISTINCT ( 63 ) * col1, - col0 * + col2 AS col0 FROM tab1
----
2961
-6188
315
-5015
882
-4896

query I rowsort
SELECT ALL 69 * - col2 AS col2 FROM tab1
----
-4071
-4692
-6624

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4029
SELECT col2 / - CAST( NULL AS DECIMAL ) + + col0 / col0 + - col1 + col2 + col1 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-4029
SELECT col2 / - CAST ( NULL AS REAL ) + + col0 / col0 + - col1 + col2 + col1 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT + - col0, col1 + col1 AS col1 FROM tab2 AS cor0
----
-46
102
-64
154
-75
134

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col1 * col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4032
SELECT DISTINCT MAX( - - 64 ) FROM tab0
----
64

skipif mysql # not compatible
query I rowsort label-4032
SELECT DISTINCT MAX ( - - 64 ) FROM tab0
----
64

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( + 66 IS NULL )
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

query I rowsort
SELECT - 50 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c7432a968c8352c12996dfa54dd4b9e8

onlyif mysql # aggregate syntax: 
query I rowsort label-4035
SELECT ( COUNT( * ) ) AS col1 FROM tab2, tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-4035
SELECT ( COUNT ( * ) ) AS col1 FROM tab2, tab2 AS cor0
----
9

query I rowsort
SELECT DISTINCT + 14 + - + 97 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-4037
SELECT col0 DIV - col2 + + - col2 FROM tab1 AS cor0
----
-60
-69
-96

skipif mysql # not compatible
query I rowsort label-4037
SELECT col0 / - col2 + + - col2 FROM tab1 AS cor0
----
-60
-69
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-4038
SELECT DISTINCT + ( - + col1 ) DIV 49 + + ( + col1 ) + + col1 * + col2 AS col2 FROM tab1 AS cor0
----
1358
300
3243

skipif mysql # not compatible
query I rowsort label-4038
SELECT DISTINCT + ( - + col1 ) / 49 + + ( + col1 ) + + col1 * + col2 AS col2 FROM tab1 AS cor0
----
1358
300
3243

onlyif mysql # aggregate syntax: 
query I rowsort label-4039
SELECT ALL + - COUNT( * ) + COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4039
SELECT ALL + - COUNT ( * ) + COUNT ( * ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL + ( - 91 ) FROM tab2 AS cor0
----
-91
-91
-91

query I rowsort
SELECT DISTINCT 6 * - 29 + + col1 - 10 + - col2 * col2 AS col1 FROM tab1 AS cor0
----
-3660
-4761
-9386

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 * col1 * + col0 * - 85 >= NULL
----

query I rowsort
SELECT - col0 + - col2 * - col2 AS col2 FROM tab0 AS cor0
----
13
2194
9704

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4044
SELECT ALL CAST( NULL AS SIGNED ) - - COUNT( * ) + COUNT( * ) col1 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4044
SELECT ALL CAST ( NULL AS INTEGER ) - - COUNT ( * ) + COUNT ( * ) col1 FROM tab0
----
NULL

query I rowsort
SELECT ( + - col0 ) AS col1 FROM tab0 WHERE - + col0 IS NOT NULL
----
-15
-87
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-4046
SELECT DISTINCT - 66 - 51 DIV + + col0 FROM tab2
----
-66
-67

skipif mysql # not compatible
query I rowsort label-4046
SELECT DISTINCT - 66 - 51 / + + col0 FROM tab2
----
-66
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4047
SELECT - CAST( - + col2 AS SIGNED ) * + - 43 AS col0 FROM tab0
----
-2021
-4257
-430

skipif mysql # not compatible
query I rowsort label-4047
SELECT - CAST ( - + col2 AS INTEGER ) * + - 43 AS col0 FROM tab0
----
-2021
-4257
-430

onlyif mysql # DIV for integer division: 
query I rowsort label-4048
SELECT 10 DIV col2 * 58 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4048
SELECT 10 / col2 * 58 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT + 43 * 78 + - col2 AS col0 FROM tab2 AS cor0
----
3296
3314
3331

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4050
SELECT ALL - - col1 + + - 33 + - col1 * - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4050
SELECT ALL - - col1 + + - 33 + - col1 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4051
SELECT DISTINCT + - col2 + + ( CAST( NULL AS SIGNED ) ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4051
SELECT DISTINCT + - col2 + + ( CAST ( NULL AS INTEGER ) ) FROM tab1 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4052
SELECT - ( - COUNT( * ) ) + + COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
18

skipif mysql # not compatible
query I rowsort label-4052
SELECT - ( - COUNT ( * ) ) + + COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
18

query I rowsort
SELECT DISTINCT + col1 * + col1 FROM tab1 WHERE + + col2 + - ( col2 ) + + 8 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + 67 + + col1 IS NOT NULL
----

query I rowsort
SELECT ALL - 49 - - 9 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to f02f17e9bc17e514af018c6f245ed7a9

onlyif mysql # aggregate syntax: 
query I rowsort label-4056
SELECT + - MAX( - col2 ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-4056
SELECT + - MAX ( - col2 ) FROM tab0 AS cor0
----
10

query II rowsort
SELECT ALL + + col1 AS col2, - 66 FROM tab2 AS cor0
----
51
-66
67
-66
77
-66

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4058
SELECT ALL - 96 AS col1, CAST( - ( - col0 ) AS SIGNED ) + - 56 AS col0 FROM tab1 AS cor0
----
-96
-5
-96
29
-96
35

skipif mysql # not compatible
query II rowsort label-4058
SELECT ALL - 96 AS col1, CAST ( - ( - col0 ) AS INTEGER ) + - 56 AS col0 FROM tab1 AS cor0
----
-96
-5
-96
29
-96
35

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4059
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4059
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 13 FROM tab2 WHERE NOT col0 IS NOT NULL
----

query II rowsort
SELECT col0 * col1 * - - col1, col0 FROM tab1
----
201019
91
2125
85
9996
51

query II rowsort
SELECT DISTINCT col0 * + col1, ( + col0 ) FROM tab2
----
2346
46
4928
64
5025
75

query I rowsort
SELECT 11 * - 76 AS col1 FROM tab1
----
-836
-836
-836

onlyif mysql # aggregate syntax: 
query I rowsort label-4064
SELECT + MAX( ALL - + col1 ) FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-4064
SELECT + MAX ( ALL - + col1 ) FROM tab1
----
-5

query I rowsort
SELECT - col0 AS col1 FROM tab1 cor0 WHERE NOT - 38 < - - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4066
SELECT DISTINCT - 30 + + CAST( NULL AS SIGNED ) + 85 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4066
SELECT DISTINCT - 30 + + CAST ( NULL AS INTEGER ) + 85 AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4067
SELECT - col2 + + - col1 + + CAST( NULL AS SIGNED ) / - ( col1 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4067
SELECT - col2 + + - col1 + + CAST ( NULL AS INTEGER ) / - ( col1 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4068
SELECT COUNT( * ) + SUM( - col1 ) col0, + MAX( + + col2 ) FROM tab0
----
-100
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4068
SELECT COUNT ( * ) + SUM ( - col1 ) col0, + MAX ( + + col2 ) FROM tab0
----
-100
99

query I rowsort
SELECT 70 * + col0 AS col1 FROM tab1
----
3570
5950
6370

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4070
SELECT * FROM tab1 AS cor0 WHERE + CAST( NULL AS SIGNED ) + - - ( + col0 ) = - col1 * - col0 / - - 71 * + col0 + + - 27 + + col0
----

skipif mysql # not compatible
query III rowsort label-4070
SELECT * FROM tab1 AS cor0 WHERE + CAST ( NULL AS INTEGER ) + - - ( + col0 ) = - col1 * - col0 / - - 71 * + col0 + + - 27 + + col0
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL = 4
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL > - col0 / + - col2
----

query II rowsort
SELECT - col1 AS col2, col1 FROM tab1 AS cor0
----
-14
14
-47
47
-5
5

query I rowsort
SELECT DISTINCT ( 44 ) + + + 71 + - col0 * - col1 AS col1 FROM tab1 AS cor0
----
4392
540
829

onlyif mysql # aggregate syntax: 
query I rowsort label-4075
SELECT + - 17 - - - COUNT( * ) col2 FROM tab2 cor0
----
-20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4075
SELECT + - 17 - - - COUNT ( * ) col2 FROM tab2 cor0
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4076
SELECT - col2 - ( - 15 ) / - ( - + 40 ) * - 80 + - col1 + col2 - - + CAST( NULL AS SIGNED ) AS col1, - ( + + col2 ) * - 86 - - 99 + - + col1 + - + col2 AS col0 FROM tab1 AS cor0
----
NULL
5109
NULL
5832
NULL
8245

skipif mysql # not compatible
query II rowsort label-4076
SELECT - col2 - ( - 15 ) / - ( - + 40 ) * - 80 + - col1 + col2 - - + CAST ( NULL AS INTEGER ) AS col1, - ( + + col2 ) * - 86 - - 99 + - + col1 + - + col2 AS col0 FROM tab1 AS cor0
----
NULL
5109
NULL
5832
NULL
8245

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4077
SELECT ( - + ( + MAX( ALL + - col1 ) ) ) - + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4077
SELECT ( - + ( + MAX ( ALL + - col1 ) ) ) - + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + col0 FROM tab1 AS cor0 WHERE NOT col0 <= 55
----
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4079
SELECT DISTINCT + + COUNT( * ) AS col0 FROM tab2 WHERE + - col0 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-4079
SELECT DISTINCT + + COUNT ( * ) AS col0 FROM tab2 WHERE + - col0 > NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4080
SELECT - 65 + + 5, + COUNT( * ) col0 FROM tab0
----
-60
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4080
SELECT - 65 + + 5, + COUNT ( * ) col0 FROM tab0
----
-60
3

query I rowsort
SELECT ALL - 0 - + 55 AS col0 FROM tab1
----
-55
-55
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-4082
SELECT ALL 84 - - - SUM( col0 ) FROM tab0
----
-115

skipif mysql # not compatible
query I rowsort label-4082
SELECT ALL 84 - - - SUM ( col0 ) FROM tab0
----
-115

onlyif mysql # aggregate syntax: 
query I rowsort label-4083
SELECT DISTINCT ( + MAX( 27 ) ) FROM tab2
----
27

skipif mysql # not compatible
query I rowsort label-4083
SELECT DISTINCT ( + MAX ( 27 ) ) FROM tab2
----
27

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 9 NOT IN ( - - col2, col0, - col2, 99 * col1 / col0 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4085
SELECT - 12 * - - 91 AS col2, + COUNT( * ) FROM tab2 AS cor0
----
-1092
3

skipif mysql # not compatible
query II rowsort label-4085
SELECT - 12 * - - 91 AS col2, + COUNT ( * ) FROM tab2 AS cor0
----
-1092
3

onlyif mysql # aggregate syntax: 
query II rowsort label-4086
SELECT DISTINCT - 51 AS col1, - COUNT( * ) * ( ( + 94 ) ) * - - MIN( - 81 ) AS col0 FROM tab2 AS cor0
----
-51
22842

skipif mysql # not compatible
query II rowsort label-4086
SELECT DISTINCT - 51 AS col1, - COUNT ( * ) * ( ( + 94 ) ) * - - MIN ( - 81 ) AS col0 FROM tab2 AS cor0
----
-51
22842

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4087
SELECT * FROM tab2 AS cor0 WHERE NOT + 66 <> CAST( + col0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4087
SELECT * FROM tab2 AS cor0 WHERE NOT + 66 <> CAST ( + col0 AS INTEGER )
----

query II rowsort
SELECT + 33, - col1 AS col1 FROM tab1 cor0
----
33
-14
33
-47
33
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4089
SELECT DISTINCT - 54 * + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-162

skipif mysql # not compatible
query I rowsort label-4089
SELECT DISTINCT - 54 * + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-162

onlyif mysql # aggregate syntax: 
query I rowsort label-4090
SELECT COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT + col0 * - - col0 * + + col2 NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-4090
SELECT COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT + col0 * - - col0 * + + col2 NOT BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT ALL + 72 * col2 * + col0 FROM tab1
----
352512
361080
445536

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4092
SELECT DISTINCT - col0 FROM tab1 WHERE - CAST( NULL AS SIGNED ) <> NULL
----

skipif mysql # not compatible
query I rowsort label-4092
SELECT DISTINCT - col0 FROM tab1 WHERE - CAST ( NULL AS INTEGER ) <> NULL
----

query I rowsort
SELECT ALL - col1 - + 59 + + col2 FROM tab1 WHERE + col1 * + 20 IS NULL
----

query II rowsort
SELECT - col1, + 79 + - col1 AS col2 FROM tab1
----
-14
65
-47
32
-5
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4095
SELECT + ( + SUM( + - col1 ) ) FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-4095
SELECT + ( + SUM ( + - col1 ) ) FROM tab0
----
-103

onlyif mysql # aggregate syntax: 
query II rowsort label-4096
SELECT DISTINCT + SUM( ALL + 31 ) AS col2, + 55 AS col0 FROM tab0 WHERE NULL IS NULL
----
93
55

skipif mysql # not compatible
query II rowsort label-4096
SELECT DISTINCT + SUM ( ALL + 31 ) AS col2, + 55 AS col0 FROM tab0 WHERE NULL IS NULL
----
93
55

onlyif mysql # aggregate syntax: 
query I rowsort label-4097
SELECT DISTINCT - - COUNT( * ) AS col1 FROM tab1 WHERE col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4097
SELECT DISTINCT - - COUNT ( * ) AS col1 FROM tab1 WHERE col0 IS NULL
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-4098
SELECT ( + col0 ) AS col2, - col2 * + - col0 DIV + col0 FROM tab1
----
51
96
85
59
91
68

skipif mysql # not compatible
query II rowsort label-4098
SELECT ( + col0 ) AS col2, - col2 * + - col0 / + col0 FROM tab1
----
51
96
85
59
91
68

onlyif mysql # aggregate syntax: 
query II rowsort label-4099
SELECT - + COUNT( * ), - 95 col2 FROM tab2 AS cor0
----
-3
-95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4099
SELECT - + COUNT ( * ), - 95 col2 FROM tab2 AS cor0
----
-3
-95

query II rowsort
SELECT col0 AS col2, + 21 AS col1 FROM tab1 AS cor0
----
51
21
85
21
91
21

query I rowsort
SELECT ALL - col1 + + 43 + - col2 AS col2 FROM tab1 AS cor0
----
-21
-67
-72

query I rowsort
SELECT 10 AS col1 FROM tab2 cor0
----
10
10
10

query I rowsort
SELECT DISTINCT col1 + - ( + col1 ) FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4104
SELECT - - COUNT( * ) + + COUNT( ALL - - col0 ) FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-4104
SELECT - - COUNT ( * ) + + COUNT ( ALL - - col0 ) FROM tab1 AS cor0
----
6

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NULL > col2
----

query I rowsort
SELECT + - col1 + + col2 + - + 94 * + 22 AS col0 FROM tab2 AS cor0
----
-2077
-2096
-2105

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - ( + + col1 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 - - col0 col2 FROM tab0 AS cor0
----
196
62
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4109
SELECT ALL - 40 + + MIN( ALL CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4109
SELECT ALL - 40 + + MIN ( ALL CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4110
SELECT - CAST( + 10 AS SIGNED ) FROM tab2
----
-10
-10
-10

skipif mysql # not compatible
query I rowsort label-4110
SELECT - CAST ( + 10 AS INTEGER ) FROM tab2
----
-10
-10
-10

query I rowsort
SELECT col2 AS col0 FROM tab0 WHERE + col0 <= NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4112
SELECT + COUNT( * ) * COUNT( * ) DIV + - COUNT( * ) - + + MAX( + col0 ) FROM tab0
----
-100

skipif mysql # not compatible
query I rowsort label-4112
SELECT + COUNT ( * ) * COUNT ( * ) / + - COUNT ( * ) - + + MAX ( + col0 ) FROM tab0
----
-100

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4113
SELECT ALL 34 DIV + + COUNT( * ) FROM tab2
----
11

skipif mysql # not compatible
query I rowsort label-4113
SELECT ALL 34 / + + COUNT ( * ) FROM tab2
----
11

query I rowsort
SELECT 94 * col0 AS col1 FROM tab2
----
4324
6016
7050

query II rowsort
SELECT - col0 - - col0 AS col0, + col1 AS col0 FROM tab1 WHERE NOT ( - col2 IS NOT NULL )
----

query I rowsort
SELECT ALL + col1 * col1 * col2 AS col2 FROM tab2 AS cor0
----
237160
260362
59823

query I rowsort
SELECT 49 * - col2 FROM tab1 AS cor0
----
-2891
-3332
-4704

query I rowsort
SELECT DISTINCT + - col2 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - col1 / + 14 AND 86
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 96 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4120
SELECT - 31 + COUNT( + col2 ) AS col1 FROM tab1 WHERE NOT NULL >= NULL
----
-31

skipif mysql # not compatible
query I rowsort label-4120
SELECT - 31 + COUNT ( + col2 ) AS col1 FROM tab1 WHERE NOT NULL >= NULL
----
-31

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 >= col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4122
SELECT ALL MAX( DISTINCT col2 ) AS col0 FROM tab1 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4122
SELECT ALL MAX ( DISTINCT col2 ) AS col0 FROM tab1 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4123
SELECT 40 * col0 - - CAST( NULL AS SIGNED ) * col2 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4123
SELECT 40 * col0 - - CAST ( NULL AS INTEGER ) * col2 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 16 * col2 FROM tab0 WHERE NOT col2 IS NULL
----
-1584
-160
-752

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) <> ( - 7 / - 33 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col2 NOT BETWEEN - 54 + - ( - col0 ) AND - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4127
SELECT ALL - MAX( col2 ) + + 61 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4127
SELECT ALL - MAX ( col2 ) + + 61 FROM tab2
----
3

query I rowsort
SELECT ALL - col0 + - 69 FROM tab0
----
-156
-166
-84

query I rowsort
SELECT + 70 FROM tab2 WHERE NULL IN ( + col0 )
----

query I rowsort
SELECT col2 + + 38 AS col0 FROM tab0
----
137
48
85

query I rowsort
SELECT ALL 28 * + col0 AS col2 FROM tab2
----
1288
1792
2100

query I rowsort
SELECT col0 AS col2 FROM tab1 WHERE NOT - 96 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4133
SELECT DISTINCT 18 + + MAX( DISTINCT col0 ) FROM tab1
----
109

skipif mysql # not compatible
query I rowsort label-4133
SELECT DISTINCT 18 + + MAX ( DISTINCT col0 ) FROM tab1
----
109

query I rowsort
SELECT + 8 + col2 FROM tab2
----
31
48
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4135
SELECT + COUNT( ALL 16 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4135
SELECT + COUNT ( ALL 16 ) FROM tab1
----
3

query I rowsort
SELECT DISTINCT - col0 * col1 FROM tab2 WHERE NOT NULL NOT IN ( + ( - col1 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4137
SELECT ALL + col0 * col2 FROM tab2 WHERE NOT CAST( - col1 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4137
SELECT ALL + col0 * col2 FROM tab2 WHERE NOT CAST ( - col1 AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col1 * 98 FROM tab1 WHERE NOT - col1 < + 35
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 < + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4140
SELECT DISTINCT - COUNT( ALL 42 ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-4140
SELECT DISTINCT - COUNT ( ALL 42 ) AS col1 FROM tab1
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col2 ) col1 FROM tab2
----
23
40
58

query I rowsort
SELECT ALL + ( + col0 ) AS col2 FROM tab1 WHERE NOT ( col1 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT 71 * 77 AS col2 FROM tab2
----
5467

query I rowsort
SELECT col1 + - 78 AS col1 FROM tab1
----
-31
-64
-73

query I rowsort
SELECT DISTINCT col0 + + 3 AS col0 FROM tab2
----
49
67
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4146
SELECT DISTINCT + 28 + ( COUNT( * ) ) * SUM( - 39 DIV col0 ) FROM tab0 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-4146
SELECT DISTINCT + 28 + ( COUNT ( * ) ) * SUM ( - 39 / col0 ) FROM tab0 AS cor0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4147
SELECT ( - COUNT( * ) ) + - SUM( + col0 ) * 12 AS col1 FROM tab1 AS cor0
----
-2727

skipif mysql # not compatible
query I rowsort label-4147
SELECT ( - COUNT ( * ) ) + - SUM ( + col0 ) * 12 AS col1 FROM tab1 AS cor0
----
-2727

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( + col1 * - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4149
SELECT ( col1 ) + - 27 DIV - 26 FROM tab2 AS cor0
----
52
68
78

skipif mysql # not compatible
query I rowsort label-4149
SELECT ( col1 ) + - 27 / - 26 FROM tab2 AS cor0
----
52
68
78

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 20 NOT IN ( + ( - 39 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 35 - + 53 AS col2 FROM tab1 cor0 CROSS JOIN tab2
----
-18

query I rowsort
SELECT + col0 AS col0 FROM tab0 WHERE NULL > ( 62 )
----

query I rowsort
SELECT DISTINCT col2 + + 1 * + 2 AS col2 FROM tab2
----
25
42
60

query I rowsort
SELECT ALL - col1 + col2 AS col2 FROM tab1 AS cor0 WHERE col1 / 76 IS NOT NULL
----
21
54
82

query I rowsort
SELECT + AVG ( col1 ) FROM tab2 AS cor0 WHERE ( - 92 ) IN ( - ( 93 ) / 9 )
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 IN ( + 7 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4157
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col2 + + col1 * col0 IN ( - CAST( - col2 AS DECIMAL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4157
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col2 + + col1 * col0 IN ( - CAST ( - col2 AS REAL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col2 + ( - 42 + - 21 * + 87 ) FROM tab0 AS cor0
----
-1879
-1916
-1968

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 - - col0 col1 FROM tab2 AS cor0
----
128
150
92

onlyif mysql # aggregate syntax: 
query I rowsort label-4160
SELECT COUNT( col1 ) + - 22 FROM tab1 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-4160
SELECT COUNT ( col1 ) + - 22 FROM tab1 AS cor0
----
-19

query I rowsort
SELECT col0 * col2 + + col2 FROM tab1 AS cor0
----
4992
5074
6256

query I rowsort
SELECT col2 + + - col0 + - col2 FROM tab2
----
-46
-64
-75

query I rowsort
SELECT ALL + col0 * + col1 + col1 AS col2 FROM tab0 WHERE NULL < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4164
SELECT col0 + CAST( NULL AS SIGNED ) - col0 / + col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4164
SELECT col0 + CAST ( NULL AS INTEGER ) - col0 / + col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 - + + 64 - 21 AS col0 FROM tab0
----
-4
-64
-84

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col2 - + col2 * 71 <> 53
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col2 * + 44 FROM tab2
----
1012
1760
2552

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4168
SELECT DISTINCT * FROM tab2 WHERE col0 NOT IN ( - CAST( NULL AS SIGNED ) - - col1 )
----

skipif mysql # not compatible
query III rowsort label-4168
SELECT DISTINCT * FROM tab2 WHERE col0 NOT IN ( - CAST ( NULL AS INTEGER ) - - col1 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( 16 ) <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 97 IS NULL
----

query I rowsort
SELECT ALL + 22 * + - col0 FROM tab1
----
-1122
-1870
-2002

query I rowsort
SELECT - col2 FROM tab2 WHERE NOT ( + col1 ) < NULL
----

query I rowsort
SELECT ALL - 11 * + 63 AS col1 FROM tab2
----
-693
-693
-693

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN + col2 / 77 - 27 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4175
SELECT COUNT( * ) - + MAX( 51 + + col1 ) AS col2 FROM tab1 WHERE NOT NULL BETWEEN ( col1 - + col0 ) AND ( 88 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4175
SELECT COUNT ( * ) - + MAX ( 51 + + col1 ) AS col2 FROM tab1 WHERE NOT NULL BETWEEN ( col1 - + col0 ) AND ( 88 )
----
NULL

query I rowsort
SELECT col0 * + - 30 AS col2 FROM tab1
----
-1530
-2550
-2730

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4177
SELECT ALL + col0 / + CAST( + col1 AS SIGNED ) FROM tab2 WHERE NOT ( NULL ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-4177
SELECT ALL + col0 / + CAST ( + col1 AS INTEGER ) FROM tab2 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT col2 FROM tab2 WHERE NOT NULL IN ( - ( col2 ) + col2 * - 44 )
----

query I rowsort
SELECT + 31 * + ( + col1 * + col1 ) + col2 FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
6172
68547
834

onlyif mysql # aggregate syntax: 
query I rowsort label-4180
SELECT COUNT( * ) * COUNT( * ) * ( 99 ) AS col2 FROM tab1 AS cor0
----
891

skipif mysql # not compatible
query I rowsort label-4180
SELECT COUNT ( * ) * COUNT ( * ) * ( 99 ) AS col2 FROM tab1 AS cor0
----
891

onlyif mysql # aggregate syntax: 
query I rowsort label-4181
SELECT ALL - MAX( DISTINCT 97 ) FROM tab1 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-4181
SELECT ALL - MAX ( DISTINCT 97 ) FROM tab1 AS cor0
----
-97

query I rowsort
SELECT DISTINCT col2 * 86 FROM tab0 WHERE NULL IN ( - col1 + - col2 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + col0 ) = 9 + + 81
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + col0 ) BETWEEN ( NULL ) AND ( - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4185
SELECT - COUNT( 98 ) col1 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-4185
SELECT - COUNT ( 98 ) col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4186
SELECT ALL - COUNT( * ) * ( + COUNT( * ) ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-81

skipif mysql # not compatible
query I rowsort label-4186
SELECT ALL - COUNT ( * ) * ( + COUNT ( * ) ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4187
SELECT DISTINCT + COUNT( + - col2 ) DIV SUM( col1 ) * 27 col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4187
SELECT DISTINCT + COUNT ( + - col2 ) / SUM ( col1 ) * 27 col0 FROM tab1 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 13 BETWEEN - col1 AND col1 + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4189
SELECT DISTINCT - CAST( - + 2 AS SIGNED ) FROM tab2 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-4189
SELECT DISTINCT - CAST ( - + 2 AS INTEGER ) FROM tab2 AS cor0
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-4190
SELECT + + COUNT( * ), + 38 col0 FROM tab1 AS cor0
----
3
38

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4190
SELECT + + COUNT ( * ), + 38 col0 FROM tab1 AS cor0
----
3
38

onlyif mysql # aggregate syntax: 
query I rowsort label-4191
SELECT DISTINCT - - COUNT( ALL + col0 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4191
SELECT DISTINCT - - COUNT ( ALL + col0 ) FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4192
SELECT + - 79 DIV + - col2 - - 62 + col0 * col0 + - col1 * - CAST( 20 DIV + col2 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
2663
7288
8344

skipif mysql # not compatible
query I rowsort label-4192
SELECT + - 79 / + - col2 - - 62 + col0 * col0 + - col1 * - CAST ( 20 / + col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
2663
7288
8344

query I rowsort
SELECT DISTINCT 8 + - 77 * 8 + + 14 * + col0 AS col1 FROM tab2 AS cor0
----
288
36
442

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col2 NOT BETWEEN - ( col1 ) / - col0 AND col2
----

query I rowsort
SELECT ALL - col2 * - 98 FROM tab0 AS cor0
----
4606
9702
980

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 * col0 IN ( col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col0 + + col0 FROM tab2 WHERE + col2 + 39 * - ( + col1 * col1 ) = ( NULL )
----

query I rowsort
SELECT DISTINCT ( - - col2 ) * + + col2 FROM tab0
----
100
2209
9801

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) = ( col1 )
----

query I rowsort
SELECT ALL - col2 * + 65 * - - col1 + - col0 * - col0 FROM tab0
----
-247230
-6081
2974

query III rowsort
SELECT * FROM tab2 WHERE + + 50 * + col0 NOT IN ( col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4202
SELECT + MIN( DISTINCT + 69 ) AS col2 FROM tab0 WHERE NULL < + - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4202
SELECT + MIN ( DISTINCT + 69 ) AS col2 FROM tab0 WHERE NULL < + - col2
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE ( + - col0 ) NOT BETWEEN col2 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col1 + + ( + col2 ) AS col1 FROM tab1 WHERE ( NULL ) IS NULL
----
110
115
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4205
SELECT CAST( NULL AS SIGNED ) * + COUNT( - - col2 ) / + - 87 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4205
SELECT CAST ( NULL AS INTEGER ) * + COUNT ( - - col2 ) / + - 87 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4206
SELECT DISTINCT + ( - - COUNT( * ) ) DIV - 37 AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4206
SELECT DISTINCT + ( - - COUNT ( * ) ) / - 37 AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ( + ( col1 ) ) FROM tab0 AS cor0 WHERE ( - 20 ) IN ( + 59 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + col0 + + col2 col2 FROM tab1 AS cor0
----
4345
484
810

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4209
SELECT DISTINCT + col2 * - 0 + CAST( 60 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-4209
SELECT DISTINCT + col2 * - 0 + CAST ( 60 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
60

onlyif mysql # aggregate syntax: 
query II rowsort label-4210
SELECT DISTINCT + 55 + - COUNT( * ), + SUM( - 22 ) col2 FROM tab0 AS cor0
----
52
-66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4210
SELECT DISTINCT + 55 + - COUNT ( * ), + SUM ( - 22 ) col2 FROM tab0 AS cor0
----
52
-66

query I rowsort
SELECT 63 AS col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4212
SELECT ALL - CAST( - + ( + 20 ) AS SIGNED ) FROM tab2
----
20
20
20

skipif mysql # not compatible
query I rowsort label-4212
SELECT ALL - CAST ( - + ( + 20 ) AS INTEGER ) FROM tab2
----
20
20
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4213
SELECT DISTINCT - COUNT( * ) col2 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4213
SELECT DISTINCT - COUNT ( * ) col2 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4214
SELECT + CAST( 55 AS SIGNED ) + + ( 97 ) FROM tab2 AS cor0 WHERE 38 * - - col1 * - col1 * - col1 * - col0 IS NOT NULL
----
152
152
152

skipif mysql # not compatible
query I rowsort label-4214
SELECT + CAST ( 55 AS INTEGER ) + + ( 97 ) FROM tab2 AS cor0 WHERE 38 * - - col1 * - col1 * - col1 * - col0 IS NOT NULL
----
152
152
152

onlyif mysql # aggregate syntax: 
query I rowsort label-4215
SELECT + MIN( + - 85 ) + COUNT( * ) FROM tab0 AS cor0 WHERE 55 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4215
SELECT + MIN ( + - 85 ) + COUNT ( * ) FROM tab0 AS cor0 WHERE 55 IS NULL
----
NULL

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL - - ( col1 ) + + col2 AS col2 FROM tab1 AS cor0
----
110
115
64

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 83 - col2 + + col1 <> - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4219
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 * + CAST( NULL AS SIGNED ) + - 27 + - 11 BETWEEN NULL AND ( col0 * + ( + col0 ) - col0 )
----

skipif mysql # not compatible
query III rowsort label-4219
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 * + CAST ( NULL AS INTEGER ) + - 27 + - 11 BETWEEN NULL AND ( col0 * + ( + col0 ) - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4220
SELECT DISTINCT - CAST( - + 43 AS SIGNED ) FROM tab0 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-4220
SELECT DISTINCT - CAST ( - + 43 AS INTEGER ) FROM tab0 AS cor0
----
43

onlyif mysql # aggregate syntax: 
query II rowsort label-4221
SELECT COUNT( * ) AS col1, - 68 FROM tab1
----
3
-68

skipif mysql # not compatible
query II rowsort label-4221
SELECT COUNT ( * ) AS col1, - 68 FROM tab1
----
3
-68

query I rowsort
SELECT ALL 2 * col0 AS col0 FROM tab1
----
102
170
182

query II rowsort
SELECT ( + col2 ) AS col0, - col1 AS col2 FROM tab2
----
23
-51
40
-77
58
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-4224
SELECT MAX( + - col1 ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-4224
SELECT MAX ( + - col1 ) FROM tab0
----
-1

query II rowsort
SELECT - col1, + col0 AS col1 FROM tab2 WHERE NOT - col0 IS NOT NULL
----

query I rowsort
SELECT - col1 * col2 AS col0 FROM tab2 WHERE NOT + col0 * - 62 * + 8 * + + 1 + col2 * - col2 IS NULL
----
-1173
-3080
-3886

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4227
SELECT DISTINCT + SUM( ALL + + CAST( + - 83 AS SIGNED ) ) * - + 86 AS col0 FROM tab2
----
21414

skipif mysql # not compatible
query I rowsort label-4227
SELECT DISTINCT + SUM ( ALL + + CAST ( + - 83 AS INTEGER ) ) * - + 86 AS col0 FROM tab2
----
21414

query II rowsort
SELECT DISTINCT col2 AS col0, - col1 AS col2 FROM tab2
----
23
-51
40
-77
58
-67

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 * + col2 BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 * - - col0 IS NOT NULL
----

query I rowsort
SELECT ALL 75 * + 20 FROM tab2
----
1500
1500
1500

query I rowsort
SELECT DISTINCT + col1 - - + col2 FROM tab0 AS cor0 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4233
SELECT ALL - COUNT( * ) * 48 + + - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4233
SELECT ALL - COUNT ( * ) * 48 + + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4234
SELECT DISTINCT + 65 * - CAST( + MIN( ALL - 63 ) AS SIGNED ) * COUNT( * ) AS col0 FROM tab2
----
12285

skipif mysql # not compatible
query I rowsort label-4234
SELECT DISTINCT + 65 * - CAST ( + MIN ( ALL - 63 ) AS INTEGER ) * COUNT ( * ) AS col0 FROM tab2
----
12285

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 27 * + col1 col2 FROM tab1
----
1269
135
378

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 61 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4237
SELECT + CAST( - COUNT( * ) AS SIGNED ) AS col1, COUNT( * ) col0 FROM tab0
----
-3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4237
SELECT + CAST ( - COUNT ( * ) AS INTEGER ) AS col1, COUNT ( * ) col0 FROM tab0
----
-3
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4238
SELECT ALL - 66 / - 83 * + + MAX( ALL - - col2 ) FROM tab2 WHERE + - CAST( NULL AS SIGNED ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4238
SELECT ALL - 66 / - 83 * + + MAX ( ALL - - col2 ) FROM tab2 WHERE + - CAST ( NULL AS INTEGER ) IS NOT NULL
----
NULL

query I rowsort
SELECT ALL - + col0 + - + col1 * + col1 + col0 + - col1 + 23 + + col0 * - col1 * + col1 * + col1 FROM tab2 AS cor0
----
-22561758
-29224095
-6104575

query I rowsort
SELECT DISTINCT + 90 + - col1 FROM tab1 AS cor0
----
43
76
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4241
SELECT ALL - - MAX( + ( col1 ) ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-4241
SELECT ALL - - MAX ( + ( col1 ) ) FROM tab2 AS cor0
----
77

query I rowsort
SELECT ALL col0 + - 88 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-1
-73
9

query I rowsort
SELECT DISTINCT - col2 / - + ( - col2 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL > ( - col2 * - + col2 / ( col1 ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4244
SELECT ALL - SUM( ALL - col0 ) + - + COUNT( * ) - + COUNT( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
196

skipif mysql # not compatible
query I rowsort label-4244
SELECT ALL - SUM ( ALL - col0 ) + - + COUNT ( * ) - + COUNT ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
196

query II rowsort
SELECT col2 * + col2 AS col2, + 33 FROM tab0 AS cor0
----
100
33
2209
33
9801
33

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col1 BETWEEN ( 3 * col2 ) AND ( NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-4247
SELECT DISTINCT - + 86 + - 59 + + 12 DIV - - 81 AS col2 FROM tab2 AS cor0
----
-145

skipif mysql # not compatible
query I rowsort label-4247
SELECT DISTINCT - + 86 + - 59 + + 12 / - - 81 AS col2 FROM tab2 AS cor0
----
-145

onlyif mysql # DIV for integer division: 
query I rowsort label-4248
SELECT ALL ( - col0 ) DIV + ( + col2 ) col1 FROM tab0
----
-8
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4248
SELECT ALL ( - col0 ) / + ( + col2 ) col1 FROM tab0
----
-8
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( 10 + - + col1 ) >= NULL OR NOT ( NULL ) < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 col0, - col2 AS col1 FROM tab2
----
-23
-23
-40
-40
-58
-58

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL <> ( col1 )
----

query II rowsort
SELECT + - col1, + col2 FROM tab0 cor0
----
-1
99
-21
10
-81
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 28 - + - col2 + + + col1 * col2 + - col2 * - col0 - + col0 * + col0 col2 FROM tab0 AS cor0
----
-6507
364
4306

query I rowsort
SELECT 48 AS col2 FROM tab1 AS cor0 WHERE + col1 * + + col0 = ( + + col1 )
----

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT 9 IS NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

onlyif mysql # DIV for integer division: 
query I rowsort label-4256
SELECT ALL - col1 + + col1 DIV - col1 AS col2 FROM tab1 WHERE - 18 IS NOT NULL
----
-15
-48
-6

skipif mysql # not compatible
query I rowsort label-4256
SELECT ALL - col1 + + col1 / - col1 AS col2 FROM tab1 WHERE - 18 IS NOT NULL
----
-15
-48
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4257
SELECT SUM( - 94 ) FROM tab1, tab1 AS cor0
----
-846

skipif mysql # not compatible
query I rowsort label-4257
SELECT SUM ( - 94 ) FROM tab1, tab1 AS cor0
----
-846

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + + col0 ) col1 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT ( - 21 ) * - ( + ( + - 11 ) ) AS col1 FROM tab1 AS cor0
----
-231
-231
-231

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 7 col2 FROM tab1 cor0
----
-7
-7
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-4261
SELECT - col0 DIV col2 * - - col0 + - + 42 AS col0 FROM tab2 AS cor0
----
-106
-117
-134

skipif mysql # not compatible
query I rowsort label-4261
SELECT - col0 / col2 * - - col0 + - + 42 AS col0 FROM tab2 AS cor0
----
-106
-117
-134

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4262
SELECT - ( CAST( - + col1 AS SIGNED ) ) FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-4262
SELECT - ( CAST ( - + col1 AS INTEGER ) ) FROM tab2 AS cor0
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4263
SELECT ( ( + - MIN( col1 ) ) ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4263
SELECT ( ( + - MIN ( col1 ) ) ) FROM tab0 AS cor0
----
-1

query III rowsort
SELECT * FROM tab0 WHERE NOT - - col1 / - col2 * - + col0 + - col0 + col2 * + - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col2 * + + col0 AS col2 FROM tab2
----
1058
2560
4350

query III rowsort
SELECT ALL * FROM tab1 WHERE col1 / 27 <> - col1 + + 4
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4267
SELECT + ( - + COUNT( * ) ) * + - SUM( col1 ) FROM tab2 AS cor0
----
585

skipif mysql # not compatible
query I rowsort label-4267
SELECT + ( - + COUNT ( * ) ) * + - SUM ( col1 ) FROM tab2 AS cor0
----
585

query I rowsort
SELECT DISTINCT + 23 * - 92 AS col0 FROM tab0 AS cor0
----
-2116

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4269
SELECT ALL CAST( NULL AS SIGNED ) * - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4269
SELECT ALL CAST ( NULL AS INTEGER ) * - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 98 * - col0 * + + col0 * - - 17 AS col2 FROM tab2 AS cor0
----
3525256
6823936
9371250

query I rowsort
SELECT + + col0 * 22 AS col2 FROM tab2 AS cor0
----
1012
1408
1650

query I rowsort
SELECT ALL - col1 * ( + col0 ) AS col1 FROM tab2 AS cor0
----
-2346
-4928
-5025

query I rowsort
SELECT DISTINCT 50 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
50

query I rowsort
SELECT DISTINCT + 96 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
96

query I rowsort
SELECT col0 + - + col0 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT col1 + + 84 FROM tab2 AS cor0
----
135
151
161

query I rowsort
SELECT + col2 + - 6 FROM tab2 AS cor0
----
17
34
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4278
SELECT DISTINCT - COUNT( DISTINCT - CAST( NULL AS SIGNED ) ) + + MIN( - col0 ) + - - COUNT( - col1 ) FROM tab2 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-4278
SELECT DISTINCT - COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) + + MIN ( - col0 ) + - - COUNT ( - col1 ) FROM tab2 AS cor0
----
-72

query I rowsort
SELECT + - 45 + - col0 + + - col0 FROM tab2 AS cor0
----
-137
-173
-195

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - - col0 ) NOT IN ( - + col1 - + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 / - col0 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab2 WHERE NOT - 3 * + col2 * - 89 + - 56 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4283
SELECT DISTINCT ( + MIN( CAST( - col2 AS SIGNED ) ) ) col1 FROM tab1
----
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4283
SELECT DISTINCT ( + MIN ( CAST ( - col2 AS INTEGER ) ) ) col1 FROM tab1
----
-96

query II rowsort
SELECT + col0 * - + col1, 33 AS col0 FROM tab2
----
-2346
33
-4928
33
-5025
33

query I rowsort
SELECT DISTINCT col1 * - + 61 + - col1 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + col0 * - 77 * ( - 35 ) AS col1 FROM tab2
----
123970
172480
202125

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4287
SELECT COUNT( * ) DIV - 96 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4287
SELECT COUNT ( * ) / - 96 AS col2 FROM tab2
----
0

query I rowsort
SELECT ALL + ( - + col0 ) * + + col2 FROM tab1 AS cor0
----
-4896
-5015
-6188

query II rowsort
SELECT col2 AS col0, col1 FROM tab1 WHERE NULL IS NULL
----
59
5
68
47
96
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4290
SELECT ALL ( - CAST( + - COUNT( * ) AS SIGNED ) ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4290
SELECT ALL ( - CAST ( + - COUNT ( * ) AS INTEGER ) ) AS col0 FROM tab2
----
3

query II rowsort
SELECT ( - 82 ) + - col0 AS col1, - col0 * 88 AS col2 FROM tab1
----
-133
-4488
-167
-7480
-173
-8008

onlyif mysql # aggregate syntax: 
query II rowsort label-4292
SELECT DISTINCT + 97 AS col1, - COUNT( * ) AS col1 FROM tab1
----
97
-3

skipif mysql # not compatible
query II rowsort label-4292
SELECT DISTINCT + 97 AS col1, - COUNT ( * ) AS col1 FROM tab1
----
97
-3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 > col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4294
SELECT ALL + - MAX( DISTINCT + col1 ) FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-4294
SELECT ALL + - MAX ( DISTINCT + col1 ) FROM tab2 AS cor0
----
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 78 * col0 col0 FROM tab1 AS cor0
----
3978
6630
7098

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col2, - col0 AS col2 FROM tab1 AS cor0
----
59
-85
68
-91
96
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-4297
SELECT SUM( DISTINCT + 31 ) * - SUM( DISTINCT - - col1 ) AS col1 FROM tab1
----
-2046

skipif mysql # not compatible
query I rowsort label-4297
SELECT SUM ( DISTINCT + 31 ) * - SUM ( DISTINCT - - col1 ) AS col1 FROM tab1
----
-2046

onlyif mysql # aggregate syntax: 
query I rowsort label-4298
SELECT DISTINCT COUNT( * ) * - - COUNT( * ) FROM tab2 WHERE NULL >= + - col1
----
0

skipif mysql # not compatible
query I rowsort label-4298
SELECT DISTINCT COUNT ( * ) * - - COUNT ( * ) FROM tab2 WHERE NULL >= + - col1
----
0

query I rowsort
SELECT ALL - 89 AS col1 FROM tab0 cor0
----
-89
-89
-89

query I rowsort
SELECT ALL col0 + col1 + + 30 FROM tab1 cor0
----
120
168
95

query I rowsort
SELECT col0 + - 19 FROM tab1 AS cor0
----
32
66
72

onlyif mysql # aggregate syntax: 
query I rowsort label-4302
SELECT SUM( - - col0 ) AS col0 FROM tab1 WHERE ( - 11 NOT BETWEEN NULL AND NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4302
SELECT SUM ( - - col0 ) AS col0 FROM tab1 WHERE ( - 11 NOT BETWEEN NULL AND NULL )
----
NULL

query IIIIII rowsort
SELECT * FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE NOT + 18 IS NOT NULL
----

query I rowsort
SELECT - - col2 FROM tab1 AS cor0 WHERE col2 + col1 IS NOT NULL
----
59
68
96

query I rowsort
SELECT ALL col0 + + + col1 FROM tab2 AS cor0
----
141
142
97

query I rowsort
SELECT - + col0 * - 56 + - col0 FROM tab0 AS cor0
----
4785
5335
825

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4307
SELECT ALL - col2 * - CAST( NULL AS SIGNED ) * + col0 + col0 + + CAST( + col0 AS DECIMAL ) + - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4307
SELECT ALL - col2 * - CAST ( NULL AS INTEGER ) * + col0 + col0 + + CAST ( + col0 AS REAL ) + - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 + + 10 AS col1 FROM tab0
----
-37
-89
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4309
SELECT + COUNT( * ) DIV - - 37 + - COUNT( * ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-4309
SELECT + COUNT ( * ) / - - 37 + - COUNT ( * ) AS col2 FROM tab1
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-4310
SELECT - - col1 * + + col1 + - 98 DIV col0 AS col1 FROM tab2 WHERE - + ( - ( 73 ) ) - + + col0 <> - - 23
----
2599
4488
5928

skipif mysql # not compatible
query I rowsort label-4310
SELECT - - col1 * + + col1 + - 98 / col0 AS col1 FROM tab2 WHERE - + ( - ( 73 ) ) - + + col0 <> - - 23
----
2599
4488
5928

query II rowsort
SELECT DISTINCT col1 AS col2, col2 FROM tab1
----
14
96
47
68
5
59

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + 20 IS NOT NULL
----

query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE NOT 91 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4314
SELECT ALL - 60 * - COUNT( * ) AS col2, 5 DIV + 25 - 4 AS col0 FROM tab1
----
180
-4

skipif mysql # not compatible
query II rowsort label-4314
SELECT ALL - 60 * - COUNT ( * ) AS col2, 5 / + 25 - 4 AS col0 FROM tab1
----
180
-4

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4315
SELECT + 92 * col2 * + + CAST( NULL AS DECIMAL ) * + 7 / + col0 col1, + col2 AS col2 FROM tab0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4315
SELECT + 92 * col2 * + + CAST ( NULL AS REAL ) * + 7 / + col0 col1, + col2 AS col2 FROM tab0
----
NULL
10
NULL
47
NULL
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4316
SELECT ALL 27 DIV COUNT( * ) * + 77 FROM tab0 AS cor0
----
693

skipif mysql # not compatible
query I rowsort label-4316
SELECT ALL 27 / COUNT ( * ) * + 77 FROM tab0 AS cor0
----
693

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( - - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 * col0 col2, col2 * + col1 FROM tab2 AS cor0
----
-2346
1173
-4928
3080
-5025
3886

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4319
SELECT ALL CAST( NULL AS SIGNED ) / - col0 * + 87 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4319
SELECT ALL CAST ( NULL AS INTEGER ) / - col0 * + 87 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 40 * - col1 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4321
SELECT ALL - CAST( NULL AS SIGNED ) AS col2, 46 * - - col1 AS col2 FROM tab1
----
NULL
2162
NULL
230
NULL
644

skipif mysql # not compatible
query II rowsort label-4321
SELECT ALL - CAST ( NULL AS INTEGER ) AS col2, 46 * - - col1 AS col2 FROM tab1
----
NULL
2162
NULL
230
NULL
644

onlyif mysql # aggregate syntax: 
query I rowsort label-4322
SELECT DISTINCT - MAX( + 16 ) FROM tab0
----
-16

skipif mysql # not compatible
query I rowsort label-4322
SELECT DISTINCT - MAX ( + 16 ) FROM tab0
----
-16

query I rowsort
SELECT ALL col0 + + col2 * + col2 + - col2 AS col1 FROM tab1
----
3507
4647
9171

onlyif mysql # DIV for integer division: 
query I rowsort label-4324
SELECT 79 DIV + col0 AS col2 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4324
SELECT 79 / + col0 AS col2 FROM tab2
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4325
SELECT DISTINCT COUNT( DISTINCT - 29 ) col2 FROM tab2
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4325
SELECT DISTINCT COUNT ( DISTINCT - 29 ) col2 FROM tab2
----
1

query I rowsort
SELECT ALL - col2 * col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4327
SELECT DISTINCT - ( + + MIN( DISTINCT col1 ) ) FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-4327
SELECT DISTINCT - ( + + MIN ( DISTINCT col1 ) ) FROM tab1
----
-5

query I rowsort
SELECT 14 * 32 + col0 + + - 81 + - + col2 + 95 FROM tab1 AS cor0
----
417
485
488

query I rowsort
SELECT - col1 AS col0 FROM tab2 AS cor0 WHERE NULL IN ( + 52 )
----

query I rowsort
SELECT + col0 + + col1 + + col2 * 65 * + - col1 + + ( - - col0 ) * - col0 AS col0 FROM tab1 AS cor0
----
-215883
-26310
-89896

onlyif mysql # aggregate syntax: 
query I rowsort label-4331
SELECT DISTINCT + COUNT( * ) + ( COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-4331
SELECT DISTINCT + COUNT ( * ) + ( COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
6

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col0 IS NULL )
----

query II rowsort
SELECT ALL - + 55 AS col2, 0 * col1 + col2 AS col2 FROM tab1 AS cor0 WHERE NOT - col0 < col2
----

query I rowsort
SELECT DISTINCT 94 + - 14 FROM tab2 cor0
----
80

query III rowsort
SELECT * FROM tab1 WHERE + col2 NOT BETWEEN - col1 AND + 2 + + ( + + col2 ) + + col1
----

query I rowsort
SELECT ALL col1 + 29 * - ( - - 24 ) FROM tab1
----
-649
-682
-691

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4337
SELECT ALL 82 - col2 + CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4337
SELECT ALL 82 - col2 + CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col1 * + + col1 FROM tab2
----
2601
4489
5929

query I rowsort
SELECT col2 - - 83 * col2 FROM tab0
----
3948
8316
840

query II rowsort
SELECT - col2 - - col1 - + + col0 AS col1, col1 + - + 95 FROM tab1
----
-112
-48
-133
-81
-139
-90

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4341
SELECT * FROM tab0 AS cor0 WHERE + CAST( NULL AS SIGNED ) + + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4341
SELECT * FROM tab0 AS cor0 WHERE + CAST ( NULL AS INTEGER ) + + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4342
SELECT DISTINCT COUNT( ALL col2 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4342
SELECT DISTINCT COUNT ( ALL col2 ) AS col2 FROM tab2 AS cor0
----
3

query I rowsort
SELECT 51 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752

onlyif mysql # aggregate syntax: 
query II rowsort label-4344
SELECT 99 col0, 87 * 0 + - + MAX( - - 5 ) AS col2 FROM tab0
----
99
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4344
SELECT 99 col0, 87 * 0 + - + MAX ( - - 5 ) AS col2 FROM tab0
----
99
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4345
SELECT ALL - + COUNT( * ) AS col0 FROM tab2 WHERE ( NOT + 0 IS NOT NULL )
----
0

skipif mysql # not compatible
query I rowsort label-4345
SELECT ALL - + COUNT ( * ) AS col0 FROM tab2 WHERE ( NOT + 0 IS NOT NULL )
----
0

query II rowsort
SELECT DISTINCT - col0 AS col1, - col2 * - col0 FROM tab1
----
-51
4896
-85
5015
-91
6188

onlyif mysql # DIV for integer division: 
query I rowsort label-4347
SELECT ALL - - col2 DIV - col0 + col1 + + 52 * col1 AS col0 FROM tab1 AS cor0
----
2491
265
741

skipif mysql # not compatible
query I rowsort label-4347
SELECT ALL - - col2 / - col0 + col1 + + 52 * col1 AS col0 FROM tab1 AS cor0
----
2491
265
741

onlyif mysql # aggregate syntax: 
query I rowsort label-4348
SELECT DISTINCT + - COUNT( * ) FROM tab0 AS cor0 WHERE NOT + col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4348
SELECT DISTINCT + - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT + col2 IS NOT NULL
----
0

query II rowsort
SELECT ALL col1 AS col1, - col1 * - - col0 FROM tab2 AS cor0
----
51
-2346
67
-5025
77
-4928

query I rowsort
SELECT ALL - + col1 * - - 67 * col1 FROM tab1 AS cor0
----
-13132
-148003
-1675

onlyif mysql # aggregate syntax: 
query I rowsort label-4351
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT - col0 * - col1 * ( - - 33 ) * col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4351
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT - col0 * - col1 * ( - - 33 ) * col0 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4352
SELECT COUNT( * ) DIV + 29 col2, COUNT( * ) * - 92 AS col2 FROM tab0
----
0
-276

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4352
SELECT COUNT ( * ) / + 29 col2, COUNT ( * ) * - 92 AS col2 FROM tab0
----
0
-276

query II rowsort
SELECT - col0, ( + 48 ) FROM tab1 WHERE NOT NULL <> NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - - col2 NOT BETWEEN + - 27 * - 70 + + col2 AND NULL
----

query I rowsort
SELECT + col1 * col1 * + 99 AS col1 FROM tab2
----
257499
444411
586971

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - - col1 = col1
----

query I rowsort
SELECT DISTINCT 91 FROM tab1 WHERE + col0 BETWEEN NULL AND NULL
----

query I rowsort
SELECT - col1 * + col0 + 79 FROM tab2
----
-2267
-4849
-4946

query I rowsort
SELECT ALL + 37 + 40 * - - col1 FROM tab1 AS cor0
----
1917
237
597

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4360
SELECT DISTINCT + col1 DIV - CAST( col2 AS SIGNED ) + - 29 FROM tab0 cor0
----
-29
-30
-31

skipif mysql # not compatible
query I rowsort label-4360
SELECT DISTINCT + col1 / - CAST ( col2 AS INTEGER ) + - 29 FROM tab0 cor0
----
-29
-30
-31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 98 col0 FROM tab0 AS cor0
----
-98
-98
-98

query I rowsort
SELECT ALL + 84 * - col1 + + + col1 + + col2 + - 88 * col2 FROM tab0 AS cor0
----
-10812
-2613
-8696

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4363
SELECT + SUM( - - ( + CAST( NULL AS SIGNED ) ) ) + MIN( DISTINCT - col1 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4363
SELECT + SUM ( - - ( + CAST ( NULL AS INTEGER ) ) ) + MIN ( DISTINCT - col1 ) FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4364
SELECT ALL * FROM tab2 cor0 WHERE NOT CAST( NULL AS SIGNED ) NOT BETWEEN + col1 AND NULL
----

skipif mysql # not compatible
query III rowsort label-4364
SELECT ALL * FROM tab2 cor0 WHERE NOT CAST ( NULL AS INTEGER ) NOT BETWEEN + col1 AND NULL
----

query I rowsort
SELECT col0 * + col0 + + + col1 AS col0 FROM tab2 AS cor0
----
2167
4173
5692

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( 18 ) * + col1 - - - 11 + - col2 * 38 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-4367
SELECT DISTINCT + 88 DIV 54 AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-4367
SELECT DISTINCT + 88 / 54 AS col1 FROM tab0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4368
SELECT col1 DIV 1 FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-4368
SELECT col1 / 1 FROM tab0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4369
SELECT COUNT( * ) AS col1 FROM tab1 WHERE + - 58 * - - ( col0 ) IN ( + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-4369
SELECT COUNT ( * ) AS col1 FROM tab1 WHERE + - 58 * - - ( col0 ) IN ( + col2 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4370
SELECT DISTINCT - COUNT( - col0 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-4370
SELECT DISTINCT - COUNT ( - col0 ) FROM tab1
----
-3

query I rowsort
SELECT DISTINCT - 61 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-61

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4372
SELECT - CAST( NULL AS DECIMAL ), AVG ( - col2 ) FROM tab2 AS cor0 WHERE 62 IS NULL
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4372
SELECT - CAST ( NULL AS REAL ), AVG ( - col2 ) FROM tab2 AS cor0 WHERE 62 IS NULL
----
NULL
NULL

query I rowsort
SELECT ALL 97 * + + col0 + 72 * + - 79 * + - 23 + - - col1 AS col0 FROM tab0 AS cor0
----
132360
139284
140234

query II rowsort
SELECT DISTINCT + + col0 AS col1, 96 * col0 AS col2 FROM tab0 AS cor0
----
15
1440
87
8352
97
9312

query I rowsort
SELECT ALL 4 + - + col0 + - col0 + + 2 * - col0 + + + col0 AS col2 FROM tab2 AS cor0
----
-134
-188
-221

query I rowsort
SELECT ALL - - col0 + - 66 AS col2 FROM tab2 AS cor0
----
-2
-20
9

query I rowsort
SELECT DISTINCT 31 * - - col0 - - + 34 AS col0 FROM tab0 AS cor0
----
2731
3041
499

query I rowsort
SELECT DISTINCT - - 32 + col2 + - col1 * + 51 - + - col1 AS col1 FROM tab1 AS cor0
----
-159
-2250
-572

onlyif mysql # aggregate syntax: 
query I rowsort label-4379
SELECT ALL + 39 + + MIN( ALL - col1 ) AS col2 FROM tab0
----
-42

skipif mysql # not compatible
query I rowsort label-4379
SELECT ALL + 39 + + MIN ( ALL - col1 ) AS col2 FROM tab0
----
-42

query I rowsort
SELECT col2 + + - col1 - - col1 * - 81 FROM tab1
----
-1052
-351
-3786

onlyif mysql # DIV for integer division: 
query I rowsort label-4381
SELECT ALL - 88 DIV 47 + - 72 FROM tab1 WHERE ( NOT NULL IS NOT NULL )
----
-73
-73
-73

skipif mysql # not compatible
query I rowsort label-4381
SELECT ALL - 88 / 47 + - 72 FROM tab1 WHERE ( NOT NULL IS NOT NULL )
----
-73
-73
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-4382
SELECT MAX( + - ( - col2 ) ) + 2 AS col1 FROM tab1
----
98

skipif mysql # not compatible
query I rowsort label-4382
SELECT MAX ( + - ( - col2 ) ) + 2 AS col1 FROM tab1
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4383
SELECT DISTINCT + CAST( - + col1 AS SIGNED ) AS col2 FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-4383
SELECT DISTINCT + CAST ( - + col1 AS INTEGER ) AS col2 FROM tab0
----
-1
-21
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4384
SELECT + + col0 / - 69 * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4384
SELECT + + col0 / - 69 * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4385
SELECT - COUNT( DISTINCT - col2 ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4385
SELECT - COUNT ( DISTINCT - col2 ) AS col0 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL col1 * - 56 AS col2 FROM tab2
----
-2856
-3752
-4312

query I rowsort
SELECT DISTINCT - col0 FROM tab0 WHERE 91 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4388
SELECT ALL - + 22 * SUM( ALL + 33 ) + + - 95 AS col1 FROM tab2 AS cor0
----
-2273

skipif mysql # not compatible
query I rowsort label-4388
SELECT ALL - + 22 * SUM ( ALL + 33 ) + + - 95 AS col1 FROM tab2 AS cor0
----
-2273

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 92 * - 19 col0 FROM tab1 AS cor0
----
-1748
-1748
-1748

onlyif mysql # aggregate syntax: 
query I rowsort label-4390
SELECT DISTINCT MAX( 2 ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4390
SELECT DISTINCT MAX ( 2 ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 * 38 * - + ( + ( - col2 ) ) * - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 90 / + 16 * - 0 - + col2 FROM tab1 AS cor0 WHERE NOT ( NOT + col0 BETWEEN 29 * - col2 AND NULL )
----

query I rowsort
SELECT - ( 1 ) AS col0 FROM tab2 cor0
----
-1
-1
-1

query I rowsort
SELECT ALL + col2 * col1 + + col1 + col2 FROM tab1 AS cor0
----
1454
3311
359

onlyif mysql # aggregate syntax: 
query I rowsort label-4395
SELECT - - MIN( - - 48 ) FROM tab2 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-4395
SELECT - - MIN ( - - 48 ) FROM tab2 AS cor0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-4396
SELECT - COUNT( * ) AS col2 FROM tab0 WHERE NOT col2 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-4396
SELECT - COUNT ( * ) AS col2 FROM tab0 WHERE NOT col2 > NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4397
SELECT DISTINCT - col2 DIV - - col2 AS col0 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-4397
SELECT DISTINCT - col2 / - - col2 AS col0 FROM tab1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4398
SELECT SUM( ALL - + 16 ) FROM tab1
----
-48

skipif mysql # not compatible
query I rowsort label-4398
SELECT SUM ( ALL - + 16 ) FROM tab1
----
-48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col0, col0 FROM tab1
----
14
51
47
91
5
85

onlyif mysql # DIV for integer division: 
query I rowsort label-4400
SELECT 45 DIV - col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4400
SELECT 45 / - col1 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4401
SELECT DISTINCT + ( col2 ) * 46 + CAST( 19 AS SIGNED ) AS col0 FROM tab1
----
2733
3147
4435

skipif mysql # not compatible
query I rowsort label-4401
SELECT DISTINCT + ( col2 ) * 46 + CAST ( 19 AS INTEGER ) AS col0 FROM tab1
----
2733
3147
4435

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( col1 ) col1 FROM tab2 cor0
----
51
67
77

query I rowsort
SELECT - 71 + + - 79 * + col2 FROM tab0
----
-3784
-7892
-861

onlyif mysql # DIV for integer division: 
query I rowsort label-4404
SELECT col0 DIV - - col1 AS col2 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4404
SELECT col0 / - - col1 AS col2 FROM tab2 AS cor0
----
0
0
1

query I rowsort
SELECT DISTINCT + 55 + - 81 AS col1 FROM tab0 AS cor0
----
-26

query I rowsort
SELECT col1 * 69 - + - col2 * col0 AS col2 FROM tab0 AS cor0
----
2319
6294
9672

query I rowsort
SELECT ALL ( - col2 ) + - - col1 FROM tab2 AS cor0
----
28
37
9

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col0 + - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + ( - + col2 ) FROM tab1 AS cor0 WHERE - col1 + col1 IS NOT NULL
----
-59
-68
-96

query I rowsort
SELECT DISTINCT - 77 + + 31 FROM tab1 cor0
----
-46

query I rowsort
SELECT ( + + col1 ) - 59 + + 68 FROM tab0
----
10
30
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 40 col0 FROM tab0
----
40
40
40

query III rowsort
SELECT * FROM tab0 WHERE col2 IS NULL AND NOT NULL IS NULL
----

query I rowsort
SELECT col1 * - 50 AS col2 FROM tab1
----
-2350
-250
-700

query I rowsort
SELECT 18 * + - ( + col0 ) AS col1 FROM tab1
----
-1530
-1638
-918

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 AS col0, - ( col2 ) col0 FROM tab0
----
1
-99
21
-10
81
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4417
SELECT - CAST( - - col1 AS SIGNED ) AS col2 FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-4417
SELECT - CAST ( - - col1 AS INTEGER ) AS col2 FROM tab0
----
-1
-21
-81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4418
SELECT DISTINCT + col1, CAST( NULL AS SIGNED ) FROM tab1
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-4418
SELECT DISTINCT + col1, CAST ( NULL AS INTEGER ) FROM tab1
----
14
NULL
47
NULL
5
NULL

query I rowsort
SELECT - - col2 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4420
SELECT ALL - + MAX( - col2 ) AS col0 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-4420
SELECT ALL - + MAX ( - col2 ) AS col0 FROM tab0 AS cor0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4421
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NOT - 92 IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-4421
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NOT - 92 IS NULL )
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL <> - col0 * + + col1
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - + 50 < NULL
----

query I rowsort
SELECT - col0 * col0 * - 56 * + col1 FROM tab2 cor0 WHERE NOT + 32 <= NULL
----

query II rowsort
SELECT DISTINCT - + ( col2 ) AS col1, col1 * 89 AS col2 FROM tab2 cor0
----
-23
4539
-40
6853
-58
5963

query I rowsort
SELECT ALL - - 3 + - col1 AS col0 FROM tab0 AS cor0
----
-18
-78
2

query I rowsort
SELECT 33 * - ( - 52 ) AS col2 FROM tab2 AS cor0
----
1716
1716
1716

onlyif mysql # DIV for integer division: 
query I rowsort label-4428
SELECT + col0 * col2 DIV 66 FROM tab0 AS cor0
----
10
13
145

skipif mysql # not compatible
query I rowsort label-4428
SELECT + col0 * col2 / 66 FROM tab0 AS cor0
----
10
13
145

query III rowsort
SELECT * FROM tab1 cor0 WHERE + col1 BETWEEN - col0 AND + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - 47 col1 FROM tab0
----
4089
4559
705

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4431
SELECT ALL col2 DIV - CAST( - ( 59 ) AS SIGNED ) FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4431
SELECT ALL col2 / - CAST ( - ( 59 ) AS INTEGER ) FROM tab0
----
0
0
1

query I rowsort
SELECT - 74 * 34 FROM tab0
----
-2516
-2516
-2516

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col1, - col2 FROM tab1
----
51
-96
85
-59
91
-68

query I rowsort
SELECT col0 * + 76 + - - col0 FROM tab1 WHERE ( NOT + col1 IS NULL )
----
3927
6545
7007

query I rowsort
SELECT - col0 + - 73 FROM tab1
----
-124
-158
-164

query II rowsort
SELECT DISTINCT col0, 67 AS col1 FROM tab0
----
15
67
87
67
97
67

query I rowsort
SELECT ALL 47 + + 72 + col0 + + 12 FROM tab2
----
177
195
206

onlyif mysql # aggregate syntax: 
query I rowsort label-4438
SELECT - COUNT( - 85 ) + - + 92 + 15 FROM tab2 AS cor0
----
-80

skipif mysql # not compatible
query I rowsort label-4438
SELECT - COUNT ( - 85 ) + - + 92 + 15 FROM tab2 AS cor0
----
-80

query I rowsort
SELECT DISTINCT + ( - + col0 ) + 54 AS col1 FROM tab0 AS cor0
----
-33
-43
39

query II rowsort
SELECT 40, + col0 AS col1 FROM tab0
----
40
15
40
87
40
97

query I rowsort
SELECT DISTINCT 56 + + col2 * + 5 AS col0 FROM tab2 AS cor0
----
171
256
346

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + + 91 * 55 >= 77 )
----

query I rowsort
SELECT ALL + + col2 + 72 FROM tab1 AS cor0
----
131
140
168

onlyif mysql # aggregate syntax: 
query I rowsort label-4444
SELECT + + COUNT( * ) + - COUNT( * ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4444
SELECT + + COUNT ( * ) + - COUNT ( * ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT - + col1 * ( + - 61 ) AS col2 FROM tab2 AS cor0
----
3111
4087
4697

onlyif mysql # aggregate syntax: 
query II rowsort label-4446
SELECT - COUNT( * ) AS col2, 5 AS col2 FROM tab0 cor0
----
-3
5

skipif mysql # not compatible
query II rowsort label-4446
SELECT - COUNT ( * ) AS col2, 5 AS col2 FROM tab0 cor0
----
-3
5

query II rowsort
SELECT - 18 AS col2, 1 FROM tab0 AS cor0
----
-18
1
-18
1
-18
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4448
SELECT + - COUNT( - + col0 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4448
SELECT + - COUNT ( - + col0 ) FROM tab2 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-4449
SELECT ALL - col0 DIV col1, + col1 AS col1 FROM tab2
----
-1
67
0
51
0
77

skipif mysql # not compatible
query II rowsort label-4449
SELECT ALL - col0 / col1, + col1 AS col1 FROM tab2
----
-1
67
0
51
0
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4450
SELECT DISTINCT SUM( - CAST( - col0 AS SIGNED ) ) FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-4450
SELECT DISTINCT SUM ( - CAST ( - col0 AS INTEGER ) ) FROM tab1
----
227

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4451
SELECT ALL CAST( CAST( NULL AS SIGNED ) AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4451
SELECT ALL CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4452
SELECT MAX( - - 50 ) FROM tab0
----
50

skipif mysql # not compatible
query I rowsort label-4452
SELECT MAX ( - - 50 ) FROM tab0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4453
SELECT + COUNT( * ) * + 12 FROM tab0 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-4453
SELECT + COUNT ( * ) * + 12 FROM tab0 AS cor0
----
36

query I rowsort
SELECT col0 * - ( - col1 ) * - - col1 - + - col2 * - col0 + + col1 AS col0 FROM tab2 AS cor0
----
118639
332392
376973

query I rowsort
SELECT DISTINCT + 46 * - col1 AS col0 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - + col0 + + ( + col2 ) * + - col1 AS col1 FROM tab1 AS cor0
----
-1395
-3287
-380

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 29 + + - 24 col0 FROM tab2 AS cor0
----
-53
-53
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-4458
SELECT ALL + COUNT( - ( + 14 ) ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4458
SELECT ALL + COUNT ( - ( + 14 ) ) AS col2 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4459
SELECT ALL + + COUNT( * ) + 64 DIV + 46 AS col2 FROM tab0 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-4459
SELECT ALL + + COUNT ( * ) + 64 / + 46 AS col2 FROM tab0 AS cor0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4460
SELECT - COUNT( * ) * + + COUNT( * ) * + SUM( + col1 ) + - 68 FROM tab1 cor0 WHERE - 48 BETWEEN + 17 AND + - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4460
SELECT - COUNT ( * ) * + + COUNT ( * ) * + SUM ( + col1 ) + - 68 FROM tab1 cor0 WHERE - 48 BETWEEN + 17 AND + - col0
----
NULL

query I rowsort
SELECT - - 75 + - col2 AS col2 FROM tab0 AS cor0
----
-24
28
65

query I rowsort
SELECT DISTINCT 4 + - - col0 FROM tab1 AS cor0
----
55
89
95

query I rowsort
SELECT ALL - col2 + ( + 37 ) FROM tab0 AS cor0
----
-10
-62
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4464
SELECT + + 33 * - CAST( NULL AS SIGNED ) + - ( + + COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4464
SELECT + + 33 * - CAST ( NULL AS INTEGER ) + - ( + + COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4465
SELECT DISTINCT + COUNT( ALL + col2 ) + - - 8 DIV 57 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4465
SELECT DISTINCT + COUNT ( ALL + col2 ) + - - 8 / 57 FROM tab2 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-4466
SELECT + 92 DIV + + 65 AS col1, 51 FROM tab0
----
1
51
1
51
1
51

skipif mysql # not compatible
query II rowsort label-4466
SELECT + 92 / + + 65 AS col1, 51 FROM tab0
----
1
51
1
51
1
51

query I rowsort
SELECT ALL ( 19 ) AS col1 FROM tab2
----
19
19
19

query I rowsort
SELECT 47 AS col2 FROM tab0 WHERE NULL <= - col0 + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4469
SELECT MAX( - - 76 ) FROM tab0
----
76

skipif mysql # not compatible
query I rowsort label-4469
SELECT MAX ( - - 76 ) FROM tab0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4470
SELECT DISTINCT COUNT( * ) + + 29 FROM tab2 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-4470
SELECT DISTINCT COUNT ( * ) + + 29 FROM tab2 AS cor0
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4471
SELECT - + 60 - - + COUNT( * ) / - + COUNT( * ) * + 25 / + + SUM( CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4471
SELECT - + 60 - - + COUNT ( * ) / - + COUNT ( * ) * + 25 / + + SUM ( CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + - ( + col1 ) + - col2 AS col0 FROM tab1 AS cor0
----
-110
-115
-64

query I rowsort
SELECT ALL - col2 - + col0 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4474
SELECT - 89 + COUNT( * ) AS col0 FROM tab0 cor0 WHERE NOT NULL NOT IN ( 64 / 64, col1 )
----
-89

skipif mysql # not compatible
query I rowsort label-4474
SELECT - 89 + COUNT ( * ) AS col0 FROM tab0 cor0 WHERE NOT NULL NOT IN ( 64 / 64, col1 )
----
-89

query I rowsort
SELECT - ( 86 ) AS col2 FROM tab0
----
-86
-86
-86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 col1, col2 * - col1 AS col1 FROM tab2
----
23
-1173
40
-3080
58
-3886

onlyif mysql # aggregate syntax: 
query I rowsort label-4477
SELECT + 44 - - SUM( - col2 ) FROM tab0 WHERE NOT + col0 * col1 > + col2
----
-55

skipif mysql # not compatible
query I rowsort label-4477
SELECT + 44 - - SUM ( - col2 ) FROM tab0 WHERE NOT + col0 * col1 > + col2
----
-55

query II rowsort
SELECT 48 AS col1, col0 FROM tab0
----
48
15
48
87
48
97

query I rowsort
SELECT ALL + - 60 AS col1 FROM tab2 AS cor0
----
-60
-60
-60

query I rowsort
SELECT 99 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4481
SELECT col1 + + + 40 DIV col1 AS col1 FROM tab0
----
22
41
81

skipif mysql # not compatible
query I rowsort label-4481
SELECT col1 + + + 40 / col1 AS col1 FROM tab0
----
22
41
81

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE col1 + + col2 IS NOT NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4483
SELECT DISTINCT COUNT( - col2 ) AS col1 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4483
SELECT DISTINCT COUNT ( - col2 ) AS col1 FROM tab0 cor0
----
3

query I rowsort
SELECT DISTINCT 82 + + col2 AS col1 FROM tab1 AS cor0
----
141
150
178

onlyif mysql # aggregate syntax: 
query I rowsort label-4485
SELECT - ( + - ( + + MAX( ALL + + col1 ) ) ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-4485
SELECT - ( + - ( + + MAX ( ALL + + col1 ) ) ) FROM tab1 AS cor0
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4486
SELECT ALL + + col0 * + col1 * + 85 + + 6 + + CAST( NULL AS SIGNED ) / - - 86 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4486
SELECT ALL + + col0 * + col1 * + 85 + + 6 + + CAST ( NULL AS INTEGER ) / - - 86 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 7 > NULL
----

query I rowsort
SELECT DISTINCT + - 9 AS col0 FROM tab0 AS cor0 WHERE NOT + col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 + 53 col2, col2 AS col2 FROM tab1 AS cor0
----
104
96
138
59
144
68

query I rowsort
SELECT col2 + - col1 + col2 * - col1 FROM tab2 AS cor0
----
-1201
-3117
-3895

onlyif mysql # aggregate syntax: 
query I rowsort label-4491
SELECT ALL + 24 + - + MIN( 71 ) + + 3 FROM tab0 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-4491
SELECT ALL + 24 + - + MIN ( 71 ) + + 3 FROM tab0 AS cor0
----
-44

query I rowsort
SELECT DISTINCT col2 + - 50 FROM tab2
----
-10
-27
8

query I rowsort
SELECT col1 + + + col1 AS col1 FROM tab0
----
162
2
42

query II rowsort
SELECT ALL col0 AS col0, 47 AS col1 FROM tab0
----
15
47
87
47
97
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4495
SELECT DISTINCT col2 + + + col1 + - - 92 + + CAST( col0 AS SIGNED ) * - col0 - + + col1 * + + col1 AS col2 FROM tab1
----
-10283
-2595
-7094

skipif mysql # not compatible
query I rowsort label-4495
SELECT DISTINCT col2 + + + col1 + - - 92 + + CAST ( col0 AS INTEGER ) * - col0 - + + col1 * + + col1 AS col2 FROM tab1
----
-10283
-2595
-7094

query III rowsort
SELECT * FROM tab1 WHERE + 5 * + - 44 + 26 IS NULL
----

query I rowsort
SELECT 69 FROM tab1 AS cor0 WHERE NULL IS NULL
----
69
69
69

query I rowsort
SELECT + 32 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d30a2acbf33c88274474306936d3227b

query I rowsort
SELECT + 64 * - col0 + - col1 FROM tab0 AS cor0
----
-1041
-5589
-6209

onlyif mysql # DIV for integer division: 
query I rowsort label-4500
SELECT ALL + col0 DIV + col0 * col0 DIV col0 + - - col2 FROM tab1 AS cor0
----
60
69
97

skipif mysql # not compatible
query I rowsort label-4500
SELECT ALL + col0 / + col0 * col0 / col0 + - - col2 FROM tab1 AS cor0
----
60
69
97

query I rowsort
SELECT + col0 * - 33 * + col1 FROM tab1 AS cor0
----
-14025
-141141
-23562

onlyif mysql # aggregate syntax: 
query I rowsort label-4502
SELECT + SUM( + 18 ) FROM tab2 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-4502
SELECT + SUM ( + 18 ) FROM tab2 AS cor0
----
54

query I rowsort
SELECT - col0 * + + 81 FROM tab1 AS cor0
----
-4131
-6885
-7371

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4504
SELECT + col2 FROM tab0 WHERE NOT + col0 + + col0 >= + - CAST( + 18 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-4504
SELECT + col2 FROM tab0 WHERE NOT + col0 + + col0 >= + - CAST ( + 18 AS INTEGER )
----

query I rowsort
SELECT ALL + ( + col2 ) * col2 AS col0 FROM tab1
----
3481
4624
9216

query I rowsort
SELECT DISTINCT 88 * + - col2 FROM tab0
----
-4136
-8712
-880

query II rowsort
SELECT - col1 AS col2, - col2 AS col2 FROM tab0
----
-1
-99
-21
-10
-81
-47

onlyif mysql # aggregate syntax: 
query II rowsort label-4508
SELECT 7, - COUNT( * ) col1 FROM tab1
----
7
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4508
SELECT 7, - COUNT ( * ) col1 FROM tab1
----
7
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4509
SELECT - + col1 * - - col1 * - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4509
SELECT - + col1 * - - col1 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab1 cor0 WHERE - col2 IS NOT NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4511
SELECT ALL MAX( - 58 ) * COUNT( * ) FROM tab2 AS cor0
----
-174

skipif mysql # not compatible
query I rowsort label-4511
SELECT ALL MAX ( - 58 ) * COUNT ( * ) FROM tab2 AS cor0
----
-174

query I rowsort
SELECT - col0 + + + 71 AS col2 FROM tab1
----
-14
-20
20

query I rowsort
SELECT + 35 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

query I rowsort
SELECT + col0 + + 81 - 28 FROM tab0
----
140
150
68

query I rowsort
SELECT 40 * - col2 + - col0 AS col0 FROM tab0
----
-1895
-4057
-487

query I rowsort
SELECT + + col2 + - col2 + + 94 FROM tab0 cor0
----
94
94
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4517
SELECT - COUNT( * ) + - 1 AS col0 FROM tab0 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-4517
SELECT - COUNT ( * ) + - 1 AS col0 FROM tab0 AS cor0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-4518
SELECT ALL + COUNT( * ) FROM tab0 AS cor0 WHERE NULL >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-4518
SELECT ALL + COUNT ( * ) FROM tab0 AS cor0 WHERE NULL >= NULL
----
0

query I rowsort
SELECT DISTINCT - + col1 + + + 24 + - 9 + - + 88 + - + col1 + - 64 FROM tab1 AS cor0
----
-147
-165
-231

query I rowsort
SELECT + 78 + + + 83 FROM tab1 AS cor0
----
161
161
161

query I rowsort
SELECT col1 + + 52 AS col0 FROM tab0 AS cor0
----
133
53
73

onlyif mysql # aggregate syntax: 
query I rowsort label-4522
SELECT ALL + COUNT( * ) - + COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4522
SELECT ALL + COUNT ( * ) - + COUNT ( * ) FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4523
SELECT COUNT( ALL 62 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4523
SELECT COUNT ( ALL 62 ) AS col2 FROM tab1
----
3

query I rowsort
SELECT ALL + col2 + - 22 FROM tab2
----
1
18
36

query I rowsort
SELECT ALL + col0 AS col0 FROM tab1 cor0 WHERE NOT - 9 IS NOT NULL
----

query I rowsort
SELECT col1 - + 31 * - col0 AS col1 FROM tab2 AS cor0
----
1477
2061
2392

query I rowsort
SELECT ALL - 16 + col0 + - 12 AS col0 FROM tab0 AS cor0
----
-13
59
69

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 82 + - 93 >= col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col1 * + + col0 * + 43 + + col2 * + + 97 * + col0 AS col1 FROM tab0 cor0
----
120630
162951
935662

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 85 col0 FROM tab2 AS cor0
----
85
85
85

query I rowsort
SELECT + col1 FROM tab1 WHERE NOT - + col1 * + - ( - col1 ) IS NOT NULL
----

query II rowsort
SELECT ALL + 76 AS col1, + col0 * 38 AS col2 FROM tab0 AS cor0
----
76
3306
76
3686
76
570

onlyif mysql # aggregate syntax: 
query I rowsort label-4533
SELECT - + MAX( DISTINCT + col0 ) FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-4533
SELECT - + MAX ( DISTINCT + col0 ) FROM tab1 AS cor0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4534
SELECT ALL MIN( ALL + col0 ) AS col1 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-4534
SELECT ALL MIN ( ALL + col0 ) AS col1 FROM tab2 AS cor0
----
46

query II rowsort
SELECT ALL - 25, col0 FROM tab2 AS cor0
----
-25
46
-25
64
-25
75

query I rowsort
SELECT DISTINCT + - col2 / 99 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4537
SELECT ALL col0 * ( + 86 ) * + col0 / - + CAST( NULL AS SIGNED ) * - + col1 * + ( + col1 ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4537
SELECT ALL col0 * ( + 86 ) * + col0 / - + CAST ( NULL AS INTEGER ) * - + col1 * + ( + col1 ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4538
SELECT ALL 70 DIV col0 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4538
SELECT ALL 70 / col0 FROM tab1
----
0
0
1

onlyif mysql # DIV for integer division: 
query II rowsort label-4539
SELECT ALL - 58 DIV - + col2 AS col1, 39 FROM tab1
----
0
39
0
39
0
39

skipif mysql # not compatible
query II rowsort label-4539
SELECT ALL - 58 / - + col2 AS col1, 39 FROM tab1
----
0
39
0
39
0
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * ( + col0 ) col0 FROM tab1
----
425
4277
714

query I rowsort
SELECT DISTINCT - 59 AS col1 FROM tab0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-4542
SELECT COUNT( + col1 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4542
SELECT COUNT ( + col1 ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4543
SELECT ALL SUM( - - 57 ) FROM tab2, tab2 AS cor0
----
513

skipif mysql # not compatible
query I rowsort label-4543
SELECT ALL SUM ( - - 57 ) FROM tab2, tab2 AS cor0
----
513

onlyif mysql # aggregate syntax: 
query I rowsort label-4544
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-4544
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-9

query I rowsort
SELECT ALL col1 + + ( + col2 ) FROM tab2 AS cor0
----
117
125
74

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4546
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - CAST( - + col1 AS SIGNED ) = + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4546
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - CAST ( - + col1 AS INTEGER ) = + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4547
SELECT - SUM( ALL + 99 ) AS col2 FROM tab0 AS cor0 WHERE - 40 BETWEEN - + 31 + - - col1 * + - CAST( + - 32 AS SIGNED ) AND + + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4547
SELECT - SUM ( ALL + 99 ) AS col2 FROM tab0 AS cor0 WHERE - 40 BETWEEN - + 31 + - - col1 * + - CAST ( + - 32 AS INTEGER ) AND + + col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4548
SELECT ( + COUNT( * ) ) - + - 9 FROM tab2 cor0
----
12

skipif mysql # not compatible
query I rowsort label-4548
SELECT ( + COUNT ( * ) ) - + - 9 FROM tab2 cor0
----
12

query I rowsort
SELECT ALL col1 AS col1 FROM tab1 AS cor0 WHERE NOT NULL < NULL
----

query I rowsort
SELECT DISTINCT + col1 - + - col1 AS col1 FROM tab2 AS cor0
----
102
134
154

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4551
SELECT ALL + col2 + + CAST( + col2 AS SIGNED ) AS col1, 68 + - col1 FROM tab2 AS cor0
----
116
1
46
17
80
-9

skipif mysql # not compatible
query II rowsort label-4551
SELECT ALL + col2 + + CAST ( + col2 AS INTEGER ) AS col1, 68 + - col1 FROM tab2 AS cor0
----
116
1
46
17
80
-9

query I rowsort
SELECT col1 + + - col2 AS col1 FROM tab2 AS cor0
----
28
37
9

query I rowsort
SELECT DISTINCT col1 + + + 83 FROM tab1
----
130
88
97

query I rowsort
SELECT ALL 90 - col2 AS col2 FROM tab0
----
-9
43
80

onlyif mysql # aggregate syntax: 
query II rowsort label-4555
SELECT ALL - 73 AS col2, + ( - COUNT( * ) ) FROM tab2
----
-73
-3

skipif mysql # not compatible
query II rowsort label-4555
SELECT ALL - 73 AS col2, + ( - COUNT ( * ) ) FROM tab2
----
-73
-3

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - + 15 + - - 68 + - + col0 >= + + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-4557
SELECT ALL col2 - - 63 DIV + 73 AS col1 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-4557
SELECT ALL col2 - - 63 / + 73 AS col1 FROM tab2
----
23
40
58

query I rowsort
SELECT DISTINCT - 11 + + + col2 * - col2 FROM tab0 AS cor0 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT - ( 16 ) * - 60 + - 14 AS col2 FROM tab1 AS cor0
----
946
946
946

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 AS col0, - col0 col2 FROM tab2 AS cor0
----
-23
-46
-40
-64
-58
-75

query I rowsort
SELECT ALL + col0 FROM tab1 WHERE - + col0 IS NOT NULL
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4562
SELECT ALL col2 + + col0 * CAST( NULL AS SIGNED ) AS col0 FROM tab0 WHERE NULL NOT BETWEEN col2 * CAST( NULL AS SIGNED ) / - 0 + - CAST( - col0 AS DECIMAL ) AND + col2
----

skipif mysql # not compatible
query I rowsort label-4562
SELECT ALL col2 + + col0 * CAST ( NULL AS INTEGER ) AS col0 FROM tab0 WHERE NULL NOT BETWEEN col2 * CAST ( NULL AS INTEGER ) / - 0 + - CAST ( - col0 AS REAL ) AND + col2
----

query I rowsort
SELECT ALL + 84 * - ( + + col2 ) AS col2 FROM tab2 WHERE NOT + - col0 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4564
SELECT + MAX( DISTINCT + col1 ) AS col2 FROM tab1 cor0
----
47

skipif mysql # not compatible
query I rowsort label-4564
SELECT + MAX ( DISTINCT + col1 ) AS col2 FROM tab1 cor0
----
47

query I rowsort
SELECT ALL + 31 AS col1 FROM tab1 cor0
----
31
31
31

query II rowsort
SELECT ALL col0, col1 FROM tab0 cor0 WHERE NOT col0 < - ( col0 )
----
15
81
87
21
97
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4567
SELECT + CAST( COUNT( ALL + 43 ) AS SIGNED ), 46 AS col2 FROM tab1 AS cor0
----
3
46

skipif mysql # not compatible
query II rowsort label-4567
SELECT + CAST ( COUNT ( ALL + 43 ) AS INTEGER ), 46 AS col2 FROM tab1 AS cor0
----
3
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4568
SELECT ALL + COUNT( * ) AS col1 FROM tab2 cor0 WHERE NOT + col1 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-4568
SELECT ALL + COUNT ( * ) AS col1 FROM tab2 cor0 WHERE NOT + col1 = NULL
----
0

query I rowsort
SELECT + 18 * + col0 FROM tab1 AS cor0
----
1530
1638
918

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 28 * col0 + 14 AS col2, col0 col0 FROM tab1 cor0
----
-1414
51
-2366
85
-2534
91

query I rowsort
SELECT DISTINCT col2 FROM tab0 WHERE NOT 6 BETWEEN - + col1 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0, col0 col1 FROM tab2
----
46
46
64
64
75
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4573
SELECT + COUNT( ALL - col2 ) FROM tab0 WHERE + col2 > + + col0
----
2

skipif mysql # not compatible
query I rowsort label-4573
SELECT + COUNT ( ALL - col2 ) FROM tab0 WHERE + col2 > + + col0
----
2

query I rowsort
SELECT ALL - col2 + - + col1 * + col1 FROM tab2
----
-2624
-4547
-5969

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4575
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN CAST( + + col2 AS SIGNED ) AND + + col0
----

skipif mysql # not compatible
query III rowsort label-4575
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN CAST ( + + col2 AS INTEGER ) AND + + col0
----

query II rowsort
SELECT - 81, 9 AS col2 FROM tab2 AS cor0
----
-81
9
-81
9
-81
9

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL > + col2 * 87 * + col1
----

query II rowsort
SELECT - 66, col0 FROM tab0 AS cor0
----
-66
15
-66
87
-66
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4579
SELECT - 22 * COUNT( * ) AS col0 FROM tab2
----
-66

skipif mysql # not compatible
query I rowsort label-4579
SELECT - 22 * COUNT ( * ) AS col0 FROM tab2
----
-66

query I rowsort
SELECT col1 * - 24 FROM tab0
----
-1944
-24
-504

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 + col0 NOT BETWEEN ( + col2 ) AND - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 65 * 13 FROM tab2
----
845
845
845

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4583
SELECT ALL - AVG ( CAST( NULL AS SIGNED ) ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4583
SELECT ALL - AVG ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT 57 + 92 AS col0 FROM tab0
----
149

query I rowsort
SELECT ALL col2 + + 51 AS col2 FROM tab0 WHERE - col1 * - 42 IN ( + col1 / + 76 + + col2 )
----

query I rowsort
SELECT + col2 * ( - 77 ) FROM tab2
----
-1771
-3080
-4466

query I rowsort
SELECT ALL - col2 + + col2 * col0 FROM tab0
----
658
860
9504

query I rowsort
SELECT + 46 * + ( col1 ) FROM tab1
----
2162
230
644

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4589
SELECT + CAST( NULL AS SIGNED ) * - 43 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4589
SELECT + CAST ( NULL AS INTEGER ) * - 43 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab2 WHERE + col0 + col0 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4591
SELECT - 36 * SUM( - col1 * + 67 ) AS col0 FROM tab0
----
248436

skipif mysql # not compatible
query I rowsort label-4591
SELECT - 36 * SUM ( - col1 * + 67 ) AS col0 FROM tab0
----
248436

query III rowsort
SELECT ALL * FROM tab1 WHERE + ( - 88 ) > NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4593
SELECT DISTINCT 51 DIV - 15 + COUNT( * ) FROM tab1 WHERE ( 70 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4593
SELECT DISTINCT 51 / - 15 + COUNT ( * ) FROM tab1 WHERE ( 70 ) IS NOT NULL
----
0

query I rowsort
SELECT - col1 FROM tab2 WHERE NOT - 20 > col0
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4595
SELECT DISTINCT COUNT( * ) AS col1 FROM tab0 WHERE ( NULL ) > - col0 - col0
----
0

skipif mysql # not compatible
query I rowsort label-4595
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab0 WHERE ( NULL ) > - col0 - col0
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN ( col2 ) AND ( col1 )
----

query I rowsort
SELECT ( - 41 ) * + 92 AS col0 FROM tab1
----
-3772
-3772
-3772

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4598
SELECT ( + 44 ) * + 12 AS col0 FROM tab1 WHERE - CAST( col2 AS SIGNED ) NOT BETWEEN ( - CAST( NULL AS SIGNED ) ) AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-4598
SELECT ( + 44 ) * + 12 AS col0 FROM tab1 WHERE - CAST ( col2 AS INTEGER ) NOT BETWEEN ( - CAST ( NULL AS INTEGER ) ) AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4599
SELECT ALL CAST( col2 AS SIGNED ) * col1 FROM tab1
----
1344
295
3196

skipif mysql # not compatible
query I rowsort label-4599
SELECT ALL CAST ( col2 AS INTEGER ) * col1 FROM tab1
----
1344
295
3196

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4600
SELECT DISTINCT MIN( ALL + col0 ) DIV COUNT( * ) AS col1 FROM tab0
----
5

skipif mysql # not compatible
query I rowsort label-4600
SELECT DISTINCT MIN ( ALL + col0 ) / COUNT ( * ) AS col1 FROM tab0
----
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 5 * col2 col1 FROM tab1
----
295
340
480

query I rowsort
SELECT ( + col2 ) * - 92 + - col1 AS col1 FROM tab0 WHERE - 3 NOT BETWEEN col2 AND - 18
----
-4405
-9109
-941

query I rowsort
SELECT ALL col0 + - col2 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
17
23
24

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4604
SELECT - COUNT( * ) + - CAST( NULL AS DECIMAL ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4604
SELECT - COUNT ( * ) + - CAST ( NULL AS REAL ) AS col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4605
SELECT DISTINCT - 12 DIV - COUNT( * ) FROM tab2
----
4

skipif mysql # not compatible
query I rowsort label-4605
SELECT DISTINCT - 12 / - COUNT ( * ) FROM tab2
----
4

query I rowsort
SELECT + 2 + - col0 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-44
-62
-73

onlyif mysql # DIV for integer division: 
query I rowsort label-4607
SELECT + 85 DIV 59 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4607
SELECT + 85 / 59 FROM tab2
----
1
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4608
SELECT + col0 DIV + col1 col1 FROM tab0
----
0
4
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4608
SELECT + col0 / + col1 col1 FROM tab0
----
0
4
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4609
SELECT ALL - 53 + COUNT( * ) FROM tab1
----
-50

skipif mysql # not compatible
query I rowsort label-4609
SELECT ALL - 53 + COUNT ( * ) FROM tab1
----
-50

query I rowsort
SELECT ALL - col2 AS col2 FROM tab0 WHERE ( NULL ) NOT IN ( col0 )
----

query I rowsort
SELECT ALL - col0 * + 36 + + col2 FROM tab2
----
-1633
-2264
-2642

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 * col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-4613
SELECT DISTINCT + 45 DIV + 97 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4613
SELECT DISTINCT + 45 / + 97 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4614
SELECT DISTINCT + CAST( COUNT( * ) AS SIGNED ) FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - col2 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-4614
SELECT DISTINCT + CAST ( COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - col2 AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4615
SELECT COUNT( * ) AS col2 FROM tab1 cor0 CROSS JOIN tab0
----
9

skipif mysql # not compatible
query I rowsort label-4615
SELECT COUNT ( * ) AS col2 FROM tab1 cor0 CROSS JOIN tab0
----
9

query I rowsort
SELECT 65 + + 53 FROM tab0 AS cor0 CROSS JOIN tab2
----
9 values hashing to 6b4d3df0dcb1d629d28745add31be2b9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4617
SELECT * FROM tab0 AS cor0 WHERE NOT 41 - + 47 * + CAST( - col1 AS SIGNED ) BETWEEN ( + col2 ) AND NULL
----
97
1
99

skipif mysql # not compatible
query III rowsort label-4617
SELECT * FROM tab0 AS cor0 WHERE NOT 41 - + 47 * + CAST ( - col1 AS INTEGER ) BETWEEN ( + col2 ) AND NULL
----
97
1
99

query I rowsort
SELECT col0 + col1 AS col2 FROM tab1 AS cor0 WHERE NOT 34 IN ( 98 )
----
138
65
90

query I rowsort
SELECT ALL 97 + + 46 FROM tab2 AS cor0
----
143
143
143

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 55 = ( col0 + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col0 + 91 AS col2 FROM tab1 cor0
----
142
176
182

query I rowsort
SELECT - 15 + col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-5
32
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4623
SELECT ALL + 9 * MAX( + 23 ) AS col1 FROM tab0 AS cor0
----
207

skipif mysql # not compatible
query I rowsort label-4623
SELECT ALL + 9 * MAX ( + 23 ) AS col1 FROM tab0 AS cor0
----
207

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4624
SELECT + - CAST( 66 AS SIGNED ) * col0 FROM tab2 AS cor0
----
-3036
-4224
-4950

skipif mysql # not compatible
query I rowsort label-4624
SELECT + - CAST ( 66 AS INTEGER ) * col0 FROM tab2 AS cor0
----
-3036
-4224
-4950

query I rowsort
SELECT ALL - col1 FROM tab2 AS cor0 WHERE NOT + col2 NOT IN ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4626
SELECT + ( + COUNT( * ) ) FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col0 )
----
0

skipif mysql # not compatible
query I rowsort label-4626
SELECT + ( + COUNT ( * ) ) FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4627
SELECT - 92 * COUNT( * ) AS col1 FROM tab2 AS cor0
----
-276

skipif mysql # not compatible
query I rowsort label-4627
SELECT - 92 * COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-276

query III rowsort
SELECT * FROM tab1 WHERE NOT ( 58 ) IS NOT NULL
----

query I rowsort
SELECT ALL ( col2 ) + - 42 FROM tab2 WHERE NOT - col0 + - col0 IS NOT NULL
----

query I rowsort
SELECT + ( 44 ) AS col2 FROM tab1
----
44
44
44

query I rowsort
SELECT ALL - col2 + col2 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4632
SELECT 41 * + SUM( ALL - col1 ) FROM tab2
----
-7995

skipif mysql # not compatible
query I rowsort label-4632
SELECT 41 * + SUM ( ALL - col1 ) FROM tab2
----
-7995

query I rowsort
SELECT DISTINCT 20 - 26 AS col0 FROM tab2 WHERE NOT + 3 < - 96
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4634
SELECT DISTINCT ( + COUNT( * ) ) + + COUNT( * ) AS col0 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-4634
SELECT DISTINCT ( + COUNT ( * ) ) + + COUNT ( * ) AS col0 FROM tab1
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4635
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + CAST( NULL AS SIGNED ) IN ( + 44 )
----

skipif mysql # not compatible
query III rowsort label-4635
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + CAST ( NULL AS INTEGER ) IN ( + 44 )
----

query I rowsort
SELECT col1 + + col1 - col1 AS col0 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT ALL col1 * 50 FROM tab1
----
2350
250
700

query I rowsort
SELECT DISTINCT - ( + - 71 ) FROM tab1
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4639
SELECT CAST( NULL AS SIGNED ) * AVG ( - col0 ) col0 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4639
SELECT CAST ( NULL AS INTEGER ) * AVG ( - col0 ) col0 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 9 * col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL IN ( + col0 )
----

query I rowsort
SELECT DISTINCT + + 98 * + - 22 * col1 * - 66 FROM tab1 cor0
----
1992144
6687912
711480

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab0 AS cor0 WHERE ( 75 * + 10 ) >= col0
----
1
21
81

query I rowsort
SELECT - col1 + - 57 AS col2 FROM tab2 AS cor0
----
-108
-124
-134

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + 40 col2 FROM tab0 AS cor0
----
139
50
87

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + ( + col1 ) * - col2 + + 37 / 23 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4647
SELECT SUM( DISTINCT + col0 ) * COUNT( * ) + - COUNT( * ) FROM tab1 AS cor0
----
678

skipif mysql # not compatible
query I rowsort label-4647
SELECT SUM ( DISTINCT + col0 ) * COUNT ( * ) + - COUNT ( * ) FROM tab1 AS cor0
----
678

onlyif mysql # aggregate syntax: 
query I rowsort label-4648
SELECT ALL + + 24 * - MIN( - col0 ) + 35 AS col2 FROM tab1 AS cor0
----
2219

skipif mysql # not compatible
query I rowsort label-4648
SELECT ALL + + 24 * - MIN ( - col0 ) + 35 AS col2 FROM tab1 AS cor0
----
2219

onlyif mysql # aggregate syntax: 
query I rowsort label-4649
SELECT - SUM( + 4 ) FROM tab0
----
-12

skipif mysql # not compatible
query I rowsort label-4649
SELECT - SUM ( + 4 ) FROM tab0
----
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-4650
SELECT COUNT( DISTINCT - + col2 ), 88 AS col2 FROM tab1
----
3
88

skipif mysql # not compatible
query II rowsort label-4650
SELECT COUNT ( DISTINCT - + col2 ), 88 AS col2 FROM tab1
----
3
88

query III rowsort
SELECT * FROM tab2 WHERE NOT + - col2 * - - col2 * col1 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - + col1 FROM tab2 WHERE NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4653
SELECT MIN( ALL + col2 ) - - COUNT( * ) FROM tab2 WHERE NOT + 30 * + col1 * col0 = - col1
----
26

skipif mysql # not compatible
query I rowsort label-4653
SELECT MIN ( ALL + col2 ) - - COUNT ( * ) FROM tab2 WHERE NOT + 30 * + col1 * col0 = - col1
----
26

query I rowsort
SELECT DISTINCT + col2 * col1 AS col0 FROM tab0 WHERE + + col1 + ( + col2 ) IS NOT NULL
----
210
3807
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 col0 FROM tab1 WHERE NOT - 87 <> NULL
----

query I rowsort
SELECT DISTINCT 54 * + 86 FROM tab0
----
4644

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) >= - 70
----

query I rowsort
SELECT ALL 2 AS col1 FROM tab1 AS cor0 WHERE NOT ( col2 ) IS NOT NULL
----

query I rowsort
SELECT + col1 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( - col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4660
SELECT + + col0 DIV + + col2 FROM tab2 cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-4660
SELECT + + col0 / + + col2 FROM tab2 cor0
----
1
1
2

onlyif mysql # DIV for integer division: 
query I rowsort label-4661
SELECT - 27 DIV - col0 + - col2 FROM tab0 AS cor0
----
-10
-46
-99

skipif mysql # not compatible
query I rowsort label-4661
SELECT - 27 / - col0 + - col2 FROM tab0 AS cor0
----
-10
-46
-99

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT - col2 + + - col2 + - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - - 52 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
52
52
52

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 16 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4665
SELECT DISTINCT - COUNT( * ) + - 48 AS col1 FROM tab2 AS cor0 JOIN tab2 AS cor1 ON NULL IS NULL WHERE NULL >= NULL
----
-48

skipif mysql # not compatible
query I rowsort label-4665
SELECT DISTINCT - COUNT ( * ) + - 48 AS col1 FROM tab2 AS cor0 JOIN tab2 AS cor1 ON NULL IS NULL WHERE NULL >= NULL
----
-48

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4666
SELECT + ( + ( - - CAST( NULL AS DECIMAL ) ) ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4666
SELECT + ( + ( - - CAST ( NULL AS REAL ) ) ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT - - col0 + col2 AS col1 FROM tab0 cor0
----
196
62
97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4668
SELECT * FROM tab0 AS cor0 WHERE NOT + 76 * - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-4668
SELECT * FROM tab0 AS cor0 WHERE NOT + 76 * - CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT DISTINCT ( col1 ) AS col0 FROM tab1 cor0 WHERE NULL < ( + 19 + + col1 + - 39 * + + col0 * + col2 )
----

query I rowsort
SELECT + col2 + + + 98 FROM tab1 cor0
----
157
166
194

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 + - col1 + - + col0 - col2 NOT BETWEEN 20 * col1 AND + col2 - 11 * + col1
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( ( col1 ) = + 74 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 26 * - col1 FROM tab1
----
-1222
-130
-364

query II rowsort
SELECT DISTINCT col0, + 30 AS col0 FROM tab0
----
15
30
87
30
97
30

onlyif mysql # DIV for integer division: 
query II rowsort label-4675
SELECT col2 AS col1, + 72 DIV - col1 FROM tab0
----
10
-3
47
0
99
-72

skipif mysql # not compatible
query II rowsort label-4675
SELECT col2 AS col1, + 72 / - col1 FROM tab0
----
10
-3
47
0
99
-72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( 56 ) col1 FROM tab0 AS cor0
----
56
56
56

query I rowsort
SELECT + - ( - - col0 ) AS col0 FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4678
SELECT ALL - COUNT( * ) + COUNT( * ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4678
SELECT ALL - COUNT ( * ) + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4679
SELECT - CAST( NULL AS SIGNED ) FROM tab2 cor0 WHERE ( col1 * + + 61 ) IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4679
SELECT - CAST ( NULL AS INTEGER ) FROM tab2 cor0 WHERE ( col1 * + + 61 ) IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT - - 75 * + col0 - - - 72 FROM tab1 cor0
----
3753
6303
6753

query I rowsort
SELECT ALL - 77 - - 5 + col0 FROM tab2 AS cor0
----
-26
-8
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4682
SELECT * FROM tab1 WHERE + col2 + + col0 < + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4682
SELECT * FROM tab1 WHERE + col2 + + col0 < + CAST ( NULL AS INTEGER )
----

query II rowsort
SELECT + col0 * - 89 AS col2, col1 + + - col1 FROM tab2
----
-4094
0
-5696
0
-6675
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( + + col1 + + - 1 * - col0 ) NOT BETWEEN 93 - + col0 AND + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4685
SELECT DISTINCT - COUNT( * ) * - - 85 FROM tab0
----
-255

skipif mysql # not compatible
query I rowsort label-4685
SELECT DISTINCT - COUNT ( * ) * - - 85 FROM tab0
----
-255

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 95 + + col1 - + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 98 AS col2 FROM tab1 AS cor0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4688
SELECT DISTINCT COUNT( * ) FROM tab0 AS cor0 WHERE 18 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4688
SELECT DISTINCT COUNT ( * ) FROM tab0 AS cor0 WHERE 18 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4689
SELECT - - MIN( DISTINCT - - 40 ) FROM tab1 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-4689
SELECT - - MIN ( DISTINCT - - 40 ) FROM tab1 AS cor0
----
40

query I rowsort
SELECT DISTINCT - - 81 FROM tab1 AS cor0 WHERE ( NULL ) >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 92 <> - 75 / col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 19 * - + col1 AS col2 FROM tab1
----
266
893
95

query II rowsort
SELECT - col1 AS col1, - col2 AS col0 FROM tab2
----
-51
-23
-67
-58
-77
-40

query I rowsort
SELECT ALL col0 * + + col1 AS col2 FROM tab2
----
2346
4928
5025

query I rowsort
SELECT 1 * + col2 FROM tab1
----
59
68
96

query I rowsort
SELECT ( + 81 ) AS col0 FROM tab0
----
81
81
81

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 - + 14 * col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT + 20 AS col0, - col0 * 14 FROM tab2 cor0
----
20
-1050
20
-644
20
-896

query II rowsort
SELECT + col1 * - + col1 * - 0 AS col1, col0 FROM tab2 AS cor0
----
0
46
0
64
0
75

query I rowsort
SELECT ALL + 96 * col1 * + col0 * 59 AS col1 FROM tab1
----
2407200
24224928
4044096

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col2 * col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4702
SELECT - COUNT( + col0 ) AS col0 FROM tab0 cor0 WHERE ( NULL ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4702
SELECT - COUNT ( + col0 ) AS col0 FROM tab0 cor0 WHERE ( NULL ) IS NULL
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL BETWEEN 12 AND - col1
----

query I rowsort
SELECT DISTINCT - - 45 + - + col0 - 97 * col0 * + + col2 * - col0 FROM tab2 AS cor0
----
15892461
31646220
4720795

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4705
SELECT ALL + - col1 * + 0 * + CAST( NULL AS SIGNED ) * 34 + col2 - + col1 + + col0 * 3 * col0 * 59 + + ( col0 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4705
SELECT ALL + - col1 * + 0 * + CAST ( NULL AS INTEGER ) * 34 + col2 - + col1 + + col0 * 3 * col0 * 59 + + ( col0 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 83 IS NOT NULL
----

query I rowsort
SELECT ALL + - 48 * - - col1 FROM tab1 cor0
----
-2256
-240
-672

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * + col1 col1 FROM tab1 AS cor0
----
1344
295
3196

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col0 + + col1 * + + 8 + - col2 > NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 87 / + + col1 * - - col0 - - - 68 NOT BETWEEN + 81 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL - 70 + - 61, + 39 AS col1 FROM tab1 AS cor0
----
-131
39
-131
39
-131
39

query I rowsort
SELECT 57 FROM tab0 cor0
----
57
57
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - col1 + - + 27 col1 FROM tab2
----
-101
-144
-152

query I rowsort
SELECT DISTINCT ( 21 ) + - - 27 AS col2 FROM tab0
----
48

query I rowsort
SELECT - col1 + - 40 FROM tab2
----
-107
-117
-91

query I rowsort
SELECT ALL + col2 * 45 AS col1 FROM tab0
----
2115
4455
450

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4717
SELECT DISTINCT + 18 DIV ( COUNT( col1 ) ) FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-4717
SELECT DISTINCT + 18 / ( COUNT ( col1 ) ) FROM tab2
----
6

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL <= + - 85 - - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4719
SELECT col0 * - col1 - + CAST( NULL AS SIGNED ) + + 32 * + - 40 FROM tab1 WHERE - ( + col2 ) * - - col0 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4719
SELECT col0 * - col1 - + CAST ( NULL AS INTEGER ) + + 32 * + - 40 FROM tab1 WHERE - ( + col2 ) * - - col0 IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4720
SELECT ALL + ( + CAST( NULL AS SIGNED ) ), col1 * + 44 + 51 * - - col2 AS col1 FROM tab2 AS cor0 WHERE + 65 + + col2 NOT IN ( - col0 )
----
NULL
3417
NULL
5428
NULL
5906

skipif mysql # not compatible
query II rowsort label-4720
SELECT ALL + ( + CAST ( NULL AS INTEGER ) ), col1 * + 44 + 51 * - - col2 AS col1 FROM tab2 AS cor0 WHERE + 65 + + col2 NOT IN ( - col0 )
----
NULL
3417
NULL
5428
NULL
5906

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4721
SELECT - - MIN( ALL + - CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4721
SELECT - - MIN ( ALL + - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4722
SELECT DISTINCT SUM( ALL CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4722
SELECT DISTINCT SUM ( ALL CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4723
SELECT col2 DIV + col0 FROM tab0 WHERE NOT - - col0 IS NULL
----
0
1
3

skipif mysql # not compatible
query I rowsort label-4723
SELECT col2 / + col0 FROM tab0 WHERE NOT - - col0 IS NULL
----
0
1
3

query II rowsort
SELECT DISTINCT + col0, col2 * + col2 FROM tab1
----
51
9216
85
3481
91
4624

query II rowsort
SELECT 21 * - col2 AS col2, 25 * + col1 AS col0 FROM tab0 AS cor0 WHERE NOT + 82 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4726
SELECT - 63 * + MIN( - + col0 ) FROM tab0 cor0
----
6111

skipif mysql # not compatible
query I rowsort label-4726
SELECT - 63 * + MIN ( - + col0 ) FROM tab0 cor0
----
6111

query I rowsort
SELECT DISTINCT - + col1 / - - col2 AS col2 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND + ( + 97 )
----

query II rowsort
SELECT + col1, - 2 FROM tab1 AS cor0
----
14
-2
47
-2
5
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4729
SELECT ALL - COUNT( * ) AS col1 FROM tab1 cor0 WHERE ( col1 ) NOT BETWEEN col0 * CAST( + - col1 AS SIGNED ) AND ( col1 + - - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-4729
SELECT ALL - COUNT ( * ) AS col1 FROM tab1 cor0 WHERE ( col1 ) NOT BETWEEN col0 * CAST ( + - col1 AS INTEGER ) AND ( col1 + - - col1 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4730
SELECT col0 DIV - + col0 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4730
SELECT col0 / - + col0 FROM tab0 AS cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4731
SELECT + - COUNT( * ) * 7 FROM tab0 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-4731
SELECT + - COUNT ( * ) * 7 FROM tab0 AS cor0
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4732
SELECT - CAST( NULL AS SIGNED ), col1 * - - col0 + 75 AS col0 FROM tab2 AS cor0
----
NULL
2421
NULL
5003
NULL
5100

skipif mysql # not compatible
query II rowsort label-4732
SELECT - CAST ( NULL AS INTEGER ), col1 * - - col0 + 75 AS col0 FROM tab2 AS cor0
----
NULL
2421
NULL
5003
NULL
5100

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 NOT BETWEEN + ( col1 ) + - col1 * + - 35 * + col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4734
SELECT + 16 AS col1, COUNT( * ) FROM tab0 AS cor0
----
16
3

skipif mysql # not compatible
query II rowsort label-4734
SELECT + 16 AS col1, COUNT ( * ) FROM tab0 AS cor0
----
16
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4735
SELECT + COUNT( DISTINCT + - CAST( col0 AS SIGNED ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4735
SELECT + COUNT ( DISTINCT + - CAST ( col0 AS INTEGER ) ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL + + col0 * - + col0 AS col2 FROM tab0 AS cor0
----
-225
-7569
-9409

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4737
SELECT DISTINCT 42 * + - 82 * CAST( NULL AS SIGNED ) * + 61 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4737
SELECT DISTINCT 42 * + - 82 * CAST ( NULL AS INTEGER ) * + 61 AS col2 FROM tab2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4738
SELECT ALL SUM( DISTINCT - CAST( NULL AS SIGNED ) ) * + 30 FROM tab1, tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4738
SELECT ALL SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) * + 30 FROM tab1, tab0 AS cor0
----
NULL

query I rowsort
SELECT + col0 FROM tab1 WHERE NOT - col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 71 FROM tab0, tab1 AS cor0 WHERE - - 97 BETWEEN NULL AND ( - - 20 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + 97 <> NULL
----

query I rowsort
SELECT DISTINCT 45 AS col2 FROM tab2, tab2 cor0
----
45

query II rowsort
SELECT ALL - col1 + col1, + col2 FROM tab0 AS cor0
----
0
10
0
47
0
99

query I rowsort
SELECT + + 67 * col0 - + + col0 * + - col2 AS col2 FROM tab1 AS cor0
----
10710
12285
8313

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4745
SELECT DISTINCT COUNT( * ) DIV + 30 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4745
SELECT DISTINCT COUNT ( * ) / + 30 FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4746
SELECT ALL col2 DIV - + 14 AS col0 FROM tab2
----
-1
-2
-4

skipif mysql # not compatible
query I rowsort label-4746
SELECT ALL col2 / - + 14 AS col0 FROM tab2
----
-1
-2
-4

query III rowsort
SELECT * FROM tab2 WHERE 71 - - + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 34 + + - 88 AS col1 FROM tab0 AS cor0
----
-122
-122
-122

query I rowsort
SELECT + col2 + - 39 * - col1 FROM tab1 AS cor0
----
1901
254
642

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 NOT IN ( col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4751
SELECT + MAX( - col1 ) + - 12 AS col2 FROM tab2 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-4751
SELECT + MAX ( - col1 ) + - 12 AS col2 FROM tab2 AS cor0
----
-63

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 12 + + col0 * col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4753
SELECT DISTINCT + SUM( col2 ) + - - 18 FROM tab1 AS cor0
----
241

skipif mysql # not compatible
query I rowsort label-4753
SELECT DISTINCT + SUM ( col2 ) + - - 18 FROM tab1 AS cor0
----
241

query I rowsort
SELECT DISTINCT 64 FROM tab1 cor0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4755
SELECT DISTINCT MIN( - - col2 ) - + - COUNT( * ) AS col1 FROM tab2
----
26

skipif mysql # not compatible
query I rowsort label-4755
SELECT DISTINCT MIN ( - - col2 ) - + - COUNT ( * ) AS col1 FROM tab2
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4756
SELECT DISTINCT ( - CAST( - col1 AS SIGNED ) ) FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-4756
SELECT DISTINCT ( - CAST ( - col1 AS INTEGER ) ) FROM tab0
----
1
21
81

query I rowsort
SELECT - col2 FROM tab2 WHERE - 83 + + col2 IS NOT NULL
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4758
SELECT ALL - MAX( DISTINCT + 44 ) AS col1 FROM tab0
----
-44

skipif mysql # not compatible
query I rowsort label-4758
SELECT ALL - MAX ( DISTINCT + 44 ) AS col1 FROM tab0
----
-44

query I rowsort
SELECT ( 92 ) * - - 17 FROM tab0
----
1564
1564
1564

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4760
SELECT DISTINCT 79 DIV - COUNT( * ) AS col2 FROM tab0
----
-26

skipif mysql # not compatible
query I rowsort label-4760
SELECT DISTINCT 79 / - COUNT ( * ) AS col2 FROM tab0
----
-26

query I rowsort
SELECT 84 * - col1 FROM tab1
----
-1176
-3948
-420

onlyif mysql # aggregate syntax: 
query I rowsort label-4762
SELECT - MIN( ALL + + col2 ) - MAX( DISTINCT 9 ) AS col1 FROM tab1
----
-68

skipif mysql # not compatible
query I rowsort label-4762
SELECT - MIN ( ALL + + col2 ) - MAX ( DISTINCT 9 ) AS col1 FROM tab1
----
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-4763
SELECT + col2 DIV - col0 - + col2 AS col0 FROM tab1
----
-59
-68
-97

skipif mysql # not compatible
query I rowsort label-4763
SELECT + col2 / - col0 - + col2 AS col0 FROM tab1
----
-59
-68
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-4764
SELECT ( - 10 ) - + + 46 + + col2 DIV - col1 AS col2 FROM tab1 AS cor0
----
-57
-62
-67

skipif mysql # not compatible
query I rowsort label-4764
SELECT ( - 10 ) - + + 46 + + col2 / - col1 AS col2 FROM tab1 AS cor0
----
-57
-62
-67

query I rowsort
SELECT + 65 + ( 49 ) AS col2 FROM tab1 AS cor0
----
114
114
114

query I rowsort
SELECT - 67 + col0 FROM tab0
----
-52
20
30

query III rowsort
SELECT ALL * FROM tab2 WHERE + col2 + + 51 IS NULL
----

query I rowsort
SELECT DISTINCT 78 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
78

onlyif mysql # DIV for integer division: 
query I rowsort label-4769
SELECT - col1 DIV - 70 AS col0 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4769
SELECT - col1 / - 70 AS col0 FROM tab0
----
0
0
1

query I rowsort
SELECT + 97 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4771
SELECT col0 * + CAST( NULL AS SIGNED ) * - - 21 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4771
SELECT col0 * + CAST ( NULL AS INTEGER ) * - - 21 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4772
SELECT - - SUM( 56 ) AS col1 FROM tab0 cor0
----
168

skipif mysql # not compatible
query I rowsort label-4772
SELECT - - SUM ( 56 ) AS col1 FROM tab0 cor0
----
168

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 76 IS NOT NULL
----

query II rowsort
SELECT col0 AS col2, col0 * + 97 AS col2 FROM tab1 AS cor0
----
51
4947
85
8245
91
8827

query III rowsort
SELECT * FROM tab0 WHERE NOT - 7 - + 2 * - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4776
SELECT DISTINCT - MAX( col2 ) AS col1 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-4776
SELECT DISTINCT - MAX ( col2 ) AS col1 FROM tab2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4777
SELECT - ( + SUM( ALL - col1 ) ) FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-4777
SELECT - ( + SUM ( ALL - col1 ) ) FROM tab1
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4778
SELECT - MAX( - - CAST( NULL AS SIGNED ) ) col0 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4778
SELECT - MAX ( - - CAST ( NULL AS INTEGER ) ) col0 FROM tab0
----
NULL

query I rowsort
SELECT + col0 * + - 75 FROM tab1
----
-3825
-6375
-6825

query II rowsort
SELECT DISTINCT col0, + col2 FROM tab1
----
51
96
85
59
91
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4781
SELECT ALL ( MAX( - col2 ) ) AS col2 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-4781
SELECT ALL ( MAX ( - col2 ) ) AS col2 FROM tab0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-4782
SELECT - SUM( - 60 ) FROM tab2
----
180

skipif mysql # not compatible
query I rowsort label-4782
SELECT - SUM ( - 60 ) FROM tab2
----
180

query II rowsort
SELECT ALL col2, col0 AS col1 FROM tab1
----
59
85
68
91
96
51

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( + 2, - col2 )
----

query I rowsort
SELECT ALL - + col2 * - 89 AS col1 FROM tab0 AS cor0
----
4183
8811
890

query II rowsort
SELECT DISTINCT - col0, col1 AS col2 FROM tab2 AS cor0
----
-46
51
-64
77
-75
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 47 col2 FROM tab1
----
47
47
47

query I rowsort
SELECT - 58 * + ( - 88 ) FROM tab2
----
5104
5104
5104

query I rowsort
SELECT ALL + + 30 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 21 BETWEEN 96 AND - 31
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL = - 81 + - col0
----

query I rowsort
SELECT DISTINCT + 81 - - 58 FROM tab2 AS cor0 WHERE NULL < ( - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4793
SELECT ALL + CAST( + 1 AS SIGNED ) + + col0 col2 FROM tab2 AS cor0
----
47
65
76

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4793
SELECT ALL + CAST ( + 1 AS INTEGER ) + + col0 col2 FROM tab2 AS cor0
----
47
65
76

query I rowsort
SELECT ALL 93 - - col1 AS col0 FROM tab0 AS cor0
----
114
174
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4795
SELECT ALL + 24 - COUNT( * ) AS col2 FROM tab0
----
21

skipif mysql # not compatible
query I rowsort label-4795
SELECT ALL + 24 - COUNT ( * ) AS col2 FROM tab0
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4796
SELECT ALL CAST( CAST( NULL AS SIGNED ) AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4796
SELECT ALL CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4797
SELECT DISTINCT 44 - - 57 DIV + - 35 AS col0 FROM tab2
----
43

skipif mysql # not compatible
query I rowsort label-4797
SELECT DISTINCT 44 - - 57 / + - 35 AS col0 FROM tab2
----
43

onlyif mysql # DIV for integer division: 
query I rowsort label-4798
SELECT + ( + ( - - col1 ) ) DIV - - col2 + col2 FROM tab2
----
25
41
59

skipif mysql # not compatible
query I rowsort label-4798
SELECT + ( + ( - - col1 ) ) / - - col2 + col2 FROM tab2
----
25
41
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4799
SELECT MIN( + col2 ) + - - 93 FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-4799
SELECT MIN ( + col2 ) + - - 93 FROM tab0
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-4800
SELECT DISTINCT COUNT( * ) * - - COUNT( * ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-4800
SELECT DISTINCT COUNT ( * ) * - - COUNT ( * ) FROM tab0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4801
SELECT DISTINCT + MIN( DISTINCT - col2 ) AS col1 FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-4801
SELECT DISTINCT + MIN ( DISTINCT - col2 ) AS col1 FROM tab1
----
-96

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab2 WHERE NOT - col0 IS NOT NULL
----

query I rowsort
SELECT ALL - 34 * - 8 + + col0 FROM tab1 AS cor0
----
323
357
363

query II rowsort
SELECT + col1, ( - col0 ) AS col2 FROM tab1 cor0
----
14
-51
47
-91
5
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4805
SELECT + - 40 DIV + COUNT( * ) FROM tab2 cor0
----
-13

skipif mysql # not compatible
query I rowsort label-4805
SELECT + - 40 / + COUNT ( * ) FROM tab2 cor0
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4806
SELECT + + AVG ( ALL CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4806
SELECT + + AVG ( ALL CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
NULL

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT + 31 IS NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

query I rowsort
SELECT DISTINCT ( - 85 ) AS col1 FROM tab0 AS cor0
----
-85

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 95 BETWEEN NULL AND col2
----
85
5
59
91
47
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + 24 ) col0 FROM tab2 AS cor0
----
-24
-24
-24

query I rowsort
SELECT ALL + 55 FROM tab1 AS cor0 WHERE NOT ( 22 IS NOT NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4812
SELECT ALL CAST( COUNT( DISTINCT - - 20 ) AS SIGNED ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4812
SELECT ALL CAST ( COUNT ( DISTINCT - - 20 ) AS INTEGER ) FROM tab0 AS cor0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4813
SELECT - + col0 DIV col1 col2 FROM tab0 AS cor0
----
-4
-97
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4813
SELECT - + col0 / col1 col2 FROM tab0 AS cor0
----
-4
-97
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4814
SELECT DISTINCT + - SUM( - col1 ) AS col2 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-4814
SELECT DISTINCT + - SUM ( - col1 ) AS col2 FROM tab2 AS cor0
----
195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4815
SELECT ALL ( + + CAST( NULL AS SIGNED ) ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4815
SELECT ALL ( + + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 FROM tab2 WHERE + col2 IS NULL
----

query I rowsort
SELECT DISTINCT 20 + - + 59 + - - col0 FROM tab0 AS cor0
----
-24
48
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4818
SELECT COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
query I rowsort label-4818
SELECT COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4819
SELECT DISTINCT + MAX( ALL 9 ) * COUNT( * ) + + - 47 AS col0 FROM tab2 WHERE NOT - 22 <= - + ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4819
SELECT DISTINCT + MAX ( ALL 9 ) * COUNT ( * ) + + - 47 AS col0 FROM tab2 WHERE NOT - 22 <= - + ( + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4820
SELECT DISTINCT - CAST( NULL AS SIGNED ), col1 col0 FROM tab0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4820
SELECT DISTINCT - CAST ( NULL AS INTEGER ), col1 col0 FROM tab0
----
NULL
1
NULL
21
NULL
81

query I rowsort
SELECT col0 * + col0 + - - 42 + + col0 AS col0 FROM tab1 AS cor0
----
2694
7352
8414

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4822
SELECT - 9 AS col2 FROM tab2 AS cor0 WHERE NULL NOT IN ( CAST( NULL AS SIGNED ) + + 58 )
----

skipif mysql # not compatible
query I rowsort label-4822
SELECT - 9 AS col2 FROM tab2 AS cor0 WHERE NULL NOT IN ( CAST ( NULL AS INTEGER ) + + 58 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4823
SELECT + 9 * - COUNT( * ) + + ( - ( + COUNT( ALL - col0 ) ) ) * + MIN( + col0 ) * + 16 * 86 AS col1 FROM tab0 AS cor0
----
-61947

skipif mysql # not compatible
query I rowsort label-4823
SELECT + 9 * - COUNT ( * ) + + ( - ( + COUNT ( ALL - col0 ) ) ) * + MIN ( + col0 ) * + 16 * 86 AS col1 FROM tab0 AS cor0
----
-61947

query I rowsort
SELECT DISTINCT + 33 + - + col2 * + col0 FROM tab1 AS cor0
----
-4863
-4982
-6155

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4825
SELECT ALL COUNT( * ) + + - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4825
SELECT ALL COUNT ( * ) + + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + col1 - + + col0 + col0 + - col2 FROM tab2 AS cor0
----
28
37
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4827
SELECT ALL + + CAST( 65 AS SIGNED ) * + - 54 + - 47 AS col2 FROM tab2 cor0
----
-3557
-3557
-3557

skipif mysql # not compatible
query I rowsort label-4827
SELECT ALL + + CAST ( 65 AS INTEGER ) * + - 54 + - 47 AS col2 FROM tab2 cor0
----
-3557
-3557
-3557

onlyif mysql # aggregate syntax: 
query I rowsort label-4828
SELECT DISTINCT + SUM( ALL - + 31 ) - 22 AS col1 FROM tab1 AS cor0
----
-115

skipif mysql # not compatible
query I rowsort label-4828
SELECT DISTINCT + SUM ( ALL - + 31 ) - 22 AS col1 FROM tab1 AS cor0
----
-115

query I rowsort
SELECT ALL 8 * - + ( + - col0 ) * - col1 + - col1 FROM tab1
----
-3405
-34263
-5726

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4830
SELECT DISTINCT CAST( 46 AS SIGNED ) * - 83 * CAST( NULL AS SIGNED ) + + - 91 * + 1 * - col0 - + + 27 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4830
SELECT DISTINCT CAST ( 46 AS INTEGER ) * - 83 * CAST ( NULL AS INTEGER ) + + - 91 * + 1 * - col0 - + + 27 FROM tab1
----
NULL

query I rowsort
SELECT + col0 * - - ( 32 ) AS col0 FROM tab1
----
1632
2720
2912

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4832
SELECT - col1 - - CAST( NULL AS SIGNED ) AS col2, + col2 DIV + ( - + ( - col0 ) ) AS col1 FROM tab0
----
NULL
0
NULL
1
NULL
3

skipif mysql # not compatible
query II rowsort label-4832
SELECT - col1 - - CAST ( NULL AS INTEGER ) AS col2, + col2 / + ( - + ( - col0 ) ) AS col1 FROM tab0
----
NULL
0
NULL
1
NULL
3

query I rowsort
SELECT - - 94 FROM tab1 WHERE NULL BETWEEN + + col1 / + ( + - 49 ) AND NULL
----

query I rowsort
SELECT ALL + col0 * - 6 AS col1 FROM tab2
----
-276
-384
-450

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4835
SELECT 43 - + CAST( - col2 AS SIGNED ) AS col2 FROM tab2
----
101
66
83

skipif mysql # not compatible
query I rowsort label-4835
SELECT 43 - + CAST ( - col2 AS INTEGER ) AS col2 FROM tab2
----
101
66
83

query I rowsort
SELECT + col0 - + ( + col1 ) AS col1 FROM tab2
----
-13
-5
8

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4837
SELECT * FROM tab0 WHERE + col1 * + col1 + - + col1 + col2 BETWEEN - + 44 AND - col0 + - CAST( NULL AS SIGNED ) * col0 + + 75
----

skipif mysql # not compatible
query III rowsort label-4837
SELECT * FROM tab0 WHERE + col1 * + col1 + - + col1 + col2 BETWEEN - + 44 AND - col0 + - CAST ( NULL AS INTEGER ) * col0 + + 75
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4838
SELECT + COUNT( * ) - + COUNT( * ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4838
SELECT + COUNT ( * ) - + COUNT ( * ) FROM tab2
----
0

query I rowsort
SELECT - col1 - + + 58 AS col0 FROM tab1
----
-105
-63
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4840
SELECT + 40 + + - COUNT( * ) + COUNT( * ) DIV + COUNT( DISTINCT col0 ) FROM tab2 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-4840
SELECT + 40 + + - COUNT ( * ) + COUNT ( * ) / + COUNT ( DISTINCT col0 ) FROM tab2 AS cor0
----
38

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL >= 30 + - col2
----

query II rowsort
SELECT DISTINCT col0, 56 + + 3 AS col2 FROM tab1 AS cor0
----
51
59
85
59
91
59

query I rowsort
SELECT ALL 74 * - 53 FROM tab2 AS cor0 WHERE NOT NULL <= + col0
----

query II rowsort
SELECT + col0 + 56, col0 AS col2 FROM tab2 AS cor0 WHERE NOT - col0 * + + col2 / + 54 IS NULL
----
102
46
120
64
131
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4845
SELECT DISTINCT - MIN( DISTINCT + col2 ) AS col2 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-4845
SELECT DISTINCT - MIN ( DISTINCT + col2 ) AS col2 FROM tab0
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4846
SELECT COUNT( * ) * CAST( 77 AS SIGNED ) FROM tab2
----
231

skipif mysql # not compatible
query I rowsort label-4846
SELECT COUNT ( * ) * CAST ( 77 AS INTEGER ) FROM tab2
----
231

onlyif mysql # aggregate syntax: 
query I rowsort label-4847
SELECT MAX( ( + 4 ) ) FROM tab2
----
4

skipif mysql # not compatible
query I rowsort label-4847
SELECT MAX ( ( + 4 ) ) FROM tab2
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4848
SELECT DISTINCT * FROM tab2 WHERE NOT NULL >= - col0 * col2 / + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4848
SELECT DISTINCT * FROM tab2 WHERE NOT NULL >= - col0 * col2 / + CAST ( NULL AS INTEGER )
----

query II rowsort
SELECT ( col1 ), + col1 FROM tab1
----
14
14
47
47
5
5

query I rowsort
SELECT + col2 * + + 44 FROM tab1 WHERE NOT ( NOT NULL IS NULL )
----
2596
2992
4224

query I rowsort
SELECT DISTINCT col1 * - 71 AS col0 FROM tab2
----
-3621
-4757
-5467

onlyif mysql # DIV for integer division: 
query I rowsort label-4852
SELECT DISTINCT - col0 DIV - col1 + + + 5 * - col2 FROM tab0
----
-235
-398
-46

skipif mysql # not compatible
query I rowsort label-4852
SELECT DISTINCT - col0 / - col1 + + + 5 * - col2 FROM tab0
----
-235
-398
-46

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4853
SELECT * FROM tab0 WHERE NOT + 26 + + + CAST( - + col0 AS SIGNED ) <= + - CAST( NULL AS SIGNED ) + + col0
----

skipif mysql # not compatible
query III rowsort label-4853
SELECT * FROM tab0 WHERE NOT + 26 + + + CAST ( - + col0 AS INTEGER ) <= + - CAST ( NULL AS INTEGER ) + + col0
----

query III rowsort
SELECT * FROM tab0 WHERE + col2 * - - col1 * col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 92 + - 58 AS col1 FROM tab0
----
-150
-150
-150

query I rowsort
SELECT - 83 AS col2 FROM tab2 WHERE ( NULL ) IN ( col0 * - 3, + ( - col0 ) + - col1 * + col1, - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4857
SELECT DISTINCT - + MAX( 13 ) col1 FROM tab2 AS cor0
----
-13

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4857
SELECT DISTINCT - + MAX ( 13 ) col1 FROM tab2 AS cor0
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4858
SELECT DISTINCT 94 * - CAST( + col1 AS SIGNED ) * - col0 * col2 * - - CAST( NULL AS SIGNED ) + col1 + - col0 + + - 7 / - 66 AS col1 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4858
SELECT DISTINCT 94 * - CAST ( + col1 AS INTEGER ) * - col0 * col2 * - - CAST ( NULL AS INTEGER ) + col1 + - col0 + + - 7 / - 66 AS col1 FROM tab2 cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4859
SELECT ALL - 36 + + col1 + col0 DIV - - 6 FROM tab2 AS cor0
----
22
43
51

skipif mysql # not compatible
query I rowsort label-4859
SELECT ALL - 36 + + col1 + col0 / - - 6 FROM tab2 AS cor0
----
22
43
51

query I rowsort
SELECT DISTINCT - col1 + + - col2 FROM tab1
----
-110
-115
-64

query I rowsort
SELECT - - 33 AS col0 FROM tab0 WHERE ( 46 ) >= ( NULL )
----

query I rowsort
SELECT ALL + + 58 AS col0 FROM tab0 cor0
----
58
58
58

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4864
SELECT + COUNT( * ) * 69 - + 73 FROM tab2 AS cor0
----
134

skipif mysql # not compatible
query I rowsort label-4864
SELECT + COUNT ( * ) * 69 - + 73 FROM tab2 AS cor0
----
134

query I rowsort
SELECT DISTINCT + 16 FROM tab2 AS cor0 WHERE ( + + col0 ) / 69 * - + col2 NOT BETWEEN - + 54 AND col1 + + col2
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-4866
SELECT col2 DIV + - col0 - + 49 AS col1 FROM tab0 AS cor0
----
-49
-50
-52

skipif mysql # not compatible
query I rowsort label-4866
SELECT col2 / + - col0 - + 49 AS col1 FROM tab0 AS cor0
----
-49
-50
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-4867
SELECT - - 45 * 42 + SUM( ALL + + col2 ) AS col2 FROM tab0 cor0
----
2046

skipif mysql # not compatible
query I rowsort label-4867
SELECT - - 45 * 42 + SUM ( ALL + + col2 ) AS col2 FROM tab0 cor0
----
2046

onlyif mysql # DIV for integer division: 
query I rowsort label-4868
SELECT ALL ( + col1 ) DIV col0 - col1 FROM tab0 AS cor0
----
-1
-21
-76

skipif mysql # not compatible
query I rowsort label-4868
SELECT ALL ( + col1 ) / col0 - col1 FROM tab0 AS cor0
----
-1
-21
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4869
SELECT - ( + col1 ) + + CAST( NULL AS SIGNED ) / col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4869
SELECT - ( + col1 ) + + CAST ( NULL AS INTEGER ) / col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 58 + + - col2 + + - col1 * + col0 FROM tab2 AS cor0
----
-2427
-5026
-5141

query I rowsort
SELECT 67 * + 93 + 51 FROM tab2
----
6282
6282
6282

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4872
SELECT ALL 83 - 19 / CAST( - 25 AS SIGNED ) / + - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4872
SELECT ALL 83 - 19 / CAST ( - 25 AS INTEGER ) / + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 57 * - 86 - + + col1 + + col1 AS col0 FROM tab1
----
-4902

onlyif mysql # aggregate syntax: 
query I rowsort label-4874
SELECT - MAX( - col0 ) * - 99 + + COUNT( * ) AS col2 FROM tab0
----
-1482

skipif mysql # not compatible
query I rowsort label-4874
SELECT - MAX ( - col0 ) * - 99 + + COUNT ( * ) AS col2 FROM tab0
----
-1482

query I rowsort
SELECT DISTINCT + - 72 + + 2 - col0 * - - col1 * + - 20 * + + ( + 59 ) AS col2 FROM tab0 WHERE NOT - 67 IS NULL
----
114390
1433630
2155790

query I rowsort
SELECT - 14 * + col2 - + 15 AS col2 FROM tab0 cor0
----
-1401
-155
-673

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 65 = col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 94 col2, + 89 FROM tab2 AS cor0
----
94
89
94
89
94
89

onlyif mysql # aggregate syntax: 
query I rowsort label-4879
SELECT ALL + + COUNT( * ) * + COUNT( * ) + COUNT( * ) FROM tab1 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-4879
SELECT ALL + + COUNT ( * ) * + COUNT ( * ) + COUNT ( * ) FROM tab1 AS cor0
----
12

query I rowsort
SELECT - + 13 * - 54 * 86 FROM tab2 AS cor0
----
60372
60372
60372

query I rowsort
SELECT - ( + 58 ) FROM tab2, tab1 cor0
----
9 values hashing to de0811e670e75d2aeeb657e32bddb0c0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4882
SELECT ALL CAST( + col1 AS SIGNED ) AS col2, ( - ( + col1 ) ) col1 FROM tab2
----
51
-51
67
-67
77
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4882
SELECT ALL CAST ( + col1 AS INTEGER ) AS col2, ( - ( + col1 ) ) col1 FROM tab2
----
51
-51
67
-67
77
-77

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4883
SELECT + col2 * CAST( 52 AS SIGNED ) AS col0, CAST( NULL AS DECIMAL ) FROM tab2
----
1196
NULL
2080
NULL
3016
NULL

skipif mysql # not compatible
query II rowsort label-4883
SELECT + col2 * CAST ( 52 AS INTEGER ) AS col0, CAST ( NULL AS REAL ) FROM tab2
----
1196
NULL
2080
NULL
3016
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4884
SELECT + + COUNT( DISTINCT - 36 ) AS col2 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4884
SELECT + + COUNT ( DISTINCT - 36 ) AS col2 FROM tab2 AS cor0
----
1

query I rowsort
SELECT DISTINCT - - 69 AS col2 FROM tab1 AS cor0
----
69

query I rowsort
SELECT - col0 * - 67 * + 0 + - 70 FROM tab2 cor0
----
-70
-70
-70

query I rowsort
SELECT DISTINCT - 22 + ( - 18 ) FROM tab0 AS cor0
----
-40

query I rowsort
SELECT DISTINCT + - 54 * - + ( + col1 ) FROM tab2 AS cor0
----
2754
3618
4158

onlyif mysql # aggregate syntax: 
query II rowsort label-4889
SELECT COUNT( * ) + 43 + - 15, 3 AS col1 FROM tab0 AS cor0
----
31
3

skipif mysql # not compatible
query II rowsort label-4889
SELECT COUNT ( * ) + 43 + - 15, 3 AS col1 FROM tab0 AS cor0
----
31
3

query II rowsort
SELECT DISTINCT - 13 * - col2 * + col1 * + col2 * 47, col2 * col0 AS col0 FROM tab2 AS cor0
----
137712068
4350
16484169
1058
75275200
2560

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + - 56 + col2 NOT BETWEEN NULL AND + + col0
----

query III rowsort
SELECT * FROM tab1 WHERE 26 + - 62 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4893
SELECT col2 DIV 10 FROM tab0
----
1
4
9

skipif mysql # not compatible
query I rowsort label-4893
SELECT col2 / 10 FROM tab0
----
1
4
9

onlyif mysql # DIV for integer division: 
query I rowsort label-4894
SELECT - 60 DIV 81 col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4894
SELECT - 60 / 81 col1 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + - col2 ) col2 FROM tab0 AS cor0 WHERE 47 IS NOT NULL
----
-10
-47
-99

query I rowsort
SELECT ALL + col1 + - + col2 * - 56 FROM tab2 AS cor0
----
1339
2317
3315

query II rowsort
SELECT 62 - col0 * + col2, col2 FROM tab0 cor0
----
-643
47
-808
10
-9541
99

query I rowsort
SELECT col2 * - - col0 * - col0 FROM tab2 AS cor0
----
-163840
-326250
-48668

query I rowsort
SELECT DISTINCT ( + - 21 ) AS col1 FROM tab1 AS cor0
----
-21

query I rowsort
SELECT + 22 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) = + 54
----

query I rowsort
SELECT DISTINCT + 50 * col2 * + col2 * + col0 + - 33 FROM tab0 AS cor0
----
1656717
434967
47534817

query I rowsort
SELECT col0 AS col2 FROM tab1 WHERE NOT + - col2 NOT BETWEEN NULL AND - col1
----

query II rowsort
SELECT ALL 35, col2 * 84 AS col1 FROM tab0
----
35
3948
35
8316
35
840

onlyif mysql # aggregate syntax: 
query I rowsort label-4904
SELECT MIN( - + col0 ) FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-4904
SELECT MIN ( - + col0 ) FROM tab2
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4905
SELECT - col1 * + + CAST( NULL AS SIGNED ) AS col0 FROM tab2 WHERE NOT + - col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4905
SELECT - col1 * + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 WHERE NOT + - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4906
SELECT 35 col2, CAST( + + col1 AS SIGNED ) FROM tab2
----
35
51
35
67
35
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4906
SELECT 35 col2, CAST ( + + col1 AS INTEGER ) FROM tab2
----
35
51
35
67
35
77

query II rowsort
SELECT ALL - 18, col1 FROM tab1
----
-18
14
-18
47
-18
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4908
SELECT MIN( ALL - ( + 74 ) ) AS col1 FROM tab2
----
-74

skipif mysql # not compatible
query I rowsort label-4908
SELECT MIN ( ALL - ( + 74 ) ) AS col1 FROM tab2
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-4909
SELECT + COUNT( * ) * - - 9 FROM tab0
----
27

skipif mysql # not compatible
query I rowsort label-4909
SELECT + COUNT ( * ) * - - 9 FROM tab0
----
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - col0 AS col2, col2 col0 FROM tab2 cor0
----
-46
23
-64
40
-75
58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4911
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 + + CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4911
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 + + CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 52 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
52
52
52

query III rowsort
SELECT * FROM tab1 WHERE NOT + 27 NOT BETWEEN - + ( - + 90 ) AND - 43 * + ( + 6 )
----

query I rowsort
SELECT ALL + 97 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

query I rowsort
SELECT + 47 * + col2 AS col2 FROM tab1
----
2773
3196
4512

query II rowsort
SELECT - + col1 AS col0, + col2 FROM tab2 AS cor0
----
-51
23
-67
58
-77
40

query I rowsort
SELECT DISTINCT 8 * + col1 * + ( + 38 ) + - - 49 * + + 93 FROM tab1 cor0
----
18845
6077
8813

onlyif mysql # DIV for integer division: 
query II rowsort label-4918
SELECT ALL + - col2 DIV col1, - 31 col0 FROM tab0 AS cor0
----
-99
-31
0
-31
0
-31

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4918
SELECT ALL + - col2 / col1, - 31 col0 FROM tab0 AS cor0
----
-99
-31
0
-31
0
-31

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4919
SELECT - - col0 * - col0 FROM tab0 AS cor0 WHERE CAST( NULL AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4919
SELECT - - col0 * - col0 FROM tab0 AS cor0 WHERE CAST ( NULL AS REAL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4920
SELECT + COUNT( + - 11 ) AS col1, - SUM( ALL - 39 ) FROM tab0 AS cor0
----
3
117

skipif mysql # not compatible
query II rowsort label-4920
SELECT + COUNT ( + - 11 ) AS col1, - SUM ( ALL - 39 ) FROM tab0 AS cor0
----
3
117

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4921
SELECT ( CAST( NULL AS SIGNED ) ) AS col1, + col1 AS col1 FROM tab2
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-4921
SELECT ( CAST ( NULL AS INTEGER ) ) AS col1, + col1 AS col1 FROM tab2
----
NULL
51
NULL
67
NULL
77

query I rowsort
SELECT + + 62 AS col2 FROM tab1 WHERE + col2 IS NOT NULL
----
62
62
62

query I rowsort
SELECT col1 + 78 * - col0 * - 30 AS col0 FROM tab0
----
203601
226981
35181

onlyif mysql # aggregate syntax: 
query I rowsort label-4924
SELECT + COUNT( * ) FROM tab0 AS cor0 WHERE NULL = col1
----
0

skipif mysql # not compatible
query I rowsort label-4924
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE NULL = col1
----
0

query I rowsort
SELECT - col1 AS col0 FROM tab1 AS cor0 WHERE ( + 51 ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - + col1 + 22 FROM tab0 AS cor0
----
-59
1
21

onlyif mysql # aggregate syntax: 
query II rowsort label-4927
SELECT DISTINCT COUNT( * ) * + 53 - + COUNT( * ), 68 AS col1 FROM tab0
----
156
68

skipif mysql # not compatible
query II rowsort label-4927
SELECT DISTINCT COUNT ( * ) * + 53 - + COUNT ( * ), 68 AS col1 FROM tab0
----
156
68

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 64 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4929
SELECT - COUNT( * ) - + 33 AS col0 FROM tab1
----
-36

skipif mysql # not compatible
query I rowsort label-4929
SELECT - COUNT ( * ) - + 33 AS col0 FROM tab1
----
-36

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - + 80 / col2 * - - col2 / + col0 BETWEEN + col1 * + col2 * 68 / ( col2 ) AND + 20
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + + 26 * col2 + col0 * + + 22 * + - col2 FROM tab2 cor0
----
-22678
-55280
-94192

onlyif mysql # aggregate syntax: 
query I rowsort label-4932
SELECT DISTINCT + - COUNT( + - 98 ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4932
SELECT DISTINCT + - COUNT ( + - 98 ) FROM tab0 cor0
----
-3

query I rowsort
SELECT DISTINCT + 10 + col0 - + - 4 AS col0 FROM tab2 AS cor0
----
60
78
89

query I rowsort
SELECT + 29 + - col2 AS col1 FROM tab1 AS cor0
----
-30
-39
-67

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL < - col1 * - col0
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 >= NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4937
SELECT ALL - COUNT( ALL + ( 52 ) ), COUNT( * ) DIV 54 col2 FROM tab2 AS cor0
----
-3
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4937
SELECT ALL - COUNT ( ALL + ( 52 ) ), COUNT ( * ) / 54 col2 FROM tab2 AS cor0
----
-3
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4938
SELECT ALL + MAX( ALL + 46 ) + - - ( + MIN( DISTINCT + col1 ) ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-4938
SELECT ALL + MAX ( ALL + 46 ) + - - ( + MIN ( DISTINCT + col1 ) ) FROM tab1 AS cor0
----
51

query I rowsort
SELECT 57 * + col1 AS col2 FROM tab2 cor0
----
2907
3819
4389

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4940
SELECT + MAX( DISTINCT + CAST( + col1 AS SIGNED ) ) * 32 FROM tab0 AS cor0
----
2592

skipif mysql # not compatible
query I rowsort label-4940
SELECT + MAX ( DISTINCT + CAST ( + col1 AS INTEGER ) ) * 32 FROM tab0 AS cor0
----
2592

query I rowsort
SELECT + ( 95 ) AS col2 FROM tab1 AS cor0
----
95
95
95

query II rowsort
SELECT + + 28 AS col0, 67 FROM tab0 AS cor0
----
28
67
28
67
28
67

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 BETWEEN NULL AND - col2 - - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL - col0, 5 AS col0 FROM tab2 AS cor0
----
-46
5
-64
5
-75
5

query I rowsort
SELECT 89 * - 39 * - + col0 AS col2 FROM tab1
----
177021
295035
315861

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab1 WHERE NULL IS NULL
----
59
68
96

query I rowsort
SELECT col2 * - - col0 AS col1 FROM tab2 AS cor0
----
1058
2560
4350

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4948
SELECT - + 42 DIV MAX( - 44 ) AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4948
SELECT - + 42 / MAX ( - 44 ) AS col1 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4949
SELECT + - 73 DIV - MIN( DISTINCT + col0 ) FROM tab0 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-4949
SELECT + - 73 / - MIN ( DISTINCT + col0 ) FROM tab0 AS cor0
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-4950
SELECT DISTINCT col0 * - col2 DIV col2 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-4950
SELECT DISTINCT col0 * - col2 / col2 FROM tab2
----
-46
-64
-75

query I rowsort
SELECT - 64 + + + col2 AS col2 FROM tab1
----
-5
32
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4952
SELECT ( - COUNT( * ) ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-4952
SELECT ( - COUNT ( * ) ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + col1 ) <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4954
SELECT ALL - MIN( - 59 ) AS col0 FROM tab2 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-4954
SELECT ALL - MIN ( - 59 ) AS col0 FROM tab2 AS cor0
----
59

query I rowsort
SELECT DISTINCT + ( + 89 ) + - col2 + - + col0 * 35 * + - col0 FROM tab1 AS cor0
----
252905
289856
91028

query I rowsort
SELECT ALL + col0 + + 63 AS col2 FROM tab0 AS cor0
----
150
160
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4957
SELECT ALL 77 DIV - - MAX( ALL + - 36 ) FROM tab2 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-4957
SELECT ALL 77 / - - MAX ( ALL + - 36 ) FROM tab2 AS cor0
----
-2

query II rowsort
SELECT ALL + col2 AS col1, col2 FROM tab2 AS cor0
----
23
23
40
40
58
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4959
SELECT - MIN( + col2 ) FROM tab1 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4959
SELECT - MIN ( + col2 ) FROM tab1 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT + 17 * + - 62 * + 79 + - + col2 FROM tab0
----
-83276
-83313
-83365

query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 AS cor0 WHERE - 28 IS NULL
----

query I rowsort
SELECT - 82 * + - col2 FROM tab0
----
3854
8118
820

query II rowsort
SELECT DISTINCT - col0 AS col0, col1 FROM tab1
----
-51
14
-85
5
-91
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4964
SELECT - col1 * - col1 * - CAST( - ( - col2 ) AS SIGNED ) FROM tab0
----
-308367
-4410
-99

skipif mysql # not compatible
query I rowsort label-4964
SELECT - col1 * - col1 * - CAST ( - ( - col2 ) AS INTEGER ) FROM tab0
----
-308367
-4410
-99

query II rowsort
SELECT ALL col0 AS col2, 0 AS col0 FROM tab1
----
51
0
85
0
91
0

query II rowsort
SELECT DISTINCT col1 AS col1, 25 AS col2 FROM tab1
----
14
25
47
25
5
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4967
SELECT DISTINCT CAST( NULL AS SIGNED ) + - COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4967
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - COUNT ( * ) FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4968
SELECT * FROM tab0 AS cor0 WHERE col2 + + col0 + + - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4968
SELECT * FROM tab0 AS cor0 WHERE col2 + + col0 + + - CAST ( NULL AS INTEGER ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE + col0 + - col1 + + 13 * col0 = NULL
----

query I rowsort
SELECT 24 + + 92 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1b203c14e07bd085fccb96893918131a

query I rowsort
SELECT - 90 * - col2 AS col1 FROM tab1 AS cor0
----
5310
6120
8640

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( col1 / 67 + - col1 * + - col0 + + + 0 + 89 ) BETWEEN NULL AND - 34
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-4973
SELECT ALL + 69 * + 80 - - 30, + 35 + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
5550
38

skipif mysql # not compatible
query II rowsort label-4973
SELECT ALL + 69 * + 80 - - 30, + 35 + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
5550
38

query II rowsort
SELECT + col0, - col0 AS col2 FROM tab1 cor0 WHERE NOT - col2 IS NULL
----
51
-51
85
-85
91
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-4975
SELECT DISTINCT col0 DIV - 40 AS col2 FROM tab1 cor0
----
-1
-2

skipif mysql # not compatible
query I rowsort label-4975
SELECT DISTINCT col0 / - 40 AS col2 FROM tab1 cor0
----
-1
-2

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 47 * col1 IS NOT NULL
----

query I rowsort
SELECT - 81 AS col0 FROM tab1 cor0 WHERE NOT ( NULL IS NULL )
----

query I rowsort
SELECT ALL + ( + + col2 ) AS col2 FROM tab0 AS cor0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4979
SELECT ( + - COUNT( - + col2 ) ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-4979
SELECT ( + - COUNT ( - + col2 ) ) AS col1 FROM tab1
----
-3

query II rowsort
SELECT col0 AS col0, col0 AS col2 FROM tab1
----
51
51
85
85
91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4981
SELECT MAX( DISTINCT + 81 ) FROM tab1
----
81

skipif mysql # not compatible
query I rowsort label-4981
SELECT MAX ( DISTINCT + 81 ) FROM tab1
----
81

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4982
SELECT ALL - col2 * - col0 DIV + + CAST( + col0 AS SIGNED ) FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-4982
SELECT ALL - col2 * - col0 / + + CAST ( + col0 AS INTEGER ) FROM tab0
----
10
47
99

query I rowsort
SELECT 38 FROM tab2 WHERE NOT + col1 > NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4984
SELECT + CAST( NULL AS DECIMAL ) / - 92 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4984
SELECT + CAST ( NULL AS REAL ) / - 92 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 68 AS col2 FROM tab1
----
68
68
68

query I rowsort
SELECT DISTINCT ( + - 11 ) FROM tab0 cor0
----
-11

onlyif mysql # aggregate syntax: 
query II rowsort label-4987
SELECT DISTINCT 96 + - ( - COUNT( DISTINCT col2 ) ), SUM( + col0 ) col2 FROM tab1 AS cor0
----
99
227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4987
SELECT DISTINCT 96 + - ( - COUNT ( DISTINCT col2 ) ), SUM ( + col0 ) col2 FROM tab1 AS cor0
----
99
227

query I rowsort
SELECT ALL - - 18 + - + ( - col2 ) AS col0 FROM tab2 AS cor0
----
41
58
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4989
SELECT DISTINCT - + SUM( DISTINCT + col0 ) FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-4989
SELECT DISTINCT - + SUM ( DISTINCT + col0 ) FROM tab2 AS cor0
----
-185

onlyif mysql # aggregate syntax: 
query I rowsort label-4990
SELECT - - 87 + + + MAX( 65 ) - - 52 AS col2 FROM tab2 AS cor0
----
204

skipif mysql # not compatible
query I rowsort label-4990
SELECT - - 87 + + + MAX ( 65 ) - - 52 AS col2 FROM tab2 AS cor0
----
204

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4991
SELECT + ( - CAST( NULL AS SIGNED ) ) + + - col0 + - - 96 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4991
SELECT + ( - CAST ( NULL AS INTEGER ) ) + + - col0 + - - 96 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 + 18 FROM tab1
----
23
32
65

query I rowsort
SELECT ALL - 15 + - col0 FROM tab1
----
-100
-106
-66

query I rowsort
SELECT DISTINCT - 10 * + col1 AS col1 FROM tab0
----
-10
-210
-810

onlyif mysql # aggregate syntax: 
query I rowsort label-4995
SELECT ALL - 77 * - COUNT( * ) col2 FROM tab2
----
231

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4995
SELECT ALL - 77 * - COUNT ( * ) col2 FROM tab2
----
231

onlyif mysql # aggregate syntax: 
query I rowsort label-4996
SELECT DISTINCT COUNT( ALL + 13 ) col0 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4996
SELECT DISTINCT COUNT ( ALL + 13 ) col0 FROM tab2
----
3

query I rowsort
SELECT + col1 + + ( - col1 ) AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT + ( - 87 ) FROM tab2
----
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4999
SELECT - - CAST( NULL AS SIGNED ) * - - col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4999
SELECT - - CAST ( NULL AS INTEGER ) * - - col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( - 97 ) FROM tab1 AS cor0
----
-97
-97
-97

query I rowsort
SELECT ALL + + 87 + + col1 + - col1 AS col2 FROM tab2 AS cor0
----
87
87
87

query I rowsort
SELECT - 12 - - col1 + 10 AS col1 FROM tab0 AS cor0
----
-1
19
79

query III rowsort
SELECT * FROM tab2 WHERE NOT + + col2 + 20 - - 69 >= col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5004
SELECT ALL COUNT( + + col1 ) * ( + COUNT( * ) ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-5004
SELECT ALL COUNT ( + + col1 ) * ( + COUNT ( * ) ) FROM tab0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-5005
SELECT DISTINCT + col1 DIV - 79 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5005
SELECT DISTINCT + col1 / - 79 FROM tab2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5006
SELECT DISTINCT - CAST( NULL AS SIGNED ) * MAX( + 19 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5006
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * MAX ( + 19 ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5007
SELECT + ( - COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5007
SELECT + ( - COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 98 + - 98 NOT IN ( - - 28, - ( + col0 ) * - + col0, - + ( - ( - col2 ) ), - 6 * + + col1 * col2 / + - col1 + - col0, + 31 * ( - 86 ) )
----

query I rowsort
SELECT - + 52 * col2 + + 28 FROM tab2 AS cor0
----
-1168
-2052
-2988

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1, col1 col0 FROM tab0 AS cor0
----
-1
1
-21
21
-81
81

query I rowsort
SELECT - 1 FROM tab2 AS cor0 WHERE NOT + col0 IS NULL
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5012
SELECT ALL + COUNT( * ) * MIN( ALL + + col2 ) AS col0 FROM tab0 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-5012
SELECT ALL + COUNT ( * ) * MIN ( ALL + + col2 ) AS col0 FROM tab0 AS cor0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-5013
SELECT + 78 * - - 43 * - COUNT( * ) FROM tab2 AS cor0
----
-10062

skipif mysql # not compatible
query I rowsort label-5013
SELECT + 78 * - - 43 * - COUNT ( * ) FROM tab2 AS cor0
----
-10062

query I rowsort
SELECT - + ( 66 ) FROM tab1 AS cor0
----
-66
-66
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5015
SELECT + COUNT( * ) * - COUNT( * ) + - - CAST( - MAX( DISTINCT 39 ) AS SIGNED ) FROM tab2 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-5015
SELECT + COUNT ( * ) * - COUNT ( * ) + - - CAST ( - MAX ( DISTINCT 39 ) AS INTEGER ) FROM tab2 AS cor0
----
-48

query I rowsort
SELECT + + 78 * - col2 AS col1 FROM tab1 AS cor0
----
-4602
-5304
-7488

query II rowsort
SELECT ALL 78 * + col1, 64 AS col1 FROM tab2
----
3978
64
5226
64
6006
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * 96 col1 FROM tab1
----
5664
6528
9216

query I rowsort
SELECT DISTINCT + 16 * + col0 + + 91 - + + col2 + - col2 AS col1 FROM tab2 AS cor0
----
1035
1175
781

query I rowsort
SELECT ALL + col2 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5021
SELECT ALL - COUNT( * ) DIV - 73 AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5021
SELECT ALL - COUNT ( * ) / - 73 AS col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT col0 AS col2 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT 78 * - 36 + + col0 AS col2, 84 + - col2 FROM tab2 AS cor0
----
-2733
26
-2744
44
-2762
61

onlyif mysql # aggregate syntax: 
query I rowsort label-5024
SELECT DISTINCT - - ( COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5024
SELECT DISTINCT - - ( COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5025
SELECT ALL + 4 + - SUM( ALL + 51 ) FROM tab2 cor0 WHERE - 58 - - - col0 + + 83 IS NOT NULL
----
-149

skipif mysql # not compatible
query I rowsort label-5025
SELECT ALL + 4 + - SUM ( ALL + 51 ) FROM tab2 cor0 WHERE - 58 - - - col0 + + 83 IS NOT NULL
----
-149

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5026
SELECT ALL col2 DIV - CAST( - + col0 AS SIGNED ) + + col0 * + 21 + col0 + + col2 AS col2 FROM tab0 AS cor0
----
1924
2234
380

skipif mysql # not compatible
query I rowsort label-5026
SELECT ALL col2 / - CAST ( - + col0 AS INTEGER ) + + col0 * + 21 + col0 + + col2 AS col2 FROM tab0 AS cor0
----
1924
2234
380

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5027
SELECT DISTINCT + + ( col2 ) FROM tab2 AS cor0 WHERE - ( + CAST( + col2 AS SIGNED ) ) / + + CAST( NULL AS DECIMAL ) = - + col1
----

skipif mysql # not compatible
query I rowsort label-5027
SELECT DISTINCT + + ( col2 ) FROM tab2 AS cor0 WHERE - ( + CAST ( + col2 AS INTEGER ) ) / + + CAST ( NULL AS REAL ) = - + col1
----

query I rowsort
SELECT DISTINCT 59 + 50 AS col1 FROM tab1 AS cor0
----
109

query I rowsort
SELECT ALL col2 + col2 FROM tab0 AS cor0 WHERE col2 / - col0 IS NULL
----

query I rowsort
SELECT DISTINCT - 49 - + col2 FROM tab2
----
-107
-72
-89

query III rowsort
SELECT * FROM tab2 WHERE - col0 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5032
SELECT COUNT( ALL ( - col2 ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5032
SELECT COUNT ( ALL ( - col2 ) ) FROM tab0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 - col1 col1 FROM tab2
----
-13
-5
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + col0 ) col0 FROM tab0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5035
SELECT ALL - SUM( - + 51 ) AS col1 FROM tab0
----
153

skipif mysql # not compatible
query I rowsort label-5035
SELECT ALL - SUM ( - + 51 ) AS col1 FROM tab0
----
153

query I rowsort
SELECT - col1 - + col2 - col1 FROM tab2
----
-125
-192
-194

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 97 col1 FROM tab2 AS cor0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5038
SELECT DISTINCT + - SUM( - + col2 ) AS col0 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-5038
SELECT DISTINCT + - SUM ( - + col2 ) AS col0 FROM tab1 AS cor0
----
223

onlyif mysql # aggregate syntax: 
query I rowsort label-5039
SELECT + 26 + - COUNT( * ) AS col0 FROM tab0, tab2 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-5039
SELECT + 26 + - COUNT ( * ) AS col0 FROM tab0, tab2 AS cor0
----
17

query I rowsort
SELECT ALL + col0 * - + 90 FROM tab0
----
-1350
-7830
-8730

onlyif mysql # aggregate syntax: 
query I rowsort label-5041
SELECT DISTINCT + MAX( DISTINCT - 2 ) * + 12 * 56 * + + 19 + - SUM( col2 ) FROM tab2
----
-25657

skipif mysql # not compatible
query I rowsort label-5041
SELECT DISTINCT + MAX ( DISTINCT - 2 ) * + 12 * 56 * + + 19 + - SUM ( col2 ) FROM tab2
----
-25657

query I rowsort
SELECT + + ( + 57 ) AS col0 FROM tab1 AS cor0
----
57
57
57

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 > col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5044
SELECT ALL 22 * COUNT( * ) AS col0 FROM tab0 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-5044
SELECT ALL 22 * COUNT ( * ) AS col0 FROM tab0 AS cor0
----
66

query I rowsort
SELECT + col1 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5046
SELECT + COUNT( * ) * 25 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-5046
SELECT + COUNT ( * ) * 25 FROM tab2
----
75

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL > - + col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5048
SELECT ALL + 43 AS col2, - COUNT( * ) + + ( + + COUNT( * ) ) + + MAX( col1 ) AS col2 FROM tab0
----
43
81

skipif mysql # not compatible
query II rowsort label-5048
SELECT ALL + 43 AS col2, - COUNT ( * ) + + ( + + COUNT ( * ) ) + + MAX ( col1 ) AS col2 FROM tab0
----
43
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5049
SELECT + 10 FROM tab0 WHERE NOT + CAST( NULL AS SIGNED ) IS NOT NULL
----
10
10
10

skipif mysql # not compatible
query I rowsort label-5049
SELECT + 10 FROM tab0 WHERE NOT + CAST ( NULL AS INTEGER ) IS NOT NULL
----
10
10
10

query I rowsort
SELECT DISTINCT - 73 * + col2 FROM tab2 WHERE NOT col1 BETWEEN NULL AND - col0
----
-1679
-2920
-4234

query I rowsort
SELECT 46 + - + 77 AS col0 FROM tab0 WHERE NOT + 95 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5052
SELECT ALL 7 + 84 + + 9 + + + 80 DIV col0 col2 FROM tab0
----
100
100
105

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5052
SELECT ALL 7 + 84 + + 9 + + + 80 / col0 col2 FROM tab0
----
100
100
105

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - col2 * + col0 IS NOT NULL
----

query I rowsort
SELECT ALL - ( 4 ) + - col0 * - + 71 AS col0 FROM tab2 AS cor0
----
3262
4540
5321

query II rowsort
SELECT col1 + - 83 AS col1, - col2 + 27 AS col1 FROM tab1 AS cor0
----
-36
-41
-69
-69
-78
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-5056
SELECT + MAX( ALL col0 ) col1 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5056
SELECT + MAX ( ALL col0 ) col1 FROM tab2 AS cor0
----
75

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5057
SELECT ALL - col1 DIV col0 + - + ( + - 76 ) AS col1, ( col2 ) - + CAST( NULL AS SIGNED ) col2 FROM tab2 AS cor0
----
75
NULL
75
NULL
76
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5057
SELECT ALL - col1 / col0 + - + ( + - 76 ) AS col1, ( col2 ) - + CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0
----
75
NULL
75
NULL
76
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5058
SELECT DISTINCT COUNT( ALL - col0 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5058
SELECT DISTINCT COUNT ( ALL - col0 ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5059
SELECT ALL - + 25 + - COUNT( * ) FROM tab0 cor0
----
-28

skipif mysql # not compatible
query I rowsort label-5059
SELECT ALL - + 25 + - COUNT ( * ) FROM tab0 cor0
----
-28

query I rowsort
SELECT ALL - col0 * + 98 - - 68 AS col0 FROM tab2 AS cor0
----
-4440
-6204
-7282

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5061
SELECT + - col2 + col2 * + + CAST( col0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
4800
4956
6120

skipif mysql # not compatible
query I rowsort label-5061
SELECT + - col2 + col2 * + + CAST ( col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
4800
4956
6120

query I rowsort
SELECT + col0 + - 86 FROM tab2 cor0
----
-11
-22
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5063
SELECT - ( - col0 ) + + col2 * - CAST( NULL AS SIGNED ) + - 7 * col1 * - + 31 * col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5063
SELECT - ( - col0 ) + + col2 * - CAST ( NULL AS INTEGER ) + - 7 * col1 * - + 31 * col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 - 31 FROM tab1
----
28
37
65

query I rowsort
SELECT ( - 60 ) + - col2 + + - col2 + + col1 + + col2 AS col0 FROM tab1
----
-114
-142
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-5066
SELECT 20 * COUNT( * ) + ( - COUNT( * ) ) AS col1 FROM tab1
----
57

skipif mysql # not compatible
query I rowsort label-5066
SELECT 20 * COUNT ( * ) + ( - COUNT ( * ) ) AS col1 FROM tab1
----
57

query I rowsort
SELECT col0 FROM tab0 WHERE - + col1 IS NOT NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5068
SELECT DISTINCT MIN( + col2 ) - + 74 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-5068
SELECT DISTINCT MIN ( + col2 ) - + 74 FROM tab2
----
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-5069
SELECT DISTINCT 5 AS col1, MAX( DISTINCT col1 ) FROM tab1
----
5
47

skipif mysql # not compatible
query II rowsort label-5069
SELECT DISTINCT 5 AS col1, MAX ( DISTINCT col1 ) FROM tab1
----
5
47

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col1 BETWEEN 85 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( + col0 + + 66, 79 )
----

query I rowsort
SELECT + 9 - col0 AS col2 FROM tab0
----
-6
-78
-88

query I rowsort
SELECT col1 FROM tab2 WHERE NOT NULL NOT BETWEEN ( 97 ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL <> - ( - col1 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - 50 = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) <= ( NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT 64 * - 19 > col2 * - 77
----
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-5078
SELECT DISTINCT COUNT( * ) AS col1 FROM tab2 WHERE NOT col0 NOT BETWEEN ( + 24 ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-5078
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab2 WHERE NOT col0 NOT BETWEEN ( + 24 ) AND NULL
----
0

query I rowsort
SELECT col1 FROM tab2 WHERE - 66 IS NOT NULL
----
51
67
77

query I rowsort
SELECT ALL 25 AS col2 FROM tab1
----
25
25
25

query I rowsort
SELECT DISTINCT col1 * + col1 FROM tab2 WHERE ( 9 * - col1 ) < col2 - col0 * col1
----

query I rowsort
SELECT ALL - 5 * col0 FROM tab1 WHERE NULL IS NULL
----
-255
-425
-455

query I rowsort
SELECT DISTINCT + 64 + 41 * + 58 FROM tab1
----
2442

query III rowsort
SELECT ALL * FROM tab2 WHERE ( col0 ) BETWEEN col0 * col0 AND col0 * + col0 - ( - col2 + - col1 ) / col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5085
SELECT DISTINCT - COUNT( * ) * 93 + - COUNT( * ) * - COUNT( 92 ) col0 FROM tab1
----
-270

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5085
SELECT DISTINCT - COUNT ( * ) * 93 + - COUNT ( * ) * - COUNT ( 92 ) col0 FROM tab1
----
-270

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 11 * - col2 col0 FROM tab0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5087
SELECT - col2 DIV col1 + col2 AS col2 FROM tab0
----
0
10
47

skipif mysql # not compatible
query I rowsort label-5087
SELECT - col2 / col1 + col2 AS col2 FROM tab0
----
0
10
47

query I rowsort
SELECT - col1 + 56 AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5089
SELECT CAST( - ( col1 ) AS SIGNED ) AS col1 FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-5089
SELECT CAST ( - ( col1 ) AS INTEGER ) AS col1 FROM tab1
----
-14
-47
-5

query I rowsort
SELECT ALL - 15 AS col1 FROM tab1
----
-15
-15
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5091
SELECT ALL - CAST( + col2 AS SIGNED ) * + col0 AS col1 FROM tab1 WHERE NULL >= 10
----

skipif mysql # not compatible
query I rowsort label-5091
SELECT ALL - CAST ( + col2 AS INTEGER ) * + col0 AS col1 FROM tab1 WHERE NULL >= 10
----

query I rowsort
SELECT ALL + col0 + 14 * col2 AS col2 FROM tab2
----
368
624
887

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL > ( col1 )
----

query I rowsort
SELECT - col2 * + 50 FROM tab0 WHERE - ( col2 ) < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5095
SELECT COUNT( DISTINCT - col0 ) / - CAST( NULL AS SIGNED ) FROM tab0 WHERE col2 NOT BETWEEN NULL AND 41
----
NULL

skipif mysql # not compatible
query I rowsort label-5095
SELECT COUNT ( DISTINCT - col0 ) / - CAST ( NULL AS INTEGER ) FROM tab0 WHERE col2 NOT BETWEEN NULL AND 41
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5096
SELECT ALL ( COUNT( - col1 ) ) + 9 AS col2 FROM tab0 WHERE NOT NULL NOT BETWEEN ( 70 ) AND NULL
----
9

skipif mysql # not compatible
query I rowsort label-5096
SELECT ALL ( COUNT ( - col1 ) ) + 9 AS col2 FROM tab0 WHERE NOT NULL NOT BETWEEN ( 70 ) AND NULL
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5097
SELECT - 96 + - COUNT( * ) AS col0 FROM tab2
----
-99

skipif mysql # not compatible
query I rowsort label-5097
SELECT - 96 + - COUNT ( * ) AS col0 FROM tab2
----
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 col1 FROM tab2 AS cor0 WHERE ( + ( - 89 ) + col1 * col2 ) <= ( + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 86 col2 FROM tab1 AS cor0
----
-86
-86
-86

query I rowsort
SELECT DISTINCT col0 * 43 + col1 AS col2 FROM tab0 AS cor0
----
3762
4172
726

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5101
SELECT ALL CAST( - col1 AS SIGNED ) DIV + col2 FROM tab2 AS cor0 WHERE + col1 IS NOT NULL
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-5101
SELECT ALL CAST ( - col1 AS INTEGER ) / + col2 FROM tab2 AS cor0 WHERE + col1 IS NOT NULL
----
-1
-1
-2

query I rowsort
SELECT + col0 FROM tab0 WHERE ( + col0 ) IS NOT NULL
----
15
87
97

onlyif mysql # DIV for integer division: 
query I rowsort label-5103
SELECT + ( + col1 ) + - 64 DIV 46 FROM tab2
----
50
66
76

skipif mysql # not compatible
query I rowsort label-5103
SELECT + ( + col1 ) + - 64 / 46 FROM tab2
----
50
66
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5104
SELECT ALL - CAST( - col2 AS SIGNED ) FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-5104
SELECT ALL - CAST ( - col2 AS INTEGER ) FROM tab2
----
23
40
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5105
SELECT COUNT( * ) DIV 12 + 97 AS col0 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-5105
SELECT COUNT ( * ) / 12 + 97 AS col0 FROM tab0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5106
SELECT DISTINCT + COUNT( * ) col0 FROM tab0 cor0 CROSS JOIN tab2
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5106
SELECT DISTINCT + COUNT ( * ) col0 FROM tab0 cor0 CROSS JOIN tab2
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5107
SELECT ALL + col2 FROM tab0 cor0 WHERE NOT + col0 NOT BETWEEN 71 + - col1 * col0 AND + col2 + CAST( - col1 AS SIGNED ) * col2
----

skipif mysql # not compatible
query I rowsort label-5107
SELECT ALL + col2 FROM tab0 cor0 WHERE NOT + col0 NOT BETWEEN 71 + - col1 * col0 AND + col2 + CAST ( - col1 AS INTEGER ) * col2
----

query I rowsort
SELECT - + 99 AS col2 FROM tab2 cor0
----
-99
-99
-99

query I rowsort
SELECT col0 * - 32 FROM tab0 AS cor0
----
-2784
-3104
-480

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL IN ( col0 * 24 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col1 + + col1 IN ( 24 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 71 - - 5 > ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 + + 83 * 88 <> 37 + - 12
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - 35 + - col1 ) IS NULL
----

query I rowsort
SELECT ALL 63 - + col0 AS col2 FROM tab2 cor0
----
-1
-12
17

query I rowsort
SELECT col0 * 89 FROM tab2 WHERE - ( 88 ) IS NOT NULL
----
4094
5696
6675

query I rowsort
SELECT + col0 - - 49 AS col1 FROM tab0 WHERE ( - col2 * col0 + - col2 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 48 - - - 35 col0 FROM tab1
----
13

query I rowsort
SELECT ALL + col2 FROM tab2 WHERE NOT ( 14 ) <> NULL
----

query I rowsort
SELECT DISTINCT + 73 * col1 FROM tab1 WHERE NOT NULL IN ( + col0 + - 50 )
----

query I rowsort
SELECT ALL 82 * + - col2 * - 1 AS col2 FROM tab1
----
4838
5576
7872

query I rowsort
SELECT - col0 + col1 AS col1 FROM tab0 AS cor0 WHERE NOT 61 * + col2 NOT BETWEEN ( NULL ) AND ( NULL )
----

query I rowsort
SELECT ALL - col0 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( col2 + col2 * col2 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + 39 * + ( col0 ) + - 79 ) <> - 84
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 BETWEEN col2 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col2 + col2 / - col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + 22 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 20 * - col1 col1 FROM tab1 WHERE NOT ( NOT NULL <> ( NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5129
SELECT ALL COUNT( + 41 ) col0 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5129
SELECT ALL COUNT ( + 41 ) col0 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT ALL col0 AS col2 FROM tab1 WHERE NOT + col0 * + 4 + col1 IS NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query II rowsort label-5131
SELECT COUNT( * ), + COUNT( * ) AS col2 FROM tab2
----
3
3

skipif mysql # not compatible
query II rowsort label-5131
SELECT COUNT ( * ), + COUNT ( * ) AS col2 FROM tab2
----
3
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL <> NULL OR NOT - col0 <= ( NULL )
----

query I rowsort
SELECT ALL + ( - 17 ) * + col1 FROM tab0 AS cor0
----
-1377
-17
-357

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 47 + + 16 <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5135
SELECT DISTINCT MAX( ALL + col0 ) + COUNT( * ) * + COUNT( * ) AS col0 FROM tab0 AS cor0
----
106

skipif mysql # not compatible
query I rowsort label-5135
SELECT DISTINCT MAX ( ALL + col0 ) + COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
106

query I rowsort
SELECT ALL - + 59 FROM tab2 AS cor0
----
-59
-59
-59

query I rowsort
SELECT col0 * - ( + col0 ) FROM tab2
----
-2116
-4096
-5625

query III rowsort
SELECT * FROM tab1 WHERE ( - 96 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-5139
SELECT 92 * + COUNT( * ), COUNT( * ) col0 FROM tab1
----
276
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5139
SELECT 92 * + COUNT ( * ), COUNT ( * ) col0 FROM tab1
----
276
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5140
SELECT COUNT( * ) * ( + COUNT( * ) ) AS col2 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-5140
SELECT COUNT ( * ) * ( + COUNT ( * ) ) AS col2 FROM tab2
----
9

query I rowsort
SELECT 32 * - col1 + 47 FROM tab1
----
-113
-1457
-401

onlyif mysql # aggregate syntax: 
query I rowsort label-5142
SELECT COUNT( * ) + MIN( + + col1 ) AS col0 FROM tab0
----
4

skipif mysql # not compatible
query I rowsort label-5142
SELECT COUNT ( * ) + MIN ( + + col1 ) AS col0 FROM tab0
----
4

query I rowsort
SELECT col2 + - + col0 AS col0 FROM tab0
----
-77
2
32

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5144
SELECT ALL * FROM tab1 WHERE NOT - - col0 * + col2 BETWEEN NULL AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5144
SELECT ALL * FROM tab1 WHERE NOT - - col0 * + col2 BETWEEN NULL AND CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab0 WHERE col1 + col0 - - col0 * + col2 > ( + col0 ) * col1
----
97
1
99

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NOT ( ( - col2 + col2 ) IN ( col1 / col2 ) ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - ( + col1 ) * ( col1 ) + 81 NOT BETWEEN col1 AND + 43 * - 48
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 - col2 / col2 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5149
SELECT ALL - SUM( - + col2 ) + - 62 FROM tab0 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-5149
SELECT ALL - SUM ( - + col2 ) + - 62 FROM tab0 AS cor0
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5150
SELECT MIN( ALL CAST( - col0 AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-5150
SELECT MIN ( ALL CAST ( - col0 AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5151
SELECT - ( - COUNT( * ) ) + MAX( ALL col1 ) * + AVG ( ALL + CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 WHERE NULL >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5151
SELECT - ( - COUNT ( * ) ) + MAX ( ALL col1 ) * + AVG ( ALL + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 WHERE NULL >= NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - + ( - + 15 ) > ( 19 + + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 20 * + + 56 AS col1 FROM tab1
----
1120
1120
1120

query I rowsort
SELECT + ( + 4 ) FROM tab2 WHERE - 70 * - - ( + 49 ) IN ( - 15 )
----

query I rowsort
SELECT DISTINCT - 21 * + 7 AS col2 FROM tab2
----
-147

query I rowsort
SELECT DISTINCT - ( col1 ) + + 8 + + + 60 FROM tab0 AS cor0
----
-13
47
67

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) IN ( - 19 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5158
SELECT ALL + - COUNT( * ) + - + MIN( 24 ) AS col2 FROM tab2 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-5158
SELECT ALL + - COUNT ( * ) + - + MIN ( 24 ) AS col2 FROM tab2 AS cor0
----
-27

query I rowsort
SELECT DISTINCT + + col0 * - - col1 + + + col0 FROM tab0 AS cor0
----
1230
1914
194

onlyif mysql # aggregate syntax: 
query I rowsort label-5160
SELECT DISTINCT + COUNT( * ) + + + COUNT( * ) FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-5160
SELECT DISTINCT + COUNT ( * ) + + + COUNT ( * ) FROM tab1 AS cor0
----
6

query I rowsort
SELECT - col1 + + - col1 FROM tab2 AS cor0
----
-102
-134
-154

query I rowsort
SELECT ALL col0 + col2 - - 17 AS col1 FROM tab2 AS cor0
----
121
150
86

onlyif mysql # DIV for integer division: 
query I rowsort label-5163
SELECT 94 DIV + 74 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5163
SELECT 94 / + 74 FROM tab0 AS cor0
----
1
1
1

query II rowsort
SELECT - col0 AS col1, + col0 - 98 AS col0 FROM tab1 AS cor0
----
-51
-47
-85
-13
-91
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-5165
SELECT - + COUNT( * ) AS col2, 23 FROM tab2 AS cor0
----
-3
23

skipif mysql # not compatible
query II rowsort label-5165
SELECT - + COUNT ( * ) AS col2, 23 FROM tab2 AS cor0
----
-3
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col0, - col1 FROM tab1
----
14
-14
47
-47
5
-5

query II rowsort
SELECT - 38 AS col1, col2 * col1 AS col2 FROM tab1
----
-38
1344
-38
295
-38
3196

query I rowsort
SELECT DISTINCT - col2 * - + 11 FROM tab1
----
1056
649
748

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5169
SELECT ALL col2 AS col1 FROM tab1 WHERE + 15 * - 27 + col1 * + col0 + + ( CAST( NULL AS SIGNED ) ) NOT BETWEEN + 5 * 68 AND - col1 * - CAST( 95 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-5169
SELECT ALL col2 AS col1 FROM tab1 WHERE + 15 * - 27 + col1 * + col0 + + ( CAST ( NULL AS INTEGER ) ) NOT BETWEEN + 5 * 68 AND - col1 * - CAST ( 95 AS INTEGER )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - + col2 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - col2 * 33 AS col1 FROM tab0
----
-1551
-3267
-330

query I rowsort
SELECT DISTINCT - - col1 * + - col2 FROM tab1 WHERE NULL BETWEEN + col0 AND + col1 + - col2
----

query I rowsort
SELECT DISTINCT + 79 FROM tab2 AS cor0 WHERE 96 IS NOT NULL
----
79

query II rowsort
SELECT col1 + - - col1, + col2 + 62 + col0 - - 0 * + 81 AS col1 FROM tab2 AS cor0
----
102
131
134
195
154
166

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - ( col2 ) + 51, 16 col1 FROM tab2 AS cor0
----
-7
16
11
16
28
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5176
SELECT - COUNT( * ) + - 85 - + ( - CAST( NULL AS SIGNED ) ) - + MAX( - col1 ) / MAX( + col2 ) + AVG ( DISTINCT col2 + col2 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5176
SELECT - COUNT ( * ) + - 85 - + ( - CAST ( NULL AS INTEGER ) ) - + MAX ( - col1 ) / MAX ( + col2 ) + AVG ( DISTINCT col2 + col2 ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - col0 + 78 FROM tab1 AS cor0
----
-13
-7
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5178
SELECT ALL col2 + + - col0 * - 46 / + col2 + - ( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5178
SELECT ALL col2 + + - col0 * - 46 / + col2 + - ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - col1 + col1 AS col2 FROM tab0 WHERE - col2 * + col2 <> col0
----
162
2
42

onlyif mysql # aggregate syntax: 
query I rowsort label-5180
SELECT ALL COUNT( + col0 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5180
SELECT ALL COUNT ( + col0 ) AS col2 FROM tab1
----
3

query I rowsort
SELECT 79 * - col1 FROM tab0
----
-1659
-6399
-79

query I rowsort
SELECT DISTINCT 24 - 35 FROM tab1 WHERE NOT - 34 > ( 0 )
----
-11

query III rowsort
SELECT * FROM tab0 WHERE ( - col1 ) BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5184
SELECT 56 AS col2, + COUNT( + 38 ) FROM tab2
----
56
3

skipif mysql # not compatible
query II rowsort label-5184
SELECT 56 AS col2, + COUNT ( + 38 ) FROM tab2
----
56
3

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL > col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5186
SELECT ALL - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( ( NULL ) >= 53 )
----
0

skipif mysql # not compatible
query I rowsort label-5186
SELECT ALL - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( ( NULL ) >= 53 )
----
0

query I rowsort
SELECT + 36 * + + col2 FROM tab2
----
1440
2088
828

onlyif mysql # aggregate syntax: 
query I rowsort label-5188
SELECT ALL - - ( + COUNT( DISTINCT col1 ) ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5188
SELECT ALL - - ( + COUNT ( DISTINCT col1 ) ) AS col1 FROM tab1 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5189
SELECT col2 DIV - col1 - + 15 AS col0 FROM tab0 cor0
----
-114
-15
-15

skipif mysql # not compatible
query I rowsort label-5189
SELECT col2 / - col1 - + 15 AS col0 FROM tab0 cor0
----
-114
-15
-15

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT col2 NOT IN ( - - col1, col1 + - ( + ( col0 ) ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5191
SELECT ALL + + CAST( + col2 AS SIGNED ) AS col0 FROM tab1 cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-5191
SELECT ALL + + CAST ( + col2 AS INTEGER ) AS col0 FROM tab1 cor0
----
59
68
96

query I rowsort
SELECT - - col1 + - col1 FROM tab1 AS cor0 WHERE NOT - 62 + - - col1 = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - col2 * - + col0 ) IN ( - col2 - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5194
SELECT ALL COUNT( * ) * 80 AS col0 FROM tab2
----
240

skipif mysql # not compatible
query I rowsort label-5194
SELECT ALL COUNT ( * ) * 80 AS col0 FROM tab2
----
240

query I rowsort
SELECT DISTINCT + 3 * + - ( - - col2 ) FROM tab2
----
-120
-174
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-5196
SELECT SUM( - 77 ) FROM tab0
----
-231

skipif mysql # not compatible
query I rowsort label-5196
SELECT SUM ( - 77 ) FROM tab0
----
-231

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5197
SELECT CAST( - 75 AS SIGNED ) col0 FROM tab0
----
-75
-75
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5197
SELECT CAST ( - 75 AS INTEGER ) col0 FROM tab0
----
-75
-75
-75

query II rowsort
SELECT 36 AS col1, - col2 FROM tab1
----
36
-59
36
-68
36
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-5199
SELECT + COUNT( * ) AS col1 FROM tab0 WHERE NOT 15 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5199
SELECT + COUNT ( * ) AS col1 FROM tab0 WHERE NOT 15 IS NULL
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( + 59 ) AND NULL
----

query I rowsort
SELECT ALL - 0 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + + 22 * 92 FROM tab1 cor0
----
2024
2024
2024

onlyif mysql # DIV for integer division: 
query I rowsort label-5203
SELECT 46 DIV + - col0 FROM tab0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-5203
SELECT 46 / + - col0 FROM tab0
----
-3
0
0

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - + 6 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT col2 AS col2, 41 FROM tab1
----
59
41
68
41
96
41

query I rowsort
SELECT ALL + 53 * - col2 * col0 AS col0 FROM tab0
----
-37365
-46110
-508959

onlyif mysql # aggregate syntax: 
query I rowsort label-5207
SELECT DISTINCT 39 + COUNT( * ) AS col0 FROM tab0 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-5207
SELECT DISTINCT 39 + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
42

query I rowsort
SELECT DISTINCT - 2 + + col2 AS col0 FROM tab2 AS cor0
----
21
38
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5209
SELECT 73 / 93 * - CAST( NULL AS SIGNED ) / - col1 + + 36 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5209
SELECT 73 / 93 * - CAST ( NULL AS INTEGER ) / - col1 + + 36 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL + col1 + + 0, - col0 * + col2 * col1 AS col1 FROM tab1
----
14
-68544
47
-290836
5
-25075

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( col2 < + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5212
SELECT + ( + COUNT( * ) ) + - 1 AS col2 FROM tab2
----
2

skipif mysql # not compatible
query I rowsort label-5212
SELECT + ( + COUNT ( * ) ) + - 1 AS col2 FROM tab2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5213
SELECT - COUNT( * ) + COUNT( * ) col2 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5213
SELECT - COUNT ( * ) + COUNT ( * ) col2 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5214
SELECT + MAX( 21 ) * - COUNT( * ) + - 20 FROM tab0
----
-83

skipif mysql # not compatible
query I rowsort label-5214
SELECT + MAX ( 21 ) * - COUNT ( * ) + - 20 FROM tab0
----
-83

onlyif mysql # DIV for integer division: 
query II rowsort label-5215
SELECT - - col2 DIV - + col2 AS col0, col1 * col2 AS col2 FROM tab0 AS cor0
----
-1
210
-1
3807
-1
99

skipif mysql # not compatible
query II rowsort label-5215
SELECT - - col2 / - + col2 AS col0, col1 * col2 AS col2 FROM tab0 AS cor0
----
-1
210
-1
3807
-1
99

query I rowsort
SELECT DISTINCT - + col1 + - + col0 - - - col2 AS col0 FROM tab1 AS cor0
----
-149
-161
-206

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - col2 ) BETWEEN 40 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col0 - + col1 AS col2 FROM tab2 AS cor0
----
-13
-5
8

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL = col2 * + col2
----

query I rowsort
SELECT ALL + col0 - col1 + col2 * + 93 + col0 AS col1 FROM tab1
----
5652
6459
9016

query I rowsort
SELECT 86 - 97 AS col2 FROM tab1
----
-11
-11
-11

query I rowsort
SELECT DISTINCT - + 61 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-61

query II rowsort
SELECT ALL - 37, - col0 AS col0 FROM tab2 AS cor0
----
-37
-46
-37
-64
-37
-75

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5224
SELECT - 55 * - col2 + - CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE NOT + CAST( NULL AS DECIMAL ) NOT BETWEEN - 66 / + col0 - - + 68 * + - col1 AND - 52
----

skipif mysql # not compatible
query I rowsort label-5224
SELECT - 55 * - col2 + - CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE NOT + CAST ( NULL AS REAL ) NOT BETWEEN - 66 / + col0 - - + 68 * + - col1 AND - 52
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5225
SELECT ALL + MIN( DISTINCT + + col1 ) FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-5225
SELECT ALL + MIN ( DISTINCT + + col1 ) FROM tab1 AS cor0
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5226
SELECT + CAST( + - COUNT( * ) AS SIGNED ) * - CAST( + MIN( ALL + col2 ) AS SIGNED ) FROM tab0
----
30

skipif mysql # not compatible
query I rowsort label-5226
SELECT + CAST ( + - COUNT ( * ) AS INTEGER ) * - CAST ( + MIN ( ALL + col2 ) AS INTEGER ) FROM tab0
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5227
SELECT - 79 DIV + ( SUM( + CAST( + - col1 AS SIGNED ) ) ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5227
SELECT - 79 / + ( SUM ( + CAST ( + - col1 AS INTEGER ) ) ) AS col0 FROM tab2
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 + - - 15 < + 0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5229
SELECT ( - 93 ) AS col2, col2 + CAST( NULL AS SIGNED ) + - + col1 AS col2 FROM tab2
----
-93
NULL
-93
NULL
-93
NULL

skipif mysql # not compatible
query II rowsort label-5229
SELECT ( - 93 ) AS col2, col2 + CAST ( NULL AS INTEGER ) + - + col1 AS col2 FROM tab2
----
-93
NULL
-93
NULL
-93
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5230
SELECT ALL + COUNT( 36 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5230
SELECT ALL + COUNT ( 36 ) FROM tab1
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5231
SELECT ALL - MAX( + CAST( col2 AS SIGNED ) ) FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-5231
SELECT ALL - MAX ( + CAST ( col2 AS INTEGER ) ) FROM tab2
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-5232
SELECT ALL - col1 DIV - 44 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5232
SELECT ALL - col1 / - 44 FROM tab2
----
1
1
1

query I rowsort
SELECT - 70 * ( - - col0 ) FROM tab2 AS cor0
----
-3220
-4480
-5250

onlyif mysql # aggregate syntax: 
query I rowsort label-5234
SELECT DISTINCT - COUNT( * ) * + MIN( DISTINCT - + 54 ) AS col2 FROM tab1 AS cor0
----
162

skipif mysql # not compatible
query I rowsort label-5234
SELECT DISTINCT - COUNT ( * ) * + MIN ( DISTINCT - + 54 ) AS col2 FROM tab1 AS cor0
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-5235
SELECT + + 31 * - COUNT( * ) col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-279

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5235
SELECT + + 31 * - COUNT ( * ) col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-279

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5236
SELECT DISTINCT + - CAST( - COUNT( - CAST( + col1 AS SIGNED ) ) AS SIGNED ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5236
SELECT DISTINCT + - CAST ( - COUNT ( - CAST ( + col1 AS INTEGER ) ) AS INTEGER ) FROM tab0 cor0
----
3

query I rowsort
SELECT DISTINCT + col2 * 3 + + col0 AS col2 FROM tab1 AS cor0
----
262
295
339

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5238
SELECT + COUNT( * ) * - 87 + + + CAST( NULL AS SIGNED ) + 16 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5238
SELECT + COUNT ( * ) * - 87 + + + CAST ( NULL AS INTEGER ) + 16 AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5239
SELECT CAST( NULL AS SIGNED ) + - - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5239
SELECT CAST ( NULL AS INTEGER ) + - - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5240
SELECT + 2 + + col1 DIV + col2 + - col0 AS col1 FROM tab2 AS cor0
----
-42
-61
-72

skipif mysql # not compatible
query I rowsort label-5240
SELECT + 2 + + col1 / + col2 + - col0 AS col1 FROM tab2 AS cor0
----
-42
-61
-72

query I rowsort
SELECT - - col2 + - 33 AS col1 FROM tab1 AS cor0
----
26
35
63

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NULL <> - col1
----

query I rowsort
SELECT DISTINCT + col0 + + 81 * + 94 AS col2 FROM tab2 AS cor0
----
7660
7678
7689

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL >= + col2 * + + 2
----

query I rowsort
SELECT ALL - 15 + 36 AS col1 FROM tab1
----
21
21
21

onlyif mysql # aggregate syntax: 
query I rowsort label-5246
SELECT - COUNT( * ) AS col2 FROM tab2 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5246
SELECT - COUNT ( * ) AS col2 FROM tab2 WHERE NULL IS NULL
----
-3

query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( - + 84 - + + col1, - 74, + col1 )
----

query I rowsort
SELECT DISTINCT ( - + col0 ) AS col1 FROM tab2
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-5249
SELECT + COUNT( * ) * + + COUNT( * ) - - 94 + + 92 AS col0 FROM tab1
----
195

skipif mysql # not compatible
query I rowsort label-5249
SELECT + COUNT ( * ) * + + COUNT ( * ) - - 94 + + 92 AS col0 FROM tab1
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-5250
SELECT ALL + COUNT( * ) + + 69 FROM tab1
----
72

skipif mysql # not compatible
query I rowsort label-5250
SELECT ALL + COUNT ( * ) + + 69 FROM tab1
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5251
SELECT CAST( NULL AS SIGNED ) - + 26 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5251
SELECT CAST ( NULL AS INTEGER ) - + 26 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( ( + + col1 ) ) col2 FROM tab1
----
14
47
5

query I rowsort
SELECT DISTINCT 70 + + + col0 AS col2 FROM tab0
----
157
167
85

onlyif mysql # DIV for integer division: 
query I rowsort label-5254
SELECT - col2 + + + 39 DIV col0 AS col1 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-5254
SELECT - col2 + + + 39 / col0 AS col1 FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5255
SELECT COUNT( * ) + - - 2 * + 46 AS col2 FROM tab1 AS cor0
----
95

skipif mysql # not compatible
query I rowsort label-5255
SELECT COUNT ( * ) + - - 2 * + 46 AS col2 FROM tab1 AS cor0
----
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - ( - col0 ) * + col1 + col0 + - ( - 31 ) col2, 83 + - - 62 col1 FROM tab2 AS cor0
----
-2269
145
-4833
145
-4919
145

query I rowsort
SELECT DISTINCT + col0 + + - col1 FROM tab1 AS cor0
----
37
44
80

query II rowsort
SELECT - col2 * + col2 * + ( - 13 ) AS col0, 68 FROM tab1 WHERE NOT + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5259
SELECT COUNT( * ) * + 5 FROM tab2
----
15

skipif mysql # not compatible
query I rowsort label-5259
SELECT COUNT ( * ) * + 5 FROM tab2
----
15

query I rowsort
SELECT - col1 AS col2 FROM tab2 AS cor0 WHERE - 75 >= NULL AND NOT col1 NOT BETWEEN - 13 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5261
SELECT DISTINCT + - 49 * + COUNT( * ) - - - MAX( + - col0 ) FROM tab2 AS cor0 WHERE NOT col2 + + + col2 IS NULL
----
-101

skipif mysql # not compatible
query I rowsort label-5261
SELECT DISTINCT + - 49 * + COUNT ( * ) - - - MAX ( + - col0 ) FROM tab2 AS cor0 WHERE NOT col2 + + + col2 IS NULL
----
-101

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + ( - 53 ) col2, 88 + 1 * - col2 - col1 FROM tab1 AS cor0
----
-53
-22
-53
-27
-53
24

query II rowsort
SELECT ALL + - col0, - 28 FROM tab1 AS cor0 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5264
SELECT DISTINCT - MAX( DISTINCT + - 97 ) FROM tab1 cor0
----
97

skipif mysql # not compatible
query I rowsort label-5264
SELECT DISTINCT - MAX ( DISTINCT + - 97 ) FROM tab1 cor0
----
97

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5265
SELECT + + col2 FROM tab1 WHERE NOT CAST( NULL AS DECIMAL ) IS NOT NULL
----
59
68
96

skipif mysql # not compatible
query I rowsort label-5265
SELECT + + col2 FROM tab1 WHERE NOT CAST ( NULL AS REAL ) IS NOT NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5266
SELECT - ( - + ( COUNT( * ) ) ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5266
SELECT - ( - + ( COUNT ( * ) ) ) AS col1 FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5267
SELECT + col2 * - CAST( + col2 AS SIGNED ) AS col1 FROM tab1 WHERE NOT ( + col2 IS NOT NULL )
----

skipif mysql # not compatible
query I rowsort label-5267
SELECT + col2 * - CAST ( + col2 AS INTEGER ) AS col1 FROM tab1 WHERE NOT ( + col2 IS NOT NULL )
----

query II rowsort
SELECT + 8 AS col0, - col2 FROM tab2
----
8
-23
8
-40
8
-58

query III rowsort
SELECT * FROM tab0 WHERE NOT - ( 88 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5270
SELECT - MAX( ALL col0 ) AS col2 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-5270
SELECT - MAX ( ALL col0 ) AS col2 FROM tab2
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-5271
SELECT COUNT( * ) * + ( - 60 ) AS col0 FROM tab2
----
-180

skipif mysql # not compatible
query I rowsort label-5271
SELECT COUNT ( * ) * + ( - 60 ) AS col0 FROM tab2
----
-180

onlyif mysql # aggregate syntax: 
query I rowsort label-5272
SELECT - MIN( 90 ) FROM tab0
----
-90

skipif mysql # not compatible
query I rowsort label-5272
SELECT - MIN ( 90 ) FROM tab0
----
-90

query I rowsort
SELECT ALL ( + 3 ) FROM tab0
----
3
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5274
SELECT DISTINCT - 81 + - 40 * - - COUNT( * ) FROM tab2
----
-201

skipif mysql # not compatible
query I rowsort label-5274
SELECT DISTINCT - 81 + - 40 * - - COUNT ( * ) FROM tab2
----
-201

onlyif mysql # DIV for integer division: 
query II rowsort label-5275
SELECT DISTINCT col1 AS col1, 94 DIV - col0 - + + 54 + + col0 * - 18 FROM tab1 AS cor0
----
14
-973
47
-1693
5
-1585

skipif mysql # not compatible
query II rowsort label-5275
SELECT DISTINCT col1 AS col1, 94 / - col0 - + + 54 + + col0 * - 18 FROM tab1 AS cor0
----
14
-973
47
-1693
5
-1585

query I rowsort
SELECT 97 * - 4 AS col1 FROM tab0 AS cor0
----
-388
-388
-388

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 col2, ( + col2 ) AS col2 FROM tab1 AS cor0
----
-14
96
-47
68
-5
59

query II rowsort
SELECT DISTINCT + 59 * + - col1 AS col0, + col2 * + + 90 AS col0 FROM tab1
----
-2773
6120
-295
5310
-826
8640

query II rowsort
SELECT col0 * - 54 AS col1, col1 FROM tab1
----
-2754
14
-4590
5
-4914
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5280
SELECT ALL + 16 * + MIN( - + col0 ) AS col0 FROM tab1 AS cor0
----
-1456

skipif mysql # not compatible
query I rowsort label-5280
SELECT ALL + 16 * + MIN ( - + col0 ) AS col0 FROM tab1 AS cor0
----
-1456

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5281
SELECT ALL - CAST( NULL AS SIGNED ) + + 83 + + COUNT( ALL + 49 ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5281
SELECT ALL - CAST ( NULL AS INTEGER ) + + 83 + + COUNT ( ALL + 49 ) FROM tab2 cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5282
SELECT ALL - COUNT( * ) DIV - - SUM( DISTINCT + 93 ) + - COUNT( - col0 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5282
SELECT ALL - COUNT ( * ) / - - SUM ( DISTINCT + 93 ) + - COUNT ( - col0 ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT - 75 AS col2 FROM tab1 AS cor0 WHERE ( col1 ) * col2 / - - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5284
SELECT DISTINCT + COUNT( * ) + - 77 AS col2 FROM tab1 cor0
----
-74

skipif mysql # not compatible
query I rowsort label-5284
SELECT DISTINCT + COUNT ( * ) + - 77 AS col2 FROM tab1 cor0
----
-74

query II rowsort
SELECT DISTINCT 88 + + col1 AS col0, col2 FROM tab1 AS cor0
----
102
96
135
68
93
59

query I rowsort
SELECT col0 * + col2 + - col1 FROM tab1 AS cor0
----
4882
5010
6141

onlyif mysql # aggregate syntax: 
query I rowsort label-5287
SELECT - COUNT( * ) + + - SUM( + 5 ) FROM tab1 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-5287
SELECT - COUNT ( * ) + + - SUM ( + 5 ) FROM tab1 AS cor0
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-5288
SELECT DISTINCT - COUNT( * ) - - COUNT( * ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5288
SELECT DISTINCT - COUNT ( * ) - - COUNT ( * ) FROM tab2 AS cor0
----
0

query II rowsort
SELECT DISTINCT col2, + col0 FROM tab1
----
59
85
68
91
96
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 - + col2 * + 50 * - 26 + + - col1 col1 FROM tab2
----
29900
52000
75400

query I rowsort
SELECT 63 * - 17 * + 21 FROM tab2
----
-22491
-22491
-22491

onlyif mysql # aggregate syntax: 
query I rowsort label-5292
SELECT DISTINCT - MIN( col1 ) * - COUNT( * ) FROM tab2
----
153

skipif mysql # not compatible
query I rowsort label-5292
SELECT DISTINCT - MIN ( col1 ) * - COUNT ( * ) FROM tab2
----
153

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab1 WHERE + 59 * - - col0 NOT IN ( + + 52 + + 95 ) OR 84 IS NOT NULL
----
59
68
96

query I rowsort
SELECT DISTINCT 15 + 94 + - - col1 - - + ( col0 ) * + 84 AS col0 FROM tab1
----
4407
7254
7800

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 75, 23 - + + col1 * - + ( - - col2 ) * + ( - + col0 ) * col2 + col0 col1 FROM tab2 AS cor0
----
75
-1240965
75
-16904002
75
-7884713

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col0 FROM tab1 AS cor0 WHERE NOT - col1 NOT IN ( + + 5, - col1 * + col2 + + + col2, + + col0, - col1, col0 )
----
-51
-85
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-5297
SELECT DISTINCT 99 DIV 52 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5297
SELECT DISTINCT 99 / 52 FROM tab2 AS cor0
----
1

query I rowsort
SELECT - 67 * + + col0 FROM tab1 AS cor0
----
-3417
-5695
-6097

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL = 10
----

query II rowsort
SELECT DISTINCT + 9, - 69 AS col0 FROM tab0 AS cor0
----
9
-69

query I rowsort
SELECT 75 FROM tab0 AS cor0 WHERE NOT NULL IN ( - 90 / + 27, col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL <> col1 * - + col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5303
SELECT ALL 75, 96 * - - COUNT( * ) + 6 AS col2 FROM tab1 AS cor0
----
75
294

skipif mysql # not compatible
query II rowsort label-5303
SELECT ALL 75, 96 * - - COUNT ( * ) + 6 AS col2 FROM tab1 AS cor0
----
75
294

query I rowsort
SELECT DISTINCT - 72 AS col0 FROM tab1
----
-72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 0 col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - + 35 FROM tab1 AS cor0
----
-35
-35
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-5307
SELECT DISTINCT + - col1 DIV 15 - col2 DIV + - col2 + - + col1 col1 FROM tab1 AS cor0
----
-13
-4
-49

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5307
SELECT DISTINCT + - col1 / 15 - col2 / + - col2 + - + col1 col1 FROM tab1 AS cor0
----
-13
-4
-49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 66 * - + ( + 33 ) col1 FROM tab2 WHERE NOT 58 * + - col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 + - 54 AS col0 FROM tab0
----
-33
-53
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 46 col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39

onlyif mysql # aggregate syntax: 
query I rowsort label-5311
SELECT + + 52 + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
61

skipif mysql # not compatible
query I rowsort label-5311
SELECT + + 52 + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
61

query I rowsort
SELECT DISTINCT - col1 * + 38 - - 91 + 69 - - - col0 * 73 + + col2 + + col1 FROM tab0 AS cor0
----
-3885
-6859
-6958

onlyif mysql # aggregate syntax: 
query I rowsort label-5313
SELECT - MAX( ALL + col0 ) col2 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5313
SELECT - MAX ( ALL + col0 ) col2 FROM tab1 AS cor0
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5314
SELECT ALL + col2 + - 34 + CAST( + - col2 AS SIGNED ) * - - col1 FROM tab2 AS cor0
----
-1184
-3074
-3862

skipif mysql # not compatible
query I rowsort label-5314
SELECT ALL + col2 + - 34 + CAST ( + - col2 AS INTEGER ) * - - col1 FROM tab2 AS cor0
----
-1184
-3074
-3862

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5315
SELECT ALL 41 * - col2 * - col2 + + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5315
SELECT ALL 41 * - col2 * - col2 + + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5316
SELECT + - COUNT( DISTINCT + col0 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5316
SELECT + - COUNT ( DISTINCT + col0 ) FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5317
SELECT DISTINCT - MIN( + + col0 ) + - + CAST( - 19 AS SIGNED ) + + + COUNT( * ) + - - CAST( NULL AS SIGNED ) * + COUNT( * ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5317
SELECT DISTINCT - MIN ( + + col0 ) + - + CAST ( - 19 AS INTEGER ) + + + COUNT ( * ) + - - CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5318
SELECT DISTINCT MIN( - col2 ) - - 23 AS col2 FROM tab2
----
-35

skipif mysql # not compatible
query I rowsort label-5318
SELECT DISTINCT MIN ( - col2 ) - - 23 AS col2 FROM tab2
----
-35

query III rowsort
SELECT * FROM tab2 WHERE 2 >= + + ( - 35 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 - + 17 AS col1 FROM tab0
----
-7
30
82

query I rowsort
SELECT DISTINCT col2 * + col1 * - col2 AS col0 FROM tab0
----
-178929
-2100
-9801

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 3 NOT BETWEEN + + 60 AND + col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5323
SELECT DISTINCT + CAST( + 68 AS SIGNED ) DIV ( + + 46 ) DIV - 39, COUNT( * ) AS col1 FROM tab1 AS cor0
----
0
3

skipif mysql # not compatible
query II rowsort label-5323
SELECT DISTINCT + CAST ( + 68 AS INTEGER ) / ( + + 46 ) / - 39, COUNT ( * ) AS col1 FROM tab1 AS cor0
----
0
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5324
SELECT - 51 DIV - 65 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5324
SELECT - 51 / - 65 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL + col0 * ( - + col2 ) FROM tab0
----
-705
-870
-9603

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5326
SELECT DISTINCT SUM( CAST( NULL AS SIGNED ) ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5326
SELECT DISTINCT SUM ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT - 15 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1172c9a62bdad7db0def9205c06ee1f2

query I rowsort
SELECT ALL - + 68 AS col2 FROM tab0 cor0
----
-68
-68
-68

query I rowsort
SELECT - 55 AS col0 FROM tab2 AS cor0 WHERE NOT ( ( NOT NULL IS NULL ) )
----
-55
-55
-55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 50 col2 FROM tab2 AS cor0
----
-50
-50
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-5331
SELECT DISTINCT - + 1 + - col1 DIV - col1 + - col1 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-5331
SELECT DISTINCT - + 1 + - col1 / - col1 + - col1 FROM tab2 AS cor0
----
-51
-67
-77

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 20 * col2 / col0 BETWEEN - + col1 AND ( + + col0 / col1 * - col1 + 27 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5333
SELECT ALL ( + ( - CAST( NULL AS SIGNED ) ) ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5333
SELECT ALL ( + ( - CAST ( NULL AS INTEGER ) ) ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5334
SELECT ALL 55 * + - 79 * ( - - 40 ) * + COUNT( * ) FROM tab2
----
-521400

skipif mysql # not compatible
query I rowsort label-5334
SELECT ALL 55 * + - 79 * ( - - 40 ) * + COUNT ( * ) FROM tab2
----
-521400

query I rowsort
SELECT + col1 * + col2 + - 97 AS col2 FROM tab1 WHERE NOT col1 + + + 41 + - col2 - + col0 * - col0 <> + + col2 + + col0 * - + ( - + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5336
SELECT col1 DIV + + col0 FROM tab0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-5336
SELECT col1 / + + col0 FROM tab0
----
0
0
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5337
SELECT DISTINCT + SUM( - - col1 ) col2 FROM tab0
----
103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5337
SELECT DISTINCT + SUM ( - - col1 ) col2 FROM tab0
----
103

query I rowsort
SELECT DISTINCT + 15 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT + col1 * - - col0 + col0 * - 53 FROM tab0 cor0
----
-2784
-5044
420

query II rowsort
SELECT - col1 * - 47, col1 AS col1 FROM tab0
----
3807
81
47
1
987
21

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( 60 + - 4 ) IS NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

query I rowsort
SELECT - - 32 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to d30a2acbf33c88274474306936d3227b

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5343
SELECT ALL + 76 + CAST( NULL AS SIGNED ) * + 49 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5343
SELECT ALL + 76 + CAST ( NULL AS INTEGER ) * + 49 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 97 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

onlyif mysql # DIV for integer division: 
query I rowsort label-5345
SELECT ALL - 47 + - 64 - - col1 DIV - col0 FROM tab2 AS cor0
----
-111
-112
-112

skipif mysql # not compatible
query I rowsort label-5345
SELECT ALL - 47 + - 64 - - col1 / - col0 FROM tab2 AS cor0
----
-111
-112
-112

onlyif mysql # DIV for integer division: 
query I rowsort label-5346
SELECT col0 - + - col2 DIV - + col0 FROM tab0 AS cor0
----
12
87
96

skipif mysql # not compatible
query I rowsort label-5346
SELECT col0 - + - col2 / - + col0 FROM tab0 AS cor0
----
12
87
96

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 BETWEEN - col2 AND NULL
----

query II rowsort
SELECT DISTINCT col2 * + + 91, col2 FROM tab2 AS cor0
----
2093
23
3640
40
5278
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5349
SELECT + COUNT( * ) + + 59 + - MAX( 65 ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5349
SELECT + COUNT ( * ) + + 59 + - MAX ( 65 ) AS col0 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT col0 * - 29 + + 6 AS col2 FROM tab1 cor0
----
-1473
-2459
-2633

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5351
SELECT ALL - - COUNT( * ) * + - COUNT( * ) DIV - COUNT( + col2 ) + + COUNT( * ) AS col0 FROM tab0 cor0
----
6

skipif mysql # not compatible
query I rowsort label-5351
SELECT ALL - - COUNT ( * ) * + - COUNT ( * ) / - COUNT ( + col2 ) + + COUNT ( * ) AS col0 FROM tab0 cor0
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-5352
SELECT - 64 DIV + col0 + + col1 + - col1 + + col2 col1 FROM tab0 AS cor0
----
10
43
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5352
SELECT - 64 / + col0 + + col1 + - col1 + + col2 col1 FROM tab0 AS cor0
----
10
43
99

query I rowsort
SELECT ALL 79 AS col0 FROM tab0 cor0 WHERE - col2 IS NULL
----

query I rowsort
SELECT DISTINCT - + 66 + - col2 + - col2 AS col1 FROM tab0 AS cor0
----
-160
-264
-86

query I rowsort
SELECT col2 + + 71 - + + 8 FROM tab1 AS cor0
----
122
131
159

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NULL >= 28 + + + ( 67 )
----

query I rowsort
SELECT + 54 + - + col2 AS col2 FROM tab1
----
-14
-42
-5

query I rowsort
SELECT ALL col0 * + col2 - - - col1 * - + col1 + - 64 FROM tab1
----
4976
5028
8333

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL < + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5360
SELECT DISTINCT - COUNT( * ) - - 52 - - COUNT( * ) * COUNT( * ) FROM tab1
----
58

skipif mysql # not compatible
query I rowsort label-5360
SELECT DISTINCT - COUNT ( * ) - - 52 - - COUNT ( * ) * COUNT ( * ) FROM tab1
----
58

query I rowsort
SELECT 22 * + + 82 AS col2 FROM tab1
----
1804
1804
1804

query I rowsort
SELECT ALL - col0 / + - col2 * + + 79 FROM tab0 WHERE NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5363
SELECT COUNT( * ) AS col2, - COUNT( * ) FROM tab2
----
3
-3

skipif mysql # not compatible
query II rowsort label-5363
SELECT COUNT ( * ) AS col2, - COUNT ( * ) FROM tab2
----
3
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5364
SELECT * FROM tab2 WHERE NOT + CAST( - - ( - 84 ) AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5364
SELECT * FROM tab2 WHERE NOT + CAST ( - - ( - 84 ) AS INTEGER ) IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5365
SELECT DISTINCT CAST( NULL AS DECIMAL ), col2 FROM tab1
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-5365
SELECT DISTINCT CAST ( NULL AS REAL ), col2 FROM tab1
----
NULL
59
NULL
68
NULL
96

onlyif mysql # DIV for integer division: 
query I rowsort label-5366
SELECT DISTINCT - 78 DIV + col2 col1 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5366
SELECT DISTINCT - 78 / + col2 col1 FROM tab1 AS cor0
----
-1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5367
SELECT - 95 DIV + + col2 FROM tab0 AS cor0
----
-2
-9
0

skipif mysql # not compatible
query I rowsort label-5367
SELECT - 95 / + + col2 FROM tab0 AS cor0
----
-2
-9
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5368
SELECT + COUNT( * ), - COUNT( ALL - 34 ) AS col0 FROM tab2 cor0
----
3
-3

skipif mysql # not compatible
query II rowsort label-5368
SELECT + COUNT ( * ), - COUNT ( ALL - 34 ) AS col0 FROM tab2 cor0
----
3
-3

query II rowsort
SELECT col0 * - 84 * 54, col2 AS col0 FROM tab2 AS cor0
----
-208656
23
-290304
40
-340200
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - + col1 ) col2 FROM tab0 cor0
----
1
21
81

query I rowsort
SELECT DISTINCT + ( + 55 ) * - + 26 FROM tab2 AS cor0
----
-1430

query I rowsort
SELECT + col1 AS col2 FROM tab1 WHERE NOT - 71 NOT BETWEEN - + col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5373
SELECT ALL + + MIN( ALL + 24 ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
24

skipif mysql # not compatible
query I rowsort label-5373
SELECT ALL + + MIN ( ALL + 24 ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
24

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5375
SELECT DISTINCT COUNT( * ) * + MAX( + col2 ) AS col1 FROM tab0
----
297

skipif mysql # not compatible
query I rowsort label-5375
SELECT DISTINCT COUNT ( * ) * + MAX ( + col2 ) AS col1 FROM tab0
----
297

query I rowsort
SELECT ALL col1 * 11 * - 46 FROM tab0
----
-10626
-40986
-506

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5377
SELECT - - CAST( + - col1 AS SIGNED ) FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-5377
SELECT - - CAST ( + - col1 AS INTEGER ) FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5378
SELECT DISTINCT - 64 DIV + CAST( + col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-1
-2

skipif mysql # not compatible
query I rowsort label-5378
SELECT DISTINCT - 64 / + CAST ( + col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-1
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5379
SELECT DISTINCT + MAX( ALL - col2 ) col0 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5379
SELECT DISTINCT + MAX ( ALL - col2 ) col0 FROM tab2 AS cor0
----
-23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 99 * - - col0 + - 19 col0 FROM tab0 AS cor0
----
1466
8594
9584

query I rowsort
SELECT DISTINCT - 95 * + col1 AS col1 FROM tab0 AS cor0
----
-1995
-7695
-95

query I rowsort
SELECT DISTINCT + col1 + - - col2 + + col1 AS col0 FROM tab0 AS cor0
----
101
209
52

onlyif mysql # aggregate syntax: 
query I rowsort label-5383
SELECT ALL COUNT( + - 93 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5383
SELECT ALL COUNT ( + - 93 ) AS col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT - 19 + - 98 FROM tab1 AS cor0
----
-117
-117
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-5385
SELECT DISTINCT MAX( - col1 ) + - + 21 FROM tab2 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-5385
SELECT DISTINCT MAX ( - col1 ) + - + 21 FROM tab2 AS cor0
----
-72

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col1 + + ( + 52 ) <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 43 col2, - 91 AS col0 FROM tab1
----
-43
-91
-43
-91
-43
-91

query I rowsort
SELECT DISTINCT + col2 FROM tab0 WHERE NOT ( + col0 + - col2 < col1 )
----
10

query I rowsort
SELECT ALL + col1 - - - col0 AS col0 FROM tab2 WHERE NOT ( NOT - col0 IS NULL )
----

query II rowsort
SELECT 59 AS col1, col0 AS col1 FROM tab1
----
59
51
59
85
59
91

query I rowsort
SELECT ALL ( + 92 ) AS col2 FROM tab1
----
92
92
92

query I rowsort
SELECT ALL - col2 + + 56 * 56 - - col0 FROM tab0
----
3104
3134
3213

onlyif mysql # aggregate syntax: 
query II rowsort label-5393
SELECT DISTINCT ( - + ( - + 0 ) ) AS col0, + MIN( DISTINCT + + col2 ) FROM tab2 WHERE NULL IS NULL
----
0
23

skipif mysql # not compatible
query II rowsort label-5393
SELECT DISTINCT ( - + ( - + 0 ) ) AS col0, + MIN ( DISTINCT + + col2 ) FROM tab2 WHERE NULL IS NULL
----
0
23

query I rowsort
SELECT DISTINCT + col0 * - + ( + - col0 ) + - 93 + - - 36 * col1 + + 6 AS col1 FROM tab2 AS cor0
----
3865
6781
7950

query I rowsort
SELECT - 89 - + col0 AS col2 FROM tab0 AS cor0
----
-104
-176
-186

onlyif mysql # aggregate syntax: 
query I rowsort label-5396
SELECT + 57 - + 71 * + MAX( ALL col2 ) AS col2 FROM tab1 AS cor0
----
-6759

skipif mysql # not compatible
query I rowsort label-5396
SELECT + 57 - + 71 * + MAX ( ALL col2 ) AS col2 FROM tab1 AS cor0
----
-6759

query I rowsort
SELECT ALL + + col1 FROM tab1 AS cor0 WHERE - col1 <= + col0 - + col2 * - + 37 + + 57
----
14
47
5

query I rowsort
SELECT ALL + col1 * - + col0 * - 23 + - 77 FROM tab1 AS cor0
----
16345
9698
98294

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5399
SELECT ALL - - CAST( NULL AS DECIMAL ) + - col2 * - col0 * + - 90 AS col1, - ( - col1 ) col1 FROM tab0 AS cor0 WHERE - CAST( 72 AS SIGNED ) / - col1 IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5399
SELECT ALL - - CAST ( NULL AS REAL ) + - col2 * - col0 * + - 90 AS col1, - ( - col1 ) col1 FROM tab0 AS cor0 WHERE - CAST ( 72 AS INTEGER ) / - col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5400
SELECT col2 + + col1 + - - col2 DIV + col0 AS col0 FROM tab0
----
101
131
31

skipif mysql # not compatible
query I rowsort label-5400
SELECT col2 + + col1 + - - col2 / + col0 AS col0 FROM tab0
----
101
131
31

onlyif mysql # aggregate syntax: 
query II rowsort label-5401
SELECT + COUNT( * ), + COUNT( * ) AS col2 FROM tab1 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-5401
SELECT + COUNT ( * ), + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 - + col0 + + col0 + 76 * + col0 col1 FROM tab1 AS cor0
----
3972
6519
6984

query I rowsort
SELECT 63 - - col1 * + col1 FROM tab0 AS cor0
----
504
64
6624

onlyif mysql # aggregate syntax: 
query I rowsort label-5404
SELECT COUNT( * ) AS col0 FROM tab1 cor0 WHERE NOT ( - col1 IS NOT NULL )
----
0

skipif mysql # not compatible
query I rowsort label-5404
SELECT COUNT ( * ) AS col0 FROM tab1 cor0 WHERE NOT ( - col1 IS NOT NULL )
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 + + col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5406
SELECT DISTINCT - col1 * + CAST( + + 21 AS SIGNED ) AS col2 FROM tab1
----
-105
-294
-987

skipif mysql # not compatible
query I rowsort label-5406
SELECT DISTINCT - col1 * + CAST ( + + 21 AS INTEGER ) AS col2 FROM tab1
----
-105
-294
-987

query II rowsort
SELECT DISTINCT 30, + col1 FROM tab0
----
30
1
30
21
30
81

query I rowsort
SELECT DISTINCT - 16 + + 11 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-5

query I rowsort
SELECT - - 71 AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5410
SELECT ALL ( + CAST( COUNT( * ) AS SIGNED ) ) col2, COUNT( * ) AS col0 FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5410
SELECT ALL ( + CAST ( COUNT ( * ) AS INTEGER ) ) col2, COUNT ( * ) AS col0 FROM tab0 AS cor0
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5411
SELECT ALL + COUNT( * ) * - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-5411
SELECT ALL + COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-9

query III rowsort
SELECT * FROM tab0 cor0 WHERE col1 < - 97
----

query I rowsort
SELECT ALL + col2 + 92 FROM tab1 cor0
----
151
160
188

onlyif mysql # aggregate syntax: 
query I rowsort label-5414
SELECT ALL 77 * + COUNT( + col2 ) AS col1 FROM tab2
----
231

skipif mysql # not compatible
query I rowsort label-5414
SELECT ALL 77 * + COUNT ( + col2 ) AS col1 FROM tab2
----
231

onlyif mysql # aggregate syntax: 
query I rowsort label-5415
SELECT + 66 * + COUNT( col0 ) + COUNT( * ) FROM tab1
----
201

skipif mysql # not compatible
query I rowsort label-5415
SELECT + 66 * + COUNT ( col0 ) + COUNT ( * ) FROM tab1
----
201

query I rowsort
SELECT ALL + col0 * + 0 AS col0 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5417
SELECT DISTINCT COUNT( + + col0 ) DIV COUNT( * ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-5417
SELECT DISTINCT COUNT ( + + col0 ) / COUNT ( * ) FROM tab1
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col1 FROM tab1 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col1 + - + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 61 + + 15 FROM tab2
----
76

query I rowsort
SELECT col1 * - + col0 + - col0 AS col0 FROM tab0
----
-1230
-1914
-194

onlyif mysql # aggregate syntax: 
query I rowsort label-5422
SELECT ALL + - COUNT( * ) col1 FROM tab2 WHERE NOT col0 IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5422
SELECT ALL + - COUNT ( * ) col1 FROM tab2 WHERE NOT col0 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5423
SELECT - COUNT( * ) FROM tab0 WHERE NULL > NULL
----
0

skipif mysql # not compatible
query I rowsort label-5423
SELECT - COUNT ( * ) FROM tab0 WHERE NULL > NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5424
SELECT ALL * FROM tab1 WHERE - + CAST( NULL AS SIGNED ) + 85 NOT IN ( + + col0 )
----

skipif mysql # not compatible
query III rowsort label-5424
SELECT ALL * FROM tab1 WHERE - + CAST ( NULL AS INTEGER ) + 85 NOT IN ( + + col0 )
----

query I rowsort
SELECT + + col0 AS col0 FROM tab0 AS cor0 WHERE col0 + + ( + 80 ) BETWEEN col1 AND - col1
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL < + col2
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE ( NOT 53 * col1 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5428
SELECT DISTINCT * FROM tab0 WHERE NOT + ( CAST( + - col1 AS SIGNED ) ) < NULL
----

skipif mysql # not compatible
query III rowsort label-5428
SELECT DISTINCT * FROM tab0 WHERE NOT + ( CAST ( + - col1 AS INTEGER ) ) < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5429
SELECT + 0 DIV + col1 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5429
SELECT + 0 / + col1 FROM tab0 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5430
SELECT - MAX( ALL - col1 ), 52 * + - MAX( DISTINCT + 28 ) / 11 * COUNT( * ) - - SUM( col0 ) col0 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5430
SELECT - MAX ( ALL - col1 ), 52 * + - MAX ( DISTINCT + 28 ) / 11 * COUNT ( * ) - - SUM ( col0 ) col0 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
NULL
NULL

query I rowsort
SELECT - - col0 AS col1 FROM tab2 cor0 WHERE NOT - 47 < col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5432
SELECT DISTINCT - - CAST( col2 AS SIGNED ) / 8 * + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5432
SELECT DISTINCT - - CAST ( col2 AS INTEGER ) / 8 * + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + col1 * + - col2 FROM tab0 cor0
----
-210
-3807
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 37 col2 FROM tab0
----
-37
-37
-37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 70 col2 FROM tab2
----
70
70
70

query I rowsort
SELECT - col0 AS col1 FROM tab0 WHERE NOT - - 68 IS NULL
----
-15
-87
-97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5437
SELECT DISTINCT * FROM tab2 WHERE CAST( - col1 AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5437
SELECT DISTINCT * FROM tab2 WHERE CAST ( - col1 AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 WHERE + col2 NOT IN ( - + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT + 78 AS col0, - col1 AS col1 FROM tab2
----
78
-51
78
-67
78
-77

query I rowsort
SELECT DISTINCT col2 + - col2 * + 88 FROM tab1 WHERE - - col2 IS NULL
----

query II rowsort
SELECT ALL col2 AS col2, 7 + + - col0 FROM tab1
----
59
-78
68
-84
96
-44

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) = - 50
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 col0, - 45 AS col1 FROM tab1 cor0
----
-59
-45
-68
-45
-96
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5444
SELECT col0 * CAST( col0 AS SIGNED ) AS col0 FROM tab2
----
2116
4096
5625

skipif mysql # not compatible
query I rowsort label-5444
SELECT col0 * CAST ( col0 AS INTEGER ) AS col0 FROM tab2
----
2116
4096
5625

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 59 + ( + col1 ) col0 FROM tab1 AS cor0
----
106
64
73

query I rowsort
SELECT - col0 + - 47 FROM tab2 cor0
----
-111
-122
-93

query I rowsort
SELECT DISTINCT + - 19 * - col0 + + + col1 FROM tab0 AS cor0
----
1674
1844
366

query I rowsort
SELECT - + col2 + - 12 AS col1 FROM tab0 AS cor0
----
-111
-22
-59

query I rowsort
SELECT ALL col0 * + - col1 + col2 AS col0 FROM tab2 AS cor0
----
-2323
-4888
-4967

query III rowsort
SELECT * FROM tab0 cor0 WHERE - col0 >= - col0 * - + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5451
SELECT - - MAX( ( - 46 ) ) AS col2 FROM tab1 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-5451
SELECT - - MAX ( ( - 46 ) ) AS col2 FROM tab1 AS cor0
----
-46

query I rowsort
SELECT - 41 AS col1 FROM tab2 cor0
----
-41
-41
-41

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5453
SELECT ALL + 97 + + 83, 32 * CAST( + col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
180
1632
180
2720
180
2912

skipif mysql # not compatible
query II rowsort label-5453
SELECT ALL + 97 + + 83, 32 * CAST ( + col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
180
1632
180
2720
180
2912

query II rowsort
SELECT col1, + 73 AS col1 FROM tab2 WHERE NULL IS NULL
----
51
73
67
73
77
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5455
SELECT DISTINCT - col2 + - - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5455
SELECT DISTINCT - col2 + - - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 7 * 31 NOT BETWEEN - - ( + 82 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5457
SELECT ALL COUNT( 54 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5457
SELECT ALL COUNT ( 54 ) FROM tab0
----
3

query I rowsort
SELECT - col1 - - + col1 AS col2 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5459
SELECT col1 - - 20 + + col0 + - - 12 DIV + - 47 FROM tab0 AS cor0
----
116
118
128

skipif mysql # not compatible
query I rowsort label-5459
SELECT col1 - - 20 + + col0 + - - 12 / + - 47 FROM tab0 AS cor0
----
116
118
128

onlyif mysql # aggregate syntax: 
query I rowsort label-5460
SELECT ALL COUNT( * ) + + 80 AS col1 FROM tab1 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-5460
SELECT ALL COUNT ( * ) + + 80 AS col1 FROM tab1 AS cor0
----
83

query I rowsort
SELECT - col2 - - col2 + + - 21 AS col2 FROM tab2 AS cor0
----
-21
-21
-21

query I rowsort
SELECT DISTINCT + 46 + - col1 AS col2 FROM tab0 AS cor0
----
-35
25
45

query I rowsort
SELECT col1 * - - col1 + - - ( - - 14 ) AS col1 FROM tab2 AS cor0
----
2615
4503
5943

query I rowsort
SELECT + + 92 AS col0 FROM tab0 AS cor0 WHERE col0 * - + col2 IS NOT NULL
----
92
92
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5465
SELECT - CAST( NULL AS SIGNED ) + ( col0 ) * - 34 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5465
SELECT - CAST ( NULL AS INTEGER ) + ( col0 ) * - 34 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5466
SELECT DISTINCT + COUNT( * ) + 85 col1 FROM tab1 WHERE ( + col1 ) < NULL
----
85

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5466
SELECT DISTINCT + COUNT ( * ) + 85 col1 FROM tab1 WHERE ( + col1 ) < NULL
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-5467
SELECT SUM( DISTINCT - - col0 ) AS col2 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-5467
SELECT SUM ( DISTINCT - - col0 ) AS col2 FROM tab1 AS cor0
----
227

query I rowsort
SELECT DISTINCT - + col2 * 4 FROM tab0 AS cor0
----
-188
-396
-40

query I rowsort
SELECT + 79 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5470
SELECT - + 32 DIV + 42 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5470
SELECT - + 32 / + 42 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5471
SELECT DISTINCT - col1 DIV - + 16 FROM tab2 AS cor0
----
3
4

skipif mysql # not compatible
query I rowsort label-5471
SELECT DISTINCT - col1 / - + 16 FROM tab2 AS cor0
----
3
4

onlyif mysql # DIV for integer division: 
query I rowsort label-5472
SELECT ALL 87 DIV + + col2 FROM tab1 cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-5472
SELECT ALL 87 / + + col2 FROM tab1 cor0
----
0
1
1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 95 + ( + col1 ) + + col1 * - - col2 * col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 * - col1 + + - col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 <> + 43
----

query I rowsort
SELECT - ( - 52 ) AS col0 FROM tab1
----
52
52
52

onlyif mysql # aggregate syntax: 
query I rowsort label-5477
SELECT ALL SUM( ALL - 55 ) * - - 54 FROM tab2
----
-8910

skipif mysql # not compatible
query I rowsort label-5477
SELECT ALL SUM ( ALL - 55 ) * - - 54 FROM tab2
----
-8910

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - - col0 col1 FROM tab0
----
-1215
-1827
-97

query I rowsort
SELECT - col2 * + 65 * + + ( - col0 ) FROM tab1
----
318240
325975
402220

query II rowsort
SELECT DISTINCT 81 AS col0, - col2 AS col0 FROM tab2
----
81
-23
81
-40
81
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5481
SELECT COUNT( CAST( - 63 AS SIGNED ) ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5481
SELECT COUNT ( CAST ( - 63 AS INTEGER ) ) AS col0 FROM tab2
----
3

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 * + 76 <= 59 * - 86 / - 73 * - col0 / - 41
----

query I rowsort
SELECT ALL - 55 AS col0 FROM tab1
----
-55
-55
-55

onlyif mysql # DIV for integer division: 
query II rowsort label-5484
SELECT DISTINCT col1 AS col2, col1 DIV - col2 FROM tab1 AS cor0
----
14
0
47
0
5
0

skipif mysql # not compatible
query II rowsort label-5484
SELECT DISTINCT col1 AS col2, col1 / - col2 FROM tab1 AS cor0
----
14
0
47
0
5
0

query I rowsort
SELECT ALL ( - 6 ) FROM tab1 AS cor0
----
-6
-6
-6

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 / col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5487
SELECT + 4 DIV 35 DIV - col2 AS col2, 34 FROM tab1 AS cor0
----
0
34
0
34
0
34

skipif mysql # not compatible
query II rowsort label-5487
SELECT + 4 / 35 / - col2 AS col2, 34 FROM tab1 AS cor0
----
0
34
0
34
0
34

onlyif mysql # DIV for integer division: 
query II rowsort label-5488
SELECT col2 DIV + 86 AS col1, - col1 AS col2 FROM tab0
----
0
-21
0
-81
1
-1

skipif mysql # not compatible
query II rowsort label-5488
SELECT col2 / + 86 AS col1, - col1 AS col2 FROM tab0
----
0
-21
0
-81
1
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5489
SELECT DISTINCT col1 DIV col0 + - + col0 AS col0 FROM tab1 cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-5489
SELECT DISTINCT col1 / col0 + - + col0 AS col0 FROM tab1 cor0
----
-51
-85
-91

query I rowsort
SELECT DISTINCT 47 * - - col1 * - + 34 + col1 FROM tab0 AS cor0
----
-129357
-1597
-33537

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 + - 89 * + + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5492
SELECT ALL - MIN( col0 ) - 63 FROM tab2 AS cor0
----
-109

skipif mysql # not compatible
query I rowsort label-5492
SELECT ALL - MIN ( col0 ) - 63 FROM tab2 AS cor0
----
-109

onlyif mysql # aggregate syntax: 
query I rowsort label-5493
SELECT COUNT( * ) + + - 79 col0 FROM tab1 AS cor0
----
-76

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5493
SELECT COUNT ( * ) + + - 79 col0 FROM tab1 AS cor0
----
-76

query I rowsort
SELECT ALL ( col0 ) * - + 67 - col0 AS col2 FROM tab1
----
-3468
-5780
-6188

query I rowsort
SELECT + 18 + col2 FROM tab1
----
114
77
86

query I rowsort
SELECT ( - col0 ) + - 25 FROM tab0
----
-112
-122
-40

query I rowsort
SELECT ALL col2 * + col1 * - col2 AS col1 FROM tab1
----
-129024
-17405
-217328

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 * - + 76 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5499
SELECT ALL - CAST( - col0 AS SIGNED ) + + + col0 + + 75 FROM tab1 AS cor0
----
177
245
257

skipif mysql # not compatible
query I rowsort label-5499
SELECT ALL - CAST ( - col0 AS INTEGER ) + + + col0 + + 75 FROM tab1 AS cor0
----
177
245
257

query II rowsort
SELECT DISTINCT col0, - col2 * + + col0 * + - col1 * col1 FROM tab2
----
46
2751858
64
15178240
75
19527150

onlyif mysql # aggregate syntax: 
query I rowsort label-5501
SELECT DISTINCT + COUNT( * ) FROM tab1 WHERE NOT - - 58 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5501
SELECT DISTINCT + COUNT ( * ) FROM tab1 WHERE NOT - - 58 IS NOT NULL
----
0

query I rowsort
SELECT ALL col2 * + - col1 * + col2 + + - ( col2 ) FROM tab2 AS cor0
----
-123240
-225446
-27002

onlyif mysql # aggregate syntax: 
query I rowsort label-5503
SELECT DISTINCT + MAX( ALL - col1 ) AS col2 FROM tab0 cor0 WHERE NOT col1 * - 76 > - col1
----
-1

skipif mysql # not compatible
query I rowsort label-5503
SELECT DISTINCT + MAX ( ALL - col1 ) AS col2 FROM tab0 cor0 WHERE NOT col1 * - 76 > - col1
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 30 ) col0 FROM tab0 AS cor0
----
-30
-30
-30

query I rowsort
SELECT - col2 * + col1 + + col2 AS col2 FROM tab2 AS cor0
----
-1150
-3040
-3828

query I rowsort
SELECT col2 * + col0 * + col0 AS col1 FROM tab0 WHERE NOT - col1 BETWEEN NULL AND - + ( + - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5507
SELECT ALL 87 * + + ( - ( SUM( + + col0 ) ) ) FROM tab2
----
-16095

skipif mysql # not compatible
query I rowsort label-5507
SELECT ALL 87 * + + ( - ( SUM ( + + col0 ) ) ) FROM tab2
----
-16095

query I rowsort
SELECT - col2 AS col0 FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT - ( col0 ) * - 17 FROM tab1 AS cor0
----
1445
1547
867

query I rowsort
SELECT DISTINCT col0 * 35 FROM tab2 AS cor0
----
1610
2240
2625

onlyif mysql # aggregate syntax: 
query I rowsort label-5511
SELECT - COUNT( * ) + - COUNT( * ) col0 FROM tab2 WHERE ( NULL IS NULL )
----
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5511
SELECT - COUNT ( * ) + - COUNT ( * ) col0 FROM tab2 WHERE ( NULL IS NULL )
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5512
SELECT * FROM tab2 cor0 WHERE CAST( + col1 AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5512
SELECT * FROM tab2 cor0 WHERE CAST ( + col1 AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + + col0 * - + col2 * - col1 + - 56 FROM tab0 AS cor0
----
18214
57049
9547

onlyif mysql # aggregate syntax: 
query I rowsort label-5514
SELECT ALL ( - - 82 ) + - - COUNT( * ) AS col0 FROM tab2 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-5514
SELECT ALL ( - - 82 ) + - - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-5515
SELECT + - ( + COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5515
SELECT + - ( + COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
-3

query II rowsort
SELECT DISTINCT + col0 * + col1 + - 44, col2 * - col2 FROM tab2 cor0 WHERE NOT col2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 79 * + ( - ( 91 ) ) * + 37 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-5518
SELECT ALL 72 DIV col1 + + col1 + + 20 FROM tab1 AS cor0
----
39
39
68

skipif mysql # not compatible
query I rowsort label-5518
SELECT ALL 72 / col1 + + col1 + + 20 FROM tab1 AS cor0
----
39
39
68

query I rowsort
SELECT DISTINCT - 82 + + + col0 AS col1 FROM tab1 AS cor0
----
-31
3
9

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5520
SELECT + + COUNT( ALL - ( + + ( + CAST( + 1 AS DECIMAL ) ) ) ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5520
SELECT + + COUNT ( ALL - ( + + ( + CAST ( + 1 AS REAL ) ) ) ) AS col0 FROM tab2 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - - col2 + + col1 + - 68 col1 FROM tab1 cor0 WHERE col2 = - + col1 * - col2
----

query I rowsort
SELECT ALL - 56 * + - col2 - + col1 AS col1 FROM tab1
----
3299
3761
5362

query III rowsort
SELECT * FROM tab1 WHERE ( - col1 ) * - - 2 > NULL
----

query I rowsort
SELECT DISTINCT 47 * - - col2 AS col2 FROM tab2
----
1081
1880
2726

query I rowsort
SELECT ALL col1 * 48 * 49 AS col2 FROM tab1
----
110544
11760
32928

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5526
SELECT DISTINCT - col0, CAST( + 74 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-51
74
-85
74
-91
74

skipif mysql # not compatible
query II rowsort label-5526
SELECT DISTINCT - col0, CAST ( + 74 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-51
74
-85
74
-91
74

onlyif mysql # aggregate syntax: 
query I rowsort label-5527
SELECT + 83 + + - COUNT( * ) FROM tab1 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-5527
SELECT + 83 + + - COUNT ( * ) FROM tab1 AS cor0
----
80

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 41 IS NOT NULL
----

query I rowsort
SELECT ALL + ( + 17 ) AS col1 FROM tab1 AS cor0
----
17
17
17

query I rowsort
SELECT + - 55 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ac76841ceecd2311e80c621d15bacdd3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) <= - col2 + - - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5532
SELECT ALL + - MIN( + col0 ) FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-5532
SELECT ALL + - MIN ( + col0 ) FROM tab1 AS cor0
----
-51

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN col1 AND + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5534
SELECT ALL - 5 * + + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5534
SELECT ALL - 5 * + + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT 60 AS col2 FROM tab0 WHERE NOT ( col0 + 30 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5536
SELECT ALL col1 DIV - ( - col0 ), + col2 + + col0 DIV col2 + + ( + ( col0 ) ) AS col2 FROM tab2
----
0
134
1
105
1
71

skipif mysql # not compatible
query II rowsort label-5536
SELECT ALL col1 / - ( - col0 ), + col2 + + col0 / col2 + + ( + ( col0 ) ) AS col2 FROM tab2
----
0
134
1
105
1
71

onlyif mysql # aggregate syntax: 
query I rowsort label-5537
SELECT + MIN( DISTINCT col1 ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-5537
SELECT + MIN ( DISTINCT col1 ) FROM tab2
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-5538
SELECT ALL + 79 DIV + - col2 AS col1 FROM tab2
----
-1
-1
-3

skipif mysql # not compatible
query I rowsort label-5538
SELECT ALL + 79 / + - col2 AS col1 FROM tab2
----
-1
-1
-3

query II rowsort
SELECT - col0 + - col0 * col1 AS col2, + col0 AS col1 FROM tab0
----
-1230
15
-1914
87
-194
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5540
SELECT ALL MAX( DISTINCT col1 ) + + COUNT( * ) AS col2 FROM tab0
----
84

skipif mysql # not compatible
query I rowsort label-5540
SELECT ALL MAX ( DISTINCT col1 ) + + COUNT ( * ) AS col2 FROM tab0
----
84

query I rowsort
SELECT DISTINCT + + 82 * + col1 AS col0 FROM tab2 AS cor0
----
4182
5494
6314

query I rowsort
SELECT ( + col1 ) + col1 * + - 49 + - ( ( - col1 ) ) AS col2 FROM tab0 AS cor0 WHERE 85 IS NOT NULL
----
-3807
-47
-987

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5543
SELECT * FROM tab2 AS cor0 WHERE + CAST( NULL AS SIGNED ) <> - + 76 + - ( + col2 ) / + 79 * + col0 * + col2
----

skipif mysql # not compatible
query III rowsort label-5543
SELECT * FROM tab2 AS cor0 WHERE + CAST ( NULL AS INTEGER ) <> - + 76 + - ( + col2 ) / + 79 * + col0 * + col2
----

query II rowsort
SELECT DISTINCT - 40 * - col2 * + + col0 + + col1 - - - col0 + - col2, 55 / col1 FROM tab1 AS cor0 WHERE NOT + col2 IS NOT NULL
----

query I rowsort
SELECT col1 * + 3 - + col2 FROM tab1
----
-44
-54
73

query I rowsort
SELECT DISTINCT + 93 AS col0 FROM tab1
----
93

query I rowsort
SELECT ALL - col1 AS col1 FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN + 34 - col1 / 5 AND NULL
----

query I rowsort
SELECT - col2 FROM tab1 WHERE - 45 * + col0 IS NULL
----

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
23
40
58

onlyif mysql # DIV for integer division: 
query I rowsort label-5550
SELECT + col0 - 87 DIV col1 FROM tab0
----
10
14
83

skipif mysql # not compatible
query I rowsort label-5550
SELECT + col0 - 87 / col1 FROM tab0
----
10
14
83

query III rowsort
SELECT ALL * FROM tab1 WHERE + 29 IS NULL
----

query I rowsort
SELECT ALL 65 + - col0 * - col0 AS col2 FROM tab1
----
2666
7290
8346

query I rowsort
SELECT - col1 * - ( + col1 ) - col0 FROM tab2
----
2555
4414
5865

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5554
SELECT DISTINCT ( COUNT( * ) ) * - 31 AS col1 FROM tab0 WHERE + CAST( NULL AS SIGNED ) IS NULL
----
-93

skipif mysql # not compatible
query I rowsort label-5554
SELECT DISTINCT ( COUNT ( * ) ) * - 31 AS col1 FROM tab0 WHERE + CAST ( NULL AS INTEGER ) IS NULL
----
-93

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) < + col2 + col0 * ( - col1 )
----

query I rowsort
SELECT 98 FROM tab1 WHERE NOT NULL NOT BETWEEN col2 + + 9 AND - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5557
SELECT DISTINCT ( ( + CAST( NULL AS SIGNED ) ) ) * + 17 col0 FROM tab0 WHERE + col2 BETWEEN 16 AND - CAST( NULL AS SIGNED ) + - 64
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5557
SELECT DISTINCT ( ( + CAST ( NULL AS INTEGER ) ) ) * + 17 col0 FROM tab0 WHERE + col2 BETWEEN 16 AND - CAST ( NULL AS INTEGER ) + - 64
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5558
SELECT ( SUM( ALL - col2 ) ) + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5558
SELECT ( SUM ( ALL - col2 ) ) + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT - ( col0 ) + 15 * - col2 AS col0 FROM tab2
----
-391
-664
-945

onlyif mysql # DIV for integer division: 
query I rowsort label-5560
SELECT ALL 24 DIV - col1 AS col1 FROM tab1
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-5560
SELECT ALL 24 / - col1 AS col1 FROM tab1
----
-1
-4
0

query I rowsort
SELECT DISTINCT 11 * - col0 + col2 FROM tab1 WHERE + col1 + 16 * col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col0 + col2 col2 FROM tab2
----
1081
2600
4408

query I rowsort
SELECT DISTINCT col1 FROM tab0 WHERE NOT ( + 91 * col0 + - col1 ) >= - col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( col1 ) NOT BETWEEN - 8 AND ( - col0 + - 96 * 36 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5565
SELECT ALL - COUNT( * ) * - MIN( CAST( col1 AS SIGNED ) * 88 ) FROM tab0
----
264

skipif mysql # not compatible
query I rowsort label-5565
SELECT ALL - COUNT ( * ) * - MIN ( CAST ( col1 AS INTEGER ) * 88 ) FROM tab0
----
264

query I rowsort
SELECT + ( 64 ) AS col0 FROM tab2
----
64
64
64

query III rowsort
SELECT * FROM tab1 WHERE NOT + 43 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5568
SELECT SUM( - 32 ) + CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT ( - 15 + col0 / col1 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5568
SELECT SUM ( - 32 ) + CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT ( - 15 + col0 / col1 ) IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5569
SELECT - COUNT( * ) + - 60 FROM tab1 WHERE NOT - col0 IS NULL
----
-63

skipif mysql # not compatible
query I rowsort label-5569
SELECT - COUNT ( * ) + - 60 FROM tab1 WHERE NOT - col0 IS NULL
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-5570
SELECT - 62 * - COUNT( * ) AS col2 FROM tab0 AS cor0
----
186

skipif mysql # not compatible
query I rowsort label-5570
SELECT - 62 * - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
186

query I rowsort
SELECT + col0 * 30 AS col0 FROM tab0 AS cor0
----
2610
2910
450

query I rowsort
SELECT 55 FROM tab0 WHERE NOT NULL NOT IN ( + 44 )
----

query I rowsort
SELECT DISTINCT 6 FROM tab0 WHERE col0 >= - col1 / + col2
----
6

query I rowsort
SELECT DISTINCT + + 91 FROM tab0 cor0
----
91

query I rowsort
SELECT 64 FROM tab1 AS cor0 WHERE NOT NULL < + 23 * + 77
----

query I rowsort
SELECT - + col1 * + 58 FROM tab0 AS cor0
----
-1218
-4698
-58

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL > + 60
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5578
SELECT 23 * + MIN( DISTINCT + ( + 66 ) DIV col1 ) FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-5578
SELECT 23 * + MIN ( DISTINCT + ( + 66 ) / col1 ) FROM tab0 cor0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5579
SELECT + 86 DIV COUNT( * ) AS col0 FROM tab0 AS cor0
----
28

skipif mysql # not compatible
query I rowsort label-5579
SELECT + 86 / COUNT ( * ) AS col0 FROM tab0 AS cor0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-5580
SELECT - - COUNT( * ) * 46 FROM tab2 AS cor0
----
138

skipif mysql # not compatible
query I rowsort label-5580
SELECT - - COUNT ( * ) * 46 FROM tab2 AS cor0
----
138

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5581
SELECT DISTINCT + 47 * CAST( AVG ( DISTINCT + col0 ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
3102

skipif mysql # not compatible
query I rowsort label-5581
SELECT DISTINCT + 47 * CAST ( AVG ( DISTINCT + col0 ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
3102

onlyif mysql # aggregate syntax: 
query I rowsort label-5582
SELECT ALL MAX( 6 ) * + 86 FROM tab2 cor0
----
516

skipif mysql # not compatible
query I rowsort label-5582
SELECT ALL MAX ( 6 ) * + 86 FROM tab2 cor0
----
516

onlyif mysql # aggregate syntax: 
query I rowsort label-5583
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT + 87 = + 90
----
-3

skipif mysql # not compatible
query I rowsort label-5583
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT + 87 = + 90
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND col2 / + 5
----

query I rowsort
SELECT ALL col0 AS col0 FROM tab1 WHERE + col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 86 * - 82 col2 FROM tab1
----
-7052
-7052
-7052

onlyif mysql # aggregate syntax: 
query I rowsort label-5587
SELECT DISTINCT + 5 * COUNT( * ) AS col2 FROM tab1 WHERE NOT 84 IS NULL
----
15

skipif mysql # not compatible
query I rowsort label-5587
SELECT DISTINCT + 5 * COUNT ( * ) AS col2 FROM tab1 WHERE NOT 84 IS NULL
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5588
SELECT ALL ( + CAST( + COUNT( * ) AS SIGNED ) ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5588
SELECT ALL ( + CAST ( + COUNT ( * ) AS INTEGER ) ) AS col0 FROM tab1
----
3

query I rowsort
SELECT - 41 / 55 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5590
SELECT ALL col1 DIV - 97 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5590
SELECT ALL col1 / - 97 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT + 6 + 87 FROM tab1 AS cor0
----
93

query I rowsort
SELECT ALL + - 16 + + 65 AS col2 FROM tab2 AS cor0
----
49
49
49

query I rowsort
SELECT + - 87 + - col2 FROM tab1 AS cor0
----
-146
-155
-183

query I rowsort
SELECT - col1 - - col0 AS col2 FROM tab2 cor0 WHERE NULL IS NULL
----
-13
-5
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5595
SELECT - COUNT( * ) DIV - 27 AS col1 FROM tab0 AS cor0 WHERE 20 + + col0 BETWEEN NULL AND col0 + col2
----
0

skipif mysql # not compatible
query I rowsort label-5595
SELECT - COUNT ( * ) / - 27 AS col1 FROM tab0 AS cor0 WHERE 20 + + col0 BETWEEN NULL AND col0 + col2
----
0

query II rowsort
SELECT ALL 5 AS col0, - col1 - + + col0 FROM tab2
----
5
-141
5
-142
5
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5597
SELECT + SUM( DISTINCT - 19 ) * + COUNT( * ) * - SUM( - 84 ) + - 89 FROM tab1
----
-14453

skipif mysql # not compatible
query I rowsort label-5597
SELECT + SUM ( DISTINCT - 19 ) * + COUNT ( * ) * - SUM ( - 84 ) + - 89 FROM tab1
----
-14453

query I rowsort
SELECT col1 + - + 42 AS col1 FROM tab1
----
-28
-37
5

query I rowsort
SELECT DISTINCT + ( - - ( + + col0 ) ) AS col1 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT ALL + col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5601
SELECT * FROM tab1 AS cor0 WHERE 3 * - col0 <> col1 + CAST( 41 AS SIGNED )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5601
SELECT * FROM tab1 AS cor0 WHERE 3 * - col0 <> col1 + CAST ( 41 AS INTEGER )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( col2 ) NOT BETWEEN - col0 AND ( ( - col2 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - + col2 + - 54 AS col2 FROM tab1 AS cor0
----
-113
-122
-150

query II rowsort
SELECT col0, + col0 * + + col2 * ( - col2 ) + ( + col0 ) FROM tab2 AS cor0
----
46
-24288
64
-102336
75
-252225

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN + col0 AND - col0 * ( - 74 ) - - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5606
SELECT DISTINCT - col1 + CAST( + - col0 AS SIGNED ) + - col1 * + col1 FROM tab0 cor0
----
-549
-6657
-99

skipif mysql # not compatible
query I rowsort label-5606
SELECT DISTINCT - col1 + CAST ( + - col0 AS INTEGER ) + - col1 * + col1 FROM tab0 cor0
----
-549
-6657
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-5607
SELECT + 75 DIV col1 * - col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-480
-68
-885

skipif mysql # not compatible
query I rowsort label-5607
SELECT + 75 / col1 * - col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-480
-68
-885

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 83 + - ( - 99 ) col2 FROM tab2 AS cor0
----
16
16
16

query III rowsort
SELECT * FROM tab2 WHERE - col1 NOT BETWEEN - col2 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col1 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
-1
-21
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5611
SELECT ALL - col0 * + CAST( NULL AS SIGNED ) * + + col2 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5611
SELECT ALL - col0 * + CAST ( NULL AS INTEGER ) * + + col2 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * + + 60 AS col1 FROM tab1
----
2820
300
840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 92 col2 FROM tab2
----
92

query I rowsort
SELECT ALL 74 * + col2 FROM tab2
----
1702
2960
4292

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5615
SELECT * FROM tab2 WHERE NOT - col1 <> CAST( col1 AS SIGNED ) / col0
----

skipif mysql # not compatible
query III rowsort label-5615
SELECT * FROM tab2 WHERE NOT - col1 <> CAST ( col1 AS INTEGER ) / col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT col1 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5617
SELECT + 18 * CAST( col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
1044
414
720

skipif mysql # not compatible
query I rowsort label-5617
SELECT + 18 * CAST ( col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
1044
414
720

query I rowsort
SELECT col1 * 0 + - 94 * 66 FROM tab0 AS cor0 WHERE NOT ( col0 BETWEEN NULL AND NULL )
----

query I rowsort
SELECT 60 + + 23 / + col1 FROM tab1 AS cor0 WHERE NOT ( + 93 + - 74 + - 66 * + col2 ) <= + col1
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - ( + + col0 ) NOT IN ( + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5621
SELECT - + col1 * - col1 + + - col1 * col2 + col0 DIV 76 FROM tab0 AS cor0
----
-97
232
2754

skipif mysql # not compatible
query I rowsort label-5621
SELECT - + col1 * - col1 + + - col1 * col2 + col0 / 76 FROM tab0 AS cor0
----
-97
232
2754

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5622
SELECT - col2 * + 83 - col2 + + + CAST( ( col0 ) AS SIGNED ) FROM tab1 AS cor0
----
-4871
-5621
-8013

skipif mysql # not compatible
query I rowsort label-5622
SELECT - col2 * + 83 - col2 + + + CAST ( ( col0 ) AS INTEGER ) FROM tab1 AS cor0
----
-4871
-5621
-8013

query I rowsort
SELECT DISTINCT - - 4 AS col1 FROM tab0 cor0
----
4

query I rowsort
SELECT 48 AS col1 FROM tab0 AS cor0 WHERE NOT + 78 * - + ( + + col0 ) IS NOT NULL
----

query I rowsort
SELECT ALL - 92 * + - col0 FROM tab1 AS cor0
----
4692
7820
8372

query I rowsort
SELECT DISTINCT - 37 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5627
SELECT ALL + 38 + COUNT( - 95 ) AS col1 FROM tab1 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-5627
SELECT ALL + 38 + COUNT ( - 95 ) AS col1 FROM tab1 AS cor0
----
41

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 82 NOT IN ( + col0 )
----

query I rowsort
SELECT DISTINCT - col1 + 82 AS col1 FROM tab0 cor0
----
1
61
81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5630
SELECT + 59 * - - CAST( col2 AS SIGNED ) AS col2, col1 + - + 94 AS col2 FROM tab0 AS cor0
----
2773
-13
5841
-93
590
-73

skipif mysql # not compatible
query II rowsort label-5630
SELECT + 59 * - - CAST ( col2 AS INTEGER ) AS col2, col1 + - + 94 AS col2 FROM tab0 AS cor0
----
2773
-13
5841
-93
590
-73

query I rowsort
SELECT - + col1 * 2 * col2 AS col1 FROM tab2 AS cor0
----
-2346
-6160
-7772

onlyif mysql # aggregate syntax: 
query I rowsort label-5632
SELECT - ( - + COUNT( * ) ) AS col2 FROM tab2 cor0 WHERE ( NULL ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5632
SELECT - ( - + COUNT ( * ) ) AS col2 FROM tab2 cor0 WHERE ( NULL ) IS NULL
----
3

query III rowsort
SELECT * FROM tab2 WHERE + col0 * + col0 IS NULL
----

query II rowsort
SELECT ALL col2 * col0 AS col0, - col2 * col1 + + 54 FROM tab1
----
4896
-1290
5015
-241
6188
-3142

query I rowsort
SELECT ALL col2 + col2 * - col0 FROM tab0 WHERE NOT ( col2 * - 80 / - + col1 + col0 + col2 ) IN ( + 50 )
----
-658
-860
-9504

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5636
SELECT - + CAST( NULL AS SIGNED ) FROM tab2 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5636
SELECT - + CAST ( NULL AS INTEGER ) FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5637
SELECT + ( - COUNT( * ) ) + COUNT( DISTINCT - 25 ) FROM tab0
----
-2

skipif mysql # not compatible
query I rowsort label-5637
SELECT + ( - COUNT ( * ) ) + COUNT ( DISTINCT - 25 ) FROM tab0
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-5638
SELECT 57 * + ( - 92 ) + col0 + col1 + - - col1 + col2 DIV col1 AS col0 FROM tab2
----
-5026
-5035
-5096

skipif mysql # not compatible
query I rowsort label-5638
SELECT 57 * + ( - 92 ) + col0 + col1 + - - col1 + col2 / col1 AS col0 FROM tab2
----
-5026
-5035
-5096

onlyif mysql # DIV for integer division: 
query I rowsort label-5639
SELECT 57 + col1 DIV + - col2 AS col0 FROM tab2
----
55
56
56

skipif mysql # not compatible
query I rowsort label-5639
SELECT 57 + col1 / + - col2 AS col0 FROM tab2
----
55
56
56

query I rowsort
SELECT - col1 + 73 FROM tab1
----
26
59
68

query III rowsort
SELECT * FROM tab1 WHERE ( NOT ( - 90 + 21 ) < NULL )
----

query I rowsort
SELECT col1 * - + col1 + + col1 AS col0 FROM tab2
----
-2550
-4422
-5852

onlyif mysql # aggregate syntax: 
query I rowsort label-5643
SELECT - MIN( DISTINCT col2 ) + + - COUNT( * ) FROM tab0
----
-13

skipif mysql # not compatible
query I rowsort label-5643
SELECT - MIN ( DISTINCT col2 ) + + - COUNT ( * ) FROM tab0
----
-13

query II rowsort
SELECT DISTINCT - 6, - col0 + + ( + - col1 ) - + 57 + - col1 AS col1 FROM tab1
----
-6
-136
-6
-152
-6
-242

onlyif mysql # DIV for integer division: 
query I rowsort label-5645
SELECT col0 + - col2 DIV + ( 28 ) + - col1 FROM tab2
----
-14
-5
6

skipif mysql # not compatible
query I rowsort label-5645
SELECT col0 + - col2 / + ( 28 ) + - col1 FROM tab2
----
-14
-5
6

query I rowsort
SELECT DISTINCT 21 FROM tab1 WHERE NOT col2 >= col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5647
SELECT DISTINCT ( - MAX( CAST( NULL AS SIGNED ) ) ) + - MAX( ALL 70 ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5647
SELECT DISTINCT ( - MAX ( CAST ( NULL AS INTEGER ) ) ) + - MAX ( ALL 70 ) AS col2 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 78 * - - col0 * + 1 BETWEEN + - col0 AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5649
SELECT ALL - + COUNT( * ) - - 48 - 69 FROM tab0 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-5649
SELECT ALL - + COUNT ( * ) - - 48 - 69 FROM tab0 AS cor0
----
-24

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 44 NOT BETWEEN ( NULL ) AND col1 - + - col1
----
51
14
96
85
5
59

onlyif mysql # aggregate syntax: 
query I rowsort label-5651
SELECT + + COUNT( DISTINCT - col0 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5651
SELECT + + COUNT ( DISTINCT - col0 ) AS col1 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5652
SELECT - - ( + COUNT( * ) ) FROM tab2 WHERE - - 79 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5652
SELECT - - ( + COUNT ( * ) ) FROM tab2 WHERE - - 79 IS NULL
----
0

query I rowsort
SELECT + AVG ( col1 ) AS col2 FROM tab1 WHERE NULL IS NOT NULL
----
NULL

query II rowsort
SELECT col0 - - col0, - col1 AS col2 FROM tab2
----
128
-77
150
-67
92
-51

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 71 IS NULL
----

query I rowsort
SELECT ALL - - 89 * - + ( + + col1 ) AS col2 FROM tab0 cor0
----
-1869
-7209
-89

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 - + - 79 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-5658
SELECT ALL col2 + - col2 + - + 66 DIV col2 FROM tab2 AS cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-5658
SELECT ALL col2 + - col2 + - + 66 / col2 FROM tab2 AS cor0
----
-1
-1
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5659
SELECT + 50 DIV - ( COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-5659
SELECT + 50 / - ( COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-5660
SELECT + ( - COUNT( * ) ) col0 FROM tab2 cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5660
SELECT + ( - COUNT ( * ) ) col0 FROM tab2 cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 * + 49 * - + col2 < ( - - 13 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 20 col2 FROM tab0
----
-20

query II rowsort
SELECT + col0, col2 * - - col2 FROM tab2
----
46
529
64
1600
75
3364

query II rowsort
SELECT ALL - 97, + col0 AS col2 FROM tab2
----
-97
46
-97
64
-97
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5665
SELECT DISTINCT + ( - - 51 ) AS col2 FROM tab0 WHERE ( + - CAST( NULL AS SIGNED ) * col0 ) IS NULL
----
51

skipif mysql # not compatible
query I rowsort label-5665
SELECT DISTINCT + ( - - 51 ) AS col2 FROM tab0 WHERE ( + - CAST ( NULL AS INTEGER ) * col0 ) IS NULL
----
51

query III rowsort
SELECT * FROM tab1 WHERE NOT - + col0 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5667
SELECT DISTINCT - 9, + CAST( NULL AS DECIMAL ) + + - ( - col2 ) * - 95 + + 36 AS col0 FROM tab1 AS cor0
----
-9
NULL

skipif mysql # not compatible
query II rowsort label-5667
SELECT DISTINCT - 9, + CAST ( NULL AS REAL ) + + - ( - col2 ) * - 95 + + 36 AS col0 FROM tab1 AS cor0
----
-9
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col2, col1 FROM tab2 AS cor0
----
-51
51
-67
67
-77
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 65 col2 FROM tab1 AS cor0
----
65

query I rowsort
SELECT ALL + col1 * + col0 * + 32 AS col1 FROM tab0 AS cor0 WHERE NOT 2 * col0 < NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5671
SELECT ALL + - col1 / + + CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5671
SELECT ALL + - col1 / + + CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE + 52 * + 77 - + col0 BETWEEN NULL AND ( + col1 )
----

query I rowsort
SELECT + 66 + - col0 AS col1 FROM tab2 AS cor0
----
-9
2
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5674
SELECT DISTINCT - COUNT( * ) * - - CAST( + + MIN( col2 ) AS SIGNED ) + MAX( DISTINCT 67 ) col2 FROM tab2 AS cor0
----
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5674
SELECT DISTINCT - COUNT ( * ) * - - CAST ( + + MIN ( col2 ) AS INTEGER ) + MAX ( DISTINCT 67 ) col2 FROM tab2 AS cor0
----
-2

query II rowsort
SELECT + col2 + col2, - ( 68 ) AS col1 FROM tab1 AS cor0
----
118
-68
136
-68
192
-68

query I rowsort
SELECT ALL - + 46 FROM tab0 AS cor0
----
-46
-46
-46

query I rowsort
SELECT + + col1 + - - col1 FROM tab2 AS cor0
----
102
134
154

query I rowsort
SELECT - - col0 * + col0 + - - col0 AS col1 FROM tab1 AS cor0
----
2652
7310
8372

onlyif mysql # aggregate syntax: 
query I rowsort label-5679
SELECT DISTINCT + + MIN( DISTINCT - col0 ) AS col0 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-5679
SELECT DISTINCT + + MIN ( DISTINCT - col0 ) AS col0 FROM tab2 AS cor0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-5680
SELECT - COUNT( DISTINCT 0 ) FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5680
SELECT - COUNT ( DISTINCT 0 ) FROM tab1 AS cor0
----
-1

query I rowsort
SELECT DISTINCT 41 + 73 FROM tab1
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-5682
SELECT + + COUNT( * ) FROM tab1 WHERE NULL NOT BETWEEN + col1 + + + col1 * + 25 AND - col2 * col1 * col2
----
0

skipif mysql # not compatible
query I rowsort label-5682
SELECT + + COUNT ( * ) FROM tab1 WHERE NULL NOT BETWEEN + col1 + + + col1 * + 25 AND - col2 * col1 * col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5683
SELECT ALL + + 20 + COUNT( * ) FROM tab1 WHERE NULL IS NULL
----
23

skipif mysql # not compatible
query I rowsort label-5683
SELECT ALL + + 20 + COUNT ( * ) FROM tab1 WHERE NULL IS NULL
----
23

query I rowsort
SELECT ALL col2 * - 44 AS col0 FROM tab1
----
-2596
-2992
-4224

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 - - col0 + + col0 col2, col0 col1 FROM tab1 AS cor0
----
153
51
255
85
273
91

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN - col2 AND - - 19
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5687
SELECT col0 * - CAST( - + col2 AS SIGNED ) - ( + 96 ) * - + col1 AS col2 FROM tab1 AS cor0
----
10700
5495
6240

skipif mysql # not compatible
query I rowsort label-5687
SELECT col0 * - CAST ( - + col2 AS INTEGER ) - ( + 96 ) * - + col1 AS col2 FROM tab1 AS cor0
----
10700
5495
6240

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5688
SELECT ALL - - col1 + + col1 * CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5688
SELECT ALL - - col1 + + col1 * CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 + - - col2 AS col0 FROM tab2 AS cor0
----
0
0
0

query II rowsort
SELECT ALL ( + + col2 ) - - - 94 AS col2, - col1 AS col0 FROM tab1 AS cor0
----
-26
-47
-35
-5
2
-14

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( + 64 ) * - 6 IS NULL
----

query I rowsort
SELECT col1 + + col1 + 31 * + 5 AS col0 FROM tab2 AS cor0
----
257
289
309

query I rowsort
SELECT ALL - + 39 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 504d14939d58aeb4a14f31c80de5b53e

query I rowsort
SELECT DISTINCT + 12 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-5695
SELECT DISTINCT COUNT( col0 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5695
SELECT DISTINCT COUNT ( col0 ) AS col1 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5696
SELECT MAX( - col0 ) FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - 88
----
NULL

skipif mysql # not compatible
query I rowsort label-5696
SELECT MAX ( - col0 ) FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - 88
----
NULL

query I rowsort
SELECT 70 * + col2 * 78 AS col2 FROM tab1 cor0
----
322140
371280
524160

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 * - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5699
SELECT DISTINCT SUM( - - col2 ) FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-5699
SELECT DISTINCT SUM ( - - col2 ) FROM tab0 AS cor0
----
156

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 28 / - col0 col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( ( 43 ) * - col2 * col0 * - 86 + col2 + + col1 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IS NULL AND NOT ( NOT - col1 IS NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5702
SELECT - 29 DIV ( + - col2 ) FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5702
SELECT - 29 / ( + - col2 ) FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 >= - + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5704
SELECT MIN( 57 ) FROM tab2 WHERE NOT + ( + - 20 ) <> - 39 * + - col2 / + 71
----
NULL

skipif mysql # not compatible
query I rowsort label-5704
SELECT MIN ( 57 ) FROM tab2 WHERE NOT + ( + - 20 ) <> - 39 * + - col2 / + 71
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5705
SELECT DISTINCT + COUNT( + col2 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5705
SELECT DISTINCT + COUNT ( + col2 ) AS col0 FROM tab0
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 83 / - + 29 - + + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - col0 * col0 ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT col1 * + - 37 FROM tab2
----
-1887
-2479
-2849

onlyif mysql # aggregate syntax: 
query I rowsort label-5709
SELECT ALL - - SUM( ALL - 65 ) AS col2 FROM tab1 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-5709
SELECT ALL - - SUM ( ALL - 65 ) AS col2 FROM tab1 AS cor0
----
-195

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5710
SELECT ALL COUNT( + - 95 ) * - + COUNT( * ) + - ( + CAST( NULL AS SIGNED ) ) * - + COUNT( * ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5710
SELECT ALL COUNT ( + - 95 ) * - + COUNT ( * ) + - ( + CAST ( NULL AS INTEGER ) ) * - + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5711
SELECT * FROM tab1 cor0 WHERE NULL >= + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5711
SELECT * FROM tab1 cor0 WHERE NULL >= + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5712
SELECT DISTINCT + - COUNT( * ) DIV + 22 + - + 25 FROM tab2 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-5712
SELECT DISTINCT + - COUNT ( * ) / + 22 + - + 25 FROM tab2 AS cor0
----
-25

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col2 + - col2 * - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-5714
SELECT + col1 DIV - 64 + + - col0 AS col1 FROM tab2 AS cor0
----
-46
-65
-76

skipif mysql # not compatible
query I rowsort label-5714
SELECT + col1 / - 64 + + - col0 AS col1 FROM tab2 AS cor0
----
-46
-65
-76

query I rowsort
SELECT - 85 + - 73 FROM tab2
----
-158
-158
-158

query I rowsort
SELECT 47 + - col2 AS col0 FROM tab1
----
-12
-21
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5717
SELECT col2 * col0 * + CAST( - + col1 AS SIGNED ) + - + ( - col1 ) FROM tab1
----
-25070
-290789
-68530

skipif mysql # not compatible
query I rowsort label-5717
SELECT col2 * col0 * + CAST ( - + col1 AS INTEGER ) + - + ( - col1 ) FROM tab1
----
-25070
-290789
-68530

query I rowsort
SELECT - 78 + - col2 FROM tab1 WHERE + 29 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col2 ) + col0 col0 FROM tab2
----
104
133
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5720
SELECT ALL + 38 DIV COUNT( * ) FROM tab2
----
12

skipif mysql # not compatible
query I rowsort label-5720
SELECT ALL + 38 / COUNT ( * ) FROM tab2
----
12

query I rowsort
SELECT ALL - col1 + - 40 AS col2 FROM tab1
----
-45
-54
-87

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 6 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 32 NOT IN ( col0 * + 49 * - - col2 + + - col2 + - col2 + + col2, col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5724
SELECT DISTINCT - + 53 * 96 + + SUM( ALL - - col0 ) FROM tab1 AS cor0 WHERE NOT + col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5724
SELECT DISTINCT - + 53 * 96 + + SUM ( ALL - - col0 ) FROM tab1 AS cor0 WHERE NOT + col1 IS NOT NULL
----
NULL

query I rowsort
SELECT + + 8 * 51 * + + 14 AS col0 FROM tab0 cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query III rowsort label-5726
SELECT ALL - 29 - - 7 + COUNT( * ), 28 AS col1, + - 38 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-13
28
-38

skipif mysql # not compatible
query III rowsort label-5726
SELECT ALL - 29 - - 7 + COUNT ( * ), 28 AS col1, + - 38 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-13
28
-38

query IIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

query I rowsort
SELECT ALL - col0 * + 67 FROM tab2 WHERE NOT col1 IS NULL
----
-3082
-4288
-5025

onlyif mysql # DIV for integer division: 
query I rowsort label-5729
SELECT - col1 * col0 DIV + col0 FROM tab0 AS cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-5729
SELECT - col1 * col0 / + col0 FROM tab0 AS cor0
----
-1
-21
-81

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5731
SELECT ALL - SUM( ALL + - 89 ) AS col0 FROM tab1 AS cor0
----
267

skipif mysql # not compatible
query I rowsort label-5731
SELECT ALL - SUM ( ALL + - 89 ) AS col0 FROM tab1 AS cor0
----
267

onlyif mysql # aggregate syntax: 
query II rowsort label-5732
SELECT - - 80 * - SUM( + 82 ) AS col0, COUNT( * ) * + - 73 - - 16 - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-19680
-206

skipif mysql # not compatible
query II rowsort label-5732
SELECT - - 80 * - SUM ( + 82 ) AS col0, COUNT ( * ) * + - 73 - - 16 - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-19680
-206

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5733
SELECT ALL col1 FROM tab2 AS cor0 WHERE NOT NULL IN ( - 41, + col1, + - 86 / + + CAST( 80 AS SIGNED ) * + col2 )
----

skipif mysql # not compatible
query I rowsort label-5733
SELECT ALL col1 FROM tab2 AS cor0 WHERE NOT NULL IN ( - 41, + col1, + - 86 / + + CAST ( 80 AS INTEGER ) * + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5734
SELECT + col1 * col0 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN ( + + CAST( NULL AS SIGNED ) ) AND - col0 * - col2 - - - 61 + - + col1 + + col0 * + col0 + + 35 + - col2 * + + ( col0 ) / - - ( - 20 ) * - col0
----

skipif mysql # not compatible
query I rowsort label-5734
SELECT + col1 * col0 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN ( + + CAST ( NULL AS INTEGER ) ) AND - col0 * - col2 - - - 61 + - + col1 + + col0 * + col0 + + 35 + - col2 * + + ( col0 ) / - - ( - 20 ) * - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5735
SELECT DISTINCT - SUM( ALL + - col1 ) FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-5735
SELECT DISTINCT - SUM ( ALL + - col1 ) FROM tab0 AS cor0
----
103

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + col2 BETWEEN - col0 AND NULL
----

query I rowsort
SELECT ALL ( 3 ) AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
3
3
3

query I rowsort
SELECT DISTINCT 90 * col1 FROM tab1
----
1260
4230
450

onlyif mysql # DIV for integer division: 
query I rowsort label-5739
SELECT DISTINCT + col2 DIV + - 84 AS col2 FROM tab0
----
-1
0

skipif mysql # not compatible
query I rowsort label-5739
SELECT DISTINCT + col2 / + - 84 AS col2 FROM tab0
----
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5740
SELECT DISTINCT + CAST( NULL AS SIGNED ) / - 81 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5740
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / - 81 AS col0 FROM tab0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) > ( + col0 * - - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5742
SELECT DISTINCT col0 + - + col2 AS col1 FROM tab1 WHERE + col2 * + CAST( NULL AS SIGNED ) NOT IN ( - - col1 - col1 * 82 )
----

skipif mysql # not compatible
query I rowsort label-5742
SELECT DISTINCT col0 + - + col2 AS col1 FROM tab1 WHERE + col2 * + CAST ( NULL AS INTEGER ) NOT IN ( - - col1 - col1 * 82 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 * + - col0 = + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + 59 AS col1, + 21 FROM tab2 AS cor0
----
59
21
59
21
59
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5745
SELECT 70 + + + SUM( ALL + 75 ) DIV 96 FROM tab2 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-5745
SELECT 70 + + + SUM ( ALL + 75 ) / 96 FROM tab2 AS cor0
----
72

onlyif mysql # aggregate syntax: 
query II rowsort label-5746
SELECT DISTINCT - SUM( DISTINCT col0 ), COUNT( * ) AS col2 FROM tab2 AS cor0
----
-185
3

skipif mysql # not compatible
query II rowsort label-5746
SELECT DISTINCT - SUM ( DISTINCT col0 ), COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-185
3

query I rowsort
SELECT DISTINCT col0 + + 0 FROM tab1 AS cor0
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5748
SELECT ALL - ( 31 ) + MIN( - col2 ) col1 FROM tab1 AS cor0
----
-127

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5748
SELECT ALL - ( 31 ) + MIN ( - col2 ) col1 FROM tab1 AS cor0
----
-127

onlyif mysql # aggregate syntax: 
query I rowsort label-5749
SELECT ALL MAX( ALL 55 ) + + 65 * - ( + 74 ) FROM tab0 AS cor0
----
-4755

skipif mysql # not compatible
query I rowsort label-5749
SELECT ALL MAX ( ALL 55 ) + + 65 * - ( + 74 ) FROM tab0 AS cor0
----
-4755

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5750
SELECT ALL - - CAST( - ( + col0 ) AS SIGNED ) DIV - col0 * - + col0 DIV + col0 AS col0 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5750
SELECT ALL - - CAST ( - ( + col0 ) AS INTEGER ) / - col0 * - + col0 / + col0 AS col0 FROM tab1 AS cor0
----
-1
-1
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5751
SELECT DISTINCT + ( - - col0 ) DIV + ( + - 1 ) FROM tab1 cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-5751
SELECT DISTINCT + ( - - col0 ) / + ( + - 1 ) FROM tab1 cor0
----
-51
-85
-91

query I rowsort
SELECT DISTINCT col1 - col2 + 55 AS col1 FROM tab2
----
64
83
92

onlyif mysql # aggregate syntax: 
query I rowsort label-5753
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab1 WHERE NOT + 0 NOT IN ( - - 7, - 7, - - 76, + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-5753
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab1 WHERE NOT + 0 NOT IN ( - - 7, - 7, - - 76, + col1 )
----
0

query I rowsort
SELECT 45 * - + col1 + - col0 AS col2 FROM tab0
----
-1032
-142
-3660

onlyif mysql # aggregate syntax: 
query I rowsort label-5755
SELECT ALL - MAX( col0 ) AS col0 FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-5755
SELECT ALL - MAX ( col0 ) AS col0 FROM tab0
----
-97

query I rowsort
SELECT + ( + col2 ) + - 64 FROM tab0 AS cor0
----
-17
-54
35

query II rowsort
SELECT + ( + col1 ) AS col2, col1 FROM tab2
----
51
51
67
67
77
77

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + col0 < ( + col2 + - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 24 * - col1 + - + col1 + + ( - col1 ) * + 5 + ( + 1 ) + + - col2 col0 FROM tab2 cor0 WHERE NOT col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - + 80 * col2 col0 FROM tab0 AS cor0
----
-176720
-784080
-8000

onlyif mysql # aggregate syntax: 
query I rowsort label-5761
SELECT DISTINCT + + MIN( + col1 ) FROM tab2 WHERE NULL >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5761
SELECT DISTINCT + + MIN ( + col1 ) FROM tab2 WHERE NULL >= NULL
----
NULL

query I rowsort
SELECT DISTINCT - + col0 FROM tab2 WHERE NOT + col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 58 col2 FROM tab0
----
-58
-58
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5764
SELECT + MAX( DISTINCT - 62 ) AS col0 FROM tab1
----
-62

skipif mysql # not compatible
query I rowsort label-5764
SELECT + MAX ( DISTINCT - 62 ) AS col0 FROM tab1
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-5765
SELECT DISTINCT MAX( DISTINCT 6 ) * + + COUNT( * ) + - COUNT( * ) FROM tab2
----
15

skipif mysql # not compatible
query I rowsort label-5765
SELECT DISTINCT MAX ( DISTINCT 6 ) * + + COUNT ( * ) + - COUNT ( * ) FROM tab2
----
15

query I rowsort
SELECT + col1 + + 40 * + col0 AS col0 FROM tab1 cor0
----
2054
3405
3687

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5767
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 <> + - 51 * + ( + 3 ) * - + CAST( NULL AS SIGNED ) * - col1
----

skipif mysql # not compatible
query III rowsort label-5767
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 <> + - 51 * + ( + 3 ) * - + CAST ( NULL AS INTEGER ) * - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5768
SELECT DISTINCT - 30 DIV - col1 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5768
SELECT DISTINCT - 30 / - col1 AS col2 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5769
SELECT ALL - col1 + CAST( NULL AS SIGNED ) + col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5769
SELECT ALL - col1 + CAST ( NULL AS INTEGER ) + col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 86 + 38 FROM tab0
----
-48
-48
-48

query I rowsort
SELECT ALL - col0 - col0 * - col2 FROM tab0 AS cor0
----
690
783
9506

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5772
SELECT ALL + col1 + - col1 * CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5772
SELECT ALL + col1 + - col1 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + 78 / ( col2 ) FROM tab2 AS cor0 WHERE 40 BETWEEN NULL AND col0 + + + 68 * - 77
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5774
SELECT - col2 + + 5 DIV col0 AS col0 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-5774
SELECT - col2 + + 5 / col0 AS col0 FROM tab1 AS cor0
----
-59
-68
-96

query II rowsort
SELECT DISTINCT + col0 - 13 AS col2, - 42 AS col1 FROM tab2
----
33
-42
51
-42
62
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5776
SELECT ALL ( col1 ) - - - col0 + col2 * + col2 * + col0 + + ( - 86 ) - CAST( + col2 AS SIGNED ) AS col0 FROM tab2
----
102287
24230
252148

skipif mysql # not compatible
query I rowsort label-5776
SELECT ALL ( col1 ) - - - col0 + col2 * + col2 * + col0 + + ( - 86 ) - CAST ( + col2 AS INTEGER ) AS col0 FROM tab2
----
102287
24230
252148

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5777
SELECT ( + col1 ) + - CAST( NULL AS SIGNED ) + - 1 * + col1 AS col1, 73 FROM tab2
----
NULL
73
NULL
73
NULL
73

skipif mysql # not compatible
query II rowsort label-5777
SELECT ( + col1 ) + - CAST ( NULL AS INTEGER ) + - 1 * + col1 AS col1, 73 FROM tab2
----
NULL
73
NULL
73
NULL
73

query I rowsort
SELECT ALL 14 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5779
SELECT + CAST( NULL AS SIGNED ) * MIN( + + col1 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5779
SELECT + CAST ( NULL AS INTEGER ) * MIN ( + + col1 ) FROM tab0
----
NULL

query II rowsort
SELECT DISTINCT + 12 - + + col0 AS col1, col2 AS col2 FROM tab0
----
-3
47
-75
10
-85
99

query I rowsort
SELECT DISTINCT + col0 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5782
SELECT DISTINCT + MIN( DISTINCT col1 ), - COUNT( ALL - - 54 ) AS col1 FROM tab2
----
51
-3

skipif mysql # not compatible
query II rowsort label-5782
SELECT DISTINCT + MIN ( DISTINCT col1 ), - COUNT ( ALL - - 54 ) AS col1 FROM tab2
----
51
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5783
SELECT ALL - - 32 / - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5783
SELECT ALL - - 32 / - CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 col1, col1 AS col1 FROM tab2 AS cor0
----
23
51
40
77
58
67

query II rowsort
SELECT DISTINCT - 72 AS col0, + ( - - col2 ) + col2 AS col1 FROM tab1 AS cor0
----
-72
118
-72
136
-72
192

onlyif mysql # aggregate syntax: 
query II rowsort label-5786
SELECT COUNT( * ) AS col2, + MAX( + col2 ) FROM tab1 cor0
----
3
96

skipif mysql # not compatible
query II rowsort label-5786
SELECT COUNT ( * ) AS col2, + MAX ( + col2 ) FROM tab1 cor0
----
3
96

query I rowsort
SELECT - 43 * + col1 FROM tab2 AS cor0
----
-2193
-2881
-3311

query I rowsort
SELECT + 81 * + 4 AS col2 FROM tab0 AS cor0
----
324
324
324

query I rowsort
SELECT ( 68 ) FROM tab2 AS cor0
----
68
68
68

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5790
SELECT ALL - col2 AS col1, 24 + - col0 * + + CAST( NULL AS SIGNED ) + - col0 FROM tab2 AS cor0
----
-23
NULL
-40
NULL
-58
NULL

skipif mysql # not compatible
query II rowsort label-5790
SELECT ALL - col2 AS col1, 24 + - col0 * + + CAST ( NULL AS INTEGER ) + - col0 FROM tab2 AS cor0
----
-23
NULL
-40
NULL
-58
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - col2 AND NULL
----

query I rowsort
SELECT + ( 36 ) AS col2 FROM tab2 AS cor0
----
36
36
36

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 * - col0 + + 58 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5794
SELECT DISTINCT + MAX( ALL - 37 ) AS col2 FROM tab0
----
-37

skipif mysql # not compatible
query I rowsort label-5794
SELECT DISTINCT + MAX ( ALL - 37 ) AS col2 FROM tab0
----
-37

query II rowsort
SELECT DISTINCT ( - col2 ) AS col0, + 71 AS col0 FROM tab0
----
-10
71
-47
71
-99
71

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 92 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5797
SELECT + 2 DIV + + ( - + COUNT( * ) ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5797
SELECT + 2 / + + ( - + COUNT ( * ) ) AS col2 FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - 45 * col1 col2 FROM tab0
----
-3598
-935
54

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 88 * - col0 / col2 * 80 / - col0 NOT BETWEEN ( NULL ) AND ( - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - + col1 * 43 + - + col2 FROM tab2 AS cor0
----
-2216
-2939
-3351

query II rowsort
SELECT DISTINCT + col0 AS col0, col2 * + 91 + + - 10 AS col1 FROM tab1
----
51
8726
85
5359
91
6178

query I rowsort
SELECT ALL + 66 AS col2 FROM tab1 WHERE NOT + col0 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NULL <= + 78
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5804
SELECT COUNT( * ) DIV - 73 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5804
SELECT COUNT ( * ) / - 73 FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-5805
SELECT + 49 * col1 DIV - 41 AS col1, 3 AS col1 FROM tab2
----
-60
3
-80
3
-92
3

skipif mysql # not compatible
query II rowsort label-5805
SELECT + 49 * col1 / - 41 AS col1, 3 AS col1 FROM tab2
----
-60
3
-80
3
-92
3

onlyif mysql # aggregate syntax: 
query II rowsort label-5806
SELECT COUNT( * ) AS col0, + COUNT( * ) AS col2 FROM tab1 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-5806
SELECT COUNT ( * ) AS col0, + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 95 + - col1 col2 FROM tab1 AS cor0
----
48
81
90

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5808
SELECT * FROM tab0 cor0 WHERE + CAST( NULL AS SIGNED ) / 61 * + col2 + - - col2 * - + 80 IN ( - col1 + + + ( 52 ) + + - ( - ( col2 ) ) )
----

skipif mysql # not compatible
query III rowsort label-5808
SELECT * FROM tab0 cor0 WHERE + CAST ( NULL AS INTEGER ) / 61 * + col2 + - - col2 * - + 80 IN ( - col1 + + + ( 52 ) + + - ( - ( col2 ) ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5809
SELECT ALL + 49 * - 97 * - 68 + + 51 + - - 86 AS col1, COUNT( * ) + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) + + - col1 IS NOT NULL
----
323341
NULL

skipif mysql # not compatible
query II rowsort label-5809
SELECT ALL + 49 * - 97 * - 68 + + 51 + - - 86 AS col1, COUNT ( * ) + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) + + - col1 IS NOT NULL
----
323341
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 68 + + col1 col2 FROM tab0 AS cor0
----
149
69
89

query I rowsort
SELECT - col2 * - ( - 61 ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-1403
-2440
-3538

query I rowsort
SELECT + 38 * 6 AS col2 FROM tab2 cor0
----
228
228
228

query I rowsort
SELECT ALL - 88 + - col1 AS col2 FROM tab2 AS cor0
----
-139
-155
-165

query I rowsort
SELECT ALL + col1 + - 92 AS col0 FROM tab0 AS cor0
----
-11
-71
-91

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col0 <= + + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 74 - 25 FROM tab0
----
49
49
49

query I rowsort
SELECT col0 - + 51 * col1 FROM tab2
----
-2555
-3342
-3863

query I rowsort
SELECT ALL + col2 * + 35 FROM tab0
----
1645
3465
350

onlyif mysql # DIV for integer division: 
query I rowsort label-5819
SELECT DISTINCT 55 * + + col1 DIV + + col1 FROM tab0
----
55

skipif mysql # not compatible
query I rowsort label-5819
SELECT DISTINCT 55 * + + col1 / + + col1 FROM tab0
----
55

query I rowsort
SELECT + col0 * - - 38 FROM tab0
----
3306
3686
570

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5821
SELECT ALL CAST( NULL AS SIGNED ) * + + col1 * ( 98 ), col0 AS col0 FROM tab0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-5821
SELECT ALL CAST ( NULL AS INTEGER ) * + + col1 * ( 98 ), col0 AS col0 FROM tab0
----
NULL
15
NULL
87
NULL
97

onlyif mysql # DIV for integer division: 
query I rowsort label-5822
SELECT 8 DIV - + 51 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5822
SELECT 8 / - + 51 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT + ( + 58 ) * - col1 AS col0 FROM tab1
----
-2726
-290
-812

onlyif mysql # aggregate syntax: 
query I rowsort label-5824
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE NOT col0 BETWEEN + 89 AND col0
----
-2

skipif mysql # not compatible
query I rowsort label-5824
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT col0 BETWEEN + 89 AND col0
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5825
SELECT + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5825
SELECT + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + col1 col1, + 37 AS col0 FROM tab2 AS cor0
----
51
37
67
37
77
37

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5827
SELECT DISTINCT - 95 * + + col1 / - CAST( NULL AS DECIMAL ) + - 52 AS col1 FROM tab1 WHERE - 8 / - + 92 IS NULL
----

skipif mysql # not compatible
query I rowsort label-5827
SELECT DISTINCT - 95 * + + col1 / - CAST ( NULL AS REAL ) + - 52 AS col1 FROM tab1 WHERE - 8 / - + 92 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5828
SELECT + - 48 - + + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-57

skipif mysql # not compatible
query I rowsort label-5828
SELECT + - 48 - + + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-5829
SELECT SUM( + - col2 ) FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-5829
SELECT SUM ( + - col2 ) FROM tab0
----
-156

onlyif mysql # DIV for integer division: 
query I rowsort label-5830
SELECT ALL - 83 DIV - - col0 AS col2 FROM tab0 AS cor0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-5830
SELECT ALL - 83 / - - col0 AS col2 FROM tab0 AS cor0
----
-5
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5831
SELECT ( - 20 ) * + COUNT( * ) + - ( 84 ) AS col0 FROM tab1 AS cor0
----
-144

skipif mysql # not compatible
query I rowsort label-5831
SELECT ( - 20 ) * + COUNT ( * ) + - ( 84 ) AS col0 FROM tab1 AS cor0
----
-144

onlyif mysql # aggregate syntax: 
query I rowsort label-5832
SELECT DISTINCT + COUNT( DISTINCT 80 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5832
SELECT DISTINCT + COUNT ( DISTINCT 80 ) FROM tab0 AS cor0
----
1

query III rowsort
SELECT * FROM tab1 WHERE NOT + - col1 * + col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5834
SELECT + col2 DIV + 54 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5834
SELECT + col2 / + 54 FROM tab0
----
0
0
1

query II rowsort
SELECT DISTINCT col1, + 10 FROM tab1
----
14
10
47
10
5
10

query I rowsort
SELECT - col2 + - col1 * + + col0 FROM tab0
----
-1262
-1837
-196

query I rowsort
SELECT - 93 + 20 AS col1 FROM tab2
----
-73
-73
-73

query II rowsort
SELECT DISTINCT + col1 AS col1, - col0 FROM tab0
----
1
-97
21
-87
81
-15

query I rowsort
SELECT + col0 * - + 62 * + + 88 + - + col0 AS col0 FROM tab0
----
-474759
-529329
-81855

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + col2 - + col0 <= col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-5841
SELECT ALL - col2 + + - col1 * 19 DIV col2 + + 14 AS col2 FROM tab1
----
-46
-67
-84

skipif mysql # not compatible
query I rowsort label-5841
SELECT ALL - col2 + + - col1 * 19 / col2 + + 14 AS col2 FROM tab1
----
-46
-67
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5842
SELECT 40 + + 57 * + CAST( col2 AS SIGNED ) * 40 FROM tab1
----
134560
155080
218920

skipif mysql # not compatible
query I rowsort label-5842
SELECT 40 + + 57 * + CAST ( col2 AS INTEGER ) * 40 FROM tab1
----
134560
155080
218920

onlyif mysql # aggregate syntax: 
query I rowsort label-5843
SELECT ALL + + COUNT( * ) + + 78 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-5843
SELECT ALL + + COUNT ( * ) + + 78 FROM tab0 AS cor0
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5844
SELECT + col2 * CAST( NULL AS SIGNED ) * - + col0 + - - col0 * - col1 * col2 * + col1 * + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5844
SELECT + col2 * CAST ( NULL AS INTEGER ) * - + col0 + - - col0 * - col1 * col2 * + col1 * + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 + 15 + col0 AS col0 FROM tab2 AS cor0
----
32
38
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5846
SELECT CAST( NULL AS SIGNED ) * - + col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5846
SELECT CAST ( NULL AS INTEGER ) * - + col0 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5847
SELECT DISTINCT COUNT( * ) * + - 2 col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5847
SELECT DISTINCT COUNT ( * ) * + - 2 col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5848
SELECT 76 * - COUNT( * ) DIV - 90 DIV - COUNT( * ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5848
SELECT 76 * - COUNT ( * ) / - 90 / - COUNT ( * ) FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5849
SELECT DISTINCT - 0 * - COUNT( * ) AS col2 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-5849
SELECT DISTINCT - 0 * - COUNT ( * ) AS col2 FROM tab2 cor0
----
0

query II rowsort
SELECT DISTINCT + 31 + + 27, col0 FROM tab0 cor0
----
58
15
58
87
58
97

query I rowsort
SELECT ALL + + col1 AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5852
SELECT DISTINCT col1 - col2 / + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5852
SELECT DISTINCT col1 - col2 / + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5853
SELECT - col0 + - - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5853
SELECT - col0 + - - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + 91 + col1 + col2 FROM tab2 AS cor0
----
-17
26
34

onlyif mysql # DIV for integer division: 
query I rowsort label-5855
SELECT DISTINCT + col0 - 61 DIV + col1 FROM tab1 AS cor0
----
47
73
90

skipif mysql # not compatible
query I rowsort label-5855
SELECT DISTINCT + col0 - 61 / + col1 FROM tab1 AS cor0
----
47
73
90

query I rowsort
SELECT + ( + - ( - col2 ) ) FROM tab1
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5857
SELECT ALL MIN( ALL + + col0 ) col0 FROM tab0
----
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5857
SELECT ALL MIN ( ALL + + col0 ) col0 FROM tab0
----
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 65 col2 FROM tab1
----
65
65
65

query I rowsort
SELECT ALL + ( - 8 ) AS col1 FROM tab0
----
-8
-8
-8

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 79 / col2 > + - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col1 FROM tab0 WHERE NOT - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5862
SELECT DISTINCT CAST( NULL AS DECIMAL ) * - 46 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5862
SELECT DISTINCT CAST ( NULL AS REAL ) * - 46 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5863
SELECT SUM( + col0 ) FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-5863
SELECT SUM ( + col0 ) FROM tab1 AS cor0
----
227

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5864
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 + - CAST( - 46 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5864
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 + - CAST ( - 46 AS INTEGER ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5865
SELECT + ( + + CAST( NULL AS SIGNED ) ) * - - 60 + - 57 - + col0 AS col0, - col0 * - - col1 AS col1 FROM tab0 AS cor0
----
NULL
-1215
NULL
-1827
NULL
-97

skipif mysql # not compatible
query II rowsort label-5865
SELECT + ( + + CAST ( NULL AS INTEGER ) ) * - - 60 + - 57 - + col0 AS col0, - col0 * - - col1 AS col1 FROM tab0 AS cor0
----
NULL
-1215
NULL
-1827
NULL
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-5866
SELECT 67 DIV - col2 AS col2 FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-5866
SELECT 67 / - col2 AS col2 FROM tab2
----
-1
-1
-2

query I rowsort
SELECT col1 FROM tab1 WHERE NOT - + ( + col2 ) BETWEEN - col1 AND NULL
----
14
47
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 col0 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL - 87 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 84bcab58a965cc8ae97b39d2d01b3d23

query I rowsort
SELECT + col1 + col1 * col0 AS col2 FROM tab0 AS cor0
----
1296
1848
98

query I rowsort
SELECT + col2 * + col0 + - col1 * + col1 FROM tab1 cor0
----
3979
4700
4990

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( NOT + col2 * - 63 = - + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5873
SELECT DISTINCT MAX( DISTINCT col0 ) + - 36 FROM tab1 cor0
----
55

skipif mysql # not compatible
query I rowsort label-5873
SELECT DISTINCT MAX ( DISTINCT col0 ) + - 36 FROM tab1 cor0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-5874
SELECT ALL MAX( col2 ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-5874
SELECT ALL MAX ( col2 ) FROM tab1 AS cor0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5875
SELECT ALL MAX( + 3 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5875
SELECT ALL MAX ( + 3 ) AS col1 FROM tab0 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + - 79 col1 FROM tab2 AS cor0
----
-102
-119
-137

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5877
SELECT DISTINCT + col2 FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) IS NOT NULL
----
10
47
99

skipif mysql # not compatible
query I rowsort label-5877
SELECT DISTINCT + col2 FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5878
SELECT DISTINCT + 57 + + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-5878
SELECT DISTINCT + 57 + + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1, col2 * + 21 col0 FROM tab2 AS cor0
----
51
483
67
1218
77
840

query I rowsort
SELECT ALL + col1 + - ( - 2 ) FROM tab0 AS cor0
----
23
3
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5881
SELECT DISTINCT COUNT( * ) DIV 2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5881
SELECT DISTINCT COUNT ( * ) / 2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT + - ( - col0 ) * + col1 AS col0 FROM tab0 AS cor0
----
1215
1827
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5883
SELECT + - CAST( + COUNT( 39 ) AS SIGNED ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5883
SELECT + - CAST ( + COUNT ( 39 ) AS INTEGER ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT DISTINCT - ( + 78 ) + + col1 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5885
SELECT - ( COUNT( DISTINCT - col0 ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5885
SELECT - ( COUNT ( DISTINCT - col0 ) ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT DISTINCT col0 * - - col0 AS col2 FROM tab0
----
225
7569
9409

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5887
SELECT DISTINCT - AVG ( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5887
SELECT DISTINCT - AVG ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1
----
NULL

query I rowsort
SELECT col1 FROM tab2 WHERE col1 NOT IN ( - col2 - + col2, col0 * col0, + ( - col1 ), - col2 )
----
51
67
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5889
SELECT COUNT( * ) DIV 14 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5889
SELECT COUNT ( * ) / 14 FROM tab0
----
0

query I rowsort
SELECT 91 * - col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + ( - - col2 ) + col2 FROM tab1 AS cor0
----
118
136
192

query I rowsort
SELECT - 52 + col0 AS col2 FROM tab0 AS cor0
----
-37
35
45

query I rowsort
SELECT DISTINCT + 23 + + - 14 + - col2 FROM tab1 AS cor0
----
-50
-59
-87

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5894
SELECT + COUNT( CAST( NULL AS DECIMAL ) ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5894
SELECT + COUNT ( CAST ( NULL AS REAL ) ) FROM tab2
----
0

query I rowsort
SELECT DISTINCT + 62 FROM tab1 WHERE NOT NULL <> ( 71 )
----

query I rowsort
SELECT - 42 * - + col2 * - + col1 * - + col1 AS col0 FROM tab1 WHERE - col2 IN ( - col1 + col0, + col1, 16 )
----

query I rowsort
SELECT 57 * 58 * - 32 AS col2 FROM tab2 cor0
----
-105792
-105792
-105792

query III rowsort
SELECT col0 * - 74 AS col1, + col1 AS col2, + - 4 + + col1 AS col1 FROM tab1 cor0 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT + - col2 * + + col0 - - 20 AS col2 FROM tab2 AS cor0
----
-1038
-2540
-4330

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5901
SELECT DISTINCT + SUM( ALL col1 ) AS col2 FROM tab0 cor0
----
103

skipif mysql # not compatible
query I rowsort label-5901
SELECT DISTINCT + SUM ( ALL col1 ) AS col2 FROM tab0 cor0
----
103

query I rowsort
SELECT DISTINCT + col0 * + + col2 FROM tab1
----
4896
5015
6188

query II rowsort
SELECT ALL col0 * - col1, col2 AS col0 FROM tab1
----
-425
59
-4277
68
-714
96

query I rowsort
SELECT ALL + col0 * 38 FROM tab1
----
1938
3230
3458

onlyif mysql # aggregate syntax: 
query I rowsort label-5905
SELECT - MIN( + ( + - ( + - 1 ) ) ) AS col2 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-5905
SELECT - MIN ( + ( + - ( + - 1 ) ) ) AS col2 FROM tab0
----
-1

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col2 + - col0 <= NULL
----

query I rowsort
SELECT - ( - + col1 ) AS col0 FROM tab0
----
1
21
81

query II rowsort
SELECT ALL - ( + - col1 ) + - - col2 AS col2, 57 AS col2 FROM tab1 AS cor0
----
110
57
115
57
64
57

query I rowsort
SELECT ALL + col0 FROM tab1 AS cor0 WHERE ( + 80 * ( - ( 86 ) ) ) IN ( - 38 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5910
SELECT DISTINCT + 35 * - + 74 * - col2 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5910
SELECT DISTINCT + 35 * - + 74 * - col2 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL 80 * col1 AS col1 FROM tab0 cor0
----
1680
6480
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5912
SELECT DISTINCT - - CAST( col0 AS SIGNED ) * col1 FROM tab2 AS cor0
----
2346
4928
5025

skipif mysql # not compatible
query I rowsort label-5912
SELECT DISTINCT - - CAST ( col0 AS INTEGER ) * col1 FROM tab2 AS cor0
----
2346
4928
5025

onlyif mysql # DIV for integer division: 
query I rowsort label-5913
SELECT - ( + 34 ) DIV + - ( col0 ) + - ( col1 ) AS col1 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-5913
SELECT - ( + 34 ) / + - ( col0 ) + - ( col1 ) AS col1 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-5914
SELECT ALL + col0 DIV - 49 AS col2 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5914
SELECT ALL + col0 / - 49 AS col2 FROM tab1 AS cor0
----
-1
-1
-1

query II rowsort
SELECT ALL + col0, - col0 * - + col2 AS col2 FROM tab0
----
15
705
87
870
97
9603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5916
SELECT CAST( NULL AS SIGNED ) + - 16 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5916
SELECT CAST ( NULL AS INTEGER ) + - 16 AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5917
SELECT - 15 + - COUNT( * ) FROM tab2
----
-18

skipif mysql # not compatible
query I rowsort label-5917
SELECT - 15 + - COUNT ( * ) FROM tab2
----
-18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 81 * + 57 * + col2 + col2 col1 FROM tab0
----
217046
457182
46180

onlyif mysql # DIV for integer division: 
query I rowsort label-5919
SELECT ( - col1 ) + 5 DIV - col1 * 33 AS col1 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-5919
SELECT ( - col1 ) + 5 / - col1 * 33 AS col1 FROM tab2
----
-51
-67
-77

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 64 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5921
SELECT + + col2 + col1 * + + 57 + CAST( NULL AS SIGNED ), col0 AS col0 FROM tab2 WHERE + + col2 IS NOT NULL
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-5921
SELECT + + col2 + col1 * + + 57 + CAST ( NULL AS INTEGER ), col0 AS col0 FROM tab2 WHERE + + col2 IS NOT NULL
----
NULL
46
NULL
64
NULL
75

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab0 WHERE + col0 * + - col0 * + - ( + - col1 ) IS NULL
----

query I rowsort
SELECT ALL - col2 AS col2 FROM tab1 WHERE NOT - col1 IS NULL
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-5924
SELECT DISTINCT - COUNT( * ) + COUNT( * ) FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-5924
SELECT DISTINCT - COUNT ( * ) + COUNT ( * ) FROM tab2 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5925
SELECT DISTINCT - SUM( DISTINCT - + 86 ) + 0 FROM tab2 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-5925
SELECT DISTINCT - SUM ( DISTINCT - + 86 ) + 0 FROM tab2 AS cor0
----
86

query I rowsort
SELECT - 40 * - + col1 * - - col0 FROM tab1 AS cor0
----
17000
171080
28560

query I rowsort
SELECT ALL - - 90 + + - ( col2 ) AS col2 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
-9
43
80

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5928
SELECT + CAST( col0 AS DECIMAL ) AS col1, + col2 FROM tab2 WHERE - col0 * ( - col0 ) IS NULL
----

skipif mysql # not compatible
query II rowsort label-5928
SELECT + CAST ( col0 AS REAL ) AS col1, + col2 FROM tab2 WHERE - col0 * ( - col0 ) IS NULL
----

query I rowsort
SELECT DISTINCT ( + - col1 ) - col0 AS col2 FROM tab1
----
-138
-65
-90

query I rowsort
SELECT + 58 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

onlyif mysql # aggregate syntax: 
query I rowsort label-5931
SELECT COUNT( ALL + col2 ) + + COUNT( * ) FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-5931
SELECT COUNT ( ALL + col2 ) + + COUNT ( * ) FROM tab2
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5932
SELECT DISTINCT - + col0 * - 14 + CAST( - + ( + + col2 ) AS SIGNED ) col0 FROM tab1 AS cor0
----
1131
1206
618

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5932
SELECT DISTINCT - + col0 * - 14 + CAST ( - + ( + + col2 ) AS INTEGER ) col0 FROM tab1 AS cor0
----
1131
1206
618

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5933
SELECT - CAST( NULL AS SIGNED ) / + col0 - - - 43 * - CAST( NULL AS SIGNED ) * - col2 AS col2, - col1 FROM tab1 AS cor0
----
NULL
-14
NULL
-47
NULL
-5

skipif mysql # not compatible
query II rowsort label-5933
SELECT - CAST ( NULL AS INTEGER ) / + col0 - - - 43 * - CAST ( NULL AS INTEGER ) * - col2 AS col2, - col1 FROM tab1 AS cor0
----
NULL
-14
NULL
-47
NULL
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5934
SELECT MIN( DISTINCT - col0 ) col1 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5934
SELECT MIN ( DISTINCT - col0 ) col1 FROM tab1 AS cor0
----
-91

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT col0 NOT IN ( + 32 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5936
SELECT - MIN( DISTINCT - - col2 ) FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-5936
SELECT - MIN ( DISTINCT - - col2 ) FROM tab2
----
-23

query I rowsort
SELECT ALL - + col2 * - col2 AS col1 FROM tab0 WHERE 12 IS NULL
----

query I rowsort
SELECT DISTINCT - - col1 + - col2 FROM tab2 WHERE col1 IS NOT NULL
----
28
37
9

query I rowsort
SELECT DISTINCT - 27 FROM tab0 WHERE NOT NULL IN ( - 54, 87, - 85 + col2 + - + 50 * - col2 * 17 * - 25 )
----

query II rowsort
SELECT - 85 AS col0, 52 * + + 83 FROM tab0 AS cor0
----
-85
4316
-85
4316
-85
4316

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 97 * - 87 + - 60 AS col2, - 44 col1 FROM tab0 cor0
----
8379
-44
8379
-44
8379
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5942
SELECT DISTINCT CAST( - - COUNT( * ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5942
SELECT DISTINCT CAST ( - - COUNT ( * ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - ( col0 ) IS NOT NULL
----

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 98 IS NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

onlyif mysql # DIV for integer division: 
query I rowsort label-5945
SELECT DISTINCT - col1 + - + col2 DIV - col0 col1 FROM tab0 AS cor0
----
-21
-78
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5945
SELECT DISTINCT - col1 + - + col2 / - col0 col1 FROM tab0 AS cor0
----
-21
-78
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5946
SELECT - 67 + + col2 DIV + 31 AS col2 FROM tab1 AS cor0
----
-64
-65
-66

skipif mysql # not compatible
query I rowsort label-5946
SELECT - 67 + + col2 / + 31 AS col2 FROM tab1 AS cor0
----
-64
-65
-66

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( ( - col0 ) + + col1 ) <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + ( + + 45 ) col2, 13 AS col1 FROM tab2 AS cor0
----
45
13
45
13
45
13

query I rowsort
SELECT ALL + - 52 FROM tab0 AS cor0
----
-52
-52
-52

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL <> col1 + ( - + 76 ) + - col0 * - col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5951
SELECT DISTINCT - + SUM( - col2 ) AS col0, + SUM( DISTINCT - 38 ) AS col2 FROM tab0 AS cor0
----
156
-38

skipif mysql # not compatible
query II rowsort label-5951
SELECT DISTINCT - + SUM ( - col2 ) AS col0, + SUM ( DISTINCT - 38 ) AS col2 FROM tab0 AS cor0
----
156
-38

query I rowsort
SELECT - 24 + + col0 AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND + 63
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5954
SELECT + ( + 62 ) - - col1 - + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5954
SELECT + ( + 62 ) - - col1 - + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT col0 * - col1 - + col1 AS col2, - col1 FROM tab0
----
-1296
-81
-1848
-21
-98
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5956
SELECT ALL - CAST( + 36 AS SIGNED ) AS col1 FROM tab0
----
-36
-36
-36

skipif mysql # not compatible
query I rowsort label-5956
SELECT ALL - CAST ( + 36 AS INTEGER ) AS col1 FROM tab0
----
-36
-36
-36

query I rowsort
SELECT - ( col1 ) - - - col1 * - col2 FROM tab0
----
189
3726
98

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NOT col1 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + - ( - col1 ) + - 65 FROM tab2 AS cor0
----
-14
12
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5960
SELECT + + MIN( col2 ) + - - MAX( ALL - - 40 ) * - + COUNT( * ) - + + COUNT( * ) * - SUM( ALL + col2 ) + + + 20 AS col1 FROM tab1 AS cor0
----
628

skipif mysql # not compatible
query I rowsort label-5960
SELECT + + MIN ( col2 ) + - - MAX ( ALL - - 40 ) * - + COUNT ( * ) - + + COUNT ( * ) * - SUM ( ALL + col2 ) + + + 20 AS col1 FROM tab1 AS cor0
----
628

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NOT col2 IS NOT NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col2 FROM tab1 AS cor0 WHERE - 38 * + + 49 < NULL
----

query II rowsort
SELECT + 11 + + ( + + col2 ), col2 AS col1 FROM tab1 AS cor0
----
107
96
70
59
79
68

query I rowsort
SELECT DISTINCT + ( col1 ) * - 64 + - col1 FROM tab1 AS cor0
----
-3055
-325
-910

query II rowsort
SELECT col0, col0 * + col1 AS col0 FROM tab2
----
46
2346
64
4928
75
5025

query I rowsort
SELECT ALL + + ( - 59 ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 1e6537c922fa953e0fd2f59430803703

onlyif mysql # aggregate syntax: 
query I rowsort label-5967
SELECT COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT + col0 = - - ( col2 ) + - + col1
----
3

skipif mysql # not compatible
query I rowsort label-5967
SELECT COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT + col0 = - - ( col2 ) + - + col1
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5968
SELECT ALL COUNT( * ) DIV MIN( DISTINCT + + 14 ) + + 64 AS col2 FROM tab1 AS cor0
----
64

skipif mysql # not compatible
query I rowsort label-5968
SELECT ALL COUNT ( * ) / MIN ( DISTINCT + + 14 ) + + 64 AS col2 FROM tab1 AS cor0
----
64

query I rowsort
SELECT - col2 FROM tab1 AS cor0 WHERE NOT - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5970
SELECT + ( + SUM( ALL - ( col2 ) ) ) FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-5970
SELECT + ( + SUM ( ALL - ( col2 ) ) ) FROM tab0
----
-156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5971
SELECT DISTINCT - COUNT( ALL + CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 WHERE - + 77 NOT BETWEEN - col2 AND + col0
----
0

skipif mysql # not compatible
query I rowsort label-5971
SELECT DISTINCT - COUNT ( ALL + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 WHERE - + 77 NOT BETWEEN - col2 AND + col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5972
SELECT CAST( - + 20 AS SIGNED ) FROM tab2
----
-20
-20
-20

skipif mysql # not compatible
query I rowsort label-5972
SELECT CAST ( - + 20 AS INTEGER ) FROM tab2
----
-20
-20
-20

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - col1 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + ( + 83 ) FROM tab2
----
83
83
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5975
SELECT ALL - ( CAST( NULL AS SIGNED ) ) * col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5975
SELECT ALL - ( CAST ( NULL AS INTEGER ) ) * col0 FROM tab2 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col2 > + + 46
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 63 * + ( 69 ) <> ( col2 )
----

query I rowsort
SELECT col2 AS col0 FROM tab1 cor0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5979
SELECT 20 * + ( + COUNT( * ) ) FROM tab1
----
60

skipif mysql # not compatible
query I rowsort label-5979
SELECT 20 * + ( + COUNT ( * ) ) FROM tab1
----
60

query I rowsort
SELECT ( col1 ) * + ( - col1 ) AS col1 FROM tab2
----
-2601
-4489
-5929

query I rowsort
SELECT DISTINCT + + col0 + + - col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT - col0 AS col0 FROM tab0 AS cor0 WHERE + ( - col2 ) + + 96 IS NOT NULL
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5983
SELECT DISTINCT + + 24 + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-5983
SELECT DISTINCT + + 24 + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
27

query I rowsort
SELECT - + col2 FROM tab0 AS cor0 WHERE - col2 IS NOT NULL
----
-10
-47
-99

query I rowsort
SELECT DISTINCT + col0 - - 4 FROM tab0
----
101
19
91

query I rowsort
SELECT ALL + ( + 61 ) FROM tab2
----
61
61
61

query I rowsort
SELECT - 7 + + ( col1 ) FROM tab1
----
-2
40
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - + ( - col0 ) col2 FROM tab1
----
2601
7225
8281

onlyif mysql # DIV for integer division: 
query I rowsort label-5989
SELECT + col1 DIV - 89 * - col1 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5989
SELECT + col1 / - 89 * - col1 AS col0 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 97 * col2 col0 FROM tab0
----
-4559
-9603
-970

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5991
SELECT DISTINCT * FROM tab2 WHERE NOT CAST( + + col2 AS SIGNED ) * - col0 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5991
SELECT DISTINCT * FROM tab2 WHERE NOT CAST ( + + col2 AS INTEGER ) * - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5992
SELECT ALL SUM( - + CAST( NULL AS DECIMAL ) ) * + 34 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5992
SELECT ALL SUM ( - + CAST ( NULL AS REAL ) ) * + 34 AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5993
SELECT + - COUNT( * ), SUM( - 78 ) + - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE col2 + + 43 / 64 IS NULL
----
0
NULL

skipif mysql # not compatible
query II rowsort label-5993
SELECT + - COUNT ( * ), SUM ( - 78 ) + - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE col2 + + 43 / 64 IS NULL
----
0
NULL

query III rowsort
SELECT * FROM tab0 cor0 WHERE 68 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5995
SELECT - 7 AS col2, + col1 DIV - + col2 FROM tab0
----
-7
-1
-7
-2
-7
0

skipif mysql # not compatible
query II rowsort label-5995
SELECT - 7 AS col2, + col1 / - + col2 FROM tab0
----
-7
-1
-7
-2
-7
0

query I rowsort
SELECT 1 * - ( + col1 ) AS col1 FROM tab1
----
-14
-47
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-5997
SELECT DISTINCT + 20 DIV - col1 AS col1 FROM tab0
----
-20
0

skipif mysql # not compatible
query I rowsort label-5997
SELECT DISTINCT + 20 / - col1 AS col1 FROM tab0
----
-20
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 26 col1 FROM tab0 AS cor0
----
26
26
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5999
SELECT 3 / + - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5999
SELECT 3 / + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6000
SELECT col1 DIV col1 + + col0 AS col1 FROM tab0 AS cor0
----
16
88
98

skipif mysql # not compatible
query I rowsort label-6000
SELECT col1 / col1 + + col0 AS col1 FROM tab0 AS cor0
----
16
88
98

query I rowsort
SELECT DISTINCT ( + 80 ) AS col2 FROM tab2 AS cor0
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6002
SELECT - COUNT( * ) AS col2, + CAST( 6 AS SIGNED ) col0 FROM tab1 AS cor0
----
-3
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6002
SELECT - COUNT ( * ) AS col2, + CAST ( 6 AS INTEGER ) col0 FROM tab1 AS cor0
----
-3
6

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 * + 87 * + 12 BETWEEN + col1 AND - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6004
SELECT DISTINCT - COUNT( - + col0 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6004
SELECT DISTINCT - COUNT ( - + col0 ) FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6005
SELECT - - MAX( ALL + - col0 ) * 68 FROM tab2 AS cor0
----
-3128

skipif mysql # not compatible
query I rowsort label-6005
SELECT - - MAX ( ALL + - col0 ) * 68 FROM tab2 AS cor0
----
-3128

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6006
SELECT ALL + 33 AS col0 FROM tab1 AS cor0 WHERE NOT CAST( NULL AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-6006
SELECT ALL + 33 AS col0 FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS REAL ) IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 * - 85 IS NOT NULL
----

query II rowsort
SELECT - - 89 AS col1, col1 FROM tab2 cor0
----
89
51
89
67
89
77

query II rowsort
SELECT - 17, col2 FROM tab2 cor0
----
-17
23
-17
40
-17
58

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT - 68 * - col2 NOT BETWEEN col1 AND - 98 * + col1
----

query I rowsort
SELECT - ( - - 44 ) FROM tab1
----
-44
-44
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-6012
SELECT ALL + col2 DIV - 39 FROM tab1
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-6012
SELECT ALL + col2 / - 39 FROM tab1
----
-1
-1
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6013
SELECT + col0 * - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6013
SELECT + col0 * - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT - - col1 BETWEEN - - 59 * col2 + col2 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-6015
SELECT DISTINCT - COUNT( * ), 71 AS col1 FROM tab0
----
-3
71

skipif mysql # not compatible
query II rowsort label-6015
SELECT DISTINCT - COUNT ( * ), 71 AS col1 FROM tab0
----
-3
71

onlyif mysql # aggregate syntax: 
query I rowsort label-6016
SELECT ALL COUNT( * ) AS col1 FROM tab2 WHERE + col1 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-6016
SELECT ALL COUNT ( * ) AS col1 FROM tab2 WHERE + col1 IS NOT NULL
----
3

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN NULL AND - 53
----

query I rowsort
SELECT DISTINCT - + col1 + - - col2 AS col1 FROM tab2 AS cor0
----
-28
-37
-9

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6019
SELECT + CAST( + 13 AS SIGNED ) + col1 DIV 59 + - 26 FROM tab1 AS cor0
----
-13
-13
-13

skipif mysql # not compatible
query I rowsort label-6019
SELECT + CAST ( + 13 AS INTEGER ) + col1 / 59 + - 26 FROM tab1 AS cor0
----
-13
-13
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-6020
SELECT ALL COUNT( ALL - + col2 ) AS col0 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-6020
SELECT ALL COUNT ( ALL - + col2 ) AS col0 FROM tab0 cor0
----
3

query II rowsort
SELECT DISTINCT - col0 + - col2 - + col2 AS col2, + col1 AS col2 FROM tab2 AS cor0
----
-144
77
-191
67
-92
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 35 + 50 col0 FROM tab1 AS cor0
----
15

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 * + col1 * - ( + - 87 ) - - + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6024
SELECT DISTINCT + + 0 - - 28 * + COUNT( * ) FROM tab2 cor0
----
84

skipif mysql # not compatible
query I rowsort label-6024
SELECT DISTINCT + + 0 - - 28 * + COUNT ( * ) FROM tab2 cor0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-6025
SELECT ALL 3 * + 2 + - COUNT( ALL + col2 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6025
SELECT ALL 3 * + 2 + - COUNT ( ALL + col2 ) AS col0 FROM tab2 AS cor0
----
3

query III rowsort
SELECT * FROM tab0 WHERE NULL > + col2 * col2 + + col2 * 2
----

query I rowsort
SELECT DISTINCT - 37 * + col0 FROM tab0
----
-3219
-3589
-555

query I rowsort
SELECT ALL col1 * + col0 * col2 FROM tab2
----
197120
291450
53958

query I rowsort
SELECT + col0 + - col0 * ( col0 ) * - 34 FROM tab0
----
257433
320003
7665

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6030
SELECT CAST( col1 AS SIGNED ) + - 35 + col2 AS col0 FROM tab2
----
39
82
90

skipif mysql # not compatible
query I rowsort label-6030
SELECT CAST ( col1 AS INTEGER ) + - 35 + col2 AS col0 FROM tab2
----
39
82
90

query II rowsort
SELECT DISTINCT col2, + col0 * + col1 * + - 51 * col2 FROM tab1
----
59
-1278825
68
-14832636
96
-3495744

onlyif mysql # DIV for integer division: 
query II rowsort label-6032
SELECT + + col2, - 6 DIV col2 + + col0 FROM tab0 AS cor0
----
10
87
47
15
99
97

skipif mysql # not compatible
query II rowsort label-6032
SELECT + + col2, - 6 / col2 + + col0 FROM tab0 AS cor0
----
10
87
47
15
99
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 AS col1, col0 + col1 col0 FROM tab0 AS cor0
----
-15
96
-87
108
-97
98

query I rowsort
SELECT DISTINCT + col1 * ( + 71 ) * - 5 FROM tab0 AS cor0
----
-28755
-355
-7455

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6035
SELECT + + 84 * - + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE NOT col0 < + col0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6035
SELECT + + 84 * - + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE NOT col0 < + col0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6036
SELECT DISTINCT MAX( ALL 0 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6036
SELECT DISTINCT MAX ( ALL 0 ) FROM tab0
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 < - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6038
SELECT ALL CAST( - AVG ( ALL - 88 ) AS SIGNED ) * + 31 AS col1 FROM tab1 WHERE ( - col0 * 69 ) < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6038
SELECT ALL CAST ( - AVG ( ALL - 88 ) AS INTEGER ) * + 31 AS col1 FROM tab1 WHERE ( - col0 * 69 ) < NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6039
SELECT ALL - CAST( NULL AS SIGNED ) * col2 AS col0 FROM tab0 WHERE 53 <> NULL
----

skipif mysql # not compatible
query I rowsort label-6039
SELECT ALL - CAST ( NULL AS INTEGER ) * col2 AS col0 FROM tab0 WHERE 53 <> NULL
----

query I rowsort
SELECT - col1 FROM tab0 WHERE - 33 + + 33 * 25 NOT IN ( - 11 )
----
-1
-21
-81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6041
SELECT * FROM tab1 WHERE NOT - ( col1 ) - + 40 * CAST( - 6 / + 85 AS SIGNED ) IN ( + 42 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-6041
SELECT * FROM tab1 WHERE NOT - ( col1 ) - + 40 * CAST ( - 6 / + 85 AS INTEGER ) IN ( + 42 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 83 FROM tab1 WHERE ( + col2 ) IS NOT NULL
----
83
83
83

query I rowsort
SELECT DISTINCT 32 AS col0 FROM tab1 WHERE col0 <> ( + 38 )
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-6044
SELECT COUNT( * ) * - 65 AS col1 FROM tab0 WHERE - col1 IN ( col1 + - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-6044
SELECT COUNT ( * ) * - 65 AS col1 FROM tab0 WHERE - col1 IN ( col1 + - col0 )
----
0

query I rowsort
SELECT - col0 AS col2 FROM tab1 WHERE NOT - 82 + - 70 IS NOT NULL
----

query I rowsort
SELECT ALL ( + 19 ) FROM tab0
----
19
19
19

onlyif mysql # aggregate syntax: 
query I rowsort label-6047
SELECT MAX( DISTINCT + ( + col0 ) ) AS col1 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-6047
SELECT MAX ( DISTINCT + ( + col0 ) ) AS col1 FROM tab2
----
75

query I rowsort
SELECT DISTINCT 86 + - 95 FROM tab1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-6049
SELECT ALL 42 + COUNT( * ) FROM tab1
----
45

skipif mysql # not compatible
query I rowsort label-6049
SELECT ALL 42 + COUNT ( * ) FROM tab1
----
45

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 * - 40 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col2 FROM tab0 WHERE NOT ( 12 ) IS NOT NULL
----

query I rowsort
SELECT + col1 FROM tab1 WHERE - col1 IS NULL
----

query I rowsort
SELECT ALL + col1 * - col1 FROM tab2 WHERE NOT ( col0 * + 60 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 * col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col0 * - col2 - col1 AS col0 FROM tab2 WHERE NOT NULL NOT BETWEEN + col1 - - 98 AND 53 - - col2
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col0 IN ( col1 * col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-6057
SELECT ALL - col1 DIV col1 + - col1 DIV + 70 AS col0 FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-6057
SELECT ALL - col1 / col1 + - col1 / + 70 AS col0 FROM tab2
----
-1
-1
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-6058
SELECT 25 + + col0 DIV + col0 FROM tab1
----
26
26
26

skipif mysql # not compatible
query I rowsort label-6058
SELECT 25 + + col0 / + col0 FROM tab1
----
26
26
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 95 col2 FROM tab1 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE ( + 24 ) BETWEEN - col1 AND + 47
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 80 - + col2 AS col0 FROM tab1
----
-16
12
21

query I rowsort
SELECT ALL - 23 + 69 FROM tab0
----
46
46
46

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col1 >= col0
----
46
51
23
64
77
40

onlyif mysql # DIV for integer division: 
query I rowsort label-6064
SELECT DISTINCT + 85 DIV col2 AS col0 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-6064
SELECT DISTINCT + 85 / col2 AS col0 FROM tab1
----
0
1

query I rowsort
SELECT - col2 * col0 + + col0 AS col0 FROM tab0 WHERE + 95 BETWEEN col0 AND + col1 - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6066
SELECT ALL col0 DIV + 34 AS col1 FROM tab0
----
0
2
2

skipif mysql # not compatible
query I rowsort label-6066
SELECT ALL col0 / + 34 AS col1 FROM tab0
----
0
2
2

query I rowsort
SELECT 11 * col0 AS col0 FROM tab0 WHERE ( 86 ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( col0 ) = + 84
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col0 - - col1 * col0 col0 FROM tab2
----
10050
4692
9856

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6070
SELECT + CAST( NULL AS SIGNED ) - 29 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6070
SELECT + CAST ( NULL AS INTEGER ) - 29 AS col2 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 19 > + 89 - + 2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 96 + col2 AS col2 FROM tab0 AS cor0
----
106
143
195

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( col2 ) BETWEEN - ( col0 ) AND - 22 + col0
----
87
21
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6074
SELECT ALL - col2 * CAST( NULL AS SIGNED ) + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6074
SELECT ALL - col2 * CAST ( NULL AS INTEGER ) + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6075
SELECT col0 DIV ( + 7 + 5 ) + col0 FROM tab0 AS cor0
----
105
16
94

skipif mysql # not compatible
query I rowsort label-6075
SELECT col0 / ( + 7 + 5 ) + col0 FROM tab0 AS cor0
----
105
16
94

query I rowsort
SELECT DISTINCT + + col0 + 20 AS col0 FROM tab2 AS cor0
----
66
84
95

query I rowsort
SELECT - - col1 * 20 + col0 FROM tab1 AS cor0
----
1031
185
331

query I rowsort
SELECT col2 AS col0 FROM tab1 cor0 WHERE 9 * + col2 NOT IN ( col2 )
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6079
SELECT ALL + CAST( NULL AS SIGNED ) + + 64 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6079
SELECT ALL + CAST ( NULL AS INTEGER ) + + 64 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 24 + col0 FROM tab1 cor0
----
109
115
75

query I rowsort
SELECT ALL + 19 * - col2 - - col0 FROM tab0
----
-103
-1784
-878

query I rowsort
SELECT col1 * 82 AS col2 FROM tab1
----
1148
3854
410

query I rowsort
SELECT ( - + 51 ) AS col2 FROM tab0
----
-51
-51
-51

query I rowsort
SELECT DISTINCT + col1 * + 47 - col1 * + col0 FROM tab1
----
-190
-2068
-56

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 BETWEEN + col0 AND - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL <= col2 + + col0
----

query I rowsort
SELECT + 56 * - 70 FROM tab0 AS cor0
----
-3920
-3920
-3920

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6088
SELECT ALL + 15 FROM tab0 AS cor0 WHERE NOT col2 NOT BETWEEN ( CAST( + col2 AS SIGNED ) ) AND col0 - 22 * col0
----

skipif mysql # not compatible
query I rowsort label-6088
SELECT ALL + 15 FROM tab0 AS cor0 WHERE NOT col2 NOT BETWEEN ( CAST ( + col2 AS INTEGER ) ) AND col0 - 22 * col0
----

query I rowsort
SELECT DISTINCT - 78 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-6090
SELECT - COUNT( * ) * ( - 4 ) AS col2 FROM tab2 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-6090
SELECT - COUNT ( * ) * ( - 4 ) AS col2 FROM tab2 AS cor0
----
12

query I rowsort
SELECT + ( 86 ) AS col2 FROM tab1 AS cor0
----
86
86
86

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + ( - col0 ) > - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6093
SELECT + MIN( + - 4 ) + + COUNT( * ) col0 FROM tab0, tab0 cor0
----
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6093
SELECT + MIN ( + - 4 ) + + COUNT ( * ) col0 FROM tab0, tab0 cor0
----
5

onlyif mysql # aggregate syntax: 
query II rowsort label-6094
SELECT ALL + COUNT( * ), + ( - 97 ) AS col1 FROM tab0
----
3
-97

skipif mysql # not compatible
query II rowsort label-6094
SELECT ALL + COUNT ( * ), + ( - 97 ) AS col1 FROM tab0
----
3
-97

query I rowsort
SELECT + 61 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 07149905a72bd87553381f34d19ed290

onlyif mysql # aggregate syntax: 
query II rowsort label-6096
SELECT ALL + 97 AS col1, COUNT( * ) AS col1 FROM tab1 AS cor0
----
97
3

skipif mysql # not compatible
query II rowsort label-6096
SELECT ALL + 97 AS col1, COUNT ( * ) AS col1 FROM tab1 AS cor0
----
97
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6097
SELECT - COUNT( 13 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6097
SELECT - COUNT ( 13 ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT ALL + + ( 98 ) AS col1 FROM tab1 AS cor0
----
98
98
98

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6099
SELECT * FROM tab2 AS cor0 WHERE NOT CAST( + 93 AS SIGNED ) <= ( NULL )
----

skipif mysql # not compatible
query III rowsort label-6099
SELECT * FROM tab2 AS cor0 WHERE NOT CAST ( + 93 AS INTEGER ) <= ( NULL )
----

query I rowsort
SELECT ALL + col2 * - col0 + + + 29 AS col1 FROM tab1 AS cor0
----
-4867
-4986
-6159

query I rowsort
SELECT DISTINCT col1 * - 98 * 26 FROM tab2
----
-129948
-170716
-196196

query I rowsort
SELECT col2 - 13 AS col2 FROM tab1 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6103
SELECT DISTINCT - 76 * + MAX( + + col1 ) FROM tab2
----
-5852

skipif mysql # not compatible
query I rowsort label-6103
SELECT DISTINCT - 76 * + MAX ( + + col1 ) FROM tab2
----
-5852

query I rowsort
SELECT DISTINCT + 1 * + col1 * + - col0 FROM tab1
----
-425
-4277
-714

query I rowsort
SELECT ALL col1 * - + 29 FROM tab1
----
-1363
-145
-406

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + ( + col1 ) + 64 NOT IN ( + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6107
SELECT DISTINCT - ( MAX( CAST( NULL AS SIGNED ) ) ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6107
SELECT DISTINCT - ( MAX ( CAST ( NULL AS INTEGER ) ) ) AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL - - 73 + 32 AS col1 FROM tab0 AS cor0
----
105
105
105

onlyif mysql # aggregate syntax: 
query I rowsort label-6109
SELECT ALL MAX( ALL + 56 ) + MIN( ALL - col2 ) FROM tab1 AS cor0
----
-40

skipif mysql # not compatible
query I rowsort label-6109
SELECT ALL MAX ( ALL + 56 ) + MIN ( ALL - col2 ) FROM tab1 AS cor0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-6110
SELECT + + COUNT( * ) + 54 col2 FROM tab2 AS cor0
----
57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6110
SELECT + + COUNT ( * ) + 54 col2 FROM tab2 AS cor0
----
57

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col1 ) < col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6112
SELECT DISTINCT ( - + COUNT( ALL - ( col1 ) ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-6112
SELECT DISTINCT ( - + COUNT ( ALL - ( col1 ) ) ) FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6113
SELECT + + MAX( + col1 ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-6113
SELECT + + MAX ( + col1 ) FROM tab2 AS cor0
----
77

onlyif mysql # DIV for integer division: 
query II rowsort label-6114
SELECT 36, - ( 60 ) DIV - 50 AS col0 FROM tab1 AS cor0
----
36
1
36
1
36
1

skipif mysql # not compatible
query II rowsort label-6114
SELECT 36, - ( 60 ) / - 50 AS col0 FROM tab1 AS cor0
----
36
1
36
1
36
1

query II rowsort
SELECT - col0 AS col0, - col1 * + col1 FROM tab0 AS cor0
----
-15
-6561
-87
-441
-97
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6116
SELECT - COUNT( * ) * + - 30 AS col2 FROM tab1 cor0
----
90

skipif mysql # not compatible
query I rowsort label-6116
SELECT - COUNT ( * ) * + - 30 AS col2 FROM tab1 cor0
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6117
SELECT COUNT( * ) DIV + COUNT( * ) col0 FROM tab0 cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6117
SELECT COUNT ( * ) / + COUNT ( * ) col0 FROM tab0 cor0
----
1

query I rowsort
SELECT DISTINCT 79 + - + col1 FROM tab0 AS cor0
----
-2
58
78

query I rowsort
SELECT + 49 - + 69 AS col2 FROM tab2 AS cor0
----
-20
-20
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-6120
SELECT DISTINCT + 68 DIV - col0 FROM tab0
----
-4
0

skipif mysql # not compatible
query I rowsort label-6120
SELECT DISTINCT + 68 / - col0 FROM tab0
----
-4
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col2 = NULL
----

query II rowsort
SELECT - 12, - col2 AS col2 FROM tab2
----
-12
-23
-12
-40
-12
-58

query I rowsort
SELECT ALL + ( - 36 ) FROM tab0
----
-36
-36
-36

query I rowsort
SELECT + + col2 * + col1 AS col1 FROM tab1 cor0
----
1344
295
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-6125
SELECT ALL + SUM( - - col2 ) AS col2 FROM tab0 WHERE - 58 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6125
SELECT ALL + SUM ( - - col2 ) AS col2 FROM tab0 WHERE - 58 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6126
SELECT SUM( DISTINCT + + 18 ) FROM tab0 cor0
----
18

skipif mysql # not compatible
query I rowsort label-6126
SELECT SUM ( DISTINCT + + 18 ) FROM tab0 cor0
----
18

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL IN ( col2 / - 55 * + ( + - col0 ) * 73 ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6128
SELECT ALL - COUNT( * ) + + - ( - 93 ) DIV + - SUM( DISTINCT - col2 ) - COUNT( * ) AS col2 FROM tab0 cor0
----
-6

skipif mysql # not compatible
query I rowsort label-6128
SELECT ALL - COUNT ( * ) + + - ( - 93 ) / + - SUM ( DISTINCT - col2 ) - COUNT ( * ) AS col2 FROM tab0 cor0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-6129
SELECT ALL 34 + + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE - col0 BETWEEN + ( - - col0 ) AND - - 57
----
34

skipif mysql # not compatible
query I rowsort label-6129
SELECT ALL 34 + + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE - col0 BETWEEN + ( - - col0 ) AND - - 57
----
34

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( NULL ) <= ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6131
SELECT DISTINCT - COUNT( * ) * COUNT( * ) AS col2 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-6131
SELECT DISTINCT - COUNT ( * ) * COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6132
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 / + - col2 / + - CAST( CAST( col1 AS SIGNED ) AS SIGNED ) - + col1 IN ( - 54 * - 37 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-6132
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 / + - col2 / + - CAST ( CAST ( col1 AS INTEGER ) AS INTEGER ) - + col1 IN ( - 54 * - 37 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6133
SELECT CAST( col2 AS SIGNED ) * 53 + CAST( NULL AS SIGNED ) * - col1 AS col0 FROM tab2 AS cor0 WHERE + col2 BETWEEN 0 * - CAST( NULL AS DECIMAL ) + - ( + - col1 ) AND ( + col2 )
----

skipif mysql # not compatible
query I rowsort label-6133
SELECT CAST ( col2 AS INTEGER ) * 53 + CAST ( NULL AS INTEGER ) * - col1 AS col0 FROM tab2 AS cor0 WHERE + col2 BETWEEN 0 * - CAST ( NULL AS REAL ) + - ( + - col1 ) AND ( + col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6134
SELECT DISTINCT COUNT( * ) + COUNT( ALL 33 ) AS col1, - MAX( CAST( + col1 AS SIGNED ) ) DIV - + CAST( 62 AS SIGNED ) FROM tab2 AS cor0
----
6
1

skipif mysql # not compatible
query II rowsort label-6134
SELECT DISTINCT COUNT ( * ) + COUNT ( ALL 33 ) AS col1, - MAX ( CAST ( + col1 AS INTEGER ) ) / - + CAST ( 62 AS INTEGER ) FROM tab2 AS cor0
----
6
1

query I rowsort
SELECT 25 * - col0 FROM tab0 AS cor0 WHERE + col2 * - - col0 / ( - 71 ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - 59 < NULL )
----

query I rowsort
SELECT col0 / + col0 + - 48 AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6138
SELECT - 84 DIV + 47 + + col1 DIV 2 * + - 76 AS col1 FROM tab2
----
-1901
-2509
-2889

skipif mysql # not compatible
query I rowsort label-6138
SELECT - 84 / + 47 + + col1 / 2 * + - 76 AS col1 FROM tab2
----
-1901
-2509
-2889

onlyif mysql # aggregate syntax: 
query I rowsort label-6139
SELECT ALL - MAX( - ( + col2 ) ) FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-6139
SELECT ALL - MAX ( - ( + col2 ) ) FROM tab2
----
23

query II rowsort
SELECT col1 * + col1 + - col0 AS col2, - 59 AS col0 FROM tab1
----
-60
-59
145
-59
2118
-59

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6141
SELECT * FROM tab2 WHERE ( ( col2 / - col1 + - col2 ) <> ( col2 + ( - col0 ) * CAST( NULL AS SIGNED ) ) ) OR NOT NULL NOT BETWEEN 22 AND + ( col0 )
----

skipif mysql # not compatible
query III rowsort label-6141
SELECT * FROM tab2 WHERE ( ( col2 / - col1 + - col2 ) <> ( col2 + ( - col0 ) * CAST ( NULL AS INTEGER ) ) ) OR NOT NULL NOT BETWEEN 22 AND + ( col0 )
----

query I rowsort
SELECT col0 + + 94 FROM tab1
----
145
179
185

query I rowsort
SELECT 72 + col2 AS col1 FROM tab0
----
119
171
82

query I rowsort
SELECT - col0 + + col2 + - - 85 FROM tab1
----
130
59
62

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col2 NOT BETWEEN - col2 AND - col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL > - 89
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6147
SELECT DISTINCT MIN( - col1 ) AS col0 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-6147
SELECT DISTINCT MIN ( - col1 ) AS col0 FROM tab1
----
-47

query I rowsort
SELECT ALL col1 * + 68 FROM tab1
----
3196
340
952

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL BETWEEN NULL AND + col0 * - 1 + - + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6150
SELECT DISTINCT 33 * COUNT( * ) AS col1 FROM tab0 cor0
----
99

skipif mysql # not compatible
query I rowsort label-6150
SELECT DISTINCT 33 * COUNT ( * ) AS col1 FROM tab0 cor0
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-6151
SELECT ( - col2 ) DIV - 42 FROM tab1 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-6151
SELECT ( - col2 ) / - 42 FROM tab1 AS cor0
----
1
1
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6152
SELECT ALL - COUNT( * ) DIV - ( - COUNT( * ) ) + 38 FROM tab2 AS cor0
----
37

skipif mysql # not compatible
query I rowsort label-6152
SELECT ALL - COUNT ( * ) / - ( - COUNT ( * ) ) + 38 FROM tab2 AS cor0
----
37

query I rowsort
SELECT + + 89 + - 9 FROM tab0 cor0 WHERE NOT ( NULL ) NOT IN ( + col2 + - col0 + - col1, col0 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IN ( + col1, + 76 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6155
SELECT + + MAX( + col0 ) * 90 * + - 31 AS col0 FROM tab0 AS cor0
----
-270630

skipif mysql # not compatible
query I rowsort label-6155
SELECT + + MAX ( + col0 ) * 90 * + - 31 AS col0 FROM tab0 AS cor0
----
-270630

onlyif mysql # aggregate syntax: 
query I rowsort label-6156
SELECT MIN( + col1 ) FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-6156
SELECT MIN ( + col1 ) FROM tab0 cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6157
SELECT + COUNT( ALL + + 95 ) col2 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6157
SELECT + COUNT ( ALL + + 95 ) col2 FROM tab1
----
3

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 * - col2 + + col1 >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6159
SELECT ALL - + 14 DIV col2 FROM tab0 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6159
SELECT ALL - + 14 / col2 FROM tab0 cor0
----
-1
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6160
SELECT - 1 * + ( + col0 ) * - col0 + - - col2 DIV - col2 FROM tab2 AS cor0
----
2115
4095
5624

skipif mysql # not compatible
query I rowsort label-6160
SELECT - 1 * + ( + col0 ) * - col0 + - - col2 / - col2 FROM tab2 AS cor0
----
2115
4095
5624

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6161
SELECT + - ( - CAST( NULL AS SIGNED ) ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6161
SELECT + - ( - CAST ( NULL AS INTEGER ) ) FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 94 * - + col2 FROM tab2
----
-2162
-3760
-5452

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6163
SELECT + COUNT( * ) - CAST( NULL AS SIGNED ) AS col1, ( COUNT( * ) ) + + + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL
18

skipif mysql # not compatible
query II rowsort label-6163
SELECT + COUNT ( * ) - CAST ( NULL AS INTEGER ) AS col1, ( COUNT ( * ) ) + + + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL
18

query I rowsort
SELECT ALL - - col0 AS col2 FROM tab0 WHERE - col2 * - col2 - col1 + col2 + - + col0 IS NOT NULL
----
15
87
97

query III rowsort
SELECT * FROM tab2 cor0 WHERE - 11 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 + - 10 col2 FROM tab1 AS cor0
----
41
75
81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6167
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( CAST( NULL AS SIGNED ) * col2 + - - col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-6167
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( CAST ( NULL AS INTEGER ) * col2 + - - col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-6168
SELECT col1 AS col2, col2 + - col2 DIV + col0 AS col2 FROM tab0 cor0
----
1
98
21
10
81
44

skipif mysql # not compatible
query II rowsort label-6168
SELECT col1 AS col2, col2 + - col2 / + col0 AS col2 FROM tab0 cor0
----
1
98
21
10
81
44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + 6 AS col0, + ( + 47 ) col1 FROM tab1 AS cor0
----
6
47
6
47
6
47

onlyif mysql # aggregate syntax: 
query I rowsort label-6170
SELECT DISTINCT - SUM( - - col0 ) AS col0 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-6170
SELECT DISTINCT - SUM ( - - col0 ) AS col0 FROM tab2 AS cor0
----
-185

onlyif mysql # aggregate syntax: 
query I rowsort label-6171
SELECT DISTINCT - + COUNT( DISTINCT col1 ) * + 15 + - - MIN( ALL col2 ) FROM tab2 cor0
----
-22

skipif mysql # not compatible
query I rowsort label-6171
SELECT DISTINCT - + COUNT ( DISTINCT col1 ) * + 15 + - - MIN ( ALL col2 ) FROM tab2 cor0
----
-22

query I rowsort
SELECT + + 35 * + col1 AS col2 FROM tab0 AS cor0
----
2835
35
735

query I rowsort
SELECT + col2 FROM tab1 WHERE ( - 87 / + + 47 > NULL )
----

query I rowsort
SELECT + 71 AS col1 FROM tab0 WHERE + col1 BETWEEN NULL AND 2
----

query I rowsort
SELECT DISTINCT col0 + + col2 * - - col1 + - 92 AS col0 FROM tab2 AS cor0
----
1127
3052
3869

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE col0 + col0 < NULL
----

query I rowsort
SELECT ALL col2 + 8 FROM tab1 AS cor0 WHERE NULL IS NULL
----
104
67
76

query III rowsort
SELECT ALL * FROM tab2 WHERE - col2 + + - 59 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT 12 * - + col2 AS col2 FROM tab0
----
-1188
-120
-564

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6180
SELECT CAST( NULL AS SIGNED ) * + col1 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6180
SELECT CAST ( NULL AS INTEGER ) * + col1 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ( 59 ) AS col1 FROM tab2
----
59
59
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6182
SELECT - CAST( + 81 AS SIGNED ) AS col1 FROM tab0 WHERE NOT ( + - 60 ) IS NULL
----
-81
-81
-81

skipif mysql # not compatible
query I rowsort label-6182
SELECT - CAST ( + 81 AS INTEGER ) AS col1 FROM tab0 WHERE NOT ( + - 60 ) IS NULL
----
-81
-81
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6183
SELECT CAST( NULL AS SIGNED ) * - + 18 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6183
SELECT CAST ( NULL AS INTEGER ) * - + 18 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6184
SELECT DISTINCT + ( + + ( COUNT( * ) ) ) * + + 93 * + 74 AS col0 FROM tab1 AS cor0
----
20646

skipif mysql # not compatible
query I rowsort label-6184
SELECT DISTINCT + ( + + ( COUNT ( * ) ) ) * + + 93 * + 74 AS col0 FROM tab1 AS cor0
----
20646

query II rowsort
SELECT + col1 AS col1, col0 FROM tab2 AS cor0
----
51
46
67
75
77
64

query II rowsort
SELECT - + 86, + col0 FROM tab2 AS cor0
----
-86
46
-86
64
-86
75

query II rowsort
SELECT DISTINCT - col1 AS col1, - 25 FROM tab2 cor0
----
-51
-25
-67
-25
-77
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-6188
SELECT ALL + COUNT( * ), 52 * COUNT( * ) AS col1 FROM tab1 AS cor0
----
3
156

skipif mysql # not compatible
query II rowsort label-6188
SELECT ALL + COUNT ( * ), 52 * COUNT ( * ) AS col1 FROM tab1 AS cor0
----
3
156

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND - 16 * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6190
SELECT DISTINCT - ( + MAX( DISTINCT - - col0 ) ) AS col0 FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-6190
SELECT DISTINCT - ( + MAX ( DISTINCT - - col0 ) ) AS col0 FROM tab0
----
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - + col1 ) * col1 * col2 col2 FROM tab2
----
-237160
-260362
-59823

onlyif mysql # aggregate syntax: 
query I rowsort label-6192
SELECT MIN( ALL - - col0 ) FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-6192
SELECT MIN ( ALL - - col0 ) FROM tab2
----
46

onlyif mysql # aggregate syntax: 
query II rowsort label-6193
SELECT - ( + 28 ) AS col2, + COUNT( ALL 34 ) * - 93 AS col0 FROM tab2
----
-28
-279

skipif mysql # not compatible
query II rowsort label-6193
SELECT - ( + 28 ) AS col2, + COUNT ( ALL 34 ) * - 93 AS col0 FROM tab2
----
-28
-279

query I rowsort
SELECT DISTINCT + col0 * + - 95 FROM tab0
----
-1425
-8265
-9215

query I rowsort
SELECT DISTINCT - 16 FROM tab0 WHERE + + 11 <= - 5
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 96 * ( + + 92 ) * - 71 col1 FROM tab0
----
627072
627072
627072

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 >= + col0 - + col1
----

query I rowsort
SELECT DISTINCT + col2 FROM tab2 AS cor0 WHERE NOT + 36 * col0 + - col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <> - - ( col2 ) * col2
----

query I rowsort
SELECT ALL + col0 + + + col0 AS col2 FROM tab2 AS cor0
----
128
150
92

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 * + col1 < - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - AVG ( ALL + - col0 ) FROM tab1 AS cor0 WHERE col0 / - 78 IS NULL
----
NULL

query I rowsort
SELECT - 1 + + 44 FROM tab2 AS cor0
----
43
43
43

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6204
SELECT * FROM tab2 WHERE - ( + col2 ) < + CAST( - 76 AS DECIMAL ) * - 63
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6204
SELECT * FROM tab2 WHERE - ( + col2 ) < + CAST ( - 76 AS REAL ) * - 63
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6205
SELECT COUNT( * ) + - COUNT( DISTINCT - col1 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6205
SELECT COUNT ( * ) + - COUNT ( DISTINCT - col1 ) FROM tab0
----
0

query I rowsort
SELECT + col1 + 52 FROM tab2
----
103
119
129

query II rowsort
SELECT col2 + - 97, + col1 FROM tab0
----
-50
81
-87
21
2
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 75 + - + col1 col2 FROM tab2
----
-126
-142
-152

onlyif mysql # aggregate syntax: 
query I rowsort label-6209
SELECT ALL 63 * + MAX( ( - 66 ) ) col0 FROM tab0
----
-4158

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6209
SELECT ALL 63 * + MAX ( ( - 66 ) ) col0 FROM tab0
----
-4158

query I rowsort
SELECT + col1 * + 61 FROM tab2
----
3111
4087
4697

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6211
SELECT ALL * FROM tab2 WHERE NOT + - col0 + + ( 2 ) + + - CAST( NULL AS SIGNED ) >= + 19
----

skipif mysql # not compatible
query III rowsort label-6211
SELECT ALL * FROM tab2 WHERE NOT + - col0 + + ( 2 ) + + - CAST ( NULL AS INTEGER ) >= + 19
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6212
SELECT ALL 47 + + CAST( NULL AS SIGNED ) / ( + 46 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6212
SELECT ALL 47 + + CAST ( NULL AS INTEGER ) / ( + 46 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6213
SELECT DISTINCT - - COUNT( * ) + - MAX( ALL col1 ) FROM tab0 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-6213
SELECT DISTINCT - - COUNT ( * ) + - MAX ( ALL col1 ) FROM tab0 AS cor0
----
-78

query II rowsort
SELECT - col2, - ( + - col2 ) FROM tab0 AS cor0 WHERE NULL >= - col2 * + 28
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6215
SELECT ALL + COUNT( * ) FROM tab2 AS cor0 WHERE NOT - col2 NOT BETWEEN ( 93 ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-6215
SELECT ALL + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT - col2 NOT BETWEEN ( 93 ) AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6216
SELECT - COUNT( + 44 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6216
SELECT - COUNT ( + 44 ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT ALL 18 AS col2 FROM tab0 AS cor0 WHERE NOT ( + - ( + - 47 ) ) IS NULL
----
18
18
18

query I rowsort
SELECT DISTINCT + - 72 * - col2 FROM tab2 AS cor0
----
1656
2880
4176

query I rowsort
SELECT DISTINCT col1 * + 86 * col1 FROM tab2 AS cor0
----
223686
386054
509894

query I rowsort
SELECT 78 * + + col0 AS col1 FROM tab0
----
1170
6786
7566

query III rowsort
SELECT ALL * FROM tab1 WHERE ( 57 NOT BETWEEN ( + col0 ) AND ( - col2 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6222
SELECT + MAX( DISTINCT - col1 ) col1 FROM tab0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6222
SELECT + MAX ( DISTINCT - col1 ) col1 FROM tab0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6223
SELECT COUNT( col2 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6223
SELECT COUNT ( col2 ) AS col2 FROM tab0
----
3

query I rowsort
SELECT ALL + col1 * + + col0 AS col2 FROM tab2
----
2346
4928
5025

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - ( - 7 ) col2 FROM tab1
----
413
476
672

onlyif mysql # aggregate syntax: 
query I rowsort label-6226
SELECT ALL MAX( + col1 ) AS col0 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-6226
SELECT ALL MAX ( + col1 ) AS col0 FROM tab0 AS cor0
----
81

query I rowsort
SELECT ALL - 18 * - 10 FROM tab2 AS cor0
----
180
180
180

query I rowsort
SELECT col2 * - col1 + ( 54 ) AS col0 FROM tab1 AS cor0
----
-1290
-241
-3142

query I rowsort
SELECT DISTINCT + 9 * - 22 + + + 9 - - 93 AS col0 FROM tab0
----
-96

query I rowsort
SELECT ALL - 74 + + - ( + col0 ) FROM tab1 AS cor0
----
-125
-159
-165

query I rowsort
SELECT ALL 98 + + + col0 FROM tab0 AS cor0
----
113
185
195

onlyif mysql # DIV for integer division: 
query I rowsort label-6232
SELECT + - col2 DIV - col2 col0 FROM tab0 cor0
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6232
SELECT + - col2 / - col2 col0 FROM tab0 cor0
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6233
SELECT - 78 * - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6233
SELECT - 78 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6234
SELECT DISTINCT COUNT( * ) + 28 col1 FROM tab2 AS cor0
----
31

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6234
SELECT DISTINCT COUNT ( * ) + 28 col1 FROM tab2 AS cor0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-6235
SELECT ALL + - COUNT( * ) + + MAX( DISTINCT col2 ) FROM tab0 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-6235
SELECT ALL + - COUNT ( * ) + + MAX ( DISTINCT col2 ) FROM tab0 AS cor0
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6236
SELECT DISTINCT - - 66 * - CAST( + col1 AS SIGNED ) + + + 17 + + - col2 + - col0 - - 23 AS col2 FROM tab2 AS cor0
----
-3395
-4515
-5146

skipif mysql # not compatible
query I rowsort label-6236
SELECT DISTINCT - - 66 * - CAST ( + col1 AS INTEGER ) + + + 17 + + - col2 + - col0 - - 23 AS col2 FROM tab2 AS cor0
----
-3395
-4515
-5146

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6237
SELECT ALL - + 92 FROM tab1 cor0 WHERE NOT NULL BETWEEN + col2 + CAST( - 55 AS DECIMAL ) + 12 AND NULL
----

skipif mysql # not compatible
query I rowsort label-6237
SELECT ALL - + 92 FROM tab1 cor0 WHERE NOT NULL BETWEEN + col2 + CAST ( - 55 AS REAL ) + 12 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 99 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 * - 10 NOT IN ( col2, col1 + - col1 + + ( + col1 ) * 25 + - col0, - 4, + col2, - 92 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6240
SELECT ALL - COUNT( - 92 ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-6240
SELECT ALL - COUNT ( - 92 ) AS col0 FROM tab0
----
-3

query I rowsort
SELECT - col2 - - col1 - + col1 AS col1 FROM tab0
----
-10
-47
-99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6242
SELECT + 43 AS col2, - CAST( NULL AS SIGNED ) FROM tab0 WHERE 29 NOT IN ( col2 )
----
43
NULL
43
NULL
43
NULL

skipif mysql # not compatible
query II rowsort label-6242
SELECT + 43 AS col2, - CAST ( NULL AS INTEGER ) FROM tab0 WHERE 29 NOT IN ( col2 )
----
43
NULL
43
NULL
43
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2, ( - 96 ) col1 FROM tab1
----
59
-96
68
-96
96
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 32 * - col2 + col1 + + col1 col0 FROM tab2
----
-1126
-1722
-634

query I rowsort
SELECT col1 * + col0 + + col0 FROM tab1
----
4368
510
765

onlyif mysql # aggregate syntax: 
query I rowsort label-6246
SELECT DISTINCT + COUNT( + 50 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6246
SELECT DISTINCT + COUNT ( + 50 ) FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6247
SELECT * FROM tab1 cor0 WHERE - col0 - - col0 + col2 * + ( - - col2 ) * - col1 * - col2 - - 39 + - - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-6247
SELECT * FROM tab1 cor0 WHERE - col0 - - col0 + col2 * + ( - - col2 ) * - col1 * - col2 - - 39 + - - CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT ALL - + col0 + + col0 + + - col1 + + 50 AS col1 FROM tab1 AS cor0
----
3
36
45

onlyif mysql # aggregate syntax: 
query I rowsort label-6249
SELECT MAX( ALL - col2 ) * + COUNT( + col2 ) + + COUNT( * ) FROM tab1 AS cor0
----
-174

skipif mysql # not compatible
query I rowsort label-6249
SELECT MAX ( ALL - col2 ) * + COUNT ( + col2 ) + + COUNT ( * ) FROM tab1 AS cor0
----
-174

onlyif mysql # aggregate syntax: 
query I rowsort label-6250
SELECT DISTINCT - + 34 + + + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-31

skipif mysql # not compatible
query I rowsort label-6250
SELECT DISTINCT - + 34 + + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-6251
SELECT - COUNT( - ( ( col2 ) ) ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6251
SELECT - COUNT ( - ( ( col2 ) ) ) FROM tab1 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 73 col1 FROM tab0
----
73
73
73

onlyif mysql # aggregate syntax: 
query I rowsort label-6253
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL = - 5 * + col0
----
0

skipif mysql # not compatible
query I rowsort label-6253
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL = - 5 * + col0
----
0

query II rowsort
SELECT 81 AS col2, col0 FROM tab1 AS cor0
----
81
51
81
85
81
91

query I rowsort
SELECT col2 * - 73 FROM tab2 AS cor0 WHERE NOT ( col2 ) >= NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL < 27 / + 90
----

query I rowsort
SELECT ALL - + col0 * - - col2 FROM tab0 AS cor0
----
-705
-870
-9603

query I rowsort
SELECT ALL - 55 * 2 AS col1 FROM tab2
----
-110
-110
-110

onlyif mysql # aggregate syntax: 
query II rowsort label-6259
SELECT ( + COUNT( * ) ) AS col0, 19 AS col1 FROM tab2
----
3
19

skipif mysql # not compatible
query II rowsort label-6259
SELECT ( + COUNT ( * ) ) AS col0, 19 AS col1 FROM tab2
----
3
19

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - 71 * 92 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6261
SELECT * FROM tab1 WHERE NOT - col0 + - ( + 84 ) + + + col2 * - col0 NOT IN ( + col1, + 52 * - 72 + + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-6261
SELECT * FROM tab1 WHERE NOT - col0 + - ( + 84 ) + + + col2 * - col0 NOT IN ( + col1, + 52 * - 72 + + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6262
SELECT - ( + - 34 ) * - COUNT( * ) + 63 FROM tab1
----
-39

skipif mysql # not compatible
query I rowsort label-6262
SELECT - ( + - 34 ) * - COUNT ( * ) + 63 FROM tab1
----
-39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 17 * - + col0 + col1 + 97 col0 FROM tab2
----
-1111
-634
-914

query II rowsort
SELECT col0 + 25 AS col1, 48 FROM tab0
----
112
48
122
48
40
48

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL = - 60 * + 18
----

query I rowsort
SELECT col2 + 13 + + col1 FROM tab2 cor0
----
130
138
87

onlyif mysql # DIV for integer division: 
query I rowsort label-6267
SELECT DISTINCT + col0 + + + col1 + - + col1 - + + 53 DIV + col1 AS col1 FROM tab1 AS cor0
----
48
75
90

skipif mysql # not compatible
query I rowsort label-6267
SELECT DISTINCT + col0 + + + col1 + - + col1 - + + 53 / + col1 AS col1 FROM tab1 AS cor0
----
48
75
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6268
SELECT - CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-6268
SELECT - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 + + - col2 - + - col2 col2 FROM tab1 WHERE NOT + - col1 * + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6270
SELECT DISTINCT - COUNT( * ) + + CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6270
SELECT DISTINCT - COUNT ( * ) + + CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL col0 + - col2 * + col2 + 49 FROM tab2 AS cor0
----
-1487
-3240
-434

query I rowsort
SELECT DISTINCT + col0 + - 27 FROM tab1 AS cor0
----
24
58
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6273
SELECT ALL COUNT( * ) AS col1 FROM tab0 cor0 WHERE + ( 64 ) NOT IN ( - + 73, CAST( NULL AS SIGNED ), + - ( + col0 ), - col0 + + + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-6273
SELECT ALL COUNT ( * ) AS col1 FROM tab0 cor0 WHERE + ( 64 ) NOT IN ( - + 73, CAST ( NULL AS INTEGER ), + - ( + col0 ), - col0 + + + col2 )
----
0

query I rowsort
SELECT - col0 * + col1 + + 52 + - col0 AS col2 FROM tab2
----
-2340
-4940
-5048

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col1 ) * - 19 col2 FROM tab2
----
-1273
-1463
-969

query I rowsort
SELECT - col0 * + col1 * + col0 * - + col0 FROM tab0 AS cor0
----
13828563
273375
912673

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 48 col0 FROM tab0 AS cor0
----
48
48
48

query I rowsort
SELECT - - col2 AS col2 FROM tab0 AS cor0 WHERE NOT col1 * + 15 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6279
SELECT - col1 * + ( CAST( NULL AS SIGNED ) ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6279
SELECT - col1 * + ( CAST ( NULL AS INTEGER ) ) FROM tab1 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( NULL ) BETWEEN + col2 AND + col2
----

query II rowsort
SELECT ALL 37 AS col0, - col2 * - col1 AS col2 FROM tab1 AS cor0
----
37
1344
37
295
37
3196

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6282
SELECT DISTINCT + COUNT( * ) * CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6282
SELECT DISTINCT + COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6283
SELECT + - COUNT( * ) * COUNT( DISTINCT - col2 ) FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-6283
SELECT + - COUNT ( * ) * COUNT ( DISTINCT - col2 ) FROM tab2 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-6284
SELECT DISTINCT 22 * COUNT( * ) * + COUNT( * ) * - + 2 FROM tab2 AS cor0
----
-396

skipif mysql # not compatible
query I rowsort label-6284
SELECT DISTINCT 22 * COUNT ( * ) * + COUNT ( * ) * - + 2 FROM tab2 AS cor0
----
-396

query I rowsort
SELECT + col1 * - - col1 AS col0 FROM tab1 AS cor0
----
196
2209
25

query I rowsort
SELECT DISTINCT - ( ( - 48 ) ) FROM tab0
----
48

query II rowsort
SELECT + col2 AS col0, + col1 + - col0 * + - col0 + col0 FROM tab1
----
59
7315
68
8419
96
2666

query II rowsort
SELECT DISTINCT + col0 AS col2, - col2 FROM tab1
----
51
-96
85
-59
91
-68

query I rowsort
SELECT ALL - ( ( - col1 ) ) AS col0 FROM tab2
----
51
67
77

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT IN ( - col0, col2, - ( ( col0 ) ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6291
SELECT ALL CAST( NULL AS SIGNED ) col2, - col0 AS col0 FROM tab1
----
NULL
-51
NULL
-85
NULL
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6291
SELECT ALL CAST ( NULL AS INTEGER ) col2, - col0 AS col0 FROM tab1
----
NULL
-51
NULL
-85
NULL
-91

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL BETWEEN ( - + col1 ) AND 97
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6293
SELECT COUNT( * ) col0, 1 FROM tab0
----
3
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6293
SELECT COUNT ( * ) col0, 1 FROM tab0
----
3
1

query I rowsort
SELECT ALL + col1 * - col2 + - 25 - + - 76 FROM tab2 AS cor0
----
-1122
-3029
-3835

query I rowsort
SELECT + 77 + + col1 FROM tab1 AS cor0
----
124
82
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6296
SELECT DISTINCT + 49 * + COUNT( * ) col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
441

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6296
SELECT DISTINCT + 49 * + COUNT ( * ) col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
441

query I rowsort
SELECT DISTINCT - 99 AS col0 FROM tab1, tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - + 91 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-91

query I rowsort
SELECT ALL + col2 + + + col0 + - + col2 AS col1 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT DISTINCT + + 72 + - col1 + - col0 FROM tab2 AS cor0
----
-25
-69
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-6301
SELECT col2 * 24 DIV 5 AS col2 FROM tab2 AS cor0
----
110
192
278

skipif mysql # not compatible
query I rowsort label-6301
SELECT col2 * 24 / 5 AS col2 FROM tab2 AS cor0
----
110
192
278

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6302
SELECT - ( + CAST( + + CAST( + - col2 AS SIGNED ) AS SIGNED ) ) col1 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6302
SELECT - ( + CAST ( + + CAST ( + - col2 AS INTEGER ) AS INTEGER ) ) col1 FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT DISTINCT + + 89 * - col1 + - col1 FROM tab1 AS cor0
----
-1260
-4230
-450

query I rowsort
SELECT DISTINCT ( + - col2 ) * + col2 * + col2 - - 56 FROM tab0 AS cor0
----
-103767
-944
-970243

query I rowsort
SELECT ALL + - col0 + - - col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6306
SELECT DISTINCT - 17 + - + col1 AS col2, - col2 - - 22 + + col0 + + col1 + - col0 + - col1 + - - 71 * - - col2 + + col1 - + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
-22
NULL
-31
NULL
-64
NULL

skipif mysql # not compatible
query II rowsort label-6306
SELECT DISTINCT - 17 + - + col1 AS col2, - col2 - - 22 + + col0 + + col1 + - col0 + - col1 + - - 71 * - - col2 + + col1 - + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
-22
NULL
-31
NULL
-64
NULL

query I rowsort
SELECT + - col1 FROM tab2 WHERE NULL IS NULL
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-6308
SELECT ALL MIN( ALL + col1 ) FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-6308
SELECT ALL MIN ( ALL + col1 ) FROM tab1
----
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 46 col0 FROM tab1
----
46
46
46

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE NOT + col2 NOT BETWEEN col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6311
SELECT DISTINCT - col1 AS col0 FROM tab1 AS cor0 WHERE NOT - CAST( col2 AS SIGNED ) IS NULL
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-6311
SELECT DISTINCT - col1 AS col0 FROM tab1 AS cor0 WHERE NOT - CAST ( col2 AS INTEGER ) IS NULL
----
-14
-47
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-6312
SELECT DISTINCT + + col1 DIV - 55 + 39 FROM tab2 AS cor0
----
38
39

skipif mysql # not compatible
query I rowsort label-6312
SELECT DISTINCT + + col1 / - 55 + 39 FROM tab2 AS cor0
----
38
39

query I rowsort
SELECT DISTINCT - col0 * 62 AS col0 FROM tab2
----
-2852
-3968
-4650

query II rowsort
SELECT DISTINCT - 6 + - col1 AS col2, + col0 FROM tab2 AS cor0
----
-57
46
-73
75
-83
64

query I rowsort
SELECT - col2 + - ( - 77 ) AS col2 FROM tab0
----
-22
30
67

onlyif mysql # aggregate syntax: 
query I rowsort label-6316
SELECT - 98 + - + COUNT( * ) FROM tab2
----
-101

skipif mysql # not compatible
query I rowsort label-6316
SELECT - 98 + - + COUNT ( * ) FROM tab2
----
-101

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 79 col0 FROM tab0
----
79

query I rowsort
SELECT 33 * + col0 * col2 + + - col2 AS col2 FROM tab1
----
161472
165436
204136

query I rowsort
SELECT - col0 + + 14 + - col2 FROM tab1
----
-130
-133
-145

query I rowsort
SELECT DISTINCT 61 + 61 FROM tab0 cor0
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-6321
SELECT + MIN( + - col2 ) FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-6321
SELECT + MIN ( + - col2 ) FROM tab0 AS cor0
----
-99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 13 - - 21 = NULL
----

query I rowsort
SELECT ALL + col2 + + - col0 FROM tab0 AS cor0
----
-77
2
32

onlyif mysql # aggregate syntax: 
query I rowsort label-6324
SELECT ( - + COUNT( * ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-6324
SELECT ( - + COUNT ( * ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

query II rowsort
SELECT ALL + 49 AS col0, 36 * - col1 FROM tab1
----
49
-1692
49
-180
49
-504

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 52 - - col0 - - 65 col1 FROM tab1
----
168
202
208

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE + 70 IS NOT NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

query I rowsort
SELECT DISTINCT col0 * + - 3 FROM tab0
----
-261
-291
-45

query I rowsort
SELECT - col1 FROM tab2 cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT 95 + + col0 + col2 * - col0 AS col0 FROM tab1 cor0
----
-4750
-4835
-6002

onlyif mysql # aggregate syntax: 
query I rowsort label-6331
SELECT ALL - MIN( ALL + 31 ) AS col2 FROM tab1 AS cor0
----
-31

skipif mysql # not compatible
query I rowsort label-6331
SELECT ALL - MIN ( ALL + 31 ) AS col2 FROM tab1 AS cor0
----
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-6332
SELECT + 52 DIV + + col0 + - - 55 - + 40 + + col0 FROM tab1 AS cor0
----
100
106
67

skipif mysql # not compatible
query I rowsort label-6332
SELECT + 52 / + + col0 + - - 55 - + 40 + + col0 FROM tab1 AS cor0
----
100
106
67

onlyif mysql # aggregate syntax: 
query I rowsort label-6333
SELECT ALL MAX( - ( + - 7 ) ) FROM tab1 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-6333
SELECT ALL MAX ( - ( + - 7 ) ) FROM tab1 AS cor0
----
7

query I rowsort
SELECT ALL + 80 * - + ( + + 63 ) FROM tab0 AS cor0
----
-5040
-5040
-5040

onlyif mysql # aggregate syntax: 
query I rowsort label-6335
SELECT DISTINCT + MAX( - + col0 ) AS col1 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-6335
SELECT DISTINCT + MAX ( - + col0 ) AS col1 FROM tab1
----
-51

query I rowsort
SELECT + col0 * - + ( col2 ) + + col2 FROM tab2 WHERE NOT NULL NOT IN ( + - col0, col0 )
----

query I rowsort
SELECT ALL - col0 * - + ( - 78 ) AS col0 FROM tab0
----
-1170
-6786
-7566

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 0 * - col1, - ( col1 ) + - col0 * + col1 + col2 col1 FROM tab2
----
0
-2374
0
-4965
0
-5034

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 54 IS NOT NULL
----

query II rowsort
SELECT ( col2 ) AS col0, 55 AS col0 FROM tab2
----
23
55
40
55
58
55

query I rowsort
SELECT ALL col1 * + col0 * - col2 AS col2 FROM tab1
----
-25075
-290836
-68544

query I rowsort
SELECT DISTINCT 75 * - + 52 * - - 81 * + + col0 AS col2 FROM tab0
----
-27483300
-30642300
-4738500

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6343
SELECT + 80 + - 92 DIV + COUNT( * ) FROM tab1 WHERE NOT + col1 IS NULL
----
50

skipif mysql # not compatible
query I rowsort label-6343
SELECT + 80 + - 92 / + COUNT ( * ) FROM tab1 WHERE NOT + col1 IS NULL
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-6344
SELECT DISTINCT + COUNT( 64 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6344
SELECT DISTINCT + COUNT ( 64 ) FROM tab0
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 + - col1 * - - 54 + - 36 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6346
SELECT + col1 DIV - col2 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6346
SELECT + col1 / - col2 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT ( - 97 ) AS col1 FROM tab1 AS cor0
----
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-6348
SELECT - + 90 DIV - + 64 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6348
SELECT - + 90 / - + 64 FROM tab0 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6349
SELECT ALL - COUNT( * ) * - 20 - - + 76 FROM tab0 cor0
----
136

skipif mysql # not compatible
query I rowsort label-6349
SELECT ALL - COUNT ( * ) * - 20 - - + 76 FROM tab0 cor0
----
136

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6350
SELECT - COUNT( * ) DIV COUNT( 56 ) AS col0 FROM tab1 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6350
SELECT - COUNT ( * ) / COUNT ( 56 ) AS col0 FROM tab1 cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6351
SELECT + + COUNT( * ) FROM tab2 WHERE NOT - 0 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-6351
SELECT + + COUNT ( * ) FROM tab2 WHERE NOT - 0 < NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6352
SELECT + COUNT( * ) FROM tab1, tab2 cor0
----
9

skipif mysql # not compatible
query I rowsort label-6352
SELECT + COUNT ( * ) FROM tab1, tab2 cor0
----
9

onlyif mysql # DIV for integer division: 
query II rowsort label-6353
SELECT DISTINCT - ( - + col0 ) DIV - col2 AS col0, col1 FROM tab2
----
-1
67
-1
77
-2
51

skipif mysql # not compatible
query II rowsort label-6353
SELECT DISTINCT - ( - + col0 ) / - col2 AS col0, col1 FROM tab2
----
-1
67
-1
77
-2
51

query I rowsort
SELECT col1 FROM tab1 cor0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6355
SELECT COUNT( * ) + + 19 AS col2 FROM tab1 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-6355
SELECT COUNT ( * ) + + 19 AS col2 FROM tab1 AS cor0
----
22

query I rowsort
SELECT DISTINCT - col2 * - col2 + + 34 AS col0 FROM tab0 cor0
----
134
2243
9835

query I rowsort
SELECT col0 * - 32 * - + col0 * - col0 AS col0 FROM tab1 AS cor0
----
-19652000
-24114272
-4244832

query I rowsort
SELECT DISTINCT - + 17 + + col1 AS col0 FROM tab2 AS cor0
----
34
50
60

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6359
SELECT DISTINCT - + 17 * + CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6359
SELECT DISTINCT - + 17 * + CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6360
SELECT DISTINCT - SUM( + + col1 ) FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-6360
SELECT DISTINCT - SUM ( + + col1 ) FROM tab0 AS cor0
----
-103

query I rowsort
SELECT ALL + col0 FROM tab2 WHERE NOT + 88 IS NULL
----
46
64
75

onlyif mysql # DIV for integer division: 
query II rowsort label-6362
SELECT + col1 DIV + 48 AS col2, 93 + + + 50 AS col1 FROM tab2
----
1
143
1
143
1
143

skipif mysql # not compatible
query II rowsort label-6362
SELECT + col1 / + 48 AS col2, 93 + + + 50 AS col1 FROM tab2
----
1
143
1
143
1
143

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6363
SELECT ALL + + CAST( + + col2 AS SIGNED ) FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-6363
SELECT ALL + + CAST ( + + col2 AS INTEGER ) FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT + col0 AS col0 FROM tab2 AS cor0 WHERE col0 + col0 IS NOT NULL
----
46
64
75

query I rowsort
SELECT DISTINCT col2 - + col1 - 93 * col2 AS col0 FROM tab0
----
-4405
-9109
-941

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6366
SELECT 21 DIV - - COUNT( * ) FROM tab1
----
7

skipif mysql # not compatible
query I rowsort label-6366
SELECT 21 / - - COUNT ( * ) FROM tab1
----
7

query I rowsort
SELECT 70 - - 47 FROM tab1 AS cor0
----
117
117
117

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6368
SELECT 6 DIV COUNT( + 81 ) FROM tab2 cor0
----
2

skipif mysql # not compatible
query I rowsort label-6368
SELECT 6 / COUNT ( + 81 ) FROM tab2 cor0
----
2

query I rowsort
SELECT DISTINCT + ( - 35 ) AS col1 FROM tab1 AS cor0
----
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-6370
SELECT COUNT( * ) AS col1, - COUNT( * ) AS col0 FROM tab1 AS cor0
----
3
-3

skipif mysql # not compatible
query II rowsort label-6370
SELECT COUNT ( * ) AS col1, - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6371
SELECT DISTINCT + ( + MAX( + col0 ) ) AS col1 FROM tab0 cor0
----
97

skipif mysql # not compatible
query I rowsort label-6371
SELECT DISTINCT + ( + MAX ( + col0 ) ) AS col1 FROM tab0 cor0
----
97

query I rowsort
SELECT DISTINCT - 66 * + + col2 * col2 FROM tab1
----
-229746
-305184
-608256

query I rowsort
SELECT col1 AS col1 FROM tab0 WHERE NOT NULL >= ( + col2 ) + col0 + col0 * - + col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6374
SELECT + COUNT( * ) * SUM( + - CAST( + - col0 AS SIGNED ) ) FROM tab2
----
555

skipif mysql # not compatible
query I rowsort label-6374
SELECT + COUNT ( * ) * SUM ( + - CAST ( + - col0 AS INTEGER ) ) FROM tab2
----
555

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + - 52 col1 FROM tab0
----
-2444
-5148
-520

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6376
SELECT - ( + + CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6376
SELECT - ( + + CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 * - ( - col2 ) AS col1 FROM tab2
----
-1173
-3080
-3886

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6378
SELECT DISTINCT + - 80 * col0 - + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6378
SELECT DISTINCT + - 80 * col0 - + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col1 * + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6380
SELECT CAST( + - 93 AS SIGNED ) AS col1, + col0 AS col2 FROM tab2
----
-93
46
-93
64
-93
75

skipif mysql # not compatible
query II rowsort label-6380
SELECT CAST ( + - 93 AS INTEGER ) AS col1, + col0 AS col2 FROM tab2
----
-93
46
-93
64
-93
75

query I rowsort
SELECT DISTINCT + + 24 + 17 * + col1 FROM tab2 AS cor0
----
1163
1333
891

query I rowsort
SELECT ALL - col0 * - 19 * + ( - + col2 ) AS col0 FROM tab0 AS cor0
----
-13395
-16530
-182457

query II rowsort
SELECT ALL + ( 60 ) + + col1, ( + ( - 98 ) ) AS col1 FROM tab1 AS cor0
----
107
-98
65
-98
74
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-6384
SELECT - + COUNT( * ) * 60 + + + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE col1 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-6384
SELECT - + COUNT ( * ) * 60 + + + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE col1 = NULL
----
0

query I rowsort
SELECT + col2 * - - col1 + + 16 AS col2 FROM tab1
----
1360
311
3212

query I rowsort
SELECT + 25 + 80 FROM tab0
----
105
105
105

query I rowsort
SELECT col1 + - 25 AS col1 FROM tab1
----
-11
-20
22

query I rowsort
SELECT - col1 * - col2 + - 18 AS col2 FROM tab0
----
192
3789
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6389
SELECT ALL - 76 + + COUNT( * ) FROM tab1
----
-73

skipif mysql # not compatible
query I rowsort label-6389
SELECT ALL - 76 + + COUNT ( * ) FROM tab1
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-6390
SELECT + COUNT( * ) + + ( ( - 69 ) ) * + SUM( - col1 ) FROM tab0
----
7110

skipif mysql # not compatible
query I rowsort label-6390
SELECT + COUNT ( * ) + + ( ( - 69 ) ) * + SUM ( - col1 ) FROM tab0
----
7110

query II rowsort
SELECT DISTINCT col1, - 59 + - - col0 AS col1 FROM tab2
----
51
-13
67
16
77
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6392
SELECT - CAST( - - 87 AS SIGNED ) AS col1 FROM tab1
----
-87
-87
-87

skipif mysql # not compatible
query I rowsort label-6392
SELECT - CAST ( - - 87 AS INTEGER ) AS col1 FROM tab1
----
-87
-87
-87

query I rowsort
SELECT col0 * - + col1 AS col0 FROM tab2
----
-2346
-4928
-5025

query I rowsort
SELECT DISTINCT + - col0 + - - ( col2 ) AS col1 FROM tab2 AS cor0
----
-17
-23
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-6395
SELECT ALL + 48 + - COUNT( - 70 ) FROM tab1 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-6395
SELECT ALL + 48 + - COUNT ( - 70 ) FROM tab1 AS cor0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-6396
SELECT COUNT( ALL + + 8 ) - - - ( - 69 ) FROM tab0 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-6396
SELECT COUNT ( ALL + + 8 ) - - - ( - 69 ) FROM tab0 AS cor0
----
72

query I rowsort
SELECT DISTINCT + 55 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
55

query I rowsort
SELECT ( + col1 ) + + - 11 - + + col1 AS col1 FROM tab2
----
-11
-11
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-6399
SELECT - col0 DIV - + 19 FROM tab0
----
0
4
5

skipif mysql # not compatible
query I rowsort label-6399
SELECT - col0 / - + 19 FROM tab0
----
0
4
5

query I rowsort
SELECT + - 26 * - col0 FROM tab2 AS cor0
----
1196
1664
1950

query I rowsort
SELECT + - ( + - col1 ) AS col0 FROM tab0 AS cor0
----
1
21
81

query I rowsort
SELECT DISTINCT - 38 AS col0 FROM tab2
----
-38

query I rowsort
SELECT ALL + col0 * + col2 FROM tab2 WHERE + col2 * - + col2 = - + col1
----

query II rowsort
SELECT DISTINCT - col0 AS col2, col2 AS col1 FROM tab1
----
-51
96
-85
59
-91
68

onlyif mysql # aggregate syntax: 
query I rowsort label-6405
SELECT ALL SUM( ALL + - col0 ) AS col2 FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-6405
SELECT ALL SUM ( ALL + - col0 ) AS col2 FROM tab0
----
-199

onlyif mysql # aggregate syntax: 
query I rowsort label-6406
SELECT - MAX( ALL - 57 ) AS col1 FROM tab0 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-6406
SELECT - MAX ( ALL - 57 ) AS col1 FROM tab0 AS cor0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-6407
SELECT - + COUNT( * ) * - 90 AS col2 FROM tab2 AS cor0
----
270

skipif mysql # not compatible
query I rowsort label-6407
SELECT - + COUNT ( * ) * - 90 AS col2 FROM tab2 AS cor0
----
270

onlyif mysql # DIV for integer division: 
query I rowsort label-6408
SELECT ( + - ( col0 ) ) DIV - col1 FROM tab0 AS cor0
----
0
4
97

skipif mysql # not compatible
query I rowsort label-6408
SELECT ( + - ( col0 ) ) / - col1 FROM tab0 AS cor0
----
0
4
97

query I rowsort
SELECT DISTINCT - col1 * + col0 + - 4 FROM tab0
----
-101
-1219
-1831

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN + - 87 AND + 87
----

query I rowsort
SELECT ALL + + col1 + + ( + col2 ) + - + 56 FROM tab0 AS cor0
----
-25
44
72

onlyif mysql # aggregate syntax: 
query II rowsort label-6412
SELECT COUNT( * ), 88 AS col2 FROM tab0 AS cor0
----
3
88

skipif mysql # not compatible
query II rowsort label-6412
SELECT COUNT ( * ), 88 AS col2 FROM tab0 AS cor0
----
3
88

onlyif mysql # aggregate syntax: 
query I rowsort label-6413
SELECT ALL COUNT( * ) + - - 82 AS col2 FROM tab2 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-6413
SELECT ALL COUNT ( * ) + - - 82 AS col2 FROM tab2 AS cor0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-6414
SELECT DISTINCT - COUNT( * ) + - - COUNT( * ) AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6414
SELECT DISTINCT - COUNT ( * ) + - - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6415
SELECT - ( - + COUNT( * ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6415
SELECT - ( - + COUNT ( * ) ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT + col2 * + + col2 + + 23 * + col1 FROM tab1 AS cor0
----
3596
5705
9538

query I rowsort
SELECT + ( - - col0 ) AS col2 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT + col2 AS col0 FROM tab0 AS cor0 WHERE + 88 IS NOT NULL
----
10
47
99

query I rowsort
SELECT ALL col2 + - 78 AS col2 FROM tab0 AS cor0
----
-31
-68
21

query I rowsort
SELECT DISTINCT + col2 + - + 35 FROM tab0 cor0
----
-25
12
64

query I rowsort
SELECT ALL - col2 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-59
-68
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-6422
SELECT ALL - col0 - - + ( - 23 ) DIV + + col1 FROM tab1
----
-52
-89
-91

skipif mysql # not compatible
query I rowsort label-6422
SELECT ALL - col0 - - + ( - 23 ) / + + col1 FROM tab1
----
-52
-89
-91

query I rowsort
SELECT DISTINCT + 88 * - 83 AS col0 FROM tab2
----
-7304

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col1 * col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6425
SELECT ( + COUNT( * ) ) + COUNT( * ) + 13 col1 FROM tab0 AS cor0
----
19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6425
SELECT ( + COUNT ( * ) ) + COUNT ( * ) + 13 col1 FROM tab0 AS cor0
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-6426
SELECT DISTINCT + 58 DIV + - 75 + 70 + + - col1 - - 71 - - col2 + + + 12 + col0 col0 FROM tab0 AS cor0
----
134
229
348

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6426
SELECT DISTINCT + 58 / + - 75 + 70 + + - col1 - - 71 - - col2 + + + 12 + col0 col0 FROM tab0 AS cor0
----
134
229
348

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col1 - - col0 + + 54 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6428
SELECT DISTINCT COUNT( + 52 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6428
SELECT DISTINCT COUNT ( + 52 ) FROM tab0
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE col1 * - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6430
SELECT SUM( - col0 ) AS col1 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-6430
SELECT SUM ( - col0 ) AS col1 FROM tab1 AS cor0
----
-227

onlyif mysql # aggregate syntax: 
query I rowsort label-6431
SELECT DISTINCT + SUM( col0 ) FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-6431
SELECT DISTINCT + SUM ( col0 ) FROM tab1 AS cor0
----
227

query II rowsort
SELECT col0 * - - col0 + - - 64 AS col2, col2 FROM tab1 AS cor0
----
2665
96
7289
59
8345
68

onlyif mysql # aggregate syntax: 
query I rowsort label-6433
SELECT ALL - + COUNT( + - col0 ) * COUNT( * ) col0 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6433
SELECT ALL - + COUNT ( + - col0 ) * COUNT ( * ) col0 FROM tab0 AS cor0
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-6434
SELECT DISTINCT + col2 DIV - - col2 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6434
SELECT DISTINCT + col2 / - - col2 FROM tab2 AS cor0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6435
SELECT ALL - COUNT( + + col1 ) DIV + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6435
SELECT ALL - COUNT ( + + col1 ) / + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-1

query II rowsort
SELECT ALL + + col2, 37 * - col0 AS col1 FROM tab1 AS cor0
----
59
-3145
68
-3367
96
-1887

onlyif mysql # aggregate syntax: 
query I rowsort label-6437
SELECT + MAX( - 70 ) AS col0 FROM tab0
----
-70

skipif mysql # not compatible
query I rowsort label-6437
SELECT + MAX ( - 70 ) AS col0 FROM tab0
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6438
SELECT - MIN( - CAST( + - 87 AS SIGNED ) ) col0 FROM tab0
----
-87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6438
SELECT - MIN ( - CAST ( + - 87 AS INTEGER ) ) col0 FROM tab0
----
-87

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 * + + col1 IS NOT NULL
----

query I rowsort
SELECT 97 + + col1 * col1 AS col2 FROM tab0
----
538
6658
98

onlyif mysql # aggregate syntax: 
query I rowsort label-6441
SELECT 30 + - COUNT( * ) AS col2 FROM tab2
----
27

skipif mysql # not compatible
query I rowsort label-6441
SELECT 30 + - COUNT ( * ) AS col2 FROM tab2
----
27

query I rowsort
SELECT DISTINCT + - 88 AS col1 FROM tab1 WHERE NULL IS NULL
----
-88

query I rowsort
SELECT ( - col2 ) + ( 63 ) * col1 AS col0 FROM tab1
----
256
2893
786

onlyif mysql # aggregate syntax: 
query I rowsort label-6444
SELECT DISTINCT COUNT( * ) + + MIN( DISTINCT - + 29 ) AS col1 FROM tab2 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-6444
SELECT DISTINCT COUNT ( * ) + + MIN ( DISTINCT - + 29 ) AS col1 FROM tab2 AS cor0
----
-26

query I rowsort
SELECT ( + + col2 ) AS col0 FROM tab2 AS cor0
----
23
40
58

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 = 12
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 64 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

query I rowsort
SELECT ALL 47 AS col2 FROM tab1 cor0 WHERE + ( col0 ) IS NULL
----

query I rowsort
SELECT ALL 67 - - col0 AS col1 FROM tab0 AS cor0 WHERE NULL NOT IN ( - 59, + 56 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( ( - ( col1 ) ) ) IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 13 * - + col1 IS NULL
----

query I rowsort
SELECT + col1 AS col2 FROM tab0 cor0 WHERE NULL IS NULL
----
1
21
81

query I rowsort
SELECT DISTINCT - 88 - col1 FROM tab0
----
-109
-169
-89

query II rowsort
SELECT DISTINCT 40 AS col2, col1 AS col0 FROM tab2
----
40
51
40
67
40
77

query I rowsort
SELECT 49 * + col0 + - + 81 FROM tab1
----
2418
4084
4378

query II rowsort
SELECT ALL - 97 * col0, - col1 + + + col1 + - + 72 FROM tab2 WHERE NOT + col1 > + 32
----

query I rowsort
SELECT 88 * 89 FROM tab0
----
7832
7832
7832

query I rowsort
SELECT ALL - col2 * - 73 * - + 0 * - 84 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT - col2 * - + col0 * + col2 FROM tab1
----
295885
420784
470016

query I rowsort
SELECT DISTINCT + 61 - - col1 FROM tab2
----
112
128
138

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6461
SELECT ALL - 11 AS col1, CAST( NULL AS SIGNED ) FROM tab1
----
-11
NULL
-11
NULL
-11
NULL

skipif mysql # not compatible
query II rowsort label-6461
SELECT ALL - 11 AS col1, CAST ( NULL AS INTEGER ) FROM tab1
----
-11
NULL
-11
NULL
-11
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6462
SELECT * FROM tab2 WHERE NULL >= + 99 * - - col1 * + col2 + 89 * CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6462
SELECT * FROM tab2 WHERE NULL >= + 99 * - - col1 * + col2 + 89 * CAST ( NULL AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6463
SELECT col0 DIV + 60 FROM tab0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-6463
SELECT col0 / + 60 FROM tab0
----
0
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6464
SELECT COUNT( * ) * + 83 FROM tab1
----
249

skipif mysql # not compatible
query I rowsort label-6464
SELECT COUNT ( * ) * + 83 FROM tab1
----
249

query III rowsort
SELECT * FROM tab1 WHERE col2 = + 55
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6466
SELECT * FROM tab2 cor0 WHERE CAST( col0 AS DECIMAL ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6466
SELECT * FROM tab2 cor0 WHERE CAST ( col0 AS REAL ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6467
SELECT + MAX( DISTINCT + CAST( NULL AS DECIMAL ) ) AS col1 FROM tab1 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6467
SELECT + MAX ( DISTINCT + CAST ( NULL AS REAL ) ) AS col1 FROM tab1 WHERE NOT NULL IS NULL
----
NULL

query II rowsort
SELECT DISTINCT 83 * - col1, col2 AS col1 FROM tab1
----
-1162
96
-3901
68
-415
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 85 col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT ALL + + 95 * + col0 AS col1 FROM tab2 AS cor0
----
4370
6080
7125

onlyif mysql # aggregate syntax: 
query I rowsort label-6471
SELECT DISTINCT + + COUNT( - col2 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6471
SELECT DISTINCT + + COUNT ( - col2 ) AS col2 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6472
SELECT + ( - 73 ) * CAST( - CAST( col0 AS SIGNED ) AS SIGNED ) AS col2, 69 FROM tab1 AS cor0
----
3723
69
6205
69
6643
69

skipif mysql # not compatible
query II rowsort label-6472
SELECT + ( - 73 ) * CAST ( - CAST ( col0 AS INTEGER ) AS INTEGER ) AS col2, 69 FROM tab1 AS cor0
----
3723
69
6205
69
6643
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 31 / + 34 col1 FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6474
SELECT - - 86 DIV col2 AS col1 FROM tab0 AS cor0
----
0
1
8

skipif mysql # not compatible
query I rowsort label-6474
SELECT - - 86 / col2 AS col1 FROM tab0 AS cor0
----
0
1
8

query II rowsort
SELECT col2 * + col1 AS col2, col1 FROM tab0 AS cor0
----
210
21
3807
81
99
1

query I rowsort
SELECT + - 69 AS col2 FROM tab1 AS cor0
----
-69
-69
-69

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN + 35 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 25 col2 FROM tab0
----
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col1 FROM tab2 WHERE NOT - 30 NOT BETWEEN + 85 AND + col1 + - col0
----

onlyif mysql # DIV for integer division: 
query II rowsort label-6480
SELECT - 66, + col2 DIV - + col1 AS col2 FROM tab0 AS cor0
----
-66
-99
-66
0
-66
0

skipif mysql # not compatible
query II rowsort label-6480
SELECT - 66, + col2 / - + col1 AS col2 FROM tab0 AS cor0
----
-66
-99
-66
0
-66
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6481
SELECT * FROM tab1 AS cor0 WHERE NULL IN ( + col0 - + CAST( NULL AS SIGNED ), ( + col0 ), 0 )
----

skipif mysql # not compatible
query III rowsort label-6481
SELECT * FROM tab1 AS cor0 WHERE NULL IN ( + col0 - + CAST ( NULL AS INTEGER ), ( + col0 ), 0 )
----

query I rowsort
SELECT col2 * + ( + 80 ) AS col1 FROM tab1
----
4720
5440
7680

query III rowsort
SELECT ALL * FROM tab0 WHERE 43 <= + col0 + 88 * - col1
----

query I rowsort
SELECT 4 * 65 FROM tab0
----
260
260
260

onlyif mysql # aggregate syntax: 
query I rowsort label-6485
SELECT ALL MIN( DISTINCT 7 ) AS col2 FROM tab2
----
7

skipif mysql # not compatible
query I rowsort label-6485
SELECT ALL MIN ( DISTINCT 7 ) AS col2 FROM tab2
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-6486
SELECT + MIN( + col1 ) * ( - 45 ) AS col1 FROM tab1
----
-225

skipif mysql # not compatible
query I rowsort label-6486
SELECT + MIN ( + col1 ) * ( - 45 ) AS col1 FROM tab1
----
-225

query I rowsort
SELECT ( - col0 ) * col2 AS col0 FROM tab1
----
-4896
-5015
-6188

query I rowsort
SELECT ALL + 53 + col2 FROM tab0 WHERE NOT + col2 IN ( col0 )
----
100
152
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6489
SELECT + ( CAST( COUNT( * ) AS SIGNED ) ) AS col1 FROM tab2 WHERE NOT ( - col2 ) < + 83 + + 47
----
0

skipif mysql # not compatible
query I rowsort label-6489
SELECT + ( CAST ( COUNT ( * ) AS INTEGER ) ) AS col1 FROM tab2 WHERE NOT ( - col2 ) < + 83 + + 47
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 55 NOT IN ( 9 - col2 )
----

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab0 WHERE NOT + col2 IS NULL
----
1
21
81

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + 65 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col2 - 62 AS col1 FROM tab0
----
-15
-52
37

onlyif mysql # aggregate syntax: 
query I rowsort label-6494
SELECT ALL + ( - MAX( ALL - col2 ) ) - + SUM( - col0 ) AS col2 FROM tab2 WHERE NOT ( col2 * - col0 ) IS NULL
----
208

skipif mysql # not compatible
query I rowsort label-6494
SELECT ALL + ( - MAX ( ALL - col2 ) ) - + SUM ( - col0 ) AS col2 FROM tab2 WHERE NOT ( col2 * - col0 ) IS NULL
----
208

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - col2 ) = - col1 - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 19 * + col2 FROM tab1
----
1121
1292
1824

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( ( + col2 ) ) col0 FROM tab0 WHERE ( col0 + col1 ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6498
SELECT DISTINCT + COUNT( * ) * - COUNT( * ) AS col2 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-6498
SELECT DISTINCT + COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab0
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6499
SELECT + CAST( SUM( ALL col0 ) AS SIGNED ) AS col2 FROM tab2 WHERE NOT NULL <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6499
SELECT + CAST ( SUM ( ALL col0 ) AS INTEGER ) AS col2 FROM tab2 WHERE NOT NULL <= NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6500
SELECT - COUNT( 43 ) DIV - CAST( COUNT( * ) AS SIGNED ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-6500
SELECT - COUNT ( 43 ) / - CAST ( COUNT ( * ) AS INTEGER ) FROM tab1
----
1

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( ( col1 ) ) IN ( - col2 * 73 + - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6502
SELECT - 98 DIV + col1 col2 FROM tab1
----
-19
-2
-7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6502
SELECT - 98 / + col1 col2 FROM tab1
----
-19
-2
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-6503
SELECT col1 DIV 27 FROM tab0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-6503
SELECT col1 / 27 FROM tab0
----
0
0
3

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL IN ( - 27 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6505
SELECT + 98 DIV - COUNT( * ) AS col2 FROM tab2
----
-32

skipif mysql # not compatible
query I rowsort label-6505
SELECT + 98 / - COUNT ( * ) AS col2 FROM tab2
----
-32

query I rowsort
SELECT DISTINCT ( ( 1 ) ) * col0 AS col1 FROM tab1 WHERE col1 * 91 + - 50 <> ( NULL )
----

query I rowsort
SELECT DISTINCT - col0 * - col1 FROM tab1 WHERE NULL IS NULL
----
425
4277
714

query I rowsort
SELECT ALL 22 * col0 + - col2 AS col1 FROM tab0
----
1904
2035
283

query III rowsort
SELECT ALL * FROM tab2 WHERE ( ( col1 ) - + 60 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 31 - + 92 FROM tab2 WHERE col0 NOT BETWEEN col0 AND 22
----
-61
-61
-61

query I rowsort
SELECT col1 * ( - col2 ) FROM tab1
----
-1344
-295
-3196

query III rowsort
SELECT * FROM tab1 WHERE col2 + col1 IN ( - col2 )
----

query I rowsort
SELECT 11 * + 93 AS col1 FROM tab2
----
1023
1023
1023

onlyif mysql # DIV for integer division: 
query I rowsort label-6514
SELECT DISTINCT 67 DIV col2 AS col1 FROM tab2
----
1
2

skipif mysql # not compatible
query I rowsort label-6514
SELECT DISTINCT 67 / col2 AS col1 FROM tab2
----
1
2

onlyif mysql # DIV for integer division: 
query I rowsort label-6515
SELECT ALL + col2 + + ( col1 ) DIV - 15 AS col0 FROM tab1
----
59
65
96

skipif mysql # not compatible
query I rowsort label-6515
SELECT ALL + col2 + + ( col1 ) / - 15 AS col0 FROM tab1
----
59
65
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6516
SELECT ALL - ( SUM( - col1 ) ) + 17 * - 57 FROM tab0
----
-866

skipif mysql # not compatible
query I rowsort label-6516
SELECT ALL - ( SUM ( - col1 ) ) + 17 * - 57 FROM tab0
----
-866

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) < ( + col1 )
----

query I rowsort
SELECT - 80 * + col2 AS col1 FROM tab2 AS cor0
----
-1840
-3200
-4640

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6519
SELECT ALL col1 DIV - CAST( - col0 AS SIGNED ) FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-6519
SELECT ALL col1 / - CAST ( - col0 AS INTEGER ) FROM tab2 AS cor0
----
0
1
1

query I rowsort
SELECT ALL ( 39 ) * col0 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
1989
3315
3549

onlyif mysql # aggregate syntax: 
query I rowsort label-6521
SELECT - ( MAX( DISTINCT + col1 ) ) AS col1 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-6521
SELECT - ( MAX ( DISTINCT + col1 ) ) AS col1 FROM tab2 AS cor0
----
-77

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab0 AS cor0 WHERE - 99 IS NOT NULL
----
15
87
97

query I rowsort
SELECT DISTINCT + 17 AS col1 FROM tab1 cor0 CROSS JOIN tab0
----
17

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - 64 + - col1 * + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( 41 ) col0 FROM tab0 AS cor0
----
41

query I rowsort
SELECT 77 / + col0 AS col2 FROM tab0 AS cor0 WHERE NOT + ( 87 ) <> - col1 * col0 + col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6527
SELECT ALL - ( 77 ) DIV - SUM( DISTINCT col0 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6527
SELECT ALL - ( 77 ) / - SUM ( DISTINCT col0 ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT 74 AS col1 FROM tab1 cor0 WHERE NOT col2 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 41 * - col1 * + 0 col1 FROM tab2
----
0
0
0

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) < ( - col1 )
----

query I rowsort
SELECT - col1 AS col0 FROM tab1 WHERE NOT + col0 NOT BETWEEN - 86 AND - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6532
SELECT * FROM tab2 WHERE NOT CAST( NULL AS SIGNED ) BETWEEN col1 + 24 AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6532
SELECT * FROM tab2 WHERE NOT CAST ( NULL AS INTEGER ) BETWEEN col1 + 24 AND CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL = col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6534
SELECT ALL - 93 DIV + col0 AS col1 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6534
SELECT ALL - 93 / + col0 AS col1 FROM tab1
----
-1
-1
-1

query III rowsort
SELECT * FROM tab2 WHERE col1 - 49 BETWEEN ( col1 ) AND + ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6536
SELECT MAX( ALL ( col1 ) ) * - MIN( - 76 ) col0 FROM tab0 WHERE ( col1 ) NOT BETWEEN - 55 AND ( - 82 * - col2 + 91 * 22 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6536
SELECT MAX ( ALL ( col1 ) ) * - MIN ( - 76 ) col0 FROM tab0 WHERE ( col1 ) NOT BETWEEN - 55 AND ( - 82 * - col2 + 91 * 22 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6537
SELECT + - 68 + 72 + COUNT( * ) FROM tab2 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-6537
SELECT + - 68 + 72 + COUNT ( * ) FROM tab2 AS cor0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-6538
SELECT DISTINCT MAX( - 91 ) FROM tab0 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-6538
SELECT DISTINCT MAX ( - 91 ) FROM tab0 AS cor0
----
-91

query I rowsort
SELECT ALL + col2 + - - 57 AS col0 FROM tab2 cor0
----
115
80
97

query I rowsort
SELECT DISTINCT + 49 + + - col1 FROM tab1 AS cor0
----
2
35
44

query I rowsort
SELECT DISTINCT - 4 * + ( + col1 ) FROM tab0 AS cor0
----
-324
-4
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6542
SELECT + - CAST( NULL AS SIGNED ) col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6542
SELECT + - CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT col1 - - 41 + + col0 FROM tab0
----
137
139
149

query II rowsort
SELECT ALL 87 AS col2, 12 AS col1 FROM tab0 AS cor0
----
87
12
87
12
87
12

query I rowsort
SELECT DISTINCT + col1 * + 8 + col0 FROM tab0 AS cor0 WHERE NOT ( 19 + 49 ) = ( NULL )
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE + 98 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab1 AS cor0 WHERE - col1 * col1 IS NOT NULL
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-6548
SELECT ALL - - ( - SUM( ALL - col1 ) ) * + 57 + - ( 66 ) AS col1 FROM tab2 AS cor0
----
11049

skipif mysql # not compatible
query I rowsort label-6548
SELECT ALL - - ( - SUM ( ALL - col1 ) ) * + 57 + - ( 66 ) AS col1 FROM tab2 AS cor0
----
11049

query I rowsort
SELECT DISTINCT + col0 + - col2 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6550
SELECT ALL + col0 + - col2 DIV 50 FROM tab0 AS cor0
----
15
87
96

skipif mysql # not compatible
query I rowsort label-6550
SELECT ALL + col0 + - col2 / 50 FROM tab0 AS cor0
----
15
87
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6551
SELECT DISTINCT 68 - - - MAX( DISTINCT + 10 ) DIV + 78 AS col1 FROM tab0 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-6551
SELECT DISTINCT 68 - - - MAX ( DISTINCT + 10 ) / + 78 AS col1 FROM tab0 AS cor0
----
68

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( 18 + 47 ) <> - 14
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6553
SELECT COUNT( + 23 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6553
SELECT COUNT ( + 23 ) AS col0 FROM tab0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-6554
SELECT ALL + col2 - + col1 DIV + + col0 AS col0 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-6554
SELECT ALL + col2 - + col1 / + + col0 AS col0 FROM tab1
----
59
68
96

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL BETWEEN NULL AND + - 87
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col2 FROM tab2 WHERE NOT NULL < ( col1 * + 12 + - 42 * + 48 )
----

query I rowsort
SELECT ALL 77 * - col2 * col0 FROM tab0
----
-54285
-66990
-739431

query I rowsort
SELECT DISTINCT + 94 - + + 40 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 9 * - col0 col0, col0 FROM tab0 AS cor0
----
-135
15
-783
87
-873
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6560
SELECT ( + + MAX( - col1 ) ) FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-6560
SELECT ( + + MAX ( - col1 ) ) FROM tab1 AS cor0
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6561
SELECT ALL - CAST( NULL AS SIGNED ) FROM tab1 cor0 WHERE ( + 97 IS NULL )
----

skipif mysql # not compatible
query I rowsort label-6561
SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab1 cor0 WHERE ( + 97 IS NULL )
----

query I rowsort
SELECT ALL + col0 / + 76 AS col1 FROM tab2 WHERE - - 37 + - + 50 BETWEEN ( + - ( + 77 ) ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 58 col0 FROM tab0 WHERE NULL IS NULL
----
-58
-58
-58

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col0 * - col1 IN ( + col1 * - col1 )
----

query I rowsort
SELECT ALL - + ( - 59 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6566
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 + - + CAST( + col1 AS DECIMAL ) / + col0 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-6566
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 + - + CAST ( + col1 AS REAL ) / + col0 IS NOT NULL
----

query I rowsort
SELECT - col1 * + 57 AS col2 FROM tab1 AS cor0
----
-2679
-285
-798

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6568
SELECT ALL - 14 AS col0 FROM tab2 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) - 55 BETWEEN - 42 AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-6568
SELECT ALL - 14 AS col0 FROM tab2 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) - 55 BETWEEN - 42 AND ( NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6569
SELECT ALL 33 DIV + COUNT( * ) AS col1 FROM tab1 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-6569
SELECT ALL 33 / + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
11

query I rowsort
SELECT ALL + col2 / col0 FROM tab2 WHERE NOT + 50 IS NOT NULL
----

query I rowsort
SELECT ALL - 59 * col0 * + col2 FROM tab2
----
-151040
-256650
-62422

query I rowsort
SELECT - col1 FROM tab0 WHERE + + col2 IN ( + 65 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6573
SELECT ALL + 76 AS col1, COUNT( * ) FROM tab2
----
76
3

skipif mysql # not compatible
query II rowsort label-6573
SELECT ALL + 76 AS col1, COUNT ( * ) FROM tab2
----
76
3

query I rowsort
SELECT ALL + 32 * 82 AS col1 FROM tab0
----
2624
2624
2624

onlyif mysql # aggregate syntax: 
query II rowsort label-6575
SELECT DISTINCT 11 + + COUNT( * ), 97 AS col2 FROM tab2
----
14
97

skipif mysql # not compatible
query II rowsort label-6575
SELECT DISTINCT 11 + + COUNT ( * ), 97 AS col2 FROM tab2
----
14
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6576
SELECT DISTINCT 51 DIV + MIN( ALL - col0 ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6576
SELECT DISTINCT 51 / + MIN ( ALL - col0 ) AS col1 FROM tab2
----
0

query I rowsort
SELECT - ( + ( - col0 ) ) FROM tab0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6578
SELECT ALL 96 + ( + COUNT( * ) ) col0 FROM tab1
----
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6578
SELECT ALL 96 + ( + COUNT ( * ) ) col0 FROM tab1
----
99

query II rowsort
SELECT ALL - - col2, col1 AS col0 FROM tab0 AS cor0
----
10
21
47
81
99
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 98 + - col1 - - col1 col0 FROM tab2 AS cor0
----
-98
-98
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col2 FROM tab2 AS cor0 WHERE - 87 IN ( - + col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6582
SELECT + CAST( NULL AS SIGNED ) + - - MAX( - col0 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6582
SELECT + CAST ( NULL AS INTEGER ) + - - MAX ( - col0 ) FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + 66 col1 FROM tab1 AS cor0
----
19
52
61

query I rowsort
SELECT ALL + 68 + + col2 FROM tab0 AS cor0
----
115
167
78

query I rowsort
SELECT - 20 FROM tab2 WHERE col1 IS NULL
----

query I rowsort
SELECT DISTINCT - 73 AS col2 FROM tab0 AS cor0 WHERE + 11 + - + col1 / 61 <> - col2
----
-73

query I rowsort
SELECT 0 FROM tab2 cor0 WHERE ( - col2 * + col2 / - - col1 ) = NULL
----

query II rowsort
SELECT DISTINCT - + col0 + + 91 AS col1, + col2 FROM tab0 AS cor0
----
-6
99
4
10
76
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col0 FROM tab2 AS cor0 WHERE col0 IN ( - + col0 )
----

query I rowsort
SELECT ALL - + 14 + - col0 * - ( + - col0 ) FROM tab2 AS cor0
----
-2130
-4110
-5639

onlyif mysql # aggregate syntax: 
query I rowsort label-6591
SELECT ALL + COUNT( DISTINCT + - col1 ) AS col0 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-6591
SELECT ALL + COUNT ( DISTINCT + - col1 ) AS col0 FROM tab0 cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-6592
SELECT DISTINCT - - col2 DIV - col1 + - col1 AS col2 FROM tab1 cor0
----
-16
-20
-48

skipif mysql # not compatible
query I rowsort label-6592
SELECT DISTINCT - - col2 / - col1 + - col1 AS col2 FROM tab1 cor0
----
-16
-20
-48

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab0 WHERE - col0 / - + col1 + + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6594
SELECT ALL - 90 AS col2, col2 - - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
-90
NULL
-90
NULL
-90
NULL

skipif mysql # not compatible
query II rowsort label-6594
SELECT ALL - 90 AS col2, col2 - - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
-90
NULL
-90
NULL
-90
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + - col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6596
SELECT DISTINCT * FROM tab0 WHERE NOT NULL IN ( - 12, - CAST( NULL AS SIGNED ) / + col2, + - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) + ( - 21 ) ) OR NOT col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6596
SELECT DISTINCT * FROM tab0 WHERE NOT NULL IN ( - 12, - CAST ( NULL AS INTEGER ) / + col2, + - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) + ( - 21 ) ) OR NOT col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-6597
SELECT + 22 DIV col0 * ( + 94 ) FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6597
SELECT + 22 / col0 * ( + 94 ) FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6598
SELECT ALL - col0 * - CAST( NULL AS SIGNED ) * - col1 AS col0, - col0 * + col0 * + col0 FROM tab2 AS cor0
----
NULL
-262144
NULL
-421875
NULL
-97336

skipif mysql # not compatible
query II rowsort label-6598
SELECT ALL - col0 * - CAST ( NULL AS INTEGER ) * - col1 AS col0, - col0 * + col0 * + col0 FROM tab2 AS cor0
----
NULL
-262144
NULL
-421875
NULL
-97336

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 * - ( - + col0 ) BETWEEN ( - - ( - col2 ) / + - 96 / col0 + col0 ) AND NULL
----

query I rowsort
SELECT DISTINCT + 76 * 42 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
3192

query I rowsort
SELECT ALL - - ( 83 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6602
SELECT - + 14 FROM tab2 AS cor0 WHERE NOT col2 * CAST( NULL AS SIGNED ) - + - col0 <> col0
----

skipif mysql # not compatible
query I rowsort label-6602
SELECT - + 14 FROM tab2 AS cor0 WHERE NOT col2 * CAST ( NULL AS INTEGER ) - + - col0 <> col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6603
SELECT ALL - 4 * - COUNT( col2 ) AS col0 FROM tab2 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-6603
SELECT ALL - 4 * - COUNT ( col2 ) AS col0 FROM tab2 AS cor0
----
12

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 - 16 NOT BETWEEN NULL AND + col1
----

query I rowsort
SELECT + 3 FROM tab2 AS cor0 WHERE 44 + - col0 NOT BETWEEN + col0 AND NULL
----
3
3
3

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE + col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT - - 2 * 49 * - col2 + - 95 FROM tab2 AS cor0
----
-2349
-4015
-5779

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6608
SELECT - COUNT( * ) / COUNT( * ) + - 95 + ( - CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6608
SELECT - COUNT ( * ) / COUNT ( * ) + - 95 + ( - CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + - 63 BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE + + 51 * - 76 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + col1 * - - 49 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL ( - 13 ) AS col2 FROM tab2
----
-13
-13
-13

query I rowsort
SELECT DISTINCT + col0 + col1 + + + col2 + + + col2 * + - col2 * - col1 * - col2 AS col0 FROM tab1 AS cor0
----
-1026746
-12386143
-14778098

query I rowsort
SELECT ALL + col2 - + - col1 FROM tab2 cor0
----
117
125
74

onlyif mysql # aggregate syntax: 
query I rowsort label-6615
SELECT DISTINCT + MAX( DISTINCT col1 ) - COUNT( * ) FROM tab1 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-6615
SELECT DISTINCT + MAX ( DISTINCT col1 ) - COUNT ( * ) FROM tab1 AS cor0
----
44

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 12 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6617
SELECT COUNT( * ) FROM tab1 WHERE - + col0 / - col1 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-6617
SELECT COUNT ( * ) FROM tab1 WHERE - + col0 / - col1 IS NOT NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - - col1 * - col2 col1 FROM tab1
----
-1293
-210
-3105

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6619
SELECT ALL + + col0 * + + CAST( NULL AS SIGNED ) + - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6619
SELECT ALL + + col0 * + + CAST ( NULL AS INTEGER ) + - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + ( 34 ) * + col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) <= ( NULL )
----

query I rowsort
SELECT - col2 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( - col2, 87, - col2 )
----

query I rowsort
SELECT ALL - 5 * + col0 FROM tab1 AS cor0
----
-255
-425
-455

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6623
SELECT CAST( - - 71 AS SIGNED ) / + col2 + - col1 AS col0 FROM tab1 AS cor0 WHERE NOT - col1 < ( + 86 * + - 0 * + + 14 )
----

skipif mysql # not compatible
query I rowsort label-6623
SELECT CAST ( - - 71 AS INTEGER ) / + col2 + - col1 AS col0 FROM tab1 AS cor0 WHERE NOT - col1 < ( + 86 * + - 0 * + + 14 )
----

query I rowsort
SELECT + col1 AS col0 FROM tab2 AS cor0 WHERE NOT + 64 IS NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query II rowsort label-6625
SELECT + 23 AS col1, 63 * - SUM( ALL + col0 ) AS col2 FROM tab2 AS cor0
----
23
-11655

skipif mysql # not compatible
query II rowsort label-6625
SELECT + 23 AS col1, 63 * - SUM ( ALL + col0 ) AS col2 FROM tab2 AS cor0
----
23
-11655

onlyif mysql # aggregate syntax: 
query I rowsort label-6626
SELECT DISTINCT + MIN( DISTINCT - col2 ) AS col0 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-6626
SELECT DISTINCT + MIN ( DISTINCT - col2 ) AS col0 FROM tab2 AS cor0
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-6627
SELECT - col0 DIV + - col0 AS col1 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6627
SELECT - col0 / + - col0 AS col1 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT ALL - + 93 * + col1 AS col0 FROM tab0 AS cor0
----
-1953
-7533
-93

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6629
SELECT ALL * FROM tab2 AS cor0 WHERE - CAST( 91 AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6629
SELECT ALL * FROM tab2 AS cor0 WHERE - CAST ( 91 AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6630
SELECT + - CAST( NULL AS SIGNED ) AS col0, 1 - - - col2 AS col1 FROM tab0 AS cor0
----
NULL
-46
NULL
-9
NULL
-98

skipif mysql # not compatible
query II rowsort label-6630
SELECT + - CAST ( NULL AS INTEGER ) AS col0, 1 - - - col2 AS col1 FROM tab0 AS cor0
----
NULL
-46
NULL
-9
NULL
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-6631
SELECT DISTINCT - col2 DIV + - 12 FROM tab2 AS cor0
----
1
3
4

skipif mysql # not compatible
query I rowsort label-6631
SELECT DISTINCT - col2 / + - 12 FROM tab2 AS cor0
----
1
3
4

query I rowsort
SELECT - ( - 5 ) FROM tab2
----
5
5
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6633
SELECT - 32 DIV + COUNT( * ) AS col1 FROM tab1, tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6633
SELECT - 32 / + COUNT ( * ) AS col1 FROM tab1, tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6634
SELECT - 17 + COUNT( * ) FROM tab0, tab1 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-6634
SELECT - 17 + COUNT ( * ) FROM tab0, tab1 AS cor0
----
-8

query II rowsort
SELECT - ( + col2 ) AS col2, col0 * - col2 FROM tab0
----
-10
-870
-47
-705
-99
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-6636
SELECT 82 + 72 + - COUNT( * ) AS col0 FROM tab1, tab1 AS cor0
----
145

skipif mysql # not compatible
query I rowsort label-6636
SELECT 82 + 72 + - COUNT ( * ) AS col0 FROM tab1, tab1 AS cor0
----
145

onlyif mysql # aggregate syntax: 
query I rowsort label-6637
SELECT DISTINCT COUNT( + 51 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6637
SELECT DISTINCT COUNT ( + 51 ) FROM tab2
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6638
SELECT DISTINCT - ( - + 64 ) AS col1, CAST( - MIN( - col2 ) AS SIGNED ) FROM tab1 WHERE + CAST( 68 AS SIGNED ) - + + col2 IS NOT NULL
----
64
96

skipif mysql # not compatible
query II rowsort label-6638
SELECT DISTINCT - ( - + 64 ) AS col1, CAST ( - MIN ( - col2 ) AS INTEGER ) FROM tab1 WHERE + CAST ( 68 AS INTEGER ) - + + col2 IS NOT NULL
----
64
96

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - col2 + - 1 + - col1 + col1 * - col0 * - col0 * - col2 ) NOT BETWEEN 23 AND ( NULL )
----

query I rowsort
SELECT + ( + col1 ) * + + col1 / + col1 + + + 56 FROM tab1 AS cor0 WHERE NOT col2 > - col1 / + col0 + - - col0 + - 34
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6641
SELECT DISTINCT col2 DIV + col2 AS col0 FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-6641
SELECT DISTINCT col2 / + col2 AS col0 FROM tab0 cor0
----
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 62 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col1 AS col1 FROM tab0 AS cor0 WHERE NOT + col2 / + + col2 IS NULL
----
-1
-21
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + col1 col0 FROM tab0
----
100
128
31

query I rowsort
SELECT ALL col2 + - 6 FROM tab0 AS cor0
----
4
41
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT col2 col0, col1 + - + ( 47 ), 27 AS col1 FROM tab2 AS cor0
----
9 values hashing to 8aca650e9cb5658abd0ecfcd694d5574

query I rowsort
SELECT + ( - ( - - ( - + 30 ) ) ) FROM tab1 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6648
SELECT - COUNT( * ), - COUNT( * ) AS col0 FROM tab1 cor0
----
-3
-3

skipif mysql # not compatible
query II rowsort label-6648
SELECT - COUNT ( * ), - COUNT ( * ) AS col0 FROM tab1 cor0
----
-3
-3

query I rowsort
SELECT DISTINCT - - 18 FROM tab2 AS cor0
----
18

query I rowsort
SELECT DISTINCT - 92 + + col2 FROM tab0 AS cor0
----
-45
-82
7

query I rowsort
SELECT - - 84 AS col1 FROM tab2 AS cor0
----
84
84
84

onlyif mysql # aggregate syntax: 
query I rowsort label-6652
SELECT ALL - + MIN( DISTINCT + + col1 ) AS col1 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-6652
SELECT ALL - + MIN ( DISTINCT + + col1 ) AS col1 FROM tab1 AS cor0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-6653
SELECT ALL SUM( DISTINCT + ( 2 ) ) col1 FROM tab0
----
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6653
SELECT ALL SUM ( DISTINCT + ( 2 ) ) col1 FROM tab0
----
2

query I rowsort
SELECT + col2 FROM tab2 WHERE - 65 >= NULL
----

query II rowsort
SELECT DISTINCT col1 + + col1 + - col0 - - + col1 AS col2, 98 + + - 82 * + col0 FROM tab2 AS cor0
----
107
-3674
126
-6052
167
-5150

onlyif mysql # aggregate syntax: 
query II rowsort label-6656
SELECT + COUNT( * ) + + MAX( DISTINCT + ( + + 97 ) ), + SUM( - col1 ) AS col0 FROM tab2 AS cor0
----
100
-195

skipif mysql # not compatible
query II rowsort label-6656
SELECT + COUNT ( * ) + + MAX ( DISTINCT + ( + + 97 ) ), + SUM ( - col1 ) AS col0 FROM tab2 AS cor0
----
100
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-6657
SELECT DISTINCT + + COUNT( * ) + + 49 + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-6657
SELECT DISTINCT + + COUNT ( * ) + + 49 + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6658
SELECT - 59 + - MAX( DISTINCT - - 56 ) * - - 31 col0, - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
-1795
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6658
SELECT - 59 + - MAX ( DISTINCT - - 56 ) * - - 31 col0, - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
-1795
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6659
SELECT DISTINCT + 83 + 48 + - col2 DIV + + col2 + + col1 AS col0, - col2 AS col2 FROM tab1 AS cor0
----
135
-59
144
-96
177
-68

skipif mysql # not compatible
query II rowsort label-6659
SELECT DISTINCT + 83 + 48 + - col2 / + + col2 + + col1 AS col0, - col2 AS col2 FROM tab1 AS cor0
----
135
-59
144
-96
177
-68

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6660
SELECT ALL + col2 / 38 - - col1 - - - 15 + col0 * + CAST( NULL AS DECIMAL ) * - col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6660
SELECT ALL + col2 / 38 - - col1 - - - 15 + col0 * + CAST ( NULL AS REAL ) * - col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6661
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN - CAST( col1 AS SIGNED ) AND + col1
----

skipif mysql # not compatible
query III rowsort label-6661
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN - CAST ( col1 AS INTEGER ) AND + col1
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) <= + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6663
SELECT + - CAST( NULL AS SIGNED ) AS col2, col0 AS col0 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-6663
SELECT + - CAST ( NULL AS INTEGER ) AS col2, col0 AS col0 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

onlyif mysql # aggregate syntax: 
query II rowsort label-6664
SELECT DISTINCT - COUNT( * ) AS col1, COUNT( + + col2 ) FROM tab1 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-6664
SELECT DISTINCT - COUNT ( * ) AS col1, COUNT ( + + col2 ) FROM tab1 AS cor0
----
-3
3

query I rowsort
SELECT DISTINCT col1 * - - col1 FROM tab0 cor0
----
1
441
6561

query II rowsort
SELECT ALL + 60, col2 FROM tab0
----
60
10
60
47
60
99

onlyif mysql # DIV for integer division: 
query I rowsort label-6667
SELECT DISTINCT - ( col0 ) DIV 22 FROM tab1
----
-2
-3
-4

skipif mysql # not compatible
query I rowsort label-6667
SELECT DISTINCT - ( col0 ) / 22 FROM tab1
----
-2
-3
-4

query II rowsort
SELECT - 22 AS col2, col0 * + col0 - - col0 FROM tab0
----
-22
240
-22
7656
-22
9506

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6669
SELECT DISTINCT ( + col2 ) * + ( ( CAST( NULL AS SIGNED ) ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6669
SELECT DISTINCT ( + col2 ) * + ( ( CAST ( NULL AS INTEGER ) ) ) FROM tab1
----
NULL

query II rowsort
SELECT col1, col2 * - col1 * - - col0 AS col2 FROM tab1
----
14
-68544
47
-290836
5
-25075

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 61 * col0 * 40 col2 FROM tab0
----
212280
236680
36600

onlyif mysql # aggregate syntax: 
query I rowsort label-6672
SELECT SUM( ALL + 52 ) FROM tab2
----
156

skipif mysql # not compatible
query I rowsort label-6672
SELECT SUM ( ALL + 52 ) FROM tab2
----
156

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + - col1 col0 FROM tab2
----
2346
4928
5025

onlyif mysql # aggregate syntax: 
query II rowsort label-6674
SELECT + 60 AS col0, - 74 - - + COUNT( + 6 ) AS col2 FROM tab0 AS cor0
----
60
-71

skipif mysql # not compatible
query II rowsort label-6674
SELECT + 60 AS col0, - 74 - - + COUNT ( + 6 ) AS col2 FROM tab0 AS cor0
----
60
-71

query I rowsort
SELECT - col2 * - - col1 AS col2 FROM tab1 cor0
----
-1344
-295
-3196

query II rowsort
SELECT ALL + - col2 AS col0, 38 * 12 AS col2 FROM tab1 cor0
----
-59
456
-68
456
-96
456

onlyif mysql # aggregate syntax: 
query I rowsort label-6677
SELECT ALL COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT 53 IN ( + - col2 )
----
3

skipif mysql # not compatible
query I rowsort label-6677
SELECT ALL COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT 53 IN ( + - col2 )
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-6678
SELECT DISTINCT + COUNT( * ) AS col2, + COUNT( * ) col2 FROM tab1 AS cor0
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6678
SELECT DISTINCT + COUNT ( * ) AS col2, + COUNT ( * ) col2 FROM tab1 AS cor0
----
3
3

query I rowsort
SELECT - + col0 AS col1 FROM tab2 WHERE - 98 IS NULL
----

query I rowsort
SELECT DISTINCT + 55 FROM tab2 WHERE NULL NOT BETWEEN + - col1 / 95 AND 49
----

query I rowsort
SELECT ALL + 3 + - 78 * + col2 AS col0 FROM tab2 AS cor0
----
-1791
-3117
-4521

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6682
SELECT DISTINCT + SUM( - + 68 ) DIV - - 50 FROM tab0 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-6682
SELECT DISTINCT + SUM ( - + 68 ) / - - 50 FROM tab0 AS cor0
----
-4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 74 + + col2 col1, col1 AS col1 FROM tab1 AS cor0
----
133
5
142
47
170
14

onlyif mysql # aggregate syntax: 
query I rowsort label-6684
SELECT ALL COUNT( * ) + 0 AS col2 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-6684
SELECT ALL COUNT ( * ) + 0 AS col2 FROM tab0 cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6685
SELECT + CAST( NULL AS SIGNED ) + - col1 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6685
SELECT + CAST ( NULL AS INTEGER ) + - col1 AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6686
SELECT DISTINCT COUNT( col0 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6686
SELECT DISTINCT COUNT ( col0 ) AS col1 FROM tab1
----
3

query I rowsort
SELECT + 20 + + col2 FROM tab1
----
116
79
88

onlyif mysql # aggregate syntax: 
query I rowsort label-6688
SELECT ALL COUNT( DISTINCT + 8 ) - 49 AS col1 FROM tab1
----
-48

skipif mysql # not compatible
query I rowsort label-6688
SELECT ALL COUNT ( DISTINCT + 8 ) - 49 AS col1 FROM tab1
----
-48

query I rowsort
SELECT DISTINCT + col2 * col0 + - + col1 FROM tab2
----
1007
2483
4283

onlyif mysql # aggregate syntax: 
query II rowsort label-6690
SELECT COUNT( * ) AS col0, + COUNT( * ) FROM tab1
----
3
3

skipif mysql # not compatible
query II rowsort label-6690
SELECT COUNT ( * ) AS col0, + COUNT ( * ) FROM tab1
----
3
3

query I rowsort
SELECT DISTINCT - col0 * - col0 + + col2 * - col1 * + col2 FROM tab2 WHERE NOT ( NULL = NULL )
----

query I rowsort
SELECT col1 FROM tab2 WHERE - - col0 / - + col0 > NULL
----

query II rowsort
SELECT DISTINCT + ( - ( - col1 ) ) AS col1, + col0 AS col0 FROM tab2
----
51
46
67
75
77
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6694
SELECT - - CAST( - 82 AS SIGNED ) * 95 - - + col2 AS col1 FROM tab0 AS cor0
----
-7691
-7743
-7780

skipif mysql # not compatible
query I rowsort label-6694
SELECT - - CAST ( - 82 AS INTEGER ) * 95 - - + col2 AS col1 FROM tab0 AS cor0
----
-7691
-7743
-7780

query I rowsort
SELECT DISTINCT + col1 - - - 81 FROM tab0 cor0
----
-60
-80
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6696
SELECT DISTINCT CAST( NULL AS DECIMAL ) * + - col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6696
SELECT DISTINCT CAST ( NULL AS REAL ) * + - col0 FROM tab2
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 43 NOT IN ( - col0 * col0, - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6698
SELECT col2 * - CAST( NULL AS DECIMAL ) * - + CAST( - col1 AS SIGNED ) FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6698
SELECT col2 * - CAST ( NULL AS REAL ) * - + CAST ( - col1 AS INTEGER ) FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 56 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - - 87 AS col1 FROM tab0 AS cor0
----
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6701
SELECT + COUNT( * ) DIV 53 * - 22 AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6701
SELECT + COUNT ( * ) / 53 * - 22 AS col1 FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 53 col1 FROM tab2 AS cor0
----
53
53
53

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT NULL NOT BETWEEN col1 + - col0 + + 96 + - 65 * - 21 AND NULL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 * + 63 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6705
SELECT - - MIN( - 50 ) DIV - - 55 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6705
SELECT - - MIN ( - 50 ) / - - 55 AS col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT 18 * - 68 AS col1 FROM tab0
----
-1224

query I rowsort
SELECT DISTINCT 58 * - + col0 FROM tab1
----
-2958
-4930
-5278

query II rowsort
SELECT DISTINCT col2 * - col2 * + col0 AS col1, 82 FROM tab2
----
-102400
82
-24334
82
-252300
82

onlyif mysql # aggregate syntax: 
query I rowsort label-6709
SELECT ALL COUNT( ALL ( - col0 ) ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6709
SELECT ALL COUNT ( ALL ( - col0 ) ) AS col0 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6710
SELECT COUNT( * ) * - MIN( ALL + - col1 ) AS col2 FROM tab2 AS cor0
----
231

skipif mysql # not compatible
query I rowsort label-6710
SELECT COUNT ( * ) * - MIN ( ALL + - col1 ) AS col2 FROM tab2 AS cor0
----
231

onlyif mysql # aggregate syntax: 
query I rowsort label-6711
SELECT DISTINCT - + ( - COUNT( * ) ) AS col0 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-6711
SELECT DISTINCT - + ( - COUNT ( * ) ) AS col0 FROM tab2 cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-6712
SELECT + 13 + + ( + col0 ) * col0 * 28 DIV + col0 FROM tab2 AS cor0
----
1301
1805
2113

skipif mysql # not compatible
query I rowsort label-6712
SELECT + 13 + + ( + col0 ) * col0 * 28 / + col0 FROM tab2 AS cor0
----
1301
1805
2113

onlyif mysql # aggregate syntax: 
query I rowsort label-6713
SELECT + + COUNT( * ) FROM tab0 AS cor0 WHERE 4 < + col1
----
2

skipif mysql # not compatible
query I rowsort label-6713
SELECT + + COUNT ( * ) FROM tab0 AS cor0 WHERE 4 < + col1
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6714
SELECT ALL CAST( NULL AS SIGNED ) + 70 * + 15 col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6714
SELECT ALL CAST ( NULL AS INTEGER ) + 70 * + 15 col1 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - ( - col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6716
SELECT DISTINCT - + MAX( + col0 ) + ( 67 ) AS col1 FROM tab0 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-6716
SELECT DISTINCT - + MAX ( + col0 ) + ( 67 ) AS col1 FROM tab0 AS cor0
----
-30

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6717
SELECT - CAST( NULL AS DECIMAL ) col1, col2 + + col0 FROM tab0 AS cor0
----
NULL
196
NULL
62
NULL
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6717
SELECT - CAST ( NULL AS REAL ) col1, col2 + + col0 FROM tab0 AS cor0
----
NULL
196
NULL
62
NULL
97

onlyif mysql # DIV for integer division: 
query II rowsort label-6718
SELECT ALL + col1 DIV 12 - + - 54 * - ( + col2 ) + + + col0 AS col0, 84 AS col1 FROM tab2 AS cor0
----
-1192
84
-2090
84
-3052
84

skipif mysql # not compatible
query II rowsort label-6718
SELECT ALL + col1 / 12 - + - 54 * - ( + col2 ) + + + col0 AS col0, 84 AS col1 FROM tab2 AS cor0
----
-1192
84
-2090
84
-3052
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6719
SELECT ALL - col1 + + CAST( NULL AS SIGNED ) * 86 + - col2 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6719
SELECT ALL - col1 + + CAST ( NULL AS INTEGER ) * 86 + - col2 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - col0 - col2 + col2 FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6721
SELECT DISTINCT - 68 + + CAST( - SUM( ALL col1 ) AS SIGNED ) AS col0 FROM tab2 cor0
----
-263

skipif mysql # not compatible
query I rowsort label-6721
SELECT DISTINCT - 68 + + CAST ( - SUM ( ALL col1 ) AS INTEGER ) AS col0 FROM tab2 cor0
----
-263

query I rowsort
SELECT DISTINCT + col2 * + + 55 + + col0 AS col0 FROM tab1 AS cor0
----
3330
3831
5331

query I rowsort
SELECT - - 4 - - col1 + - - col1 * + 88 FROM tab1 AS cor0
----
1250
4187
449

query I rowsort
SELECT + col1 - + col1 + + 9 FROM tab2
----
9
9
9

query II rowsort
SELECT ALL col1 - col0 AS col0, + col1 FROM tab1
----
-37
14
-44
47
-80
5

query I rowsort
SELECT + col0 + + col1 - 98 FROM tab0
----
-2
0
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 22 col0 FROM tab0
----
-22

query I rowsort
SELECT 92 * + + 2 + + col1 AS col0 FROM tab1
----
189
198
231

query I rowsort
SELECT col2 + + + col0 AS col0 FROM tab1
----
144
147
159

query II rowsort
SELECT DISTINCT + col0 + + 85 AS col1, col0 FROM tab2
----
131
46
149
64
160
75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6731
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( ( CAST( - 37 AS SIGNED ) IS NULL ) )
----

skipif mysql # not compatible
query III rowsort label-6731
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( ( CAST ( - 37 AS INTEGER ) IS NULL ) )
----

query I rowsort
SELECT ALL - col1 + + - 42 FROM tab0 AS cor0
----
-123
-43
-63

query I rowsort
SELECT - - 21 AS col2 FROM tab1 cor0
----
21
21
21

query I rowsort
SELECT + + 44 * + + 29 FROM tab2 WHERE NOT NULL IS NOT NULL
----
1276
1276
1276

onlyif mysql # DIV for integer division: 
query II rowsort label-6735
SELECT ALL 83 * 0 DIV + col1 AS col2, col0 FROM tab0
----
0
15
0
87
0
97

skipif mysql # not compatible
query II rowsort label-6735
SELECT ALL 83 * 0 / + col1 AS col2, col0 FROM tab0
----
0
15
0
87
0
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6736
SELECT + CAST( MIN( + + col2 ) AS SIGNED ) AS col0, ( SUM( ALL + 91 ) ) col2 FROM tab0
----
10
273

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6736
SELECT + CAST ( MIN ( + + col2 ) AS INTEGER ) AS col0, ( SUM ( ALL + 91 ) ) col2 FROM tab0
----
10
273

query II rowsort
SELECT - 65 AS col1, 43 * + col2 AS col0 FROM tab0 AS cor0
----
-65
2021
-65
4257
-65
430

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 + - col0 = NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL <> + 14 * - col1 - + + ( ( - + col2 ) ) + - col1
----

query I rowsort
SELECT ALL + 25 * + col1 AS col2 FROM tab1 AS cor0
----
1175
125
350

onlyif mysql # aggregate syntax: 
query I rowsort label-6741
SELECT DISTINCT SUM( DISTINCT - col0 ) AS col0 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-6741
SELECT DISTINCT SUM ( DISTINCT - col0 ) AS col0 FROM tab2 AS cor0
----
-185

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6742
SELECT + ( + COUNT( CAST( NULL AS SIGNED ) ) ) FROM tab0 WHERE NOT NULL NOT IN ( + 11 + col2 - 94 / col0 + + 61 + + - ( + col1 ) / + + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-6742
SELECT + ( + COUNT ( CAST ( NULL AS INTEGER ) ) ) FROM tab0 WHERE NOT NULL NOT IN ( + 11 + col2 - 94 / col0 + + 61 + + - ( + col1 ) / + + col2 )
----
0

query II rowsort
SELECT ALL - col1 * 87, col0 AS col2 FROM tab2
----
-4437
46
-5829
75
-6699
64

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6744
SELECT DISTINCT ( - CAST( NULL AS DECIMAL ) ) * + col1 * col1 * - + CAST( NULL AS SIGNED ) - - col0 + - 94 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6744
SELECT DISTINCT ( - CAST ( NULL AS REAL ) ) * + col1 * col1 * - + CAST ( NULL AS INTEGER ) - - col0 + - 94 AS col0 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6745
SELECT 72 + + COUNT( * ) AS col0 FROM tab1
----
75

skipif mysql # not compatible
query I rowsort label-6745
SELECT 72 + + COUNT ( * ) AS col0 FROM tab1
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6746
SELECT CAST( - col0 AS SIGNED ) + col1 col2 FROM tab1
----
-37
-44
-80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6746
SELECT CAST ( - col0 AS INTEGER ) + col1 col2 FROM tab1
----
-37
-44
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-6747
SELECT - MAX( DISTINCT + 38 ) + - 4 FROM tab2
----
-42

skipif mysql # not compatible
query I rowsort label-6747
SELECT - MAX ( DISTINCT + 38 ) + - 4 FROM tab2
----
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-6748
SELECT + col0 DIV + 92 * ( 76 ) * - 56 + + - col2 AS col2 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-6748
SELECT + col0 / + 92 * ( 76 ) * - 56 + + - col2 AS col2 FROM tab2
----
-23
-40
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-6749
SELECT DISTINCT - col2 DIV - - ( + col1 ) + - col2 * col2 * col0 + - 91 AS col0 FROM tab2
----
-102491
-24425
-252391

skipif mysql # not compatible
query I rowsort label-6749
SELECT DISTINCT - col2 / - - ( + col1 ) + - col2 * col2 * col0 + - 91 AS col0 FROM tab2
----
-102491
-24425
-252391

onlyif mysql # aggregate syntax: 
query I rowsort label-6750
SELECT ALL ( - SUM( + col1 ) ) AS col1 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-6750
SELECT ALL ( - SUM ( + col1 ) ) AS col1 FROM tab2
----
-195

query II rowsort
SELECT ALL + col2 + + 44 + - col2 + 6 + - col1 * - + 10 + - col2 AS col0, col0 FROM tab1
----
41
85
452
91
94
51

query I rowsort
SELECT DISTINCT col0 * - ( + 6 ) AS col0 FROM tab1 AS cor0
----
-306
-510
-546

query I rowsort
SELECT ALL - col0 * col1 + + 33 FROM tab1 cor0
----
-392
-4244
-681

onlyif mysql # DIV for integer division: 
query I rowsort label-6754
SELECT ALL - 61 DIV + col1 AS col0 FROM tab0 cor0
----
-2
-61
0

skipif mysql # not compatible
query I rowsort label-6754
SELECT ALL - 61 / + col1 AS col0 FROM tab0 cor0
----
-2
-61
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6755
SELECT DISTINCT col1 / 76 * - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6755
SELECT DISTINCT col1 / 76 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6756
SELECT DISTINCT - col1 DIV - - 18 FROM tab2
----
-2
-3
-4

skipif mysql # not compatible
query I rowsort label-6756
SELECT DISTINCT - col1 / - - 18 FROM tab2
----
-2
-3
-4

query I rowsort
SELECT - col2 * - + col0 FROM tab0
----
705
870
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-6758
SELECT 17 + COUNT( * ) AS col2 FROM tab2
----
20

skipif mysql # not compatible
query I rowsort label-6758
SELECT 17 + COUNT ( * ) AS col2 FROM tab2
----
20

query I rowsort
SELECT - col0 * - - col1 + - col1 FROM tab0 AS cor0
----
-1296
-1848
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-6760
SELECT ALL - - COUNT( * ) + + 6 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-6760
SELECT ALL - - COUNT ( * ) + + 6 FROM tab0 AS cor0
----
9

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 * + 27 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - ( - 33 ) <> NULL
----

query II rowsort
SELECT - col0 AS col2, 12 AS col2 FROM tab1 AS cor0 WHERE 55 * + col0 + + 56 <= NULL
----

query I rowsort
SELECT - ( + col0 ) + + - col0 AS col1 FROM tab2 AS cor0
----
-128
-150
-92

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6765
SELECT + CAST( NULL AS SIGNED ) * - + col0 / - + 13 * + + 99 AS col2, - 15 AS col2 FROM tab2
----
NULL
-15
NULL
-15
NULL
-15

skipif mysql # not compatible
query II rowsort label-6765
SELECT + CAST ( NULL AS INTEGER ) * - + col0 / - + 13 * + + 99 AS col2, - 15 AS col2 FROM tab2
----
NULL
-15
NULL
-15
NULL
-15

query III rowsort
SELECT * FROM tab0 WHERE - 11 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6767
SELECT 53 * - SUM( col2 ) col0 FROM tab1
----
-11819

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6767
SELECT 53 * - SUM ( col2 ) col0 FROM tab1
----
-11819

query II rowsort
SELECT ALL 36 AS col2, - 56 * 37 FROM tab1
----
36
-2072
36
-2072
36
-2072

onlyif mysql # aggregate syntax: 
query I rowsort label-6769
SELECT ALL MAX( col0 ) col0 FROM tab1
----
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6769
SELECT ALL MAX ( col0 ) col0 FROM tab1
----
91

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN col2 AND - - col2
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + - col1 + col0 >= col2 + + 5
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 27 FROM tab2 AS cor0 WHERE NOT + 66 <= - col2 / + 38 + col2
----
27
27
27

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 IN ( col0 + col0 + col0, + col1 + - + col1, 11 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL - col1, 38 * col1 AS col0 FROM tab1 AS cor0
----
-14
532
-47
1786
-5
190

onlyif mysql # aggregate syntax: 
query I rowsort label-6775
SELECT ALL COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
query I rowsort label-6775
SELECT ALL COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 73 IS NOT NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

query I rowsort
SELECT col1 * + 74 FROM tab0 AS cor0
----
1554
5994
74

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6778
SELECT ALL - CAST( NULL AS DECIMAL ) * + 92 * + + AVG ( DISTINCT + 47 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6778
SELECT ALL - CAST ( NULL AS REAL ) * + 92 * + + AVG ( DISTINCT + 47 ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT col1 * - - col1 + + col2 AS col0 FROM tab0 AS cor0
----
100
451
6608

query I rowsort
SELECT col0 * - + col0 * - col2 + - col0 + + col0 FROM tab1 AS cor0
----
249696
426275
563108

query I rowsort
SELECT DISTINCT - + 29 AS col0 FROM tab1 AS cor0
----
-29

query II rowsort
SELECT col1 AS col0, col0 AS col1 FROM tab2
----
51
46
67
75
77
64

query II rowsort
SELECT ALL col0 AS col1, col2 * + 29 FROM tab0
----
15
1363
87
290
97
2871

onlyif mysql # DIV for integer division: 
query I rowsort label-6784
SELECT - ( col2 ) DIV + col0 AS col0 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6784
SELECT - ( col2 ) / + col0 AS col0 FROM tab1
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6785
SELECT DISTINCT MIN( ALL + col0 ) col2 FROM tab2
----
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6785
SELECT DISTINCT MIN ( ALL + col0 ) col2 FROM tab2
----
46

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT BETWEEN + col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6787
SELECT DISTINCT col0, - CAST( 59 AS SIGNED ) - + col0 + - + ( - col1 ) + - col2 FROM tab2
----
46
-77
64
-86
75
-125

skipif mysql # not compatible
query II rowsort label-6787
SELECT DISTINCT col0, - CAST ( 59 AS INTEGER ) - + col0 + - + ( - col1 ) + - col2 FROM tab2
----
46
-77
64
-86
75
-125

query I rowsort
SELECT ALL + 51 - + col0 AS col1 FROM tab1 WHERE NOT NULL = 92
----

query I rowsort
SELECT - + col0 AS col1 FROM tab0 WHERE + - 67 IS NULL
----

query I rowsort
SELECT + col1 FROM tab1 WHERE - - col1 >= - 61
----
14
47
5

query II rowsort
SELECT DISTINCT col0 AS col0, - col1 FROM tab0
----
15
-81
87
-21
97
-1

query II rowsort
SELECT + 80, col1 AS col1 FROM tab2 AS cor0 WHERE NULL > col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6793
SELECT CAST( NULL AS SIGNED ) + - col1 + + col0 col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6793
SELECT CAST ( NULL AS INTEGER ) + - col1 + + col0 col2 FROM tab2 cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL + col1 + + 50 - + col0 AS col1, - col1 * + col0 + - + col2 + + col1 AS col1 FROM tab0 AS cor0
----
-16
-1816
-46
-195
116
-1181

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 69 * + + col1 + - col1 col1 FROM tab0 AS cor0
----
1428
5508
68

onlyif mysql # aggregate syntax: 
query I rowsort label-6796
SELECT DISTINCT SUM( - + col2 ) AS col0 FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-6796
SELECT DISTINCT SUM ( - + col2 ) AS col0 FROM tab2
----
-121

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT 16 IS NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

query II rowsort
SELECT ALL col0 * - + col2 AS col2, + 73 AS col1 FROM tab0 AS cor0
----
-705
73
-870
73
-9603
73

onlyif mysql # aggregate syntax: 
query I rowsort label-6799
SELECT - - COUNT( * ) col0 FROM tab2 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6799
SELECT - - COUNT ( * ) col0 FROM tab2 cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-6800
SELECT + + col2 DIV + ( col1 ) FROM tab1 cor0
----
1
11
6

skipif mysql # not compatible
query I rowsort label-6800
SELECT + + col2 / + ( col1 ) FROM tab1 cor0
----
1
11
6

query I rowsort
SELECT + 10 * + col2 FROM tab2 AS cor0
----
230
400
580

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6802
SELECT DISTINCT - CAST( NULL AS DECIMAL ) + 30 * col1 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6802
SELECT DISTINCT - CAST ( NULL AS REAL ) + 30 * col1 AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6803
SELECT ALL 87 + - ( COUNT( * ) ) FROM tab1 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-6803
SELECT ALL 87 + - ( COUNT ( * ) ) FROM tab1 AS cor0
----
84

query I rowsort
SELECT col2 * - col0 - 48 FROM tab0 AS cor0
----
-753
-918
-9651

query I rowsort
SELECT + - col0 - + 1 AS col2 FROM tab0 AS cor0
----
-16
-88
-98

query I rowsort
SELECT + + 8 FROM tab1 WHERE + + col0 IS NULL
----

query I rowsort
SELECT DISTINCT + col0 * + + 62 FROM tab1
----
3162
5270
5642

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6808
SELECT DISTINCT * FROM tab0 WHERE NOT - CAST( - - col2 AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6808
SELECT DISTINCT * FROM tab0 WHERE NOT - CAST ( - - col2 AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL > - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6810
SELECT col0 AS col0 FROM tab2 WHERE NOT + col0 NOT BETWEEN col2 + + CAST( NULL AS SIGNED ) / 85 AND NULL
----

skipif mysql # not compatible
query I rowsort label-6810
SELECT col0 AS col0 FROM tab2 WHERE NOT + col0 NOT BETWEEN col2 + + CAST ( NULL AS INTEGER ) / 85 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6811
SELECT ALL - MAX( - col0 ) + - ( COUNT( * ) ) AS col1 FROM tab0 WHERE + + CAST( + col0 AS SIGNED ) IS NOT NULL
----
12

skipif mysql # not compatible
query I rowsort label-6811
SELECT ALL - MAX ( - col0 ) + - ( COUNT ( * ) ) AS col1 FROM tab0 WHERE + + CAST ( + col0 AS INTEGER ) IS NOT NULL
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-6812
SELECT DISTINCT 3 * - - COUNT( * ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-6812
SELECT DISTINCT 3 * - - COUNT ( * ) FROM tab2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6813
SELECT COUNT( DISTINCT col0 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6813
SELECT COUNT ( DISTINCT col0 ) AS col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT + 50 + + - col1 + - col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ( ( + col2 ) ) AS col0 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6816
SELECT - + COUNT( * ) * - 3 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-6816
SELECT - + COUNT ( * ) * - 3 FROM tab2 AS cor0
----
9

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - + 8 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6818
SELECT ALL + MIN( DISTINCT col1 ) AS col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6818
SELECT ALL + MIN ( DISTINCT col1 ) AS col0 FROM tab0 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * 94 + - 67 * col1 + + + 46 col0 FROM tab0 AS cor0
----
2233
613
73

query I rowsort
SELECT + - 58 AS col0 FROM tab2 AS cor0 WHERE ( NOT - col1 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6821
SELECT 98 + - COUNT( * ), - MIN( DISTINCT col2 ) AS col0 FROM tab1
----
95
-59

skipif mysql # not compatible
query II rowsort label-6821
SELECT 98 + - COUNT ( * ), - MIN ( DISTINCT col2 ) AS col0 FROM tab1
----
95
-59

query II rowsort
SELECT DISTINCT + ( - + col1 ), + ( - col2 ) AS col2 FROM tab2
----
-51
-23
-67
-58
-77
-40

query I rowsort
SELECT col2 + - col1 * - - col0 AS col0 FROM tab0
----
-1168
-1817
2

query I rowsort
SELECT - col2 + + ( col0 ) + - col0 AS col2 FROM tab0
----
-10
-47
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 80 * 22 col1 FROM tab1 WHERE NULL IS NULL
----
1760

query I rowsort
SELECT + col0 + + 76 FROM tab2
----
122
140
151

query I rowsort
SELECT - col0 FROM tab1 WHERE - + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6828
SELECT ALL + MIN( + col1 ) + - COUNT( ( - 54 ) ) FROM tab2 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-6828
SELECT ALL + MIN ( + col1 ) + - COUNT ( ( - 54 ) ) FROM tab2 AS cor0
----
48

query I rowsort
SELECT DISTINCT + + col1 * + col1 + - 36 AS col0 FROM tab1 AS cor0
----
-11
160
2173

query I rowsort
SELECT + col1 - - col0 * + 48 * + + col2 FROM tab0
----
33921
41781
460945

query I rowsort
SELECT ALL - 64 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL IS NULL )
----

query I rowsort
SELECT + 54 * col0 / + - 27 AS col1 FROM tab0 WHERE NULL = col2
----

query I rowsort
SELECT - - col0 + 66 FROM tab0 WHERE + 46 IS NULL
----

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 LEFT OUTER JOIN tab2 AS cor1 ON NULL IS NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

query I rowsort
SELECT - - col2 + + - col2 FROM tab0 cor0
----
0
0
0

query III rowsort
SELECT * FROM tab1 cor0 WHERE col0 BETWEEN - col2 * 0 * - col0 - col1 AND col0 * - col0 + - col2
----

query I rowsort
SELECT ALL - 1 * + ( + col2 ) AS col1 FROM tab0 AS cor0
----
-10
-47
-99

query II rowsort
SELECT + 48, col0 AS col2 FROM tab2 AS cor0
----
48
46
48
64
48
75

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 95 IS NOT NULL
----

query II rowsort
SELECT + - col0, col1 AS col0 FROM tab2 cor0
----
-46
51
-64
77
-75
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6841
SELECT col1 * - - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6841
SELECT col1 * - - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 * 8 FROM tab0
----
168
648
8

query I rowsort
SELECT ALL col2 * - - col0 * - + ( - 58 ) FROM tab2
----
148480
252300
61364

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 32 ) col1 FROM tab2
----
32
32
32

query I rowsort
SELECT col0 * - - col1 * 12 AS col1 FROM tab0
----
1164
14580
21924

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) <= + col2
----

query II rowsort
SELECT ALL col2 * - ( - ( - col2 ) ), col2 AS col1 FROM tab0
----
-100
10
-2209
47
-9801
99

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col1 + - + col0 + - col1 * + col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
10
47
99

query I rowsort
SELECT ( - + col1 ) FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-6851
SELECT DISTINCT + COUNT( * ) - + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-6851
SELECT DISTINCT + COUNT ( * ) - + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
0

query II rowsort
SELECT ALL col2, - 19 * + - col1 AS col0 FROM tab0 WHERE NOT + - col0 + + - col1 IS NULL
----
10
399
47
1539
99
19

onlyif mysql # aggregate syntax: 
query I rowsort label-6853
SELECT - - COUNT( * ) * + - 75 FROM tab2 AS cor0
----
-225

skipif mysql # not compatible
query I rowsort label-6853
SELECT - - COUNT ( * ) * + - 75 FROM tab2 AS cor0
----
-225

query I rowsort
SELECT ALL - col1 + - col1 + - + col1 FROM tab2 AS cor0
----
-153
-201
-231

query II rowsort
SELECT ALL col1, col1 * - + col2 AS col2 FROM tab1 AS cor0
----
14
-1344
47
-3196
5
-295

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6856
SELECT ALL - col1 AS col2 FROM tab0 AS cor0 WHERE NOT CAST( 11 AS SIGNED ) BETWEEN - col2 AND - 68 * - col0
----

skipif mysql # not compatible
query I rowsort label-6856
SELECT ALL - col1 AS col2 FROM tab0 AS cor0 WHERE NOT CAST ( 11 AS INTEGER ) BETWEEN - col2 AND - 68 * - col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6857
SELECT - - COUNT( * ) AS col1, 29 AS col2 FROM tab0 AS cor0
----
3
29

skipif mysql # not compatible
query II rowsort label-6857
SELECT - - COUNT ( * ) AS col1, 29 AS col2 FROM tab0 AS cor0
----
3
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6858
SELECT DISTINCT - col1 * - col1 * - - 56 * - + col0 * + - CAST( col1 AS SIGNED ) AS col2 FROM tab1
----
529082008
595000
7836864

skipif mysql # not compatible
query I rowsort label-6858
SELECT DISTINCT - col1 * - col1 * - - 56 * - + col0 * + - CAST ( col1 AS INTEGER ) AS col2 FROM tab1
----
529082008
595000
7836864

query IIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6860
SELECT MIN( - + col2 ) + + MIN( DISTINCT + col1 ) * - - COUNT( * ) FROM tab0 WHERE NULL BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6860
SELECT MIN ( - + col2 ) + + MIN ( DISTINCT + col1 ) * - - COUNT ( * ) FROM tab0 WHERE NULL BETWEEN NULL AND NULL
----
NULL

query I rowsort
SELECT 33 + col1 + - col1 AS col1 FROM tab1
----
33
33
33

onlyif mysql # aggregate syntax: 
query I rowsort label-6862
SELECT DISTINCT - COUNT( DISTINCT col0 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6862
SELECT DISTINCT - COUNT ( DISTINCT col0 ) FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6863
SELECT ALL + COUNT( - + col0 ) + 93 * MAX( - col1 ) * + COUNT( * ) * COUNT( * ) FROM tab2 AS cor0
----
-42684

skipif mysql # not compatible
query I rowsort label-6863
SELECT ALL + COUNT ( - + col0 ) + 93 * MAX ( - col1 ) * + COUNT ( * ) * COUNT ( * ) FROM tab2 AS cor0
----
-42684

query I rowsort
SELECT DISTINCT col2 - 40 + col2 + + col1 * + + 51 * 11 AS col1 FROM tab1 AS cor0 WHERE ( + col0 ) IS NOT NULL
----
26463
2883
8006

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND - col0 * + 55 - 22
----

query I rowsort
SELECT - 85 + - col1 FROM tab1 AS cor0
----
-132
-90
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6867
SELECT ALL - CAST( - - 37 AS SIGNED ) FROM tab0 WHERE NULL IS NULL
----
-37
-37
-37

skipif mysql # not compatible
query I rowsort label-6867
SELECT ALL - CAST ( - - 37 AS INTEGER ) FROM tab0 WHERE NULL IS NULL
----
-37
-37
-37

query I rowsort
SELECT ALL + 86 * + + 71 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to fb86c0dff831ad539be4665d93c25b8a

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6869
SELECT + col0 - CAST( + - col2 AS SIGNED ) FROM tab2
----
104
133
69

skipif mysql # not compatible
query I rowsort label-6869
SELECT + col0 - CAST ( + - col2 AS INTEGER ) FROM tab2
----
104
133
69

onlyif mysql # aggregate syntax: 
query II rowsort label-6870
SELECT + 21 AS col0, COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
21
3

skipif mysql # not compatible
query II rowsort label-6870
SELECT + 21 AS col0, COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
21
3

query I rowsort
SELECT - col1 FROM tab0 AS cor0 WHERE NOT ( NOT NULL IS NULL )
----
-1
-21
-81

query I rowsort
SELECT col2 * + - ( col0 ) * - col0 AS col0 FROM tab2 AS cor0
----
163840
326250
48668

onlyif mysql # aggregate syntax: 
query I rowsort label-6873
SELECT ALL + ( + + COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6873
SELECT ALL + ( + + COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL IN ( - col0 + - 76 - 54, - col0 * col1, + + 17 )
----

query II rowsort
SELECT DISTINCT + + 55 * col0 AS col0, 13 FROM tab1 AS cor0
----
2805
13
4675
13
5005
13

onlyif mysql # aggregate syntax: 
query I rowsort label-6876
SELECT ALL + 85 * + COUNT( * ) FROM tab2 AS cor0
----
255

skipif mysql # not compatible
query I rowsort label-6876
SELECT ALL + 85 * + COUNT ( * ) FROM tab2 AS cor0
----
255

onlyif mysql # aggregate syntax: 
query I rowsort label-6877
SELECT DISTINCT + COUNT( DISTINCT + - col0 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6877
SELECT DISTINCT + COUNT ( DISTINCT + - col0 ) FROM tab1
----
3

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <= + - 67
----

query I rowsort
SELECT DISTINCT col0 * + 31 AS col2 FROM tab2
----
1426
1984
2325

query I rowsort
SELECT ALL col2 * - col2 * + 0 AS col2 FROM tab0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6881
SELECT ALL + MIN( - CAST( NULL AS DECIMAL ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6881
SELECT ALL + MIN ( - CAST ( NULL AS REAL ) ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6882
SELECT ALL + COUNT( * ) * 44 AS col0 FROM tab1
----
132

skipif mysql # not compatible
query I rowsort label-6882
SELECT ALL + COUNT ( * ) * 44 AS col0 FROM tab1
----
132

query III rowsort
SELECT * FROM tab0 WHERE NOT 98 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6884
SELECT DISTINCT col2 DIV col1 col0 FROM tab1
----
1
11
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6884
SELECT DISTINCT col2 / col1 col0 FROM tab1
----
1
11
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6885
SELECT 55 * COUNT( * ) * ( - SUM( ALL col1 ) ) AS col1 FROM tab1
----
-10890

skipif mysql # not compatible
query I rowsort label-6885
SELECT 55 * COUNT ( * ) * ( - SUM ( ALL col1 ) ) AS col1 FROM tab1
----
-10890

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6886
SELECT ALL - ( CAST( NULL AS SIGNED ) ) * col0 * - + col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6886
SELECT ALL - ( CAST ( NULL AS INTEGER ) ) * col0 * - + col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 18 * col2 * + col2 FROM tab2
----
-28800
-60552
-9522

onlyif mysql # aggregate syntax: 
query I rowsort label-6888
SELECT DISTINCT + - COUNT( * ) FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-9

skipif mysql # not compatible
query I rowsort label-6888
SELECT DISTINCT + - COUNT ( * ) FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6889
SELECT ALL + col2 * CAST( - - col2 AS SIGNED ) FROM tab1 WHERE col0 - + 51 - + - col2 * - col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-6889
SELECT ALL + col2 * CAST ( - - col2 AS INTEGER ) FROM tab1 WHERE col0 - + 51 - + - col2 * - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6890
SELECT - MAX( + 76 ) AS col1 FROM tab2
----
-76

skipif mysql # not compatible
query I rowsort label-6890
SELECT - MAX ( + 76 ) AS col1 FROM tab2
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-6891
SELECT DISTINCT + MIN( ALL - 51 ) col2 FROM tab1 AS cor0 WHERE NULL <> NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6891
SELECT DISTINCT + MIN ( ALL - 51 ) col2 FROM tab1 AS cor0 WHERE NULL <> NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + + 20 + - - 61 + - col0 col2 FROM tab0 cor0
----
-15
-17
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-6893
SELECT DISTINCT - 47 * - 79 + - MIN( col1 ) FROM tab1 AS cor0
----
3708

skipif mysql # not compatible
query I rowsort label-6893
SELECT DISTINCT - 47 * - 79 + - MIN ( col1 ) FROM tab1 AS cor0
----
3708

query I rowsort
SELECT DISTINCT - col0 * - - col1 FROM tab0
----
-1215
-1827
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + - col2 col1 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6896
SELECT - 83 + - - 59 - + 14 * - - COUNT( * ) DIV COUNT( * ) FROM tab1
----
-38

skipif mysql # not compatible
query I rowsort label-6896
SELECT - 83 + - - 59 - + 14 * - - COUNT ( * ) / COUNT ( * ) FROM tab1
----
-38

query II rowsort
SELECT ALL col2 + - - 81, - col0 AS col0 FROM tab2 WHERE NOT - - col0 IS NULL
----
104
-46
121
-64
139
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-6898
SELECT col0 * col2 DIV + 99 + + - 26 FROM tab1
----
23
24
36

skipif mysql # not compatible
query I rowsort label-6898
SELECT col0 * col2 / + 99 + + - 26 FROM tab1
----
23
24
36

onlyif mysql # DIV for integer division: 
query I rowsort label-6899
SELECT ALL col2 DIV 51 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6899
SELECT ALL col2 / 51 FROM tab2
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6900
SELECT + 49 * COUNT( * ) AS col0 FROM tab2
----
147

skipif mysql # not compatible
query I rowsort label-6900
SELECT + 49 * COUNT ( * ) AS col0 FROM tab2
----
147

query I rowsort
SELECT col2 AS col0 FROM tab0 WHERE NULL IN ( 83 )
----

query I rowsort
SELECT ALL - ( + ( - 68 ) ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
68
68
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 14 col0 FROM tab0
----
14

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col2 + - + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col1 + - + col2 AS col1 FROM tab0 AS cor0
----
-98
11
34

query I rowsort
SELECT - + col2 FROM tab1 AS cor0 WHERE + col0 - col2 * - + col0 NOT IN ( + - col0, col0, - 76 / - col2, col0 * + 68 )
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-6907
SELECT + + COUNT( * ) - + - 4 AS col0 FROM tab1 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-6907
SELECT + + COUNT ( * ) - + - 4 AS col0 FROM tab1 AS cor0
----
7

query II rowsort
SELECT DISTINCT + 25 AS col1, 28 AS col2 FROM tab2
----
25
28

query II rowsort
SELECT ALL + 66 AS col2, + 99 * - 14 AS col0 FROM tab1
----
66
-1386
66
-1386
66
-1386

onlyif mysql # aggregate syntax: 
query I rowsort label-6910
SELECT DISTINCT - SUM( ALL ( + 28 ) ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-252

skipif mysql # not compatible
query I rowsort label-6910
SELECT DISTINCT - SUM ( ALL ( + 28 ) ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-252

query II rowsort
SELECT DISTINCT - - col2, - col2 AS col2 FROM tab0 AS cor0
----
10
-10
47
-47
99
-99

query II rowsort
SELECT ALL - + 44 AS col1, col1 AS col2 FROM tab2 AS cor0
----
-44
51
-44
67
-44
77

query II rowsort
SELECT 70 AS col2, + col1 FROM tab2 cor0
----
70
51
70
67
70
77

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 56 * + 45 < + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col1 / - col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - 35 col2 FROM tab2
----
-1785
-2345
-2695

query I rowsort
SELECT - col0 FROM tab0 WHERE NOT col1 IS NOT NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 AS cor0 WHERE NULL < - 69
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6919
SELECT DISTINCT ( + 84 ) + + + 60 DIV - - col0 AS col0 FROM tab0 cor0
----
84
88

skipif mysql # not compatible
query I rowsort label-6919
SELECT DISTINCT ( + 84 ) + + + 60 / - - col0 AS col0 FROM tab0 cor0
----
84
88

query I rowsort
SELECT ( 50 ) FROM tab0 AS cor0
----
50
50
50

query I rowsort
SELECT - 58 + 94 FROM tab0
----
36
36
36

query I rowsort
SELECT col2 * + col2 * + 28 + - 12 FROM tab0
----
274416
2788
61840

onlyif mysql # aggregate syntax: 
query I rowsort label-6923
SELECT 62 + + COUNT( * ) FROM tab1
----
65

skipif mysql # not compatible
query I rowsort label-6923
SELECT 62 + + COUNT ( * ) FROM tab1
----
65

query II rowsort
SELECT ALL - 12 AS col2, col0 * + + col2 * + - col2 + col0 FROM tab0 AS cor0
----
-12
-33120
-12
-8613
-12
-950600

onlyif mysql # aggregate syntax: 
query I rowsort label-6925
SELECT - - COUNT( * ) + COUNT( + col1 ) AS col1 FROM tab1 AS cor0 WHERE ( NULL ) = - 22
----
0

skipif mysql # not compatible
query I rowsort label-6925
SELECT - - COUNT ( * ) + COUNT ( + col1 ) AS col1 FROM tab1 AS cor0 WHERE ( NULL ) = - 22
----
0

query II rowsort
SELECT + - col1 AS col1, - ( + + 74 ) FROM tab0 AS cor0
----
-1
-74
-21
-74
-81
-74

query I rowsort
SELECT DISTINCT - + col2 + + - col1 AS col1 FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN ( col0 ) / + - col1 + + col0 + + 25 AND col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6928
SELECT ALL + + CAST( NULL AS SIGNED ) * - + ( - col1 ) + col0 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6928
SELECT ALL + + CAST ( NULL AS INTEGER ) * - + ( - col1 ) + col0 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 * - 26 * - col1 * - col1 - - + 93 FROM tab0
----
-2429
-2558697
-997449

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 65 + + col2 col1 FROM tab0
----
-18
-55
34

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab2 cor0 WHERE ( NULL ) NOT IN ( + ( - - col2 ) / + col0, col0, col1 + col2 + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + col2 * - col2 * + + ( + col1 ) col1, - 62 + - col0 FROM tab0 AS cor0
----
-178929
-77
-2100
-149
-9801
-159

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 54 col2 FROM tab1 cor0
----
54
54
54

onlyif mysql # aggregate syntax: 
query I rowsort label-6934
SELECT + - COUNT( * ) * 7 FROM tab2 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-6934
SELECT + - COUNT ( * ) * 7 FROM tab2 AS cor0
----
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6935
SELECT - COUNT( * ) DIV 75 AS col0 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-6935
SELECT - COUNT ( * ) / 75 AS col0 FROM tab0 cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6936
SELECT col1 DIV 6 AS col2 FROM tab1 AS cor0
----
0
2
7

skipif mysql # not compatible
query I rowsort label-6936
SELECT col1 / 6 AS col2 FROM tab1 AS cor0
----
0
2
7

onlyif mysql # aggregate syntax: 
query I rowsort label-6937
SELECT - - 60 * + COUNT( * ) col1 FROM tab0 AS cor0
----
180

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6937
SELECT - - 60 * + COUNT ( * ) col1 FROM tab0 AS cor0
----
180

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN col0 - + 31 - + + col1 * - - col1 * - ( - col0 ) AND - 66
----

query I rowsort
SELECT ( - 18 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-18
-18
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-6940
SELECT + 96 * - + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-288

skipif mysql # not compatible
query I rowsort label-6940
SELECT + 96 * - + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-288

onlyif mysql # aggregate syntax: 
query I rowsort label-6941
SELECT DISTINCT - COUNT( * ) FROM tab1 AS cor0 WHERE NOT + 26 >= - col2 + + 9
----
0

skipif mysql # not compatible
query I rowsort label-6941
SELECT DISTINCT - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT + 26 >= - col2 + + 9
----
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6942
SELECT DISTINCT col2 AS col2, 96 + - 90 + - + col2 * + col0 * CAST( CAST( NULL AS DECIMAL ) AS SIGNED ) AS col1 FROM tab0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-6942
SELECT DISTINCT col2 AS col2, 96 + - 90 + - + col2 * + col0 * CAST ( CAST ( NULL AS REAL ) AS INTEGER ) AS col1 FROM tab0
----
10
NULL
47
NULL
99
NULL

query I rowsort
SELECT - col2 * + - 68 AS col1 FROM tab2
----
1564
2720
3944

onlyif mysql # DIV for integer division: 
query I rowsort label-6944
SELECT col0 DIV + 77 AS col1 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-6944
SELECT col0 / + 77 AS col1 FROM tab1
----
0
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 72 col2 FROM tab0
----
72
72
72

query I rowsort
SELECT + col2 * - + ( + - 24 ) + + 49 FROM tab0
----
1177
2425
289

query I rowsort
SELECT 14 + 96 AS col2 FROM tab0
----
110
110
110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6948
SELECT - ( - CAST( SUM( DISTINCT + + 94 ) AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-6948
SELECT - ( - CAST ( SUM ( DISTINCT + + 94 ) AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-6949
SELECT ALL - - MIN( + - 71 ) + - + 70 FROM tab0 cor0
----
-141

skipif mysql # not compatible
query I rowsort label-6949
SELECT ALL - - MIN ( + - 71 ) + - + 70 FROM tab0 cor0
----
-141

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 * + + col0 - col0 / + 32 IS NULL
----

query I rowsort
SELECT DISTINCT - ( - - 13 ) FROM tab1 AS cor0
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6952
SELECT DISTINCT CAST( + 65 AS SIGNED ) + - 46 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
19

skipif mysql # not compatible
query I rowsort label-6952
SELECT DISTINCT CAST ( + 65 AS INTEGER ) + - 46 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-6953
SELECT COUNT( * ) * 91 FROM tab2
----
273

skipif mysql # not compatible
query I rowsort label-6953
SELECT COUNT ( * ) * 91 FROM tab2
----
273

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6954
SELECT + 98 + CAST( 20 AS SIGNED ) DIV + - col0 FROM tab1 cor0
----
98
98
98

skipif mysql # not compatible
query I rowsort label-6954
SELECT + 98 + CAST ( 20 AS INTEGER ) / + - col0 FROM tab1 cor0
----
98
98
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 6 + 16 col2, + col0 FROM tab2 AS cor0
----
22
46
22
64
22
75

query I rowsort
SELECT ALL - 51 + + 35 AS col1 FROM tab2 AS cor0
----
-16
-16
-16

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 33 - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - + 93 AS col2 FROM tab0 cor0
----
-93
-93
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-6959
SELECT - COUNT( * ) FROM tab0 cor0 WHERE ( NULL ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-6959
SELECT - COUNT ( * ) FROM tab0 cor0 WHERE ( NULL ) IS NULL
----
-3

query I rowsort
SELECT ALL + col0 - 43 FROM tab0 AS cor0
----
-28
44
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6961
SELECT CAST( NULL AS SIGNED ) * - - 8 col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6961
SELECT CAST ( NULL AS INTEGER ) * - - 8 col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 + + + 29 AS col1 FROM tab1 WHERE NOT + col1 IS NULL
----
-22
-56
-62

query II rowsort
SELECT DISTINCT + col1 AS col2, ( - col2 ) * + - 46 AS col2 FROM tab0
----
1
4554
21
460
81
2162

onlyif mysql # aggregate syntax: 
query I rowsort label-6964
SELECT SUM( col1 ) FROM tab1 WHERE - - col1 NOT BETWEEN + col2 AND col2 * - col0
----
66

skipif mysql # not compatible
query I rowsort label-6964
SELECT SUM ( col1 ) FROM tab1 WHERE - - col1 NOT BETWEEN + col2 AND col2 * - col0
----
66

query I rowsort
SELECT + col1 * 85 AS col0 FROM tab2
----
4335
5695
6545

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + 54 * col0 col0 FROM tab0 AS cor0 WHERE NOT + col0 IS NULL
----
4708
5337
857

query I rowsort
SELECT + - ( + col2 ) FROM tab2 AS cor0 WHERE NOT + 95 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6968
SELECT ALL * FROM tab1 WHERE NOT + 30 BETWEEN NULL AND CAST( col0 AS SIGNED ) * + col1 + col2 / - 38
----

skipif mysql # not compatible
query III rowsort label-6968
SELECT ALL * FROM tab1 WHERE NOT + 30 BETWEEN NULL AND CAST ( col0 AS INTEGER ) * + col1 + col2 / - 38
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6969
SELECT SUM( DISTINCT - 2 ) FROM tab2
----
-2

skipif mysql # not compatible
query I rowsort label-6969
SELECT SUM ( DISTINCT - 2 ) FROM tab2
----
-2

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 < + 83 + - col2
----
87
21
10
97
1
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6971
SELECT DISTINCT * FROM tab2 WHERE NOT 62 * - CAST( NULL AS SIGNED ) + col2 * col0 IN ( + col1 )
----

skipif mysql # not compatible
query III rowsort label-6971
SELECT DISTINCT * FROM tab2 WHERE NOT 62 * - CAST ( NULL AS INTEGER ) + col2 * col0 IN ( + col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6972
SELECT col0 - - col1 DIV 99 FROM tab0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-6972
SELECT col0 - - col1 / 99 FROM tab0
----
15
87
97

query I rowsort
SELECT DISTINCT 48 AS col0 FROM tab1 WHERE NOT col2 >= col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6974
SELECT DISTINCT COUNT( * ) FROM tab0 WHERE NOT ( + 99 ) < - 34 - - col0
----
3

skipif mysql # not compatible
query I rowsort label-6974
SELECT DISTINCT COUNT ( * ) FROM tab0 WHERE NOT ( + 99 ) < - 34 - - col0
----
3

query III rowsort
SELECT * FROM tab0 WHERE NOT + 88 * - col2 IN ( + 48 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6976
SELECT ALL + MAX( DISTINCT + 83 ) FROM tab0
----
83

skipif mysql # not compatible
query I rowsort label-6976
SELECT ALL + MAX ( DISTINCT + 83 ) FROM tab0
----
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col0 ) * - col0 col0 FROM tab0 WHERE NOT 98 NOT IN ( - col0 )
----

query III rowsort
SELECT * FROM tab1 WHERE - col2 IN ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6979
SELECT ALL COUNT( * ) + + ( 62 ) col1 FROM tab1
----
65

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6979
SELECT ALL COUNT ( * ) + + ( 62 ) col1 FROM tab1
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6980
SELECT DISTINCT CAST( + col1 AS SIGNED ) - - ( col2 ) FROM tab2
----
117
125
74

skipif mysql # not compatible
query I rowsort label-6980
SELECT DISTINCT CAST ( + col1 AS INTEGER ) - - ( col2 ) FROM tab2
----
117
125
74

query I rowsort
SELECT DISTINCT 5 - - 80 AS col2 FROM tab2
----
85

query I rowsort
SELECT DISTINCT 16 + col0 FROM tab1
----
101
107
67

onlyif mysql # aggregate syntax: 
query I rowsort label-6983
SELECT + MAX( DISTINCT 63 ) FROM tab0
----
63

skipif mysql # not compatible
query I rowsort label-6983
SELECT + MAX ( DISTINCT 63 ) FROM tab0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-6984
SELECT MAX( ALL col1 ) AS col0 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6984
SELECT MAX ( ALL col1 ) AS col0 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT - col0 * 45 + col2 FROM tab2
----
-2047
-2840
-3317

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6986
SELECT DISTINCT * FROM tab1 WHERE CAST( NULL AS SIGNED ) * - col0 BETWEEN + col0 AND ( col1 / + col2 )
----

skipif mysql # not compatible
query III rowsort label-6986
SELECT DISTINCT * FROM tab1 WHERE CAST ( NULL AS INTEGER ) * - col0 BETWEEN + col0 AND ( col1 / + col2 )
----

query I rowsort
SELECT + col0 FROM tab2 WHERE NOT + col0 / - col1 BETWEEN NULL AND ( col1 )
----

query I rowsort
SELECT DISTINCT - col2 + 59 FROM tab1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - 12 BETWEEN NULL AND NULL
----

query I rowsort
SELECT - ( + ( 98 ) ) - 44 * col1 FROM tab0 WHERE NULL NOT BETWEEN ( - col1 ) AND - col2
----

query I rowsort
SELECT DISTINCT - col1 * - ( ( - col0 ) ) FROM tab1
----
-425
-4277
-714

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 44 + + col2 NOT IN ( - 63 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col1 * 78 + col0 * - col1 AS col2 FROM tab2 cor0
----
1078
1632
201

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab2 AS cor0 WHERE NOT NULL < 64 + 13 * + col2
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + ( + col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6996
SELECT COUNT( * ) + - 27 * + COUNT( * ) AS col2 FROM tab2 cor0
----
-78

skipif mysql # not compatible
query I rowsort label-6996
SELECT COUNT ( * ) + - 27 * + COUNT ( * ) AS col2 FROM tab2 cor0
----
-78

query I rowsort
SELECT + col0 + 0 AS col2 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT DISTINCT col0 * col2 + col2 AS col1 FROM tab0 AS cor0
----
752
880
9702

onlyif mysql # aggregate syntax: 
query I rowsort label-6999
SELECT ALL + COUNT( ALL col1 ) * + 89 FROM tab0
----
267

skipif mysql # not compatible
query I rowsort label-6999
SELECT ALL + COUNT ( ALL col1 ) * + 89 FROM tab0
----
267

query I rowsort
SELECT 70 * col1 AS col1 FROM tab0
----
1470
5670
70

query I rowsort
SELECT + 73 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + 83 + - col0 FROM tab1 AS cor0
----
-2
-8
32

query I rowsort
SELECT DISTINCT + col1 * col2 FROM tab2 AS cor0 WHERE NOT 39 * + 45 NOT BETWEEN 96 AND ( col0 + - col2 )
----

query I rowsort
SELECT + 35 * - col2 FROM tab0 AS cor0 WHERE + col2 NOT IN ( + 74 )
----
-1645
-3465
-350

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col2 + - 60 < col0 - 1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7006
SELECT COUNT( * ) AS col1 FROM tab2 cor0 WHERE - 85 - 67 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-7006
SELECT COUNT ( * ) AS col1 FROM tab2 cor0 WHERE - 85 - 67 IS NOT NULL
----
3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 25 * col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7008
SELECT - ( col0 ) DIV col0 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7008
SELECT - ( col0 ) / col0 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT 21 * col1 FROM tab2 cor0
----
1071
1407
1617

onlyif mysql # aggregate syntax: 
query I rowsort label-7010
SELECT ALL - COUNT( - 8 ) AS col2 FROM tab0 AS cor0 WHERE ( 68 ) NOT BETWEEN 63 - + col2 AND ( + col1 )
----
-2

skipif mysql # not compatible
query I rowsort label-7010
SELECT ALL - COUNT ( - 8 ) AS col2 FROM tab0 AS cor0 WHERE ( 68 ) NOT BETWEEN 63 - + col2 AND ( + col1 )
----
-2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col0 - + col2 col0 FROM tab0 AS cor0
----
-272
-7579
-9508

onlyif mysql # DIV for integer division: 
query I rowsort label-7012
SELECT + 35 DIV + col2 - ( + col2 + 60 ) FROM tab1 AS cor0
----
-119
-128
-156

skipif mysql # not compatible
query I rowsort label-7012
SELECT + 35 / + col2 - ( + col2 + 60 ) FROM tab1 AS cor0
----
-119
-128
-156

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( + col2 ) NOT IN ( - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 62 - - 89 FROM tab1 AS cor0
----
151

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN col0 / + col2 + 41 AND - 92
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7016
SELECT ALL + CAST( col1 AS SIGNED ) + + 63 FROM tab2 cor0
----
114
130
140

skipif mysql # not compatible
query I rowsort label-7016
SELECT ALL + CAST ( col1 AS INTEGER ) + + 63 FROM tab2 cor0
----
114
130
140

query I rowsort
SELECT DISTINCT + col1 - 24 AS col0 FROM tab1 AS cor0
----
-10
-19
23

query I rowsort
SELECT ALL - col1 * - col1 - + col1 AS col2 FROM tab1
----
182
20
2162

query I rowsort
SELECT DISTINCT col0 - - col1 + - 30 AS col1 FROM tab0
----
66
68
78

query I rowsort
SELECT ALL 72 * - col1 AS col1 FROM tab2
----
-3672
-4824
-5544

query I rowsort
SELECT DISTINCT + 84 - + col2 AS col2 FROM tab2
----
26
44
61

onlyif mysql # aggregate syntax: 
query I rowsort label-7022
SELECT DISTINCT + 79 * MAX( col1 ) AS col1 FROM tab1
----
3713

skipif mysql # not compatible
query I rowsort label-7022
SELECT DISTINCT + 79 * MAX ( col1 ) AS col1 FROM tab1
----
3713

onlyif mysql # aggregate syntax: 
query I rowsort label-7023
SELECT MAX( col0 ) FROM tab1 WHERE - 40 + 44 * ( col0 - 73 ) IN ( 23 - - col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7023
SELECT MAX ( col0 ) FROM tab1 WHERE - 40 + 44 * ( col0 - 73 ) IN ( 23 - - col2 )
----
NULL

query I rowsort
SELECT + 55 FROM tab1 WHERE NOT - 16 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7025
SELECT ( - - col1 ) * CAST( - CAST( NULL AS SIGNED ) / - col0 AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7025
SELECT ( - - col1 ) * CAST ( - CAST ( NULL AS INTEGER ) / - col0 AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT 46 * + 73 AS col0 FROM tab1
----
3358
3358
3358

onlyif mysql # aggregate syntax: 
query I rowsort label-7027
SELECT DISTINCT + COUNT( 66 ) AS col1 FROM tab2 AS cor0 WHERE NOT ( + 21 ) NOT BETWEEN NULL AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-7027
SELECT DISTINCT + COUNT ( 66 ) AS col1 FROM tab2 AS cor0 WHERE NOT ( + 21 ) NOT BETWEEN NULL AND ( NULL )
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 72 * col0 NOT BETWEEN col2 - col0 AND - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7029
SELECT ALL * FROM tab1 cor0 WHERE NOT ( col2 + CAST( col2 AS SIGNED ) * col2 ) NOT BETWEEN col2 AND NULL
----

skipif mysql # not compatible
query III rowsort label-7029
SELECT ALL * FROM tab1 cor0 WHERE NOT ( col2 + CAST ( col2 AS INTEGER ) * col2 ) NOT BETWEEN col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7030
SELECT col0 * - col1 AS col1 FROM tab2 AS cor0 WHERE NOT col1 NOT IN ( CAST( 56 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-7030
SELECT col0 * - col1 AS col1 FROM tab2 AS cor0 WHERE NOT col1 NOT IN ( CAST ( 56 AS INTEGER ) )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 98 IS NOT NULL
----

query I rowsort
SELECT + - 77 AS col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3a24155cb91ceff1e67bb51c07b72107

onlyif mysql # DIV for integer division: 
query I rowsort label-7033
SELECT 96 DIV 34 col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7033
SELECT 96 / 34 col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

query I rowsort
SELECT DISTINCT - col2 * 0 * - + 39 AS col0 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7035
SELECT - - MAX( + col1 ) AS col0 FROM tab1 cor0 WHERE NOT 80 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7035
SELECT - - MAX ( + col1 ) AS col0 FROM tab1 cor0 WHERE NOT 80 IS NOT NULL
----
NULL

query I rowsort
SELECT - + 20 * - - col2 AS col0 FROM tab1 AS cor0
----
-1180
-1360
-1920

query II rowsort
SELECT ALL - col1, col1 FROM tab2 AS cor0
----
-51
51
-67
67
-77
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7038
SELECT ALL + - MIN( + 84 ) + - 23 - COUNT( * ) DIV - 62 FROM tab2 AS cor0
----
-107

skipif mysql # not compatible
query I rowsort label-7038
SELECT ALL + - MIN ( + 84 ) + - 23 - COUNT ( * ) / - 62 FROM tab2 AS cor0
----
-107

query I rowsort
SELECT ALL + col0 * - 71 AS col1 FROM tab1 AS cor0
----
-3621
-6035
-6461

onlyif mysql # aggregate syntax: 
query I rowsort label-7040
SELECT DISTINCT - COUNT( * ) FROM tab0 AS cor0 WHERE NOT - col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7040
SELECT DISTINCT - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT - col2 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7041
SELECT + COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL = 47
----
0

skipif mysql # not compatible
query I rowsort label-7041
SELECT + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL = 47
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( - 47 ) AND NULL
----

query I rowsort
SELECT ALL col2 * col2 FROM tab2 WHERE NOT ( - - col1 ) >= col0
----
3364

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + + ( - col2 ) NOT IN ( - 7 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7045
SELECT ALL col2 * + + 84 AS col0, - CAST( - col1 AS SIGNED ) * - col0 FROM tab2
----
1932
-2346
3360
-4928
4872
-5025

skipif mysql # not compatible
query II rowsort label-7045
SELECT ALL col2 * + + 84 AS col0, - CAST ( - col1 AS INTEGER ) * - col0 FROM tab2
----
1932
-2346
3360
-4928
4872
-5025

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 + + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 WHERE col2 >= ( + + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + ( + + col0 ) FROM tab0
----
15
87
97

query I rowsort
SELECT DISTINCT col2 + + 56 FROM tab2
----
114
79
96

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col1 NOT BETWEEN + - col2 * col0 AND + ( ( 81 ) )
----

query I rowsort
SELECT ALL ( 52 ) + + - 5 + + 73 * - 8 AS col1 FROM tab1
----
-537
-537
-537

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + ( - 33 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col1 + - 53 FROM tab2 cor0
----
-2
14
24

query I rowsort
SELECT ALL - col1 + + col1 * - + col2 AS col0 FROM tab2 AS cor0
----
-1224
-3157
-3953

onlyif mysql # aggregate syntax: 
query I rowsort label-7055
SELECT - MAX( DISTINCT + col0 ) - - - COUNT( * ) * - + 7 FROM tab2
----
-54

skipif mysql # not compatible
query I rowsort label-7055
SELECT - MAX ( DISTINCT + col0 ) - - - COUNT ( * ) * - + 7 FROM tab2
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7056
SELECT + CAST( + 10 AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

skipif mysql # not compatible
query I rowsort label-7056
SELECT + CAST ( + 10 AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

query I rowsort
SELECT DISTINCT 68 + + + col1 AS col0 FROM tab2 AS cor0
----
119
135
145

onlyif mysql # aggregate syntax: 
query I rowsort label-7058
SELECT - - COUNT( * ) FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7058
SELECT - - COUNT ( * ) FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7059
SELECT ALL - + ( + + COUNT( * ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7059
SELECT ALL - + ( + + COUNT ( * ) ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT ALL + - col1 + - 15 AS col0 FROM tab1 AS cor0
----
-20
-29
-62

query I rowsort
SELECT DISTINCT ( 99 ) FROM tab0 AS cor0 WHERE ( col2 ) IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN 78 + + + col1 + - 75 AND ( - 2 )
----

query I rowsort
SELECT ALL - col2 - - 78 FROM tab2 AS cor0
----
20
38
55

query I rowsort
SELECT DISTINCT 18 * + col2 - col0 - col0 FROM tab2 AS cor0
----
322
592
894

onlyif mysql # aggregate syntax: 
query I rowsort label-7065
SELECT ALL 49 + + - COUNT( * ) AS col2 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-7065
SELECT ALL 49 + + - COUNT ( * ) AS col2 FROM tab2
----
46

query I rowsort
SELECT DISTINCT - col0 * - col2 - + + col0 AS col2 FROM tab1
----
4845
4930
6097

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 40 col1 FROM tab2
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7068
SELECT ALL CAST( NULL AS SIGNED ) col1, COUNT( * ) AS col1 FROM tab1
----
NULL
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7068
SELECT ALL CAST ( NULL AS INTEGER ) col1, COUNT ( * ) AS col1 FROM tab1
----
NULL
3

query I rowsort
SELECT DISTINCT - - col1 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7070
SELECT - COUNT( * ) AS col2 FROM tab1, tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-7070
SELECT - COUNT ( * ) AS col2 FROM tab1, tab1 AS cor0
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - col1 * + col2 col1 FROM tab0
----
-18270
-57105
-9603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0, col0 * + col2 col2 FROM tab0
----
15
705
87
870
97
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-7073
SELECT - COUNT( + + 24 ) FROM tab2 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7073
SELECT - COUNT ( + + 24 ) FROM tab2 WHERE NOT ( NULL ) IS NULL
----
0

query I rowsort
SELECT + + 92 AS col2 FROM tab1 WHERE NOT - col2 IS NULL
----
92
92
92

query II rowsort
SELECT DISTINCT col2, col2 AS col2 FROM tab0 AS cor0
----
10
10
47
47
99
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7076
SELECT - SUM( col1 ) col2 FROM tab1 cor0
----
-66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7076
SELECT - SUM ( col1 ) col2 FROM tab1 cor0
----
-66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - + col2 col2 FROM tab0 AS cor0
----
-705
-870
-9603

onlyif mysql # DIV for integer division: 
query I rowsort label-7078
SELECT ALL 87 DIV 90 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7078
SELECT ALL 87 / 90 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL - - 64 AS col2 FROM tab2 cor0
----
64
64
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7080
SELECT DISTINCT - + CAST( CAST( + + COUNT( * ) AS DECIMAL ) AS SIGNED ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7080
SELECT DISTINCT - + CAST ( CAST ( + + COUNT ( * ) AS REAL ) AS INTEGER ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL + - col0 + col2 * + - col2 - - col1 - + 92 * - col1 * + + col0 * + 20 FROM tab1 AS cor0
----
1304507
778439
7865012

onlyif mysql # aggregate syntax: 
query I rowsort label-7082
SELECT DISTINCT - 39 * - + SUM( DISTINCT - 36 ) AS col1 FROM tab2 AS cor0
----
-1404

skipif mysql # not compatible
query I rowsort label-7082
SELECT DISTINCT - 39 * - + SUM ( DISTINCT - 36 ) AS col1 FROM tab2 AS cor0
----
-1404

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT NULL = + ( + col0 )
----

query I rowsort
SELECT - col2 * 33 AS col1 FROM tab0 cor0
----
-1551
-3267
-330

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL >= - 39 * col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 88 * + + col2 col0 FROM tab2
----
-2024
-3520
-5104

query I rowsort
SELECT ALL col1 * + + 10 AS col2 FROM tab1
----
140
470
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7088
SELECT ALL + 35 * - MAX( ALL - - col1 ) AS col1, - COUNT( * ) DIV 24 * + - COUNT( * ) + - + 63 AS col2 FROM tab0
----
-2835
-63

skipif mysql # not compatible
query II rowsort label-7088
SELECT ALL + 35 * - MAX ( ALL - - col1 ) AS col1, - COUNT ( * ) / 24 * + - COUNT ( * ) + - + 63 AS col2 FROM tab0
----
-2835
-63

query I rowsort
SELECT ( - - col0 ) * + ( + - 84 ) AS col2 FROM tab0
----
-1260
-7308
-8148

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN col0 * col1 AND ( + col2 / - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7091
SELECT ALL SUM( 72 ) AS col1 FROM tab0 WHERE NOT ( + col0 ) IS NOT NULL OR ( + col2 * + - ( col1 ) ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7091
SELECT ALL SUM ( 72 ) AS col1 FROM tab0 WHERE NOT ( + col0 ) IS NOT NULL OR ( + col2 * + - ( col1 ) ) IS NULL
----
NULL

query I rowsort
SELECT - 95 + - 9 AS col1 FROM tab1 AS cor0
----
-104
-104
-104

query I rowsort
SELECT + col1 + col0 * + 3 FROM tab0 cor0
----
126
282
292

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 AS col1, + ( - col2 ) col0 FROM tab2 AS cor0
----
-23
-23
-40
-40
-58
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7095
SELECT DISTINCT - col1 + 64 * + - CAST( + + 54 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-3457
-3477
-3537

skipif mysql # not compatible
query I rowsort label-7095
SELECT DISTINCT - col1 + 64 * + - CAST ( + + 54 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-3457
-3477
-3537

onlyif mysql # aggregate syntax: 
query I rowsort label-7096
SELECT + COUNT( * ) * - ( - 18 ) AS col1 FROM tab0
----
54

skipif mysql # not compatible
query I rowsort label-7096
SELECT + COUNT ( * ) * - ( - 18 ) AS col1 FROM tab0
----
54

onlyif mysql # DIV for integer division: 
query I rowsort label-7097
SELECT - col2 DIV col0 + - col0 * 26 - + col2 FROM tab2 AS cor0
----
-1219
-1704
-2008

skipif mysql # not compatible
query I rowsort label-7097
SELECT - col2 / col0 + - col0 * 26 - + col2 FROM tab2 AS cor0
----
-1219
-1704
-2008

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7098
SELECT ALL - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) + - col1 FROM tab0 cor0 WHERE NOT - ( - 66 ) / col2 + - - col2 * - + ( - col1 ) * + 52 + + - 56 IN ( + col2 )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7098
SELECT ALL - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) + - col1 FROM tab0 cor0 WHERE NOT - ( - 66 ) / col2 + - - col2 * - + ( - col1 ) * + 52 + + - 56 IN ( + col2 )
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) IN ( + col1 )
----

query I rowsort
SELECT + 16 - col1 FROM tab0 AS cor0
----
-5
-65
15

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL = - col0
----

query II rowsort
SELECT 1 AS col1, + 6 * + col1 AS col2 FROM tab2
----
1
306
1
402
1
462

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + + col0 + - col2 * - - col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col2 * - 11 AS col0 FROM tab2
----
253
440
638

onlyif mysql # aggregate syntax: 
query I rowsort label-7105
SELECT ALL COUNT( * ) * 94 AS col1 FROM tab1
----
282

skipif mysql # not compatible
query I rowsort label-7105
SELECT ALL COUNT ( * ) * 94 AS col1 FROM tab1
----
282

query I rowsort
SELECT DISTINCT - ( 73 ) FROM tab0 WHERE col1 <= col1 * + 16 + - ( + 63 )
----
-73

query I rowsort
SELECT - col2 * + + col1 AS col0 FROM tab1
----
-1344
-295
-3196

query II rowsort
SELECT DISTINCT col0, - 48 AS col0 FROM tab1 AS cor0
----
51
-48
85
-48
91
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7109
SELECT DISTINCT - col1 * col0 * + CAST( col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-197120
-291450
-53958

skipif mysql # not compatible
query I rowsort label-7109
SELECT DISTINCT - col1 * col0 * + CAST ( col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-197120
-291450
-53958

onlyif mysql # aggregate syntax: 
query I rowsort label-7110
SELECT ALL MAX( - col0 ) FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-7110
SELECT ALL MAX ( - col0 ) FROM tab2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-7111
SELECT DISTINCT + + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-7111
SELECT DISTINCT + + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7112
SELECT ALL - CAST( NULL AS SIGNED ) + 58 * + 7 * + col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7112
SELECT ALL - CAST ( NULL AS INTEGER ) + 58 * + 7 * + col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7113
SELECT + SUM( DISTINCT - + col1 ) col2, + ( + 48 ) AS col2 FROM tab1 AS cor0
----
-66
48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7113
SELECT + SUM ( DISTINCT - + col1 ) col2, + ( + 48 ) AS col2 FROM tab1 AS cor0
----
-66
48

onlyif mysql # aggregate syntax: 
query II rowsort label-7114
SELECT DISTINCT COUNT( * ) AS col0, COUNT( * ) FROM tab0 cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-7114
SELECT DISTINCT COUNT ( * ) AS col0, COUNT ( * ) FROM tab0 cor0
----
3
3

query I rowsort
SELECT DISTINCT 17 FROM tab2 AS cor0 WHERE NULL >= NULL
----

query I rowsort
SELECT + + ( - 94 ) FROM tab0 AS cor0
----
-94
-94
-94

query II rowsort
SELECT DISTINCT + 50 + + col0 AS col0, col1 * + col1 / 56 + + + col2 FROM tab1 AS cor0 WHERE NOT col2 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7118
SELECT ALL CAST( NULL AS DECIMAL ) + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) * col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7118
SELECT ALL CAST ( NULL AS REAL ) + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) * col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + col0 * + 44 + + - col1 * 91 * 45 col0 FROM tab2 cor0
----
-206872
-271132
-312576

onlyif mysql # aggregate syntax: 
query I rowsort label-7120
SELECT - 53 - + 53 * - COUNT( * ) FROM tab0 AS cor0 WHERE + col1 + + + col2 - + 24 >= NULL
----
-53

skipif mysql # not compatible
query I rowsort label-7120
SELECT - 53 - + 53 * - COUNT ( * ) FROM tab0 AS cor0 WHERE + col1 + + + col2 - + 24 >= NULL
----
-53

query I rowsort
SELECT ALL - 12 * - + 63 FROM tab1 AS cor0
----
756
756
756

query I rowsort
SELECT ALL 72 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7123
SELECT DISTINCT MAX( DISTINCT - col1 ) col1 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7123
SELECT DISTINCT MAX ( DISTINCT - col1 ) col1 FROM tab2 AS cor0
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7124
SELECT ALL col2 * col2 AS col2, - col2 * + CAST( NULL AS SIGNED ) + col0 / - 94 AS col2 FROM tab2
----
1600
NULL
3364
NULL
529
NULL

skipif mysql # not compatible
query II rowsort label-7124
SELECT ALL col2 * col2 AS col2, - col2 * + CAST ( NULL AS INTEGER ) + col0 / - 94 AS col2 FROM tab2
----
1600
NULL
3364
NULL
529
NULL

query I rowsort
SELECT 70 + + col0 FROM tab0
----
157
167
85

query I rowsort
SELECT - col0 * - ( col1 ) + + - col0 * - 54 AS col1 FROM tab2
----
4830
8384
9075

onlyif mysql # DIV for integer division: 
query I rowsort label-7127
SELECT + col1 DIV + + 65 * 20 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7127
SELECT + col1 / + + 65 * 20 AS col2 FROM tab1
----
0
0
0

query II rowsort
SELECT DISTINCT + 73 + + col2 AS col2, + col2 AS col1 FROM tab2
----
113
40
131
58
96
23

query I rowsort
SELECT 57 - col0 FROM tab1
----
-28
-34
6

onlyif mysql # DIV for integer division: 
query I rowsort label-7130
SELECT + col0 DIV + col2 + + col1 AS col2 FROM tab0
----
1
29
81

skipif mysql # not compatible
query I rowsort label-7130
SELECT + col0 / + col2 + + col1 AS col2 FROM tab0
----
1
29
81

query I rowsort
SELECT - - ( - + col0 ) FROM tab0 WHERE - - col1 IS NOT NULL
----
-15
-87
-97

query I rowsort
SELECT DISTINCT - col0 * - + col1 FROM tab0
----
1215
1827
97

query II rowsort
SELECT ALL col2, - col2 AS col2 FROM tab2 AS cor0
----
23
-23
40
-40
58
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 col2, - col2 AS col0 FROM tab1 cor0
----
-51
-96
-85
-59
-91
-68

query II rowsort
SELECT + 68 AS col1, - col2 + 58 AS col0 FROM tab0 AS cor0
----
68
-41
68
11
68
48

onlyif mysql # aggregate syntax: 
query I rowsort label-7136
SELECT ALL + SUM( DISTINCT - - ( + 46 ) ) AS col1 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-7136
SELECT ALL + SUM ( DISTINCT - - ( + 46 ) ) AS col1 FROM tab2 AS cor0
----
46

query I rowsort
SELECT + - 94 * + col0 + - col0 * + + 2 + + col2 FROM tab0 AS cor0
----
-1393
-8342
-9213

query III rowsort
SELECT * FROM tab0 WHERE NOT + - col2 + - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7139
SELECT ALL + col2 * + CAST( NULL AS SIGNED ) AS col2, + col0 FROM tab1
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-7139
SELECT ALL + col2 * + CAST ( NULL AS INTEGER ) AS col2, + col0 FROM tab1
----
NULL
51
NULL
85
NULL
91

query II rowsort
SELECT - - col1 * col1 AS col2, + col0 FROM tab1 AS cor0
----
196
51
2209
91
25
85

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( col1 * - + col0 ) NOT BETWEEN 20 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - col2 * - col2 AND - + 80 / 33 * - col1
----

query I rowsort
SELECT + ( 73 ) * - - col2 AS col1 FROM tab2 AS cor0
----
1679
2920
4234

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 15 + - - col1 < - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7145
SELECT + SUM( - + col0 ) AS col0 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-7145
SELECT + SUM ( - + col0 ) AS col0 FROM tab0 AS cor0
----
-199

query I rowsort
SELECT ALL - col2 * col1 + col1 AS col1 FROM tab0 cor0 WHERE + col1 * - 21 IS NULL
----

query II rowsort
SELECT - + col0 AS col1, 8 FROM tab1 AS cor0
----
-51
8
-85
8
-91
8

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - 62, - col1, + + col0 * - col2 )
----

query I rowsort
SELECT DISTINCT 65 + col1 FROM tab1 AS cor0
----
112
70
79

query III rowsort
SELECT * FROM tab2 WHERE NULL <= - 50
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7151
SELECT ALL - MIN( + - 14 ) FROM tab2
----
14

skipif mysql # not compatible
query I rowsort label-7151
SELECT ALL - MIN ( + - 14 ) FROM tab2
----
14

query II rowsort
SELECT ALL - ( + + col1 ), col2 FROM tab1
----
-14
96
-47
68
-5
59

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7153
SELECT ALL col0, - CAST( + + 26 AS SIGNED ) FROM tab0
----
15
-26
87
-26
97
-26

skipif mysql # not compatible
query II rowsort label-7153
SELECT ALL col0, - CAST ( + + 26 AS INTEGER ) FROM tab0
----
15
-26
87
-26
97
-26

query I rowsort
SELECT DISTINCT + ( + + col0 ) * + 27 * 62 + 61 AS col1 FROM tab0 AS cor0
----
145699
162439
25171

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 47 col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-47

query I rowsort
SELECT DISTINCT + col0 FROM tab1 WHERE - col0 IS NOT NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7157
SELECT DISTINCT MAX( DISTINCT + 48 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
48

skipif mysql # not compatible
query I rowsort label-7157
SELECT DISTINCT MAX ( DISTINCT + 48 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
48

query II rowsort
SELECT col1 * - 28, + col2 + col2 AS col2 FROM tab0
----
-2268
94
-28
198
-588
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7159
SELECT DISTINCT - col2 * + + CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7159
SELECT DISTINCT - col2 * + + CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT col2 * + ( - - 33 ) + col2 AS col0 FROM tab0 AS cor0
----
1598
3366
340

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7161
SELECT ALL 76 DIV + MAX( - col2 ) col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7161
SELECT ALL 76 / + MAX ( - col2 ) col0 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7162
SELECT - COUNT( * ) * + + COUNT( col1 ) + - 87 col0 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7162
SELECT - COUNT ( * ) * + + COUNT ( col1 ) + - 87 col0 FROM tab1 AS cor0
----
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-7163
SELECT - - col0 DIV + - 40 FROM tab1 cor0
----
-1
-2
-2

skipif mysql # not compatible
query I rowsort label-7163
SELECT - - col0 / + - 40 FROM tab1 cor0
----
-1
-2
-2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7164
SELECT DISTINCT - + CAST( - 16 AS SIGNED ) col0, col1 AS col1 FROM tab0 AS cor0
----
16
1
16
21
16
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7164
SELECT DISTINCT - + CAST ( - 16 AS INTEGER ) col0, col1 AS col1 FROM tab0 AS cor0
----
16
1
16
21
16
81

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL <> - col2
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 * col1 + - col2 + - ( + 83 ) > + - col2
----
85
5
59

query II rowsort
SELECT DISTINCT - col2 AS col0, 26 AS col2 FROM tab2
----
-23
26
-40
26
-58
26

onlyif mysql # DIV for integer division: 
query I rowsort label-7168
SELECT + col0 DIV + col2 FROM tab1 WHERE NOT 65 > + 95
----
0
1
1

skipif mysql # not compatible
query I rowsort label-7168
SELECT + col0 / + col2 FROM tab1 WHERE NOT 65 > + 95
----
0
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7169
SELECT DISTINCT + col0 / - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7169
SELECT DISTINCT + col0 / - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7170
SELECT * FROM tab0 WHERE NOT CAST( NULL AS SIGNED ) - + col1 - 87 BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-7170
SELECT * FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) - + col1 - 87 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7171
SELECT ALL 53 * + MIN( + col1 ) DIV + + 72 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7171
SELECT ALL 53 * + MIN ( + col1 ) / + + 72 FROM tab0
----
0

query I rowsort
SELECT col2 * 20 FROM tab0
----
1980
200
940

query II rowsort
SELECT col1, + col0 * col1 * + col1 FROM tab1
----
14
9996
47
201019
5
2125

query III rowsort
SELECT ALL * FROM tab2 WHERE 56 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7175
SELECT MIN( + + 79 ) AS col0 FROM tab0 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-7175
SELECT MIN ( + + 79 ) AS col0 FROM tab0 AS cor0
----
79

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE + ( - 55 ) IS NULL
----

query I rowsort
SELECT DISTINCT + col0 + + 31 + + - col2 - 67 + - 77 * col1 * 89 FROM tab2 AS cor0 WHERE NOT 78 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7178
SELECT ALL CAST( - - 26 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
26
26
26

skipif mysql # not compatible
query I rowsort label-7178
SELECT ALL CAST ( - - 26 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
26
26
26

query I rowsort
SELECT + - col1 + + + 4 FROM tab0 AS cor0 WHERE NOT 96 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 18 AS col1, col2 * + - col1 col1 FROM tab2 AS cor0 WHERE 45 - + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7181
SELECT 51 + + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
54

skipif mysql # not compatible
query I rowsort label-7181
SELECT 51 + + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
54

query I rowsort
SELECT - col2 AS col1 FROM tab0 AS cor0 WHERE 49 + - - 9 + + 11 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7183
SELECT DISTINCT + + CAST( + 56 AS SIGNED ) - ( col0 ) AS col1 FROM tab2 AS cor0
----
-19
-8
10

skipif mysql # not compatible
query I rowsort label-7183
SELECT DISTINCT + + CAST ( + 56 AS INTEGER ) - ( col0 ) AS col1 FROM tab2 AS cor0
----
-19
-8
10

query I rowsort
SELECT DISTINCT 90 - col2 FROM tab1
----
-6
22
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - + 26 col2 FROM tab1
----
1222
130
364

query I rowsort
SELECT - 91 * + col1 AS col0 FROM tab2
----
-4641
-6097
-7007

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7187
SELECT DISTINCT CAST( - + 49 AS SIGNED ) - + CAST( NULL AS SIGNED ) * - col0 * - 97 * - col1 AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7187
SELECT DISTINCT CAST ( - + 49 AS INTEGER ) - + CAST ( NULL AS INTEGER ) * - col0 * - 97 * - col1 AS col1 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE - col2 NOT BETWEEN + ( + + 84 ) AND col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-7189
SELECT ALL + COUNT( * ), 3 FROM tab2
----
3
3

skipif mysql # not compatible
query II rowsort label-7189
SELECT ALL + COUNT ( * ), 3 FROM tab2
----
3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * col1 col0 FROM tab0
----
-1215
-1827
-97

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN NULL AND col2
----

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0 cor1 WHERE NULL IS NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

onlyif mysql # aggregate syntax: 
query II rowsort label-7193
SELECT DISTINCT + COUNT( * ) col1, 52 AS col1 FROM tab1
----
3
52

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7193
SELECT DISTINCT + COUNT ( * ) col1, 52 AS col1 FROM tab1
----
3
52

onlyif mysql # aggregate syntax: 
query I rowsort label-7194
SELECT - - COUNT( * ) * + COUNT( * ) FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-7194
SELECT - - COUNT ( * ) * + COUNT ( * ) FROM tab2 AS cor0
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7195
SELECT ALL + + COUNT( ALL + + 59 ) FROM tab2 AS cor0 WHERE - 81 * - 23 IN ( - CAST( NULL AS SIGNED ) * - - col2 + - ( + col1 ), + 99, - - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-7195
SELECT ALL + + COUNT ( ALL + + 59 ) FROM tab2 AS cor0 WHERE - 81 * - 23 IN ( - CAST ( NULL AS INTEGER ) * - - col2 + - ( + col1 ), + 99, - - col0 )
----
0

query II rowsort
SELECT DISTINCT + 12, col0 FROM tab0 AS cor0
----
12
15
12
87
12
97

onlyif mysql # aggregate syntax: 
query II rowsort label-7197
SELECT DISTINCT - - COUNT( * ), MIN( - 50 ) + - - COUNT( * ) + 8 * + + COUNT( * ) AS col1 FROM tab1 AS cor0
----
3
-23

skipif mysql # not compatible
query II rowsort label-7197
SELECT DISTINCT - - COUNT ( * ), MIN ( - 50 ) + - - COUNT ( * ) + 8 * + + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
3
-23

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 65 * - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + + col1 AS col2, + 25 FROM tab0 AS cor0
----
1
25
21
25
81
25

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL >= NULL OR NOT NULL IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7201
SELECT - SUM( ALL + col0 ) FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-7201
SELECT - SUM ( ALL + col0 ) FROM tab1 AS cor0
----
-227

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 58 * + col2 col0 FROM tab1 AS cor0
----
3422
3944
5568

query II rowsort
SELECT DISTINCT 40, col2 FROM tab2 AS cor0
----
40
23
40
40
40
58

query I rowsort
SELECT col1 * + - col2 * - + col1 * - + col2 FROM tab0
----
-14493249
-44100
-9801

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7205
SELECT ALL CAST( + col1 AS SIGNED ) * 72 col1 FROM tab0 WHERE NOT ( + col1 ) IS NULL
----
1512
5832
72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7205
SELECT ALL CAST ( + col1 AS INTEGER ) * 72 col1 FROM tab0 WHERE NOT ( + col1 ) IS NULL
----
1512
5832
72

onlyif mysql # DIV for integer division: 
query I rowsort label-7206
SELECT DISTINCT + col2 DIV + 47 FROM tab1
----
1
2

skipif mysql # not compatible
query I rowsort label-7206
SELECT DISTINCT + col2 / + 47 FROM tab1
----
1
2

query I rowsort
SELECT ALL col2 * - + 5 FROM tab2
----
-115
-200
-290

onlyif mysql # aggregate syntax: 
query I rowsort label-7208
SELECT ALL COUNT( * ) AS col1 FROM tab1 WHERE NULL = NULL
----
0

skipif mysql # not compatible
query I rowsort label-7208
SELECT ALL COUNT ( * ) AS col1 FROM tab1 WHERE NULL = NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7209
SELECT DISTINCT CAST( NULL AS SIGNED ) / 66 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7209
SELECT DISTINCT CAST ( NULL AS INTEGER ) / 66 AS col2 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT + - 51 + - + col1 + col1 AS col1 FROM tab2 AS cor0
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7211
SELECT ALL + COUNT( - + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7211
SELECT ALL + COUNT ( - + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7212
SELECT MIN( + 92 ) * - CAST( + SUM( col0 ) AS SIGNED ) FROM tab2 cor0
----
-17020

skipif mysql # not compatible
query I rowsort label-7212
SELECT MIN ( + 92 ) * - CAST ( + SUM ( col0 ) AS INTEGER ) FROM tab2 cor0
----
-17020

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7213
SELECT * FROM tab1 AS cor0 WHERE 21 * col0 * - CAST( NULL AS SIGNED ) = - 18 * + 91
----

skipif mysql # not compatible
query III rowsort label-7213
SELECT * FROM tab1 AS cor0 WHERE 21 * col0 * - CAST ( NULL AS INTEGER ) = - 18 * + 91
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7214
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab0 WHERE NOT + - col2 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-7214
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab0 WHERE NOT + - col2 <= NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7215
SELECT + 87 DIV + 15 AS col1 FROM tab2
----
5
5
5

skipif mysql # not compatible
query I rowsort label-7215
SELECT + 87 / + 15 AS col1 FROM tab2
----
5
5
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7216
SELECT DISTINCT CAST( col1 AS SIGNED ) * - 71 AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-1491
-5751
-71

skipif mysql # not compatible
query I rowsort label-7216
SELECT DISTINCT CAST ( col1 AS INTEGER ) * - 71 AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-1491
-5751
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-7217
SELECT - - ( - COUNT( * ) ) col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7217
SELECT - - ( - COUNT ( * ) ) col0 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT - col2 - - + 12 AS col1 FROM tab2 cor0
----
-11
-28
-46

query I rowsort
SELECT ALL + - 23 + - 9 AS col1 FROM tab1 AS cor0
----
-32
-32
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-7220
SELECT ALL + - 23 DIV col1 FROM tab0 AS cor0
----
-1
-23
0

skipif mysql # not compatible
query I rowsort label-7220
SELECT ALL + - 23 / col1 FROM tab0 AS cor0
----
-1
-23
0

query I rowsort
SELECT 79 - - col2 AS col1 FROM tab0 cor0
----
126
178
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7222
SELECT - + ( + + 20 ) - CAST( - + SUM( - - col0 ) AS SIGNED ) col0 FROM tab2 AS cor0
----
165

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7222
SELECT - + ( + + 20 ) - CAST ( - + SUM ( - - col0 ) AS INTEGER ) col0 FROM tab2 AS cor0
----
165

query I rowsort
SELECT - + 67 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN NULL AND - col0
----

query I rowsort
SELECT - 28 * + + col0 * + col1 - + - col2 FROM tab0 AS cor0
----
-2617
-33973
-51146

onlyif mysql # aggregate syntax: 
query I rowsort label-7225
SELECT ALL COUNT( * ) - COUNT( * ) col2 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7225
SELECT ALL COUNT ( * ) - COUNT ( * ) col2 FROM tab2
----
0

query I rowsort
SELECT 32 + + - 20 + + - col2 FROM tab0
----
-35
-87
2

query I rowsort
SELECT 72 + + 94 AS col2 FROM tab0
----
166
166
166

query I rowsort
SELECT ALL ( 27 ) FROM tab2 AS cor0
----
27
27
27

query II rowsort
SELECT ALL col1, ( 0 ) FROM tab0
----
1
0
21
0
81
0

query III rowsort
SELECT * FROM tab0 WHERE NOT - - col2 * - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7231
SELECT + COUNT( + - 19 ) * + - COUNT( * ) * + - 69 AS col2 FROM tab0 AS cor0
----
621

skipif mysql # not compatible
query I rowsort label-7231
SELECT + COUNT ( + - 19 ) * + - COUNT ( * ) * + - 69 AS col2 FROM tab0 AS cor0
----
621

query I rowsort
SELECT ALL + col1 AS col2 FROM tab1 cor0 WHERE NOT col0 + - + ( col2 ) NOT BETWEEN + + col0 AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7233
SELECT ALL + + CAST( NULL AS DECIMAL ) * - - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7233
SELECT ALL + + CAST ( NULL AS REAL ) * - - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7234
SELECT + - COUNT( - - col1 ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7234
SELECT + - COUNT ( - - col1 ) FROM tab0 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7235
SELECT ALL - COUNT( * ) AS col2 FROM tab2 WHERE NOT - - col0 > + col2
----
0

skipif mysql # not compatible
query I rowsort label-7235
SELECT ALL - COUNT ( * ) AS col2 FROM tab2 WHERE NOT - - col0 > + col2
----
0

query II rowsort
SELECT ALL 15, col2 FROM tab1
----
15
59
15
68
15
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 + - col0 * - col2 + + + col1 col0, col1 FROM tab0
----
801
81
9701
1
978
21

query I rowsort
SELECT col1 * - + 15 + + - col1 FROM tab1
----
-224
-752
-80

query I rowsort
SELECT ALL + 75 * - col1 AS col0 FROM tab0
----
-1575
-6075
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 col1, - col1 FROM tab2
----
-46
-51
-64
-77
-75
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-7241
SELECT DISTINCT - 42 DIV col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7241
SELECT DISTINCT - 42 / col0 FROM tab2
----
0

query I rowsort
SELECT DISTINCT 35 * + - 81 + - col0 AS col0 FROM tab1
----
-2886
-2920
-2926

onlyif mysql # DIV for integer division: 
query I rowsort label-7243
SELECT DISTINCT col0 DIV + - col1 FROM tab0 AS cor0
----
-4
-97
0

skipif mysql # not compatible
query I rowsort label-7243
SELECT DISTINCT col0 / + - col1 FROM tab0 AS cor0
----
-4
-97
0

query I rowsort
SELECT 47 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

onlyif mysql # aggregate syntax: 
query I rowsort label-7245
SELECT DISTINCT + ( + COUNT( * ) ) * - + COUNT( * ) * 88 FROM tab1, tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7245
SELECT DISTINCT + ( + COUNT ( * ) ) * - + COUNT ( * ) * 88 FROM tab1, tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT ALL - col1 * - - 98 * + col0 AS col0 FROM tab1
----
-41650
-419146
-69972

onlyif mysql # aggregate syntax: 
query I rowsort label-7247
SELECT ALL + 3 * COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
27

skipif mysql # not compatible
query I rowsort label-7247
SELECT ALL + 3 * COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-7248
SELECT DISTINCT - col0 DIV + 96 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7248
SELECT DISTINCT - col0 / + 96 AS col2 FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 - - col2 col2 FROM tab1 AS cor0
----
21
54
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7250
SELECT SUM( col0 ), CAST( NULL AS SIGNED ) + + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
227
NULL

skipif mysql # not compatible
query II rowsort label-7250
SELECT SUM ( col0 ), CAST ( NULL AS INTEGER ) + + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
227
NULL

query I rowsort
SELECT ( - col1 ) AS col2 FROM tab1 WHERE NULL IS NULL
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7252
SELECT ALL + 36 - - + COUNT( * ) AS col1 FROM tab0
----
39

skipif mysql # not compatible
query I rowsort label-7252
SELECT ALL + 36 - - + COUNT ( * ) AS col1 FROM tab0
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7253
SELECT ALL 96 - - CAST( NULL AS SIGNED ) + + 72 + + ( + ( col2 ) ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7253
SELECT ALL 96 - - CAST ( NULL AS INTEGER ) + + 72 + + ( + ( col2 ) ) AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( + + col1 ) AS col2 FROM tab1
----
-14
-47
-5

query I rowsort
SELECT DISTINCT + col1 - + 33 + + col0 AS col1 FROM tab2
----
108
109
64

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7256
SELECT col0, - CAST( col1 AS SIGNED ) + - col2 FROM tab2
----
46
-74
64
-117
75
-125

skipif mysql # not compatible
query II rowsort label-7256
SELECT col0, - CAST ( col1 AS INTEGER ) + - col2 FROM tab2
----
46
-74
64
-117
75
-125

onlyif mysql # aggregate syntax: 
query I rowsort label-7257
SELECT ALL + MIN( + col1 ) FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-7257
SELECT ALL + MIN ( + col1 ) FROM tab1
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7258
SELECT CAST( NULL AS SIGNED ) * col0 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7258
SELECT CAST ( NULL AS INTEGER ) * col0 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 AS col2 FROM tab0 WHERE NOT 94 - + col0 IS NOT NULL AND NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7260
SELECT ALL - MIN( + + 40 ) FROM tab2 AS cor0
----
-40

skipif mysql # not compatible
query I rowsort label-7260
SELECT ALL - MIN ( + + 40 ) FROM tab2 AS cor0
----
-40

onlyif mysql # DIV for integer division: 
query II rowsort label-7261
SELECT - 9 AS col1, col1 DIV - col1 FROM tab2 AS cor0
----
-9
-1
-9
-1
-9
-1

skipif mysql # not compatible
query II rowsort label-7261
SELECT - 9 AS col1, col1 / - col1 FROM tab2 AS cor0
----
-9
-1
-9
-1
-9
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7262
SELECT ALL - 45 DIV - col1 + - col2 * - + 35 AS col0 FROM tab2 AS cor0
----
1400
2030
805

skipif mysql # not compatible
query I rowsort label-7262
SELECT ALL - 45 / - col1 + - col2 * - + 35 AS col0 FROM tab2 AS cor0
----
1400
2030
805

query I rowsort
SELECT - + ( - col1 ) * + col0 FROM tab0 AS cor0
----
1215
1827
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + 68 col2, - col2 FROM tab1 cor0
----
68
-59
68
-68
68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7265
SELECT ALL + CAST( - - col2 AS SIGNED ) FROM tab1 WHERE - + 73 * + col2 + 19 IS NULL
----

skipif mysql # not compatible
query I rowsort label-7265
SELECT ALL + CAST ( - - col2 AS INTEGER ) FROM tab1 WHERE - + 73 * + col2 + 19 IS NULL
----

query I rowsort
SELECT - col2 * - - 72 AS col0 FROM tab1
----
-4248
-4896
-6912

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + + col0 < col1
----
46
51
23
64
77
40

query I rowsort
SELECT ALL + col2 AS col1 FROM tab0 AS cor0 WHERE - 81 / - 58 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + 26 * - col1 * + col0 - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7270
SELECT DISTINCT - + col1 / + 25 + 24 * + col1 - col0 + + col0 * + + 8 - col0 + - col0 + - col2 + col2 + + col1 * + + 5 + + 64 * - + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7270
SELECT DISTINCT - + col1 / + 25 + 24 * + col1 - col0 + + col0 * + + 8 - col0 + - col0 + - col2 + col2 + + col1 * + + 5 + + 64 * - + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col2 = + 59 * 6 * - 26
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7272
SELECT DISTINCT - COUNT( ALL + 62 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7272
SELECT DISTINCT - COUNT ( ALL + 62 ) FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7273
SELECT SUM( DISTINCT - ( - col1 ) ) FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-7273
SELECT SUM ( DISTINCT - ( - col1 ) ) FROM tab1 AS cor0
----
66

query I rowsort
SELECT - col1 * + + col2 FROM tab2 AS cor0
----
-1173
-3080
-3886

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7275
SELECT + ( - col2 ) * + - 3 * CAST( + - col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-10092
-1587
-4800

skipif mysql # not compatible
query I rowsort label-7275
SELECT + ( - col2 ) * + - 3 * CAST ( + - col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-10092
-1587
-4800

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7276
SELECT - CAST( NULL AS SIGNED ) * + 19 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7276
SELECT - CAST ( NULL AS INTEGER ) * + 19 AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7277
SELECT + 52 + - - 54 + - SUM( + - col1 ) + - 47 AS col1 FROM tab0 AS cor0
----
162

skipif mysql # not compatible
query I rowsort label-7277
SELECT + 52 + - - 54 + - SUM ( + - col1 ) + - 47 AS col1 FROM tab0 AS cor0
----
162

onlyif mysql # DIV for integer division: 
query I rowsort label-7278
SELECT ALL + 95 DIV col0 AS col1 FROM tab2 cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-7278
SELECT ALL + 95 / col0 AS col1 FROM tab2 cor0
----
1
1
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7279
SELECT - - COUNT( * ) + CAST( - AVG ( DISTINCT - col2 ) AS SIGNED ) AS col2 FROM tab2 cor0
----
43

skipif mysql # not compatible
query I rowsort label-7279
SELECT - - COUNT ( * ) + CAST ( - AVG ( DISTINCT - col2 ) AS INTEGER ) AS col2 FROM tab2 cor0
----
43

query I rowsort
SELECT + + col2 + 37 AS col2 FROM tab1 AS cor0
----
105
133
96

query I rowsort
SELECT ALL + col1 + + 34 AS col0 FROM tab0
----
115
35
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7282
SELECT - col1 / CAST( ( + CAST( NULL AS SIGNED ) ) AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7282
SELECT - col1 / CAST ( ( + CAST ( NULL AS INTEGER ) ) AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL = + ( + + 41 )
----

query I rowsort
SELECT + col2 * + + col0 FROM tab0 AS cor0
----
705
870
9603

query I rowsort
SELECT ALL 5 + + ( + col2 ) FROM tab1 AS cor0
----
101
64
73

query I rowsort
SELECT - - col0 - + col2 * 28 AS col2 FROM tab2 cor0
----
-1056
-1549
-598

query I rowsort
SELECT ALL - 2 * + 70 + 80 + + col2 AS col2 FROM tab1 AS cor0
----
-1
36
8

onlyif mysql # aggregate syntax: 
query I rowsort label-7288
SELECT AVG ( col1 ) + + COUNT( DISTINCT + - 31 ) + - - 95 / + 40 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7288
SELECT AVG ( col1 ) + + COUNT ( DISTINCT + - 31 ) + - - 95 / + 40 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7289
SELECT - ( + - COUNT( * ) ) - + + 18 FROM tab2 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-7289
SELECT - ( + - COUNT ( * ) ) - + + 18 FROM tab2 AS cor0
----
-15

query I rowsort
SELECT + - col2 + ( col1 ) * - 74 AS col2 FROM tab0 AS cor0
----
-1564
-173
-6041

onlyif mysql # aggregate syntax: 
query I rowsort label-7291
SELECT DISTINCT + ( + 48 ) - COUNT( * ) col2 FROM tab1 AS cor0
----
45

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7291
SELECT DISTINCT + ( + 48 ) - COUNT ( * ) col2 FROM tab1 AS cor0
----
45

query I rowsort
SELECT 90 * col0 * + col1 FROM tab2
----
211140
443520
452250

query I rowsort
SELECT ( col0 ) * col2 AS col0 FROM tab2
----
1058
2560
4350

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + ( + col1 ) IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT 37 >= NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + + 71 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL + col2 * + col1 AS col1, + 45 FROM tab1
----
1344
45
295
45
3196
45

query II rowsort
SELECT DISTINCT ( - ( + - col0 ) ) AS col2, + col1 * 63 FROM tab2 AS cor0
----
46
3213
64
4851
75
4221

query I rowsort
SELECT - col1 * + 55 FROM tab0
----
-1155
-4455
-55

query I rowsort
SELECT DISTINCT - 73 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7301
SELECT ALL * FROM tab1 cor0 WHERE NOT + 26 * 67 * + col2 + + + col1 * + CAST( NULL AS SIGNED ) > - - col2 + - col2
----

skipif mysql # not compatible
query III rowsort label-7301
SELECT ALL * FROM tab1 cor0 WHERE NOT + 26 * 67 * + col2 + + + col1 * + CAST ( NULL AS INTEGER ) > - - col2 + - col2
----

query I rowsort
SELECT ALL 6 + col2 + col1 + - - col1 FROM tab1 AS cor0
----
130
168
75

query I rowsort
SELECT + col0 + + - ( - - col2 ) + + 6 AS col2 FROM tab2 AS cor0
----
23
29
30

query I rowsort
SELECT ALL - ( + 9 ) FROM tab0
----
-9
-9
-9

query I rowsort
SELECT col0 + col2 * - 64 AS col1 FROM tab2
----
-1426
-2496
-3637

query I rowsort
SELECT 30 + - - col2 AS col0 FROM tab0
----
129
40
77

onlyif mysql # DIV for integer division: 
query I rowsort label-7307
SELECT col0 DIV + 83 FROM tab0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-7307
SELECT col0 / + 83 FROM tab0
----
0
1
1

query I rowsort
SELECT - - 64 FROM tab0 WHERE - 1 + + col0 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7309
SELECT ALL + 92 + - - COUNT( * ) AS col0 FROM tab0
----
95

skipif mysql # not compatible
query I rowsort label-7309
SELECT ALL + 92 + - - COUNT ( * ) AS col0 FROM tab0
----
95

query I rowsort
SELECT ( ( + + col2 ) ) FROM tab2
----
23
40
58

onlyif mysql # DIV for integer division: 
query I rowsort label-7311
SELECT DISTINCT - 84 + col2 DIV 56 FROM tab1 AS cor0
----
-83

skipif mysql # not compatible
query I rowsort label-7311
SELECT DISTINCT - 84 + col2 / 56 FROM tab1 AS cor0
----
-83

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - ( + - 49 ) IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN col0 AND NULL
----

query I rowsort
SELECT col2 + 23 AS col1 FROM tab1
----
119
82
91

query I rowsort
SELECT col0 + col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
174
194
30

query I rowsort
SELECT ALL - - 87 + + col0 AS col0 FROM tab2 AS cor0
----
133
151
162

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7317
SELECT * FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) * - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7317
SELECT * FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) * - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-7318
SELECT DISTINCT + col2 DIV - + 80 AS col2 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-7318
SELECT DISTINCT + col2 / - + 80 AS col2 FROM tab2 cor0
----
0

query II rowsort
SELECT ALL + col2, + col2 + - + col1 FROM tab1 AS cor0
----
59
54
68
21
96
82

query II rowsort
SELECT + + col2 AS col0, col1 AS col2 FROM tab1 cor0
----
59
5
68
47
96
14

query I rowsort
SELECT ALL + ( + - 10 ) AS col2 FROM tab2
----
-10
-10
-10

onlyif mysql # aggregate syntax: 
query II rowsort label-7322
SELECT 42, + 11 * + 24 + + COUNT( * ) AS col1 FROM tab2
----
42
267

skipif mysql # not compatible
query II rowsort label-7322
SELECT 42, + 11 * + 24 + + COUNT ( * ) AS col1 FROM tab2
----
42
267

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 11 col1, + ( - - col1 ) AS col1 FROM tab2
----
11
51
11
67
11
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7324
SELECT ( + ( COUNT( * ) ) ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7324
SELECT ( + ( COUNT ( * ) ) ) AS col0 FROM tab2
----
3

query I rowsort
SELECT DISTINCT - ( - - 50 ) FROM tab1
----
-50

query I rowsort
SELECT DISTINCT - col0 * + ( col1 ) AS col0 FROM tab1
----
-425
-4277
-714

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7327
SELECT DISTINCT 4 DIV - - COUNT( * ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-7327
SELECT DISTINCT 4 / - - COUNT ( * ) FROM tab2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7328
SELECT + 31 - + CAST( - - COUNT( col2 ) AS SIGNED ) FROM tab0 WHERE NOT ( ( NULL ) IS NOT NULL )
----
28

skipif mysql # not compatible
query I rowsort label-7328
SELECT + 31 - + CAST ( - - COUNT ( col2 ) AS INTEGER ) FROM tab0 WHERE NOT ( ( NULL ) IS NOT NULL )
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-7329
SELECT DISTINCT - col0 DIV - 42 AS col1 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-7329
SELECT DISTINCT - col0 / - 42 AS col1 FROM tab2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7330
SELECT DISTINCT - + ( - CAST( NULL AS SIGNED ) ) + + 21 + col1 FROM tab0 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-7330
SELECT DISTINCT - + ( - CAST ( NULL AS INTEGER ) ) + + 21 + col1 FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 75 col2 FROM tab1 cor0
----
-75
-75
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-7332
SELECT + 85 * col1 DIV col1 FROM tab0 AS cor0
----
85
85
85

skipif mysql # not compatible
query I rowsort label-7332
SELECT + 85 * col1 / col1 FROM tab0 AS cor0
----
85
85
85

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 + - 94 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + + col1 col1 FROM tab0
----
100
128
31

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 <= NULL
----

query I rowsort
SELECT DISTINCT 75 + - + ( - + col0 ) + + 66 AS col2 FROM tab2 AS cor0
----
187
205
216

onlyif mysql # aggregate syntax: 
query I rowsort label-7337
SELECT - COUNT( - col1 ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7337
SELECT - COUNT ( - col1 ) FROM tab0 cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7338
SELECT * FROM tab1 AS cor0 WHERE - CAST( NULL AS SIGNED ) + - col2 - 41 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7338
SELECT * FROM tab1 AS cor0 WHERE - CAST ( NULL AS INTEGER ) + - col2 - 41 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7339
SELECT - + MIN( - col2 ), - ( - + COUNT( * ) ) * + + 7 AS col1 FROM tab2 AS cor0
----
58
21

skipif mysql # not compatible
query II rowsort label-7339
SELECT - + MIN ( - col2 ), - ( - + COUNT ( * ) ) * + + 7 AS col1 FROM tab2 AS cor0
----
58
21

query I rowsort
SELECT DISTINCT 27 + - - col1 + 47 FROM tab0 AS cor0
----
155
75
95

onlyif mysql # aggregate syntax: 
query I rowsort label-7341
SELECT DISTINCT 31 + COUNT( * ) AS col0 FROM tab0 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-7341
SELECT DISTINCT 31 + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-7342
SELECT DISTINCT MIN( + - 50 ) * COUNT( * ) AS col2 FROM tab2 AS cor0
----
-150

skipif mysql # not compatible
query I rowsort label-7342
SELECT DISTINCT MIN ( + - 50 ) * COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-150

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( NULL ) NOT BETWEEN 31 AND - col2 * 13 / + col2 + - ( 52 ) * 18
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - + col2 ) col2 FROM tab1
----
59
68
96

query II rowsort
SELECT - 19, 6 AS col0 FROM tab2
----
-19
6
-19
6
-19
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 3 AS col1, + ( col2 ) col1 FROM tab1
----
3
59
3
68
3
96

query II rowsort
SELECT DISTINCT col2, - 65 + - col2 + + col1 + + col1 AS col1 FROM tab1
----
59
-114
68
-39
96
-133

onlyif mysql # aggregate syntax: 
query I rowsort label-7348
SELECT ALL - ( + + ( + - MAX( DISTINCT col1 ) ) ) FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-7348
SELECT ALL - ( + + ( + - MAX ( DISTINCT col1 ) ) ) FROM tab1
----
47

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT IN ( + + col0, 64 )
----

query I rowsort
SELECT ALL - col0 + + + col2 FROM tab0 WHERE NOT NULL IN ( - - col2 + + 18 - - col0 / + - 38, - 77, - col2 * - col2 )
----

query III rowsort
SELECT * FROM tab2 WHERE - col0 + - 21 + - 4 / + 94 IS NULL
----

query I rowsort
SELECT - 65 * + + 39 + - col1 * - - col1 FROM tab2
----
-5136
-7024
-8464

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7353
SELECT - 49 + - + MIN( - CAST( + 11 AS SIGNED ) ) * ( COUNT( * ) ) FROM tab0
----
-16

skipif mysql # not compatible
query I rowsort label-7353
SELECT - 49 + - + MIN ( - CAST ( + 11 AS INTEGER ) ) * ( COUNT ( * ) ) FROM tab0
----
-16

query II rowsort
SELECT DISTINCT - + col0 * + + col2 AS col1, 98 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - + 97 + - col1 FROM tab1 AS cor0
----
-102
-111
-144

query I rowsort
SELECT + 97 + + - col2 AS col1 FROM tab0 AS cor0
----
-2
50
87

query I rowsort
SELECT 53 FROM tab0 AS cor0 WHERE NULL IS NULL
----
53
53
53

query I rowsort
SELECT DISTINCT + - col0 + - ( + + 98 ) FROM tab1 AS cor0
----
-149
-183
-189

onlyif mysql # aggregate syntax: 
query I rowsort label-7359
SELECT + MIN( DISTINCT - + col1 ) FROM tab2 AS cor0 WHERE NULL > 39
----
NULL

skipif mysql # not compatible
query I rowsort label-7359
SELECT + MIN ( DISTINCT - + col1 ) FROM tab2 AS cor0 WHERE NULL > 39
----
NULL

query II rowsort
SELECT ALL + 49, + 98 + - 52 FROM tab0 cor0 WHERE 52 IS NULL
----

query I rowsort
SELECT ( 4 ) * - 44 FROM tab0
----
-176
-176
-176

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7362
SELECT * FROM tab0 WHERE - 70 * - + col0 BETWEEN NULL AND - + CAST( NULL AS DECIMAL ) * + col2
----

skipif mysql # not compatible
query III rowsort label-7362
SELECT * FROM tab0 WHERE - 70 * - + col0 BETWEEN NULL AND - + CAST ( NULL AS REAL ) * + col2
----

query IIIIII rowsort
SELECT * FROM tab1 cor0 LEFT OUTER JOIN tab0 cor1 ON NOT NULL IS NULL
----
18 values hashing to d882cc47988b8673bd5cc0da3b69bcc6

onlyif mysql # aggregate syntax: 
query I rowsort label-7364
SELECT DISTINCT COUNT( * ) - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-7364
SELECT DISTINCT COUNT ( * ) - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
0

query I rowsort
SELECT - + 96 * - col1 FROM tab0 AS cor0
----
2016
7776
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7366
SELECT + COUNT( * ) * - 10 FROM tab1 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-7366
SELECT + COUNT ( * ) * - 10 FROM tab1 AS cor0
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7367
SELECT + col0 * - CAST( col2 AS SIGNED ) FROM tab1 AS cor0
----
-4896
-5015
-6188

skipif mysql # not compatible
query I rowsort label-7367
SELECT + col0 * - CAST ( col2 AS INTEGER ) FROM tab1 AS cor0
----
-4896
-5015
-6188

query I rowsort
SELECT + + col0 * col0 AS col1 FROM tab0 cor0
----
225
7569
9409

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7369
SELECT - COUNT( * ) DIV - + ( COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7369
SELECT - COUNT ( * ) / - + ( COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7370
SELECT ALL - CAST( - - 80 AS SIGNED ) FROM tab0 AS cor0
----
-80
-80
-80

skipif mysql # not compatible
query I rowsort label-7370
SELECT ALL - CAST ( - - 80 AS INTEGER ) FROM tab0 AS cor0
----
-80
-80
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7371
SELECT + col1 * + 26 + - CAST( - - col1 AS SIGNED ) FROM tab2 AS cor0
----
1275
1675
1925

skipif mysql # not compatible
query I rowsort label-7371
SELECT + col1 * + 26 + - CAST ( - - col1 AS INTEGER ) FROM tab2 AS cor0
----
1275
1675
1925

query I rowsort
SELECT ALL + 81 * + 33 AS col1 FROM tab0
----
2673
2673
2673

query I rowsort
SELECT ( + - ( 16 ) ) FROM tab0
----
-16
-16
-16

query I rowsort
SELECT + col0 * - 81 AS col1 FROM tab2
----
-3726
-5184
-6075

onlyif mysql # DIV for integer division: 
query I rowsort label-7375
SELECT DISTINCT 1 DIV col1 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7375
SELECT DISTINCT 1 / col1 AS col2 FROM tab1
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( col2 ) > col1 / col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col1 * + + col1 FROM tab0 AS cor0
----
-1
-441
-6561

query I rowsort
SELECT DISTINCT col2 * + col2 * + 46 FROM tab2 cor0
----
154744
24334
73600

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7379
SELECT DISTINCT CAST( - col2 AS SIGNED ) * - col0 AS col2 FROM tab1
----
4896
5015
6188

skipif mysql # not compatible
query I rowsort label-7379
SELECT DISTINCT CAST ( - col2 AS INTEGER ) * - col0 AS col2 FROM tab1
----
4896
5015
6188

query I rowsort
SELECT col1 * + 9 FROM tab0
----
189
729
9

query I rowsort
SELECT ALL + 34 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

query I rowsort
SELECT + col1 * - 37 + + col1 FROM tab0 AS cor0
----
-2916
-36
-756

query I rowsort
SELECT DISTINCT + - col2 + + col0 FROM tab1 cor0
----
-45
23
26

query I rowsort
SELECT DISTINCT - - 24 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
24

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND + 44
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7386
SELECT + 92 + col1 DIV - col0 FROM tab2
----
91
91
92

skipif mysql # not compatible
query I rowsort label-7386
SELECT + 92 + col1 / - col0 FROM tab2
----
91
91
92

query I rowsort
SELECT + ( 55 ) FROM tab1
----
55
55
55

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col2 = + 97 * + col2 * 77 * + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 53 * + - 28 * + col2 AS col0 FROM tab1
----
-100912
-142464
-87556

query II rowsort
SELECT 94 * + col1, + col2 AS col0 FROM tab1
----
1316
96
4418
68
470
59

onlyif mysql # DIV for integer division: 
query II rowsort label-7391
SELECT - col2 DIV 88 AS col0, 16 FROM tab1
----
-1
16
0
16
0
16

skipif mysql # not compatible
query II rowsort label-7391
SELECT - col2 / 88 AS col0, 16 FROM tab1
----
-1
16
0
16
0
16

onlyif mysql # aggregate syntax: 
query I rowsort label-7392
SELECT 2 * - + COUNT( * ) FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-7392
SELECT 2 * - + COUNT ( * ) FROM tab2
----
-6

query I rowsort
SELECT DISTINCT + 18 + + 97 FROM tab0 cor0
----
115

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col2 FROM tab1 AS cor0 WHERE ( NULL ) <> col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7395
SELECT ALL + + COUNT( + col1 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7395
SELECT ALL + + COUNT ( + col1 ) AS col1 FROM tab0 AS cor0
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <> - col0
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( NULL <> - col1 )
----

query I rowsort
SELECT + + col0 * 25 AS col0 FROM tab2 AS cor0
----
1150
1600
1875

query I rowsort
SELECT - ( 31 ) FROM tab1
----
-31
-31
-31

query I rowsort
SELECT DISTINCT col2 * ( col0 ) FROM tab2 WHERE NOT - 99 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - + 58 ) * + 11 col1 FROM tab1 WHERE + col0 IS NOT NULL
----
638

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7402
SELECT DISTINCT CAST( MAX( DISTINCT - col2 ) AS SIGNED ) AS col0 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-7402
SELECT DISTINCT CAST ( MAX ( DISTINCT - col2 ) AS INTEGER ) AS col0 FROM tab0
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7403
SELECT DISTINCT * FROM tab1 WHERE + 98 NOT BETWEEN 55 + + 89 * + + col2 + + CAST( col0 AS SIGNED ) AND - 32
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7403
SELECT DISTINCT * FROM tab1 WHERE + 98 NOT BETWEEN 55 + + 89 * + + col2 + + CAST ( col0 AS INTEGER ) AND - 32
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 38 * col0 FROM tab0
----
-3306
-3686
-570

query III rowsort
SELECT ALL * FROM tab2 WHERE + col0 >= col1
----
75
67
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7406
SELECT ALL + COUNT( - col2 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7406
SELECT ALL + COUNT ( - col2 ) FROM tab0 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 3 * - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7408
SELECT 47 * - - MAX( ALL - + 30 ) * 58 + - MAX( DISTINCT + col0 ) FROM tab2
----
-81855

skipif mysql # not compatible
query I rowsort label-7408
SELECT 47 * - - MAX ( ALL - + 30 ) * 58 + - MAX ( DISTINCT + col0 ) FROM tab2
----
-81855

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 <> ( - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - + ( - + ( - + 26 ) ) AS col0 FROM tab1 AS cor0
----
-26
-26
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-7411
SELECT DISTINCT + MIN( + - col2 ) + + COUNT( * ) FROM tab0 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-7411
SELECT DISTINCT + MIN ( + - col2 ) + + COUNT ( * ) FROM tab0 AS cor0
----
-96

query I rowsort
SELECT DISTINCT + 52 * - - col0 + + + col0 AS col2 FROM tab1 AS cor0
----
2703
4505
4823

query I rowsort
SELECT DISTINCT + col0 * col1 + - col2 * + col2 FROM tab0 AS cor0
----
-9704
-994
1727

query I rowsort
SELECT + col0 - + 45 AS col2 FROM tab1 AS cor0
----
40
46
6

onlyif mysql # aggregate syntax: 
query II rowsort label-7415
SELECT DISTINCT COUNT( * ), + 66 AS col0 FROM tab0
----
3
66

skipif mysql # not compatible
query II rowsort label-7415
SELECT DISTINCT COUNT ( * ), + 66 AS col0 FROM tab0
----
3
66

query II rowsort
SELECT ALL + col2, 30 AS col0 FROM tab2
----
23
30
40
30
58
30

query I rowsort
SELECT DISTINCT ( 64 ) FROM tab1
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-7418
SELECT COUNT( * ) + + - COUNT( * ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7418
SELECT COUNT ( * ) + + - COUNT ( * ) AS col0 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7419
SELECT ALL 61, CAST( NULL AS SIGNED ) * + - col2 + - 10 AS col0 FROM tab0 AS cor0
----
61
NULL
61
NULL
61
NULL

skipif mysql # not compatible
query II rowsort label-7419
SELECT ALL 61, CAST ( NULL AS INTEGER ) * + - col2 + - 10 AS col0 FROM tab0 AS cor0
----
61
NULL
61
NULL
61
NULL

query II rowsort
SELECT col0 AS col1, 44 * col0 AS col2 FROM tab1 cor0
----
51
2244
85
3740
91
4004

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 / - - col1 < NULL
----

query II rowsort
SELECT + 3 AS col1, + col0 AS col0 FROM tab2 AS cor0
----
3
46
3
64
3
75

query I rowsort
SELECT ( + + 61 ) AS col2 FROM tab1 cor0
----
61
61
61

onlyif mysql # DIV for integer division: 
query I rowsort label-7424
SELECT DISTINCT + 88 DIV 28 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7424
SELECT DISTINCT + 88 / 28 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7425
SELECT 60 * + + COUNT( + col0 ) AS col2 FROM tab2
----
180

skipif mysql # not compatible
query I rowsort label-7425
SELECT 60 * + + COUNT ( + col0 ) AS col2 FROM tab2
----
180

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL > - + 97 + 55
----

query I rowsort
SELECT 82 * - col1 AS col1 FROM tab2 AS cor0
----
-4182
-5494
-6314

query I rowsort
SELECT + 11 * + col1 * - 27 + + col1 FROM tab0 AS cor0
----
-23976
-296
-6216

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7429
SELECT - CAST( NULL AS SIGNED ) * ( SUM( + + col2 ) ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7429
SELECT - CAST ( NULL AS INTEGER ) * ( SUM ( + + col2 ) ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT col1 * + - col1 AS col1 FROM tab1 AS cor0
----
-196
-2209
-25

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 62 <= + col0
----

query I rowsort
SELECT col0 * - - 30 FROM tab0
----
2610
2910
450

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT - col2 - - ( col1 ) IS NULL )
----

query I rowsort
SELECT col1 * + - 34 AS col0 FROM tab2
----
-1734
-2278
-2618

query I rowsort
SELECT ALL - + col2 AS col2 FROM tab0 AS cor0 WHERE NOT - col2 > NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 12 * - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 * - col0 + - 29 AS col1 FROM tab2 AS cor0 WHERE NULL NOT IN ( col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + col1 * + + col0 + col1 col2 FROM tab0 AS cor0
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query II rowsort label-7439
SELECT DISTINCT + COUNT( * ), - 88 AS col0 FROM tab2 AS cor0
----
3
-88

skipif mysql # not compatible
query II rowsort label-7439
SELECT DISTINCT + COUNT ( * ), - 88 AS col0 FROM tab2 AS cor0
----
3
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-7440
SELECT - MAX( ( col0 ) ) * + 60 + + COUNT( * ) FROM tab2
----
-4497

skipif mysql # not compatible
query I rowsort label-7440
SELECT - MAX ( ( col0 ) ) * + 60 + + COUNT ( * ) FROM tab2
----
-4497

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 85 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7442
SELECT + SUM( ALL CAST( col2 AS SIGNED ) ) AS col1 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-7442
SELECT + SUM ( ALL CAST ( col2 AS INTEGER ) ) AS col1 FROM tab0
----
156

query III rowsort
SELECT * FROM tab0 WHERE ( 96 * + col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + ( 27 ) * - col1 FROM tab2
----
-1377
-1809
-2079

query I rowsort
SELECT col2 * + 68 FROM tab1
----
4012
4624
6528

query I rowsort
SELECT + 23 - + ( 99 ) AS col0 FROM tab1
----
-76
-76
-76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 74 + + col0 col2 FROM tab2
----
120
138
149

query I rowsort
SELECT DISTINCT 12 - col2 AS col0 FROM tab1
----
-47
-56
-84

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7449
SELECT 16 AS col0 FROM tab2 WHERE NOT NULL > CAST( col1 AS DECIMAL ) + - col0
----

skipif mysql # not compatible
query I rowsort label-7449
SELECT 16 AS col0 FROM tab2 WHERE NOT NULL > CAST ( col1 AS REAL ) + - col0
----

query III rowsort
SELECT * FROM tab0 WHERE NOT 6 >= ( - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7451
SELECT col0 + - col2 * CAST( - col0 * - CAST( + col2 AS SIGNED ) - col0 AS SIGNED ) AS col0 FROM tab0
----
-32415
-7743
-940997

skipif mysql # not compatible
query I rowsort label-7451
SELECT col0 + - col2 * CAST ( - col0 * - CAST ( + col2 AS INTEGER ) - col0 AS INTEGER ) AS col0 FROM tab0
----
-32415
-7743
-940997

onlyif mysql # aggregate syntax: 
query I rowsort label-7452
SELECT DISTINCT COUNT( * ) * + 76 FROM tab0
----
228

skipif mysql # not compatible
query I rowsort label-7452
SELECT DISTINCT COUNT ( * ) * + 76 FROM tab0
----
228

onlyif mysql # aggregate syntax: 
query I rowsort label-7453
SELECT MIN( ALL + col2 ) * 87 FROM tab1
----
5133

skipif mysql # not compatible
query I rowsort label-7453
SELECT MIN ( ALL + col2 ) * 87 FROM tab1
----
5133

query III rowsort
SELECT ALL * FROM tab2 WHERE ( + 13 * - 82 ) NOT BETWEEN 19 / 72 AND ( - 43 * col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col2 * 26 FROM tab1
----
1534
1768
2496

query I rowsort
SELECT 60 * + col0 AS col2 FROM tab2
----
2760
3840
4500

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7457
SELECT * FROM tab0 WHERE + 70 <> ( + CAST( NULL AS SIGNED ) + - col2 )
----

skipif mysql # not compatible
query III rowsort label-7457
SELECT * FROM tab0 WHERE + 70 <> ( + CAST ( NULL AS INTEGER ) + - col2 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - ( + ( 17 ) ) ) BETWEEN ( col0 ) AND - 72
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 72 + - 70 FROM tab2
----
2
2
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7460
SELECT ALL - col2 * CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7460
SELECT ALL - col2 * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 FROM tab0 WHERE NULL NOT BETWEEN ( - col1 ) AND NULL
----

query I rowsort
SELECT ALL - ( 10 ) - 25 FROM tab2
----
-35
-35
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-7463
SELECT col2 + 35 DIV - col0 AS col1 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-7463
SELECT col2 + 35 / - col0 AS col1 FROM tab2
----
23
40
58

onlyif mysql # DIV for integer division: 
query I rowsort label-7464
SELECT 96 DIV col0 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7464
SELECT 96 / col0 FROM tab1
----
1
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7465
SELECT 33 DIV + 99 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7465
SELECT 33 / + 99 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7466
SELECT DISTINCT - 42 + COUNT( * ) AS col2 FROM tab1
----
-39

skipif mysql # not compatible
query I rowsort label-7466
SELECT DISTINCT - 42 + COUNT ( * ) AS col2 FROM tab1
----
-39

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 / col2 + 55 * col1 > + col2 + + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7468
SELECT COUNT( + col2 ) FROM tab2 AS cor0 WHERE NULL IN ( col0 * 30 )
----
0

skipif mysql # not compatible
query I rowsort label-7468
SELECT COUNT ( + col2 ) FROM tab2 AS cor0 WHERE NULL IN ( col0 * 30 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7469
SELECT DISTINCT + 43 + - MIN( 75 ) FROM tab1 AS cor0
----
-32

skipif mysql # not compatible
query I rowsort label-7469
SELECT DISTINCT + 43 + - MIN ( 75 ) FROM tab1 AS cor0
----
-32

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 < ( - col1 * - 71 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7471
SELECT - MAX( - 10 ) - + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT 82 NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7471
SELECT - MAX ( - 10 ) - + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT 82 NOT BETWEEN NULL AND NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7472
SELECT DISTINCT COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0
----
9

skipif mysql # not compatible
query I rowsort label-7472
SELECT DISTINCT COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7473
SELECT MAX( DISTINCT + col0 ) FROM tab0 AS cor0 WHERE NOT + 14 * col2 - + CAST( NULL AS SIGNED ) * col0 NOT BETWEEN NULL AND - 27
----
NULL

skipif mysql # not compatible
query I rowsort label-7473
SELECT MAX ( DISTINCT + col0 ) FROM tab0 AS cor0 WHERE NOT + 14 * col2 - + CAST ( NULL AS INTEGER ) * col0 NOT BETWEEN NULL AND - 27
----
NULL

query I rowsort
SELECT DISTINCT + col1 * + col0 AS col2 FROM tab0 AS cor0 WHERE col2 + ( col1 + col2 ) * col2 BETWEEN NULL AND - col2 * col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 col2 FROM tab1 AS cor0 WHERE NOT NULL < + 20 / 11 - + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7476
SELECT ALL + MIN( ALL - col0 ) FROM tab2 cor0
----
-75

skipif mysql # not compatible
query I rowsort label-7476
SELECT ALL + MIN ( ALL - col0 ) FROM tab2 cor0
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7477
SELECT DISTINCT - CAST( + 43 AS SIGNED ) FROM tab0 AS cor0
----
-43

skipif mysql # not compatible
query I rowsort label-7477
SELECT DISTINCT - CAST ( + 43 AS INTEGER ) FROM tab0 AS cor0
----
-43

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 - - 61 NOT BETWEEN - ( + col1 ) + col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7479
SELECT + SUM( DISTINCT col1 ) FROM tab0 AS cor0 WHERE NOT + 0 * col1 + 85 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7479
SELECT + SUM ( DISTINCT col1 ) FROM tab0 AS cor0 WHERE NOT + 0 * col1 + 85 IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT ( 70 ) AS col1 FROM tab0 AS cor0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-7481
SELECT ( COUNT( ALL + col1 ) ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7481
SELECT ( COUNT ( ALL + col1 ) ) FROM tab0 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7482
SELECT + - COUNT( ALL + 45 ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7482
SELECT + - COUNT ( ALL + 45 ) AS col1 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7483
SELECT + COUNT( * ) * 52 AS col2 FROM tab1 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-7483
SELECT + COUNT ( * ) * 52 AS col2 FROM tab1 AS cor0
----
156

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 6 col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 - + 74 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7486
SELECT ( + col1 ) DIV col0 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7486
SELECT ( + col1 ) / col0 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT - col2 FROM tab1 WHERE NOT col1 * - col2 - - 41 <> NULL
----

query I rowsort
SELECT DISTINCT - col0 * 30 FROM tab0 WHERE + 86 * + col2 IS NOT NULL
----
-2610
-2910
-450

onlyif mysql # aggregate syntax: 
query I rowsort label-7489
SELECT ALL - MAX( DISTINCT - col1 ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-7489
SELECT ALL - MAX ( DISTINCT - col1 ) AS col0 FROM tab0
----
1

query I rowsort
SELECT ALL + ( - 23 ) AS col0 FROM tab2
----
-23
-23
-23

query I rowsort
SELECT ALL col0 * + col1 AS col0 FROM tab1 WHERE + col0 + - col1 IS NULL
----

query I rowsort
SELECT DISTINCT 18 + - col0 FROM tab1
----
-33
-67
-73

query I rowsort
SELECT 11 + col1 FROM tab2 WHERE NOT NULL BETWEEN - col1 AND ( - 10 - - col0 )
----

query I rowsort
SELECT + col0 AS col2 FROM tab0 WHERE 29 BETWEEN + col1 / - col0 + ( - 53 + 12 ) AND col2
----
15
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7495
SELECT DISTINCT MIN( - 42 ) AS col1 FROM tab1
----
-42

skipif mysql # not compatible
query I rowsort label-7495
SELECT DISTINCT MIN ( - 42 ) AS col1 FROM tab1
----
-42

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7496
SELECT + 74 FROM tab2 AS cor0 WHERE ( col2 - - col1 ) NOT BETWEEN NULL AND 34 * CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-7496
SELECT + 74 FROM tab2 AS cor0 WHERE ( col2 - - col1 ) NOT BETWEEN NULL AND 34 * CAST ( NULL AS REAL )
----

query I rowsort
SELECT - + 51 + - 40 * + col2 FROM tab0 AS cor0
----
-1931
-4011
-451

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 92 * 52 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-7499
SELECT + - col0 * - col2 + + col0 DIV col2 AS col0 FROM tab2 AS cor0
----
1060
2561
4351

skipif mysql # not compatible
query I rowsort label-7499
SELECT + - col0 * - col2 + + col0 / col2 AS col0 FROM tab2 AS cor0
----
1060
2561
4351

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 = ( NULL )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - - col2 >= - 28
----

query I rowsort
SELECT 85 * 36 * + col0 + - 29 FROM tab2
----
140731
195811
229471

onlyif mysql # aggregate syntax: 
query I rowsort label-7503
SELECT DISTINCT + - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-7503
SELECT DISTINCT + - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

query IIIIII rowsort
SELECT * FROM tab0, tab0 cor0 WHERE NOT 20 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7505
SELECT - + COUNT( * ) + 5 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-4

skipif mysql # not compatible
query I rowsort label-7505
SELECT - + COUNT ( * ) + 5 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-4

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - + col0 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE ( ( + 38 ) BETWEEN ( col2 ) AND ( col0 ) )
----
46
51
23

query I rowsort
SELECT ALL - 97 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-97
-97
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7509
SELECT DISTINCT ( + - col1 ) + - CAST( NULL AS SIGNED ) / + col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7509
SELECT DISTINCT ( + - col1 ) + - CAST ( NULL AS INTEGER ) / + col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7510
SELECT - MIN( 37 ) FROM tab2 AS cor0
----
-37

skipif mysql # not compatible
query I rowsort label-7510
SELECT - MIN ( 37 ) FROM tab2 AS cor0
----
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7511
SELECT DISTINCT - MIN( DISTINCT col1 ) DIV - 57 FROM tab0 AS cor0 WHERE ( col2 * + 21 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7511
SELECT DISTINCT - MIN ( DISTINCT col1 ) / - 57 FROM tab0 AS cor0 WHERE ( col2 * + 21 ) IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - ( - col2 ) * col0 BETWEEN ( ( 12 ) * 53 ) AND NULL OR NOT - col1 IS NOT NULL
----

query I rowsort
SELECT col2 - + + col1 FROM tab2 AS cor0
----
-28
-37
-9

query I rowsort
SELECT DISTINCT + + col2 + - 23 AS col2 FROM tab2 AS cor0
----
0
17
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7515
SELECT + CAST( NULL AS SIGNED ) * - + 78 - - - 21 - col2 * + col0 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-7515
SELECT + CAST ( NULL AS INTEGER ) * - + 78 - - - 21 - col2 * + col0 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7516
SELECT DISTINCT 57 + - + MAX( + 93 ) AS col0 FROM tab2 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-7516
SELECT DISTINCT 57 + - + MAX ( + 93 ) AS col0 FROM tab2 AS cor0
----
-36

query I rowsort
SELECT DISTINCT - - col2 * 68 AS col1 FROM tab1 cor0 WHERE NULL < + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7518
SELECT DISTINCT SUM( + - col0 ) - 11 FROM tab0
----
-210

skipif mysql # not compatible
query I rowsort label-7518
SELECT DISTINCT SUM ( + - col0 ) - 11 FROM tab0
----
-210

query I rowsort
SELECT DISTINCT - col1 * - + 54 * + + 64 * - col2 - 87 * 2 AS col0 FROM tab2
----
-10644654
-13430190
-4054062

query I rowsort
SELECT ALL 48 * + + col0 AS col2 FROM tab1
----
2448
4080
4368

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7521
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND + col2 + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7521
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND + col2 + + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL - col0 * + col0 * col2 FROM tab1
----
-249696
-426275
-563108

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - col0 + 91 <> NULL
----

query I rowsort
SELECT - 63 * - - col2 AS col1 FROM tab2
----
-1449
-2520
-3654

onlyif mysql # DIV for integer division: 
query I rowsort label-7525
SELECT - 81 DIV + - col1 AS col0 FROM tab1
----
1
16
5

skipif mysql # not compatible
query I rowsort label-7525
SELECT - 81 / + - col1 AS col0 FROM tab1
----
1
16
5

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + ( col0 ) AND col0
----

query I rowsort
SELECT - col1 * + + ( col1 ) AS col1 FROM tab0 AS cor0
----
-1
-441
-6561

query I rowsort
SELECT - 56 / col2 AS col0 FROM tab1 WHERE NOT - col0 NOT BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7529
SELECT - col2 * 19 DIV + col2 AS col0 FROM tab2
----
-19
-19
-19

skipif mysql # not compatible
query I rowsort label-7529
SELECT - col2 * 19 / + col2 AS col0 FROM tab2
----
-19
-19
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-7530
SELECT ALL + + col1 DIV - + 39 + - col1 AS col2 FROM tab0 AS cor0
----
-1
-21
-83

skipif mysql # not compatible
query I rowsort label-7530
SELECT ALL + + col1 / - + 39 + - col1 AS col2 FROM tab0 AS cor0
----
-1
-21
-83

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab0 cor0 WHERE col1 <> + col2
----
10
47
99

query I rowsort
SELECT - col1 * 32 FROM tab0 AS cor0
----
-2592
-32
-672

query I rowsort
SELECT ALL col1 FROM tab2 AS cor0 WHERE NOT col1 / + 49 IS NOT NULL
----

query I rowsort
SELECT ALL + + ( + + 39 ) FROM tab0 cor0
----
39
39
39

onlyif mysql # aggregate syntax: 
query I rowsort label-7535
SELECT + COUNT( * ) AS col0 FROM tab2 WHERE NOT - col0 > + col0
----
3

skipif mysql # not compatible
query I rowsort label-7535
SELECT + COUNT ( * ) AS col0 FROM tab2 WHERE NOT - col0 > + col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7536
SELECT ALL MIN( col2 ) * - 61 AS col2 FROM tab2
----
-1403

skipif mysql # not compatible
query I rowsort label-7536
SELECT ALL MIN ( col2 ) * - 61 AS col2 FROM tab2
----
-1403

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 34 + + ( + col1 ) col1 FROM tab2
----
101
111
85

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7538
SELECT * FROM tab2 WHERE ( - - 44 + + col0 ) NOT IN ( - CAST( NULL AS SIGNED ) * + + col2 )
----

skipif mysql # not compatible
query III rowsort label-7538
SELECT * FROM tab2 WHERE ( - - 44 + + col0 ) NOT IN ( - CAST ( NULL AS INTEGER ) * + + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7539
SELECT COUNT( ALL - - col0 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7539
SELECT COUNT ( ALL - - col0 ) AS col2 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7540
SELECT - - MAX( 86 ) FROM tab0 WHERE - + col2 * + 69 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7540
SELECT - - MAX ( 86 ) FROM tab0 WHERE - + col2 * + 69 IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7541
SELECT 46 DIV + col2 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7541
SELECT 46 / + col2 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL 47 AS col0 FROM tab0 AS cor0 WHERE - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7543
SELECT DISTINCT - MAX( DISTINCT + - col2 ) FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-7543
SELECT DISTINCT - MAX ( DISTINCT + - col2 ) FROM tab1
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7544
SELECT ALL col1 + col0 + CAST( + col2 AS SIGNED ) FROM tab0
----
118
143
197

skipif mysql # not compatible
query I rowsort label-7544
SELECT ALL col1 + col0 + CAST ( + col2 AS INTEGER ) FROM tab0
----
118
143
197

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7545
SELECT CAST( NULL AS SIGNED ) + col0 + 18 * col2 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7545
SELECT CAST ( NULL AS INTEGER ) + col0 + 18 * col2 AS col0 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( ( col2 ) ) IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT ( + - 28 + - col2 + - - col0 * + col2 - - col1 ) BETWEEN NULL AND ( NULL ) )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 65 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT ( NULL ) BETWEEN ( NULL ) AND NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7550
SELECT + + CAST( - MAX( ALL - 6 ) AS SIGNED ) / 14 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) >= ( - 44 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7550
SELECT + + CAST ( - MAX ( ALL - 6 ) AS INTEGER ) / 14 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) >= ( - 44 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7551
SELECT DISTINCT - CAST( - col1 AS SIGNED ) FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7551
SELECT DISTINCT - CAST ( - col1 AS INTEGER ) FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - col2 + + col0, 35 + 21 col1 FROM tab0 cor0
----
-2
56
-32
56
77
56

onlyif mysql # aggregate syntax: 
query II rowsort label-7553
SELECT COUNT( * ), 83 AS col2 FROM tab0
----
3
83

skipif mysql # not compatible
query II rowsort label-7553
SELECT COUNT ( * ), 83 AS col2 FROM tab0
----
3
83

onlyif mysql # aggregate syntax: 
query I rowsort label-7554
SELECT COUNT( * ) AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-7554
SELECT COUNT ( * ) AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
3

query I rowsort
SELECT ( + 10 ) FROM tab2 WHERE NOT - col2 + + + col1 * - col1 IS NULL
----
10
10
10

onlyif mysql # DIV for integer division: 
query II rowsort label-7556
SELECT DISTINCT col2 AS col0, col2 DIV - col2 AS col1 FROM tab1
----
59
-1
68
-1
96
-1

skipif mysql # not compatible
query II rowsort label-7556
SELECT DISTINCT col2 AS col0, col2 / - col2 AS col1 FROM tab1
----
59
-1
68
-1
96
-1

query III rowsort
SELECT * FROM tab2 WHERE NOT + 59 * - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7558
SELECT - COUNT( - - ( - col2 ) ) AS col2 FROM tab0 cor0 WHERE NOT - 76 > ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-7558
SELECT - COUNT ( - - ( - col2 ) ) AS col2 FROM tab0 cor0 WHERE NOT - 76 > ( NULL )
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE ( NULL ) NOT BETWEEN - col2 * + + col2 * - col2 + col1 AND + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7560
SELECT + COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-7560
SELECT + COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7561
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab2 WHERE - - col1 > - col1 + + 31
----
3

skipif mysql # not compatible
query I rowsort label-7561
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab2 WHERE - - col1 > - col1 + + 31
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7562
SELECT DISTINCT - COUNT( * ) * + COUNT( * ) FROM tab2 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-7562
SELECT DISTINCT - COUNT ( * ) * + COUNT ( * ) FROM tab2 cor0
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 20 * - - col1 col0 FROM tab2 AS cor0
----
1020
1340
1540

onlyif mysql # aggregate syntax: 
query I rowsort label-7564
SELECT - + MIN( col2 ) AS col1 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-7564
SELECT - + MIN ( col2 ) AS col1 FROM tab0 AS cor0
----
-10

onlyif mysql # aggregate syntax: 
query II rowsort label-7565
SELECT - - 52 * + COUNT( * ) AS col2, MIN( DISTINCT - 36 ) col0 FROM tab1 AS cor0
----
156
-36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7565
SELECT - - 52 * + COUNT ( * ) AS col2, MIN ( DISTINCT - 36 ) col0 FROM tab1 AS cor0
----
156
-36

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - col2 * + + 20 ) <= ( col2 / + 12 * - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7567
SELECT ALL + 13 + + + ( + SUM( + ( - 85 ) ) ) AS col0 FROM tab1 AS cor0
----
-242

skipif mysql # not compatible
query I rowsort label-7567
SELECT ALL + 13 + + + ( + SUM ( + ( - 85 ) ) ) AS col0 FROM tab1 AS cor0
----
-242

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7568
SELECT DISTINCT col0 / + 27 + - CAST( NULL AS SIGNED ) + + 73 / + col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7568
SELECT DISTINCT col0 / + 27 + - CAST ( NULL AS INTEGER ) + + 73 / + col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7569
SELECT DISTINCT - col2 DIV + 44 AS col1 FROM tab0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-7569
SELECT DISTINCT - col2 / + 44 AS col1 FROM tab0
----
-1
-2
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7570
SELECT ALL SUM( DISTINCT - col1 ) FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-7570
SELECT ALL SUM ( DISTINCT - col1 ) FROM tab2
----
-195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 9 col1 FROM tab1
----
9

query I rowsort
SELECT + 24 FROM tab2 WHERE col2 NOT IN ( - col2 * + 93 )
----
24
24
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 97 + + ( - 37 ) col1, 73 AS col2 FROM tab0
----
60
73
60
73
60
73

query I rowsort
SELECT - 86 + col1 FROM tab1 AS cor0
----
-39
-72
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7575
SELECT ALL 93 FROM tab1 cor0 WHERE 36 * - - CAST( NULL AS SIGNED ) IN ( + 45 + + col1, - col1 )
----

skipif mysql # not compatible
query I rowsort label-7575
SELECT ALL 93 FROM tab1 cor0 WHERE 36 * - - CAST ( NULL AS INTEGER ) IN ( + 45 + + col1, - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7576
SELECT - + 22 + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-7576
SELECT - + 22 + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-19

query I rowsort
SELECT ALL - col0 AS col0 FROM tab0 AS cor0 WHERE ( col0 ) IS NOT NULL
----
-15
-87
-97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7578
SELECT ALL + 70 - + col2 col1, col1 + - CAST( NULL AS SIGNED ) + - col2 AS col0 FROM tab1
----
-26
NULL
11
NULL
2
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7578
SELECT ALL + 70 - + col2 col1, col1 + - CAST ( NULL AS INTEGER ) + - col2 AS col0 FROM tab1
----
-26
NULL
11
NULL
2
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7579
SELECT + + CAST( NULL AS SIGNED ) * COUNT( * ) - + 14 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7579
SELECT + + CAST ( NULL AS INTEGER ) * COUNT ( * ) - + 14 AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + - col2 - - col0 AS col1 FROM tab1 AS cor0
----
-45
23
26

query I rowsort
SELECT - 12 * col2 AS col0 FROM tab0 AS cor0
----
-1188
-120
-564

query II rowsort
SELECT + + col2, - col0 FROM tab2 AS cor0
----
23
-46
40
-64
58
-75

query II rowsort
SELECT ALL 37, + col0 AS col2 FROM tab1 AS cor0
----
37
51
37
85
37
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7584
SELECT DISTINCT MIN( ALL 70 ) FROM tab0 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-7584
SELECT DISTINCT MIN ( ALL 70 ) FROM tab0 AS cor0
----
70

query II rowsort
SELECT ALL - - 94 AS col2, + col2 AS col2 FROM tab1 cor0
----
94
59
94
68
94
96

query III rowsort
SELECT * FROM tab1 WHERE NOT - 30 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7587
SELECT ALL COUNT( * ) * 13 * MAX( - ( - 95 ) ) * CAST( NULL AS SIGNED ) col0 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7587
SELECT ALL COUNT ( * ) * 13 * MAX ( - ( - 95 ) ) * CAST ( NULL AS INTEGER ) col0 FROM tab2
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col1 IN ( + - 24 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 WHERE - col1 NOT BETWEEN + + col2 + - ( + 84 ) + + col0 AND ( - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT col2 * 28, - 71 * + col1 AS col0 FROM tab2
----
1120
-5467
1624
-4757
644
-3621

onlyif mysql # aggregate syntax: 
query I rowsort label-7591
SELECT - + COUNT( col2 ) FROM tab0 WHERE NOT ( NOT - 70 IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-7591
SELECT - + COUNT ( col2 ) FROM tab0 WHERE NOT ( NOT - 70 IS NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7592
SELECT COUNT( * ) * + 25 * MAX( col0 ) FROM tab0
----
7275

skipif mysql # not compatible
query I rowsort label-7592
SELECT COUNT ( * ) * + 25 * MAX ( col0 ) FROM tab0
----
7275

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 1 NOT BETWEEN NULL AND ( - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-7594
SELECT col0 * col0 DIV col1 FROM tab2 AS cor0
----
41
53
83

skipif mysql # not compatible
query I rowsort label-7594
SELECT col0 * col0 / col1 FROM tab2 AS cor0
----
41
53
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - col0 ) * + + 18 col1 FROM tab2 AS cor0
----
-1152
-1350
-828

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL >= + 99
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7597
SELECT + CAST( + col2 AS SIGNED ), col0 FROM tab1 AS cor0
----
59
85
68
91
96
51

skipif mysql # not compatible
query II rowsort label-7597
SELECT + CAST ( + col2 AS INTEGER ), col0 FROM tab1 AS cor0
----
59
85
68
91
96
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7598
SELECT CAST( - - col2 AS SIGNED ) * + 18 FROM tab0 AS cor0
----
1782
180
846

skipif mysql # not compatible
query I rowsort label-7598
SELECT CAST ( - - col2 AS INTEGER ) * + 18 FROM tab0 AS cor0
----
1782
180
846

onlyif mysql # aggregate syntax: 
query I rowsort label-7599
SELECT ALL + - SUM( DISTINCT - col1 ) + - 60 AS col1 FROM tab2 cor0 WHERE NOT col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7599
SELECT ALL + - SUM ( DISTINCT - col1 ) + - 60 AS col1 FROM tab2 cor0 WHERE NOT col2 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7600
SELECT - CAST( NULL AS SIGNED ) * - COUNT( * ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7600
SELECT - CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7601
SELECT - MIN( ALL + col2 ) FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-7601
SELECT - MIN ( ALL + col2 ) FROM tab1
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7602
SELECT DISTINCT * FROM tab0 WHERE ( - col1 / - 23 * 43 * CAST( NULL AS SIGNED ) + + - 3 ) < NULL
----

skipif mysql # not compatible
query III rowsort label-7602
SELECT DISTINCT * FROM tab0 WHERE ( - col1 / - 23 * 43 * CAST ( NULL AS INTEGER ) + + - 3 ) < NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7603
SELECT - COUNT( * ), - 21 AS col1 FROM tab2 AS cor0
----
-3
-21

skipif mysql # not compatible
query II rowsort label-7603
SELECT - COUNT ( * ), - 21 AS col1 FROM tab2 AS cor0
----
-3
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-7604
SELECT ALL - 4 * + + COUNT( * ) + MAX( DISTINCT col2 ) FROM tab1 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-7604
SELECT ALL - 4 * + + COUNT ( * ) + MAX ( DISTINCT col2 ) FROM tab1 AS cor0
----
84

query I rowsort
SELECT ALL + 85 * - - col1 FROM tab0 AS cor0
----
1785
6885
85

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col2 )
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( NULL ) < - + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7608
SELECT + 95 + COUNT( ALL - + col2 ) FROM tab2
----
98

skipif mysql # not compatible
query I rowsort label-7608
SELECT + 95 + COUNT ( ALL - + col2 ) FROM tab2
----
98

query III rowsort
SELECT * FROM tab0 WHERE - 67 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - col1 * + col1, - 74 AS col0 FROM tab0
----
-1
-74
-441
-74
-6561
-74

query I rowsort
SELECT + col0 * + col0 * + col1 AS col2 FROM tab0
----
158949
18225
9409

onlyif mysql # DIV for integer division: 
query I rowsort label-7612
SELECT - 20 + + 10 DIV + + 27 FROM tab1 cor0
----
-20
-20
-20

skipif mysql # not compatible
query I rowsort label-7612
SELECT - 20 + + 10 / + + 27 FROM tab1 cor0
----
-20
-20
-20

query I rowsort
SELECT + - 87 AS col0 FROM tab2 WHERE col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7614
SELECT + MAX( col2 ) + + COUNT( * ) AS col1, 84 FROM tab1
----
99
84

skipif mysql # not compatible
query II rowsort label-7614
SELECT + MAX ( col2 ) + + COUNT ( * ) AS col1, 84 FROM tab1
----
99
84

query I rowsort
SELECT ALL col0 FROM tab0 WHERE NOT NULL BETWEEN NULL AND + col2 * - col2 * - ( col2 ) + - 31
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab0 AS cor0 WHERE NOT + ( - col2 ) > NULL
----

query I rowsort
SELECT ( col1 ) AS col1 FROM tab2 AS cor0 WHERE NOT - col1 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7619
SELECT MAX( 81 ) FROM tab1 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-7619
SELECT MAX ( 81 ) FROM tab1 AS cor0
----
81

query II rowsort
SELECT - + 83, - 67 * - - 39 * + ( - + col0 ) AS col2 FROM tab0 cor0
----
-83
227331
-83
253461
-83
39195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1, + col1 col0 FROM tab2
----
51
51
67
67
77
77

query I rowsort
SELECT + 27 * + - col1 FROM tab0
----
-2187
-27
-567

query II rowsort
SELECT - 40 AS col1, + col2 - - 79 FROM tab0
----
-40
126
-40
178
-40
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0, + 1 col0 FROM tab1
----
-51
1
-85
1
-91
1

query III rowsort
SELECT DISTINCT col2, col2 AS col0, 34 FROM tab2
----
9 values hashing to c19b2fda2723c06ced8b61fae7c6f5ff

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - 30 col1 FROM tab1 WHERE - 57 IS NOT NULL
----
-1530
-2550
-2730

onlyif mysql # aggregate syntax: 
query I rowsort label-7627
SELECT COUNT( * ) * - MIN( ALL + col1 ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7627
SELECT COUNT ( * ) * - MIN ( ALL + col1 ) FROM tab0 cor0
----
-3

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab1 AS cor0 WHERE NULL = + col0
----

query I rowsort
SELECT - - col1 + + 0 - - col2 * - 29 * + col2 AS col2 FROM tab0 AS cor0
----
-284228
-2879
-63980

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 col2, 33 - + + 53 FROM tab2 AS cor0
----
-46
-20
-64
-20
-75
-20

query II rowsort
SELECT DISTINCT + ( + 94 ) AS col1, + col2 * 69 FROM tab0
----
94
3243
94
6831
94
690

onlyif mysql # aggregate syntax: 
query I rowsort label-7632
SELECT DISTINCT + 6 + + + COUNT( * ) col1 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7632
SELECT DISTINCT + 6 + + + COUNT ( * ) col1 FROM tab0 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7633
SELECT DISTINCT - - COUNT( * ) FROM tab1 AS cor0 WHERE NOT - col2 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-7633
SELECT DISTINCT - - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT - col2 <> NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7634
SELECT 29 * - COUNT( * ) * + MIN( ALL + 56 ) FROM tab2 AS cor0
----
-4872

skipif mysql # not compatible
query I rowsort label-7634
SELECT 29 * - COUNT ( * ) * + MIN ( ALL + 56 ) FROM tab2 AS cor0
----
-4872

query I rowsort
SELECT col1 - - + col2 FROM tab2
----
117
125
74

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col0 > - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7637
SELECT 57 + + + MIN( - col0 ) AS col2 FROM tab0
----
-40

skipif mysql # not compatible
query I rowsort label-7637
SELECT 57 + + + MIN ( - col0 ) AS col2 FROM tab0
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7638
SELECT ALL + 83 + col0 - CAST( - + col2 AS SIGNED ) AS col0, col1 FROM tab2 WHERE NOT NULL < NULL
----

skipif mysql # not compatible
query II rowsort label-7638
SELECT ALL + 83 + col0 - CAST ( - + col2 AS INTEGER ) AS col0, col1 FROM tab2 WHERE NOT NULL < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7639
SELECT ALL - col2 + + CAST( - + col1 AS SIGNED ) AS col2 FROM tab2
----
-117
-125
-74

skipif mysql # not compatible
query I rowsort label-7639
SELECT ALL - col2 + + CAST ( - + col1 AS INTEGER ) AS col2 FROM tab2
----
-117
-125
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-7640
SELECT DISTINCT COUNT( * ) + + - COUNT( * ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7640
SELECT DISTINCT COUNT ( * ) + + - COUNT ( * ) AS col1 FROM tab2
----
0

query III rowsort
SELECT * FROM tab2 WHERE ( NOT NULL NOT IN ( col1 ) )
----

query I rowsort
SELECT ALL - - col0 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
15
87
97

query I rowsort
SELECT + col0 + + - col1 + - - 24 + - - col1 FROM tab1
----
109
115
75

query I rowsort
SELECT 79 + 11 FROM tab0 AS cor0
----
90
90
90

query I rowsort
SELECT + 37 * col0 + col1 FROM tab2 AS cor0
----
1753
2445
2842

query I rowsort
SELECT DISTINCT - col1 - - + col1 * - - ( - 9 ) AS col1 FROM tab1 AS cor0
----
-140
-470
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-7647
SELECT DISTINCT + COUNT( * ) * 67 - 27 FROM tab0
----
174

skipif mysql # not compatible
query I rowsort label-7647
SELECT DISTINCT + COUNT ( * ) * 67 - 27 FROM tab0
----
174

query I rowsort
SELECT ALL + 67 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

query I rowsort
SELECT ALL col0 * - ( 72 ) AS col0 FROM tab0
----
-1080
-6264
-6984

onlyif mysql # aggregate syntax: 
query I rowsort label-7650
SELECT ALL + + COUNT( * ) FROM tab1 WHERE col0 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-7650
SELECT ALL + + COUNT ( * ) FROM tab1 WHERE col0 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7651
SELECT DISTINCT + 63 * - COUNT( * ) * + 16 * - 80 FROM tab2 AS cor0
----
241920

skipif mysql # not compatible
query I rowsort label-7651
SELECT DISTINCT + 63 * - COUNT ( * ) * + 16 * - 80 FROM tab2 AS cor0
----
241920

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7652
SELECT DISTINCT - - CAST( NULL AS DECIMAL ) * + - 2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7652
SELECT DISTINCT - - CAST ( NULL AS REAL ) * + - 2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col1 * - + col2 AS col1 FROM tab1 AS cor0 WHERE NOT ( NOT NULL BETWEEN ( col1 ) AND NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND + col2 + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7655
SELECT DISTINCT + ( + COUNT( * ) ) col2 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7655
SELECT DISTINCT + ( + COUNT ( * ) ) col2 FROM tab2
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col1 IN ( + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7657
SELECT DISTINCT CAST( NULL AS SIGNED ) * - - col2 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7657
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - - col2 AS col0 FROM tab0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - + col2 * - col1 + + - col2 <> NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 + - + col0 NOT BETWEEN - - col0 AND col0 + - col2 * + - ( 52 )
----
15
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-7660
SELECT DISTINCT SUM( DISTINCT - col1 ) AS col2 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-7660
SELECT DISTINCT SUM ( DISTINCT - col1 ) AS col2 FROM tab1
----
-66

query I rowsort
SELECT - col2 AS col0 FROM tab2 AS cor0 WHERE NOT ( ( + col0 ) ) NOT BETWEEN + col0 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 35 col1 FROM tab1 cor0
----
35
35
35

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7663
SELECT - - CAST( NULL AS DECIMAL ) * + 3 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7663
SELECT - - CAST ( NULL AS REAL ) * + 3 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7664
SELECT ALL col1 + + ( col2 ) AS col0, 22 DIV col0 AS col1 FROM tab0 AS cor0
----
100
0
128
1
31
0

skipif mysql # not compatible
query II rowsort label-7664
SELECT ALL col1 + + ( col2 ) AS col0, 22 / col0 AS col1 FROM tab0 AS cor0
----
100
0
128
1
31
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7665
SELECT DISTINCT + ( - ( - COUNT( * ) ) ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7665
SELECT DISTINCT + ( - ( - COUNT ( * ) ) ) AS col2 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7666
SELECT DISTINCT + CAST( NULL AS SIGNED ), ( - ( - 47 ) ) AS col1 FROM tab2
----
NULL
47

skipif mysql # not compatible
query II rowsort label-7666
SELECT DISTINCT + CAST ( NULL AS INTEGER ), ( - ( - 47 ) ) AS col1 FROM tab2
----
NULL
47

onlyif mysql # aggregate syntax: 
query I rowsort label-7667
SELECT + COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
query I rowsort label-7667
SELECT + COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9

query I rowsort
SELECT DISTINCT col2 + + 13 FROM tab0
----
112
23
60

query I rowsort
SELECT DISTINCT 63 + col0 AS col2 FROM tab2
----
109
127
138

query I rowsort
SELECT + col2 + + ( + 56 ) AS col0 FROM tab2 AS cor0
----
114
79
96

query II rowsort
SELECT DISTINCT + - col1 AS col2, - col2 AS col1 FROM tab2 AS cor0
----
-51
-23
-67
-58
-77
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-7672
SELECT ALL - - 4 + - - COUNT( * ) FROM tab1 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-7672
SELECT ALL - - 4 + - - COUNT ( * ) FROM tab1 AS cor0
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7673
SELECT * FROM tab2 cor0 WHERE col2 * + CAST( + + ( + + 12 ) AS SIGNED ) * col1 IS NULL
----

skipif mysql # not compatible
query III rowsort label-7673
SELECT * FROM tab2 cor0 WHERE col2 * + CAST ( + + ( + + 12 ) AS INTEGER ) * col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7674
SELECT DISTINCT MAX( + col2 ) * + 23 - + 0 AS col2 FROM tab2 cor0
----
1334

skipif mysql # not compatible
query I rowsort label-7674
SELECT DISTINCT MAX ( + col2 ) * + 23 - + 0 AS col2 FROM tab2 cor0
----
1334

query II rowsort
SELECT DISTINCT - + col2, - 14 * - + col0 AS col1 FROM tab0 AS cor0
----
-10
1218
-47
210
-99
1358

query II rowsort
SELECT DISTINCT col2 - + col2 * + + 64 AS col0, + col1 * + col0 FROM tab0
----
-2961
1215
-6237
97
-630
1827

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7677
SELECT CAST( - COUNT( * ) AS SIGNED ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-7677
SELECT CAST ( - COUNT ( * ) AS INTEGER ) AS col2 FROM tab2
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 94 * - 44 col1, col0 FROM tab1
----
4136
51
4136
85
4136
91

query I rowsort
SELECT DISTINCT + col1 * + + 94 FROM tab1
----
1316
4418
470

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7680
SELECT - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE + 25 - + col0 * + CAST( NULL AS SIGNED ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7680
SELECT - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE + 25 - + col0 * + CAST ( NULL AS INTEGER ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7681
SELECT - + COUNT( * ) DIV + 49 AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7681
SELECT - + COUNT ( * ) / + 49 AS col0 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7682
SELECT COUNT( ALL col1 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7682
SELECT COUNT ( ALL col1 ) AS col2 FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7683
SELECT 15 * - CAST( + 66 AS SIGNED ) FROM tab2
----
-990
-990
-990

skipif mysql # not compatible
query I rowsort label-7683
SELECT 15 * - CAST ( + 66 AS INTEGER ) FROM tab2
----
-990
-990
-990

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE - 24 IS NOT NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

query I rowsort
SELECT ( 68 ) * + col1 AS col1 FROM tab0
----
1428
5508
68

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND 83
----

query II rowsort
SELECT DISTINCT col2 * 48 * + col2 AS col0, + ( + col2 ) FROM tab2
----
161472
58
25392
23
76800
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7688
SELECT DISTINCT - 25 DIV + + COUNT( * ) AS col1 FROM tab1 cor0
----
-8

skipif mysql # not compatible
query I rowsort label-7688
SELECT DISTINCT - 25 / + + COUNT ( * ) AS col1 FROM tab1 cor0
----
-8

query I rowsort
SELECT DISTINCT + + col1 AS col0 FROM tab0 AS cor0 WHERE NOT - 57 - + + 40 * 50 <> col0 * col2 + + col1 + - 97
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7690
SELECT - COUNT( ALL - - 37 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7690
SELECT - COUNT ( ALL - - 37 ) FROM tab1 AS cor0
----
-3

query II rowsort
SELECT DISTINCT + col2 AS col1, - 89 + 19 * + - col0 AS col1 FROM tab2 AS cor0
----
23
-963
40
-1305
58
-1514

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) IN ( - - col0 )
----

query II rowsort
SELECT ALL - 7 AS col0, col2 AS col1 FROM tab1 AS cor0
----
-7
59
-7
68
-7
96

query I rowsort
SELECT ALL - 12 * col2 * ( - 13 ) FROM tab0 AS cor0
----
15444
1560
7332

query I rowsort
SELECT - ( 28 ) FROM tab1 AS cor0
----
-28
-28
-28

onlyif mysql # aggregate syntax: 
query II rowsort label-7696
SELECT DISTINCT + 41 AS col2, COUNT( * ) FROM tab1 AS cor0
----
41
3

skipif mysql # not compatible
query II rowsort label-7696
SELECT DISTINCT + 41 AS col2, COUNT ( * ) FROM tab1 AS cor0
----
41
3

onlyif mysql # DIV for integer division: 
query I rowsort label-7697
SELECT col0 DIV + 37 AS col2 FROM tab0
----
0
2
2

skipif mysql # not compatible
query I rowsort label-7697
SELECT col0 / + 37 AS col2 FROM tab0
----
0
2
2

query I rowsort
SELECT + col1 * col1 / + 38 - + col1 FROM tab1 WHERE NOT + + col0 IS NOT NULL
----

query I rowsort
SELECT ALL - col0 * - 80 AS col0 FROM tab2
----
3680
5120
6000

onlyif mysql # aggregate syntax: 
query II rowsort label-7700
SELECT DISTINCT COUNT( * ) + - COUNT( * ), - 49 col2 FROM tab2
----
0
-49

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7700
SELECT DISTINCT COUNT ( * ) + - COUNT ( * ), - 49 col2 FROM tab2
----
0
-49

query I rowsort
SELECT - - col1 * 51 + col1 * - + col0 * + 63 FROM tab2 cor0
----
-145197
-306537
-313158

query I rowsort
SELECT ALL + 12 + + col1 + col2 AS col1 FROM tab1 cor0
----
122
127
76

query I rowsort
SELECT + col2 + - ( - col1 ) FROM tab2 AS cor0
----
117
125
74

query I rowsort
SELECT DISTINCT 73 * + col0 FROM tab0
----
1095
6351
7081

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7705
SELECT * FROM tab2 AS cor0 WHERE ( NOT + col2 + - - col2 * - - 93 >= + + ( ( CAST( NULL AS SIGNED ) ) ) - - 96 )
----

skipif mysql # not compatible
query III rowsort label-7705
SELECT * FROM tab2 AS cor0 WHERE ( NOT + col2 + - - col2 * - - 93 >= + + ( ( CAST ( NULL AS INTEGER ) ) ) - - 96 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7706
SELECT ALL - col0 + - col1 * - 20 - - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7706
SELECT ALL - col0 + - col1 * - 20 - - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 - 18 FROM tab0 cor0
----
-19
-39
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7708
SELECT CAST( - - col1 AS SIGNED ) - - col1 + col1 AS col1 FROM tab2 AS cor0
----
153
201
231

skipif mysql # not compatible
query I rowsort label-7708
SELECT CAST ( - - col1 AS INTEGER ) - - col1 + col1 AS col1 FROM tab2 AS cor0
----
153
201
231

query I rowsort
SELECT + ( - col0 ) FROM tab0 AS cor0 WHERE NULL <= ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + - 96 - - col1 NOT BETWEEN NULL AND + - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7711
SELECT - 6 + + + SUM( ALL + col0 ) col2 FROM tab2 AS cor0
----
179

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7711
SELECT - 6 + + + SUM ( ALL + col0 ) col2 FROM tab2 AS cor0
----
179

query III rowsort
SELECT * FROM tab2 WHERE col1 + - + 76 + - col0 NOT BETWEEN NULL AND - - col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 59 NOT BETWEEN col0 * - col2 AND - - 72
----

query I rowsort
SELECT + ( - col2 ) + + + 83 AS col0 FROM tab2
----
25
43
60

onlyif mysql # aggregate syntax: 
query I rowsort label-7715
SELECT DISTINCT - - ( - ( COUNT( * ) ) ) AS col1 FROM tab1 WHERE NOT + - 48 <= col2 / - 73
----
0

skipif mysql # not compatible
query I rowsort label-7715
SELECT DISTINCT - - ( - ( COUNT ( * ) ) ) AS col1 FROM tab1 WHERE NOT + - 48 <= col2 / - 73
----
0

query I rowsort
SELECT ALL + 34 - - - col0 AS col2 FROM tab1
----
-17
-51
-57

query II rowsort
SELECT - col2 + col2 AS col2, 55 AS col2 FROM tab2
----
0
55
0
55
0
55

query II rowsort
SELECT DISTINCT 82, - col1 AS col1 FROM tab0
----
82
-1
82
-21
82
-81

query I rowsort
SELECT col0 * + 78 * + - col1 + + - 17 + - col2 + + 91 + col0 FROM tab0
----
-142355
-7494
-94728

onlyif mysql # aggregate syntax: 
query I rowsort label-7720
SELECT ALL MAX( ALL + col0 ) FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-7720
SELECT ALL MAX ( ALL + col0 ) FROM tab0 AS cor0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7721
SELECT DISTINCT + MIN( DISTINCT + 37 ) FROM tab2 AS cor0
----
37

skipif mysql # not compatible
query I rowsort label-7721
SELECT DISTINCT + MIN ( DISTINCT + 37 ) FROM tab2 AS cor0
----
37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1, col1 + + col2 col0 FROM tab2 AS cor0
----
51
74
67
125
77
117

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 + col2 BETWEEN + + 30 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 50 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

query I rowsort
SELECT + 59 AS col2 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - 62 - + col2 FROM tab0 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT 32 * - ( - - 86 ) AS col0 FROM tab1
----
-2752
-2752
-2752

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7728
SELECT CAST( NULL AS SIGNED ) * + col0 + - - col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7728
SELECT CAST ( NULL AS INTEGER ) * + col0 + - - col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7729
SELECT + MIN( + col2 ) AS col2, - COUNT( * ) FROM tab0 AS cor0
----
10
-3

skipif mysql # not compatible
query II rowsort label-7729
SELECT + MIN ( + col2 ) AS col2, - COUNT ( * ) FROM tab0 AS cor0
----
10
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7730
SELECT - COUNT( * ) * + 83 col0 FROM tab1 AS cor0
----
-249

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7730
SELECT - COUNT ( * ) * + 83 col0 FROM tab1 AS cor0
----
-249

onlyif mysql # aggregate syntax: 
query I rowsort label-7731
SELECT COUNT( * ) * - 71 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-213

skipif mysql # not compatible
query I rowsort label-7731
SELECT COUNT ( * ) * - 71 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-213

query I rowsort
SELECT ALL - col2 * + - col2 AS col0 FROM tab2 AS cor0
----
1600
3364
529

query I rowsort
SELECT DISTINCT - - ( - 45 ) * + col2 - - col1 AS col0 FROM tab2 AS cor0
----
-1723
-2543
-984

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7734
SELECT - + col1 * + col2 FROM tab2 AS cor0 WHERE NOT ( + col1 ) > - - 70 + - col2 + col0 + CAST( + col1 AS DECIMAL ) * + 74 * + + 97 * col2
----
-1173
-3080
-3886

skipif mysql # not compatible
query I rowsort label-7734
SELECT - + col1 * + col2 FROM tab2 AS cor0 WHERE NOT ( + col1 ) > - - 70 + - col2 + col0 + CAST ( + col1 AS REAL ) * + 74 * + + 97 * col2
----
-1173
-3080
-3886

query I rowsort
SELECT ALL 41 + col1 / + 92 * - + col0 * ( - 66 ) FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7736
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT 15 / col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7736
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT 15 / col2 IS NOT NULL
----
0

query I rowsort
SELECT ALL - 34 * - col2 FROM tab0
----
1598
3366
340

query I rowsort
SELECT DISTINCT - col0 * - - 5 AS col2 FROM tab2
----
-230
-320
-375

query I rowsort
SELECT DISTINCT 83 + + col1 * - 69 + + 4 AS col2 FROM tab1
----
-258
-3156
-879

onlyif mysql # aggregate syntax: 
query I rowsort label-7740
SELECT + SUM( DISTINCT col1 ) col0 FROM tab0
----
103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7740
SELECT + SUM ( DISTINCT col1 ) col0 FROM tab0
----
103

query II rowsort
SELECT + col1, - 57 * - col0 AS col2 FROM tab2
----
51
2622
67
4275
77
3648

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7742
SELECT + + col1 AS col2, col0 + + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-7742
SELECT + + col1 AS col2, col0 + + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7743
SELECT DISTINCT 54 + - 17 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7743
SELECT DISTINCT 54 + - 17 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - + 55 * + col2 + + col1 FROM tab1 cor0
----
-3240
-3693
-5266

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + + 64 col1 FROM tab2 AS cor0
----
-13
-3
13

query I rowsort
SELECT DISTINCT col0 + - 40 FROM tab1 AS cor0
----
11
45
51

query I rowsort
SELECT + ( + ( + 96 ) ) FROM tab0 AS cor0
----
96
96
96

query I rowsort
SELECT DISTINCT + col1 * 56 FROM tab2 AS cor0
----
2856
3752
4312

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7749
SELECT ALL MAX( DISTINCT - col1 ) DIV + COUNT( * ) FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-7749
SELECT ALL MAX ( DISTINCT - col1 ) / + COUNT ( * ) FROM tab1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7750
SELECT col1 * - col1 / - CAST( NULL AS SIGNED ) + + col2 * 56 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7750
SELECT col1 * - col1 / - CAST ( NULL AS INTEGER ) + + col2 * 56 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + ( - 93 ) col2 FROM tab0 cor0
----
-6
-78
4

query I rowsort
SELECT ALL - col1 - col2 AS col1 FROM tab1 cor0
----
-110
-115
-64

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7754
SELECT - + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE + 35 BETWEEN col2 + + 41 AND + 63 * + col0
----
0

skipif mysql # not compatible
query I rowsort label-7754
SELECT - + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE + 35 BETWEEN col2 + + 41 AND + 63 * + col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7755
SELECT ALL COUNT( * ) + + + 74 AS col1 FROM tab1 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-7755
SELECT ALL COUNT ( * ) + + + 74 AS col1 FROM tab1 AS cor0
----
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 - 20 col0 FROM tab0
----
-107
-117
-35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 31 col2 FROM tab0, tab0 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL 2 FROM tab0 WHERE NULL IS NULL
----
2
2
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7759
SELECT DISTINCT COUNT( - 20 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7759
SELECT DISTINCT COUNT ( - 20 ) FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7760
SELECT DISTINCT + CAST( - 41 AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL > NULL
----

skipif mysql # not compatible
query I rowsort label-7760
SELECT DISTINCT + CAST ( - 41 AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL > NULL
----

query II rowsort
SELECT DISTINCT col0, 40 AS col0 FROM tab0 AS cor0
----
15
40
87
40
97
40

query I rowsort
SELECT DISTINCT + col2 + - + col0 FROM tab2 AS cor0
----
-17
-23
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-7763
SELECT + 86 DIV col2 AS col0 FROM tab2 AS cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-7763
SELECT + 86 / col2 AS col0 FROM tab2 AS cor0
----
1
2
3

query I rowsort
SELECT - ( col2 ) * - col0 - - + col2 AS col1 FROM tab1 cor0
----
4992
5074
6256

query II rowsort
SELECT + col0 * col0 AS col1, col2 + - col2 FROM tab0 AS cor0
----
225
0
7569
0
9409
0

query I rowsort
SELECT 1 * col2 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7767
SELECT DISTINCT CAST( NULL AS SIGNED ) * - + 66 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7767
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - + 66 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - col1 * - - col1 FROM tab2 AS cor0
----
-2601
-4489
-5929

query I rowsort
SELECT ALL col0 FROM tab2 WHERE NOT - col0 * - + 89 IS NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7770
SELECT COUNT( * ) * - MAX( - + 32 ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-7770
SELECT COUNT ( * ) * - MAX ( - + 32 ) FROM tab1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7771
SELECT - MIN( + + 55 ) AS col2 FROM tab0
----
-55

skipif mysql # not compatible
query I rowsort label-7771
SELECT - MIN ( + + 55 ) AS col2 FROM tab0
----
-55

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 5 * + col2 + col1 + - col2 - col0 / - + 45 + col1 + 87 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7773
SELECT - 94 DIV 81 * + - COUNT( * ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7773
SELECT - 94 / 81 * + - COUNT ( * ) FROM tab1
----
3

query I rowsort
SELECT ALL - col1 AS col2 FROM tab2 WHERE + col0 IS NOT NULL
----
-51
-67
-77

query I rowsort
SELECT DISTINCT ( + + col1 ) + + col1 FROM tab1
----
10
28
94

query II rowsort
SELECT 7 + + col2 AS col0, ( + col1 ) * - 64 * col0 AS col2 FROM tab0 AS cor0
----
106
-6208
17
-116928
54
-77760

query I rowsort
SELECT ALL + 27 * + - 71 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 141efe8edd3146ba1f9f9a237a1d2959

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + + 7 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - - 61 * + col1 AS col0 FROM tab1 AS cor0 WHERE - col1 > + 69
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7780
SELECT DISTINCT CAST( NULL AS SIGNED ) * + 0 - - COUNT( * ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7780
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 0 - - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7781
SELECT - COUNT( * ) - - - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7781
SELECT - COUNT ( * ) - - - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7782
SELECT + - COUNT( * ) FROM tab2 AS cor0 WHERE col0 + + 22 BETWEEN - col2 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-7782
SELECT + - COUNT ( * ) FROM tab2 AS cor0 WHERE col0 + + 22 BETWEEN - col2 AND NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7783
SELECT ALL + - col0 + - col0 * + 23 / + - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7783
SELECT ALL + - col0 + - col0 * + 23 / + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7784
SELECT MIN( - col0 ) - 72 AS col0 FROM tab0 cor0
----
-169

skipif mysql # not compatible
query I rowsort label-7784
SELECT MIN ( - col0 ) - 72 AS col0 FROM tab0 cor0
----
-169

query I rowsort
SELECT - col2 - - col1 * + - col0 + - col0 AS col1 FROM tab0 AS cor0
----
-1277
-1924
-293

query I rowsort
SELECT ALL col1 * - - 81 FROM tab1 AS cor0
----
1134
3807
405

query I rowsort
SELECT ALL + 4 + - 83 AS col2 FROM tab0 AS cor0
----
-79
-79
-79

query I rowsort
SELECT + col1 * + col1 + - col0 - - col2 AS col0 FROM tab1 AS cor0
----
-1
2186
241

onlyif mysql # DIV for integer division: 
query I rowsort label-7789
SELECT ALL - - col0 DIV col2 + - 35 FROM tab0 AS cor0
----
-27
-35
-35

skipif mysql # not compatible
query I rowsort label-7789
SELECT ALL - - col0 / col2 + - 35 FROM tab0 AS cor0
----
-27
-35
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7790
SELECT - + 85 + CAST( - COUNT( * ) AS SIGNED ) AS col0, 13 AS col0 FROM tab0 AS cor0
----
-88
13

skipif mysql # not compatible
query II rowsort label-7790
SELECT - + 85 + CAST ( - COUNT ( * ) AS INTEGER ) AS col0, 13 AS col0 FROM tab0 AS cor0
----
-88
13

query I rowsort
SELECT DISTINCT + col0 + - - 28 AS col2 FROM tab2 AS cor0
----
103
74
92

query I rowsort
SELECT ALL - - 68 AS col0 FROM tab2 cor0
----
68
68
68

onlyif mysql # aggregate syntax: 
query II rowsort label-7793
SELECT - COUNT( * ) AS col1, MAX( DISTINCT - - 99 ) FROM tab1 AS cor0
----
-3
99

skipif mysql # not compatible
query II rowsort label-7793
SELECT - COUNT ( * ) AS col1, MAX ( DISTINCT - - 99 ) FROM tab1 AS cor0
----
-3
99

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-7794
SELECT ALL * FROM tab1 WHERE NULL >= - + CAST( - CAST( NULL AS DECIMAL ) AS SIGNED ) + + col2
----

skipif mysql # not compatible
query III rowsort label-7794
SELECT ALL * FROM tab1 WHERE NULL >= - + CAST ( - CAST ( NULL AS REAL ) AS INTEGER ) + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7795
SELECT - MIN( + col1 ) FROM tab0 WHERE NOT + col0 + + 54 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7795
SELECT - MIN ( + col1 ) FROM tab0 WHERE NOT + col0 + + 54 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7796
SELECT DISTINCT ( + COUNT( * ) ) col2 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7796
SELECT DISTINCT ( + COUNT ( * ) ) col2 FROM tab0
----
3

query I rowsort
SELECT ALL - + col2 * - + col1 * + col2 AS col2 FROM tab2 AS cor0
----
123200
225388
26979

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 NOT BETWEEN NULL AND + 83 + + - ( - 30 ) * + 10
----

query II rowsort
SELECT 20 AS col0, 18 FROM tab1 cor0
----
20
18
20
18
20
18

query I rowsort
SELECT ALL col0 + + 49 FROM tab0 AS cor0
----
136
146
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7801
SELECT MIN( ALL + CAST( col2 AS SIGNED ) ) col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7801
SELECT MIN ( ALL + CAST ( col2 AS INTEGER ) ) col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-7802
SELECT DISTINCT - + 99 * + COUNT( + col1 ) AS col1 FROM tab2 AS cor0
----
-297

skipif mysql # not compatible
query I rowsort label-7802
SELECT DISTINCT - + 99 * + COUNT ( + col1 ) AS col1 FROM tab2 AS cor0
----
-297

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7803
SELECT * FROM tab1 AS cor0 WHERE CAST( + + 30 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-7803
SELECT * FROM tab1 AS cor0 WHERE CAST ( + + 30 AS INTEGER ) IS NULL
----

query I rowsort
SELECT - col0 + - col2 * col1 * col0 AS col2 FROM tab0 AS cor0
----
-18357
-57120
-9700

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab1 AS cor0 WHERE NOT + col1 NOT IN ( + + 3, col0 * + + col1, - ( + + 97 ), + col2, - col1 / 37 * - - col1 )
----

query I rowsort
SELECT col2 AS col0 FROM tab0 WHERE - col0 IS NOT NULL
----
10
47
99

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col1 * + + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL col2 AS col2, + 64 FROM tab2
----
23
64
40
64
58
64

query II rowsort
SELECT DISTINCT col2, col0 * ( - - col2 ) * - 28 FROM tab1
----
59
-140420
68
-173264
96
-137088

query I rowsort
SELECT DISTINCT - 50 + col1 FROM tab0
----
-29
-49
31

query II rowsort
SELECT col0, + 30 FROM tab0
----
15
30
87
30
97
30

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN + col0 AND - + 7 * 41
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7813
SELECT 19 * + COUNT( * ) FROM tab0
----
57

skipif mysql # not compatible
query I rowsort label-7813
SELECT 19 * + COUNT ( * ) FROM tab0
----
57

query I rowsort
SELECT ( 21 ) FROM tab2
----
21
21
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 AS col1, col2 col1 FROM tab1 AS cor0
----
-51
96
-85
59
-91
68

query I rowsort
SELECT - col1 * + - col2 + - - col2 AS col0 FROM tab1 AS cor0 WHERE 96 * col2 * + - 60 + 61 * + 24 / - 23 + + 92 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7817
SELECT CAST( NULL AS DECIMAL ) * - + MIN( ALL 18 ) AS col1 FROM tab0 cor0 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7817
SELECT CAST ( NULL AS REAL ) * - + MIN ( ALL 18 ) AS col1 FROM tab0 cor0 WHERE NULL IS NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 72 >= + - 86
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 * + + col0 * col1 - col1 AS col0 FROM tab2 AS cor0
----
119595
336608
379379

onlyif mysql # aggregate syntax: 
query I rowsort label-7820
SELECT - 54 * - COUNT( * ) + + + 73 AS col2 FROM tab1
----
235

skipif mysql # not compatible
query I rowsort label-7820
SELECT - 54 * - COUNT ( * ) + + + 73 AS col2 FROM tab1
----
235

query II rowsort
SELECT DISTINCT - - 46 + + - 31, col0 AS col2 FROM tab0 AS cor0
----
15
15
15
87
15
97

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 - - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7823
SELECT - + col2 / col2 * ( - - col2 ) * - - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7823
SELECT - + col2 / col2 * ( - - col2 ) * - - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7824
SELECT ALL - COUNT( * ) + - - COUNT( * ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7824
SELECT ALL - COUNT ( * ) + - - COUNT ( * ) FROM tab2 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7825
SELECT DISTINCT 75 DIV + col1 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-7825
SELECT DISTINCT 75 / + col1 FROM tab2 AS cor0
----
0
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7826
SELECT ALL - MIN( + col0 ) DIV + + COUNT( col1 ) AS col1 FROM tab2 cor0
----
-15

skipif mysql # not compatible
query I rowsort label-7826
SELECT ALL - MIN ( + col0 ) / + + COUNT ( col1 ) AS col1 FROM tab2 cor0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-7827
SELECT ALL - SUM( + + 4 ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-12

skipif mysql # not compatible
query I rowsort label-7827
SELECT ALL - SUM ( + + 4 ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-7828
SELECT DISTINCT - - ( MIN( + col0 ) ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-7828
SELECT DISTINCT - - ( MIN ( + col0 ) ) FROM tab1 AS cor0
----
51

query I rowsort
SELECT + - col2 * 64 FROM tab0 AS cor0
----
-3008
-6336
-640

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 75 IS NULL
----

query II rowsort
SELECT ALL + col2, 6 FROM tab1
----
59
6
68
6
96
6

query III rowsort
SELECT * FROM tab1 WHERE NOT - - 46 + + 26 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7833
SELECT 92 * - - COUNT( * ) FROM tab2
----
276

skipif mysql # not compatible
query I rowsort label-7833
SELECT 92 * - - COUNT ( * ) FROM tab2
----
276

onlyif mysql # aggregate syntax: 
query I rowsort label-7834
SELECT ALL - COUNT( * ) * 0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7834
SELECT ALL - COUNT ( * ) * 0 FROM tab0
----
0

query I rowsort
SELECT col0 * - + 19 AS col2 FROM tab0
----
-1653
-1843
-285

query I rowsort
SELECT ALL - col1 * 57 FROM tab1
----
-2679
-285
-798

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7837
SELECT - 97 DIV - MIN( ALL + CAST( + 30 AS SIGNED ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7837
SELECT - 97 / - MIN ( ALL + CAST ( + 30 AS INTEGER ) ) FROM tab1 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-7838
SELECT DISTINCT + col2 DIV col2 * - + col0 AS col1, - col0 AS col0 FROM tab0 AS cor0
----
-15
-15
-87
-87
-97
-97

skipif mysql # not compatible
query II rowsort label-7838
SELECT DISTINCT + col2 / col2 * - + col0 AS col1, - col0 AS col0 FROM tab0 AS cor0
----
-15
-15
-87
-87
-97
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-7839
SELECT + COUNT( * ) * - MIN( DISTINCT - col2 ), + MAX( + - col2 ) AS col0 FROM tab1 AS cor0
----
288
-59

skipif mysql # not compatible
query II rowsort label-7839
SELECT + COUNT ( * ) * - MIN ( DISTINCT - col2 ), + MAX ( + - col2 ) AS col0 FROM tab1 AS cor0
----
288
-59

query II rowsort
SELECT + 12, + col2 AS col2 FROM tab0 AS cor0
----
12
10
12
47
12
99

query I rowsort
SELECT + + 60 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL <> ( NULL )
----

query I rowsort
SELECT + col1 AS col2 FROM tab0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7843
SELECT COUNT( * ) + + 60 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
69

skipif mysql # not compatible
query I rowsort label-7843
SELECT COUNT ( * ) + + 60 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
69

onlyif mysql # DIV for integer division: 
query II rowsort label-7844
SELECT DISTINCT 38 + + 16 + + - 40 DIV - col0 AS col2, + col0 FROM tab2 AS cor0
----
54
46
54
64
54
75

skipif mysql # not compatible
query II rowsort label-7844
SELECT DISTINCT 38 + + 16 + + - 40 / - col0 AS col2, + col0 FROM tab2 AS cor0
----
54
46
54
64
54
75

query I rowsort
SELECT - + col1 * - - col0 AS col2 FROM tab2 AS cor0
----
-2346
-4928
-5025

query I rowsort
SELECT DISTINCT - + 99 AS col2 FROM tab0 AS cor0 WHERE NOT NULL <> 12
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 87 IS NULL
----

query I rowsort
SELECT DISTINCT + 93 AS col0 FROM tab2 AS cor0
----
93

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 33 * + - 66 + col0 * - col2 / + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7850
SELECT + - SUM( 14 ) AS col1 FROM tab1 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-7850
SELECT + - SUM ( 14 ) AS col1 FROM tab1 AS cor0
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-7851
SELECT + - SUM( + + ( + - col0 ) ) FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-7851
SELECT + - SUM ( + + ( + - col0 ) ) FROM tab0 AS cor0
----
199

query I rowsort
SELECT 9 + - - col1 AS col2 FROM tab1
----
14
23
56

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN - + col0 AND NULL
----

query I rowsort
SELECT - 41 + col1 AS col0 FROM tab1
----
-27
-36
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-7855
SELECT ALL - CAST( NULL AS SIGNED ) AS col1, 81 * 51 AS col2, + 64 + - ( + COUNT( * ) ) FROM tab0 AS cor0
----
NULL
4131
61

skipif mysql # not compatible
query III rowsort label-7855
SELECT ALL - CAST ( NULL AS INTEGER ) AS col1, 81 * 51 AS col2, + 64 + - ( + COUNT ( * ) ) FROM tab0 AS cor0
----
NULL
4131
61

onlyif mysql # aggregate syntax: 
query I rowsort label-7856
SELECT + SUM( - col1 ) FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-7856
SELECT + SUM ( - col1 ) FROM tab1 AS cor0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-7857
SELECT ALL - MAX( ALL + col1 ) FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-7857
SELECT ALL - MAX ( ALL + col1 ) FROM tab1
----
-47

query I rowsort
SELECT ALL + - 43 * - 68 AS col0 FROM tab1 WHERE NULL > - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - col0 col0 FROM tab0
----
225
7569
9409

query I rowsort
SELECT DISTINCT + col2 * - + col2 * - ( - col0 ) FROM tab0
----
-33135
-8700
-950697

query IIIIII rowsort
SELECT * FROM ( tab1 cor0 CROSS JOIN tab2 AS cor1 ) WHERE NULL > NULL
----

query II rowsort
SELECT ALL + col0, - 6 FROM tab0 AS cor0
----
15
-6
87
-6
97
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-7863
SELECT DISTINCT - - 75 DIV 6 AS col1 FROM tab1 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-7863
SELECT DISTINCT - - 75 / 6 AS col1 FROM tab1 AS cor0
----
12

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 79 * 17 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-7865
SELECT col1 DIV + col2 * col2 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7865
SELECT col1 / + col2 * col2 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT - 13 * + 26 * + col0 FROM tab2 AS cor0
----
-15548
-21632
-25350

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col2 col2, 5 FROM tab0 AS cor0
----
10
5
47
5
99
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7868
SELECT DISTINCT + - CAST( 27 AS SIGNED ) FROM tab2 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-7868
SELECT DISTINCT + - CAST ( 27 AS INTEGER ) FROM tab2 AS cor0
----
-27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col1 + - ( + - col1 ) col0 FROM tab2 AS cor0
----
2652
4556
6006

query II rowsort
SELECT DISTINCT col2 AS col1, + col0 AS col0 FROM tab2 AS cor0
----
23
46
40
64
58
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0, col2 col2 FROM tab1 AS cor0
----
51
96
85
59
91
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7872
SELECT + 44 + 23 / 95 * - CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT ( NOT ( NULL ) IS NULL )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7872
SELECT + 44 + 23 / 95 * - CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT ( NOT ( NULL ) IS NULL )
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7873
SELECT ALL - COUNT( * ) * + CAST( NULL AS SIGNED ) + COUNT( * ) AS col0 FROM tab0 WHERE col1 NOT IN ( col0, - col2, - ( + - col0 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7873
SELECT ALL - COUNT ( * ) * + CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col0 FROM tab0 WHERE col1 NOT IN ( col0, - col2, - ( + - col0 ) )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7874
SELECT + CAST( NULL AS DECIMAL ) * col1 + + - col1 * - - col1 + - col0 * + col2 * col2 + - ( - col0 ) + - col2 + + col1 FROM tab1 WHERE NOT ( col0 ) <= + col1 * - col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7874
SELECT + CAST ( NULL AS REAL ) * col1 + + - col1 * - - col1 + - col0 * + col2 * col2 + - ( - col0 ) + - col2 + + col1 FROM tab1 WHERE NOT ( col0 ) <= + col1 * - col2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7875
SELECT DISTINCT + 56 DIV - ( - - col2 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7875
SELECT DISTINCT + 56 / - ( - - col2 ) FROM tab1
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7876
SELECT ALL col2 * + col2 AS col1, CAST( NULL AS DECIMAL ) * + col2 FROM tab2
----
1600
NULL
3364
NULL
529
NULL

skipif mysql # not compatible
query II rowsort label-7876
SELECT ALL col2 * + col2 AS col1, CAST ( NULL AS REAL ) * + col2 FROM tab2
----
1600
NULL
3364
NULL
529
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7877
SELECT COUNT( * ) * - 29 FROM tab0
----
-87

skipif mysql # not compatible
query I rowsort label-7877
SELECT COUNT ( * ) * - 29 FROM tab0
----
-87

query I rowsort
SELECT DISTINCT ( - - 31 ) AS col1 FROM tab2
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7879
SELECT - 68 / 61 + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7879
SELECT - 68 / 61 + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - 74 AS col2 FROM tab1 AS cor0 WHERE NOT col1 + 10 + col2 * + col2 >= col0 + + col0 + + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7881
SELECT MIN( - 7 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-7

skipif mysql # not compatible
query I rowsort label-7881
SELECT MIN ( - 7 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-7

query I rowsort
SELECT DISTINCT col2 + - 33 AS col0 FROM tab2 AS cor0
----
-10
25
7

onlyif mysql # DIV for integer division: 
query I rowsort label-7883
SELECT - 87 DIV col0 + - - col0 * + 22 + - 21 + - col2 + - - 27 + - - col2 * - - col1 * col1 FROM tab2 AS cor0
----
238533
261959
60817

skipif mysql # not compatible
query I rowsort label-7883
SELECT - 87 / col0 + - - col0 * + 22 + - 21 + - col2 + - - 27 + - - col2 * - - col1 * col1 FROM tab2 AS cor0
----
238533
261959
60817

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NOT - - 84 = - - 35 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7885
SELECT DISTINCT 11 + + 77 * + col2 + - - ( + CAST( 42 AS SIGNED ) ) AS col0 FROM tab0
----
3672
7676
823

skipif mysql # not compatible
query I rowsort label-7885
SELECT DISTINCT 11 + + 77 * + col2 + - - ( + CAST ( 42 AS INTEGER ) ) AS col0 FROM tab0
----
3672
7676
823

query I rowsort
SELECT ALL - col1 - - + col0 FROM tab2
----
-13
-5
8

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col1 / col1 * - col0 NOT BETWEEN + - col0 + col1 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7888
SELECT DISTINCT 70 DIV ( + col0 ) FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-7888
SELECT DISTINCT 70 / ( + col0 ) FROM tab1
----
0
1

query III rowsort
SELECT * FROM tab2 WHERE + + 3 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col1 * col0 * - col1 AS col2 FROM tab2
----
-119646
-336675
-379456

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7891
SELECT - CAST( - + col2 AS SIGNED ) * - + col2 AS col0 FROM tab0
----
-100
-2209
-9801

skipif mysql # not compatible
query I rowsort label-7891
SELECT - CAST ( - + col2 AS INTEGER ) * - + col2 AS col0 FROM tab0
----
-100
-2209
-9801

query I rowsort
SELECT - + col0 AS col1 FROM tab1 WHERE - col1 IS NOT NULL
----
-51
-85
-91

onlyif mysql # DIV for integer division: 
query II rowsort label-7893
SELECT + col1 * 88 AS col2, + ( - col0 ) DIV 7 AS col1 FROM tab1
----
1232
-7
4136
-13
440
-12

skipif mysql # not compatible
query II rowsort label-7893
SELECT + col1 * 88 AS col2, + ( - col0 ) / 7 AS col1 FROM tab1
----
1232
-7
4136
-13
440
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-7894
SELECT - MIN( - 82 ) FROM tab2
----
82

skipif mysql # not compatible
query I rowsort label-7894
SELECT - MIN ( - 82 ) FROM tab2
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-7895
SELECT + 50 - COUNT( * ) FROM tab0 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-7895
SELECT + 50 - COUNT ( * ) FROM tab0 AS cor0
----
47

query I rowsort
SELECT ALL + col2 * - 95 + 0 FROM tab0 AS cor0
----
-4465
-9405
-950

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7897
SELECT ALL + - 59 - col1 + col0 + 36 * CAST( NULL AS SIGNED ) / + + 13 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-7897
SELECT ALL + - 59 - col1 + col0 + 36 * CAST ( NULL AS INTEGER ) / + + 13 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 69 * - - col1 + + + col0 FROM tab1 AS cor0
----
1017
3334
430

onlyif mysql # aggregate syntax: 
query I rowsort label-7899
SELECT ALL + COUNT( * ) col2 FROM tab1 WHERE NOT NULL = NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7899
SELECT ALL + COUNT ( * ) col2 FROM tab1 WHERE NOT NULL = NULL
----
0

query II rowsort
SELECT DISTINCT ( + col2 ), col2 FROM tab0
----
10
10
47
47
99
99

query III rowsort
SELECT * FROM tab1 WHERE NOT + + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - ( - col1 ), + 76 AS col1 FROM tab1 AS cor0
----
14
76
47
76
5
76

query I rowsort
SELECT DISTINCT + col0 * - 38 AS col1 FROM tab0 AS cor0
----
-3306
-3686
-570

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col1 * + col2 * + col0 - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7905
SELECT + COUNT( + col0 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7905
SELECT + COUNT ( + col0 ) AS col2 FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT - + col0 + + col2 + col0 AS col2 FROM tab0 AS cor0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7907
SELECT - COUNT( DISTINCT + + 83 ) - COUNT( * ) FROM tab2 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-7907
SELECT - COUNT ( DISTINCT + + 83 ) - COUNT ( * ) FROM tab2 AS cor0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-7908
SELECT + 1 - MIN( DISTINCT col1 ) AS col1 FROM tab2 AS cor0
----
-50

skipif mysql # not compatible
query I rowsort label-7908
SELECT + 1 - MIN ( DISTINCT col1 ) AS col1 FROM tab2 AS cor0
----
-50

query I rowsort
SELECT + 72 - - 1 FROM tab2 AS cor0
----
73
73
73

query I rowsort
SELECT DISTINCT + col1 - + - col0 FROM tab1 WHERE NOT - + col2 BETWEEN - col2 AND + col2
----

query I rowsort
SELECT + col2 * col1 + - 32 AS col0 FROM tab1
----
1312
263
3164

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7912
SELECT ALL - COUNT( * ) * - CAST( NULL AS SIGNED ) - - 53 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7912
SELECT ALL - COUNT ( * ) * - CAST ( NULL AS INTEGER ) - - 53 AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7913
SELECT DISTINCT + SUM( - 59 ) DIV - + 15 FROM tab0 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-7913
SELECT DISTINCT + SUM ( - 59 ) / - + 15 FROM tab0 AS cor0
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7914
SELECT 29 AS col1, CAST( NULL AS SIGNED ) col0 FROM tab0 AS cor0 WHERE NOT + 15 = NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7914
SELECT 29 AS col1, CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0 WHERE NOT + 15 = NULL
----

query I rowsort
SELECT - 66 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-66
-66
-66

query II rowsort
SELECT ALL col0 AS col2, - col0 AS col1 FROM tab2 cor0
----
46
-46
64
-64
75
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-7917
SELECT + COUNT( ALL + col1 ) AS col0 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7917
SELECT + COUNT ( ALL + col1 ) AS col0 FROM tab1 cor0
----
3

query I rowsort
SELECT DISTINCT 31 - - col1 AS col0 FROM tab1
----
36
45
78

query I rowsort
SELECT + 62 - - 76 * + 31 AS col2 FROM tab2 WHERE 7 / + col2 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ( 9 ) FROM tab0
----
9
9
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7921
SELECT + CAST( + col2 AS SIGNED ) AS col2 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-7921
SELECT + CAST ( + col2 AS INTEGER ) AS col2 FROM tab1
----
59
68
96

query I rowsort
SELECT DISTINCT col0 * - col2 FROM tab2 WHERE NULL NOT IN ( - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7923
SELECT MAX( ALL 11 ) AS col2 FROM tab2
----
11

skipif mysql # not compatible
query I rowsort label-7923
SELECT MAX ( ALL 11 ) AS col2 FROM tab2
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-7924
SELECT ALL + COUNT( * ) AS col2 FROM tab1 WHERE + col2 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-7924
SELECT ALL + COUNT ( * ) AS col2 FROM tab1 WHERE + col2 <= NULL
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT 5 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7926
SELECT + AVG ( ALL - col0 ) AS col2 FROM tab0 WHERE NOT CAST( NULL AS SIGNED ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7926
SELECT + AVG ( ALL - col0 ) AS col2 FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7927
SELECT DISTINCT COUNT( * ) * AVG ( 39 ) FROM tab2 WHERE NOT col1 NOT BETWEEN NULL AND - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7927
SELECT DISTINCT COUNT ( * ) * AVG ( 39 ) FROM tab2 WHERE NOT col1 NOT BETWEEN NULL AND - col0
----
NULL

query I rowsort
SELECT ALL + ( + 45 ) FROM tab1
----
45
45
45

onlyif mysql # aggregate syntax: 
query I rowsort label-7929
SELECT 60 + - COUNT( DISTINCT - col2 ) AS col0 FROM tab1 WHERE NOT col0 <> 20
----
60

skipif mysql # not compatible
query I rowsort label-7929
SELECT 60 + - COUNT ( DISTINCT - col2 ) AS col0 FROM tab1 WHERE NOT col0 <> 20
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-7930
SELECT DISTINCT COUNT( * ) AS col1 FROM tab0 WHERE NOT NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-7930
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab0 WHERE NOT NULL < NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 * col0 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7932
SELECT DISTINCT - CAST( + col2 AS SIGNED ) AS col1 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-7932
SELECT DISTINCT - CAST ( + col2 AS INTEGER ) AS col1 FROM tab2
----
-23
-40
-58

query III rowsort
SELECT ALL * FROM tab2 WHERE + col1 <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7934
SELECT - col0 + - 1 DIV col0 AS col1 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-7934
SELECT - col0 + - 1 / col0 AS col1 FROM tab2
----
-46
-64
-75

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 61 + col2 BETWEEN 37 * + 95 AND ( NULL )
----

query I rowsort
SELECT col0 * + col0 + col2 FROM tab1
----
2697
7284
8349

onlyif mysql # aggregate syntax: 
query I rowsort label-7937
SELECT ALL + COUNT( * ) + 55 FROM tab1
----
58

skipif mysql # not compatible
query I rowsort label-7937
SELECT ALL + COUNT ( * ) + 55 FROM tab1
----
58

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col0 * col1 NOT BETWEEN + ( + col2 ) * 20 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col2 FROM tab0 WHERE NULL <> ( NULL )
----

query I rowsort
SELECT ALL + col0 + + col2 * col0 FROM tab1
----
4947
5100
6279

query I rowsort
SELECT ALL 39 + - col2 AS col2 FROM tab2
----
-1
-19
16

query III rowsort
SELECT * FROM tab0 WHERE NULL <= 21 * - 17
----

query I rowsort
SELECT ALL - col0 FROM tab2 WHERE col2 IS NOT NULL
----
-46
-64
-75

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NULL < - ( - ( - col1 ) ) * 77
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) <= col0 * col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7946
SELECT CAST( NULL AS SIGNED ) col2 FROM tab0 cor0 WHERE NULL >= col1
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7946
SELECT CAST ( NULL AS INTEGER ) col2 FROM tab0 cor0 WHERE NULL >= col1
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT IN ( + col0 + 84 * col0 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7948
SELECT 9 DIV - COUNT( * ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7948
SELECT 9 / - COUNT ( * ) FROM tab1 AS cor0
----
-3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 48 IN ( 36 * + col2 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( 61 * 13 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col2 FROM tab1 AS cor0 WHERE ( col2 / col2 ) <> ( col2 * + col0 )
----
-59
-68
-96

query I rowsort
SELECT 98 AS col2 FROM tab0 AS cor0 WHERE ( col1 ) * - 83 IN ( + 0 )
----

query I rowsort
SELECT + col1 * + 55 FROM tab2 AS cor0 WHERE NULL IN ( col0 + col0 )
----

query I rowsort
SELECT DISTINCT + - 45 + col0 FROM tab1 cor0
----
40
46
6

query III rowsort
SELECT * FROM tab1 cor0 WHERE - col0 * - col1 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) <= col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 77 + - col0 * col0 col2 FROM tab1 AS cor0
----
-2678
-7302
-8358

query I rowsort
SELECT DISTINCT + col0 - + 3 FROM tab2 AS cor0
----
43
61
72

query I rowsort
SELECT DISTINCT 38 * 87 FROM tab2 AS cor0 WHERE + col1 IN ( 71 + col0 * - 10 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT IN ( + col1 + + 88 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7961
SELECT ALL + col0 * - 14 + CAST( col2 AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-621
-856
-992

skipif mysql # not compatible
query I rowsort label-7961
SELECT ALL + col0 * - 14 + CAST ( col2 AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-621
-856
-992

query I rowsort
SELECT col2 * + col1 FROM tab0 AS cor0 WHERE col1 + 31 IS NULL
----

query I rowsort
SELECT ALL - + col0 - col2 AS col2 FROM tab2 cor0
----
-104
-133
-69

query I rowsort
SELECT 3 * + col2 FROM tab2
----
120
174
69

query I rowsort
SELECT ALL + 33 - + col1 * col1 AS col0 FROM tab1
----
-163
-2176
8

query I rowsort
SELECT ALL - col0 * - + col2 AS col1 FROM tab0
----
705
870
9603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7967
SELECT col2 * - 34 * CAST( col0 AS SIGNED ) AS col2 FROM tab2
----
-147900
-35972
-87040

skipif mysql # not compatible
query I rowsort label-7967
SELECT col2 * - 34 * CAST ( col0 AS INTEGER ) AS col2 FROM tab2
----
-147900
-35972
-87040

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL <> - col0 * + 43
----

query I rowsort
SELECT col0 - - 79 FROM tab0
----
166
176
94

query I rowsort
SELECT col1 - + - col1 - - 63 * col0 FROM tab2
----
3000
4186
4859

onlyif mysql # aggregate syntax: 
query I rowsort label-7971
SELECT ALL COUNT( * ) * + 35 FROM tab1 WHERE NOT + 13 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-7971
SELECT ALL COUNT ( * ) * + 35 FROM tab1 WHERE NOT + 13 >= NULL
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 * - col2 - col1 > col1 - - 5
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - col1 ) > + col0 + 33 * 55 OR - 21 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7974
SELECT CAST( 69 AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE NOT 91 NOT BETWEEN NULL AND + col2 / col2
----

skipif mysql # not compatible
query I rowsort label-7974
SELECT CAST ( 69 AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE NOT 91 NOT BETWEEN NULL AND + col2 / col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7975
SELECT DISTINCT + 52 * + 52 * CAST( MAX( 5 ) / - SUM( DISTINCT + col1 + - col2 ) AS SIGNED ) - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7975
SELECT DISTINCT + 52 * + 52 * CAST ( MAX ( 5 ) / - SUM ( DISTINCT + col1 + - col2 ) AS INTEGER ) - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT + col0 * col1 + - col0 FROM tab0 AS cor0 WHERE NOT ( + col1 ) < ( col1 + - ( + col1 ) )
----
0
1200
1740

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7977
SELECT ALL + col1 AS col1, + CAST( 74 AS SIGNED ) * 95 FROM tab0
----
1
7030
21
7030
81
7030

skipif mysql # not compatible
query II rowsort label-7977
SELECT ALL + col1 AS col1, + CAST ( 74 AS INTEGER ) * 95 FROM tab0
----
1
7030
21
7030
81
7030

onlyif mysql # aggregate syntax: 
query I rowsort label-7978
SELECT + MIN( + ( - ( ( - col1 ) ) ) ) AS col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-7978
SELECT + MIN ( + ( - ( ( - col1 ) ) ) ) AS col2 FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7979
SELECT DISTINCT COUNT( - col1 ) - 79 AS col2 FROM tab0 AS cor0 WHERE NOT col2 * col2 BETWEEN NULL AND ( col1 )
----
-76

skipif mysql # not compatible
query I rowsort label-7979
SELECT DISTINCT COUNT ( - col1 ) - 79 AS col2 FROM tab0 AS cor0 WHERE NOT col2 * col2 BETWEEN NULL AND ( col1 )
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7980
SELECT + 50 AS col2 FROM tab2 AS cor0 WHERE NOT + col1 NOT BETWEEN ( + CAST( - 22 AS SIGNED ) ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-7980
SELECT + 50 AS col2 FROM tab2 AS cor0 WHERE NOT + col1 NOT BETWEEN ( + CAST ( - 22 AS INTEGER ) ) AND NULL
----

query I rowsort
SELECT - col0 + + col1 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7982
SELECT - ( ( - col0 ) ) DIV col0 AS col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7982
SELECT - ( ( - col0 ) ) / col0 AS col1 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT - col2 * - - 21 FROM tab0 AS cor0
----
-2079
-210
-987

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col0, + 45 col0 FROM tab2 AS cor0
----
-46
45
-64
45
-75
45

onlyif mysql # aggregate syntax: 
query I rowsort label-7985
SELECT COUNT( * ) FROM tab1 AS cor0 WHERE NOT - col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7985
SELECT COUNT ( * ) FROM tab1 AS cor0 WHERE NOT - col0 IS NOT NULL
----
0

query I rowsort
SELECT + 30 * 55 * - 39 FROM tab0
----
-64350
-64350
-64350

onlyif mysql # aggregate syntax: 
query I rowsort label-7987
SELECT ALL MAX( ALL 67 ) FROM tab2 WHERE + col0 NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7987
SELECT ALL MAX ( ALL 67 ) FROM tab2 WHERE + col0 NOT BETWEEN NULL AND NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7988
SELECT + col1 + - CAST( 86 AS SIGNED ) FROM tab0 WHERE + 23 + + col1 NOT BETWEEN ( - col1 ) AND col0
----
-5

skipif mysql # not compatible
query I rowsort label-7988
SELECT + col1 + - CAST ( 86 AS INTEGER ) FROM tab0 WHERE + 23 + + col1 NOT BETWEEN ( - col1 ) AND col0
----
-5

query III rowsort
SELECT ALL * FROM tab1 WHERE + + col0 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL IS NULL AND NULL NOT BETWEEN ( NULL ) AND ( - 68 ) - - 25
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7991
SELECT ALL + COUNT( * ) + + 52 AS col2, 5 AS col1 FROM tab0 AS cor0
----
55
5

skipif mysql # not compatible
query II rowsort label-7991
SELECT ALL + COUNT ( * ) + + 52 AS col2, 5 AS col1 FROM tab0 AS cor0
----
55
5

query I rowsort
SELECT - 6 AS col1 FROM tab1 AS cor0 WHERE col0 NOT IN ( col1 )
----
-6
-6
-6

query I rowsort
SELECT + 73 + col2 + + col1 + + + col2 FROM tab0 AS cor0
----
114
248
272

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7994
SELECT - CAST( NULL AS SIGNED ) + - 86 * COUNT( * ) AS col0 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7994
SELECT - CAST ( NULL AS INTEGER ) + - 86 * COUNT ( * ) AS col0 FROM tab0 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7995
SELECT - 83 + + - COUNT( * ) col0 FROM tab2 AS cor0
----
-86

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7995
SELECT - 83 + + - COUNT ( * ) col0 FROM tab2 AS cor0
----
-86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 35 col2 FROM tab0
----
35

query I rowsort
SELECT DISTINCT 19 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col2 FROM tab1 WHERE ( - ( - 42 ) * - col2 ) <> ( NULL )
----

query I rowsort
SELECT 77 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

onlyif mysql # DIV for integer division: 
query I rowsort label-8000
SELECT ALL + + 95 * col1 + - - col1 DIV col0 FROM tab0 AS cor0
----
1995
7700
95

skipif mysql # not compatible
query I rowsort label-8000
SELECT ALL + + 95 * col1 + - - col1 / col0 FROM tab0 AS cor0
----
1995
7700
95

query I rowsort
SELECT - 39 - + + 15 FROM tab2 AS cor0
----
-54
-54
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8002
SELECT - 42 - + 30 + 71 * - - 93 * + CAST( ( - 65 ) AS SIGNED ) * 95 FROM tab1 AS cor0
----
-40773597
-40773597
-40773597

skipif mysql # not compatible
query I rowsort label-8002
SELECT - 42 - + 30 + 71 * - - 93 * + CAST ( ( - 65 ) AS INTEGER ) * 95 FROM tab1 AS cor0
----
-40773597
-40773597
-40773597

onlyif mysql # aggregate syntax: 
query I rowsort label-8003
SELECT ALL COUNT( * ) + + 31 AS col1 FROM tab0 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-8003
SELECT ALL COUNT ( * ) + + 31 AS col1 FROM tab0 AS cor0
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8004
SELECT DISTINCT col2 * - - col2 * - col2 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8004
SELECT DISTINCT col2 * - - col2 * - col2 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 51 - - col0 + - + col0 col2 FROM tab2 AS cor0
----
51
51
51

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 + - + col0 * + 99 NOT IN ( - col0 - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ( + 69 ) + - + ( + col0 ) + col1 AS col2 FROM tab1 cor0
----
-11
25
32

query I rowsort
SELECT DISTINCT - 56 - - col2 FROM tab1 AS cor0
----
12
3
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8009
SELECT DISTINCT + + 31 * col1 + - ( + + col0 ) * - + col2 + + CAST( + col1 - - 63 * - col1 AS SIGNED ) FROM tab0 AS cor0
----
-1806
219
9572

skipif mysql # not compatible
query I rowsort label-8009
SELECT DISTINCT + + 31 * col1 + - ( + + col0 ) * - + col2 + + CAST ( + col1 - - 63 * - col1 AS INTEGER ) FROM tab0 AS cor0
----
-1806
219
9572

query I rowsort
SELECT DISTINCT - col1 FROM tab1 WHERE NOT NULL IN ( - + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8011
SELECT DISTINCT 82 * + - CAST( NULL AS SIGNED ) FROM tab2, tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8011
SELECT DISTINCT 82 * + - CAST ( NULL AS INTEGER ) FROM tab2, tab2 AS cor0
----
NULL

query IIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query I rowsort
SELECT 6 FROM tab1 WHERE NOT ( ( ( NOT NULL IS NOT NULL ) ) )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( - col2 / - col0 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col1 * - col1 + 8 = ( - - 26 + + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 * col1 * + col2 FROM tab0
----
18270
57105
9603

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8017
SELECT ( - SUM( col1 ) ) * CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8017
SELECT ( - SUM ( col1 ) ) * CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8018
SELECT + SUM( col0 ) AS col1 FROM tab2 cor0
----
185

skipif mysql # not compatible
query I rowsort label-8018
SELECT + SUM ( col0 ) AS col1 FROM tab2 cor0
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-8019
SELECT + COUNT( ALL col2 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8019
SELECT + COUNT ( ALL col2 ) AS col0 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8020
SELECT - + COUNT( * ) AS col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-8020
SELECT - + COUNT ( * ) AS col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-8021
SELECT ( - COUNT( * ) ) AS col2, 6 AS col2 FROM tab2
----
-3
6

skipif mysql # not compatible
query II rowsort label-8021
SELECT ( - COUNT ( * ) ) AS col2, 6 AS col2 FROM tab2
----
-3
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8022
SELECT + ( - + MIN( ALL - col0 ) ) FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-8022
SELECT + ( - + MIN ( ALL - col0 ) ) FROM tab0 AS cor0
----
97

query II rowsort
SELECT ALL ( 60 ) + col1, - col2 AS col0 FROM tab2 AS cor0
----
111
-23
127
-58
137
-40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 89 col2 FROM tab2 AS cor0
----
89
89
89

query I rowsort
SELECT DISTINCT - 24 AS col1 FROM tab1 AS cor0
----
-24

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - ( ( - 94 ) ) * + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8027
SELECT MIN( DISTINCT + 95 ) * + 41 - - ( - COUNT( ALL - + col2 ) ) FROM tab2 AS cor0
----
3892

skipif mysql # not compatible
query I rowsort label-8027
SELECT MIN ( DISTINCT + 95 ) * + 41 - - ( - COUNT ( ALL - + col2 ) ) FROM tab2 AS cor0
----
3892

onlyif mysql # aggregate syntax: 
query I rowsort label-8028
SELECT ALL - - MAX( ALL 33 ) FROM tab0 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-8028
SELECT ALL - - MAX ( ALL 33 ) FROM tab0 AS cor0
----
33

query I rowsort
SELECT + ( + - 0 ) FROM tab0 cor0 WHERE NOT + ( + + 77 ) + + + col0 IS NULL
----
0
0
0

query I rowsort
SELECT DISTINCT - - 86 + - 15 FROM tab1 cor0
----
71

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - col2 + col2 - ( + col1 ) AND ( + col0 )
----

query I rowsort
SELECT ALL + ( - + col2 ) * - col0 + - + 82 AS col1 FROM tab2 AS cor0
----
2478
4268
976

query I rowsort
SELECT + AVG ( - col0 ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NOT ( NULL ) <= - col1 * - col1 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8034
SELECT DISTINCT - SUM( ALL + col0 ) AS col2 FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-8034
SELECT DISTINCT - SUM ( ALL + col0 ) AS col2 FROM tab1
----
-227

query I rowsort
SELECT ALL 58 + + 85 AS col0 FROM tab0
----
143
143
143

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT IN ( + 82 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8037
SELECT DISTINCT - 22 AS col2 FROM tab2 WHERE + CAST( + - col2 AS SIGNED ) NOT IN ( + ( - col2 ) / - - 26 )
----
-22

skipif mysql # not compatible
query I rowsort label-8037
SELECT DISTINCT - 22 AS col2 FROM tab2 WHERE + CAST ( + - col2 AS INTEGER ) NOT IN ( + ( - col2 ) / - - 26 )
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8038
SELECT - MIN( col1 ) / - - COUNT( * ) * - - AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8038
SELECT - MIN ( col1 ) / - - COUNT ( * ) * - - AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8039
SELECT CAST( - col2 AS SIGNED ) * + + col1 FROM tab0
----
-210
-3807
-99

skipif mysql # not compatible
query I rowsort label-8039
SELECT CAST ( - col2 AS INTEGER ) * + + col1 FROM tab0
----
-210
-3807
-99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8040
SELECT DISTINCT * FROM tab2 WHERE NOT - CAST( - col0 AS SIGNED ) + + col2 + - 76 >= NULL
----

skipif mysql # not compatible
query III rowsort label-8040
SELECT DISTINCT * FROM tab2 WHERE NOT - CAST ( - col0 AS INTEGER ) + + col2 + - 76 >= NULL
----

query I rowsort
SELECT DISTINCT + 83 + - ( col0 ) + - col1 * 79 AS col2 FROM tab1
----
-1074
-3721
-397

onlyif mysql # aggregate syntax: 
query I rowsort label-8042
SELECT - + ( COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8042
SELECT - + ( COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT DISTINCT - col0 FROM tab1 AS cor0 WHERE - col2 + ( + col0 ) IS NOT NULL
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-8044
SELECT DISTINCT + SUM( - + 37 ) + 18 AS col0 FROM tab0
----
-93

skipif mysql # not compatible
query I rowsort label-8044
SELECT DISTINCT + SUM ( - + 37 ) + 18 AS col0 FROM tab0
----
-93

query I rowsort
SELECT + col2 * - - col2 AS col0 FROM tab0 WHERE NULL BETWEEN - col1 AND ( - - col1 * + + col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 58 * + + col0 - col1 NOT IN ( 83 )
----

query IIIIII rowsort
SELECT ALL * FROM tab2 cor0 CROSS JOIN tab2 AS cor1 WHERE + 97 IS NOT NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

query I rowsort
SELECT DISTINCT + col1 * - 5 * col0 * - col2 AS col0 FROM tab2
----
1457250
269790
985600

query II rowsort
SELECT col2 AS col1, - 98 FROM tab1 cor0 WHERE NULL IS NULL
----
59
-98
68
-98
96
-98

query I rowsort
SELECT DISTINCT - 7 + - + col1 AS col2 FROM tab0 AS cor0
----
-28
-8
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8051
SELECT DISTINCT + - COUNT( * ) - - + CAST( - - 90 AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE + col2 * + col0 IS NOT NULL
----
87

skipif mysql # not compatible
query I rowsort label-8051
SELECT DISTINCT + - COUNT ( * ) - - + CAST ( - - 90 AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE + col2 * + col0 IS NOT NULL
----
87

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 <> + - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 WHERE 89 IN ( - 90, 20 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8054
SELECT col1, col0 + + col0 * - + col0 * + - CAST( + 71 AS SIGNED ) * + 87 AS col2 FROM tab1
----
14
16066428
47
51151828
5
44628910

skipif mysql # not compatible
query II rowsort label-8054
SELECT col1, col0 + + col0 * - + col0 * + - CAST ( + 71 AS INTEGER ) * + 87 AS col2 FROM tab1
----
14
16066428
47
51151828
5
44628910

onlyif mysql # aggregate syntax: 
query I rowsort label-8055
SELECT DISTINCT + MAX( DISTINCT - col0 ) * + ( - - COUNT( * ) ) * + SUM( - 44 ) FROM tab0
----
5940

skipif mysql # not compatible
query I rowsort label-8055
SELECT DISTINCT + MAX ( DISTINCT - col0 ) * + ( - - COUNT ( * ) ) * + SUM ( - 44 ) FROM tab0
----
5940

query I rowsort
SELECT - 10 * + 86 AS col0 FROM tab0
----
-860
-860
-860

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8057
SELECT + COUNT( * ) * - - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8057
SELECT + COUNT ( * ) * - - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + 42 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL > - + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col1 * - col2 col1 FROM tab2
----
-123200
-225388
-26979

query I rowsort
SELECT - + ( - + 3 ) FROM tab0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 * col1 BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col0 IN ( - - col0 * + - col1 * col1 / + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8064
SELECT ALL - MAX( ALL - col0 ) col0 FROM tab2 cor0
----
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8064
SELECT ALL - MAX ( ALL - col0 ) col0 FROM tab2 cor0
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-8065
SELECT ALL - col0 DIV + - 91 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8065
SELECT ALL - col0 / + - 91 FROM tab0
----
0
0
1

query II rowsort
SELECT DISTINCT - 28, col1 FROM tab1 cor0
----
-28
14
-28
47
-28
5

query II rowsort
SELECT DISTINCT - - 3 AS col2, - col1 AS col1 FROM tab0 AS cor0
----
3
-1
3
-21
3
-81

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col0 / - col0 <= NULL
----

query I rowsort
SELECT ALL - col2 * col0 + col2 AS col0 FROM tab2 cor0
----
-1035
-2520
-4292

query II rowsort
SELECT ALL - 65 * + col2, col2 FROM tab1 AS cor0
----
-3835
59
-4420
68
-6240
96

query II rowsort
SELECT col0 * - col1, col2 AS col0 FROM tab2 AS cor0
----
-2346
23
-4928
40
-5025
58

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 * col1 * + + col1 FROM tab2 cor0
----
132651
300763
456533

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8074
SELECT CAST( + col2 AS SIGNED ) * - + 82 FROM tab1 cor0
----
-4838
-5576
-7872

skipif mysql # not compatible
query I rowsort label-8074
SELECT CAST ( + col2 AS INTEGER ) * - + 82 FROM tab1 cor0
----
-4838
-5576
-7872

onlyif mysql # DIV for integer division: 
query I rowsort label-8075
SELECT 94 * col2 DIV + + col0 FROM tab0 AS cor0
----
10
294
95

skipif mysql # not compatible
query I rowsort label-8075
SELECT 94 * col2 / + + col0 FROM tab0 AS cor0
----
10
294
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + ( col0 ) + + ( - col2 ) * - col2 col1 FROM tab2 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT 81 + col2 FROM tab2
----
104
121
139

query III rowsort
SELECT * FROM tab1 WHERE ( NOT ( - 49 ) IS NOT NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8079
SELECT ALL 69 DIV col2 AS col0 FROM tab0
----
0
1
6

skipif mysql # not compatible
query I rowsort label-8079
SELECT ALL 69 / col2 AS col0 FROM tab0
----
0
1
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8080
SELECT DISTINCT - MIN( - + 40 ) AS col2 FROM tab0
----
40

skipif mysql # not compatible
query I rowsort label-8080
SELECT DISTINCT - MIN ( - + 40 ) AS col2 FROM tab0
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-8081
SELECT DISTINCT col0 DIV col1 + + 32 FROM tab1
----
33
35
49

skipif mysql # not compatible
query I rowsort label-8081
SELECT DISTINCT col0 / col1 + + 32 FROM tab1
----
33
35
49

query I rowsort
SELECT ALL + 24 + 41 AS col0 FROM tab2 cor0
----
65
65
65

query I rowsort
SELECT - 70 AS col2 FROM tab1 AS cor0 WHERE NULL BETWEEN + + col0 AND + col2 OR NOT - + col1 < 79
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8084
SELECT DISTINCT 48 DIV col1 FROM tab1 AS cor0
----
1
3
9

skipif mysql # not compatible
query I rowsort label-8084
SELECT DISTINCT 48 / col1 FROM tab1 AS cor0
----
1
3
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 30 col1, - col1 FROM tab0
----
-30
-1
-30
-21
-30
-81

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN NULL AND + col2 * - col0
----

query I rowsort
SELECT 88 - + - col2 AS col1 FROM tab2 AS cor0
----
111
128
146

query II rowsort
SELECT - 68 AS col0, - col0 + col0 FROM tab1 AS cor0
----
-68
0
-68
0
-68
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 < + 91
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8090
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 <= - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8090
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 <= - CAST ( NULL AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8091
SELECT - 83 DIV - col2 AS col0 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-8091
SELECT - 83 / - col2 AS col0 FROM tab1 AS cor0
----
0
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8092
SELECT ALL - MIN( DISTINCT - 32 ) AS col0 FROM tab1 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-8092
SELECT ALL - MIN ( DISTINCT - 32 ) AS col0 FROM tab1 AS cor0
----
32

query I rowsort
SELECT ALL - 61 AS col1 FROM tab1 cor0 WHERE NOT ( + 2 ) IS NULL
----
-61
-61
-61

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8094
SELECT DISTINCT - CAST( col1 AS DECIMAL ) * - col2 FROM tab0 AS cor0 WHERE col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-8094
SELECT DISTINCT - CAST ( col1 AS REAL ) * - col2 FROM tab0 AS cor0 WHERE col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8095
SELECT DISTINCT - + SUM( ALL + - 0 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8095
SELECT DISTINCT - + SUM ( ALL + - 0 ) FROM tab1 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL <> NULL )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NOT 8 * 0 + + col1 + - col1 IS NOT NULL )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 41 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col0 * ( col1 ) + + col2 <= - + 59 + + 32 / - - 73
----
97
1
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8100
SELECT * FROM tab1 WHERE NOT CAST( - col2 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8100
SELECT * FROM tab1 WHERE NOT CAST ( - col2 AS INTEGER ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 47 col2 FROM tab0
----
47
47
47

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 IS NULL OR NOT - - col0 NOT BETWEEN NULL AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8103
SELECT - col2 * + - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8103
SELECT - col2 * + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + ( - 3 ) FROM tab2 AS cor0
----
-3
-3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8105
SELECT - COUNT( * ) col1 FROM tab2 AS cor0 WHERE NOT + ( - col2 ) NOT IN ( - col0, + 96, + col1, + col2 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8105
SELECT - COUNT ( * ) col1 FROM tab2 AS cor0 WHERE NOT + ( - col2 ) NOT IN ( - col0, + 96, + col1, + col2 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8106
SELECT ALL - + MAX( DISTINCT - 5 ) FROM tab0 AS cor0 WHERE NOT - CAST( col1 AS SIGNED ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8106
SELECT ALL - + MAX ( DISTINCT - 5 ) FROM tab0 AS cor0 WHERE NOT - CAST ( col1 AS INTEGER ) IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8107
SELECT DISTINCT + COUNT( ALL + col2 ), - 15 AS col1 FROM tab1 AS cor0
----
3
-15

skipif mysql # not compatible
query II rowsort label-8107
SELECT DISTINCT + COUNT ( ALL + col2 ), - 15 AS col1 FROM tab1 AS cor0
----
3
-15

query I rowsort
SELECT ALL - ( col2 ) * + - 1 AS col2 FROM tab0
----
10
47
99

query I rowsort
SELECT DISTINCT - + 25 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - col0 * + 19 AS col1 FROM tab2
----
-1216
-1425
-874

onlyif mysql # aggregate syntax: 
query I rowsort label-8111
SELECT ALL - 31 * - - MAX( DISTINCT 96 ) + + 57 + ( - + COUNT( * ) ) * + 8 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-2991

skipif mysql # not compatible
query I rowsort label-8111
SELECT ALL - 31 * - - MAX ( DISTINCT 96 ) + + 57 + ( - + COUNT ( * ) ) * + 8 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-2991

query I rowsort
SELECT ALL col2 + - 91 AS col2 FROM tab2
----
-33
-51
-68

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL > + ( - + 40 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8114
SELECT + col1 + + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8114
SELECT + col1 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8115
SELECT ALL 75 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8115
SELECT ALL 75 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 BETWEEN + 42 AND + 53
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8117
SELECT ALL + col1 + - 60 + - CAST( - 22 AS SIGNED ) FROM tab0 AS cor0 WHERE - col2 + - + col2 IS NOT NULL OR NULL IS NOT NULL
----
-17
-37
43

skipif mysql # not compatible
query I rowsort label-8117
SELECT ALL + col1 + - 60 + - CAST ( - 22 AS INTEGER ) FROM tab0 AS cor0 WHERE - col2 + - + col2 IS NOT NULL OR NULL IS NOT NULL
----
-17
-37
43

onlyif mysql # DIV for integer division: 
query I rowsort label-8118
SELECT DISTINCT - col0 DIV + 87 + + col0 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-8118
SELECT DISTINCT - col0 / + 87 + + col0 FROM tab2 AS cor0
----
46
64
75

onlyif mysql # aggregate syntax: 
query II rowsort label-8119
SELECT + COUNT( * ), + COUNT( + col0 ) AS col1 FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-8119
SELECT + COUNT ( * ), + COUNT ( + col0 ) AS col1 FROM tab0
----
3
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8120
SELECT ALL COUNT( - + CAST( 87 AS SIGNED ) ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8120
SELECT ALL COUNT ( - + CAST ( 87 AS INTEGER ) ) AS col0 FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8121
SELECT CAST( NULL AS SIGNED ) * - 15 * 30 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8121
SELECT CAST ( NULL AS INTEGER ) * - 15 * 30 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8122
SELECT DISTINCT col2 DIV + col2 AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-8122
SELECT DISTINCT col2 / + col2 AS col1 FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8123
SELECT DISTINCT MIN( - - 80 ) AS col2 FROM tab1
----
80

skipif mysql # not compatible
query I rowsort label-8123
SELECT DISTINCT MIN ( - - 80 ) AS col2 FROM tab1
----
80

query II rowsort
SELECT col1 AS col2, + col1 AS col1 FROM tab0
----
1
1
21
21
81
81

query I rowsort
SELECT DISTINCT col1 + - 16 FROM tab0
----
-15
5
65

onlyif mysql # DIV for integer division: 
query II rowsort label-8126
SELECT ALL col2 col0, - 55 DIV col2 + - col0 FROM tab1 AS cor0
----
59
-85
68
-91
96
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8126
SELECT ALL col2 col0, - 55 / col2 + - col0 FROM tab1 AS cor0
----
59
-85
68
-91
96
-51

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 42 IS NOT NULL
----

query I rowsort
SELECT + col0 - + 65 + col1 AS col0 FROM tab2 AS cor0
----
32
76
77

query I rowsort
SELECT DISTINCT - 43 + - col0 AS col2 FROM tab1 AS cor0
----
-128
-134
-94

query I rowsort
SELECT col1 + - 46 AS col2 FROM tab2
----
21
31
5

query I rowsort
SELECT ALL - 4 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5784540a5af6ca2be84399d314acd2fd

query I rowsort
SELECT 81 * 42 AS col2 FROM tab1
----
3402
3402
3402

onlyif mysql # aggregate syntax: 
query I rowsort label-8133
SELECT ALL MAX( + + 84 ) col2 FROM tab0
----
84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8133
SELECT ALL MAX ( + + 84 ) col2 FROM tab0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-8134
SELECT + MAX( DISTINCT - col0 ) col2 FROM tab0
----
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8134
SELECT + MAX ( DISTINCT - col0 ) col2 FROM tab0
----
-15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col1 FROM tab1 AS cor0 WHERE NOT NULL >= - col2 * - + 66 / + col1 * + col0 / - 47
----

query I rowsort
SELECT ALL - col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 > - + col2
----

query I rowsort
SELECT ALL - - col1 * - - col2 FROM tab1 AS cor0 WHERE col2 / - - col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8139
SELECT DISTINCT + 80 DIV + - col1 FROM tab1 AS cor0
----
-1
-16
-5

skipif mysql # not compatible
query I rowsort label-8139
SELECT DISTINCT + 80 / + - col1 FROM tab1 AS cor0
----
-1
-16
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-8140
SELECT + - col0 DIV + col1 + col2 - - + col2 + 93 + - 31 * - 26 FROM tab2 AS cor0
----
1014
945
979

skipif mysql # not compatible
query I rowsort label-8140
SELECT + - col0 / + col1 + col2 - - + col2 + 93 + - 31 * - 26 FROM tab2 AS cor0
----
1014
945
979

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8141
SELECT - SUM( CAST( NULL AS DECIMAL ) ) col1 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8141
SELECT - SUM ( CAST ( NULL AS REAL ) ) col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8142
SELECT ALL SUM( DISTINCT - col0 ) AS col2 FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-8142
SELECT ALL SUM ( DISTINCT - col0 ) AS col2 FROM tab0
----
-199

query II rowsort
SELECT DISTINCT + col0 AS col1, + col2 AS col1 FROM tab2
----
46
23
64
40
75
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8144
SELECT - SUM( DISTINCT - + 97 ) FROM tab2
----
97

skipif mysql # not compatible
query I rowsort label-8144
SELECT - SUM ( DISTINCT - + 97 ) FROM tab2
----
97

query I rowsort
SELECT - - col2 + - 40 FROM tab0 WHERE NOT NULL = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8146
SELECT DISTINCT 74 AS col2, - CAST( + COUNT( * ) AS SIGNED ) col0 FROM tab1
----
74
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8146
SELECT DISTINCT 74 AS col2, - CAST ( + COUNT ( * ) AS INTEGER ) col0 FROM tab1
----
74
-3

query III rowsort
SELECT ALL * FROM tab0 WHERE + 23 IS NULL
----

query II rowsort
SELECT + 18, - col0 * - 60 AS col2 FROM tab1
----
18
3060
18
5100
18
5460

query I rowsort
SELECT DISTINCT + ( - + ( col1 ) ) FROM tab0
----
-1
-21
-81

query II rowsort
SELECT - col0 * col1 * + col2, - col2 AS col0 FROM tab2
----
-197120
-40
-291450
-58
-53958
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-8151
SELECT ALL SUM( ALL + col0 ) AS col2 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-8151
SELECT ALL SUM ( ALL + col0 ) AS col2 FROM tab2 AS cor0
----
185

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 <> + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8153
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 <= - col2 + CAST( col1 AS SIGNED )
----
51
14
96

skipif mysql # not compatible
query III rowsort label-8153
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 <= - col2 + CAST ( col1 AS INTEGER )
----
51
14
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 98 + + - 66 col2 FROM tab1 AS cor0
----
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 + - 84 col1 FROM tab1 AS cor0
----
-131
-89
-98

query I rowsort
SELECT - col1 / - 38 * - - col1 + - col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + col1, - col1, + 61 / + 33 + + 56 )
----

query I rowsort
SELECT DISTINCT - col2 * + + 10 * - + col1 * - ( col2 ) FROM tab2 cor0
----
-1232000
-2253880
-269790

query I rowsort
SELECT + col2 AS col1 FROM tab1 WHERE col2 <> NULL
----

query I rowsort
SELECT + + 21 FROM tab0 cor0
----
21
21
21

query I rowsort
SELECT + ( + - 29 ) + - 70 AS col1 FROM tab1 AS cor0 WHERE col1 >= col0 - + - 20 * + col2
----

query I rowsort
SELECT DISTINCT + col0 + - - col1 FROM tab0 AS cor0
----
108
96
98

query I rowsort
SELECT DISTINCT - col1 + + - col1 - col0 * + 33 + - ( + - ( - + 86 ) ) FROM tab2 AS cor0
----
-1706
-2352
-2695

onlyif mysql # aggregate syntax: 
query I rowsort label-8163
SELECT + + MAX( + 47 ) FROM tab0 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-8163
SELECT + + MAX ( + 47 ) FROM tab0 AS cor0
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8164
SELECT DISTINCT - CAST( - + col2 AS SIGNED ) col1, + col0 col1 FROM tab0 AS cor0
----
10
87
47
15
99
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8164
SELECT DISTINCT - CAST ( - + col2 AS INTEGER ) col1, + col0 col1 FROM tab0 AS cor0
----
10
87
47
15
99
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8165
SELECT DISTINCT + SUM( DISTINCT + col0 ) AS col1 FROM tab0 AS cor0 WHERE ( NOT NULL <= - col2 + + 72 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8165
SELECT DISTINCT + SUM ( DISTINCT + col0 ) AS col1 FROM tab0 AS cor0 WHERE ( NOT NULL <= - col2 + + 72 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8166
SELECT DISTINCT 98 * - + SUM( ALL 1 ) - - - 2 AS col2 FROM tab2
----
-296

skipif mysql # not compatible
query I rowsort label-8166
SELECT DISTINCT 98 * - + SUM ( ALL 1 ) - - - 2 AS col2 FROM tab2
----
-296

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8167
SELECT - 76 + + - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8167
SELECT - 76 + + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8168
SELECT ALL - col0 * col2 + 85 DIV 93 AS col1 FROM tab2
----
-1058
-2560
-4350

skipif mysql # not compatible
query I rowsort label-8168
SELECT ALL - col0 * col2 + 85 / 93 AS col1 FROM tab2
----
-1058
-2560
-4350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8169
SELECT ALL + col0 * + 35 - - - CAST( col2 AS SIGNED ) + + + col2 AS col1 FROM tab1 cor0 WHERE col0 >= NULL
----

skipif mysql # not compatible
query I rowsort label-8169
SELECT ALL + col0 * + 35 - - - CAST ( col2 AS INTEGER ) + + + col2 AS col1 FROM tab1 cor0 WHERE col0 >= NULL
----

query I rowsort
SELECT - - 70 * + col1 * + + col2 * + ( + col0 ) FROM tab1 AS cor0
----
1755250
20358520
4798080

query II rowsort
SELECT col2, ( - 22 ) + - + col0 AS col0 FROM tab0 AS cor0
----
10
-109
47
-37
99
-119

query I rowsort
SELECT ALL ( - + ( - col1 ) ) FROM tab1 AS cor0
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8173
SELECT ALL COUNT( col0 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8173
SELECT ALL COUNT ( col0 ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8174
SELECT - SUM( ALL - ( + col1 ) ) AS col0 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-8174
SELECT - SUM ( ALL - ( + col1 ) ) AS col0 FROM tab2 AS cor0
----
195

query II rowsort
SELECT DISTINCT - 31 AS col0, - col2 FROM tab2 AS cor0
----
-31
-23
-31
-40
-31
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + - col0 col1 FROM tab1 AS cor0
----
-4896
-5015
-6188

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 * col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col2 * - ( - ( + + col1 ) ) * + col1 + - 88 FROM tab1
----
1387
150124
18728

query II rowsort
SELECT DISTINCT + col1 * + + 63 AS col1, + 9 * + + col2 AS col1 FROM tab2
----
3213
207
4221
522
4851
360

onlyif mysql # aggregate syntax: 
query I rowsort label-8180
SELECT 44 * - + SUM( DISTINCT + 81 ) FROM tab0
----
-3564

skipif mysql # not compatible
query I rowsort label-8180
SELECT 44 * - + SUM ( DISTINCT + 81 ) FROM tab0
----
-3564

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8181
SELECT ALL + COUNT( * ) * - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8181
SELECT ALL + COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8182
SELECT COUNT( * ) * COUNT( * ) * + ( + 29 ) AS col1 FROM tab2 AS cor0
----
261

skipif mysql # not compatible
query I rowsort label-8182
SELECT COUNT ( * ) * COUNT ( * ) * + ( + 29 ) AS col1 FROM tab2 AS cor0
----
261

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 15 col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8184
SELECT - ( 5 ) + SUM( + col2 ) FROM tab0
----
151

skipif mysql # not compatible
query I rowsort label-8184
SELECT - ( 5 ) + SUM ( + col2 ) FROM tab0
----
151

onlyif mysql # DIV for integer division: 
query I rowsort label-8185
SELECT col2 DIV - ( - col0 ) + col2 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-8185
SELECT col2 / - ( - col0 ) + col2 FROM tab2
----
23
40
58

query I rowsort
SELECT DISTINCT 73 + - col2 AS col0 FROM tab2
----
15
33
50

query I rowsort
SELECT + col1 + 70 FROM tab0
----
151
71
91

query I rowsort
SELECT ALL - col0 + + 15 FROM tab1
----
-36
-70
-76

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - ( col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8190
SELECT DISTINCT COUNT( * ) + + + 59 FROM tab0 cor0
----
62

skipif mysql # not compatible
query I rowsort label-8190
SELECT DISTINCT COUNT ( * ) + + + 59 FROM tab0 cor0
----
62

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) = + col0 * - col2 + - 85 - ( - + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8192
SELECT ALL + COUNT( * ) + COUNT( * ) col0 FROM tab2 cor0 WHERE - col0 / + col0 BETWEEN ( col2 * 31 ) AND NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8192
SELECT ALL + COUNT ( * ) + COUNT ( * ) col0 FROM tab2 cor0 WHERE - col0 / + col0 BETWEEN ( col2 * 31 ) AND NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8193
SELECT ALL ( + COUNT( * ) ) + + 69 + + + ( + SUM( DISTINCT - - col1 ) ) DIV + 56 FROM tab2 cor0
----
75

skipif mysql # not compatible
query I rowsort label-8193
SELECT ALL ( + COUNT ( * ) ) + + 69 + + + ( + SUM ( DISTINCT - - col1 ) ) / + 56 FROM tab2 cor0
----
75

query II rowsort
SELECT - col0 AS col1, ( + + col1 ) AS col1 FROM tab0 AS cor0
----
-15
81
-87
21
-97
1

query I rowsort
SELECT DISTINCT - 99 - 84 FROM tab1 AS cor0
----
-183

query I rowsort
SELECT + col1 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL 22 * - - ( + - 85 ) * + - col1 - - - col2 FROM tab0
----
151423
1771
39260

onlyif mysql # aggregate syntax: 
query I rowsort label-8198
SELECT COUNT( * ) * - 7 * COUNT( * ) AS col2 FROM tab2
----
-63

skipif mysql # not compatible
query I rowsort label-8198
SELECT COUNT ( * ) * - 7 * COUNT ( * ) AS col2 FROM tab2
----
-63

query I rowsort
SELECT - col1 * - + ( col2 ) AS col0 FROM tab1
----
1344
295
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-8200
SELECT + COUNT( * ) * + 58 FROM tab2
----
174

skipif mysql # not compatible
query I rowsort label-8200
SELECT + COUNT ( * ) * + 58 FROM tab2
----
174

query I rowsort
SELECT ALL col2 + col1 * col0 * + col0 + - col1 FROM tab2
----
107888
315355
376866

query I rowsort
SELECT ALL 91 + + col1 + 12 FROM tab2 AS cor0 WHERE NOT ( - col2 + col1 ) IS NULL
----
154
170
180

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8203
SELECT ALL CAST( NULL AS SIGNED ) * + - 2 + + ( - col0 ) * col2 * 28 + col1 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8203
SELECT ALL CAST ( NULL AS INTEGER ) * + - 2 + + ( - col0 ) * col2 * 28 + col1 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 59 AS col0 FROM tab1 WHERE NOT - col1 > NULL
----

query I rowsort
SELECT ALL - col2 * 99 AS col1 FROM tab2
----
-2277
-3960
-5742

query I rowsort
SELECT - - col1 AS col1 FROM tab0 WHERE NOT col2 NOT BETWEEN + col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8207
SELECT ALL COUNT( ALL ( col2 ) ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8207
SELECT ALL COUNT ( ALL ( col2 ) ) AS col2 FROM tab1
----
3

query I rowsort
SELECT DISTINCT + col1 * + - col2 FROM tab0 cor0
----
-210
-3807
-99

query I rowsort
SELECT DISTINCT - - col2 * - 93 * + - col1 * + col0 AS col1 FROM tab2 AS cor0
----
18332160
27104850
5018094

query I rowsort
SELECT ALL - + 17 AS col2 FROM tab2 AS cor0
----
-17
-17
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-8211
SELECT ALL + COUNT( * ) FROM tab1 cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8211
SELECT ALL + COUNT ( * ) FROM tab1 cor0 WHERE NOT NULL IS NULL
----
0

query II rowsort
SELECT + col1, 28 AS col2 FROM tab2
----
51
28
67
28
77
28

query II rowsort
SELECT ALL - col1 AS col1, - col1 AS col0 FROM tab2
----
-51
-51
-67
-67
-77
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-8214
SELECT 26 * + + COUNT( * ) col0 FROM tab0
----
78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8214
SELECT 26 * + + COUNT ( * ) col0 FROM tab0
----
78

query III rowsort
SELECT ALL * FROM tab1 WHERE - 98 NOT IN ( - 27 * - col2, + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8216
SELECT ALL 65 * + COUNT( * ) col2 FROM tab1
----
195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8216
SELECT ALL 65 * + COUNT ( * ) col2 FROM tab1
----
195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8217
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + col2 * - + ( - + 73 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8217
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + col2 * - + ( - + 73 ) FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8218
SELECT ALL 10 DIV + - col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8218
SELECT ALL 10 / + - col0 FROM tab2
----
0
0
0

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 + 43 * 15 + col0 / col0 NOT BETWEEN + - 75 AND - + col1
----

query I rowsort
SELECT col0 + + - 79 + col1 AS col2 FROM tab1 cor0
----
-14
11
59

query I rowsort
SELECT ALL + - 61 * 21 + + col1 FROM tab0 AS cor0
----
-1200
-1260
-1280

query I rowsort
SELECT DISTINCT col1 * + col2 * + - col0 FROM tab1 AS cor0
----
-25075
-290836
-68544

onlyif mysql # aggregate syntax: 
query I rowsort label-8223
SELECT ALL COUNT( * ) * - 94 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-846

skipif mysql # not compatible
query I rowsort label-8223
SELECT ALL COUNT ( * ) * - 94 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-846

onlyif mysql # aggregate syntax: 
query I rowsort label-8224
SELECT - + COUNT( * ) FROM tab2 AS cor0 WHERE - ( + col2 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8224
SELECT - + COUNT ( * ) FROM tab2 AS cor0 WHERE - ( + col2 ) IS NULL
----
0

query I rowsort
SELECT - 18 - - col0 FROM tab0 cor0
----
-3
69
79

onlyif mysql # aggregate syntax: 
query II rowsort label-8226
SELECT DISTINCT + 1 - + 95 AS col0, - COUNT( * ) + + 86 AS col1 FROM tab2 AS cor0
----
-94
83

skipif mysql # not compatible
query II rowsort label-8226
SELECT DISTINCT + 1 - + 95 AS col0, - COUNT ( * ) + + 86 AS col1 FROM tab2 AS cor0
----
-94
83

query I rowsort
SELECT + 61 * - col1 - 69 FROM tab1 AS cor0
----
-2936
-374
-923

query I rowsort
SELECT DISTINCT + + 61 + col1 AS col1 FROM tab0 AS cor0
----
142
62
82

query II rowsort
SELECT DISTINCT - col2 AS col1, + col2 FROM tab0
----
-10
10
-47
47
-99
99

query I rowsort
SELECT ALL 56 - 36 - - ( col2 ) FROM tab0
----
119
30
67

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN NULL AND + 61
----

query I rowsort
SELECT - col0 * + - col1 + col1 FROM tab0
----
1296
1848
98

query III rowsort
SELECT * FROM tab2 WHERE NOT - + 93 + 38 + - col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN + col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8235
SELECT MAX( DISTINCT - + 36 ) FROM tab0
----
-36

skipif mysql # not compatible
query I rowsort label-8235
SELECT MAX ( DISTINCT - + 36 ) FROM tab0
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8236
SELECT ALL COUNT( * ) * + - 7 + - CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8236
SELECT ALL COUNT ( * ) * + - 7 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL >= - col0 * + + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8238
SELECT + CAST( NULL AS SIGNED ) + col0 FROM tab0 AS cor0 WHERE NOT 21 > - 69
----

skipif mysql # not compatible
query I rowsort label-8238
SELECT + CAST ( NULL AS INTEGER ) + col0 FROM tab0 AS cor0 WHERE NOT 21 > - 69
----

query I rowsort
SELECT ( + 12 ) + col2 FROM tab0 AS cor0
----
111
22
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8240
SELECT ALL COUNT( * ) * - 12 FROM tab2 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-8240
SELECT ALL COUNT ( * ) * - 12 FROM tab2 AS cor0
----
-36

onlyif mysql # DIV for integer division: 
query II rowsort label-8241
SELECT ALL col0 DIV - col0, + col2 * - col0 * col1 AS col1 FROM tab0 AS cor0
----
-1
-18270
-1
-57105
-1
-9603

skipif mysql # not compatible
query II rowsort label-8241
SELECT ALL col0 / - col0, + col2 * - col0 * col1 AS col1 FROM tab0 AS cor0
----
-1
-18270
-1
-57105
-1
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-8242
SELECT DISTINCT - COUNT( * ) * 64 AS col0 FROM tab1 AS cor0
----
-192

skipif mysql # not compatible
query I rowsort label-8242
SELECT DISTINCT - COUNT ( * ) * 64 AS col0 FROM tab1 AS cor0
----
-192

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + col1 < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8244
SELECT 36 DIV + col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8244
SELECT 36 / + col0 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + + col1 + - col1 col0 FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT DISTINCT + 24 * - 74 + col1 AS col0 FROM tab1 AS cor0
----
-1729
-1762
-1771

query II rowsort
SELECT - - col2 * - - ( - col1 ) AS col2, - col1 FROM tab2 cor0
----
-1173
-51
-3080
-77
-3886
-67

query I rowsort
SELECT - 80 + + 35 FROM tab2
----
-45
-45
-45

query I rowsort
SELECT - col1 * col1 + + col2 AS col1 FROM tab0
----
-431
-6514
98

onlyif mysql # DIV for integer division: 
query I rowsort label-8250
SELECT ALL - col0 DIV + 92 * - - col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8250
SELECT ALL - col0 / + 92 * - - col0 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8251
SELECT ( - 82 ) * + COUNT( * ) FROM tab0 WHERE NULL IS NULL
----
-246

skipif mysql # not compatible
query I rowsort label-8251
SELECT ( - 82 ) * + COUNT ( * ) FROM tab0 WHERE NULL IS NULL
----
-246

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( - 81 ) + + 91 + col1 col2 FROM tab1 cor0
----
15
24
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8253
SELECT DISTINCT col1 + CAST( - 37 AS SIGNED ) FROM tab0 cor0
----
-16
-36
44

skipif mysql # not compatible
query I rowsort label-8253
SELECT DISTINCT col1 + CAST ( - 37 AS INTEGER ) FROM tab0 cor0
----
-16
-36
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8254
SELECT + CAST( NULL AS SIGNED ) * - col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8254
SELECT + CAST ( NULL AS INTEGER ) * - col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab1 AS cor0 WHERE NULL = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8256
SELECT ALL + - 86 - + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8256
SELECT ALL + - 86 - + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 67 - col2 AS col2 FROM tab0 AS cor0
----
-32
20
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 68 * + col1 * - - col0 col2 FROM tab0
----
124236
6596
82620

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8259
SELECT + CAST( + - ( - col1 ) AS SIGNED ) FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-8259
SELECT + CAST ( + - ( - col1 ) AS INTEGER ) FROM tab1
----
14
47
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 18 col0 FROM tab0
----
-18
-18
-18

query I rowsort
SELECT - col1 * + - col1 AS col2 FROM tab2 AS cor0
----
2601
4489
5929

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 23 * + - col2 col1, 55 AS col1 FROM tab1 AS cor0
----
-1357
55
-1564
55
-2208
55

query IIIIII rowsort
SELECT DISTINCT * FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 ) WHERE ( NULL > NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8264
SELECT col1, CAST( NULL AS SIGNED ) FROM tab2
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-8264
SELECT col1, CAST ( NULL AS INTEGER ) FROM tab2
----
51
NULL
67
NULL
77
NULL

query I rowsort
SELECT ALL + - 82 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f800b0aad28b82b2deb67f7045c9a45c

query I rowsort
SELECT DISTINCT 10 AS col0 FROM tab0 cor0
----
10

query I rowsort
SELECT + ( + 24 ) - - + col0 FROM tab2 AS cor0 WHERE NOT 31 <> - ( + 80 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8268
SELECT MIN( + col0 ) * - ( + 98 ) * + 97 col1 FROM tab1 AS cor0
----
-484806

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8268
SELECT MIN ( + col0 ) * - ( + 98 ) * + 97 col1 FROM tab1 AS cor0
----
-484806

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 * + 42 * - col2 * - col2 col0, col0 * + ( + 48 ) FROM tab1 AS cor0
----
5419008
2448
731010
4080
9127776
4368

query I rowsort
SELECT 63 * + col2 AS col2 FROM tab2 AS cor0
----
1449
2520
3654

query I rowsort
SELECT - 42 AS col0 FROM tab0 AS cor0 WHERE NOT NULL <> - col1 + - col0 + + 13 + - col0 + 24
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8272
SELECT ALL + - col1 DIV ( - col0 ) FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-8272
SELECT ALL + - col1 / ( - col0 ) FROM tab2 AS cor0
----
0
1
1

query II rowsort
SELECT + col0 * - + col2 * - - 24 AS col0, col0 FROM tab0 AS cor0
----
-16920
15
-20880
87
-230472
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 71 * 60 col0 FROM tab2 AS cor0
----
4260
4260
4260

query I rowsort
SELECT DISTINCT + ( - + 1 ) FROM tab2
----
-1

query III rowsort
SELECT ALL * FROM tab0 WHERE + + 42 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8277
SELECT - col0 col0 FROM tab0 WHERE ( - 87 ) NOT IN ( col2, 6 + - col2, + CAST( col0 AS SIGNED ) * + 48 * - 20 * + 75 + + - 5 )
----
-15
-87
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8277
SELECT - col0 col0 FROM tab0 WHERE ( - 87 ) NOT IN ( col2, 6 + - col2, + CAST ( col0 AS INTEGER ) * + 48 * - 20 * + 75 + + - 5 )
----
-15
-87
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8278
SELECT ALL - CAST( CAST( - col2 AS SIGNED ) AS SIGNED ) FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-8278
SELECT ALL - CAST ( CAST ( - col2 AS INTEGER ) AS INTEGER ) FROM tab0
----
10
47
99

query I rowsort
SELECT - 84 * col2 AS col0 FROM tab1
----
-4956
-5712
-8064

query I rowsort
SELECT - 3 * - 63 * - - col1 AS col2 FROM tab0 WHERE + + col0 IS NOT NULL
----
15309
189
3969

query I rowsort
SELECT ALL col1 * - col2 + - - col2 FROM tab1
----
-1248
-236
-3128

query I rowsort
SELECT ALL - 64 + - - col1 + 11 * col1 * + 8 + + col1 * 71 AS col1 FROM tab1
----
2176
736
7456

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8283
SELECT + - 95 + + 44 DIV CAST( - - COUNT( * ) AS SIGNED ) * COUNT( ALL - - 43 ) FROM tab0 cor0
----
-53

skipif mysql # not compatible
query I rowsort label-8283
SELECT + - 95 + + 44 / CAST ( - - COUNT ( * ) AS INTEGER ) * COUNT ( ALL - - 43 ) FROM tab0 cor0
----
-53

query I rowsort
SELECT ALL + col1 + - 33 AS col2 FROM tab2 AS cor0
----
18
34
44

query I rowsort
SELECT 67 + ( - col1 ) FROM tab1 AS cor0
----
20
53
62

onlyif mysql # aggregate syntax: 
query I rowsort label-8286
SELECT + MIN( DISTINCT - - col2 ) FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-8286
SELECT + MIN ( DISTINCT - - col2 ) FROM tab1 AS cor0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8287
SELECT COUNT( * ) - 50 + - COUNT( ALL - col0 ) + - COUNT( * ) FROM tab2
----
-53

skipif mysql # not compatible
query I rowsort label-8287
SELECT COUNT ( * ) - 50 + - COUNT ( ALL - col0 ) + - COUNT ( * ) FROM tab2
----
-53

query I rowsort
SELECT DISTINCT + - 93 + - 98 + + - 7 - + col1 * - col2 AS col2 FROM tab1 AS cor0
----
1146
2998
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8289
SELECT ALL 73 + COUNT( * ) FROM tab0 AS cor0
----
76

skipif mysql # not compatible
query I rowsort label-8289
SELECT ALL 73 + COUNT ( * ) FROM tab0 AS cor0
----
76

query I rowsort
SELECT DISTINCT + 5 AS col2 FROM tab0 AS cor0 WHERE NULL <= - col2 * + - col2 AND NOT ( NULL ) <> ( col1 )
----

query I rowsort
SELECT ALL - + col2 + + - col2 AS col2 FROM tab1 AS cor0
----
-118
-136
-192

query I rowsort
SELECT DISTINCT + ( - col2 ) - + 11 + - 7 * col2 FROM tab0 AS cor0
----
-387
-803
-91

query I rowsort
SELECT + + 16 + - - 48 AS col0 FROM tab2 AS cor0
----
64
64
64

query I rowsort
SELECT - 53 + - col1 FROM tab1 AS cor0
----
-100
-58
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-8295
SELECT ALL - col2 DIV - + col2 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8295
SELECT ALL - col2 / - + col2 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT - 90 * - + col1 AS col2 FROM tab0
----
1890
7290
90

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8297
SELECT DISTINCT + CAST( NULL AS DECIMAL ), - col0 * CAST( NULL AS SIGNED ) * 60 + - 96 FROM tab2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8297
SELECT DISTINCT + CAST ( NULL AS REAL ), - col0 * CAST ( NULL AS INTEGER ) * 60 + - 96 FROM tab2
----
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8298
SELECT ALL col1 AS col0, col0 DIV - 57 FROM tab1
----
14
0
47
-1
5
-1

skipif mysql # not compatible
query II rowsort label-8298
SELECT ALL col1 AS col0, col0 / - 57 FROM tab1
----
14
0
47
-1
5
-1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 * + col0 = + - col1 * - 58 + - col2 - - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8300
SELECT ALL + - MIN( DISTINCT + ( - col2 ) ) AS col1 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-8300
SELECT ALL + - MIN ( DISTINCT + ( - col2 ) ) AS col1 FROM tab2 AS cor0
----
58

query II rowsort
SELECT ALL + col0, 55 FROM tab1 cor0
----
51
55
85
55
91
55

query II rowsort
SELECT DISTINCT - col1, + col1 FROM tab2 AS cor0
----
-51
51
-67
67
-77
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8303
SELECT + col0 + col2 * + 56 - - - CAST( NULL AS SIGNED ) + 20 * - ( - col1 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8303
SELECT + col0 + col2 * + 56 - - - CAST ( NULL AS INTEGER ) + 20 * - ( - col1 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 + 62 AS col1 FROM tab2 AS cor0
----
-15
-5
11

query I rowsort
SELECT DISTINCT 20 + - + col0 AS col2 FROM tab2 AS cor0
----
-26
-44
-55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 + + col2 col2, - col0 + + - col2 AS col2 FROM tab2 AS cor0
----
104
-104
133
-133
69
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-8307
SELECT ALL - COUNT( * ) FROM tab1 AS cor0 WHERE NULL = col0
----
0

skipif mysql # not compatible
query I rowsort label-8307
SELECT ALL - COUNT ( * ) FROM tab1 AS cor0 WHERE NULL = col0
----
0

query II rowsort
SELECT ALL - col1 AS col2, col2 * 43 AS col0 FROM tab1
----
-14
4128
-47
2924
-5
2537

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8309
SELECT - ( + 60 ) * - 46 AS col0, + ( col0 ) + - CAST( col2 AS SIGNED ) AS col0 FROM tab1
----
2760
-45
2760
23
2760
26

skipif mysql # not compatible
query II rowsort label-8309
SELECT - ( + 60 ) * - 46 AS col0, + ( col0 ) + - CAST ( col2 AS INTEGER ) AS col0 FROM tab1
----
2760
-45
2760
23
2760
26

onlyif mysql # aggregate syntax: 
query I rowsort label-8310
SELECT MAX( ALL + - col1 ) AS col0 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-8310
SELECT MAX ( ALL + - col1 ) AS col0 FROM tab0
----
-1

query I rowsort
SELECT DISTINCT + col1 + - 81 AS col0 FROM tab2
----
-14
-30
-4

query II rowsort
SELECT col0, col2 AS col2 FROM tab2
----
46
23
64
40
75
58

query III rowsort
SELECT ALL * FROM tab2 WHERE col0 = + col0 * - + col2 + - - 21 - - col1 / - 79 * + - col2 * col2 + - col1
----

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab2 WHERE NOT ( col0 * + 14 * + 35 ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + 7 + - - col0 AS col1 FROM tab1
----
58
92
98

query I rowsort
SELECT ALL + + col0 + 81 AS col2 FROM tab1 AS cor0
----
132
166
172

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8317
SELECT DISTINCT - 98 + + CAST( - + col1 AS SIGNED ) FROM tab1 AS cor0
----
-103
-112
-145

skipif mysql # not compatible
query I rowsort label-8317
SELECT DISTINCT - 98 + + CAST ( - + col1 AS INTEGER ) FROM tab1 AS cor0
----
-103
-112
-145

query I rowsort
SELECT col0 * + col0 + + col2 AS col1 FROM tab1
----
2697
7284
8349

query I rowsort
SELECT - 0 + + - 16 FROM tab1
----
-16
-16
-16

query I rowsort
SELECT ALL - 58 * - 77 AS col1 FROM tab1
----
4466
4466
4466

query I rowsort
SELECT ALL + 98 * 32 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT 54 * col1 FROM tab1
----
2538
270
756

query II rowsort
SELECT ALL + + 22 * col1 AS col2, + col2 + - col0 FROM tab0 AS cor0
----
1782
32
22
2
462
-77

query I rowsort
SELECT ALL - + col2 * - - col1 FROM tab2 AS cor0
----
-1173
-3080
-3886

onlyif mysql # aggregate syntax: 
query I rowsort label-8325
SELECT ALL + COUNT( - - col1 ) * + 89 AS col1 FROM tab1 AS cor0
----
267

skipif mysql # not compatible
query I rowsort label-8325
SELECT ALL + COUNT ( - - col1 ) * + 89 AS col1 FROM tab1 AS cor0
----
267

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8326
SELECT - COUNT( * ) - + + MIN( - col2 ) AS col0 FROM tab2 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) * col1 * - - col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8326
SELECT - COUNT ( * ) - + + MIN ( - col2 ) AS col0 FROM tab2 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) * col1 * - - col1 IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8327
SELECT DISTINCT + CAST( - + 70 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-70

skipif mysql # not compatible
query I rowsort label-8327
SELECT DISTINCT + CAST ( - + 70 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-8328
SELECT - MIN( - 16 ) FROM tab1
----
16

skipif mysql # not compatible
query I rowsort label-8328
SELECT - MIN ( - 16 ) FROM tab1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-8329
SELECT ALL COUNT( col1 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8329
SELECT ALL COUNT ( col1 ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8330
SELECT DISTINCT ( - + COUNT( * ) ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-8330
SELECT DISTINCT ( - + COUNT ( * ) ) AS col1 FROM tab0
----
-3

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 < 49
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8332
SELECT DISTINCT col1 * - - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8332
SELECT DISTINCT col1 * - - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8333
SELECT - - col0 DIV - - col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
0
4
97

skipif mysql # not compatible
query I rowsort label-8333
SELECT - - col0 / - - col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
0
4
97

onlyif mysql # DIV for integer division: 
query I rowsort label-8334
SELECT DISTINCT - col1 DIV - + col0 col0 FROM tab0 AS cor0
----
0
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8334
SELECT DISTINCT - col1 / - + col0 col0 FROM tab0 AS cor0
----
0
5

query II rowsort
SELECT ALL - 14 * + + ( col0 ) AS col2, col0 * 3 AS col2 FROM tab1 cor0
----
-1190
255
-1274
273
-714
153

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 65 col2, col2 * col2 col2 FROM tab2 AS cor0
----
65
1600
65
3364
65
529

query I rowsort
SELECT - + col0 + + 47 FROM tab1 AS cor0
----
-38
-4
-44

query I rowsort
SELECT ALL + + 46 AS col2 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - 60 AS col2 FROM tab2 WHERE NOT NULL <> ( + col1 )
----

query II rowsort
SELECT ALL - 90 + col1 AS col1, 57 FROM tab2 AS cor0
----
-13
57
-23
57
-39
57

query I rowsort
SELECT ALL col0 * - 19 + + + col1 AS col0 FROM tab1 cor0
----
-1610
-1682
-955

query III rowsort
SELECT * FROM tab1 cor0 WHERE 81 - - + 89 IS NULL
----

query I rowsort
SELECT + - ( - + 33 ) FROM tab2 AS cor0
----
33
33
33

onlyif mysql # aggregate syntax: 
query I rowsort label-8344
SELECT ALL - MIN( + + 35 ) FROM tab2 AS cor0
----
-35

skipif mysql # not compatible
query I rowsort label-8344
SELECT ALL - MIN ( + + 35 ) FROM tab2 AS cor0
----
-35

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 22 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8346
SELECT + + ( - COUNT( * ) ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8346
SELECT + + ( - COUNT ( * ) ) FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8347
SELECT ALL - CAST( NULL AS SIGNED ) + + col1 * col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8347
SELECT ALL - CAST ( NULL AS INTEGER ) + + col1 * col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8348
SELECT + CAST( NULL AS SIGNED ) * + CAST( + COUNT( * ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8348
SELECT + CAST ( NULL AS INTEGER ) * + CAST ( + COUNT ( * ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8349
SELECT - + COUNT( * ) + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8349
SELECT - + COUNT ( * ) + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8350
SELECT SUM( ( 48 ) ) + + - ( - 83 ) FROM tab0
----
227

skipif mysql # not compatible
query I rowsort label-8350
SELECT SUM ( ( 48 ) ) + + - ( - 83 ) FROM tab0
----
227

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 + + col0, 17 col1 FROM tab1
----
138
17
65
17
90
17

query II rowsort
SELECT - col1 * - 51 + - - col0 AS col1, col0 AS col2 FROM tab2
----
2647
46
3492
75
3991
64

query I rowsort
SELECT DISTINCT + col1 + + col1 * 47 + - - col2 AS col1 FROM tab1
----
2324
299
768

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8354
SELECT ALL - AVG ( DISTINCT CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8354
SELECT ALL - AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

query I rowsort
SELECT ALL col0 * - + col2 / col0 AS col0 FROM tab1 WHERE NOT ( NOT NULL IS NOT NULL )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8356
SELECT ALL + CAST( NULL AS DECIMAL ) * col0 * - 66 + - + 99 * col1 * + col1 * + 37 + - - 87 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8356
SELECT ALL + CAST ( NULL AS REAL ) * col0 * - 66 + - + 99 * col1 * + col1 * + 37 + - - 87 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - - col0 AS col1 FROM tab1 AS cor0 WHERE + col0 IS NULL
----

query II rowsort
SELECT DISTINCT - 24 + ( 51 ) AS col2, col1 FROM tab2
----
27
51
27
67
27
77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8359
SELECT DISTINCT - CAST( + - col0 AS SIGNED ) / + 71, + col0 - - + 36 col1 FROM tab1 WHERE NOT - 49 IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8359
SELECT DISTINCT - CAST ( + - col0 AS INTEGER ) / + 71, + col0 - - + 36 col1 FROM tab1 WHERE NOT - 49 IS NOT NULL
----

query II rowsort
SELECT 47 AS col2, 99 FROM tab1 AS cor0
----
47
99
47
99
47
99

query II rowsort
SELECT DISTINCT + - col0, + 2 AS col2 FROM tab0 AS cor0
----
-15
2
-87
2
-97
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8362
SELECT - + 47, MAX( ALL + col0 ) DIV + 64 AS col1 FROM tab0 AS cor0
----
-47
1

skipif mysql # not compatible
query II rowsort label-8362
SELECT - + 47, MAX ( ALL + col0 ) / + 64 AS col1 FROM tab0 AS cor0
----
-47
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 7 * col1 col2 FROM tab1 AS cor0
----
329
35
98

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8364
SELECT + - CAST( NULL AS DECIMAL ) col0, COUNT( * ) FROM tab2 AS cor0
----
NULL
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8364
SELECT + - CAST ( NULL AS REAL ) col0, COUNT ( * ) FROM tab2 AS cor0
----
NULL
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8365
SELECT - COUNT( - 28 ) * + 87 * - - 78 FROM tab0 AS cor0
----
-20358

skipif mysql # not compatible
query I rowsort label-8365
SELECT - COUNT ( - 28 ) * + 87 * - - 78 FROM tab0 AS cor0
----
-20358

onlyif mysql # aggregate syntax: 
query II rowsort label-8366
SELECT DISTINCT - SUM( ALL ( - col1 ) ), COUNT( * ) AS col1 FROM tab1 AS cor0
----
66
3

skipif mysql # not compatible
query II rowsort label-8366
SELECT DISTINCT - SUM ( ALL ( - col1 ) ), COUNT ( * ) AS col1 FROM tab1 AS cor0
----
66
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + col2 >= - - col0 )
----
87
21
10

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL <> col1
----

query I rowsort
SELECT ALL - ( col2 ) * - + col0 FROM tab0 AS cor0
----
705
870
9603

query I rowsort
SELECT ALL 43 * col0 AS col0 FROM tab0 WHERE NOT + 4 IS NOT NULL
----

query I rowsort
SELECT ALL + 18 * 55 * - ( - 44 ) AS col1 FROM tab1
----
43560
43560
43560

onlyif mysql # DIV for integer division: 
query I rowsort label-8372
SELECT ALL + 13 DIV + 23 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8372
SELECT ALL + 13 / + 23 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8373
SELECT - COUNT( * ) * - 58 FROM tab2 cor0
----
174

skipif mysql # not compatible
query I rowsort label-8373
SELECT - COUNT ( * ) * - 58 FROM tab2 cor0
----
174

query I rowsort
SELECT - 52 AS col1 FROM tab0 AS cor0 WHERE NOT + col0 IS NULL
----
-52
-52
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-8375
SELECT ALL - col2 DIV + + col1 FROM tab0
----
-99
0
0

skipif mysql # not compatible
query I rowsort label-8375
SELECT ALL - col2 / + + col1 FROM tab0
----
-99
0
0

query I rowsort
SELECT - 16 + + 11 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 74665fbb47d5b17da011bca567195b21

query I rowsort
SELECT - + 3 + + - 1 * col1 * - 42 AS col1 FROM tab0 AS cor0
----
3399
39
879

query I rowsort
SELECT DISTINCT - col1 + - ( - col2 ) FROM tab0 AS cor0
----
-11
-34
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8379
SELECT ALL - + col1 + - col0 - - 35 - - - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8379
SELECT ALL - + col1 + - col0 - - 35 - - - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( + + col2 ) * - col1 AS col1 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
-1344
-295
-3196

query I rowsort
SELECT - - col1 FROM tab1 AS cor0 WHERE 70 < NULL
----

query I rowsort
SELECT ALL + - ( col0 ) AS col1 FROM tab0 AS cor0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8383
SELECT - COUNT( col2 ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8383
SELECT - COUNT ( col2 ) AS col1 FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8384
SELECT + col1 + - + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE NULL <= - 34 / 99
----

skipif mysql # not compatible
query I rowsort label-8384
SELECT + col1 + - + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE NULL <= - 34 / 99
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8385
SELECT ALL + - MIN( col1 ) + + COUNT( * ) + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8385
SELECT ALL + - MIN ( col1 ) + + COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-8386
SELECT 21 DIV - col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8386
SELECT 21 / - col1 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8387
SELECT DISTINCT ( - - 93 ) DIV - - col1 FROM tab1
----
1
18
6

skipif mysql # not compatible
query I rowsort label-8387
SELECT DISTINCT ( - - 93 ) / - - col1 FROM tab1
----
1
18
6

query III rowsort
SELECT * FROM tab2 WHERE + + col1 NOT BETWEEN - col2 AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8389
SELECT COUNT( * ) * + ( - 89 ) FROM tab2
----
-267

skipif mysql # not compatible
query I rowsort label-8389
SELECT COUNT ( * ) * + ( - 89 ) FROM tab2
----
-267

query I rowsort
SELECT ( - + 23 ) FROM tab2
----
-23
-23
-23

query II rowsort
SELECT ALL col0 AS col2, col1 + - 61 FROM tab2
----
46
-10
64
16
75
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8392
SELECT ALL + 31 * COUNT( * ) FROM tab2
----
93

skipif mysql # not compatible
query I rowsort label-8392
SELECT ALL + 31 * COUNT ( * ) FROM tab2
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8393
SELECT - ( + + MIN( ALL col1 ) ) FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-8393
SELECT - ( + + MIN ( ALL col1 ) ) FROM tab2
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-8394
SELECT COUNT( * ) AS col0 FROM tab1 WHERE NOT + col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8394
SELECT COUNT ( * ) AS col0 FROM tab1 WHERE NOT + col2 IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8395
SELECT ALL - CAST( NULL AS SIGNED ) * - col0 + + + CAST( NULL AS SIGNED ) + + 99 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8395
SELECT ALL - CAST ( NULL AS INTEGER ) * - col0 + + + CAST ( NULL AS INTEGER ) + + 99 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8396
SELECT + ( - col0 ) DIV col0 + - col0 AS col0 FROM tab1 AS cor0
----
-52
-86
-92

skipif mysql # not compatible
query I rowsort label-8396
SELECT + ( - col0 ) / col0 + - col0 AS col0 FROM tab1 AS cor0
----
-52
-86
-92

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + 57 BETWEEN + 97 AND + + col0 * + 49 - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8398
SELECT DISTINCT + col1 AS col0, - CAST( + col1 AS SIGNED ) * + + 92 col2 FROM tab1
----
14
-1288
47
-4324
5
-460

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8398
SELECT DISTINCT + col1 AS col0, - CAST ( + col1 AS INTEGER ) * + + 92 col2 FROM tab1
----
14
-1288
47
-4324
5
-460

query II rowsort
SELECT 65, + 11 AS col1 FROM tab1
----
65
11
65
11
65
11

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col1 BETWEEN col1 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 85 * + col0 col0 FROM tab0
----
1275
7395
8245

query II rowsort
SELECT + 34, col1 AS col2 FROM tab2
----
34
51
34
67
34
77

onlyif mysql # DIV for integer division: 
query I rowsort label-8403
SELECT DISTINCT - 52 * 71 DIV + col2 FROM tab2
----
-160
-63
-92

skipif mysql # not compatible
query I rowsort label-8403
SELECT DISTINCT - 52 * 71 / + col2 FROM tab2
----
-160
-63
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-8404
SELECT - COUNT( - col2 ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-8404
SELECT - COUNT ( - col2 ) AS col0 FROM tab0
----
-3

query II rowsort
SELECT + 24, 21 + + col2 AS col2 FROM tab2
----
24
44
24
61
24
79

onlyif mysql # DIV for integer division: 
query I rowsort label-8406
SELECT ALL - 58 DIV - 88 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8406
SELECT ALL - 58 / - 88 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8407
SELECT - COUNT( * ) AS col0 FROM tab0 cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8407
SELECT - COUNT ( * ) AS col0 FROM tab0 cor0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8408
SELECT + - col2 + CAST( - col1 AS SIGNED ) + + 76 FROM tab0 AS cor0
----
-24
-52
45

skipif mysql # not compatible
query I rowsort label-8408
SELECT + - col2 + CAST ( - col1 AS INTEGER ) + + 76 FROM tab0 AS cor0
----
-24
-52
45

query II rowsort
SELECT ALL + - col2, - 76 AS col2 FROM tab1 AS cor0
----
-59
-76
-68
-76
-96
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8410
SELECT - CAST( NULL AS SIGNED ) + - col1 + - + 29 col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8410
SELECT - CAST ( NULL AS INTEGER ) + - col1 + - + 29 col2 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 + + - col1 * - 45 FROM tab2 AS cor0
----
2346
3082
3542

onlyif mysql # aggregate syntax: 
query I rowsort label-8412
SELECT MAX( + col2 ) * - 28 FROM tab2
----
-1624

skipif mysql # not compatible
query I rowsort label-8412
SELECT MAX ( + col2 ) * - 28 FROM tab2
----
-1624

query I rowsort
SELECT DISTINCT col1 * ( 43 ) AS col0 FROM tab1
----
2021
215
602

onlyif mysql # aggregate syntax: 
query I rowsort label-8414
SELECT + MIN( DISTINCT + col1 ) FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-8414
SELECT + MIN ( DISTINCT + col1 ) FROM tab1
----
5

query I rowsort
SELECT ( + 32 ) AS col1 FROM tab0
----
32
32
32

onlyif mysql # aggregate syntax: 
query I rowsort label-8416
SELECT DISTINCT - 44 * + MAX( - col2 ) AS col0 FROM tab1
----
2596

skipif mysql # not compatible
query I rowsort label-8416
SELECT DISTINCT - 44 * + MAX ( - col2 ) AS col0 FROM tab1
----
2596

query III rowsort
SELECT * FROM tab2 WHERE NOT + 81 IN ( col0 / 57 + + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 32 * 45 AS col1 FROM tab0
----
1440

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8419
SELECT MIN( CAST( NULL AS SIGNED ) ) / 90 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8419
SELECT MIN ( CAST ( NULL AS INTEGER ) ) / 90 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8420
SELECT - 11 DIV COUNT( * ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-8420
SELECT - 11 / COUNT ( * ) AS col1 FROM tab1
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-8421
SELECT DISTINCT - col1 DIV - col1 AS col1 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-8421
SELECT DISTINCT - col1 / - col1 AS col1 FROM tab1
----
1

query I rowsort
SELECT col2 * - ( + col1 ) FROM tab1
----
-1344
-295
-3196

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL ) BETWEEN + 41 AND + col0 / + col0 - ( 94 ) * col0
----

query III rowsort
SELECT * FROM tab1 WHERE + col1 - + col2 * - col2 NOT IN ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE - 78 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8426
SELECT - MAX( - 72 ) * + MIN( ALL ( col2 ) * col2 + + 13 ) FROM tab1
----
251568

skipif mysql # not compatible
query I rowsort label-8426
SELECT - MAX ( - 72 ) * + MIN ( ALL ( col2 ) * col2 + + 13 ) FROM tab1
----
251568

onlyif mysql # aggregate syntax: 
query I rowsort label-8427
SELECT DISTINCT + SUM( DISTINCT + col2 ) * + 89 + + COUNT( * ) * 14 FROM tab2
----
10811

skipif mysql # not compatible
query I rowsort label-8427
SELECT DISTINCT + SUM ( DISTINCT + col2 ) * + 89 + + COUNT ( * ) * 14 FROM tab2
----
10811

query I rowsort
SELECT DISTINCT - col0 FROM tab1 WHERE NOT - 19 / 97 < + col1
----

query III rowsort
SELECT * FROM tab0 WHERE - 55 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 NOT BETWEEN NULL AND ( + 72 )
----

query I rowsort
SELECT + ( 56 ) FROM tab1
----
56
56
56

onlyif mysql # aggregate syntax: 
query I rowsort label-8432
SELECT - COUNT( * ) + + COUNT( DISTINCT 74 ) * + COUNT( * ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8432
SELECT - COUNT ( * ) + + COUNT ( DISTINCT 74 ) * + COUNT ( * ) FROM tab2
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 55 + + col2 BETWEEN + col1 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8434
SELECT - col2 DIV 38 AS col0 FROM tab2 cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-8434
SELECT - col2 / 38 AS col0 FROM tab2 cor0
----
-1
-1
0

query I rowsort
SELECT DISTINCT - 24 * col1 FROM tab1 AS cor0
----
-1128
-120
-336

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 13 ) col1 FROM tab2 cor0
----
-13
-13
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-8437
SELECT MAX( ALL col0 ) AS col0 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-8437
SELECT MAX ( ALL col0 ) AS col0 FROM tab0 AS cor0
----
97

query I rowsort
SELECT ALL + col1 AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
14
47
5

query I rowsort
SELECT - 97 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1
----
9 values hashing to e4a6bd848a69226cbb7ad3d154be321b

query I rowsort
SELECT ( 88 ) * 93 FROM tab0
----
8184
8184
8184

onlyif mysql # aggregate syntax: 
query I rowsort label-8441
SELECT SUM( col2 ) * - COUNT( * ) FROM tab0 AS cor0
----
-468

skipif mysql # not compatible
query I rowsort label-8441
SELECT SUM ( col2 ) * - COUNT ( * ) FROM tab0 AS cor0
----
-468

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8442
SELECT 95 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8442
SELECT 95 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - col0 * ( + ( + 20 ) ) ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8444
SELECT SUM( ALL + col2 ) * - COUNT( * ) FROM tab1 AS cor0
----
-669

skipif mysql # not compatible
query I rowsort label-8444
SELECT SUM ( ALL + col2 ) * - COUNT ( * ) FROM tab1 AS cor0
----
-669

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8445
SELECT - + 68 DIV - ( col1 + CAST( 70 AS SIGNED ) ) 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-8445
SELECT - + 68 / - ( col1 + CAST ( 70 AS INTEGER ) ) col2 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( col1 ) < col0
----
15
81
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col1 FROM tab2 AS cor0 WHERE NOT col2 / + 29 - col0 NOT IN ( col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 NOT BETWEEN col1 + col1 AND ( NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( ( - ( + col0 ) ) ) NOT BETWEEN NULL AND ( + col0 )
----

query I rowsort
SELECT 9 FROM tab2 WHERE NOT + col2 IN ( 91 * + col1 )
----
9
9
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8451
SELECT DISTINCT ( COUNT( 98 ) ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8451
SELECT DISTINCT ( COUNT ( 98 ) ) AS col2 FROM tab2
----
3

query I rowsort
SELECT ALL - col1 FROM tab1 WHERE col2 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + ( ( col2 ) ) BETWEEN NULL AND ( + ( col2 ) * 46 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8454
SELECT - ( + - MIN( - col2 ) ) AS col2 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-8454
SELECT - ( + - MIN ( - col2 ) ) AS col2 FROM tab0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8455
SELECT ALL MIN( ALL 1 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-8455
SELECT ALL MIN ( ALL 1 ) FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8456
SELECT DISTINCT + 5 + SUM( - col0 ) col0 FROM tab0 WHERE 79 <> col1 - 35
----
-194

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8456
SELECT DISTINCT + 5 + SUM ( - col0 ) col0 FROM tab0 WHERE 79 <> col1 - 35
----
-194

query I rowsort
SELECT DISTINCT col1 + + 87 + + 80 AS col2 FROM tab1
----
172
181
214

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8458
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - CAST( - col1 AS SIGNED ) IN ( + CAST( NULL AS SIGNED ) + - col2 )
----

skipif mysql # not compatible
query III rowsort label-8458
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - CAST ( - col1 AS INTEGER ) IN ( + CAST ( NULL AS INTEGER ) + - col2 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + 68 * 45 ) > ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8460
SELECT COUNT( * ) FROM tab0 cor0 WHERE + col2 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-8460
SELECT COUNT ( * ) FROM tab0 cor0 WHERE + col2 <> NULL
----
0

query I rowsort
SELECT DISTINCT - 59 * col1 FROM tab2 AS cor0
----
-3009
-3953
-4543

query I rowsort
SELECT DISTINCT + 19 + - col2 AS col2 FROM tab0 cor0
----
-28
-80
9

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 81 * col2 BETWEEN NULL AND ( 47 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col1 + - col2 * + - 71 * col1 + 10 AS col1 FROM tab1
----
20950
226879
95420

onlyif mysql # aggregate syntax: 
query I rowsort label-8465
SELECT - COUNT( DISTINCT - col2 ) - 1 FROM tab1 WHERE ( col2 BETWEEN + col1 + col0 AND + col2 * 88 - - 80 )
----
-2

skipif mysql # not compatible
query I rowsort label-8465
SELECT - COUNT ( DISTINCT - col2 ) - 1 FROM tab1 WHERE ( col2 BETWEEN + col1 + col0 AND + col2 * 88 - - 80 )
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8466
SELECT 6 + + - CAST( MIN( + col2 ) AS SIGNED ) * + 24 FROM tab2
----
-546

skipif mysql # not compatible
query I rowsort label-8466
SELECT 6 + + - CAST ( MIN ( + col2 ) AS INTEGER ) * + 24 FROM tab2
----
-546

onlyif mysql # aggregate syntax: 
query I rowsort label-8467
SELECT ALL - MIN( - + col2 ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-8467
SELECT ALL - MIN ( - + col2 ) FROM tab1
----
96

query I rowsort
SELECT col0 + col0 + 19 AS col1 FROM tab1
----
121
189
201

onlyif mysql # DIV for integer division: 
query I rowsort label-8469
SELECT DISTINCT - col0 DIV col2 + + + 3 AS col2 FROM tab2 AS cor0
----
1
2

skipif mysql # not compatible
query I rowsort label-8469
SELECT DISTINCT - col0 / col2 + + + 3 AS col2 FROM tab2 AS cor0
----
1
2

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( 24 * + col1 ) NOT IN ( 14 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col1 + + 28 - - col0 FROM tab1 cor0
----
108
65
72

query I rowsort
SELECT ALL col2 AS col2 FROM tab1 AS cor0 WHERE NOT ( col2 ) IS NULL
----
59
68
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 20 col0 FROM tab1 AS cor0
----
-20
-20
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8474
SELECT - col2 * + CAST( NULL AS SIGNED ) * col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8474
SELECT - col2 * + CAST ( NULL AS INTEGER ) * col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 - col2 * - col1 AS col2 FROM tab1
----
1358
300
3243

onlyif mysql # aggregate syntax: 
query I rowsort label-8476
SELECT COUNT( * ) - + 17 + - 74 AS col1 FROM tab2
----
-88

skipif mysql # not compatible
query I rowsort label-8476
SELECT COUNT ( * ) - + 17 + - 74 AS col1 FROM tab2
----
-88

query I rowsort
SELECT + ( - col2 ) - - 74 AS col2 FROM tab1
----
-22
15
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8478
SELECT DISTINCT - MAX( - - col0 ) - - SUM( ALL + 73 ) FROM tab0
----
122

skipif mysql # not compatible
query I rowsort label-8478
SELECT DISTINCT - MAX ( - - col0 ) - - SUM ( ALL + 73 ) FROM tab0
----
122

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8479
SELECT - MIN( ALL + col2 ) DIV - 88 - + - COUNT( * ) + - 47 AS col1 FROM tab0
----
-44

skipif mysql # not compatible
query I rowsort label-8479
SELECT - MIN ( ALL + col2 ) / - 88 - + - COUNT ( * ) + - 47 AS col1 FROM tab0
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-8480
SELECT DISTINCT + COUNT( * ) * + + ( SUM( ALL + col2 ) ) FROM tab0
----
468

skipif mysql # not compatible
query I rowsort label-8480
SELECT DISTINCT + COUNT ( * ) * + + ( SUM ( ALL + col2 ) ) FROM tab0
----
468

query I rowsort
SELECT DISTINCT + col2 * + col2 * + col1 AS col1 FROM tab0
----
178929
2100
9801

onlyif mysql # aggregate syntax: 
query I rowsort label-8482
SELECT ALL - MAX( ALL - 81 ) AS col0 FROM tab0 AS cor0 WHERE NOT ( col1 ) IS NULL
----
81

skipif mysql # not compatible
query I rowsort label-8482
SELECT ALL - MAX ( ALL - 81 ) AS col0 FROM tab0 AS cor0 WHERE NOT ( col1 ) IS NULL
----
81

query II rowsort
SELECT - 83 AS col2, + col1 FROM tab0
----
-83
1
-83
21
-83
81

query I rowsort
SELECT ALL - ( 97 ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to e4a6bd848a69226cbb7ad3d154be321b

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8485
SELECT 0 DIV + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-8485
SELECT 0 / + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
0

query I rowsort
SELECT + 52 * + - col1 FROM tab1 AS cor0
----
-2444
-260
-728

query I rowsort
SELECT ( + col0 ) * + col1 AS col1 FROM tab1 AS cor0
----
425
4277
714

onlyif mysql # aggregate syntax: 
query I rowsort label-8488
SELECT + COUNT( * ) * + COUNT( * ) - - - MAX( + col1 ) AS col2 FROM tab1 AS cor0
----
-38

skipif mysql # not compatible
query I rowsort label-8488
SELECT + COUNT ( * ) * + COUNT ( * ) - - - MAX ( + col1 ) AS col2 FROM tab1 AS cor0
----
-38

query III rowsort
SELECT * FROM tab0 WHERE NOT ( ( + ( - col1 ) ) = col1 + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8490
SELECT DISTINCT + MIN( - col0 ) col2 FROM tab2
----
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8490
SELECT DISTINCT + MIN ( - col0 ) col2 FROM tab2
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8491
SELECT 99 * + COUNT( * ) AS col0 FROM tab0
----
297

skipif mysql # not compatible
query I rowsort label-8491
SELECT 99 * + COUNT ( * ) AS col0 FROM tab0
----
297

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT + col0 < col1 )
----
15
81
47

query I rowsort
SELECT ALL 86 + + + col2 FROM tab1
----
145
154
182

query I rowsort
SELECT DISTINCT - col0 FROM tab2 WHERE NOT - ( ( - + col0 ) ) + + 1 = + col2 * 35 + 30
----
-46
-64
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 24 - + 46 col0 FROM tab1 WHERE + col2 + + - col2 NOT BETWEEN NULL AND + - 26
----
-70
-70
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-8496
SELECT ALL SUM( DISTINCT + col1 ) AS col1 FROM tab1 cor0
----
66

skipif mysql # not compatible
query I rowsort label-8496
SELECT ALL SUM ( DISTINCT + col1 ) AS col1 FROM tab1 cor0
----
66

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN - 33 AND + col0 * + col1
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + 45 FROM tab0 AS cor0 WHERE 52 * 70 BETWEEN col2 AND - col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8500
SELECT ALL + 21, + COUNT( - ( + ( - + col1 ) ) ) AS col0 FROM tab2 AS cor0
----
21
3

skipif mysql # not compatible
query II rowsort label-8500
SELECT ALL + 21, + COUNT ( - ( + ( - + col1 ) ) ) AS col0 FROM tab2 AS cor0
----
21
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8501
SELECT - 73 DIV 3 DIV + - col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8501
SELECT - 73 / 3 / + - col0 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8502
SELECT + COUNT( * ) * COUNT( * ) - + - 59 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
140

skipif mysql # not compatible
query I rowsort label-8502
SELECT + COUNT ( * ) * COUNT ( * ) - + - 59 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-8503
SELECT + COUNT( * ) AS col1 FROM tab1 WHERE - col2 IN ( + 53 + 27, 56 + + col2 * - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-8503
SELECT + COUNT ( * ) AS col1 FROM tab1 WHERE - col2 IN ( + 53 + 27, 56 + + col2 * - col0 )
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( col2 * - 20 ) BETWEEN ( - 31 ) AND NULL AND ( + - 88 ) < col1 / col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + - ( - col2 ) * 38 FROM tab0 AS cor0 WHERE NULL NOT IN ( col2, - col0 )
----

query I rowsort
SELECT DISTINCT 80 * + - ( col1 ) + + - col1 FROM tab0 AS cor0
----
-1701
-6561
-81

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - ( - 70 ) IS NULL
----

query I rowsort
SELECT - 48 * + 45 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col2 + + 13 FROM tab2 AS cor0
----
-10
-27
-45

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL < 38
----

query I rowsort
SELECT ALL + - ( - - 16 ) - - col1 - + col2 AS col1 FROM tab1 AS cor0
----
-37
-70
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-8512
SELECT ALL 29 + + + col0 + - col0 DIV + - 77 AS col0 FROM tab1 AS cor0
----
115
121
80

skipif mysql # not compatible
query I rowsort label-8512
SELECT ALL 29 + + + col0 + - col0 / + - 77 AS col0 FROM tab1 AS cor0
----
115
121
80

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8513
SELECT + - CAST( NULL AS DECIMAL ) + - col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8513
SELECT + - CAST ( NULL AS REAL ) + - col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 + - - col1 + - + col0 AS col1 FROM tab0 AS cor0
----
-153
-193
51

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8515
SELECT ALL * FROM tab2 AS cor0 WHERE ( CAST( - - 16 AS SIGNED ) / ( + - col1 ) * 23 ) < NULL
----

skipif mysql # not compatible
query III rowsort label-8515
SELECT ALL * FROM tab2 AS cor0 WHERE ( CAST ( - - 16 AS INTEGER ) / ( + - col1 ) * 23 ) < NULL
----

query II rowsort
SELECT col0 AS col2, 20 AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 49 - + - col2 FROM tab2 AS cor0
----
107
72
89

query I rowsort
SELECT col2 AS col2 FROM tab1 WHERE - col1 + + col2 <> col2
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8519
SELECT ALL + ( + + COUNT( + + col1 ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8519
SELECT ALL + ( + + COUNT ( + + col1 ) ) FROM tab2
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col1 ) * 63 col1 FROM tab1
----
2961
315
882

query I rowsort
SELECT col2 AS col0 FROM tab2 WHERE NOT + - col2 - + 60 + - 13 BETWEEN ( + - col0 ) AND + 67
----
23
40
58

query I rowsort
SELECT 61 * - 8 AS col2 FROM tab0
----
-488
-488
-488

query I rowsort
SELECT ALL 23 * ( col1 ) AS col1 FROM tab2
----
1173
1541
1771

onlyif mysql # DIV for integer division: 
query I rowsort label-8524
SELECT ALL ( + 46 ) DIV + col2 + 41 FROM tab1
----
41
41
41

skipif mysql # not compatible
query I rowsort label-8524
SELECT ALL ( + 46 ) / + col2 + 41 FROM tab1
----
41
41
41

query I rowsort
SELECT - 63 * + col0 FROM tab2
----
-2898
-4032
-4725

onlyif mysql # aggregate syntax: 
query I rowsort label-8526
SELECT + + 27 * + COUNT( * ) AS col1 FROM tab2 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-8526
SELECT + + 27 * + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
81

query I rowsort
SELECT ALL + + 65 AS col2 FROM tab2 AS cor0
----
65
65
65

query I rowsort
SELECT DISTINCT - 47 * + + 44 FROM tab0
----
-2068

query I rowsort
SELECT 64 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

query I rowsort
SELECT ALL - col1 * - 81 AS col2 FROM tab2
----
4131
5427
6237

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 + - col2 + + col2 + + - 60 NOT BETWEEN + col2 * + col0 - col1 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8532
SELECT DISTINCT SUM( DISTINCT + - 15 ) FROM tab1
----
-15

skipif mysql # not compatible
query I rowsort label-8532
SELECT DISTINCT SUM ( DISTINCT + - 15 ) FROM tab1
----
-15

query II rowsort
SELECT DISTINCT - 83 + col2 AS col2, col0 AS col0 FROM tab2 AS cor0
----
-25
75
-43
64
-60
46

query I rowsort
SELECT + + col2 * 28 - + ( col2 ) FROM tab0 AS cor0
----
1269
2673
270

query I rowsort
SELECT DISTINCT - 13 + 11 AS col0 FROM tab2 AS cor0
----
-2

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab1 AS cor0 WHERE NOT 25 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + 87 col2 FROM tab0
----
1305
7569
8439

query I rowsort
SELECT + + 35 * col2 FROM tab2 WHERE NULL NOT BETWEEN + 57 / - 91 - + + col2 + + col0 AND - col1 * + + ( 81 )
----

query I rowsort
SELECT ALL + col0 * 88 AS col2 FROM tab0
----
1320
7656
8536

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8540
SELECT ALL - + col1 + + CAST( NULL AS DECIMAL ) * + - col1 FROM tab0 WHERE NOT col0 + + + col2 / col0 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8540
SELECT ALL - + col1 + + CAST ( NULL AS REAL ) * + - col1 FROM tab0 WHERE NOT col0 + + + col2 / col0 IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT ( + - 13 ) AS col0 FROM tab2
----
-13
-13
-13

query I rowsort
SELECT DISTINCT - col1 + - + ( + col1 ) AS col2 FROM tab1
----
-10
-28
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-8543
SELECT MIN( ALL 60 ) AS col1 FROM tab2
----
60

skipif mysql # not compatible
query I rowsort label-8543
SELECT MIN ( ALL 60 ) AS col1 FROM tab2
----
60

query III rowsort
SELECT * FROM tab0 WHERE - 99 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 49 / + col1 NOT BETWEEN col2 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 41 - + + col2 FROM tab0 AS cor0
----
-140
-51
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-8547
SELECT - col2 + 66 DIV + 44 AS col1 FROM tab2
----
-22
-39
-57

skipif mysql # not compatible
query I rowsort label-8547
SELECT - col2 + 66 / + 44 AS col1 FROM tab2
----
-22
-39
-57

query I rowsort
SELECT ALL - col2 * 94 AS col1 FROM tab0
----
-4418
-9306
-940

query I rowsort
SELECT - - 60 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

query I rowsort
SELECT col2 AS col0 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8551
SELECT ALL - 70 * - COUNT( * ) FROM tab1 AS cor0
----
210

skipif mysql # not compatible
query I rowsort label-8551
SELECT ALL - 70 * - COUNT ( * ) FROM tab1 AS cor0
----
210

query I rowsort
SELECT DISTINCT - col2 * col1 * + col2 + - 38 AS col1 FROM tab0 cor0
----
-178967
-2138
-9839

query I rowsort
SELECT DISTINCT + + col0 + 88 FROM tab2 AS cor0
----
134
152
163

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col2 >= - ( + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL col2 AS col0, + 24 * + - col2 * - ( + col0 ) FROM tab1 cor0
----
59
120360
68
148512
96
117504

onlyif mysql # aggregate syntax: 
query II rowsort label-8556
SELECT ALL + MAX( ALL - 37 ) col1, 29 FROM tab0
----
-37
29

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8556
SELECT ALL + MAX ( ALL - 37 ) col1, 29 FROM tab0
----
-37
29

query I rowsort
SELECT DISTINCT 79 * col0 * col0 FROM tab2 WHERE ( NOT NULL IS NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) IN ( + col2 + + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 0 * col1, 78 col1 FROM tab2
----
0
78
0
78
0
78

query II rowsort
SELECT - col0 AS col0, 87 FROM tab0 WHERE NOT 74 / 40 * col1 + - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8561
SELECT ALL + col1 DIV 11 * CAST( 43 AS SIGNED ) AS col1 FROM tab0 cor0
----
0
301
43

skipif mysql # not compatible
query I rowsort label-8561
SELECT ALL + col1 / 11 * CAST ( 43 AS INTEGER ) AS col1 FROM tab0 cor0
----
0
301
43

query I rowsort
SELECT ALL ( - + col0 ) AS col1 FROM tab2 AS cor0
----
-46
-64
-75

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 62 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8564
SELECT SUM( col1 ) AS col1 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-8564
SELECT SUM ( col1 ) AS col1 FROM tab1
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8565
SELECT ALL - - col2 + - col1 FROM tab2 WHERE NULL NOT IN ( + col1, 71, CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-8565
SELECT ALL - - col2 + - col1 FROM tab2 WHERE NULL NOT IN ( + col1, 71, CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT 38 + + col2 IS NOT NULL
----

query I rowsort
SELECT ALL 61 * - 69 * - + col1 FROM tab1
----
197823
21045
58926

query I rowsort
SELECT - - col2 * - + col1 FROM tab0 AS cor0
----
-210
-3807
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8569
SELECT ALL 72 * + COUNT( * ) + ( + SUM( DISTINCT col1 ) ) - - + 61 * - 51 AS col0 FROM tab0 AS cor0
----
-2792

skipif mysql # not compatible
query I rowsort label-8569
SELECT ALL 72 * + COUNT ( * ) + ( + SUM ( DISTINCT col1 ) ) - - + 61 * - 51 AS col0 FROM tab0 AS cor0
----
-2792

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8570
SELECT DISTINCT + + col2 * CAST( - 46 AS SIGNED ) * + ( + + 82 ) FROM tab1 cor0
----
-222548
-256496
-362112

skipif mysql # not compatible
query I rowsort label-8570
SELECT DISTINCT + + col2 * CAST ( - 46 AS INTEGER ) * + ( + + 82 ) FROM tab1 cor0
----
-222548
-256496
-362112

query II rowsort
SELECT ALL + col0, + col0 * - col2 AS col2 FROM tab1 AS cor0
----
51
-4896
85
-5015
91
-6188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 28 col2 FROM tab2 cor0
----
-28
-28
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8573
SELECT + + CAST( ( + 20 ) AS SIGNED ) FROM tab0 AS cor0
----
20
20
20

skipif mysql # not compatible
query I rowsort label-8573
SELECT + + CAST ( ( + 20 ) AS INTEGER ) FROM tab0 AS cor0
----
20
20
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8574
SELECT - CAST( NULL AS SIGNED ) * + - 17 + - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8574
SELECT - CAST ( NULL AS INTEGER ) * + - 17 + - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col0 <= 80
----
87
21
10
97
1
99

query I rowsort
SELECT + + 83 * + col1 AS col2 FROM tab2 AS cor0
----
4233
5561
6391

query I rowsort
SELECT DISTINCT + col0 + - col2 + - col1 * - 29 AS col2 FROM tab0 AS cor0
----
2317
27
686

query I rowsort
SELECT DISTINCT + col2 FROM tab0 WHERE NOT + col1 * 88 * + + col2 IS NOT NULL
----

query I rowsort
SELECT col0 + - - 81 + 88 * col0 AS col0 FROM tab0
----
1416
7824
8714

onlyif mysql # aggregate syntax: 
query I rowsort label-8580
SELECT - - SUM( DISTINCT - ( - col2 ) ) + - - COUNT( * ) FROM tab2 WHERE 2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8580
SELECT - - SUM ( DISTINCT - ( - col2 ) ) + - - COUNT ( * ) FROM tab2 WHERE 2 IS NULL
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8581
SELECT DISTINCT * FROM tab0 WHERE ( col1 ) < + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-8581
SELECT DISTINCT * FROM tab0 WHERE ( col1 ) < + CAST ( NULL AS REAL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8582
SELECT DISTINCT + CAST( NULL AS SIGNED ) + 31 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8582
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + 31 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8583
SELECT DISTINCT + SUM( ALL - col0 ) FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-8583
SELECT DISTINCT + SUM ( ALL - col0 ) FROM tab2
----
-185

onlyif mysql # aggregate syntax: 
query I rowsort label-8584
SELECT ALL 38 * - COUNT( * ) FROM tab2 WHERE NOT + col1 + - col0 - - 26 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-8584
SELECT ALL 38 * - COUNT ( * ) FROM tab2 WHERE NOT + col1 + - col0 - - 26 <> NULL
----
0

query II rowsort
SELECT + col0 * - ( - - col0 ) + + col1 AS col1, + 43 FROM tab1
----
-2587
43
-7220
43
-8234
43

query I rowsort
SELECT ALL - col0 * + + col0 + + 7 AS col0 FROM tab1 cor0
----
-2594
-7218
-8274

onlyif mysql # aggregate syntax: 
query I rowsort label-8587
SELECT COUNT( * ) + + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
18

skipif mysql # not compatible
query I rowsort label-8587
SELECT COUNT ( * ) + + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-8588
SELECT + + MIN( ALL - - 87 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
87

skipif mysql # not compatible
query I rowsort label-8588
SELECT + + MIN ( ALL - - 87 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-8589
SELECT ALL - ( + COUNT( * ) ) + + COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-8589
SELECT ALL - ( + COUNT ( * ) ) + + COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 41 col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 4ba0c102091f9cbc9fe9439b04584e70

query I rowsort
SELECT col2 * - + col0 - col1 + - col0 AS col2 FROM tab0
----
-801
-9701
-978

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 4 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + 51 <> 22
----

query I rowsort
SELECT - 84 * + col0 FROM tab0 AS cor0
----
-1260
-7308
-8148

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8595
SELECT - 88 DIV + - SUM( DISTINCT - col1 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8595
SELECT - 88 / + - SUM ( DISTINCT - col1 ) FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8596
SELECT SUM( 19 ) AS col1 FROM tab2 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-8596
SELECT SUM ( 19 ) AS col1 FROM tab2 AS cor0
----
57

query I rowsort
SELECT DISTINCT + col1 * 12 AS col0 FROM tab0 AS cor0
----
12
252
972

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8598
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN - CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-8598
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN - CAST ( NULL AS INTEGER ) AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NULL NOT BETWEEN ( - col0 ) AND ( col2 + - col0 )
----

query I rowsort
SELECT + 33 + col1 AS col2 FROM tab1 WHERE NOT ( col0 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL BETWEEN - + col0 AND 60
----

query I rowsort
SELECT ALL 52 * col0 FROM tab0
----
4524
5044
780

query II rowsort
SELECT DISTINCT - 31 AS col0, ( col0 ) * 13 FROM tab2
----
-31
598
-31
832
-31
975

onlyif mysql # aggregate syntax: 
query I rowsort label-8604
SELECT COUNT( * ) FROM tab1 WHERE NOT col2 + - col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8604
SELECT COUNT ( * ) FROM tab1 WHERE NOT col2 + - col2 IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8605
SELECT ALL 59 col0, + CAST( NULL AS SIGNED ) FROM tab2
----
59
NULL
59
NULL
59
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8605
SELECT ALL 59 col0, + CAST ( NULL AS INTEGER ) FROM tab2
----
59
NULL
59
NULL
59
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8606
SELECT ALL - 71 AS col0, + 26 + - + COUNT( * ) col0 FROM tab1
----
-71
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8606
SELECT ALL - 71 AS col0, + 26 + - + COUNT ( * ) col0 FROM tab1
----
-71
23

query II rowsort
SELECT DISTINCT col1, + 35 + + col0 - - 38 FROM tab1
----
14
124
47
164
5
158

query II rowsort
SELECT DISTINCT - col2 AS col2, col2 FROM tab0
----
-10
10
-47
47
-99
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8609
SELECT DISTINCT - CAST( + - MAX( ALL - + col1 ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-8609
SELECT DISTINCT - CAST ( + - MAX ( ALL - + col1 ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-51

query I rowsort
SELECT ALL - col0 * + 30 - + - 2 AS col0 FROM tab1 AS cor0
----
-1528
-2548
-2728

query I rowsort
SELECT ALL - + col0 + + 18 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
-69
-79
3

query II rowsort
SELECT col2, col1 - + + 70 FROM tab2 AS cor0
----
23
-19
40
7
58
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-8613
SELECT 92 + + - 54 + + - col2 + - col2 * + - col2 - + + 64 DIV - - col0 AS col0 FROM tab2 AS cor0
----
1597
3344
543

skipif mysql # not compatible
query I rowsort label-8613
SELECT 92 + + - 54 + + - col2 + - col2 * + - col2 - + + 64 / - - col0 AS col0 FROM tab2 AS cor0
----
1597
3344
543

query I rowsort
SELECT - 61 + - 18 FROM tab1 AS cor0 WHERE NULL <= ( NULL )
----

query I rowsort
SELECT DISTINCT - ( - col0 ) + col1 AS col1 FROM tab0 AS cor0
----
108
96
98

query I rowsort
SELECT ALL - col0 * ( - col2 ) * col2 * - col0 + col2 + + + col1 + - - 40 FROM tab1 AS cor0
----
-23970666
-25150121
-38291189

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 55 + col2 + + 6 + + col0 * 59 col1 FROM tab0 AS cor0
----
5204
5883
993

query I rowsort
SELECT ALL + 96 * - + col0 FROM tab0 AS cor0
----
-1440
-8352
-9312

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8619
SELECT - COUNT( * ) * COUNT( * ) * + CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8619
SELECT - COUNT ( * ) * COUNT ( * ) * + CAST ( NULL AS REAL ) AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8620
SELECT DISTINCT col2 DIV + + 18 FROM tab0
----
0
2
5

skipif mysql # not compatible
query I rowsort label-8620
SELECT DISTINCT col2 / + + 18 FROM tab0
----
0
2
5

onlyif mysql # DIV for integer division: 
query I rowsort label-8621
SELECT + col1 DIV - + col1 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8621
SELECT + col1 / - + col1 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT - 44 * - ( - 77 ) FROM tab0
----
-3388
-3388
-3388

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8623
SELECT col1 * + - col2 * col1 * - CAST( - + col1 AS SIGNED ) AS col2 FROM tab1
----
-263424
-7059964
-7375

skipif mysql # not compatible
query I rowsort label-8623
SELECT col1 * + - col2 * col1 * - CAST ( - + col1 AS INTEGER ) AS col2 FROM tab1
----
-263424
-7059964
-7375

query I rowsort
SELECT - ( + 31 ) FROM tab2 WHERE + col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - 53 col2 FROM tab0
----
-4611
-5141
-795

query III rowsort
SELECT ALL * FROM tab0 WHERE - - col1 + 11 <= NULL
----

query I rowsort
SELECT ALL + col1 + + 87 FROM tab0
----
108
168
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8628
SELECT - 33 * - + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8628
SELECT - 33 * - + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8630
SELECT - - COUNT( * ) * - + 77 - + COUNT( * ) AS col1, COUNT( * ) AS col2 FROM tab1 AS cor0
----
-234
3

skipif mysql # not compatible
query II rowsort label-8630
SELECT - - COUNT ( * ) * - + 77 - + COUNT ( * ) AS col1, COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-234
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8631
SELECT ALL 51 / - - CAST( NULL AS SIGNED ) + - 22 + - ( 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-8631
SELECT ALL 51 / - - CAST ( NULL AS INTEGER ) + - 22 + - ( col2 ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 + + - col0 col1 FROM tab1 cor0
----
-37
-44
-80

query I rowsort
SELECT ALL + 87 - + col2 AS col2 FROM tab2 cor0
----
29
47
64

query I rowsort
SELECT ALL + + col1 * col2 * + col1 + + col0 AS col2 FROM tab0 WHERE NOT NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8635
SELECT DISTINCT + SUM( DISTINCT + - 76 ) FROM tab0 AS cor0
----
-76

skipif mysql # not compatible
query I rowsort label-8635
SELECT DISTINCT + SUM ( DISTINCT + - 76 ) FROM tab0 AS cor0
----
-76

query I rowsort
SELECT col1 + + col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) < col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8637
SELECT ALL 52 DIV - COUNT( * ) AS col0 FROM tab1 cor0
----
-17

skipif mysql # not compatible
query I rowsort label-8637
SELECT ALL 52 / - COUNT ( * ) AS col0 FROM tab1 cor0
----
-17

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL < + col0
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + 58 IS NOT NULL )
----

query I rowsort
SELECT - col1 * + col1 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8641
SELECT ALL + MAX( DISTINCT + - ( - col2 ) ) AS col1 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-8641
SELECT ALL + MAX ( DISTINCT + - ( - col2 ) ) AS col1 FROM tab0
----
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1, col0 col2 FROM tab2
----
51
46
67
75
77
64

query II rowsort
SELECT DISTINCT col0, 49 * + + col0 AS col2 FROM tab0
----
15
735
87
4263
97
4753

onlyif mysql # aggregate syntax: 
query I rowsort label-8644
SELECT DISTINCT ( MIN( - - col1 ) ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-8644
SELECT DISTINCT ( MIN ( - - col1 ) ) FROM tab2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8645
SELECT + COUNT( * ) + - MAX( - 86 ) FROM tab2 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-8645
SELECT + COUNT ( * ) + - MAX ( - 86 ) FROM tab2 AS cor0
----
89

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 IS NULL AND col1 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col1 - - col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0, + col1 col1 FROM tab1
----
51
14
85
5
91
47

query I rowsort
SELECT ALL - - 73 FROM tab2 WHERE NOT + col2 BETWEEN - + col0 AND - + col2
----
73
73
73

query I rowsort
SELECT ALL + col0 + - col1 - + col0 AS col1 FROM tab0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-8651
SELECT - COUNT( DISTINCT + col0 ) col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8651
SELECT - COUNT ( DISTINCT + col0 ) col0 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT DISTINCT - 87 + col2 * - col1 AS col0 FROM tab1 cor0
----
-1431
-3283
-382

onlyif mysql # aggregate syntax: 
query I rowsort label-8653
SELECT DISTINCT 78 * + 80 + - - 90 + - + COUNT( * ) + 59 AS col0 FROM tab1 AS cor0
----
6386

skipif mysql # not compatible
query I rowsort label-8653
SELECT DISTINCT 78 * + 80 + - - 90 + - + COUNT ( * ) + 59 AS col0 FROM tab1 AS cor0
----
6386

onlyif mysql # DIV for integer division: 
query I rowsort label-8654
SELECT ALL col2 DIV col1 DIV - 60 - col1 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-8654
SELECT ALL col2 / col1 / - 60 - col1 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-8655
SELECT - + ( - + 34 ) + ( COUNT( DISTINCT col2 ) ) FROM tab0 AS cor0
----
37

skipif mysql # not compatible
query I rowsort label-8655
SELECT - + ( - + 34 ) + ( COUNT ( DISTINCT col2 ) ) FROM tab0 AS cor0
----
37

query I rowsort
SELECT 24 + - col0 * + 27 + - + col2 FROM tab1
----
-1449
-2330
-2501

onlyif mysql # aggregate syntax: 
query I rowsort label-8657
SELECT COUNT( * ) + - 60 FROM tab2
----
-57

skipif mysql # not compatible
query I rowsort label-8657
SELECT COUNT ( * ) + - 60 FROM tab2
----
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 75 * + col1 + + col0, + col1 * col0 * + col1 - + col0 + - col1 col2 FROM tab0
----
1662
38259
172
-1
6090
98319

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8659
SELECT ALL + CAST( + + col0 AS SIGNED ) AS col0 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-8659
SELECT ALL + CAST ( + + col0 AS INTEGER ) AS col0 FROM tab2
----
46
64
75

query I rowsort
SELECT col0 AS col0 FROM tab1 AS cor0 WHERE NULL < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8661
SELECT DISTINCT 82 DIV col0 * col1 DIV 27 - - ( - + col1 ) FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-8661
SELECT DISTINCT 82 / col0 * col1 / 27 - - ( - + col1 ) FROM tab1 AS cor0
----
-14
-47
-5

query I rowsort
SELECT DISTINCT col2 * + 54 AS col2 FROM tab1
----
3186
3672
5184

query I rowsort
SELECT + col0 FROM tab2 WHERE NOT + col2 + - 21 <> NULL
----

query II rowsort
SELECT ALL 54, + 24 + - col0 AS col0 FROM tab0
----
54
-63
54
-73
54
9

query I rowsort
SELECT DISTINCT - + 42 FROM tab2 WHERE NOT - 69 + + col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8666
SELECT ALL ( + col1 ) DIV - 75 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8666
SELECT ALL ( + col1 ) / - 75 FROM tab0 AS cor0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8667
SELECT + SUM( + + 35 ) AS col1 FROM tab1 AS cor0 WHERE NOT 28 * - ( + col2 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8667
SELECT + SUM ( + + 35 ) AS col1 FROM tab1 AS cor0 WHERE NOT 28 * - ( + col2 ) IS NOT NULL
----
NULL

query II rowsort
SELECT DISTINCT - col2, col2 AS col1 FROM tab2 cor0
----
-23
23
-40
40
-58
58

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab0 WHERE + - ( + col2 ) IS NOT NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8670
SELECT DISTINCT - SUM( DISTINCT col1 ) FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-8670
SELECT DISTINCT - SUM ( DISTINCT col1 ) FROM tab0
----
-103

onlyif mysql # DIV for integer division: 
query I rowsort label-8671
SELECT ( + col0 ) DIV 58 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-8671
SELECT ( + col0 ) / 58 FROM tab2
----
0
1
1

query I rowsort
SELECT - 99 AS col2 FROM tab0 WHERE NOT 52 - col2 * + - col2 >= NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL = ( + 88 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8674
SELECT + - col2 * - col2 AS col0, - 83 DIV + - col1 FROM tab2 AS cor0
----
1600
1
3364
1
529
1

skipif mysql # not compatible
query II rowsort label-8674
SELECT + - col2 * - col2 AS col0, - 83 / + - col1 FROM tab2 AS cor0
----
1600
1
3364
1
529
1

query I rowsort
SELECT DISTINCT - 66 * - col2 + col2 + + col1 FROM tab2 AS cor0
----
1592
2757
3953

query I rowsort
SELECT col2 * - col2 AS col0 FROM tab2 cor0 WHERE NULL IS NULL
----
-1600
-3364
-529

query II rowsort
SELECT DISTINCT - col1 AS col2, - col1 * + col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-51
-2346
-67
-5025
-77
-4928

onlyif mysql # aggregate syntax: 
query I rowsort label-8678
SELECT 9 + + COUNT( * ) FROM tab2
----
12

skipif mysql # not compatible
query I rowsort label-8678
SELECT 9 + + COUNT ( * ) FROM tab2
----
12

query I rowsort
SELECT col2 + - 43 AS col1 FROM tab2
----
-20
-3
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1, + 30 * col1 col1 FROM tab1 AS cor0
----
-14
420
-47
1410
-5
150

query I rowsort
SELECT - col1 + + + col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - + ( - + col2 ) + + col1 FROM tab0 AS cor0
----
100
128
31

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 15 / - + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8684
SELECT ALL + - COUNT( * ) + + + COUNT( * ) FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8684
SELECT ALL + - COUNT ( * ) + + + COUNT ( * ) FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
0

query I rowsort
SELECT ALL - col0 + 81 AS col1 FROM tab1 AS cor0
----
-10
-4
30

query II rowsort
SELECT - 87 AS col2, - col0 AS col1 FROM tab0 WHERE - - col0 = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8687
SELECT MIN( ALL 80 ) col0 FROM tab1
----
80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8687
SELECT MIN ( ALL 80 ) col0 FROM tab1
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8688
SELECT DISTINCT 41 * CAST( + - col2 AS SIGNED ) - - 86 FROM tab2
----
-1554
-2292
-857

skipif mysql # not compatible
query I rowsort label-8688
SELECT DISTINCT 41 * CAST ( + - col2 AS INTEGER ) - - 86 FROM tab2
----
-1554
-2292
-857

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8689
SELECT - CAST( + - ( + - 36 ) AS SIGNED ) AS col2 FROM tab1
----
-36
-36
-36

skipif mysql # not compatible
query I rowsort label-8689
SELECT - CAST ( + - ( + - 36 ) AS INTEGER ) AS col2 FROM tab1
----
-36
-36
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8690
SELECT COUNT( * ) * + ( - + COUNT( * ) ) - + + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8690
SELECT COUNT ( * ) * + ( - + COUNT ( * ) ) - + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8691
SELECT DISTINCT + 9 * - + COUNT( * ) * - COUNT( * ) FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-8691
SELECT DISTINCT + 9 * - + COUNT ( * ) * - COUNT ( * ) FROM tab0
----
81

query I rowsort
SELECT - ( - 10 ) - - col0 FROM tab1
----
101
61
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8693
SELECT + col0 - - CAST( NULL AS SIGNED ) col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8693
SELECT + col0 - - CAST ( NULL AS INTEGER ) col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8694
SELECT ALL col2 * + col1 DIV + col1 col0 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8694
SELECT ALL col2 * + col1 / + col1 col0 FROM tab2 AS cor0
----
23
40
58

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN 2 AND ( - col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8696
SELECT DISTINCT CAST( NULL AS SIGNED ), + COUNT( * ) AS col0 FROM tab2 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-8696
SELECT DISTINCT CAST ( NULL AS INTEGER ), + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
NULL
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 28 col0 FROM tab2 cor0
----
-28
-28
-28

query I rowsort
SELECT col0 * col0 * - col0 FROM tab1 AS cor0
----
-132651
-614125
-753571

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 * - col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - + 3 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-3

query I rowsort
SELECT ALL + ( + - col1 ) * + 7 AS col2 FROM tab0 cor0
----
-147
-567
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-8702
SELECT DISTINCT + - col1 DIV - 87 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8702
SELECT DISTINCT + - col1 / - 87 AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT 82 AS col0 FROM tab1 AS cor0 WHERE NOT + 35 >= - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8704
SELECT - - COUNT( * ) FROM tab0 AS cor0 WHERE NOT + 62 / - col2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-8704
SELECT - - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT + 62 / - col2 IS NULL
----
3

query I rowsort
SELECT DISTINCT col2 * col1 + + col2 AS col0 FROM tab0 AS cor0
----
198
220
3854

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( + 58 ) col1 FROM tab0 AS cor0
----
-58
-58
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-8707
SELECT - 69 * - MAX( ALL - col0 ) AS col0, COUNT( * ) FROM tab1
----
-3519
3

skipif mysql # not compatible
query II rowsort label-8707
SELECT - 69 * - MAX ( ALL - col0 ) AS col0, COUNT ( * ) FROM tab1
----
-3519
3

query I rowsort
SELECT DISTINCT col2 * 0 * col1 * - - col1 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8709
SELECT COUNT( * ) * + + 60 FROM tab0
----
180

skipif mysql # not compatible
query I rowsort label-8709
SELECT COUNT ( * ) * + + 60 FROM tab0
----
180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + col2 col2 FROM tab2 WHERE - col0 * col2 <= - col0 - - - col1 * + col1 * - 86 / - - 49
----
104
133
69

query II rowsort
SELECT DISTINCT + 48 AS col0, + 73 * + col0 FROM tab2
----
48
3358
48
4672
48
5475

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8712
SELECT ALL col0 * - + col2 + CAST( + col2 AS SIGNED ) FROM tab1
----
-4800
-4956
-6120

skipif mysql # not compatible
query I rowsort label-8712
SELECT ALL col0 * - + col2 + CAST ( + col2 AS INTEGER ) FROM tab1
----
-4800
-4956
-6120

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8713
SELECT 38 DIV + ( 35 ) + + MIN( - - ( + - col2 ) ) AS col0 FROM tab1 AS cor0
----
-95

skipif mysql # not compatible
query I rowsort label-8713
SELECT 38 / + ( 35 ) + + MIN ( - - ( + - col2 ) ) AS col0 FROM tab1 AS cor0
----
-95

query I rowsort
SELECT + col1 * + 74 AS col1 FROM tab0 AS cor0
----
1554
5994
74

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE 26 * - + ( + ( col2 ) ) - + col2 + col0 > + + 34
----

query I rowsort
SELECT + 26 FROM tab0 AS cor0 WHERE - ( ( + - col0 ) ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col2 - - col2 col0, + 1 AS col1 FROM tab0 AS cor0
----
198
1
20
1
94
1

query I rowsort
SELECT 38 - - col0 + col2 AS col2 FROM tab1 AS cor0
----
182
185
197

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8719
SELECT ALL + - CAST( NULL AS SIGNED ) + + 2 - - ( - 1 ) * + 49 * + - 88 * col1 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-8719
SELECT ALL + - CAST ( NULL AS INTEGER ) + + 2 - - ( - 1 ) * + 49 * + - 88 * col1 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( - - col2 ) - col1 AS col2 FROM tab2 AS cor0
----
-28
-37
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-8721
SELECT + - 42 DIV col2 + + col1 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-8721
SELECT + - 42 / col2 + + col1 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8722
SELECT + + 38 * + col1 + col0 + - col1 * CAST( col1 AS SIGNED ) + - - col0 AS col0, 71 AS col1 FROM tab2 AS cor0
----
-1793
71
-2875
71
-571
71

skipif mysql # not compatible
query II rowsort label-8722
SELECT + + 38 * + col1 + col0 + - col1 * CAST ( col1 AS INTEGER ) + - - col0 AS col0, 71 AS col1 FROM tab2 AS cor0
----
-1793
71
-2875
71
-571
71

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL < + ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8724
SELECT ALL COUNT( ALL + ( + - col1 ) ) * + COUNT( * ) + - COUNT( col1 ) + + 80 col2 FROM tab1
----
86

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8724
SELECT ALL COUNT ( ALL + ( + - col1 ) ) * + COUNT ( * ) + - COUNT ( col1 ) + + 80 col2 FROM tab1
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-8725
SELECT ( + + SUM( - 32 ) ) FROM tab2
----
-96

skipif mysql # not compatible
query I rowsort label-8725
SELECT ( + + SUM ( - 32 ) ) FROM tab2
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8726
SELECT DISTINCT ( + CAST( + ( + col2 ) AS SIGNED ) ) AS col0 FROM tab0 WHERE NOT NULL = - 29 * - - col1 / + 85 * col1
----

skipif mysql # not compatible
query I rowsort label-8726
SELECT DISTINCT ( + CAST ( + ( + col2 ) AS INTEGER ) ) AS col0 FROM tab0 WHERE NOT NULL = - 29 * - - col1 / + 85 * col1
----

query I rowsort
SELECT ( - - col0 ) * col2 FROM tab1
----
4896
5015
6188

query I rowsort
SELECT DISTINCT col1 * + col2 * - col1 AS col1 FROM tab0 AS cor0
----
-308367
-4410
-99

query I rowsort
SELECT ALL + - 31 AS col0 FROM tab1 AS cor0
----
-31
-31
-31

query I rowsort
SELECT - col1 * + col2 + col2 FROM tab0 cor0
----
-200
-3760
0

query I rowsort
SELECT ALL + 21 * - col2 AS col1 FROM tab2 AS cor0
----
-1218
-483
-840

query I rowsort
SELECT DISTINCT + col2 * - - 62 AS col2 FROM tab1
----
3658
4216
5952

query I rowsort
SELECT ALL - col2 * - 3 * - col1 FROM tab2 AS cor0
----
-11658
-3519
-9240

query I rowsort
SELECT + 77 * - col0 - 71 AS col1 FROM tab1 AS cor0
----
-3998
-6616
-7078

onlyif mysql # DIV for integer division: 
query II rowsort label-8735
SELECT DISTINCT + col0, 54 DIV col2 FROM tab0 AS cor0
----
15
1
87
5
97
0

skipif mysql # not compatible
query II rowsort label-8735
SELECT DISTINCT + col0, 54 / col2 FROM tab0 AS cor0
----
15
1
87
5
97
0

query I rowsort
SELECT - ( - 9 ) * col0 AS col2 FROM tab2 cor0
----
414
576
675

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8737
SELECT ALL MIN( ALL - CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8737
SELECT ALL MIN ( ALL - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8738
SELECT ALL + COUNT( * ) AS col2, - 85 FROM tab2 AS cor0
----
3
-85

skipif mysql # not compatible
query II rowsort label-8738
SELECT ALL + COUNT ( * ) AS col2, - 85 FROM tab2 AS cor0
----
3
-85

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col2 BETWEEN NULL AND col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + + ( + col0 ) AS col1 FROM tab1 cor0
----
51
85
91

query III rowsort
SELECT * FROM tab2 WHERE NOT - 56 / - - 6 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8742
SELECT DISTINCT 84 + + COUNT( + 21 ) FROM tab1
----
87

skipif mysql # not compatible
query I rowsort label-8742
SELECT DISTINCT 84 + + COUNT ( + 21 ) FROM tab1
----
87

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8743
SELECT ALL - 15 DIV - - ( - col0 ) * + CAST( col0 AS SIGNED ) * - 11 + - + 20 FROM tab2
----
-20
-20
-20

skipif mysql # not compatible
query I rowsort label-8743
SELECT ALL - 15 / - - ( - col0 ) * + CAST ( col0 AS INTEGER ) * - 11 + - + 20 FROM tab2
----
-20
-20
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-8744
SELECT COUNT( * ) * 78 FROM tab1
----
234

skipif mysql # not compatible
query I rowsort label-8744
SELECT COUNT ( * ) * 78 FROM tab1
----
234

query I rowsort
SELECT - ( + + 28 ) FROM tab2
----
-28
-28
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-8746
SELECT ALL - COUNT( * ) AS col1 FROM tab2 WHERE NULL >= 8
----
0

skipif mysql # not compatible
query I rowsort label-8746
SELECT ALL - COUNT ( * ) AS col1 FROM tab2 WHERE NULL >= 8
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8747
SELECT ALL MIN( + ( - col2 ) ) FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-8747
SELECT ALL MIN ( + ( - col2 ) ) FROM tab0
----
-99

query I rowsort
SELECT DISTINCT + - col1 * - col2 + + ( + 23 ) FROM tab0 cor0
----
122
233
3830

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8749
SELECT ALL ( - CAST( + col2 AS SIGNED ) ), - col0 * col1 + col1 AS col0 FROM tab0
----
-10
-1806
-47
-1134
-99
-96

skipif mysql # not compatible
query II rowsort label-8749
SELECT ALL ( - CAST ( + col2 AS INTEGER ) ), - col0 * col1 + col1 AS col0 FROM tab0
----
-10
-1806
-47
-1134
-99
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-8750
SELECT ALL + 94 - - MAX( col2 ) FROM tab1
----
190

skipif mysql # not compatible
query I rowsort label-8750
SELECT ALL + 94 - - MAX ( col2 ) FROM tab1
----
190

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8751
SELECT - col2 + - 4 * - - col1 * 89 + + - 94 * - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8751
SELECT - col2 + - 4 * - - col1 * 89 + + - 94 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE ( NOT + 74 * + 55 > NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8753
SELECT - - COUNT( + + 32 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9

skipif mysql # not compatible
query I rowsort label-8753
SELECT - - COUNT ( + + 32 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8754
SELECT DISTINCT - 61 * 15 + - SUM( DISTINCT + 81 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-996

skipif mysql # not compatible
query I rowsort label-8754
SELECT DISTINCT - 61 * 15 + - SUM ( DISTINCT + 81 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-996

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + col0 + - + col2 * - col1 col0 FROM tab1
----
2058
720
7473

onlyif mysql # DIV for integer division: 
query I rowsort label-8756
SELECT ALL col2 * - col1 + col2 DIV ( - col0 ) FROM tab0
----
-100
-210
-3810

skipif mysql # not compatible
query I rowsort label-8756
SELECT ALL col2 * - col1 + col2 / ( - col0 ) FROM tab0
----
-100
-210
-3810

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 58 >= NULL
----

query I rowsort
SELECT + 71 * + col1 AS col0 FROM tab1 AS cor0
----
3337
355
994

query I rowsort
SELECT DISTINCT - 56 - 64 AS col2 FROM tab1 cor0
----
-120

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8760
SELECT + - 52 * - CAST( + 7 AS SIGNED ), 35 AS col0 FROM tab1 AS cor0
----
364
35
364
35
364
35

skipif mysql # not compatible
query II rowsort label-8760
SELECT + - 52 * - CAST ( + 7 AS INTEGER ), 35 AS col0 FROM tab1 AS cor0
----
364
35
364
35
364
35

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8761
SELECT DISTINCT * FROM tab2 WHERE CAST( - 95 AS SIGNED ) * - ( - 46 ) BETWEEN 84 * - col2 / - - col0 / + + col0 + col0 AND NULL
----

skipif mysql # not compatible
query III rowsort label-8761
SELECT DISTINCT * FROM tab2 WHERE CAST ( - 95 AS INTEGER ) * - ( - 46 ) BETWEEN 84 * - col2 / - - col0 / + + col0 + col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8762
SELECT + COUNT( * ) * - - MAX( + - col0 ) AS col2 FROM tab0
----
-45

skipif mysql # not compatible
query I rowsort label-8762
SELECT + COUNT ( * ) * - - MAX ( + - col0 ) AS col2 FROM tab0
----
-45

query I rowsort
SELECT ALL 90 * - col1 AS col1 FROM tab0
----
-1890
-7290
-90

query II rowsort
SELECT - 56 * - col1, col2 FROM tab1
----
2632
68
280
59
784
96

query III rowsort
SELECT * FROM tab0 WHERE NOT - 21 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8766
SELECT DISTINCT - COUNT( DISTINCT + + col0 ) col0 FROM tab0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8766
SELECT DISTINCT - COUNT ( DISTINCT + + col0 ) col0 FROM tab0
----
-3

query I rowsort
SELECT DISTINCT - + col0 + + ( - ( - col1 ) ) FROM tab2 AS cor0
----
-8
13
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8768
SELECT DISTINCT + COUNT( * ) * 46 FROM tab0 AS cor0
----
138

skipif mysql # not compatible
query I rowsort label-8768
SELECT DISTINCT + COUNT ( * ) * 46 FROM tab0 AS cor0
----
138

query I rowsort
SELECT - col1 + col1 FROM tab0 cor0 WHERE NOT NULL >= 25
----

query I rowsort
SELECT ALL - col2 + - ( + + col1 ) AS col0 FROM tab1 cor0
----
-110
-115
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-8771
SELECT + - COUNT( * ) * + 21 AS col1 FROM tab0 AS cor0 WHERE NOT + col2 NOT BETWEEN - - ( - col2 ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-8771
SELECT + - COUNT ( * ) * + 21 AS col1 FROM tab0 AS cor0 WHERE NOT + col2 NOT BETWEEN - - ( - col2 ) AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8772
SELECT ALL - 28 * + SUM( ALL - + 32 ) AS col2 FROM tab2 AS cor0
----
2688

skipif mysql # not compatible
query I rowsort label-8772
SELECT ALL - 28 * + SUM ( ALL - + 32 ) AS col2 FROM tab2 AS cor0
----
2688

query II rowsort
SELECT col0 * col1 * - - col0 AS col1, + col2 AS col2 FROM tab1 AS cor0
----
36125
59
36414
96
389207
68

query I rowsort
SELECT 33 * + + col0 AS col1 FROM tab2
----
1518
2112
2475

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8775
SELECT ALL CAST( + 97 AS SIGNED ) DIV COUNT( * ) AS col0 FROM tab0
----
32

skipif mysql # not compatible
query I rowsort label-8775
SELECT ALL CAST ( + 97 AS INTEGER ) / COUNT ( * ) AS col0 FROM tab0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-8776
SELECT DISTINCT - MAX( DISTINCT + 15 ) + - COUNT( * ) AS col0 FROM tab2
----
-18

skipif mysql # not compatible
query I rowsort label-8776
SELECT DISTINCT - MAX ( DISTINCT + 15 ) + - COUNT ( * ) AS col0 FROM tab2
----
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8777
SELECT DISTINCT 81 DIV - - COUNT( * ) FROM tab0
----
27

skipif mysql # not compatible
query I rowsort label-8777
SELECT DISTINCT 81 / - - COUNT ( * ) FROM tab0
----
27

query II rowsort
SELECT ALL - col0 AS col2, - col1 FROM tab2
----
-46
-51
-64
-77
-75
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-8779
SELECT ALL MAX( ALL - 63 ) + + 60 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8779
SELECT ALL MAX ( ALL - 63 ) + + 60 FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8780
SELECT ALL - - CAST( col2 AS SIGNED ) + - 75 AS col2 FROM tab0 AS cor0
----
-28
-65
24

skipif mysql # not compatible
query I rowsort label-8780
SELECT ALL - - CAST ( col2 AS INTEGER ) + - 75 AS col2 FROM tab0 AS cor0
----
-28
-65
24

query II rowsort
SELECT - 89 * - + ( + ( - col2 ) ) AS col1, - col2 FROM tab1 AS cor0
----
-5251
-59
-6052
-68
-8544
-96

query I rowsort
SELECT DISTINCT + ( col0 ) * col0 - - col0 * + 30 AS col1 FROM tab2
----
3496
6016
7875

query I rowsort
SELECT col0 - - 65 FROM tab1 cor0 WHERE ( NULL ) >= NULL
----

query I rowsort
SELECT - + col0 + - 72 + col0 * 47 FROM tab0 AS cor0
----
3930
4390
618

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8785
SELECT * FROM tab0 AS cor0 WHERE ( NOT - CAST( + - ( + - 44 ) AS SIGNED ) IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8785
SELECT * FROM tab0 AS cor0 WHERE ( NOT - CAST ( + - ( + - 44 ) AS INTEGER ) IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8786
SELECT DISTINCT COUNT( * ) * - + COUNT( DISTINCT col1 ) AS col1 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-8786
SELECT DISTINCT COUNT ( * ) * - + COUNT ( DISTINCT col1 ) AS col1 FROM tab0 AS cor0
----
-9

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - col2 - - col1 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8788
SELECT DISTINCT + - col0 DIV + - col0 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8788
SELECT DISTINCT + - col0 / + - col0 FROM tab2 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8789
SELECT + - SUM( ALL + col2 ) FROM tab1 cor0
----
-223

skipif mysql # not compatible
query I rowsort label-8789
SELECT + - SUM ( ALL + col2 ) FROM tab1 cor0
----
-223

onlyif mysql # aggregate syntax: 
query II rowsort label-8790
SELECT - MAX( - col0 ), ( - + 52 ) AS col0 FROM tab2 AS cor0
----
46
-52

skipif mysql # not compatible
query II rowsort label-8790
SELECT - MAX ( - col0 ), ( - + 52 ) AS col0 FROM tab2 AS cor0
----
46
-52

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL BETWEEN NULL AND col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8792
SELECT DISTINCT * FROM tab0 AS cor0 WHERE CAST( + col1 AS DECIMAL ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8792
SELECT DISTINCT * FROM tab0 AS cor0 WHERE CAST ( + col1 AS REAL ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL - col0, col2 AS col1 FROM tab2
----
-46
23
-64
40
-75
58

query II rowsort
SELECT - col0 AS col1, - ( + + ( 14 ) ) FROM tab1
----
-51
-14
-85
-14
-91
-14

query I rowsort
SELECT ALL + col1 * - 44 FROM tab1
----
-2068
-220
-616

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col2, col1 + col2 FROM tab2
----
-46
74
-64
117
-75
125

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 col0, + col2 FROM tab0
----
10
10
47
47
99
99

query I rowsort
SELECT DISTINCT ( + 18 ) FROM tab2
----
18

query II rowsort
SELECT col0, + 13 + + col0 AS col2 FROM tab0 AS cor0
----
15
28
87
100
97
110

onlyif mysql # aggregate syntax: 
query I rowsort label-8800
SELECT + 90 * + - COUNT( * ) FROM tab2 AS cor0
----
-270

skipif mysql # not compatible
query I rowsort label-8800
SELECT + 90 * + - COUNT ( * ) FROM tab2 AS cor0
----
-270

query I rowsort
SELECT ALL 71 * - + col0 AS col0 FROM tab0 AS cor0
----
-1065
-6177
-6887

query I rowsort
SELECT + col1 * - 39 AS col0 FROM tab0 AS cor0
----
-3159
-39
-819

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8803
SELECT DISTINCT + col1, col2 * + - CAST( NULL AS SIGNED ) + - col1 AS col0 FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-8803
SELECT DISTINCT + col1, col2 * + - CAST ( NULL AS INTEGER ) + - col1 AS col0 FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

query I rowsort
SELECT ALL + ( col0 ) AS col2 FROM tab2 cor0
----
46
64
75

query I rowsort
SELECT - col0 + - col1 + + col0 AS col2 FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8806
SELECT ALL + - CAST( col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-8806
SELECT ALL + - CAST ( col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-14
-47
-5

query I rowsort
SELECT DISTINCT col2 * + - col1 + + col2 FROM tab1 AS cor0
----
-1248
-236
-3128

query I rowsort
SELECT + col1 + - col2 + + - 81 FROM tab1 cor0
----
-102
-135
-163

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 * - 90 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 * - - 93 col0 FROM tab0 cor0
----
-1395
-8091
-9021

query II rowsort
SELECT col2 * + - col1 * + - col2 AS col2, - 47 + - + 63 FROM tab2
----
123200
-110
225388
-110
26979
-110

query III rowsort
SELECT * FROM tab2 WHERE - + 56 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8813
SELECT SUM( ALL + - col1 ) FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-8813
SELECT SUM ( ALL + - col1 ) FROM tab0
----
-103

onlyif mysql # DIV for integer division: 
query I rowsort label-8814
SELECT col0 DIV + 18 FROM tab2
----
2
3
4

skipif mysql # not compatible
query I rowsort label-8814
SELECT col0 / + 18 FROM tab2
----
2
3
4

query I rowsort
SELECT - ( col1 ) * col1 + 37 FROM tab1
----
-159
-2172
12

onlyif mysql # aggregate syntax: 
query I rowsort label-8816
SELECT + MAX( ALL - col0 ) col1 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8816
SELECT + MAX ( ALL - col0 ) col1 FROM tab0 AS cor0
----
-15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 6 - - col2 col1 FROM tab2 AS cor0
----
17
34
52

query I rowsort
SELECT DISTINCT 93 FROM tab0 AS cor0 WHERE ( NOT NULL >= col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8819
SELECT ALL - ( + COUNT( ALL + - CAST( NULL AS SIGNED ) ) ) + + + 70 FROM tab2 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-8819
SELECT ALL - ( + COUNT ( ALL + - CAST ( NULL AS INTEGER ) ) ) + + + 70 FROM tab2 AS cor0
----
70

query I rowsort
SELECT DISTINCT - + ( - ( - col0 ) ) FROM tab0 cor0
----
-15
-87
-97

query I rowsort
SELECT col1 FROM tab2 WHERE + 96 IS NULL
----

query I rowsort
SELECT - col0 * 1 + col0 - + col1 AS col0 FROM tab0
----
-1
-21
-81

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) BETWEEN NULL AND col2
----

query I rowsort
SELECT ALL col1 * - - col2 FROM tab1 AS cor0
----
1344
295
3196

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + col2 AND - 34
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8826
SELECT DISTINCT + 67 DIV + col1 FROM tab0 AS cor0
----
0
3
67

skipif mysql # not compatible
query I rowsort label-8826
SELECT DISTINCT + 67 / + col1 FROM tab0 AS cor0
----
0
3
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8827
SELECT ALL - CAST( NULL AS SIGNED ) * 21 + - col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8827
SELECT ALL - CAST ( NULL AS INTEGER ) * 21 + - col2 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8828
SELECT ALL SUM( ALL - ( - 23 ) ) FROM tab0 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-8828
SELECT ALL SUM ( ALL - ( - 23 ) ) FROM tab0 AS cor0
----
69

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 * col2 < - col1 + + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8830
SELECT ALL 99 DIV + col2 AS col2 FROM tab0 AS cor0
----
1
2
9

skipif mysql # not compatible
query I rowsort label-8830
SELECT ALL 99 / + col2 AS col2 FROM tab0 AS cor0
----
1
2
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8831
SELECT COUNT( * ) * + 97 FROM tab1 AS cor0
----
291

skipif mysql # not compatible
query I rowsort label-8831
SELECT COUNT ( * ) * + 97 FROM tab1 AS cor0
----
291

query III rowsort
SELECT * FROM tab2 WHERE NOT - + 22 * - col2 - - + 16 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8833
SELECT COUNT( * ) * + - 89 FROM tab1, tab0 AS cor0
----
-801

skipif mysql # not compatible
query I rowsort label-8833
SELECT COUNT ( * ) * + - 89 FROM tab1, tab0 AS cor0
----
-801

query I rowsort
SELECT DISTINCT col2 * - 93 AS col0 FROM tab2
----
-2139
-3720
-5394

query I rowsort
SELECT DISTINCT - 37 * col2 AS col0 FROM tab2
----
-1480
-2146
-851

query I rowsort
SELECT DISTINCT 99 FROM tab0 WHERE NOT + col0 IS NULL
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8837
SELECT DISTINCT - MAX( DISTINCT + 92 ) FROM tab2 AS cor0
----
-92

skipif mysql # not compatible
query I rowsort label-8837
SELECT DISTINCT - MAX ( DISTINCT + 92 ) FROM tab2 AS cor0
----
-92

query II rowsort
SELECT DISTINCT + 98 AS col1, - col0 FROM tab1 AS cor0 WHERE NOT + col1 - + - col1 BETWEEN NULL AND col1
----
98
-51
98
-85
98
-91

query I rowsort
SELECT ALL 75 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col0 AS col0 FROM tab2 AS cor0 WHERE NOT col2 + - 27 IS NOT NULL
----

query II rowsort
SELECT - 49 + - col2 + + 75, col2 FROM tab0 cor0
----
-21
47
-73
99
16
10

query I rowsort
SELECT + - col2 * 62 + 88 AS col1 FROM tab2 cor0
----
-1338
-2392
-3508

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-8843
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col1 * - CAST( - ( + - col2 ) AS SIGNED ) BETWEEN - - CAST( NULL AS DECIMAL ) AND - + col1 + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-8843
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col1 * - CAST ( - ( + - col2 ) AS INTEGER ) BETWEEN - - CAST ( NULL AS REAL ) AND - + col1 + CAST ( NULL AS REAL )
----

query I rowsort
SELECT ALL - - 34 FROM tab0 AS cor0 WHERE NOT ( NULL ) = NULL
----

query II rowsort
SELECT 60 + - col1, col0 FROM tab2 AS cor0
----
-17
64
-7
75
9
46

onlyif mysql # aggregate syntax: 
query I rowsort label-8846
SELECT + COUNT( * ) AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-8846
SELECT + COUNT ( * ) AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9

query I rowsort
SELECT ALL + - 64 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 601ec439a72fb4786a9cb7a6547ace5e

query II rowsort
SELECT - col1, + col1 AS col0 FROM tab0
----
-1
1
-21
21
-81
81

query I rowsort
SELECT DISTINCT col2 + - ( + col1 ) FROM tab1
----
21
54
82

query I rowsort
SELECT + + 30 FROM tab0 cor0
----
30
30
30

query I rowsort
SELECT ALL - col2 + + + 48 AS col1 FROM tab0 AS cor0
----
-51
1
38

query I rowsort
SELECT 83 FROM tab0 AS cor0 WHERE NULL IS NULL
----
83
83
83

query I rowsort
SELECT ALL col1 + - 36 FROM tab2 AS cor0
----
15
31
41

query I rowsort
SELECT ALL 15 * col0 * - col1 + + - col2 AS col2 FROM tab2 cor0
----
-35213
-73960
-75433

onlyif mysql # aggregate syntax: 
query I rowsort label-8855
SELECT DISTINCT + - MAX( + - col2 ) AS col1 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-8855
SELECT DISTINCT + - MAX ( + - col2 ) AS col1 FROM tab1 AS cor0
----
59

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col0 + 75 * - + col0 IS NOT NULL
----

query I rowsort
SELECT + 72 * 48 + + 12 FROM tab1 AS cor0
----
3468
3468
3468

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8858
SELECT DISTINCT CAST( SUM( ALL - col1 ) AS SIGNED ) FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-8858
SELECT DISTINCT CAST ( SUM ( ALL - col1 ) AS INTEGER ) FROM tab0
----
-103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8859
SELECT col2 + + - col2 * 67 * CAST( NULL AS SIGNED ) * - col2 * col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8859
SELECT col2 + + - col2 * 67 * CAST ( NULL AS INTEGER ) * - col2 * col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 + - - col1 - - col2 FROM tab2
----
51
67
77

query I rowsort
SELECT ALL - col0 * - 41 * - 79 AS col2 FROM tab0
----
-281793
-314183
-48585

query I rowsort
SELECT DISTINCT - 84 * col2 FROM tab2 AS cor0
----
-1932
-3360
-4872

query II rowsort
SELECT col1 AS col1, - col1 - + + col2 AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8864
SELECT ALL 82 * - COUNT( * ) - - 14 col1 FROM tab2 AS cor0
----
-232

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8864
SELECT ALL 82 * - COUNT ( * ) - - 14 col1 FROM tab2 AS cor0
----
-232

onlyif mysql # aggregate syntax: 
query I rowsort label-8865
SELECT DISTINCT COUNT( * ) * + 25 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-8865
SELECT DISTINCT COUNT ( * ) * + 25 FROM tab2
----
75

query II rowsort
SELECT 35 AS col2, 7 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
18 values hashing to 68e693589fb0180e510419628b7ebea2

onlyif mysql # aggregate syntax: 
query I rowsort label-8867
SELECT DISTINCT + 48 * + ( - - MAX( + col2 ) ) FROM tab1
----
4608

skipif mysql # not compatible
query I rowsort label-8867
SELECT DISTINCT + 48 * + ( - - MAX ( + col2 ) ) FROM tab1
----
4608

query I rowsort
SELECT + - 39 * + col2 AS col1 FROM tab2 cor0
----
-1560
-2262
-897

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8869
SELECT DISTINCT + col2 * - - col0 + + + col1 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8869
SELECT DISTINCT + col2 * - - col0 + + + col1 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8870
SELECT - COUNT( * ) * + SUM( ALL 7 ) * - - 97 AS col0 FROM tab2 AS cor0
----
-6111

skipif mysql # not compatible
query I rowsort label-8870
SELECT - COUNT ( * ) * + SUM ( ALL 7 ) * - - 97 AS col0 FROM tab2 AS cor0
----
-6111

query I rowsort
SELECT DISTINCT + ( + 9 ) AS col2 FROM tab1 AS cor0
----
9

query II rowsort
SELECT + col0 AS col0, 21 * col1 + + 18 + col1 FROM tab1 AS cor0
----
51
326
85
128
91
1052

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * - col1 col0 FROM tab0 AS cor0
----
-1215
-1827
-97

query II rowsort
SELECT DISTINCT + 3 AS col0, - col2 + col2 AS col2 FROM tab2
----
3
0

query I rowsort
SELECT DISTINCT 7 * ( + + col1 ) * col2 FROM tab1
----
2065
22372
9408

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8876
SELECT * FROM tab0 WHERE NOT - 84 BETWEEN NULL AND NULL AND + CAST( NULL AS SIGNED ) * + col0 IS NULL
----

skipif mysql # not compatible
query III rowsort label-8876
SELECT * FROM tab0 WHERE NOT - 84 BETWEEN NULL AND NULL AND + CAST ( NULL AS INTEGER ) * + col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8877
SELECT DISTINCT - col2 DIV - col2, col1 AS col1 FROM tab2
----
1
51
1
67
1
77

skipif mysql # not compatible
query II rowsort label-8877
SELECT DISTINCT - col2 / - col2, col1 AS col1 FROM tab2
----
1
51
1
67
1
77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8878
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-8878
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN CAST ( NULL AS INTEGER ) AND NULL
----

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab1 WHERE NOT 64 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8880
SELECT MIN( ALL + col0 ) col1 FROM tab2
----
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8880
SELECT MIN ( ALL + col0 ) col1 FROM tab2
----
46

onlyif mysql # DIV for integer division: 
query II rowsort label-8881
SELECT - - 83, 57 DIV - 57 col0 FROM tab0 AS cor0
----
83
-1
83
-1
83
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8881
SELECT - - 83, 57 / - 57 col0 FROM tab0 AS cor0
----
83
-1
83
-1
83
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8882
SELECT ALL SUM( - col1 ) AS col0 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-8882
SELECT ALL SUM ( - col1 ) AS col0 FROM tab2 AS cor0
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-8883
SELECT - COUNT( - col0 ) * ( - SUM( DISTINCT + col1 ) ) FROM tab2 AS cor0
----
585

skipif mysql # not compatible
query I rowsort label-8883
SELECT - COUNT ( - col0 ) * ( - SUM ( DISTINCT + col1 ) ) FROM tab2 AS cor0
----
585

onlyif mysql # aggregate syntax: 
query I rowsort label-8884
SELECT COUNT( * ) FROM tab0 WHERE NULL BETWEEN + col1 AND + col2 * col2
----
0

skipif mysql # not compatible
query I rowsort label-8884
SELECT COUNT ( * ) FROM tab0 WHERE NULL BETWEEN + col1 AND + col2 * col2
----
0

query I rowsort
SELECT + 32 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d30a2acbf33c88274474306936d3227b

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8886
SELECT 0 + - CAST( NULL AS DECIMAL ) / + col0 + - + 51 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8886
SELECT 0 + - CAST ( NULL AS REAL ) / + col0 + - + 51 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT 19 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

onlyif mysql # aggregate syntax: 
query I rowsort label-8888
SELECT - COUNT( * ) + - - 33 FROM tab0
----
30

skipif mysql # not compatible
query I rowsort label-8888
SELECT - COUNT ( * ) + - - 33 FROM tab0
----
30

query I rowsort
SELECT + + col1 FROM tab2 AS cor0 WHERE col0 IS NULL
----

query I rowsort
SELECT ALL 71 + + col0 FROM tab2 AS cor0
----
117
135
146

query I rowsort
SELECT col0 + 84 + - col0 FROM tab2 AS cor0
----
84
84
84

query I rowsort
SELECT DISTINCT + 48 * - col2 + col2 - - col1 * col0 FROM tab2 AS cor0
----
1265
2299
3048

query I rowsort
SELECT DISTINCT - col2 + + 16 FROM tab0 cor0
----
-31
-83
6

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + - 97 * + + col0 AS col0 FROM tab2 AS cor0
----
-4462
-6208
-7275

query I rowsort
SELECT DISTINCT - col0 + + + col1 AS col1 FROM tab2
----
-8
13
5

query II rowsort
SELECT + 69 AS col1, - col1 FROM tab0 WHERE NULL = 15 * + col2 + + - 38
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8898
SELECT DISTINCT - 76 - + - COUNT( * ) FROM tab1
----
-73

skipif mysql # not compatible
query I rowsort label-8898
SELECT DISTINCT - 76 - + - COUNT ( * ) FROM tab1
----
-73

query I rowsort
SELECT + col0 + 42 FROM tab2 WHERE + 54 * col0 + - col1 BETWEEN ( 88 * + col1 ) AND + col2
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( col2 > NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8901
SELECT ALL + COUNT( * ) * - - ( - 48 ) AS col1 FROM tab2
----
-144

skipif mysql # not compatible
query I rowsort label-8901
SELECT ALL + COUNT ( * ) * - - ( - 48 ) AS col1 FROM tab2
----
-144

onlyif mysql # DIV for integer division: 
query I rowsort label-8902
SELECT ALL + col0 + - ( + col2 ) DIV - col2 FROM tab1
----
52
86
92

skipif mysql # not compatible
query I rowsort label-8902
SELECT ALL + col0 + - ( + col2 ) / - col2 FROM tab1
----
52
86
92

query III rowsort
SELECT * FROM tab1 cor0 WHERE 86 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col0 NOT IN ( col1 + + col0 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - ( col2 ) ) IN ( - col1 * + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 85 - - 66 FROM tab0
----
151
151
151

query I rowsort
SELECT DISTINCT col0 * - col2 AS col1 FROM tab2 WHERE NULL >= ( - col1 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8908
SELECT ALL * FROM tab1 WHERE ( CAST( - col1 AS DECIMAL ) ) - col0 * col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8908
SELECT ALL * FROM tab1 WHERE ( CAST ( - col1 AS REAL ) ) - col0 * col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8909
SELECT col2 * 29 - col2 * col0 AS col2 FROM tab1 WHERE ( + CAST( NULL AS SIGNED ) ) IS NULL
----
-2112
-3304
-4216

skipif mysql # not compatible
query I rowsort label-8909
SELECT col2 * 29 - col2 * col0 AS col2 FROM tab1 WHERE ( + CAST ( NULL AS INTEGER ) ) IS NULL
----
-2112
-3304
-4216

onlyif mysql # aggregate syntax: 
query I rowsort label-8910
SELECT ALL SUM( - col1 ) FROM tab0 WHERE col0 IS NOT NULL
----
-103

skipif mysql # not compatible
query I rowsort label-8910
SELECT ALL SUM ( - col1 ) FROM tab0 WHERE col0 IS NOT NULL
----
-103

onlyif mysql # DIV for integer division: 
query I rowsort label-8911
SELECT col1 DIV ( 23 ) + - col1 * - col1 FROM tab0
----
1
441
6564

skipif mysql # not compatible
query I rowsort label-8911
SELECT col1 / ( 23 ) + - col1 * - col1 FROM tab0
----
1
441
6564

query I rowsort
SELECT DISTINCT - col0 FROM tab1 WHERE NOT col1 + col2 >= col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8913
SELECT - col1 * col1 FROM tab2 WHERE CAST( - col2 AS SIGNED ) <> ( NULL )
----

skipif mysql # not compatible
query I rowsort label-8913
SELECT - col1 * col1 FROM tab2 WHERE CAST ( - col2 AS INTEGER ) <> ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 50 col0 FROM tab1
----
50
50
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8915
SELECT + CAST( 62 AS SIGNED ) AS col1 FROM tab0 WHERE NULL = col1 / 52
----

skipif mysql # not compatible
query I rowsort label-8915
SELECT + CAST ( 62 AS INTEGER ) AS col1 FROM tab0 WHERE NULL = col1 / 52
----

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN ( NULL ) AND 55
----

query I rowsort
SELECT 29 - col2 AS col1 FROM tab0
----
-18
-70
19

onlyif mysql # aggregate syntax: 
query I rowsort label-8918
SELECT ALL - 15 + - COUNT( ALL col0 ) * - COUNT( * ) col2 FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8918
SELECT ALL - 15 + - COUNT ( ALL col0 ) * - COUNT ( * ) col2 FROM tab0 AS cor0
----
-6

query I rowsort
SELECT DISTINCT + 76 * col0 AS col0 FROM tab1 AS cor0
----
3876
6460
6916

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + 5 * - col1 col1 FROM tab2 AS cor0
----
-232
-277
-345

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8921
SELECT CAST( NULL AS SIGNED ) + col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8921
SELECT CAST ( NULL AS INTEGER ) + col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8922
SELECT DISTINCT - COUNT( * ) DIV 89 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8922
SELECT DISTINCT - COUNT ( * ) / 89 AS col2 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8923
SELECT COUNT( * ) * + SUM( ALL - col1 ) AS col0 FROM tab0
----
-309

skipif mysql # not compatible
query I rowsort label-8923
SELECT COUNT ( * ) * + SUM ( ALL - col1 ) AS col0 FROM tab0
----
-309

onlyif mysql # aggregate syntax: 
query I rowsort label-8924
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab1 cor0 CROSS JOIN tab1
----
9

skipif mysql # not compatible
query I rowsort label-8924
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab1 cor0 CROSS JOIN tab1
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-8925
SELECT ALL col0 DIV - 83 AS col0 FROM tab0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-8925
SELECT ALL col0 / - 83 AS col0 FROM tab0
----
-1
-1
0

query III rowsort
SELECT * FROM tab0 WHERE 76 + 34 IS NULL
----

query I rowsort
SELECT DISTINCT - - 51 + col0 FROM tab0 cor0
----
138
148
66

query I rowsort
SELECT DISTINCT + col0 + - 5 FROM tab1 AS cor0
----
46
80
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8929
SELECT 34 * col1 - - CAST( 56 AS SIGNED ) FROM tab1 AS cor0
----
1654
226
532

skipif mysql # not compatible
query I rowsort label-8929
SELECT 34 * col1 - - CAST ( 56 AS INTEGER ) FROM tab1 AS cor0
----
1654
226
532

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8930
SELECT DISTINCT + CAST( - COUNT( * ) AS SIGNED ) + + 27 AS col2 FROM tab2 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-8930
SELECT DISTINCT + CAST ( - COUNT ( * ) AS INTEGER ) + + 27 AS col2 FROM tab2 AS cor0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-8931
SELECT DISTINCT + MIN( + col2 ) AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8931
SELECT DISTINCT + MIN ( + col2 ) AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8932
SELECT - 26 + + COUNT( * ) FROM tab0 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-8932
SELECT - 26 + + COUNT ( * ) FROM tab0 AS cor0
----
-23

query I rowsort
SELECT - 6 * ( - col2 ) AS col0 FROM tab2 AS cor0 WHERE - 88 NOT BETWEEN col2 AND NULL
----
138
240
348

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8934
SELECT MAX( ALL - col1 ) + - CAST( NULL AS SIGNED ) * CAST( 74 * - 67 + COUNT( * ) AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8934
SELECT MAX ( ALL - col1 ) + - CAST ( NULL AS INTEGER ) * CAST ( 74 * - 67 + COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 24 >= ( NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE 59 * + col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8937
SELECT DISTINCT * FROM tab2 WHERE NOT ( + CAST( NULL AS SIGNED ) + + col1 ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-8937
SELECT DISTINCT * FROM tab2 WHERE NOT ( + CAST ( NULL AS INTEGER ) + + col1 ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8938
SELECT DISTINCT COUNT( ALL col1 ) - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8938
SELECT DISTINCT COUNT ( ALL col1 ) - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8939
SELECT DISTINCT * FROM tab2 WHERE ( CAST( NULL AS SIGNED ) + - col0 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8939
SELECT DISTINCT * FROM tab2 WHERE ( CAST ( NULL AS INTEGER ) + - col0 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col0 + + 67 * col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - ( - col0 ) - - col1 * + 43 FROM tab1
----
2112
300
653

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 < ( + col1 )
----
97
1
99

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col1 / + col1 + col2 NOT IN ( col1 * + col2 ) OR - col1 + col1 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE ( - 57 + + 90 ) IN ( col0 + 62 )
----

query I rowsort
SELECT col1 AS col2 FROM tab1 WHERE NULL IN ( + 84 )
----

query III rowsort
SELECT * FROM tab1 WHERE ( 97 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8947
SELECT ALL CAST( 40 AS SIGNED ) + COUNT( * ) AS col1 FROM tab2
----
43

skipif mysql # not compatible
query I rowsort label-8947
SELECT ALL CAST ( 40 AS INTEGER ) + COUNT ( * ) AS col1 FROM tab2
----
43

query I rowsort
SELECT 86 * 43 AS col0 FROM tab1
----
3698
3698
3698

query I rowsort
SELECT - - col0 * - - col0 * col1 FROM tab1 cor0
----
36125
36414
389207

onlyif mysql # aggregate syntax: 
query I rowsort label-8950
SELECT MAX( ALL - + col1 ) AS col1 FROM tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8950
SELECT MAX ( ALL - + col1 ) AS col1 FROM tab0 cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8951
SELECT ALL + + MAX( - ( + 25 ) ) col1 FROM tab0 AS cor0
----
-25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8951
SELECT ALL + + MAX ( - ( + 25 ) ) col1 FROM tab0 AS cor0
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8952
SELECT ALL * FROM tab2 cor0 WHERE NULL IN ( + col2 + CAST( col2 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8952
SELECT ALL * FROM tab2 cor0 WHERE NULL IN ( + col2 + CAST ( col2 AS INTEGER ) )
----

query I rowsort
SELECT ALL - 27 / 25 + - col1 FROM tab2 AS cor0 WHERE ( + col0 ) > ( 77 )
----

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab1 WHERE ( - - col0 * - col1 ) <= ( + col2 / col0 )
----
-51
-85
-91

query I rowsort
SELECT - - 4 AS col2 FROM tab1 AS cor0
----
4
4
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8956
SELECT CAST( - 87 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-87
-87
-87

skipif mysql # not compatible
query I rowsort label-8956
SELECT CAST ( - 87 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-87
-87
-87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 40 * - + 47 col1 FROM tab0 AS cor0
----
-1880
-1880
-1880

onlyif mysql # aggregate syntax: 
query I rowsort label-8958
SELECT ALL - COUNT( * ) FROM tab2 AS cor0 WHERE 85 / col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8958
SELECT ALL - COUNT ( * ) FROM tab2 AS cor0 WHERE 85 / col1 IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 34 col1 FROM tab0 AS cor0
----
-34
-34
-34

query I rowsort
SELECT + + col2 * + - ( - 25 ) FROM tab0 AS cor0
----
1175
2475
250

query II rowsort
SELECT DISTINCT col2 * + col1 AS col0, 67 FROM tab1
----
1344
67
295
67
3196
67

query I rowsort
SELECT DISTINCT AVG ( DISTINCT - col0 ) AS col1 FROM tab0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8963
SELECT DISTINCT ( + - col2 ) / CAST( NULL AS SIGNED ) + - col0 + - 69 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8963
SELECT DISTINCT ( + - col2 ) / CAST ( NULL AS INTEGER ) + - col0 + - 69 FROM tab1
----
NULL

query I rowsort
SELECT ALL - col2 + + - ( ( + col2 ) ) FROM tab1
----
-118
-136
-192

query I rowsort
SELECT DISTINCT col0 + 53 * - col1 FROM tab0 cor0 WHERE NULL IN ( - col0 / - col2 / - col2 * + col1 )
----

query I rowsort
SELECT DISTINCT 96 * + col0 * 62 - - col1 AS col0 FROM tab2 AS cor0
----
273843
381005
446467

onlyif mysql # aggregate syntax: 
query II rowsort label-8967
SELECT ALL + + 83 * + COUNT( * ) AS col0, - 96 AS col1 FROM tab1 AS cor0
----
249
-96

skipif mysql # not compatible
query II rowsort label-8967
SELECT ALL + + 83 * + COUNT ( * ) AS col0, - 96 AS col1 FROM tab1 AS cor0
----
249
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - + 82 col1 FROM tab0 AS cor0
----
-3854
-8118
-820

query II rowsort
SELECT 32 * + col2 + - + 57, - 74 * + col2 AS col2 FROM tab2
----
1223
-2960
1799
-4292
679
-1702

query I rowsort
SELECT ALL + col2 + - ( 59 ) FROM tab0
----
-12
-49
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8971
SELECT ALL - + 93 * 6 + COUNT( * ) * ( MAX( DISTINCT col0 ) ) FROM tab1 AS cor0
----
-285

skipif mysql # not compatible
query I rowsort label-8971
SELECT ALL - + 93 * 6 + COUNT ( * ) * ( MAX ( DISTINCT col0 ) ) FROM tab1 AS cor0
----
-285

query III rowsort
SELECT * FROM tab2 cor0 WHERE - 94 > + ( col2 )
----

query I rowsort
SELECT DISTINCT + 26 - - col1 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8974
SELECT col2 FROM tab1 cor0 WHERE ( + 20 * 99 ) NOT BETWEEN NULL AND ( + col2 * - - ( CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ) + col1 * + col2 )
----

skipif mysql # not compatible
query I rowsort label-8974
SELECT col2 FROM tab1 cor0 WHERE ( + 20 * 99 ) NOT BETWEEN NULL AND ( + col2 * - - ( CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) + col1 * + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8975
SELECT + COUNT( ALL - - col1 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8975
SELECT + COUNT ( ALL - - col1 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT - col0 - + 17 AS col2 FROM tab2 cor0
----
-63
-81
-92

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8977
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 NOT IN ( - - ( - CAST( + - col1 AS SIGNED ) ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8977
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 NOT IN ( - - ( - CAST ( + - col1 AS INTEGER ) ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-8978
SELECT ALL + col0 * col1 - - col1 DIV - - col0 AS col0 FROM tab1 AS cor0
----
425
4277
714

skipif mysql # not compatible
query I rowsort label-8978
SELECT ALL + col0 * col1 - - col1 / - - col0 AS col0 FROM tab1 AS cor0
----
425
4277
714

query I rowsort
SELECT DISTINCT - 58 + - + 69 AS col1 FROM tab2 cor0
----
-127

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 col2 FROM tab0 AS cor0 WHERE NOT + col2 * + - 73 - 82 + - 53 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8981
SELECT ALL MAX( + col0 ) - - 36 AS col1 FROM tab1 AS cor0
----
127

skipif mysql # not compatible
query I rowsort label-8981
SELECT ALL MAX ( + col0 ) - - 36 AS col1 FROM tab1 AS cor0
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-8982
SELECT MIN( - col1 ) - + + 33 FROM tab1
----
-80

skipif mysql # not compatible
query I rowsort label-8982
SELECT MIN ( - col1 ) - + + 33 FROM tab1
----
-80

onlyif mysql # DIV for integer division: 
query II rowsort label-8983
SELECT DISTINCT - 48 - col1 DIV - 58 + - 50 AS col2, ( 93 ) AS col2 FROM tab0
----
-97
93
-98
93

skipif mysql # not compatible
query II rowsort label-8983
SELECT DISTINCT - 48 - col1 / - 58 + - 50 AS col2, ( 93 ) AS col2 FROM tab0
----
-97
93
-98
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 76 * - - col1 col0 FROM tab0
----
1596
6156
76

onlyif mysql # aggregate syntax: 
query I rowsort label-8985
SELECT ALL MAX( ALL + col2 ) AS col0 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-8985
SELECT ALL MAX ( ALL + col2 ) AS col0 FROM tab2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8986
SELECT ALL - COUNT( * ) * 76 AS col0 FROM tab1
----
-228

skipif mysql # not compatible
query I rowsort label-8986
SELECT ALL - COUNT ( * ) * 76 AS col0 FROM tab1
----
-228

query II rowsort
SELECT 17 * - - col1 AS col1, col1 FROM tab2
----
1139
67
1309
77
867
51

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT ( + 55 ) >= - 47 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col2 * - 26 FROM tab0
----
1222
2574
260

onlyif mysql # aggregate syntax: 
query I rowsort label-8990
SELECT + COUNT( ALL - col1 ) * - - COUNT( * ) FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8990
SELECT + COUNT ( ALL - col1 ) * - - COUNT ( * ) FROM tab1 AS cor0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-8991
SELECT + + 44 DIV - 86 + - col0 AS col2 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-8991
SELECT + + 44 / - 86 + - col0 AS col2 FROM tab2 AS cor0
----
-46
-64
-75

query III rowsort
SELECT ALL * FROM tab1 WHERE + col2 * - col0 NOT IN ( - + ( + ( col1 ) ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8993
SELECT ALL + CAST( - 86 AS SIGNED ) * - COUNT( * ) - + - COUNT( - ( 61 ) ) + - 89 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
694

skipif mysql # not compatible
query I rowsort label-8993
SELECT ALL + CAST ( - 86 AS INTEGER ) * - COUNT ( * ) - + - COUNT ( - ( 61 ) ) + - 89 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
694

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 62 + col0 + + col2 - col0 - col2 + - col2 * + 50 * col1 NOT BETWEEN NULL AND ( + col0 )
----

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab2 WHERE + + 47 NOT BETWEEN + - 75 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 15 * - col2 col1 FROM tab2 AS cor0
----
345
600
870

query I rowsort
SELECT ALL + col0 FROM tab2 AS cor0 WHERE NOT ( NOT + col0 * + + col2 + col1 <> NULL )
----

query I rowsort
SELECT + 35 FROM tab1 AS cor0 WHERE NOT ( NOT ( NULL ) <= ( - col1 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8999
SELECT ALL 94 + + col2 FROM tab1 AS cor0 WHERE NOT ( - col1 * + CAST( NULL AS SIGNED ) + + col2 IS NULL )
----

skipif mysql # not compatible
query I rowsort label-8999
SELECT ALL 94 + + col2 FROM tab1 AS cor0 WHERE NOT ( - col1 * + CAST ( NULL AS INTEGER ) + + col2 IS NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 86 col0 FROM tab1 AS cor0
----
86
86
86

query I rowsort
SELECT DISTINCT - 15 * 91 FROM tab1 AS cor0
----
-1365

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col2 * col0 + + col1 + + 64 * - col0 - + ( col0 ) * - 48 <= ( - col1 )
----
15
81
47
97
1
99

query I rowsort
SELECT + 29 * - col1 FROM tab1
----
-1363
-145
-406

onlyif mysql # aggregate syntax: 
query I rowsort label-9004
SELECT ALL COUNT( + col2 ) FROM tab2 WHERE NOT - col0 - + 27 * ( 13 ) >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-9004
SELECT ALL COUNT ( + col2 ) FROM tab2 WHERE NOT - col0 - + 27 * ( 13 ) >= NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9005
SELECT ALL 90, + ( COUNT( * ) ) * + - MAX( - 88 ) AS col1 FROM tab1
----
90
264

skipif mysql # not compatible
query II rowsort label-9005
SELECT ALL 90, + ( COUNT ( * ) ) * + - MAX ( - 88 ) AS col1 FROM tab1
----
90
264

query I rowsort
SELECT ALL - ( + + 37 ) + + col0 + - + 3 * + col0 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL 76 + - col1 FROM tab0
----
-5
55
75

onlyif mysql # aggregate syntax: 
query II rowsort label-9008
SELECT DISTINCT 80 AS col2, - MAX( ALL + 41 ) + 79 AS col0 FROM tab0
----
80
38

skipif mysql # not compatible
query II rowsort label-9008
SELECT DISTINCT 80 AS col2, - MAX ( ALL + 41 ) + 79 AS col0 FROM tab0
----
80
38

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 1 <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT + col1 = NULL
----

query I rowsort
SELECT ALL col1 FROM tab0 AS cor0 WHERE + 56 * + 13 * + 85 >= - ( + + col0 )
----
1
21
81

query I rowsort
SELECT DISTINCT - 21 + - col2 AS col0 FROM tab1 AS cor0
----
-117
-80
-89

query I rowsort
SELECT - ( 0 ) AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # aggregate syntax: 
query II rowsort label-9014
SELECT ALL - ( + + 72 ), COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-72
9

skipif mysql # not compatible
query II rowsort label-9014
SELECT ALL - ( + + 72 ), COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-72
9

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) >= + - col2 * - col0
----

query I rowsort
SELECT ALL - col1 * - 97 AS col0 FROM tab0 AS cor0
----
2037
7857
97

query I rowsort
SELECT DISTINCT + - 33 AS col2 FROM tab1 AS cor0 WHERE NULL = col2 * - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9018
SELECT ALL - CAST( NULL AS SIGNED ) + ( + col2 ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9018
SELECT ALL - CAST ( NULL AS INTEGER ) + ( + col2 ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9019
SELECT + col0 + col0 + + - 76 * col0 DIV - - 24 FROM tab0 AS cor0
----
-101
-113
-17

skipif mysql # not compatible
query I rowsort label-9019
SELECT + col0 + col0 + + - 76 * col0 / - - 24 FROM tab0 AS cor0
----
-101
-113
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9020
SELECT DISTINCT - - CAST( 82 AS SIGNED ) + - + col0 FROM tab1 AS cor0
----
-3
-9
31

skipif mysql # not compatible
query I rowsort label-9020
SELECT DISTINCT - - CAST ( 82 AS INTEGER ) + - + col0 FROM tab1 AS cor0
----
-3
-9
31

query I rowsort
SELECT DISTINCT col2 - - - col0 * + + 14 FROM tab0 AS cor0
----
-1208
-1259
-163

query I rowsort
SELECT + col1 * col2 + - ( + col1 ) AS col1 FROM tab0 AS cor0
----
189
3726
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 + + + col1 AS col0, 26 col0 FROM tab0 cor0
----
162
26
2
26
42
26

query I rowsort
SELECT - ( - 5 ) + - + col0 + + col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-12
-18
-19

query I rowsort
SELECT ALL - col1 - - col1 + - + 56 FROM tab2 AS cor0
----
-56
-56
-56

query I rowsort
SELECT DISTINCT + + col2 * - ( col1 ) FROM tab1 AS cor0
----
-1344
-295
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-9027
SELECT ALL - COUNT( 91 ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9027
SELECT ALL - COUNT ( 91 ) AS col1 FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9028
SELECT ALL - COUNT( * ) * - - COUNT( * ) AS col2 FROM tab2 WHERE NOT + - col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9028
SELECT ALL - COUNT ( * ) * - - COUNT ( * ) AS col2 FROM tab2 WHERE NOT + - col0 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9029
SELECT 45 * + COUNT( * ) FROM tab0
----
135

skipif mysql # not compatible
query I rowsort label-9029
SELECT 45 * + COUNT ( * ) FROM tab0
----
135

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 46 * col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ( - col2 ) * - - 75 * col2 AS col0 FROM tab1
----
-261075
-346800
-691200

onlyif mysql # aggregate syntax: 
query I rowsort label-9032
SELECT DISTINCT - MAX( DISTINCT - - col2 ) FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-9032
SELECT DISTINCT - MAX ( DISTINCT - - col2 ) FROM tab2 AS cor0
----
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9033
SELECT DISTINCT - COUNT( * ) * CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9033
SELECT DISTINCT - COUNT ( * ) * CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9034
SELECT ALL + MAX( ALL - - col1 ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-9034
SELECT ALL + MAX ( ALL - - col1 ) FROM tab1 AS cor0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9035
SELECT SUM( ALL + col2 ) FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-9035
SELECT SUM ( ALL + col2 ) FROM tab1
----
223

query I rowsort
SELECT ALL + - 15 - col1 * - 24 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL col1 AS col0 FROM tab2 cor0 WHERE NULL IS NULL
----
51
67
77

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT + col0 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9040
SELECT DISTINCT - MIN( ALL 80 ) AS col0 FROM tab0 AS cor0
----
-80

skipif mysql # not compatible
query I rowsort label-9040
SELECT DISTINCT - MIN ( ALL 80 ) AS col0 FROM tab0 AS cor0
----
-80

query I rowsort
SELECT col1 + - col0 + col0 + - 68 FROM tab2 cor0
----
-1
-17
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9042
SELECT - ( + - ( + COUNT( + col0 ) ) ) + + 12 FROM tab2 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-9042
SELECT - ( + - ( + COUNT ( + col0 ) ) ) + + 12 FROM tab2 AS cor0
----
15

query I rowsort
SELECT - 32 FROM tab2 WHERE NULL < + + 94 + - col0
----

query II rowsort
SELECT col0 * - 29 * 63, col1 FROM tab2
----
-116928
77
-137025
67
-84042
51

query I rowsort
SELECT - + 3 AS col1 FROM tab2 WHERE NULL < + col1
----

query I rowsort
SELECT DISTINCT - col0 + - - ( - col1 ) * - 86 * - col2 FROM tab1
----
-115635
-25455
-274947

query I rowsort
SELECT ALL col2 + - 64 AS col2 FROM tab2 cor0
----
-24
-41
-6

query I rowsort
SELECT DISTINCT + + col0 FROM tab0 AS cor0 WHERE 45 NOT IN ( + 85 + col2, col2 )
----
15
87
97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 69 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9050
SELECT DISTINCT - 62 + - + COUNT( * ) col2 FROM tab2 AS cor0
----
-65

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9050
SELECT DISTINCT - 62 + - + COUNT ( * ) col2 FROM tab2 AS cor0
----
-65

query II rowsort
SELECT DISTINCT + 94, 6 AS col0 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + - col2 + col2 + + + col1 AS col2 FROM tab0 AS cor0
----
1
21
81

query III rowsort
SELECT * FROM tab2 WHERE + 38 + - col1 * + col1 * 59 NOT IN ( ( + - col2 ) * + + col2 * + - col1, col2 + + + 54 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 74 + - - ( col1 ) FROM tab2
----
125
141
151

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN - 73 AND + col0
----

query II rowsort
SELECT DISTINCT - col1 + 53 * + col2 AS col1, col1 AS col0 FROM tab1 AS cor0
----
3122
5
3557
47
5074
14

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9057
SELECT ALL * FROM tab0 cor0 WHERE NOT - col2 / + CAST( + - 70 AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9057
SELECT ALL * FROM tab0 cor0 WHERE NOT - col2 / + CAST ( + - 70 AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 + + + col0 NOT BETWEEN NULL AND - - col2 / - + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 98 AS col2, + col1 col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9060
SELECT DISTINCT + MIN( - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9060
SELECT DISTINCT + MIN ( - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + - 33 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - col2 * + + 14 FROM tab0
----
-1386
-140
-658

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9063
SELECT ALL col2 / + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9063
SELECT ALL col2 / + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - 78 * - col2 * - - 20 AS col2 FROM tab0
----
154440
15600
73320

query II rowsort
SELECT DISTINCT - ( - 23 ) AS col0, col0 * 61 FROM tab0 cor0
----
23
5307
23
5917
23
915

onlyif mysql # aggregate syntax: 
query I rowsort label-9066
SELECT DISTINCT + + MAX( ALL 63 ) AS col2 FROM tab2 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-9066
SELECT DISTINCT + + MAX ( ALL 63 ) AS col2 FROM tab2 AS cor0
----
63

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 60 < - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9068
SELECT - COUNT( + 69 ) FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9068
SELECT - COUNT ( + 69 ) FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9069
SELECT + - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9069
SELECT + - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9070
SELECT ALL - CAST( + + col1 AS SIGNED ) FROM tab1 cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-9070
SELECT ALL - CAST ( + + col1 AS INTEGER ) FROM tab1 cor0
----
-14
-47
-5

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 <= - - col1 * col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 + - col2 * 82 IS NOT NULL
----

query I rowsort
SELECT - col2 * - - 60 + - col1 FROM tab0 AS cor0
----
-2901
-5941
-621

query I rowsort
SELECT ALL 68 + + 72 AS col1 FROM tab0 AS cor0
----
140
140
140

query I rowsort
SELECT ALL + 46 * col2 FROM tab2 AS cor0
----
1058
1840
2668

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL = 68
----

query I rowsort
SELECT - col2 + + 47 + 12 - + ( - - ( + col2 ) ) FROM tab2
----
-21
-57
13

query II rowsort
SELECT col2 + + - 6, + col2 AS col1 FROM tab1
----
53
59
62
68
90
96

query I rowsort
SELECT + col0 + - - 54 + - 55 AS col2 FROM tab2
----
45
63
74

query I rowsort
SELECT + col1 + + 32 * + 23 FROM tab0
----
737
757
817

query II rowsort
SELECT DISTINCT - 57, + col0 FROM tab1
----
-57
51
-57
85
-57
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9082
SELECT + MIN( - - col0 ) + + 5 AS col1 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-9082
SELECT + MIN ( - - col0 ) + + 5 AS col1 FROM tab2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9083
SELECT - SUM( ALL - 7 ) + - - 33 FROM tab2
----
54

skipif mysql # not compatible
query I rowsort label-9083
SELECT - SUM ( ALL - 7 ) + - - 33 FROM tab2
----
54

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL = + + 67 - - 32
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9085
SELECT 57 * + + ( + COUNT( * ) ) AS col0 FROM tab0 cor0 WHERE NULL IS NULL
----
171

skipif mysql # not compatible
query I rowsort label-9085
SELECT 57 * + + ( + COUNT ( * ) ) AS col0 FROM tab0 cor0 WHERE NULL IS NULL
----
171

onlyif mysql # DIV for integer division: 
query I rowsort label-9086
SELECT ALL - col2 + - - col2 * 26 * + col2 DIV - - col2 FROM tab0 AS cor0
----
1175
2475
250

skipif mysql # not compatible
query I rowsort label-9086
SELECT ALL - col2 + - - col2 * 26 * + col2 / - - col2 FROM tab0 AS cor0
----
1175
2475
250

query I rowsort
SELECT ALL + 96 + col1 + - + col1 AS col2 FROM tab1 AS cor0
----
96
96
96

query I rowsort
SELECT DISTINCT + 68 - + col0 AS col1 FROM tab0
----
-19
-29
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 27 col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 90b76caf54a4e48ee4a9784f52997a6a

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9090
SELECT 65 * + MIN( DISTINCT + col2 ) / + + AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) - + 45 / + CAST( NULL AS SIGNED ) / + SUM( ALL + + col1 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9090
SELECT 65 * + MIN ( DISTINCT + col2 ) / + + AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) - + 45 / + CAST ( NULL AS INTEGER ) / + SUM ( ALL + + col1 ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9091
SELECT ALL + ( - SUM( ALL + 7 ) ) FROM tab1 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-9091
SELECT ALL + ( - SUM ( ALL + 7 ) ) FROM tab1 AS cor0
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-9092
SELECT - SUM( - 41 ) FROM tab1 cor0
----
123

skipif mysql # not compatible
query I rowsort label-9092
SELECT - SUM ( - 41 ) FROM tab1 cor0
----
123

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 46 col0 FROM tab0 AS cor0
----
-46
-46
-46

query I rowsort
SELECT - + 81 AS col2 FROM tab2 cor0
----
-81
-81
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9096
SELECT ALL SUM( + col2 ) * + 62 AS col2 FROM tab0
----
9672

skipif mysql # not compatible
query I rowsort label-9096
SELECT ALL SUM ( + col2 ) * + 62 AS col2 FROM tab0
----
9672

query I rowsort
SELECT col1 * + - col2 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-1344
-295
-3196

query I rowsort
SELECT DISTINCT ( + col2 ) / - + col1 AS col0 FROM tab0 WHERE NOT NULL IN ( + + col0, col2, + col0 * - + col2, + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9099
SELECT + 21 * COUNT( * ) AS col1 FROM tab1 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-9099
SELECT + 21 * COUNT ( * ) AS col1 FROM tab1 AS cor0
----
63

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL <= col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9101
SELECT DISTINCT - ( - COUNT( * ) ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-9101
SELECT DISTINCT - ( - COUNT ( * ) ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9102
SELECT ALL + CAST( NULL AS SIGNED ) * COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9102
SELECT ALL + CAST ( NULL AS INTEGER ) * COUNT ( * ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9103
SELECT - 71 + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-9103
SELECT - 71 + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-74

query I rowsort
SELECT DISTINCT 38 + + - col2 FROM tab1 AS cor0
----
-21
-30
-58

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE + col1 + - - col2 < col0
----
87
21
10

onlyif mysql # DIV for integer division: 
query I rowsort label-9106
SELECT DISTINCT - + col1 + 47 DIV - col0 AS col0 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-9106
SELECT DISTINCT - + col1 + 47 / - col0 AS col0 FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9107
SELECT ALL + 67 + - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9107
SELECT ALL + 67 + - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9108
SELECT ALL + 8 * + 23 * + COUNT( * ) FROM tab1 cor0
----
552

skipif mysql # not compatible
query I rowsort label-9108
SELECT ALL + 8 * + 23 * + COUNT ( * ) FROM tab1 cor0
----
552

query I rowsort
SELECT ALL + col1 - - 47 - + 34 AS col0 FROM tab1 AS cor0
----
18
27
60

onlyif mysql # DIV for integer division: 
query I rowsort label-9110
SELECT DISTINCT col2 DIV 49 AS col2 FROM tab0
----
0
2

skipif mysql # not compatible
query I rowsort label-9110
SELECT DISTINCT col2 / 49 AS col2 FROM tab0
----
0
2

query I rowsort
SELECT + col0 * - - 29 FROM tab2
----
1334
1856
2175

query I rowsort
SELECT ALL col2 * - 72 FROM tab2
----
-1656
-2880
-4176

onlyif mysql # aggregate syntax: 
query I rowsort label-9113
SELECT ALL SUM( ALL + 27 ) + - COUNT( * ) AS col2 FROM tab0
----
78

skipif mysql # not compatible
query I rowsort label-9113
SELECT ALL SUM ( ALL + 27 ) + - COUNT ( * ) AS col2 FROM tab0
----
78

query I rowsort
SELECT DISTINCT col2 + + - 45 FROM tab0
----
-35
2
54

query I rowsort
SELECT - col1 - + - col0 AS col1 FROM tab2
----
-13
-5
8

onlyif mysql # DIV for integer division: 
query I rowsort label-9116
SELECT 8 - + - col2 DIV col2 AS col2 FROM tab0
----
9
9
9

skipif mysql # not compatible
query I rowsort label-9116
SELECT 8 - + - col2 / col2 AS col2 FROM tab0
----
9
9
9

query I rowsort
SELECT col2 - 75 AS col0 FROM tab2
----
-17
-35
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-9118
SELECT ALL + COUNT( * ) + + COUNT( * ) col0 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9118
SELECT ALL + COUNT ( * ) + + COUNT ( * ) col0 FROM tab1 AS cor0
----
6

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 89 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9120
SELECT * FROM tab0 AS cor0 WHERE NOT - CAST( NULL AS DECIMAL ) < col1 + + col2 AND NULL IN ( - 9 )
----

skipif mysql # not compatible
query III rowsort label-9120
SELECT * FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS REAL ) < col1 + + col2 AND NULL IN ( - 9 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9121
SELECT ALL - + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-9121
SELECT ALL - + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9122
SELECT - col1 AS col1, - CAST( + col2 AS SIGNED ) AS col2 FROM tab0
----
-1
-99
-21
-10
-81
-47

skipif mysql # not compatible
query II rowsort label-9122
SELECT - col1 AS col1, - CAST ( + col2 AS INTEGER ) AS col2 FROM tab0
----
-1
-99
-21
-10
-81
-47

query II rowsort
SELECT DISTINCT 5, col0 AS col1 FROM tab2
----
5
46
5
64
5
75

query I rowsort
SELECT col2 * + + col0 AS col2 FROM tab0
----
705
870
9603

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT ( + col1 + 91 * 33 ) IS NULL )
----

query I rowsort
SELECT ALL + 99 FROM tab2 AS cor0 WHERE NOT 39 <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9127
SELECT ALL + - 80 * - - CAST( NULL AS DECIMAL ) + - - ( - CAST( + + COUNT( * ) AS SIGNED ) ) AS col2 FROM tab2 AS cor0 WHERE NOT 9 + - col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9127
SELECT ALL + - 80 * - - CAST ( NULL AS REAL ) + - - ( - CAST ( + + COUNT ( * ) AS INTEGER ) ) AS col2 FROM tab2 AS cor0 WHERE NOT 9 + - col0 IS NOT NULL
----
NULL

query II rowsort
SELECT 71 AS col1, - col2 AS col0 FROM tab1 AS cor0
----
71
-59
71
-68
71
-96

onlyif mysql # DIV for integer division: 
query II rowsort label-9129
SELECT ALL - 35 col0, - ( + col0 ) DIV col2 AS col2 FROM tab0 AS cor0
----
-35
-8
-35
0
-35
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9129
SELECT ALL - 35 col0, - ( + col0 ) / col2 AS col2 FROM tab0 AS cor0
----
-35
-8
-35
0
-35
0

query II rowsort
SELECT - col0 AS col2, + col2 * - + col2 FROM tab0 AS cor0
----
-15
-2209
-87
-100
-97
-9801

query I rowsort
SELECT DISTINCT 10 * + - col2 + + 72 AS col2 FROM tab2 AS cor0
----
-158
-328
-508

query II rowsort
SELECT DISTINCT col1 * - 79, + 16 AS col0 FROM tab2
----
-4029
16
-5293
16
-6083
16

query I rowsort
SELECT - 56 + - col0 * + col2 + - col2 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9134
SELECT ALL * FROM tab0 WHERE - CAST( + - col0 AS SIGNED ) * + 22 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9134
SELECT ALL * FROM tab0 WHERE - CAST ( + - col0 AS INTEGER ) * + 22 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9135
SELECT DISTINCT + MIN( - col2 ) FROM tab1 WHERE NOT col0 - + 20 IS NULL
----
-96

skipif mysql # not compatible
query I rowsort label-9135
SELECT DISTINCT + MIN ( - col2 ) FROM tab1 WHERE NOT col0 - + 20 IS NULL
----
-96

query II rowsort
SELECT col1 + - col2 AS col0, 93 FROM tab2 AS cor0
----
28
93
37
93
9
93

query I rowsort
SELECT - 51 + + col2 AS col2 FROM tab0 AS cor0
----
-4
-41
48

query I rowsort
SELECT - col0 * - 77 AS col1 FROM tab0 cor0
----
1155
6699
7469

onlyif mysql # DIV for integer division: 
query I rowsort label-9139
SELECT + + 86 * 39 DIV + col0 + + - 1 FROM tab0 cor0
----
222
33
37

skipif mysql # not compatible
query I rowsort label-9139
SELECT + + 86 * 39 / + col0 + + - 1 FROM tab0 cor0
----
222
33
37

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9140
SELECT DISTINCT + col0 * + CAST( NULL AS DECIMAL ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9140
SELECT DISTINCT + col0 * + CAST ( NULL AS REAL ) AS col0 FROM tab0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE - 11 IS NULL
----

query I rowsort
SELECT DISTINCT col2 + + - col2 AS col0 FROM tab2
----
0

query I rowsort
SELECT + 89 AS col2 FROM tab1 cor0
----
89
89
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9144
SELECT SUM( DISTINCT - + CAST( 49 AS SIGNED ) ) FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9144
SELECT SUM ( DISTINCT - + CAST ( 49 AS INTEGER ) ) FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----
NULL

query I rowsort
SELECT - col2 + - ( - ( 79 ) ) * + + col2 FROM tab1 AS cor0
----
4602
5304
7488

query I rowsort
SELECT - - col1 + col0 + + col1 + - 21 AS col0 FROM tab0 AS cor0
----
108
156
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + 65 col2 FROM tab1 AS cor0
----
112
70
79

onlyif mysql # DIV for integer division: 
query I rowsort label-9148
SELECT DISTINCT - 51 DIV + col2 FROM tab2 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-9148
SELECT DISTINCT - 51 / + col2 FROM tab2 AS cor0
----
-1
-2
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 + - ( + 52 ) + col1 col1, 9 * + col1 + - col2 * + col1 + + col0 + - 42 * - - ( - col2 ) AS col1 FROM tab0 AS cor0
----
-10
486
-50
4165
110
-1089

query III rowsort
SELECT * FROM tab0 WHERE + col0 + col0 + - col0 * ( - col0 ) * - col0 + + - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 60 >= NULL
----

query I rowsort
SELECT 72 + 54 * + 29 + - col1 - + col1 FROM tab1
----
1544
1610
1628

onlyif mysql # DIV for integer division: 
query I rowsort label-9153
SELECT DISTINCT - 29 DIV - 93 + - ( 4 ) * col1 FROM tab1
----
-188
-20
-56

skipif mysql # not compatible
query I rowsort label-9153
SELECT DISTINCT - 29 / - 93 + - ( 4 ) * col1 FROM tab1
----
-188
-20
-56

query I rowsort
SELECT DISTINCT - 81 + + 99 AS col0 FROM tab1 WHERE NULL IS NULL
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-9155
SELECT DISTINCT SUM( ALL - + col1 ) * + - 57 col2 FROM tab1
----
3762

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9155
SELECT DISTINCT SUM ( ALL - + col1 ) * + - 57 col2 FROM tab1
----
3762

onlyif mysql # DIV for integer division: 
query I rowsort label-9156
SELECT 77 DIV - 27 AS col0 FROM tab0
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-9156
SELECT 77 / - 27 AS col0 FROM tab0
----
-2
-2
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9157
SELECT ALL + 93 - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
90

skipif mysql # not compatible
query I rowsort label-9157
SELECT ALL + 93 - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9158
SELECT + SUM( - col2 ) AS col0 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-9158
SELECT + SUM ( - col2 ) AS col0 FROM tab0 AS cor0
----
-156

onlyif mysql # aggregate syntax: 
query II rowsort label-9159
SELECT DISTINCT + COUNT( * ) AS col2, COUNT( * ) col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9159
SELECT DISTINCT + COUNT ( * ) AS col2, COUNT ( * ) col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9
9

query I rowsort
SELECT - col1 * - - 87 FROM tab0
----
-1827
-7047
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9161
SELECT ALL - col0 * - + 82 * CAST( + - col1 AS SIGNED ) FROM tab1 AS cor0
----
-34850
-350714
-58548

skipif mysql # not compatible
query I rowsort label-9161
SELECT ALL - col0 * - + 82 * CAST ( + - col1 AS INTEGER ) FROM tab1 AS cor0
----
-34850
-350714
-58548

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9162
SELECT ALL - + 99 DIV - COUNT( * ) AS col1 FROM tab0 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-9162
SELECT ALL - + 99 / - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
33

query I rowsort
SELECT + - 51 * - - col2 FROM tab1 AS cor0
----
-3009
-3468
-4896

onlyif mysql # aggregate syntax: 
query II rowsort label-9164
SELECT 8, + COUNT( * ) AS col1 FROM tab2 AS cor0
----
8
3

skipif mysql # not compatible
query II rowsort label-9164
SELECT 8, + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
8
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( ( + col0 + - 74 IS NOT NULL ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9166
SELECT DISTINCT - - CAST( NULL AS SIGNED ) AS col1, - 17 FROM tab1 AS cor0
----
NULL
-17

skipif mysql # not compatible
query II rowsort label-9166
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) AS col1, - 17 FROM tab1 AS cor0
----
NULL
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-9167
SELECT DISTINCT - - SUM( + 14 ) AS col0 FROM tab2 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-9167
SELECT DISTINCT - - SUM ( + 14 ) AS col0 FROM tab2 AS cor0
----
42

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9168
SELECT - col1 col2 FROM tab2 AS cor0 WHERE NOT col1 * - 45 / CAST( NULL AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9168
SELECT - col1 col2 FROM tab2 AS cor0 WHERE NOT col1 * - 45 / CAST ( NULL AS REAL ) IS NULL
----

query I rowsort
SELECT + ( - - 44 ) FROM tab1 cor0
----
44
44
44

onlyif mysql # DIV for integer division: 
query I rowsort label-9170
SELECT - col1 DIV + + col0 col2 FROM tab2 cor0
----
-1
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9170
SELECT - col1 / + + col0 col2 FROM tab2 cor0
----
-1
-1
0

query II rowsort
SELECT + col0, 49 * + - col1 * - col0 + - 73 FROM tab1
----
51
34913
85
20752
91
209500

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 22, + 96 * + 54 col2 FROM tab2
----
22
5184
22
5184
22
5184

query I rowsort
SELECT col0 + + 78 FROM tab1 WHERE NOT ( 10 ) <> NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9174
SELECT 65, COUNT( * ) AS col1 FROM tab1
----
65
3

skipif mysql # not compatible
query II rowsort label-9174
SELECT 65, COUNT ( * ) AS col1 FROM tab1
----
65
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9175
SELECT + ( - + COUNT( * ) ) AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9175
SELECT + ( - + COUNT ( * ) ) AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-3

query I rowsort
SELECT DISTINCT ( 73 ) + + col0 AS col0 FROM tab0 AS cor0 WHERE NOT + col1 + - col2 / + col1 > ( + 69 )
----
160
170

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL >= 51 * + + 31
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9179
SELECT ALL + MAX( - - col0 ) FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-9179
SELECT ALL + MAX ( - - col0 ) FROM tab1
----
91

query III rowsort
SELECT * FROM tab0 WHERE + 37 >= + + col0
----
15
81
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9181
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + col0 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9181
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + col0 AS col0 FROM tab0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9182
SELECT ALL - + AVG ( ALL CAST( NULL AS SIGNED ) ) + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9182
SELECT ALL - + AVG ( ALL CAST ( NULL AS INTEGER ) ) + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT IN ( 13, col0 * - - col1, - + col2 * + 63 + + + 19 + - + col1, + - 35 * - - col1 + + + col2 + + + ( + ( - - 41 ) ) / - col1 - - + col2 * - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 7 + - col1 col1, + col1 AS col0 FROM tab2 AS cor0
----
-58
51
-74
67
-84
77

query II rowsort
SELECT + 96 + - col0 AS col0, + 87 * + - col0 AS col1 FROM tab1 AS cor0 WHERE col1 * + - col0 / - 30 + 39 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9186
SELECT - SUM( DISTINCT col1 ) * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9186
SELECT - SUM ( DISTINCT col1 ) * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT DISTINCT + 36, col0 AS col0 FROM tab1
----
36
51
36
85
36
91

query I rowsort
SELECT DISTINCT col2 - - + 73 AS col1 FROM tab2
----
113
131
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9189
SELECT ALL COUNT( ALL col2 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9189
SELECT ALL COUNT ( ALL col2 ) FROM tab1
----
3

query I rowsort
SELECT col1 - + - 16 AS col0 FROM tab2
----
67
83
93

onlyif mysql # aggregate syntax: 
query I rowsort label-9191
SELECT + COUNT( * ) - + - MAX( - - 28 ) AS col0 FROM tab1
----
31

skipif mysql # not compatible
query I rowsort label-9191
SELECT + COUNT ( * ) - + - MAX ( - - 28 ) AS col0 FROM tab1
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-9192
SELECT - 60 - - 36 * + ( COUNT( * ) ) FROM tab1
----
48

skipif mysql # not compatible
query I rowsort label-9192
SELECT - 60 - - 36 * + ( COUNT ( * ) ) FROM tab1
----
48

query I rowsort
SELECT DISTINCT + 34 * + col0 AS col1 FROM tab0
----
2958
3298
510

query I rowsort
SELECT DISTINCT col0 * + - 45 FROM tab0
----
-3915
-4365
-675

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) IS NULL AND NOT col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + 40 * + col0 FROM tab2
----
1840
2560
3000

query III rowsort
SELECT * FROM tab0 WHERE NULL IS NULL AND NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9198
SELECT + + CAST( + + col2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-9198
SELECT + + CAST ( + + col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
10
47
99

query I rowsort
SELECT ALL + 57 * + + col1 FROM tab2
----
2907
3819
4389

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9200
SELECT ALL 45 * - ( CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9200
SELECT ALL 45 * - ( CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col0 * 5 FROM tab0
----
435
485
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9202
SELECT ALL - MIN( ALL - ( - - 80 ) ) FROM tab2 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-9202
SELECT ALL - MIN ( ALL - ( - - 80 ) ) FROM tab2 AS cor0
----
80

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 * + ( col1 ) * - 53 * - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col2 + - - col2 * - - ( col2 ) AND NULL
----

query I rowsort
SELECT ALL col0 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
15
87
97

query I rowsort
SELECT + 69 * + + 56 AS col0 FROM tab2 AS cor0
----
3864
3864
3864

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9207
SELECT ALL SUM( + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9207
SELECT ALL SUM ( + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col0 * + 95 + + - col2 FROM tab1 AS cor0
----
4749
8016
8577

query II rowsort
SELECT col2, + col1 FROM tab1
----
59
5
68
47
96
14

query I rowsort
SELECT + 59 * + col0 AS col2 FROM tab1
----
3009
5015
5369

query I rowsort
SELECT DISTINCT + 30 + col2 * + col1 FROM tab0 WHERE + col2 - + + col2 > NULL
----

query II rowsort
SELECT ALL + 1 + - - 83 * - col2 AS col2, col2 * + col1 FROM tab2
----
-1908
1173
-3319
3080
-4813
3886

onlyif mysql # DIV for integer division: 
query I rowsort label-9213
SELECT DISTINCT - col0 DIV - 84 + - + ( + 28 ) + - + ( + + col0 ) AS col2 FROM tab1
----
-112
-118
-79

skipif mysql # not compatible
query I rowsort label-9213
SELECT DISTINCT - col0 / - 84 + - + ( + 28 ) + - + ( + + col0 ) AS col2 FROM tab1
----
-112
-118
-79

query I rowsort
SELECT ALL + + 77 + col2 FROM tab0 cor0
----
124
176
87

query II rowsort
SELECT ALL col2 + + ( - col0 ) + 69 * - - col2 + + col1 AS col2, - col1 AS col2 FROM tab2 AS cor0 WHERE NOT NULL <= + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9216
SELECT * FROM tab2 AS cor0 WHERE CAST( + 76 AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9216
SELECT * FROM tab2 AS cor0 WHERE CAST ( + 76 AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - - 99 + + col0 AS col1 FROM tab0 AS cor0
----
114
186
196

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT ALL + col0 FROM tab0 WHERE NULL <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL = 17
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9221
SELECT ALL - 28 + + + 13 + + MAX( + + CAST( NULL AS SIGNED ) ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9221
SELECT ALL - 28 + + + 13 + + MAX ( + + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1
----
NULL

query II rowsort
SELECT ALL col2 AS col1, + 71 - - col0 FROM tab2
----
23
117
40
135
58
146

query I rowsort
SELECT + col2 - - col2 + + - 72 * + + 11 AS col2 FROM tab1 AS cor0
----
-600
-656
-674

query I rowsort
SELECT DISTINCT + col0 FROM tab0 AS cor0 WHERE - 76 + ( + col1 ) IS NULL
----

query I rowsort
SELECT - - ( + + 29 ) + + 93 AS col1 FROM tab0 AS cor0
----
122
122
122

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 / 1 * - - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-9227
SELECT 67 DIV 79 * - col0 + - - 61 AS col2 FROM tab1 AS cor0
----
61
61
61

skipif mysql # not compatible
query I rowsort label-9227
SELECT 67 / 79 * - col0 + - - 61 AS col2 FROM tab1 AS cor0
----
61
61
61

query I rowsort
SELECT ( + - col2 ) + + col2 AS col1 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9229
SELECT DISTINCT - 6 - - 41 + - - 95 * + - COUNT( 32 ) + + + COUNT( * ) AS col2 FROM tab0
----
-247

skipif mysql # not compatible
query I rowsort label-9229
SELECT DISTINCT - 6 - - 41 + - - 95 * + - COUNT ( 32 ) + + + COUNT ( * ) AS col2 FROM tab0
----
-247

query I rowsort
SELECT + col1 FROM tab2 WHERE NOT NULL NOT BETWEEN ( - - col0 ) AND NULL
----

query II rowsort
SELECT DISTINCT + 79 * + 90 AS col1, - col0 * + ( + 61 ) FROM tab1
----
7110
-3111
7110
-5185
7110
-5551

onlyif mysql # DIV for integer division: 
query II rowsort label-9232
SELECT DISTINCT + col2 DIV col1 * + col0, col0 FROM tab0
----
0
15
0
87
9603
97

skipif mysql # not compatible
query II rowsort label-9232
SELECT DISTINCT + col2 / col1 * + col0, col0 FROM tab0
----
0
15
0
87
9603
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 col0 FROM tab2 WHERE NOT - + col0 IS NULL
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-9234
SELECT DISTINCT + SUM( DISTINCT - + col1 ) FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-9234
SELECT DISTINCT + SUM ( DISTINCT - + col1 ) FROM tab1 AS cor0
----
-66

query I rowsort
SELECT DISTINCT col0 * - ( + col0 ) AS col2 FROM tab0
----
-225
-7569
-9409

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9236
SELECT DISTINCT - col2 FROM tab0 WHERE CAST( NULL AS SIGNED ) > 17
----

skipif mysql # not compatible
query I rowsort label-9236
SELECT DISTINCT - col2 FROM tab0 WHERE CAST ( NULL AS INTEGER ) > 17
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9237
SELECT + 59 + - 36 FROM tab1 WHERE NOT - CAST( NULL AS SIGNED ) < - + 36
----

skipif mysql # not compatible
query I rowsort label-9237
SELECT + 59 + - 36 FROM tab1 WHERE NOT - CAST ( NULL AS INTEGER ) < - + 36
----

query I rowsort
SELECT ALL - col1 * 85 AS col0 FROM tab0
----
-1785
-6885
-85

query I rowsort
SELECT ALL - ( + - col1 ) AS col1 FROM tab0 AS cor0
----
1
21
81

onlyif mysql # DIV for integer division: 
query II rowsort label-9240
SELECT 60, col0 DIV - ( + 31 ) - - 8 AS col2 FROM tab0 AS cor0
----
60
5
60
6
60
8

skipif mysql # not compatible
query II rowsort label-9240
SELECT 60, col0 / - ( + 31 ) - - 8 AS col2 FROM tab0 AS cor0
----
60
5
60
6
60
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 63 col1 FROM tab2 AS cor0
----
-63
-63
-63

query I rowsort
SELECT + col2 + - 23 + 20 AS col2 FROM tab1 AS cor0
----
56
65
93

query I rowsort
SELECT 69 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL - ( + + 74 ) FROM tab1 AS cor0
----
-74
-74
-74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 67 col2 FROM tab2 AS cor0 WHERE NOT NULL <> - col0 * + + col2
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - + col1 >= + 33
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 73 * ( + 23 ) FROM tab2
----
1679

query II rowsort
SELECT + col2 * - col0, + col1 FROM tab0
----
-705
81
-870
21
-9603
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9249
SELECT DISTINCT + 40 DIV + col1 FROM tab1
----
0
2
8

skipif mysql # not compatible
query I rowsort label-9249
SELECT DISTINCT + 40 / + col1 FROM tab1
----
0
2
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 37 col2 FROM tab0
----
37
37
37

query I rowsort
SELECT DISTINCT col2 + - - col1 FROM tab2
----
117
125
74

onlyif mysql # aggregate syntax: 
query I rowsort label-9252
SELECT SUM( col2 ) AS col0 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-9252
SELECT SUM ( col2 ) AS col0 FROM tab0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-9253
SELECT MAX( ALL - col0 ) FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-9253
SELECT MAX ( ALL - col0 ) FROM tab0
----
-15

query I rowsort
SELECT - + 86 AS col0 FROM tab2 AS cor0
----
-86
-86
-86

query I rowsort
SELECT ALL 6 * + + col0 * - 8 + col1 AS col1 FROM tab1 AS cor0
----
-2434
-4075
-4321

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 74 < NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9257
SELECT - COUNT( * ) AS col0, - COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9
-9

skipif mysql # not compatible
query II rowsort label-9257
SELECT - COUNT ( * ) AS col0, - COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9
-9

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9259
SELECT DISTINCT - - 78 - - COUNT( * ) + 80 * + 35 * + COUNT( * ) AS col2 FROM tab2 cor0
----
8481

skipif mysql # not compatible
query I rowsort label-9259
SELECT DISTINCT - - 78 - - COUNT ( * ) + 80 * + 35 * + COUNT ( * ) AS col2 FROM tab2 cor0
----
8481

onlyif mysql # aggregate syntax: 
query I rowsort label-9260
SELECT DISTINCT COUNT( col0 ) AS col1 FROM tab2 AS cor0 WHERE 2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-9260
SELECT DISTINCT COUNT ( col0 ) AS col1 FROM tab2 AS cor0 WHERE 2 IS NOT NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 col2, - col1 AS col0 FROM tab2 AS cor0
----
23
-51
40
-77
58
-67

query I rowsort
SELECT + ( - 40 ) AS col1 FROM tab0 AS cor0
----
-40
-40
-40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col1, 18 AS col0 FROM tab1
----
59
18
68
18
96
18

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9264
SELECT CAST( NULL AS SIGNED ), 51 * - + 49 AS col1 FROM tab0
----
NULL
-2499
NULL
-2499
NULL
-2499

skipif mysql # not compatible
query II rowsort label-9264
SELECT CAST ( NULL AS INTEGER ), 51 * - + 49 AS col1 FROM tab0
----
NULL
-2499
NULL
-2499
NULL
-2499

query I rowsort
SELECT ALL col2 * + - col1 FROM tab1
----
-1344
-295
-3196

query I rowsort
SELECT + col0 FROM tab1 WHERE NOT + 37 IS NULL
----
51
85
91

query I rowsort
SELECT + col0 + + + 99 AS col1 FROM tab2 WHERE NOT - col1 IS NULL
----
145
163
174

query I rowsort
SELECT + col1 * - 0 AS col0 FROM tab2 AS cor0 WHERE NOT + 1 BETWEEN col0 + 87 + - - col2 AND NULL
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9269
SELECT - col0 DIV + col2 AS col1 FROM tab2 cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-9269
SELECT - col0 / + col2 AS col1 FROM tab2 cor0
----
-1
-1
-2

query I rowsort
SELECT ALL 52 + + col0 AS col2 FROM tab2
----
116
127
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9271
SELECT ALL + MAX( ALL col0 ) + - 44 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-9271
SELECT ALL + MAX ( ALL col0 ) + - 44 FROM tab1 AS cor0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9272
SELECT DISTINCT MIN( - 57 ) * + MIN( DISTINCT col0 ) AS col1 FROM tab2 AS cor0
----
-2622

skipif mysql # not compatible
query I rowsort label-9272
SELECT DISTINCT MIN ( - 57 ) * + MIN ( DISTINCT col0 ) AS col1 FROM tab2 AS cor0
----
-2622

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9273
SELECT * FROM tab0 AS cor0 WHERE - col1 * CAST( NULL AS SIGNED ) <> ( NULL )
----

skipif mysql # not compatible
query III rowsort label-9273
SELECT * FROM tab0 AS cor0 WHERE - col1 * CAST ( NULL AS INTEGER ) <> ( NULL )
----

query I rowsort
SELECT DISTINCT 30 * - - 86 * + col2 AS col1 FROM tab2 AS cor0
----
103200
149640
59340

onlyif mysql # DIV for integer division: 
query I rowsort label-9275
SELECT + col2 DIV - col0 col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9275
SELECT + col2 / - col0 col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9276
SELECT COUNT( * ) DIV + COUNT( * ) + - - COUNT( * ) FROM tab2 AS cor0 WHERE - 36 NOT BETWEEN col1 - + 91 AND NULL
----
3

skipif mysql # not compatible
query I rowsort label-9276
SELECT COUNT ( * ) / + COUNT ( * ) + - - COUNT ( * ) FROM tab2 AS cor0 WHERE - 36 NOT BETWEEN col1 - + 91 AND NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - ( + ( 37 ) ) * - col1 col1 FROM tab1 AS cor0
----
1739
185
518

onlyif mysql # aggregate syntax: 
query I rowsort label-9278
SELECT - 85 + + ( + SUM( DISTINCT ( - + col0 ) ) ) AS col0 FROM tab2
----
-270

skipif mysql # not compatible
query I rowsort label-9278
SELECT - 85 + + ( + SUM ( DISTINCT ( - + col0 ) ) ) AS col0 FROM tab2
----
-270

query I rowsort
SELECT + col1 + - 64 FROM tab0
----
-43
-63
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9280
SELECT ALL COUNT( * ) DIV - 70 + - COUNT( * ) * + COUNT( - 13 ) * + COUNT( * ) + + 99 FROM tab0
----
72

skipif mysql # not compatible
query I rowsort label-9280
SELECT ALL COUNT ( * ) / - 70 + - COUNT ( * ) * + COUNT ( - 13 ) * + COUNT ( * ) + + 99 FROM tab0
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-9281
SELECT ALL 7 DIV + ( + 76 ) + + + col1 AS col0 FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-9281
SELECT ALL 7 / + ( + 76 ) + + + col1 AS col0 FROM tab0
----
1
21
81

query II rowsort
SELECT ALL col0, + col2 FROM tab1
----
51
96
85
59
91
68

query I rowsort
SELECT DISTINCT + col0 + + 72 FROM tab2
----
118
136
147

query I rowsort
SELECT ALL - col1 * col0 + - 76 + 52 * - col2 AS col2 FROM tab0
----
-2423
-3735
-5321

onlyif mysql # aggregate syntax: 
query II rowsort label-9285
SELECT ALL 72 AS col0, - COUNT( ALL + col0 ) FROM tab1 AS cor0
----
72
-3

skipif mysql # not compatible
query II rowsort label-9285
SELECT ALL 72 AS col0, - COUNT ( ALL + col0 ) FROM tab1 AS cor0
----
72
-3

query I rowsort
SELECT ALL - - 77 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

onlyif mysql # aggregate syntax: 
query I rowsort label-9287
SELECT DISTINCT + MIN( ALL 75 ) FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
75

skipif mysql # not compatible
query I rowsort label-9287
SELECT DISTINCT + MIN ( ALL 75 ) FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
75

query I rowsort
SELECT col0 - - + 25 AS col0 FROM tab1
----
110
116
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9289
SELECT + 12 * - SUM( - CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9289
SELECT + 12 * - SUM ( - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - ( + 2 ) * ( - + 32 ) AS col0 FROM tab1 AS cor0
----
64
64
64

query I rowsort
SELECT + + col1 * - 90 FROM tab1 AS cor0
----
-1260
-4230
-450

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 9 + - col2 * + - col0 IN ( + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9293
SELECT SUM( DISTINCT + col0 ) col2 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9293
SELECT SUM ( DISTINCT + col0 ) col2 FROM tab2 AS cor0
----
185

query I rowsort
SELECT DISTINCT ( - + col1 ) AS col0 FROM tab0 cor0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9295
SELECT + - SUM( DISTINCT + 70 ) FROM tab0 AS cor0
----
-70

skipif mysql # not compatible
query I rowsort label-9295
SELECT + - SUM ( DISTINCT + 70 ) FROM tab0 AS cor0
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-9296
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab0 WHERE - - col0 + - - col2 < - col2
----
0

skipif mysql # not compatible
query I rowsort label-9296
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab0 WHERE - - col0 + - - col2 < - col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9297
SELECT ALL - 11 DIV + ( + ( + SUM( 3 ) ) ) AS col2 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-9297
SELECT ALL - 11 / + ( + ( + SUM ( 3 ) ) ) AS col2 FROM tab2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9298
SELECT SUM( ALL 5 ) FROM tab1
----
15

skipif mysql # not compatible
query I rowsort label-9298
SELECT SUM ( ALL 5 ) FROM tab1
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-9299
SELECT + + col0 DIV col1 * col0 + + 59 FROM tab2 AS cor0
----
134
59
59

skipif mysql # not compatible
query I rowsort label-9299
SELECT + + col0 / col1 * col0 + + 59 FROM tab2 AS cor0
----
134
59
59

query I rowsort
SELECT DISTINCT + - 3 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 76 col0, col1 AS col0 FROM tab2
----
76
51
76
67
76
77

query I rowsort
SELECT DISTINCT + col0 + col2 * + - col0 + ( + col1 ) FROM tab0
----
-609
-762
-9505

query I rowsort
SELECT ( - col0 ) + + - col1 + ( - col1 ) * + col0 FROM tab0 AS cor0
----
-1311
-1935
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-9304
SELECT - + COUNT( * ) + - - COUNT( * ) AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9304
SELECT - + COUNT ( * ) + - - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9305
SELECT DISTINCT - 42 + - - COUNT( DISTINCT col1 ) FROM tab2 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-9305
SELECT DISTINCT - 42 + - - COUNT ( DISTINCT col1 ) FROM tab2 AS cor0
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9306
SELECT ALL - + col1 + + col2 * + - col2 + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9306
SELECT ALL - + col1 + + col2 * + - col2 + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 * - + col1 + - ( col1 ) + - - 62 AS col2 FROM tab1 AS cor0
----
4292
482
762

query I rowsort
SELECT - col0 + + - col0 AS col1 FROM tab2 AS cor0
----
-128
-150
-92

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9309
SELECT DISTINCT + 63 * - col1 FROM tab1 AS cor0 WHERE - 86 BETWEEN - CAST( + + col1 AS DECIMAL ) + - col0 AND - - 50 * - - col2 / + col0
----
-2961
-315

skipif mysql # not compatible
query I rowsort label-9309
SELECT DISTINCT + 63 * - col1 FROM tab1 AS cor0 WHERE - 86 BETWEEN - CAST ( + + col1 AS REAL ) + - col0 AND - - 50 * - - col2 / + col0
----
-2961
-315

query I rowsort
SELECT DISTINCT - 74 * + col0 FROM tab0 AS cor0
----
-1110
-6438
-7178

query I rowsort
SELECT DISTINCT - col1 + + - col1 AS col1 FROM tab1 AS cor0
----
-10
-28
-94

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col2 = col2 / - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 64 / col2 * + col0 IS NULL
----

query I rowsort
SELECT - ( - 59 ) AS col1 FROM tab2 AS cor0
----
59
59
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9315
SELECT ALL COUNT( ALL CAST( NULL AS SIGNED ) ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9315
SELECT ALL COUNT ( ALL CAST ( NULL AS INTEGER ) ) FROM tab1
----
0

query I rowsort
SELECT + - 51 / col1 FROM tab0 WHERE + col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9317
SELECT - col1 DIV + CAST( - 99 AS SIGNED ) FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9317
SELECT - col1 / + CAST ( - 99 AS INTEGER ) FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9318
SELECT DISTINCT MAX( - + 21 ) AS col2 FROM tab0
----
-21

skipif mysql # not compatible
query I rowsort label-9318
SELECT DISTINCT MAX ( - + 21 ) AS col2 FROM tab0
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9319
SELECT - 83 * CAST( NULL AS SIGNED ) / - col1 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9319
SELECT - 83 * CAST ( NULL AS INTEGER ) / - col1 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - 50 * + col2 AS col1 FROM tab2
----
-1150
-2000
-2900

onlyif mysql # aggregate syntax: 
query I rowsort label-9321
SELECT ALL SUM( - 30 ) FROM tab0
----
-90

skipif mysql # not compatible
query I rowsort label-9321
SELECT ALL SUM ( - 30 ) FROM tab0
----
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 5 col2 FROM tab0
----
5
5
5

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 * + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9324
SELECT ALL COUNT( * ) + - SUM( + 4 ) AS col2 FROM tab1 WHERE NULL IS NULL
----
-9

skipif mysql # not compatible
query I rowsort label-9324
SELECT ALL COUNT ( * ) + - SUM ( + 4 ) AS col2 FROM tab1 WHERE NULL IS NULL
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9325
SELECT DISTINCT COUNT( * ) + + - 7 FROM tab1 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-9325
SELECT DISTINCT COUNT ( * ) + + - 7 FROM tab1 AS cor0
----
-4

query I rowsort
SELECT DISTINCT 21 + - col0 FROM tab2 AS cor0 WHERE col0 - + col2 / - col2 = NULL
----

query II rowsort
SELECT - col1 + - col1, col0 AS col2 FROM tab1 AS cor0
----
-10
85
-28
51
-94
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9328
SELECT col1 * + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9328
SELECT col1 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE - - 20 / - + col1 + col1 <= 71 * - + 0
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9330
SELECT CAST( + col1 AS DECIMAL ) / + + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9330
SELECT CAST ( + col1 AS REAL ) / + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 * + 2 AS col2 FROM tab2 AS cor0
----
-116
-46
-80

query I rowsort
SELECT + - 19 * col1 AS col1 FROM tab2 AS cor0
----
-1273
-1463
-969

onlyif mysql # DIV for integer division: 
query I rowsort label-9333
SELECT DISTINCT - - col0 DIV + - ( - col2 ) FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-9333
SELECT DISTINCT - - col0 / + - ( - col2 ) FROM tab1 AS cor0
----
0
1

query I rowsort
SELECT DISTINCT 98 + + - 47 FROM tab0 AS cor0 WHERE NULL <> col1 / col1
----

query I rowsort
SELECT - col1 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - col0 * + col0
----

query I rowsort
SELECT ALL ( - ( - col2 ) ) AS col1 FROM tab1 cor0
----
59
68
96

onlyif mysql # DIV for integer division: 
query I rowsort label-9337
SELECT ALL col2 * + col0 DIV - col0 AS col2 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-9337
SELECT ALL col2 * + col0 / - col0 AS col2 FROM tab2
----
-23
-40
-58

query I rowsort
SELECT + ( + 3 ) FROM tab1
----
3
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9339
SELECT - 74 * + ( + COUNT( * ) ) * 76 * - 74 FROM tab0
----
1248528

skipif mysql # not compatible
query I rowsort label-9339
SELECT - 74 * + ( + COUNT ( * ) ) * 76 * - 74 FROM tab0
----
1248528

query III rowsort
SELECT * FROM tab0 WHERE NOT - + col1 + + col2 <> - col1
----

query I rowsort
SELECT DISTINCT 89 FROM tab0 WHERE NOT + col1 / col0 * - + col0 * - col0 + col0 * - col1 * + + 97 * - - col2 IS NULL
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-9342
SELECT ALL + + MAX( DISTINCT col2 ) AS col0 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-9342
SELECT ALL + + MAX ( DISTINCT col2 ) AS col0 FROM tab1 AS cor0
----
96

query II rowsort
SELECT + col0 * - 56 AS col0, col2 FROM tab2 AS cor0
----
-2576
23
-3584
40
-4200
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9344
SELECT CAST( - ( - 90 ) AS SIGNED ) AS col0 FROM tab2
----
90
90
90

skipif mysql # not compatible
query I rowsort label-9344
SELECT CAST ( - ( - 90 ) AS INTEGER ) AS col0 FROM tab2
----
90
90
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 + - col0 col1 FROM tab1 cor0
----
-23
-26
45

query III rowsort
SELECT * FROM tab1 cor0 WHERE + ( col1 ) NOT BETWEEN - col1 * - + col1 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9347
SELECT + - CAST( + 68 AS SIGNED ) + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-65

skipif mysql # not compatible
query I rowsort label-9347
SELECT + - CAST ( + 68 AS INTEGER ) + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9348
SELECT - + CAST( + 99 AS SIGNED ) * + COUNT( * ) + + COUNT( * ) FROM tab2 AS cor0
----
-294

skipif mysql # not compatible
query I rowsort label-9348
SELECT - + CAST ( + 99 AS INTEGER ) * + COUNT ( * ) + + COUNT ( * ) FROM tab2 AS cor0
----
-294

query II rowsort
SELECT DISTINCT - 73 AS col1, 63 FROM tab0
----
-73
63

query I rowsort
SELECT - col2 * - - 89 + + + col2 * - col1 - - col2 + 50 AS col1 FROM tab1
----
-5437
-9130
-9742

query I rowsort
SELECT 63 + col0 * + + col1 AS col2 FROM tab0
----
1278
160
1890

onlyif mysql # DIV for integer division: 
query I rowsort label-9352
SELECT - col1 DIV + col0 + + - col1 AS col0 FROM tab0
----
-1
-21
-86

skipif mysql # not compatible
query I rowsort label-9352
SELECT - col1 / + col0 + + - col1 AS col0 FROM tab0
----
-1
-21
-86

query II rowsort
SELECT DISTINCT + 72 - - + col2 AS col2, - col2 AS col1 FROM tab1 WHERE NOT + - 30 < - col1
----
140
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-9354
SELECT - COUNT( * ) + - - ( - COUNT( * ) ) + 55 FROM tab2
----
49

skipif mysql # not compatible
query I rowsort label-9354
SELECT - COUNT ( * ) + - - ( - COUNT ( * ) ) + 55 FROM tab2
----
49

query I rowsort
SELECT - + col0 * col0 FROM tab1 WHERE 57 > - col0
----
-2601
-7225
-8281

query I rowsort
SELECT - 22 * - col0 AS col1 FROM tab0 WHERE NULL BETWEEN col2 / + - col1 AND NULL
----

query I rowsort
SELECT ALL - + 81 * - 8 + - - 83 FROM tab1 AS cor0
----
731
731
731

query I rowsort
SELECT + + 66 FROM tab0 cor0
----
66
66
66

query I rowsort
SELECT - + 67 FROM tab2 cor0
----
-67
-67
-67

query I rowsort
SELECT ALL + - col1 - + - col0 * - col2 FROM tab2 AS cor0
----
-1109
-2637
-4417

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 20 - 47 + - - 33 col2 FROM tab1 AS cor0
----
6
6
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9362
SELECT + CAST( NULL AS SIGNED ) * - - ( - col2 ) - + - col1 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9362
SELECT + CAST ( NULL AS INTEGER ) * - - ( - col2 ) - + - col1 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 * - - col1 AS col1 FROM tab0 cor0
----
210
3807
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - + col1 col1 FROM tab1 AS cor0
----
196
2209
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9365
SELECT - CAST( NULL AS SIGNED ) / + 37 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9365
SELECT - CAST ( NULL AS INTEGER ) / + 37 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9366
SELECT DISTINCT - - 35 DIV - col0 * + col0 * - col2 - col2 + col2 DIV + ( col1 ) * col2 + + col2 AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9366
SELECT DISTINCT - - 35 / - col0 * + col0 * - col2 - col2 + col2 / + ( col1 ) * col2 + + col2 AS col1 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9367
SELECT - + 62 * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9367
SELECT - + 62 * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9368
SELECT - - col2 / + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9368
SELECT - - col2 / + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9369
SELECT + COUNT( * ) * + 37 AS col0, 33 AS col1 FROM tab0 AS cor0
----
111
33

skipif mysql # not compatible
query II rowsort label-9369
SELECT + COUNT ( * ) * + 37 AS col0, 33 AS col1 FROM tab0 AS cor0
----
111
33

query I rowsort
SELECT 70 * - + 1 AS col2 FROM tab1 AS cor0
----
-70
-70
-70

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9371
SELECT + - col0 DIV - CAST( - 69 AS SIGNED ) col2 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9371
SELECT + - col0 / - CAST ( - 69 AS INTEGER ) col2 FROM tab2 AS cor0
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 40 col1 FROM tab0 cor0
----
40
40
40

query I rowsort
SELECT DISTINCT ( 1 ) AS col2 FROM tab2
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 39 col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 504d14939d58aeb4a14f31c80de5b53e

query II rowsort
SELECT col0, + 93 * + + ( - 91 ) FROM tab1
----
51
-8463
85
-8463
91
-8463

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NOT + col1 / col2 IS NOT NULL )
----

query I rowsort
SELECT + - col2 * - + col0 AS col1 FROM tab0 AS cor0
----
705
870
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-9378
SELECT ALL + MIN( - 88 ) AS col2 FROM tab1 cor0
----
-88

skipif mysql # not compatible
query I rowsort label-9378
SELECT ALL + MIN ( - 88 ) AS col2 FROM tab1 cor0
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-9379
SELECT DISTINCT ( - MAX( DISTINCT - 47 ) ) FROM tab0 WHERE NOT NULL BETWEEN NULL AND ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9379
SELECT DISTINCT ( - MAX ( DISTINCT - 47 ) ) FROM tab0 WHERE NOT NULL BETWEEN NULL AND ( NULL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9380
SELECT COUNT( DISTINCT col1 ) * 24 FROM tab0
----
72

skipif mysql # not compatible
query I rowsort label-9380
SELECT COUNT ( DISTINCT col1 ) * 24 FROM tab0
----
72

query I rowsort
SELECT col2 + + col0 * 8 AS col2 FROM tab0
----
167
706
875

query I rowsort
SELECT 64 * 17 AS col1 FROM tab1
----
1088
1088
1088

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9383
SELECT + CAST( - col1 AS SIGNED ) * - col0 + + 7 col1 FROM tab0
----
104
1222
1834

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9383
SELECT + CAST ( - col1 AS INTEGER ) * - col0 + + 7 col1 FROM tab0
----
104
1222
1834

query I rowsort
SELECT DISTINCT 26 + - 84 FROM tab0
----
-58

query III rowsort
SELECT * FROM tab1 WHERE NOT 81 * - col2 >= NULL
----

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab1 WHERE NULL < ( NULL )
----

query I rowsort
SELECT DISTINCT + col2 * 88 - + col2 FROM tab0
----
4089
8613
870

onlyif mysql # aggregate syntax: 
query I rowsort label-9388
SELECT - MIN( col0 ) FROM tab0 WHERE col1 - - 17 * + 22 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9388
SELECT - MIN ( col0 ) FROM tab0 WHERE col1 - - 17 * + 22 = NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9389
SELECT DISTINCT + COUNT( * ) FROM tab1 WHERE col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9389
SELECT DISTINCT + COUNT ( * ) FROM tab1 WHERE col1 IS NULL
----
0

query I rowsort
SELECT DISTINCT 77 * - 99 FROM tab2 WHERE + 32 / + col1 IS NOT NULL
----
-7623

query I rowsort
SELECT AVG ( DISTINCT - col2 ) FROM tab1 WHERE NOT - col0 < NULL
----
NULL

query I rowsort
SELECT - 21 / + col0 + 17 FROM tab2 WHERE NULL >= - col2
----

query I rowsort
SELECT + 71 * - col0 FROM tab0
----
-1065
-6177
-6887

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9394
SELECT col2 * - CAST( + 1 AS SIGNED ) FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-9394
SELECT col2 * - CAST ( + 1 AS INTEGER ) FROM tab0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9395
SELECT - MAX( + col0 ) * 96 FROM tab1
----
-8736

skipif mysql # not compatible
query I rowsort label-9395
SELECT - MAX ( + col0 ) * 96 FROM tab1
----
-8736

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) BETWEEN 50 AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE ( + 69 ) IN ( + col2 )
----

query I rowsort
SELECT ALL 4 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
4
4
4

query I rowsort
SELECT + col2 AS col2 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND col2 + - ( - 6 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9400
SELECT ALL + 42 * - MAX( col0 ) FROM tab2
----
-3150

skipif mysql # not compatible
query I rowsort label-9400
SELECT ALL + 42 * - MAX ( col0 ) FROM tab2
----
-3150

onlyif mysql # aggregate syntax: 
query I rowsort label-9401
SELECT ALL MAX( ALL - col0 ) AS col0 FROM tab1 WHERE NOT + col2 BETWEEN col2 * col1 AND - ( - col0 )
----
-51

skipif mysql # not compatible
query I rowsort label-9401
SELECT ALL MAX ( ALL - col0 ) AS col0 FROM tab1 WHERE NOT + col2 BETWEEN col2 * col1 AND - ( - col0 )
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-9402
SELECT ALL 30 DIV 9 FROM tab1
----
3
3
3

skipif mysql # not compatible
query I rowsort label-9402
SELECT ALL 30 / 9 FROM tab1
----
3
3
3

query III rowsort
SELECT * FROM tab2 WHERE 22 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE - 90 * col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 + - 37 * + col0 AS col2 FROM tab0
----
-3209
-3490
-508

onlyif mysql # DIV for integer division: 
query I rowsort label-9406
SELECT 72 DIV 38 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9406
SELECT 72 / 38 FROM tab1
----
1
1
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9407
SELECT SUM( DISTINCT col0 ) DIV + 9 AS col1 FROM tab0
----
22

skipif mysql # not compatible
query I rowsort label-9407
SELECT SUM ( DISTINCT col0 ) / + 9 AS col1 FROM tab0
----
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9408
SELECT COUNT( * ) DIV - MAX( ALL + 71 ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9408
SELECT COUNT ( * ) / - MAX ( ALL + 71 ) AS col2 FROM tab1
----
0

query I rowsort
SELECT ALL col1 + + col0 FROM tab1 WHERE ( NULL ) <> ( col2 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9410
SELECT * FROM tab2 WHERE NOT ( - ( - CAST( col2 AS DECIMAL ) ) - + col1 * + col0 ) <= ( + col0 )
----

skipif mysql # not compatible
query III rowsort label-9410
SELECT * FROM tab2 WHERE NOT ( - ( - CAST ( col2 AS REAL ) ) - + col1 * + col0 ) <= ( + col0 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 46 col1 FROM tab1
----
46

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL BETWEEN + ( - 54 ) AND - col2
----

query I rowsort
SELECT - 11 + col2 AS col1 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
12
29
47

onlyif mysql # DIV for integer division: 
query I rowsort label-9415
SELECT 38 DIV + col1 + 5 FROM tab1 AS cor0
----
12
5
7

skipif mysql # not compatible
query I rowsort label-9415
SELECT 38 / + col1 + 5 FROM tab1 AS cor0
----
12
5
7

query I rowsort
SELECT - col1 AS col2 FROM tab0 AS cor0 WHERE NOT NULL > + 21
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9417
SELECT - COUNT( * ) * - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT + col2 > col1 + 49
----
9

skipif mysql # not compatible
query I rowsort label-9417
SELECT - COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT + col2 > col1 + 49
----
9

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col1 ) BETWEEN col0 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9419
SELECT CAST( ( 0 ) AS SIGNED ) FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9419
SELECT CAST ( ( 0 ) AS INTEGER ) FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9420
SELECT DISTINCT COUNT( * ) FROM tab1 cor0 CROSS JOIN tab0
----
9

skipif mysql # not compatible
query I rowsort label-9420
SELECT DISTINCT COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab0
----
9

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - col2 * col1 - - 96 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9422
SELECT - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-9422
SELECT - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL >= NULL
----
0

query I rowsort
SELECT AVG ( ALL + 35 ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) = ( 77 )
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 * col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9425
SELECT DISTINCT COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9425
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9426
SELECT DISTINCT + COUNT( * ) * 7 FROM tab1 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-9426
SELECT DISTINCT + COUNT ( * ) * 7 FROM tab1 AS cor0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-9427
SELECT + COUNT( * ) * 75 FROM tab1 AS cor0
----
225

skipif mysql # not compatible
query I rowsort label-9427
SELECT + COUNT ( * ) * 75 FROM tab1 AS cor0
----
225

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col0 NOT BETWEEN NULL AND + col1
----
87
21
10
97
1
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9429
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( - col0 * CAST( NULL AS SIGNED ) ) BETWEEN col0 + 65 AND col2 + + 10
----

skipif mysql # not compatible
query III rowsort label-9429
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( - col0 * CAST ( NULL AS INTEGER ) ) BETWEEN col0 + 65 AND col2 + + 10
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - ( - 56 ) col1 FROM tab0
----
2632
5544
560

query I rowsort
SELECT DISTINCT 48 * - col0 AS col0 FROM tab2
----
-2208
-3072
-3600

query I rowsort
SELECT DISTINCT + col2 * + 95 FROM tab2
----
2185
3800
5510

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) >= ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9434
SELECT 25 * + MAX( + 93 ) col0 FROM tab0
----
2325

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9434
SELECT 25 * + MAX ( + 93 ) col0 FROM tab0
----
2325

query I rowsort
SELECT ALL + 67 * - 13 * 1 AS col0 FROM tab1
----
-871
-871
-871

query I rowsort
SELECT DISTINCT col1 + + 93 * col1 FROM tab0
----
1974
7614
94

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col0 * 82 + + col2 / + col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 60 * + ( + 74 ) - + 60 AS col1 FROM tab2 WHERE ( NULL ) >= NULL
----

query I rowsort
SELECT DISTINCT + 73 * col1 FROM tab0
----
1533
5913
73

onlyif mysql # aggregate syntax: 
query I rowsort label-9440
SELECT DISTINCT ( - MAX( ALL - col2 ) ) FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-9440
SELECT DISTINCT ( - MAX ( ALL - col2 ) ) FROM tab2
----
23

query I rowsort
SELECT ALL 57 * - col2 + col1 AS col0 FROM tab2
----
-1260
-2203
-3239

query I rowsort
SELECT ALL + + 83 * + col0 FROM tab2 AS cor0
----
3818
5312
6225

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9443
SELECT CAST( - 80 AS SIGNED ) FROM tab1 AS cor0
----
-80
-80
-80

skipif mysql # not compatible
query I rowsort label-9443
SELECT CAST ( - 80 AS INTEGER ) FROM tab1 AS cor0
----
-80
-80
-80

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT NULL BETWEEN ( - col2 + + col1 ) AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT IN ( - - col0 )
----

query I rowsort
SELECT ALL + col2 + + - 59 FROM tab1
----
0
37
9

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NULL NOT IN ( - col0 + + - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9448
SELECT DISTINCT - - MAX( DISTINCT - col0 ) + - COUNT( * ) FROM tab2 AS cor0
----
-49

skipif mysql # not compatible
query I rowsort label-9448
SELECT DISTINCT - - MAX ( DISTINCT - col0 ) + - COUNT ( * ) FROM tab2 AS cor0
----
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-9449
SELECT DISTINCT - col2 - col2 + - col0 DIV + col2 col1 FROM tab1 AS cor0
----
-119
-137
-192

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9449
SELECT DISTINCT - col2 - col2 + - col0 / + col2 col1 FROM tab1 AS cor0
----
-119
-137
-192

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9450
SELECT ALL - - CAST( NULL AS SIGNED ) * + col2 + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9450
SELECT ALL - - CAST ( NULL AS INTEGER ) * + col2 + CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9451
SELECT DISTINCT - - 80 - + + COUNT( * ) AS col1 FROM tab1 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-9451
SELECT DISTINCT - - 80 - + + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
77

query I rowsort
SELECT + 32 * 7 + + col2 AS col0 FROM tab1 AS cor0
----
283
292
320

query I rowsort
SELECT - col2 + - 43 - - - 72 * + 61 AS col0 FROM tab0 AS cor0
----
-4445
-4482
-4534

query I rowsort
SELECT DISTINCT col1 - - 11 AS col1 FROM tab0 AS cor0
----
12
32
92

query I rowsort
SELECT - col2 * - col2 + - col0 FROM tab1 cor0
----
3396
4533
9165

query I rowsort
SELECT + col1 + - + 96 AS col1 FROM tab2 cor0
----
-19
-29
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-9457
SELECT ALL COUNT( * ) col0 FROM tab2 WHERE NULL NOT IN ( - + 81 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9457
SELECT ALL COUNT ( * ) col0 FROM tab2 WHERE NULL NOT IN ( - + 81 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9458
SELECT DISTINCT + COUNT( * ) * - MAX( col1 ) - - COUNT( - col2 ) col2 FROM tab2
----
-228

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9458
SELECT DISTINCT + COUNT ( * ) * - MAX ( col1 ) - - COUNT ( - col2 ) col2 FROM tab2
----
-228

query I rowsort
SELECT + 47 FROM tab1 WHERE ( - 15 * + - 36 + col2 ) = 21 + + col1 * col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9460
SELECT ALL MIN( - - ( col1 ) ) AS col0 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-9460
SELECT ALL MIN ( - - ( col1 ) ) AS col0 FROM tab1
----
5

query I rowsort
SELECT - col0 FROM tab0 WHERE NULL NOT BETWEEN - + col2 AND ( + col1 + + col2 / ( col2 ) )
----

query I rowsort
SELECT 72 * - ( - - col0 ) + + col2 AS col0 FROM tab2
----
-3289
-4568
-5342

onlyif mysql # DIV for integer division: 
query I rowsort label-9463
SELECT ALL - 67 DIV + col0 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9463
SELECT ALL - 67 / + col0 FROM tab1
----
-1
0
0

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE - - 82 BETWEEN ( - + col0 ) AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9465
SELECT 44 AS col0 FROM tab2 WHERE - - CAST( NULL AS SIGNED ) IS NULL
----
44
44
44

skipif mysql # not compatible
query I rowsort label-9465
SELECT 44 AS col0 FROM tab2 WHERE - - CAST ( NULL AS INTEGER ) IS NULL
----
44
44
44

query III rowsort
SELECT * FROM tab2 WHERE - 65 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col2 * col0 IN ( - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9468
SELECT col2 * CAST( NULL AS SIGNED ) + - col2 AS col2 FROM tab2 WHERE NOT col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9468
SELECT col2 * CAST ( NULL AS INTEGER ) + - col2 AS col2 FROM tab2 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9469
SELECT - col2 * col2 + 50 FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) IS NOT NULL
----
-3431
-4574
-9166

skipif mysql # not compatible
query I rowsort label-9469
SELECT - col2 * col2 + 50 FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL
----
-3431
-4574
-9166

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9470
SELECT + CAST( NULL AS SIGNED ) * + col2 col2, - 49 AS col1 FROM tab1 AS cor0
----
NULL
-49
NULL
-49
NULL
-49

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9470
SELECT + CAST ( NULL AS INTEGER ) * + col2 col2, - 49 AS col1 FROM tab1 AS cor0
----
NULL
-49
NULL
-49
NULL
-49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9471
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col0 * - CAST( + + 59 AS SIGNED ) <= col0 * col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9471
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col0 * - CAST ( + + 59 AS INTEGER ) <= col0 * col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL BETWEEN - ( - col0 ) AND + col2
----

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab0 WHERE NOT + - 72 / + 6 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9474
SELECT DISTINCT COUNT( * ), 70 col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9
70

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9474
SELECT DISTINCT COUNT ( * ), 70 col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9
70

onlyif mysql # aggregate syntax: 
query I rowsort label-9475
SELECT ALL + + MIN( ALL col2 ) col2 FROM tab2 AS cor0 WHERE NOT 23 IS NULL
----
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9475
SELECT ALL + + MIN ( ALL col2 ) col2 FROM tab2 AS cor0 WHERE NOT 23 IS NULL
----
23

query I rowsort
SELECT ALL ( + 17 ) AS col2 FROM tab1 AS cor0
----
17
17
17

query I rowsort
SELECT - col2 * col2 + - - 14 FROM tab0 AS cor0
----
-2195
-86
-9787

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 * + + 92 <= ( - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL - col2 AS col0, 72 + - + ( 36 ) FROM tab0 AS cor0
----
-10
36
-47
36
-99
36

query I rowsort
SELECT ALL - 44 * 81 FROM tab2 AS cor0
----
-3564
-3564
-3564

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 44 + - col2 * + - 15 * - - 75 * col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - ( + ( - 63 ) ) * - col1 - - + col2 - - col1 AS col2 FROM tab2 AS cor0
----
-3139
-4096
-4734

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT ( NULL ) IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9484
SELECT DISTINCT 58 * - COUNT( * ) FROM tab0
----
-174

skipif mysql # not compatible
query I rowsort label-9484
SELECT DISTINCT 58 * - COUNT ( * ) FROM tab0
----
-174

query I rowsort
SELECT DISTINCT + 0 + + 5 AS col0 FROM tab2
----
5

query III rowsort
SELECT * FROM tab1 WHERE NOT + ( + col2 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col0, + col2 FROM tab2
----
46
23
64
40
75
58

onlyif mysql # DIV for integer division: 
query II rowsort label-9488
SELECT col1 AS col2, col0 + 12 DIV col0 * + 64 FROM tab0
----
1
97
21
87
81
15

skipif mysql # not compatible
query II rowsort label-9488
SELECT col1 AS col2, col0 + 12 / col0 * + 64 FROM tab0
----
1
97
21
87
81
15

query III rowsort
SELECT * FROM tab1 WHERE + col0 + + 23 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT 21, - 26 AS col0 FROM tab2
----
21
-26

query I rowsort
SELECT ALL + col1 + - - ( - col2 ) AS col0 FROM tab0
----
-98
11
34

query II rowsort
SELECT ALL - col2 AS col1, col2 FROM tab1
----
-59
59
-68
68
-96
96

query I rowsort
SELECT ALL + col0 + - - 7 AS col0 FROM tab2 AS cor0
----
53
71
82

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( col2 * + 8 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 + 75, 93 col1 FROM tab2 AS cor0
----
126
93
142
93
152
93

onlyif mysql # aggregate syntax: 
query I rowsort label-9496
SELECT ALL 84 * + - COUNT( * ) - + 40 FROM tab2
----
-292

skipif mysql # not compatible
query I rowsort label-9496
SELECT ALL 84 * + - COUNT ( * ) - + 40 FROM tab2
----
-292

query III rowsort
SELECT * FROM tab2 WHERE - 50 + col0 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - 14 * - + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-9499
SELECT col1 + + - col1 AS col1, - col1 DIV + col1 FROM tab2
----
0
-1
0
-1
0
-1

skipif mysql # not compatible
query II rowsort label-9499
SELECT col1 + + - col1 AS col1, - col1 / + col1 FROM tab2
----
0
-1
0
-1
0
-1

query I rowsort
SELECT ALL - - col2 * - col2 - + col0 AS col2 FROM tab2 AS cor0
----
-1664
-3439
-575

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9501
SELECT ALL - col0 * - col1 + 77 * + 39 + - col0 + - - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9501
SELECT ALL - col0 * - col1 + 77 * + 39 + - col0 + - - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + col0 * - + 23 - + + col2 * + col2 * + col2 col1 FROM tab1 AS cor0
----
-172108
-772128
-90034

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 * + col1 IS NULL
----

query I rowsort
SELECT DISTINCT - col1 - col0 + - col0 FROM tab1
----
-116
-175
-229

query II rowsort
SELECT DISTINCT col1 AS col2, - col0 + col2 AS col0 FROM tab2
----
51
-23
67
-17
77
-24

query I rowsort
SELECT - col2 * + 93 FROM tab0
----
-4371
-9207
-930

query I rowsort
SELECT ALL + + col1 - + + col2 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-21
-54
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9508
SELECT ALL 94 * + + ( + CAST( + COUNT( * ) AS SIGNED ) ) FROM tab1
----
282

skipif mysql # not compatible
query I rowsort label-9508
SELECT ALL 94 * + + ( + CAST ( + COUNT ( * ) AS INTEGER ) ) FROM tab1
----
282

query I rowsort
SELECT - 64 * - - col1 FROM tab1
----
-3008
-320
-896

onlyif mysql # aggregate syntax: 
query II rowsort label-9510
SELECT ALL - COUNT( * ) AS col1, - COUNT( * ) + - 29 FROM tab1 WHERE NULL IS NULL
----
-3
-32

skipif mysql # not compatible
query II rowsort label-9510
SELECT ALL - COUNT ( * ) AS col1, - COUNT ( * ) + - 29 FROM tab1 WHERE NULL IS NULL
----
-3
-32

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9511
SELECT - 96 * - CAST( NULL AS DECIMAL ) * col2 / col1 * - + 12 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9511
SELECT - 96 * - CAST ( NULL AS REAL ) * col2 / col1 * - + 12 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 * + - col1 * col2 + col0 AS col2 FROM tab0 WHERE NOT - ( + col1 ) * col2 IS NULL
----
-178914
-2013
-9704

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 AS col2, 38 col0 FROM tab0
----
-15
38
-87
38
-97
38

onlyif mysql # DIV for integer division: 
query I rowsort label-9514
SELECT ALL ( 55 ) * col1 DIV - 55 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-9514
SELECT ALL ( 55 ) * col1 / - 55 FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT ALL col0 AS col1 FROM tab0 AS cor0 WHERE 82 + - col2 + 7 / + 1 * + col2 IN ( col1 / col0 )
----

query I rowsort
SELECT DISTINCT + 31 AS col2 FROM tab2 cor0
----
31

query I rowsort
SELECT DISTINCT - + 79 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-79

query III rowsort
SELECT ALL * FROM tab1 WHERE + 43 <= NULL
----

query I rowsort
SELECT - 22 FROM tab2 AS cor0 WHERE NOT + col0 BETWEEN + 97 AND ( - col1 * + col0 )
----
-22
-22
-22

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 + - - col2 <> col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 2 col2 FROM tab0 cor0
----
2
2
2

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + - col0 + - ( - + 4 ) IS NULL OR NOT + col2 * - - col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 21 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - - 77 * + - col2 FROM tab1 AS cor0
----
-4543
-5236
-7392

query I rowsort
SELECT DISTINCT ( - + col2 ) * + col0 AS col1 FROM tab1 AS cor0
----
-4896
-5015
-6188

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab0 AS cor0 WHERE NOT ( + + col1 ) >= - col1 * + col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9527
SELECT DISTINCT COUNT( * ) * 83 AS col2, + COUNT( * ) FROM tab1 cor0
----
249
3

skipif mysql # not compatible
query II rowsort label-9527
SELECT DISTINCT COUNT ( * ) * 83 AS col2, + COUNT ( * ) FROM tab1 cor0
----
249
3

query I rowsort
SELECT - 77 * + col2 * 50 FROM tab1 AS cor0
----
-227150
-261800
-369600

query I rowsort
SELECT + col1 + + + 16 AS col1 FROM tab2
----
67
83
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9530
SELECT ALL CAST( - - ( - col2 ) AS SIGNED ) FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-9530
SELECT ALL CAST ( - - ( - col2 ) AS INTEGER ) FROM tab0
----
-10
-47
-99

query I rowsort
SELECT ALL + col0 + + - 66 AS col0 FROM tab2
----
-2
-20
9

onlyif mysql # DIV for integer division: 
query I rowsort label-9532
SELECT col1 DIV 68 + 74 FROM tab2
----
74
74
75

skipif mysql # not compatible
query I rowsort label-9532
SELECT col1 / 68 + 74 FROM tab2
----
74
74
75

query I rowsort
SELECT DISTINCT col2 + + + col0 FROM tab1
----
144
147
159

query I rowsort
SELECT ALL - col0 + + col1 AS col2 FROM tab0 cor0
----
-66
-96
66

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 IN ( - + col1 - - col2 )
----

query I rowsort
SELECT - col1 / col2 + + col2 + + col1 / 74 AS col2 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN + col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9537
SELECT ALL 3 + + 61 - + COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
64

skipif mysql # not compatible
query I rowsort label-9537
SELECT ALL 3 + + 61 - + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9538
SELECT ALL - - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9

skipif mysql # not compatible
query I rowsort label-9538
SELECT ALL - - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9539
SELECT 60 * COUNT( * ) AS col2 FROM tab2
----
180

skipif mysql # not compatible
query I rowsort label-9539
SELECT 60 * COUNT ( * ) AS col2 FROM tab2
----
180

onlyif mysql # aggregate syntax: 
query I rowsort label-9540
SELECT - COUNT( - col2 ) + - COUNT( * ) + - + 74 AS col0 FROM tab2 AS cor0
----
-80

skipif mysql # not compatible
query I rowsort label-9540
SELECT - COUNT ( - col2 ) + - COUNT ( * ) + - + 74 AS col0 FROM tab2 AS cor0
----
-80

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9541
SELECT + + 45 * + - CAST( NULL AS DECIMAL ) + 5 + + CAST( NULL AS SIGNED ) + + - col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9541
SELECT + + 45 * + - CAST ( NULL AS REAL ) + 5 + + CAST ( NULL AS INTEGER ) + + - col2 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9542
SELECT - - COUNT( * ) + CAST( + - COUNT( * ) AS SIGNED ) FROM tab2 AS cor0 WHERE + 28 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9542
SELECT - - COUNT ( * ) + CAST ( + - COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0 WHERE + 28 IS NULL
----
0

query I rowsort
SELECT DISTINCT + 93 + - col1 + + col2 * 85 FROM tab1 cor0
----
5103
5826
8239

onlyif mysql # DIV for integer division: 
query I rowsort label-9544
SELECT - col0 + + + col1 + + 73 DIV + - col0 FROM tab2 cor0
----
-8
12
4

skipif mysql # not compatible
query I rowsort label-9544
SELECT - col0 + + + col1 + + 73 / + - col0 FROM tab2 cor0
----
-8
12
4

query I rowsort
SELECT - + 3 + + col0 + + - col0 FROM tab2 AS cor0
----
-3
-3
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + col1 * col1 col2 FROM tab0 AS cor0
----
38367
97
98415

onlyif mysql # DIV for integer division: 
query III rowsort label-9547
SELECT * FROM tab0 AS cor0 WHERE NOT + 78 NOT IN ( - col0, + ( + - 99 ) DIV + col2 + + col0 )
----
87
21
10

skipif mysql # not compatible
query III rowsort label-9547
SELECT * FROM tab0 AS cor0 WHERE NOT + 78 NOT IN ( - col0, + ( + - 99 ) / + col2 + + col0 )
----
87
21
10

query II rowsort
SELECT + col1 AS col2, + col1 FROM tab1 AS cor0
----
14
14
47
47
5
5

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL = + col2 * - - col2
----

query I rowsort
SELECT DISTINCT - 60 + - 58 AS col1 FROM tab2, tab2 AS cor0
----
-118

query I rowsort
SELECT ALL 69 FROM tab2, tab1 cor0
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

onlyif mysql # aggregate syntax: 
query I rowsort label-9552
SELECT DISTINCT COUNT( - ( + col1 ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9552
SELECT DISTINCT COUNT ( - ( + col1 ) ) FROM tab1
----
3

query I rowsort
SELECT - col2 * col1 + 73 AS col2 FROM tab0 cor0
----
-137
-26
-3734

onlyif mysql # aggregate syntax: 
query I rowsort label-9554
SELECT DISTINCT MIN( ALL - 51 ) * - 5 AS col1 FROM tab0 AS cor0 WHERE NOT col2 NOT BETWEEN - + 4 AND ( + col1 - - col0 / + col1 )
----
255

skipif mysql # not compatible
query I rowsort label-9554
SELECT DISTINCT MIN ( ALL - 51 ) * - 5 AS col1 FROM tab0 AS cor0 WHERE NOT col2 NOT BETWEEN - + 4 AND ( + col1 - - col0 / + col1 )
----
255

onlyif mysql # DIV for integer division: 
query II rowsort label-9555
SELECT DISTINCT col2 DIV + + col2, col2 FROM tab1 AS cor0
----
1
59
1
68
1
96

skipif mysql # not compatible
query II rowsort label-9555
SELECT DISTINCT col2 / + + col2, col2 FROM tab1 AS cor0
----
1
59
1
68
1
96

query I rowsort
SELECT DISTINCT - 34 * + + col2 FROM tab0
----
-1598
-3366
-340

onlyif mysql # aggregate syntax: 
query I rowsort label-9557
SELECT DISTINCT + COUNT( * ) + - - 33 col2 FROM tab1 AS cor0
----
36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9557
SELECT DISTINCT + COUNT ( * ) + - - 33 col2 FROM tab1 AS cor0
----
36

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9558
SELECT - CAST( + - col2 AS SIGNED ) + + + col2 DIV + - col1 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-9558
SELECT - CAST ( + - col2 AS INTEGER ) + + + col2 / + - col1 FROM tab2 AS cor0
----
23
40
58

query II rowsort
SELECT DISTINCT - col2 AS col1, - 14 * 53 AS col0 FROM tab2 AS cor0
----
-23
-742
-40
-742
-58
-742

query I rowsort
SELECT 99 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query II rowsort
SELECT ALL col1 AS col1, 14 FROM tab1 cor0
----
14
14
47
14
5
14

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL = ( col0 )
----

query I rowsort
SELECT + 87 FROM tab0 WHERE NULL = col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9564
SELECT MIN( + col0 ) AS col2 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-9564
SELECT MIN ( + col0 ) AS col2 FROM tab0
----
15

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL IS NULL OR NOT col2 NOT IN ( - col2 * - 98 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9566
SELECT ALL + col2 * - + CAST( NULL AS SIGNED ) AS col1, - col2 FROM tab1
----
NULL
-59
NULL
-68
NULL
-96

skipif mysql # not compatible
query II rowsort label-9566
SELECT ALL + col2 * - + CAST ( NULL AS INTEGER ) AS col1, - col2 FROM tab1
----
NULL
-59
NULL
-68
NULL
-96

query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( 92 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9568
SELECT 33 * - COUNT( * ) col0 FROM tab2
----
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9568
SELECT 33 * - COUNT ( * ) col0 FROM tab2
----
-99

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 NOT IN ( + 38 / + + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9570
SELECT ALL - 76 + + CAST( - col1 AS SIGNED ) FROM tab0 AS cor0
----
-157
-77
-97

skipif mysql # not compatible
query I rowsort label-9570
SELECT ALL - 76 + + CAST ( - col1 AS INTEGER ) FROM tab0 AS cor0
----
-157
-77
-97

query I rowsort
SELECT DISTINCT - 51 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9572
SELECT * FROM tab2 WHERE - 89 NOT IN ( - + col1, - ( CAST( - 63 AS SIGNED ) ), + + 24 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9572
SELECT * FROM tab2 WHERE - 89 NOT IN ( - + col1, - ( CAST ( - 63 AS INTEGER ) ), + + 24 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9573
SELECT + + 67 FROM tab2 AS cor0 CROSS JOIN tab0 cor1 WHERE NULL NOT BETWEEN NULL AND CAST( NULL AS DECIMAL ) + - 7
----

skipif mysql # not compatible
query I rowsort label-9573
SELECT + + 67 FROM tab2 AS cor0 CROSS JOIN tab0 cor1 WHERE NULL NOT BETWEEN NULL AND CAST ( NULL AS REAL ) + - 7
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9574
SELECT + - ( - - COUNT( * ) ) * + - 12 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
108

skipif mysql # not compatible
query I rowsort label-9574
SELECT + - ( - - COUNT ( * ) ) * + - 12 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
108

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 80 col2 FROM tab0 cor0
----
80
80
80

query II rowsort
SELECT DISTINCT + col2 AS col2, - col0 FROM tab1 AS cor0
----
59
-85
68
-91
96
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-9577
SELECT DISTINCT SUM( ALL + - col0 ) AS col0 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-9577
SELECT DISTINCT SUM ( ALL + - col0 ) AS col0 FROM tab0 AS cor0
----
-199

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col0 * + col0 * - - ( + col0 ) FROM tab1
----
132651
614125
753571

onlyif mysql # aggregate syntax: 
query I rowsort label-9580
SELECT DISTINCT COUNT( * ) FROM tab1 WHERE NULL < - col1
----
0

skipif mysql # not compatible
query I rowsort label-9580
SELECT DISTINCT COUNT ( * ) FROM tab1 WHERE NULL < - col1
----
0

query II rowsort
SELECT ALL 55 * col0 AS col0, + 43 FROM tab1
----
2805
43
4675
43
5005
43

onlyif mysql # DIV for integer division: 
query I rowsort label-9582
SELECT ALL - col2 DIV + - 21 AS col2 FROM tab0
----
0
2
4

skipif mysql # not compatible
query I rowsort label-9582
SELECT ALL - col2 / + - 21 AS col2 FROM tab0
----
0
2
4

query III rowsort
SELECT * FROM tab0 WHERE NOT - - col1 <> - 45 * + + col1
----

query II rowsort
SELECT col1, col1 AS col0 FROM tab1
----
14
14
47
47
5
5

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - 40 ) NOT BETWEEN col1 * - col0 AND - - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9586
SELECT DISTINCT + COUNT( * ) * + SUM( ALL + col2 ) FROM tab0
----
468

skipif mysql # not compatible
query I rowsort label-9586
SELECT DISTINCT + COUNT ( * ) * + SUM ( ALL + col2 ) FROM tab0
----
468

query I rowsort
SELECT DISTINCT - col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9588
SELECT DISTINCT col1 col2, - CAST( NULL AS SIGNED ) / - ( + 57 ) 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-9588
SELECT DISTINCT col1 col2, - CAST ( NULL AS INTEGER ) / - ( + 57 ) FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9589
SELECT DISTINCT MIN( ( + col2 ) ) FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-9589
SELECT DISTINCT MIN ( ( + col2 ) ) FROM tab1
----
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9590
SELECT + 23 DIV + - MAX( col0 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9590
SELECT + 23 / + - MAX ( col0 ) FROM tab2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9591
SELECT DISTINCT - CAST( + ( + COUNT( * ) ) AS SIGNED ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-9591
SELECT DISTINCT - CAST ( + ( + COUNT ( * ) ) AS INTEGER ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

query I rowsort
SELECT - - 20 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL IN ( - 84 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9594
SELECT - col2 + - - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9594
SELECT - col2 + - - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 41 col0 FROM tab2 AS cor0
----
41
41
41

query II rowsort
SELECT col0, + col0 AS col0 FROM tab1 WHERE ( + 14 * + 41 / + + ( + 9 ) IS NOT NULL )
----
51
51
85
85
91
91

query I rowsort
SELECT 15 + 74 + - 9 FROM tab1
----
80
80
80

query I rowsort
SELECT col1 + + - 52 FROM tab1
----
-38
-47
-5

query II rowsort
SELECT DISTINCT col2 + col2 * - + col1 + col0, + 41 + 47 AS col2 FROM tab2
----
-1104
88
-2976
88
-3753
88

query III rowsort
SELECT * FROM tab2 WHERE - col0 + + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - + 68 AS col2, ( - + col2 ) FROM tab1 AS cor0
----
-68
-59
-68
-68
-68
-96

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 + + 80 - + col2 + - + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9603
SELECT - - MAX( ALL - 95 ) - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-98

skipif mysql # not compatible
query I rowsort label-9603
SELECT - - MAX ( ALL - 95 ) - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-98

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9604
SELECT + col0 - + col1 - + CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9604
SELECT + col0 - + col1 - + CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 33 * + - 21 - 12 FROM tab2
----
681

query I rowsort
SELECT - ( + col0 ) - - col1 FROM tab1
----
-37
-44
-80

query I rowsort
SELECT - 35 * - + col2 FROM tab0
----
1645
3465
350

onlyif mysql # aggregate syntax: 
query I rowsort label-9608
SELECT SUM( + - col2 ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9608
SELECT SUM ( + - col2 ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT DISTINCT - - 42 AS col2 FROM tab1 cor0
----
42

query II rowsort
SELECT DISTINCT + ( + col0 ) AS col1, - col2 AS col0 FROM tab1 AS cor0
----
51
-96
85
-59
91
-68

query I rowsort
SELECT - 65 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) <> NULL
----

query I rowsort
SELECT ALL col1 + col0 AS col1 FROM tab2 AS cor0 WHERE NOT 60 + + - ( - col0 ) IS NOT NULL
----

query II rowsort
SELECT col1, 8 AS col1 FROM tab1
----
14
8
47
8
5
8

query II rowsort
SELECT DISTINCT + col1 + col1 AS col1, 25 AS col0 FROM tab1 WHERE + 23 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9615
SELECT + ( - - COUNT( * ) ) * 77 AS col2 FROM tab2
----
231

skipif mysql # not compatible
query I rowsort label-9615
SELECT + ( - - COUNT ( * ) ) * 77 AS col2 FROM tab2
----
231

query I rowsort
SELECT - 93 * - - col1 FROM tab0 AS cor0
----
-1953
-7533
-93

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9617
SELECT DISTINCT 89 * + 48 AS col0, CAST( NULL AS SIGNED ) + - col0 * col0 col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
4272
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9617
SELECT DISTINCT 89 * + 48 AS col0, CAST ( NULL AS INTEGER ) + - col0 * col0 col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
4272
NULL

query I rowsort
SELECT 93 / - col1 AS col0 FROM tab2 AS cor0 WHERE NOT col0 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9619
SELECT ALL + 45 * + - SUM( - col0 ) + - - COUNT( * ) FROM tab1
----
10218

skipif mysql # not compatible
query I rowsort label-9619
SELECT ALL + 45 * + - SUM ( - col0 ) + - - COUNT ( * ) FROM tab1
----
10218

onlyif mysql # aggregate syntax: 
query I rowsort label-9620
SELECT 35 + COUNT( * ) FROM tab0 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-9620
SELECT 35 + COUNT ( * ) FROM tab0 AS cor0
----
38

query II rowsort
SELECT ALL + col2 AS col0, col1 FROM tab0 cor0 WHERE - 97 + - col1 >= NULL
----

query I rowsort
SELECT col2 * + - col1 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
-1173
-3080
-3886

onlyif mysql # aggregate syntax: 
query I rowsort label-9623
SELECT ALL + MIN( + col1 ) * + MAX( ALL col1 ) + + 57 * - + COUNT( * ) col1 FROM tab2 cor0
----
3756

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9623
SELECT ALL + MIN ( + col1 ) * + MAX ( ALL col1 ) + + 57 * - + COUNT ( * ) col1 FROM tab2 cor0
----
3756

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9624
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN col1 / - CAST( - - 17 AS SIGNED ) AND - 84
----

skipif mysql # not compatible
query III rowsort label-9624
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN col1 / - CAST ( - - 17 AS INTEGER ) AND - 84
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9625
SELECT + 27 * - COUNT( * ) - - 67 AS col0 FROM tab0 AS cor0
----
-14

skipif mysql # not compatible
query I rowsort label-9625
SELECT + 27 * - COUNT ( * ) - - 67 AS col0 FROM tab0 AS cor0
----
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-9626
SELECT ALL + col0 DIV + - col2 AS col2 FROM tab1 cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-9626
SELECT ALL + col0 / + - col2 AS col2 FROM tab1 cor0
----
-1
-1
0

query I rowsort
SELECT DISTINCT + 57 * + + 35 + 65 + 20 FROM tab1 WHERE NOT - ( + col2 ) IS NULL
----
2080

query III rowsort
SELECT * FROM tab0 WHERE - - 63 * + - col0 * col2 / + col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9629
SELECT DISTINCT col2 DIV ( + col1 ) col0 FROM tab0
----
0
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9629
SELECT DISTINCT col2 / ( + col1 ) col0 FROM tab0
----
0
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 71 col0 FROM tab0
----
71
71
71

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL ) >= col1 * + - col0 AND + col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9632
SELECT + CAST( NULL AS SIGNED ) * col2 + col0 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9632
SELECT + CAST ( NULL AS INTEGER ) * col2 + col0 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9633
SELECT - 60 + - - CAST( NULL AS SIGNED ), + col0 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-9633
SELECT - 60 + - - CAST ( NULL AS INTEGER ), + col0 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( NULL ) = + 21 * col1 - - + col2 - 69
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND 11
----

query I rowsort
SELECT DISTINCT col2 * - 54 + - - col2 AS col2 FROM tab1 WHERE NULL IS NULL
----
-3127
-3604
-5088

query II rowsort
SELECT DISTINCT col1, - col2 * col0 AS col2 FROM tab2
----
51
-1058
67
-4350
77
-2560

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9638
SELECT DISTINCT - + ( CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0 WHERE NOT col0 >= - col2
----

skipif mysql # not compatible
query I rowsort label-9638
SELECT DISTINCT - + ( CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0 WHERE NOT col0 >= - col2
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col1 * - - 90 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9640
SELECT CAST( - + col1 AS SIGNED ) FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-9640
SELECT CAST ( - + col1 AS INTEGER ) FROM tab1 AS cor0
----
-14
-47
-5

query II rowsort
SELECT ALL 34 AS col1, - col1 FROM tab0 AS cor0
----
34
-1
34
-21
34
-81

query II rowsort
SELECT ALL - col0 AS col0, col2 + + col2 FROM tab1 cor0
----
-51
192
-85
118
-91
136

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IN ( + col0 * + - ( - col0 ) + - col1, col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9644
SELECT + COUNT( * ) col0 FROM tab2 WHERE NOT + - col1 + + - 62 + col1 IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9644
SELECT + COUNT ( * ) col0 FROM tab2 WHERE NOT + - col1 + + - 62 + col1 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9645
SELECT ALL MIN( ALL 79 ) FROM tab0 WHERE ( NOT NULL IS NOT NULL )
----
79

skipif mysql # not compatible
query I rowsort label-9645
SELECT ALL MIN ( ALL 79 ) FROM tab0 WHERE ( NOT NULL IS NOT NULL )
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-9646
SELECT - COUNT( ALL - - col0 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9646
SELECT - COUNT ( ALL - - col0 ) FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9647
SELECT ALL - COUNT( * ) * COUNT( * ) FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9647
SELECT ALL - COUNT ( * ) * COUNT ( * ) FROM tab0 AS cor0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9648
SELECT DISTINCT - 94 * CAST( - + 75 AS SIGNED ) + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9648
SELECT DISTINCT - 94 * CAST ( - + 75 AS INTEGER ) + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 66 col2 FROM tab2
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-9650
SELECT DISTINCT + 37 DIV - - 47 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9650
SELECT DISTINCT + 37 / - - 47 FROM tab2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9651
SELECT DISTINCT - COUNT( * ), + 75 DIV + + COUNT( * ) col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-9
8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9651
SELECT DISTINCT - COUNT ( * ), + 75 / + + COUNT ( * ) col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-9
8

query I rowsort
SELECT DISTINCT + - col0 FROM tab1 WHERE NOT + col0 IS NULL
----
-51
-85
-91

query III rowsort
SELECT ALL * FROM tab0 WHERE - - 69 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE + - col0 <> ( - col0 )
----

query I rowsort
SELECT ALL 6 + col0 + - col2 AS col0 FROM tab2 AS cor0
----
23
29
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9656
SELECT DISTINCT - col0 + + CAST( - col0 AS SIGNED ) FROM tab1 cor0
----
-102
-170
-182

skipif mysql # not compatible
query I rowsort label-9656
SELECT DISTINCT - col0 + + CAST ( - col0 AS INTEGER ) FROM tab1 cor0
----
-102
-170
-182

query I rowsort
SELECT + col1 + 70 + - col2 FROM tab0 AS cor0
----
-28
104
81

onlyif mysql # DIV for integer division: 
query I rowsort label-9658
SELECT DISTINCT + 53 DIV - col1 col2 FROM tab2 cor0
----
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9658
SELECT DISTINCT + 53 / - col1 col2 FROM tab2 cor0
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9659
SELECT ALL - MAX( + col1 ) AS col0 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-9659
SELECT ALL - MAX ( + col1 ) AS col0 FROM tab1 AS cor0
----
-47

query II rowsort
SELECT ALL + col1 AS col1, + 69 * + col0 + - + col2 FROM tab0
----
1
6594
21
5993
81
988

query II rowsort
SELECT - 31 * - col0 * - + col1 + col0 AS col0, 49 AS col0 FROM tab2
----
-152704
49
-155700
49
-72680
49

query I rowsort
SELECT ALL + col0 - - col0 AS col0 FROM tab0
----
174
194
30

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 44 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9664
SELECT + ( MIN( DISTINCT - col2 ) ) AS col1 FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-9664
SELECT + ( MIN ( DISTINCT - col2 ) ) AS col1 FROM tab1
----
-96

query III rowsort
SELECT * FROM tab2 WHERE col1 >= 75
----
64
77
40

query I rowsort
SELECT ALL + - col1 FROM tab2 AS cor0 WHERE NOT col2 * col2 IS NULL
----
-51
-67
-77

query I rowsort
SELECT - 66 - - col1 AS col0 FROM tab2 AS cor0
----
-15
1
11

query I rowsort
SELECT - 34 - - col1 AS col0 FROM tab1 cor0
----
-20
-29
13

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col1 ) <= - 83
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9670
SELECT SUM( + + 68 ), 96 * - + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
204
NULL

skipif mysql # not compatible
query II rowsort label-9670
SELECT SUM ( + + 68 ), 96 * - + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
204
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9671
SELECT + + col2 DIV col1 - - ( + col2 ) * + - 73 AS col2 FROM tab0 AS cor0
----
-3431
-7128
-730

skipif mysql # not compatible
query I rowsort label-9671
SELECT + + col2 / col1 - - ( + col2 ) * + - 73 AS col2 FROM tab0 AS cor0
----
-3431
-7128
-730

query I rowsort
SELECT ( ( 0 ) ) FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - 69 AS col2 FROM tab0 cor0
----
-69
-69
-69

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE col0 * col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query II rowsort label-9675
SELECT DISTINCT col0, - col2 * 14 DIV + col0 FROM tab0
----
15
-43
87
-1
97
-14

skipif mysql # not compatible
query II rowsort label-9675
SELECT DISTINCT col0, - col2 * 14 / + col0 FROM tab0
----
15
-43
87
-1
97
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-9676
SELECT DISTINCT - MAX( + col2 ) col2 FROM tab0
----
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9676
SELECT DISTINCT - MAX ( + col2 ) col2 FROM tab0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9677
SELECT ALL + COUNT( * ) + + + 98 FROM tab2
----
101

skipif mysql # not compatible
query I rowsort label-9677
SELECT ALL + COUNT ( * ) + + + 98 FROM tab2
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-9678
SELECT DISTINCT + 54 + + + COUNT( * ) FROM tab1 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-9678
SELECT DISTINCT + 54 + + + COUNT ( * ) FROM tab1 AS cor0
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9679
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) * - col0 * + + CAST( col0 AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9679
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) * - col0 * + + CAST ( col0 AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9680
SELECT - 33 * + MAX( col0 ) AS col0 FROM tab0 AS cor0
----
-3201

skipif mysql # not compatible
query I rowsort label-9680
SELECT - 33 * + MAX ( col0 ) AS col0 FROM tab0 AS cor0
----
-3201

query I rowsort
SELECT DISTINCT ( + col0 ) + - col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT + ( + 95 ) AS col2 FROM tab0
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9683
SELECT CAST( NULL AS SIGNED ) + - col0 + + 60 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9683
SELECT CAST ( NULL AS INTEGER ) + - col0 + + 60 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 + + 84 + + - col2 FROM tab2
----
112
121
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 72 col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE + 35 BETWEEN ( NULL ) AND ( NULL )
----

query I rowsort
SELECT DISTINCT + 19 + - 60 AS col1 FROM tab0
----
-41

query I rowsort
SELECT ALL + col0 FROM tab1 AS cor0 WHERE NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9688
SELECT ALL - + COUNT( * ) + COUNT( * ) AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9688
SELECT ALL - + COUNT ( * ) + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9689
SELECT DISTINCT 96 DIV col2 + - col2 + 5 + + + col1 AS col1 FROM tab1 cor0
----
-15
-48
-76

skipif mysql # not compatible
query I rowsort label-9689
SELECT DISTINCT 96 / col2 + - col2 + 5 + + + col1 AS col1 FROM tab1 cor0
----
-15
-48
-76

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 < - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9691
SELECT - col1 - + - col1 * - CAST( - col2 AS SIGNED ) FROM tab2
----
1122
3003
3819

skipif mysql # not compatible
query I rowsort label-9691
SELECT - col1 - + - col1 * - CAST ( - col2 AS INTEGER ) FROM tab2
----
1122
3003
3819

onlyif mysql # DIV for integer division: 
query II rowsort label-9692
SELECT - col0 * - col2 - - col2 DIV - col2 + - col1 AS col1, 95 FROM tab0
----
623
95
848
95
9601
95

skipif mysql # not compatible
query II rowsort label-9692
SELECT - col0 * - col2 - - col2 / - col2 + - col1 AS col1, 95 FROM tab0
----
623
95
848
95
9601
95

query I rowsort
SELECT 66 - - - col2 FROM tab2
----
26
43
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9694
SELECT 58 + - COUNT( * ) AS col1 FROM tab0
----
55

skipif mysql # not compatible
query I rowsort label-9694
SELECT 58 + - COUNT ( * ) AS col1 FROM tab0
----
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + + ( - col1 ) col1 FROM tab2
----
1173
3080
3886

onlyif mysql # DIV for integer division: 
query I rowsort label-9696
SELECT - 63 DIV - col2 FROM tab2
----
1
1
2

skipif mysql # not compatible
query I rowsort label-9696
SELECT - 63 / - col2 FROM tab2
----
1
1
2

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab1 WHERE NOT - col1 IS NULL
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9698
SELECT DISTINCT CAST( col0 AS SIGNED ) * + col0 * + - col2 + col0 AS col1, col0 FROM tab1 AS cor0
----
-249645
51
-426190
85
-563017
91

skipif mysql # not compatible
query II rowsort label-9698
SELECT DISTINCT CAST ( col0 AS INTEGER ) * + col0 * + - col2 + col0 AS col1, col0 FROM tab1 AS cor0
----
-249645
51
-426190
85
-563017
91

query I rowsort
SELECT ALL + col1 * + - col0 AS col0 FROM tab0 AS cor0
----
-1215
-1827
-97

query I rowsort
SELECT + 52 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT - 61 AS col1, - col1 + - + ( - ( - + col2 ) ) AS col2 FROM tab1
----
-61
-110
-61
-115
-61
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-9702
SELECT COUNT( * ) * - MIN( - col2 ) FROM tab2
----
174

skipif mysql # not compatible
query I rowsort label-9702
SELECT COUNT ( * ) * - MIN ( - col2 ) FROM tab2
----
174

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( 91 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9704
SELECT ALL - + MIN( DISTINCT col1 ) + + 68 / + CAST( NULL AS DECIMAL ) + - 61 * - MIN( - + 73 ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9704
SELECT ALL - + MIN ( DISTINCT col1 ) + + 68 / + CAST ( NULL AS REAL ) + - 61 * - MIN ( - + 73 ) FROM tab1 cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9705
SELECT - - 68 DIV - - col1 FROM tab0 AS cor0
----
0
3
68

skipif mysql # not compatible
query I rowsort label-9705
SELECT - - 68 / - - col1 FROM tab0 AS cor0
----
0
3
68

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col2 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9707
SELECT - MIN( col0 ) * - - 55 FROM tab2
----
-2530

skipif mysql # not compatible
query I rowsort label-9707
SELECT - MIN ( col0 ) * - - 55 FROM tab2
----
-2530

query I rowsort
SELECT + col0 + + + col0 FROM tab2
----
128
150
92

query II rowsort
SELECT 76 * + + col2 * + - col1 + + col0 * col0 AS col2, + 66 AS col1 FROM tab0
----
-289107
66
-8391
66
1885
66

query I rowsort
SELECT ALL 56 + + - col0 + col2 FROM tab0
----
-21
58
88

query I rowsort
SELECT + - col2 * ( - - col0 ) FROM tab0 cor0
----
-705
-870
-9603

query I rowsort
SELECT - - col0 AS col0 FROM tab2 AS cor0 WHERE col2 * col1 <> NULL
----

query II rowsort
SELECT DISTINCT - col1 AS col2, - 28 AS col0 FROM tab2 cor0 WHERE NOT 73 - + col1 * - col1 IS NULL
----
-51
-28
-67
-28
-77
-28

query I rowsort
SELECT - 37 * - 32 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 061630226ac20f5a0257102f6ee1879b

onlyif mysql # aggregate syntax: 
query I rowsort label-9715
SELECT - MIN( + 75 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-75

skipif mysql # not compatible
query I rowsort label-9715
SELECT - MIN ( + 75 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-9716
SELECT + COUNT( * ) - - 78 col2 FROM tab1
----
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9716
SELECT + COUNT ( * ) - - 78 col2 FROM tab1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9717
SELECT + COUNT( * ) FROM tab0 AS cor0 WHERE 2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9717
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE 2 IS NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9718
SELECT + CAST( - + 29 AS SIGNED ) + + - MIN( + - col0 ) AS col1 FROM tab2 cor0
----
46

skipif mysql # not compatible
query I rowsort label-9718
SELECT + CAST ( - + 29 AS INTEGER ) + + - MIN ( + - col0 ) AS col1 FROM tab2 cor0
----
46

onlyif mysql # aggregate syntax: 
query II rowsort label-9719
SELECT DISTINCT 5 AS col2, MAX( + 46 ) FROM tab2 cor0 WHERE ( NULL ) IS NOT NULL
----
5
NULL

skipif mysql # not compatible
query II rowsort label-9719
SELECT DISTINCT 5 AS col2, MAX ( + 46 ) FROM tab2 cor0 WHERE ( NULL ) IS NOT NULL
----
5
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9720
SELECT + - 64 + - MAX( ALL + - 19 ), - 7 AS col0 FROM tab0 AS cor0
----
-45
-7

skipif mysql # not compatible
query II rowsort label-9720
SELECT + - 64 + - MAX ( ALL + - 19 ), - 7 AS col0 FROM tab0 AS cor0
----
-45
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9721
SELECT DISTINCT - - COUNT( * ) + - CAST( NULL AS SIGNED ) - - + COUNT( * ), CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9721
SELECT DISTINCT - - COUNT ( * ) + - CAST ( NULL AS INTEGER ) - - + COUNT ( * ), CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL

query I rowsort
SELECT - + col1 * 63 + col1 + - + col2 FROM tab2 AS cor0
----
-3185
-4212
-4814

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9723
SELECT ALL - - COUNT( * ) + + + 4 * AVG ( CAST( NULL AS SIGNED ) ) AS col2, COUNT( * ) AS col0 FROM tab2 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-9723
SELECT ALL - - COUNT ( * ) + + + 4 * AVG ( CAST ( NULL AS INTEGER ) ) AS col2, COUNT ( * ) AS col0 FROM tab2 AS cor0
----
NULL
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 22 IS NULL
----

query I rowsort
SELECT + col1 + 63 FROM tab0 AS cor0
----
144
64
84

query I rowsort
SELECT DISTINCT + 59 * - 6 AS col1 FROM tab2
----
-354

query I rowsort
SELECT - ( + - 56 ) * col1 * - 78 FROM tab2
----
-222768
-292656
-336336

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( NULL IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-9729
SELECT DISTINCT 95 DIV + + col1 AS col1 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-9729
SELECT DISTINCT 95 / + + col1 AS col1 FROM tab2
----
1

query I rowsort
SELECT DISTINCT 69 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9731
SELECT ALL 79 / - col0 * - - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9731
SELECT ALL 79 / - col0 * - - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( - 85 ) FROM tab2 AS cor0
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-9733
SELECT - - 59 + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-9733
SELECT - - 59 + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
56

query I rowsort
SELECT - - col1 * - 4 + + col0 + + col2 AS col2 FROM tab1 AS cor0
----
-29
124
91

query I rowsort
SELECT + col1 + + - 60 FROM tab0 AS cor0
----
-39
-59
21

query I rowsort
SELECT ALL + 1 * - + 7 FROM tab0 AS cor0
----
-7
-7
-7

query I rowsort
SELECT DISTINCT + ( - + col0 ) AS col2 FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-9738
SELECT ALL COUNT( * ) + - 40 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-37

skipif mysql # not compatible
query I rowsort label-9738
SELECT ALL COUNT ( * ) + - 40 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-9739
SELECT + + col0 DIV - + col1 col0 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9739
SELECT + + col0 / - + col1 col0 FROM tab2 AS cor0
----
-1
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - col1 - col2 ) IN ( + col2 + - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9741
SELECT DISTINCT + 29 * - MIN( DISTINCT + + col2 ) FROM tab0
----
-290

skipif mysql # not compatible
query I rowsort label-9741
SELECT DISTINCT + 29 * - MIN ( DISTINCT + + col2 ) FROM tab0
----
-290

query II rowsort
SELECT ( + col0 ) * ( + 69 ) AS col0, + 77 AS col1 FROM tab0
----
1035
77
6003
77
6693
77

onlyif mysql # DIV for integer division: 
query I rowsort label-9743
SELECT ALL col1 DIV + - col1 AS col2 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9743
SELECT ALL col1 / + - col1 AS col2 FROM tab0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2, 94 col1 FROM tab2
----
23
94
40
94
58
94

query II rowsort
SELECT DISTINCT col2 + + + 53 AS col0, col0 * col2 AS col1 FROM tab2
----
111
4350
76
1058
93
2560

query II rowsort
SELECT - 32, + col1 AS col2 FROM tab0
----
-32
1
-32
21
-32
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9747
SELECT DISTINCT + col0 * CAST( NULL AS SIGNED ) / + col1 + 52 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9747
SELECT DISTINCT + col0 * CAST ( NULL AS INTEGER ) / + col1 + 52 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - col2 * 69 FROM tab1 cor0
----
-4071
-4692
-6624

query I rowsort
SELECT DISTINCT - col1 * 75 * + 29 FROM tab1 AS cor0
----
-102225
-10875
-30450

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9750
SELECT DISTINCT - 0 + - COUNT( * ) + - + 13 * + - 10 FROM tab0 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) IS NULL
----
130

skipif mysql # not compatible
query I rowsort label-9750
SELECT DISTINCT - 0 + - COUNT ( * ) + - + 13 * + - 10 FROM tab0 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) IS NULL
----
130

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col1 FROM tab2 WHERE NULL IS NULL
----
51
67
77

query I rowsort
SELECT ALL + ( - - col2 ) FROM tab1
----
59
68
96

query I rowsort
SELECT DISTINCT + col0 * + 14 * + col0 FROM tab0
----
105966
131726
3150

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9754
SELECT + COUNT( * ) DIV - 48 - - 46 AS col2 FROM tab2 cor0
----
46

skipif mysql # not compatible
query I rowsort label-9754
SELECT + COUNT ( * ) / - 48 - - 46 AS col2 FROM tab2 cor0
----
46

query II rowsort
SELECT ALL col1 AS col0, 72 FROM tab0
----
1
72
21
72
81
72

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9756
SELECT CAST( NULL AS SIGNED ) AS col1, CAST( NULL AS SIGNED ) * 67 AS col1 FROM tab2
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9756
SELECT CAST ( NULL AS INTEGER ) AS col1, CAST ( NULL AS INTEGER ) * 67 AS col1 FROM tab2
----
NULL
NULL
NULL
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9757
SELECT SUM( ALL 44 ) col0 FROM tab2
----
132

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9757
SELECT SUM ( ALL 44 ) col0 FROM tab2
----
132

query I rowsort
SELECT DISTINCT + col0 * + - col0 AS col1 FROM tab2
----
-2116
-4096
-5625

query I rowsort
SELECT + - col0 FROM tab0 WHERE NOT + 92 + + + 96 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 0 col1 FROM tab0
----
0

query II rowsort
SELECT ALL - col2 AS col0, - ( + 72 ) * - + col1 FROM tab0 AS cor0
----
-10
1512
-47
5832
-99
72

query II rowsort
SELECT DISTINCT - - col0 * + col2 * 78, col1 FROM tab2 AS cor0
----
199680
77
339300
67
82524
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9763
SELECT COUNT( * ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-9763
SELECT COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9

query I rowsort
SELECT col0 - + + col0 FROM tab2 WHERE NOT - + col1 * - col0 IS NULL
----
0
0
0

query I rowsort
SELECT + ( + + col0 ) * ( - col2 ) AS col2 FROM tab0
----
-705
-870
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-9766
SELECT ALL + - MIN( ALL + col0 ) FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-9766
SELECT ALL + - MIN ( ALL + col0 ) FROM tab2 AS cor0
----
-46

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + col2 ) <> - col2
----

query I rowsort
SELECT DISTINCT - 22 + - 92 + + 74 AS col0 FROM tab1 AS cor0
----
-40

query I rowsort
SELECT ALL + 33 * - + col1 * + + 46 AS col2 FROM tab2 AS cor0
----
-101706
-116886
-77418

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9770
SELECT DISTINCT + CAST( 32 AS SIGNED ) + - col1 * - col0 * 13 AS col2 FROM tab0 AS cor0
----
1293
15827
23783

skipif mysql # not compatible
query I rowsort label-9770
SELECT DISTINCT + CAST ( 32 AS INTEGER ) + - col1 * - col0 * 13 AS col2 FROM tab0 AS cor0
----
1293
15827
23783

onlyif mysql # DIV for integer division: 
query II rowsort label-9771
SELECT col2 DIV col1 AS col1, ( 59 ) * - col2 * + col1 FROM tab0 cor0
----
0
-12390
0
-224613
99
-5841

skipif mysql # not compatible
query II rowsort label-9771
SELECT col2 / col1 AS col1, ( 59 ) * - col2 * + col1 FROM tab0 cor0
----
0
-12390
0
-224613
99
-5841

query I rowsort
SELECT DISTINCT - ( - col2 ) * - col1 - + col1 + + 32 + - col0 AS col1 FROM tab1 AS cor0
----
-1377
-3302
-353

onlyif mysql # aggregate syntax: 
query I rowsort label-9773
SELECT SUM( + + col2 ) + ( + COUNT( * ) ) - COUNT( * ) AS col1 FROM tab0 cor0
----
156

skipif mysql # not compatible
query I rowsort label-9773
SELECT SUM ( + + col2 ) + ( + COUNT ( * ) ) - COUNT ( * ) AS col1 FROM tab0 cor0
----
156

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 NOT BETWEEN NULL AND + col1
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 14 NOT BETWEEN - - 7 AND - col2 - + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 60 * - col2 FROM tab1 AS cor0
----
3540
4080
5760

query I rowsort
SELECT + 57 + col1 AS col0 FROM tab0
----
138
58
78

onlyif mysql # aggregate syntax: 
query I rowsort label-9778
SELECT ALL SUM( + 57 ) FROM tab2
----
171

skipif mysql # not compatible
query I rowsort label-9778
SELECT ALL SUM ( + 57 ) FROM tab2
----
171

query I rowsort
SELECT 81 * col1 * + col2 + + 13 - 17 + - col2 AS col1 FROM tab2
----
249436
314704
94986

query I rowsort
SELECT + 17 FROM tab1 WHERE + ( + - col1 ) + + + 48 * - - col1 IS NULL
----

query I rowsort
SELECT DISTINCT + col0 + - - 43 - + 75 FROM tab0
----
-17
55
65

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9782
SELECT col1, + CAST( + - col1 AS SIGNED ) + - 76 FROM tab2 AS cor0
----
51
-127
67
-143
77
-153

skipif mysql # not compatible
query II rowsort label-9782
SELECT col1, + CAST ( + - col1 AS INTEGER ) + - 76 FROM tab2 AS cor0
----
51
-127
67
-143
77
-153

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE col2 + - - 34 BETWEEN - 19 + 83 AND - - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9784
SELECT - MIN( - col0 ) col1 FROM tab0 cor0
----
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9784
SELECT - MIN ( - col0 ) col1 FROM tab0 cor0
----
97

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE col0 + + 44 - - - col2 = col0 / 3
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9786
SELECT - COUNT( DISTINCT + - 92 ) AS col2 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9786
SELECT - COUNT ( DISTINCT + - 92 ) AS col2 FROM tab1 AS cor0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9787
SELECT CAST( NULL AS SIGNED ) * - + col0 * + + col0 / + 34 - - col2 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9787
SELECT CAST ( NULL AS INTEGER ) * - + col0 * + + col0 / + 34 - - col2 AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9788
SELECT ALL - - ( - COUNT( * ) ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9788
SELECT ALL - - ( - COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
-3

query II rowsort
SELECT 78 AS col0, ( ( col0 ) ) FROM tab0 AS cor0
----
78
15
78
87
78
97

query II rowsort
SELECT DISTINCT + 12 AS col2, col2 FROM tab1 AS cor0
----
12
59
12
68
12
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9791
SELECT SUM( DISTINCT - 67 ) * + 73 * - COUNT( * ) AS col2 FROM tab1 AS cor0
----
14673

skipif mysql # not compatible
query I rowsort label-9791
SELECT SUM ( DISTINCT - 67 ) * + 73 * - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
14673

onlyif mysql # aggregate syntax: 
query II rowsort label-9792
SELECT + SUM( + - col1 ) AS col2, 77 FROM tab1 AS cor0
----
-66
77

skipif mysql # not compatible
query II rowsort label-9792
SELECT + SUM ( + - col1 ) AS col2, 77 FROM tab1 AS cor0
----
-66
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9793
SELECT 6 * COUNT( ALL + col1 ) AS col2 FROM tab0 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-9793
SELECT 6 * COUNT ( ALL + col1 ) AS col2 FROM tab0 AS cor0
----
18

query I rowsort
SELECT DISTINCT + ( - 8 ) FROM tab2
----
-8

query III rowsort
SELECT ALL * FROM tab0 WHERE - col1 * - col0 * + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - ( col0 ) / - col2 * - col2 <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9797
SELECT + COUNT( * ) * + CAST( NULL AS SIGNED ) AS col1, 22 AS col1 FROM tab1
----
NULL
22

skipif mysql # not compatible
query II rowsort label-9797
SELECT + COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col1, 22 AS col1 FROM tab1
----
NULL
22

query I rowsort
SELECT DISTINCT - 1 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) > + + col2
----

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE NOT + col0 NOT BETWEEN NULL AND - - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9800
SELECT - col1 AS col1, col2 * + col0 * - 80 FROM tab2 AS cor0 WHERE NOT - CAST( - col0 AS SIGNED ) + + col2 IS NULL
----
-51
-84640
-67
-348000
-77
-204800

skipif mysql # not compatible
query II rowsort label-9800
SELECT - col1 AS col1, col2 * + col0 * - 80 FROM tab2 AS cor0 WHERE NOT - CAST ( - col0 AS INTEGER ) + + col2 IS NULL
----
-51
-84640
-67
-348000
-77
-204800

query I rowsort
SELECT ALL + - col0 FROM tab1 AS cor0 WHERE NOT col0 * - + col0 < + + ( - col0 )
----

query I rowsort
SELECT + 18 AS col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

onlyif mysql # aggregate syntax: 
query I rowsort label-9803
SELECT + - ( - COUNT( * ) ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-9803
SELECT + - ( - COUNT ( * ) ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT - 74 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) IS NOT NULL
----
9 values hashing to 5a567947d14593676e3825756f8e6130

onlyif mysql # aggregate syntax: 
query I rowsort label-9805
SELECT + 7 + COUNT( * ) FROM tab1
----
10

skipif mysql # not compatible
query I rowsort label-9805
SELECT + 7 + COUNT ( * ) FROM tab1
----
10

query I rowsort
SELECT 0 + - ( - col2 ) * + col0 FROM tab2 AS cor0
----
1058
2560
4350

query I rowsort
SELECT ALL + + 22 * + col1 - - col1 FROM tab0 AS cor0
----
1863
23
483

query I rowsort
SELECT - 84 + - - 65 FROM tab0 AS cor0
----
-19
-19
-19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 70 col0 FROM tab2 AS cor0
----
70
70
70

onlyif mysql # aggregate syntax: 
query I rowsort label-9810
SELECT ALL SUM( + col2 ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
156

skipif mysql # not compatible
query I rowsort label-9810
SELECT ALL SUM ( + col2 ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9811
SELECT - CAST( - CAST( NULL AS DECIMAL ) AS SIGNED ) * - - COUNT( * ) * + SUM( DISTINCT + + CAST( col1 AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9811
SELECT - CAST ( - CAST ( NULL AS REAL ) AS INTEGER ) * - - COUNT ( * ) * + SUM ( DISTINCT + + CAST ( col1 AS INTEGER ) ) FROM tab2
----
NULL

query I rowsort
SELECT 21 * + 3 - + col0 AS col1 FROM tab2
----
-1
-12
17

query I rowsort
SELECT ALL col2 + - 59 * - col1 AS col1 FROM tab1
----
2841
354
922

onlyif mysql # DIV for integer division: 
query I rowsort label-9814
SELECT col0 DIV + 58 - - + 98 FROM tab1
----
98
99
99

skipif mysql # not compatible
query I rowsort label-9814
SELECT col0 / + 58 - - + 98 FROM tab1
----
98
99
99

query I rowsort
SELECT + - 55 FROM tab2 AS cor0 WHERE col1 NOT BETWEEN + + col0 AND + col0
----
-55
-55
-55

query I rowsort
SELECT - col1 + - col0 * col0 * - col1 FROM tab0
----
158928
18144
9408

onlyif mysql # aggregate syntax: 
query I rowsort label-9817
SELECT DISTINCT - 25 * - COUNT( * ) AS col2 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-9817
SELECT DISTINCT - 25 * - COUNT ( * ) AS col2 FROM tab2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9818
SELECT 94 * - COUNT( * ) AS col0 FROM tab0
----
-282

skipif mysql # not compatible
query I rowsort label-9818
SELECT 94 * - COUNT ( * ) AS col0 FROM tab0
----
-282

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 * + + 83 + + 80 * + col1 col0 FROM tab2 cor0
----
2171
2840
546

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col0 col1 FROM tab1 cor0
----
-2601
-7225
-8281

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 / col1 BETWEEN + col2 AND - + col2 * + + col0 * + + col2 - col1 * + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 * + 66 FROM tab1 AS cor0
----
3102
330
924

onlyif mysql # DIV for integer division: 
query I rowsort label-9823
SELECT DISTINCT + 79 DIV + col1 AS col2 FROM tab1 AS cor0
----
1
15
5

skipif mysql # not compatible
query I rowsort label-9823
SELECT DISTINCT + 79 / + col1 AS col2 FROM tab1 AS cor0
----
1
15
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 13 * col2 col0 FROM tab1 cor0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT + 42 * - - col0 FROM tab1 AS cor0
----
2142
3570
3822

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9826
SELECT ALL CAST( + + col1 AS SIGNED ) FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-9826
SELECT ALL CAST ( + + col1 AS INTEGER ) FROM tab0
----
1
21
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2, col2 * - col1 col0 FROM tab0
----
-10
-210
-47
-3807
-99
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 AS col0, col1 col0 FROM tab1
----
-59
5
-68
47
-96
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9829
SELECT - ( + + COUNT( * ) ) col2, - CAST( NULL AS SIGNED ) FROM tab1
----
-3
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9829
SELECT - ( + + COUNT ( * ) ) col2, - CAST ( NULL AS INTEGER ) FROM tab1
----
-3
NULL

query II rowsort
SELECT - col2 AS col2, 65 + 90 FROM tab2
----
-23
155
-40
155
-58
155

query I rowsort
SELECT col2 * + 15 * - 51 FROM tab0
----
-35955
-75735
-7650

onlyif mysql # aggregate syntax: 
query I rowsort label-9832
SELECT - COUNT( + 45 ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9832
SELECT - COUNT ( + 45 ) AS col0 FROM tab1
----
-3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL >= - col2
----

query I rowsort
SELECT DISTINCT + - 57 AS col2 FROM tab2 AS cor0 WHERE NOT col0 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9835
SELECT 3 * - + ( + + COUNT( * ) ) AS col2 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9835
SELECT 3 * - + ( + + COUNT ( * ) ) AS col2 FROM tab1 AS cor0
----
-9

query I rowsort
SELECT - + 65 * - 16 + + col0 AS col0 FROM tab0 AS cor0
----
1055
1127
1137

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 >= ( + - col1 / col0 )
----

query I rowsort
SELECT ALL + + 1 + + + col1 FROM tab2 AS cor0
----
52
68
78

query I rowsort
SELECT DISTINCT col0 + - 87 AS col1 FROM tab1 AS cor0
----
-2
-36
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9840
SELECT DISTINCT + 45 - + SUM( + 26 ) AS col1 FROM tab1 cor0
----
-33

skipif mysql # not compatible
query I rowsort label-9840
SELECT DISTINCT + 45 - + SUM ( + 26 ) AS col1 FROM tab1 cor0
----
-33

query I rowsort
SELECT + + col1 * - 89 + - 89 FROM tab0 AS cor0
----
-178
-1958
-7298

onlyif mysql # aggregate syntax: 
query I rowsort label-9842
SELECT 59 + COUNT( * ) FROM tab1 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-9842
SELECT 59 + COUNT ( * ) FROM tab1 AS cor0
----
62

query I rowsort
SELECT - 83 + - + 81 FROM tab1
----
-164
-164
-164

onlyif mysql # aggregate syntax: 
query II rowsort label-9844
SELECT DISTINCT COUNT( * ), - ( - - ( - - 27 ) ) AS col2 FROM tab2
----
3
-27

skipif mysql # not compatible
query II rowsort label-9844
SELECT DISTINCT COUNT ( * ), - ( - - ( - - 27 ) ) AS col2 FROM tab2
----
3
-27

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9845
SELECT * FROM tab0 WHERE ( + 34 < - CAST( NULL AS SIGNED ) + - 96 )
----

skipif mysql # not compatible
query III rowsort label-9845
SELECT * FROM tab0 WHERE ( + 34 < - CAST ( NULL AS INTEGER ) + - 96 )
----

query I rowsort
SELECT DISTINCT - col2 * + + col0 AS col2 FROM tab0
----
-705
-870
-9603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9847
SELECT + ( + 43 ) * - + 93 + - 59 + CAST( 76 AS SIGNED ) * + col2 * col2 * + col2 + - col1 FROM tab2
----
14824387
4859865
920583

skipif mysql # not compatible
query I rowsort label-9847
SELECT + ( + 43 ) * - + 93 + - 59 + CAST ( 76 AS INTEGER ) * + col2 * col2 * + col2 + - col1 FROM tab2
----
14824387
4859865
920583

query I rowsort
SELECT DISTINCT - 39 AS col0 FROM tab1
----
-39

query I rowsort
SELECT DISTINCT - 85 + - col0 + + 12 AS col2 FROM tab2
----
-119
-137
-148

query I rowsort
SELECT DISTINCT col2 + col1 * + col0 AS col1 FROM tab1
----
4345
484
810

onlyif mysql # aggregate syntax: 
query II rowsort label-9851
SELECT MIN( ALL + - col2 ) - + 38 AS col1, + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-134
3

skipif mysql # not compatible
query II rowsort label-9851
SELECT MIN ( ALL + - col2 ) - + 38 AS col1, + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-134
3

query I rowsort
SELECT DISTINCT - 96 - + col1 FROM tab1 AS cor0
----
-101
-110
-143

query I rowsort
SELECT ALL + col2 * - + 83 * - 77 + 54 FROM tab2 AS cor0
----
147047
255694
370732

onlyif mysql # aggregate syntax: 
query I rowsort label-9854
SELECT DISTINCT + COUNT( * ) + + 35 * - COUNT( * ) FROM tab1
----
-102

skipif mysql # not compatible
query I rowsort label-9854
SELECT DISTINCT + COUNT ( * ) + + 35 * - COUNT ( * ) FROM tab1
----
-102

query I rowsort
SELECT DISTINCT ( + col2 ) + + 55 FROM tab0
----
102
154
65

query III rowsort
SELECT * FROM tab1 WHERE NOT 75 + 38 * col1 <= col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN - 77 + col0 AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9859
SELECT ALL 75 * MAX( DISTINCT + col2 ) + + ( + 15 ) AS col2 FROM tab1
----
7215

skipif mysql # not compatible
query I rowsort label-9859
SELECT ALL 75 * MAX ( DISTINCT + col2 ) + + ( + 15 ) AS col2 FROM tab1
----
7215

onlyif mysql # aggregate syntax: 
query I rowsort label-9860
SELECT ALL MIN( 43 ) AS col2 FROM tab0
----
43

skipif mysql # not compatible
query I rowsort label-9860
SELECT ALL MIN ( 43 ) AS col2 FROM tab0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-9861
SELECT DISTINCT 71 * + COUNT( * ) FROM tab1 WHERE NOT 40 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9861
SELECT DISTINCT 71 * + COUNT ( * ) FROM tab1 WHERE NOT 40 IS NOT NULL
----
0

query I rowsort
SELECT ALL col1 FROM tab1 WHERE NOT + 61 IS NULL
----
14
47
5

query III rowsort
SELECT * FROM tab1 WHERE - col0 * col1 >= + 60
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9864
SELECT ( + MAX( DISTINCT - 13 ) ) FROM tab0
----
-13

skipif mysql # not compatible
query I rowsort label-9864
SELECT ( + MAX ( DISTINCT - 13 ) ) FROM tab0
----
-13

query I rowsort
SELECT DISTINCT 27 + + col0 AS col2 FROM tab2
----
102
73
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9866
SELECT DISTINCT + COUNT( DISTINCT 16 ) - + 47 AS col2 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-9866
SELECT DISTINCT + COUNT ( DISTINCT 16 ) - + 47 AS col2 FROM tab2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-9867
SELECT - COUNT( ALL col0 ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-9867
SELECT - COUNT ( ALL col0 ) AS col1 FROM tab2
----
-3

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <= + 19
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9869
SELECT col2 + - CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT NULL = NULL
----

skipif mysql # not compatible
query I rowsort label-9869
SELECT col2 + - CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT NULL = NULL
----

onlyif mysql # DIV for integer division: 
query III rowsort label-9870
SELECT ALL * FROM tab1 WHERE - 28 DIV col2 <> col1 DIV 61
----

skipif mysql # not compatible
query III rowsort label-9870
SELECT ALL * FROM tab1 WHERE - 28 / col2 <> col1 / 61
----

query I rowsort
SELECT DISTINCT - col2 * + 73 AS col2 FROM tab0 WHERE - ( col0 ) / 5 <> 85 / col0 + col2
----
-3431
-7227
-730

query I rowsort
SELECT + 28 FROM tab1 WHERE NOT - ( col1 ) + col1 <> - col1
----

query I rowsort
SELECT col1 * 1 - 66 * + 68 FROM tab0 WHERE NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9874
SELECT MIN( 19 ) FROM tab2
----
19

skipif mysql # not compatible
query I rowsort label-9874
SELECT MIN ( 19 ) FROM tab2
----
19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + col1 col1 FROM tab2
----
117
125
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9876
SELECT + CAST( NULL AS SIGNED ) - + MIN( + col1 ) FROM tab1 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9876
SELECT + CAST ( NULL AS INTEGER ) - + MIN ( + col1 ) FROM tab1 WHERE ( NULL ) IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9877
SELECT DISTINCT - COUNT( * ) * 97 AS col0 FROM tab1
----
-291

skipif mysql # not compatible
query I rowsort label-9877
SELECT DISTINCT - COUNT ( * ) * 97 AS col0 FROM tab1
----
-291

query I rowsort
SELECT ALL col2 + 60 AS col0 FROM tab1 AS cor0
----
119
128
156

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 IN ( col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT 23 AS col1 FROM tab0 AS cor0 WHERE NOT NULL <> + col2 - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9882
SELECT ALL - MAX( 46 ) FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-9882
SELECT ALL - MAX ( 46 ) FROM tab2
----
-46

query I rowsort
SELECT DISTINCT + 40 AS col2 FROM tab0 WHERE ( NULL ) BETWEEN 88 + + col0 * 98 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9884
SELECT + CAST( col0 AS SIGNED ) / col1 + - CAST( + col1 AS SIGNED ) FROM tab1 WHERE NULL > + col0 + + 46
----

skipif mysql # not compatible
query I rowsort label-9884
SELECT + CAST ( col0 AS INTEGER ) / col1 + - CAST ( + col1 AS INTEGER ) FROM tab1 WHERE NULL > + col0 + + 46
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - col0 ) >= - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9886
SELECT DISTINCT CAST( 57 AS SIGNED ) FROM tab0
----
57

skipif mysql # not compatible
query I rowsort label-9886
SELECT DISTINCT CAST ( 57 AS INTEGER ) FROM tab0
----
57

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - 87 + - col2 ) NOT BETWEEN - 87 + - col1 / col0 AND ( + col0 * - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col0 * - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9889
SELECT MIN( ALL col1 ) AS col2 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-9889
SELECT MIN ( ALL col1 ) AS col2 FROM tab2 AS cor0
----
51

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 + col2 IN ( col2 + + col2 * + 75 )
----

query I rowsort
SELECT ALL 48 + 64 FROM tab0 AS cor0
----
112
112
112

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9893
SELECT DISTINCT + COUNT( * ) + - COUNT( * ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9893
SELECT DISTINCT + COUNT ( * ) + - COUNT ( * ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL + col2 - 97 AS col1 FROM tab2 AS cor0
----
-39
-57
-74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - 79 ) * col2 col0 FROM tab1 cor0 WHERE ( col1 + col2 * - col0 ) = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9896
SELECT DISTINCT - - col1 - 18 DIV 60 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-9896
SELECT DISTINCT - - col1 - 18 / 60 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9897
SELECT - + col0 / + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9897
SELECT - + col0 / + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL <= 13
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9899
SELECT ALL - CAST( col2 AS SIGNED ) * 3 col1 FROM tab2
----
-120
-174
-69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9899
SELECT ALL - CAST ( col2 AS INTEGER ) * 3 col1 FROM tab2
----
-120
-174
-69

query I rowsort
SELECT col1 AS col1 FROM tab1 WHERE col2 * col0 BETWEEN 40 AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE 4 = NULL
----

query I rowsort
SELECT ALL + col0 + + - 19 AS col1 FROM tab2
----
27
45
56

query I rowsort
SELECT col2 + + + col0 + col1 AS col0 FROM tab1
----
149
161
206

query I rowsort
SELECT ALL 4 * 77 + - col1 * col1 FROM tab1 cor0 WHERE 30 - + col2 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + 73 ) IS NULL
----

query I rowsort
SELECT DISTINCT col0 FROM tab2 AS cor0 WHERE - 6 IS NOT NULL
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9907
SELECT ALL - + CAST( - 97 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
97
97
97

skipif mysql # not compatible
query I rowsort label-9907
SELECT ALL - + CAST ( - 97 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
97
97
97

query I rowsort
SELECT ALL + 83 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

query III rowsort
SELECT * FROM tab2 WHERE NOT - + 56 = col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 92 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9911
SELECT + - COUNT( * ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-9911
SELECT + - COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9912
SELECT 83 * COUNT( * ) AS col0 FROM tab2 WHERE NOT - 30 + - col1 * col1 IN ( ( col2 ) )
----
249

skipif mysql # not compatible
query I rowsort label-9912
SELECT 83 * COUNT ( * ) AS col0 FROM tab2 WHERE NOT - 30 + - col1 * col1 IN ( ( col2 ) )
----
249

query I rowsort
SELECT ALL 94 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

query I rowsort
SELECT + ( col0 ) * 16 FROM tab1 cor0
----
1360
1456
816

onlyif mysql # aggregate syntax: 
query I rowsort label-9915
SELECT DISTINCT COUNT( * ) FROM tab0 cor0 WHERE col0 <= ( + col2 )
----
2

skipif mysql # not compatible
query I rowsort label-9915
SELECT DISTINCT COUNT ( * ) FROM tab0 cor0 WHERE col0 <= ( + col2 )
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-9916
SELECT ALL COUNT( * ) AS col2, COUNT( * ) AS col2 FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-9916
SELECT ALL COUNT ( * ) AS col2, COUNT ( * ) AS col2 FROM tab2 AS cor0
----
3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 col2, - col1 * - col2 AS col2 FROM tab2 cor0
----
-51
1173
-67
3886
-77
3080

query I rowsort
SELECT + - 12 FROM tab0 AS cor0 WHERE NOT 39 IS NULL
----
-12
-12
-12

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9919
SELECT * FROM tab0 cor0 WHERE NOT + col1 * + 39 BETWEEN - CAST( NULL AS SIGNED ) + + col0 AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-9919
SELECT * FROM tab0 cor0 WHERE NOT + col1 * + 39 BETWEEN - CAST ( NULL AS INTEGER ) + + col0 AND ( NULL )
----

query I rowsort
SELECT ALL - 24 * + 88 AS col1 FROM tab0 AS cor0
----
-2112
-2112
-2112

query I rowsort
SELECT ALL - 76 FROM tab2 AS cor0 WHERE - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9922
SELECT ALL - 25 * + COUNT( * ) AS col0 FROM tab1
----
-75

skipif mysql # not compatible
query I rowsort label-9922
SELECT ALL - 25 * + COUNT ( * ) AS col0 FROM tab1
----
-75

query I rowsort
SELECT DISTINCT col1 * - - col2 AS col1 FROM tab1
----
1344
295
3196

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + - 30 / 95 + 17 ) NOT IN ( + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9925
SELECT ALL CAST( + - col2 AS SIGNED ) + col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9925
SELECT ALL CAST ( + - col2 AS INTEGER ) + col2 FROM tab0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9926
SELECT DISTINCT - col0 * - + CAST( - col2 AS SIGNED ) AS col0 FROM tab0
----
-705
-870
-9603

skipif mysql # not compatible
query I rowsort label-9926
SELECT DISTINCT - col0 * - + CAST ( - col2 AS INTEGER ) AS col0 FROM tab0
----
-705
-870
-9603

query I rowsort
SELECT DISTINCT 58 + + col0 * + col0 * - 10 FROM tab2
----
-21102
-40902
-56192

query I rowsort
SELECT DISTINCT + 45 AS col0 FROM tab1 AS cor0 WHERE ( - 0 ) NOT IN ( col2 )
----
45

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col2 > ( ( - col1 ) )
----
97
1
99

onlyif mysql # DIV for integer division: 
query I rowsort label-9930
SELECT col0 DIV col0 + col0 + - + col0 * - col2 FROM tab2 cor0
----
1105
2625
4426

skipif mysql # not compatible
query I rowsort label-9930
SELECT col0 / col0 + col0 + - + col0 * - col2 FROM tab2 cor0
----
1105
2625
4426

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NOT 93 + col1 IN ( + ( col1 ) * col2 ) )
----

query I rowsort
SELECT DISTINCT 17 + - 88 FROM tab1 AS cor0
----
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-9933
SELECT ALL - col0 DIV - col2 + ( + col0 ) FROM tab1 AS cor0
----
51
86
92

skipif mysql # not compatible
query I rowsort label-9933
SELECT ALL - col0 / - col2 + ( + col0 ) FROM tab1 AS cor0
----
51
86
92

query I rowsort
SELECT DISTINCT + 70 + + col0 FROM tab1 AS cor0
----
121
155
161

query I rowsort
SELECT DISTINCT + - col1 - - ( + 12 ) * - 30 FROM tab0 AS cor0
----
-361
-381
-441

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9936
SELECT CAST( NULL AS SIGNED ) * col0 * + 37 + - 35 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9936
SELECT CAST ( NULL AS INTEGER ) * col0 * + 37 + - 35 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9937
SELECT ALL - 80 - + COUNT( * ) FROM tab2 AS cor0
----
-83

skipif mysql # not compatible
query I rowsort label-9937
SELECT ALL - 80 - + COUNT ( * ) FROM tab2 AS cor0
----
-83

query I rowsort
SELECT + col0 + + - col0 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( - col1 * + 53 * - - col1 ) > 12
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 11 - + + col0 col2 FROM tab2 AS cor0
----
-35
-53
-64

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9941
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST( - - col0 AS SIGNED ) / + col2 + + 75 * col1 IS NULL
----

skipif mysql # not compatible
query III rowsort label-9941
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST ( - - col0 AS INTEGER ) / + col2 + + 75 * col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9942
SELECT DISTINCT col2 - + CAST( - - CAST( - col0 AS SIGNED ) AS SIGNED ) * + 45 FROM tab1
----
2391
3884
4163

skipif mysql # not compatible
query I rowsort label-9942
SELECT DISTINCT col2 - + CAST ( - - CAST ( - col0 AS INTEGER ) AS INTEGER ) * + 45 FROM tab1
----
2391
3884
4163

query I rowsort
SELECT ALL - ( - ( + 67 ) ) * - 6 AS col0 FROM tab2 WHERE NOT col1 * - 68 * + col0 >= ( - col1 )
----
-402
-402
-402

query I rowsort
SELECT 32 AS col1 FROM tab1 WHERE NOT ( NOT ( 83 NOT IN ( 76 ) ) )
----
32
32
32

query II rowsort
SELECT ALL - 61 AS col1, col0 * col0 AS col0 FROM tab2
----
-61
2116
-61
4096
-61
5625

query I rowsort
SELECT ALL - 26 FROM tab1 AS cor0 WHERE NOT - col1 IS NULL
----
-26
-26
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 AS col0, col0 col1 FROM tab2 cor0
----
23
46
40
64
58
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9948
SELECT ALL COUNT( * ) col2 FROM tab0 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-9948
SELECT ALL COUNT ( * ) col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 53 = - + 82
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 8 * - col1 FROM tab2 AS cor0
----
408
536
616

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9951
SELECT - CAST( - 53 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
53
53
53

skipif mysql # not compatible
query I rowsort label-9951
SELECT - CAST ( - 53 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
53
53
53

query I rowsort
SELECT col0 * - 99 AS col0 FROM tab0 cor0
----
-1485
-8613
-9603

query I rowsort
SELECT DISTINCT - + col0 * - col2 * col1 FROM tab0 AS cor0
----
18270
57105
9603

query I rowsort
SELECT ALL - + 20 * + 67 FROM tab2 AS cor0
----
-1340
-1340
-1340

onlyif mysql # aggregate syntax: 
query I rowsort label-9955
SELECT + 3 * COUNT( + 10 ) AS col2 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9955
SELECT + 3 * COUNT ( + 10 ) AS col2 FROM tab2 AS cor0
----
9

query I rowsort
SELECT DISTINCT - col2 FROM tab1 cor0 WHERE NOT ( NOT ( ( NULL ) = ( - + 58 ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9957
SELECT DISTINCT - + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT - col0 >= + 92
----
-3

skipif mysql # not compatible
query I rowsort label-9957
SELECT DISTINCT - + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT - col0 >= + 92
----
-3

query I rowsort
SELECT DISTINCT ( + ( - - 21 ) ) AS col1 FROM tab1 AS cor0
----
21

query I rowsort
SELECT ALL + col2 * + - 60 FROM tab0
----
-2820
-5940
-600

query I rowsort
SELECT + 43 FROM tab2 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE ( col1 * ( + + col1 ) - + col1 * + - 53 * + - col1 + + col1 ) IN ( - col2 )
----

query II rowsort
SELECT + 19 AS col2, - col0 - - col2 FROM tab1
----
19
-23
19
-26
19
45

query I rowsort
SELECT - col1 * - + 40 + - col0 * - col2 * - col2 AS col2 FROM tab2 WHERE + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9964
SELECT ALL + MIN( DISTINCT - + col1 ) + + + SUM( + col0 ) AS col1 FROM tab0
----
118

skipif mysql # not compatible
query I rowsort label-9964
SELECT ALL + MIN ( DISTINCT - + col1 ) + + + SUM ( + col0 ) AS col1 FROM tab0
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-9965
SELECT + COUNT( - + col1 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9965
SELECT + COUNT ( - + col1 ) AS col0 FROM tab1
----
3

query I rowsort
SELECT ALL - col0 + 26 AS col0 FROM tab0
----
-61
-71
11

query I rowsort
SELECT DISTINCT - col2 * 43 + + 26 * + col2 + + col1 FROM tab2 AS cor0
----
-340
-603
-919

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9968
SELECT - + CAST( COUNT( * ) AS SIGNED ) + COUNT( * ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9968
SELECT - + CAST ( COUNT ( * ) AS INTEGER ) + COUNT ( * ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT + 35 AS col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

query I rowsort
SELECT 39 + + col0 * + 36 * - - col1 + + col1 + - col1 AS col1 FROM tab1
----
15339
154011
25743

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 - - 78 <= col2 * + + col0
----

query II rowsort
SELECT ALL + col1 - + col1 AS col2, + ( + - col1 ) FROM tab0 AS cor0
----
0
-1
0
-21
0
-81

query I rowsort
SELECT DISTINCT 41 - - - 38 FROM tab0
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - - col2 ) IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 NOT IN ( + - 70 / col2 )
----

query I rowsort
SELECT - col2 * - 23 AS col1 FROM tab0
----
1081
2277
230

onlyif mysql # aggregate syntax: 
query I rowsort label-9977
SELECT - 87 * - COUNT( * ) FROM tab0
----
261

skipif mysql # not compatible
query I rowsort label-9977
SELECT - 87 * - COUNT ( * ) FROM tab0
----
261

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + 71 ) col0 FROM tab1
----
71
71
71

query I rowsort
SELECT + 54 * + col1 AS col0 FROM tab0
----
1134
4374
54

onlyif mysql # aggregate syntax: 
query I rowsort label-9980
SELECT - MIN( DISTINCT + - col0 ) col2 FROM tab2
----
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9980
SELECT - MIN ( DISTINCT + - col0 ) col2 FROM tab2
----
75

query I rowsort
SELECT DISTINCT - 43 AS col0 FROM tab2 cor0
----
-43

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9982
SELECT ALL - 27 DIV col2 + CAST( + + 42 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
42
42
42

skipif mysql # not compatible
query I rowsort label-9982
SELECT ALL - 27 / col2 + CAST ( + + 42 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
42
42
42

onlyif mysql # aggregate syntax: 
query I rowsort label-9983
SELECT ALL MAX( col0 ) col1 FROM tab2 cor0
----
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9983
SELECT ALL MAX ( col0 ) col1 FROM tab2 cor0
----
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1, - ( col2 ) col0 FROM tab1
----
14
-96
47
-68
5
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col1, col2 * + 11 AS col2 FROM tab2
----
46
253
64
440
75
638

query II rowsort
SELECT col0 AS col0, col2 * - 28 AS col1 FROM tab1
----
51
-2688
85
-1652
91
-1904

query II rowsort
SELECT DISTINCT 45 AS col0, 38 AS col2 FROM tab1
----
45
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9988
SELECT DISTINCT + 58 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9988
SELECT DISTINCT + 58 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + ( ( - + col1 ) ) col2, col0 AS col0 FROM tab2 AS cor0 WHERE NOT ( - col2 * - + col0 ) BETWEEN col0 AND + 15 - + col1
----
-51
46
-67
75
-77
64

query I rowsort
SELECT - 94 * + col0 AS col1 FROM tab1 AS cor0 WHERE NOT col1 <> NULL
----

query I rowsort
SELECT 15 * + + col2 FROM tab2 AS cor0
----
345
600
870

onlyif mysql # aggregate syntax: 
query I rowsort label-9992
SELECT ALL - COUNT( * ) * 60 AS col0 FROM tab1 cor0
----
-180

skipif mysql # not compatible
query I rowsort label-9992
SELECT ALL - COUNT ( * ) * 60 AS col0 FROM tab1 cor0
----
-180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 51 col0 FROM tab1 AS cor0
----
51
51
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9994
SELECT - MAX( - 56 ) AS col2 FROM tab1 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-9994
SELECT - MAX ( - 56 ) AS col2 FROM tab1 AS cor0
----
56

query I rowsort
SELECT + col0 * - 41 + col1 FROM tab2
----
-1835
-2547
-3008

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9996
SELECT + AVG ( 25 ) * - COUNT( * ) + - CAST( NULL AS SIGNED ) * COUNT( + col0 ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9996
SELECT + AVG ( 25 ) * - COUNT ( * ) + - CAST ( NULL AS INTEGER ) * COUNT ( + col0 ) AS col2 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9997
SELECT - 25 * COUNT( * ) * + 35 + - + 81 AS col2 FROM tab0
----
-2706

skipif mysql # not compatible
query I rowsort label-9997
SELECT - 25 * COUNT ( * ) * + 35 + - + 81 AS col2 FROM tab0
----
-2706

query I rowsort
SELECT DISTINCT - 65 + ( + ( - 57 ) ) AS col0 FROM tab0 cor0
----
-122

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9999
SELECT + CAST( 1 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9999
SELECT + CAST ( 1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
1
1
1

