sqllogictest
Artifact Content
Not logged in

Artifact 80013dc3b671792cfba4024c9d54d3bb406726fc:


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 AL