sqllogictest
Artifact Content
Not logged in

Artifact dd1a9f363d686e6bb02ef5626286c82770769f12:


hash-threshold 8

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3
SELECT - MAX( DISTINCT - CAST( col1 AS SIGNED ) ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3
SELECT - MAX ( DISTINCT - CAST ( col1 AS INTEGER ) ) FROM tab0 AS cor0
----
1

query II rowsort
SELECT DISTINCT - ( col2 ) + - + col0, col1 FROM tab0
----
-196
1
-62
81
-97
21

query I rowsort
SELECT + 56 - - 68 FROM tab2 WHERE NOT NULL >= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6
SELECT ALL + + 86 * - 61 * + ( + - MAX( + + ( - + col1 ) ) ) FROM tab2 WHERE NOT CAST( NULL AS SIGNED ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6
SELECT ALL + + 86 * - 61 * + ( + - MAX ( + + ( - + col1 ) ) ) FROM tab2 WHERE NOT CAST ( NULL AS INTEGER ) IS NULL
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE - col1 * 94 * - col0 BETWEEN + - col2 AND 42
----

query I rowsort
SELECT - col2 / col2 + + - col1 * + col0 + + 98 FROM tab2 WHERE ( NULL ) = 5
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) IN ( - col2 - - + ( - - 84 ), 64, + - 34 )
----

query I rowsort
SELECT ALL + - col0 FROM tab1 WHERE col1 + + 34 NOT IN ( + col1 ) AND NULL < NULL
----

query II rowsort
SELECT DISTINCT - + 82 + + col2 * 7 AS col2, + col2 + + col0 AS col0 FROM tab2 AS cor0
----
198
104
324
133
79
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-12
SELECT DISTINCT col0 FROM tab2 AS cor0 WHERE NOT + col1 + + CAST( col1 AS SIGNED ) IN ( - col2 * + col0 * - col2 )
----
46
64
75

skipif mysql # not compatible
query I rowsort label-12
SELECT DISTINCT col0 FROM tab2 AS cor0 WHERE NOT + col1 + + CAST ( col1 AS INTEGER ) IN ( - col2 * + col0 * - col2 )
----
46
64
75

query I rowsort
SELECT + col0 + - - col2 FROM tab1 cor0
----
144
147
159

query I rowsort
SELECT + col1 + + + 97 FROM tab1 cor0
----
102
111
144

query I rowsort
SELECT DISTINCT - 63 FROM tab2 cor0 WHERE NOT NULL < NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-16
SELECT ALL - - col1 AS col1, - col2 DIV + 98 FROM tab2 AS cor0
----
51
0
67
0
77
0

skipif mysql # not compatible
query II rowsort label-16
SELECT ALL - - col1 AS col1, - col2 / + 98 FROM tab2 AS cor0
----
51
0
67
0
77
0

query I rowsort
SELECT 55 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-18
SELECT - CAST( - COUNT( * ) AS SIGNED ) - - CAST( + SUM( DISTINCT + col0 ) AS SIGNED ) AS col2 FROM tab1 WHERE - col0 * + col2 + + + col0 > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-18
SELECT - CAST ( - COUNT ( * ) AS INTEGER ) - - CAST ( + SUM ( DISTINCT + col0 ) AS INTEGER ) AS col2 FROM tab1 WHERE - col0 * + col2 + + + col0 > NULL
----
NULL

query I rowsort
SELECT + 80 * 36 - - 84 FROM tab1 AS cor0
----
2964
2964
2964

onlyif mysql # aggregate syntax: 
query I rowsort label-20
SELECT ALL - COUNT( * ) - - 91 AS col0 FROM tab1 AS cor0 WHERE - col2 * + col0 + ( col0 ) * + col0 + - col2 * + col0 IS NULL AND NOT ( 74 * + + col2 ) > col1
----
91

skipif mysql # not compatible
query I rowsort label-20
SELECT ALL - COUNT ( * ) - - 91 AS col0 FROM tab1 AS cor0 WHERE - col2 * + col0 + ( col0 ) * + col0 + - col2 * + col0 IS NULL AND NOT ( 74 * + + col2 ) > col1
----
91

query I rowsort
SELECT ALL + - 10 * col1 + - col0 FROM tab0 AS cor0
----
-107
-297
-825

query I rowsort
SELECT - col0 - - - col2 AS col1 FROM tab1 AS cor0
----
-144
-147
-159

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

query I rowsort
SELECT - + col1 - - col0 + - - col2 FROM tab0 AS cor0
----
-19
195
76

query I rowsort
SELECT + 1 * - - col2 + 97 FROM tab2 AS cor0
----
120
137
155

query I rowsort
SELECT 86 * - - col2 AS col0 FROM tab0
----
4042
8514
860

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-27
SELECT MAX( DISTINCT - col1 ) * CAST( - + 90 AS SIGNED ) AS col2 FROM tab0
----
90

skipif mysql # not compatible
query I rowsort label-27
SELECT MAX ( DISTINCT - col1 ) * CAST ( - + 90 AS INTEGER ) AS col2 FROM tab0
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-28
SELECT + col1 DIV 55 * - + col1 AS col2 FROM tab0
----
-81
0
0

skipif mysql # not compatible
query I rowsort label-28
SELECT + col1 / 55 * - + col1 AS col2 FROM tab0
----
-81
0
0

query II rowsort
SELECT DISTINCT + col0, 50 - - col0 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + 70 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911

onlyif mysql # DIV for integer division: 
query I rowsort label-31
SELECT ALL - col2 DIV + - col0 AS col2 FROM tab0 AS cor0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-31
SELECT ALL - col2 / + - col0 AS col2 FROM tab0 AS cor0
----
0
1
3

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

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

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

query I rowsort
SELECT - + 83 * + col2 AS col1 FROM tab1 AS cor0
----
-4897
-5644
-7968

onlyif mysql # aggregate syntax: 
query I rowsort label-35
SELECT ALL + COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( - col2 * ( + col1 ) ) <= col1
----
0

skipif mysql # not compatible
query I rowsort label-35
SELECT ALL + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( - col2 * ( + col1 ) ) <= col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-36
SELECT AVG ( ALL col1 ) AS col2 FROM tab1 AS cor0 WHERE NOT ( ( + CAST( NULL AS SIGNED ) ) ) <> col0
----
NULL

skipif mysql # not compatible
query I rowsort label-36
SELECT AVG ( ALL col1 ) AS col2 FROM tab1 AS cor0 WHERE NOT ( ( + CAST ( NULL AS INTEGER ) ) ) <> col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-37
SELECT ALL - 51 + + COUNT( * ) AS col2 FROM tab1
----
-48

skipif mysql # not compatible
query I rowsort label-37
SELECT ALL - 51 + + COUNT ( * ) AS col2 FROM tab1
----
-48

query I rowsort
SELECT + - col1 - 75 AS col2 FROM tab2 WHERE ( + col2 ) BETWEEN col1 + - - 73 AND + - col0
----

query I rowsort
SELECT DISTINCT + 52 * - - col2 * + 13 * col1 * + 12 + + 84 + 12 AS col0 FROM tab1
----
10902624
2393136
25926048

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

skipif mysql # not compatible
query I rowsort label-40
SELECT - MAX ( DISTINCT - - 4 ) AS col2 FROM tab0
----
-4

query I rowsort
SELECT DISTINCT + col0 + 12 FROM tab0 AS cor0 WHERE NOT + col1 * - + 86 IS NULL
----
109
27
99

onlyif mysql # DIV for integer division: 
query I rowsort label-42
SELECT - 46 DIV + col0 - col0 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-42
SELECT - 46 / + col0 - col0 FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT ALL ( + - 78 ) - - + ( + + col2 ) AS col2 FROM tab2 AS cor0
----
-20
-38
-55

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-45
SELECT - 55 * - COUNT( * ) + - + 49 + + 38 AS col0, + 18 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
484
18

skipif mysql # not compatible
query II rowsort label-45
SELECT - 55 * - COUNT ( * ) + - + 49 + + 38 AS col0, + 18 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
484
18

query I rowsort
SELECT + 61 + - + col2 FROM tab0
----
-38
14
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-47
SELECT DISTINCT - col0 * + col2 + - - col0 + CAST( NULL AS SIGNED ) + + col1 / col0 * col2 FROM tab1 WHERE ( NOT 26 IS NOT NULL )
----

skipif mysql # not compatible
query I rowsort label-47
SELECT DISTINCT - col0 * + col2 + - - col0 + CAST ( NULL AS INTEGER ) + + col1 / col0 * col2 FROM tab1 WHERE ( NOT 26 IS NOT NULL )
----

query II rowsort
SELECT DISTINCT - - 18, col1 AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - - col2 * - col1 - + 81 AS col2 FROM tab1 AS cor0
----
-1425
-3277
-376

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

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

query I rowsort
SELECT DISTINCT col1 * - col0 * 84 FROM tab1 AS cor0
----
-35700
-359268
-59976

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

query I rowsort
SELECT 93 * + 48 FROM tab2
----
4464
4464
4464

onlyif mysql # DIV for integer division: 
query I rowsort label-55
SELECT col1 DIV 80 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-55
SELECT col1 / 80 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT ( + 47 ) * - col1 FROM tab2
----
-2397
-3149
-3619

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * col1 * - + col0 col1 FROM tab2
----
107916
315392
376875

query II rowsort
SELECT DISTINCT 0, - 79 * - col2 * - + ( - + 1 ) AS col0 FROM tab0
----
0
3713
0
7821
0
790

query III rowsort
SELECT ALL - col0 AS col1, + col0 AS col1, col1 + - col2 * - + col2 * - col0 FROM tab1 AS cor0
----
9 values hashing to 5ddc949883661833c6913282f564d087

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

onlyif mysql # aggregate syntax: 
query I rowsort label-61
SELECT ALL + + 28 * COUNT( * ) FROM tab0 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-61
SELECT ALL + + 28 * COUNT ( * ) FROM tab0 AS cor0
----
84

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-63
SELECT ALL + + COUNT( * ) * - CAST( 4 AS SIGNED ) - SUM( + col2 ) col0 FROM tab0 cor0
----
-168

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-63
SELECT ALL + + COUNT ( * ) * - CAST ( 4 AS INTEGER ) - SUM ( + col2 ) col0 FROM tab0 cor0
----
-168

onlyif mysql # DIV for integer division: 
query I rowsort label-64
SELECT + col1 * col2 * + ( - col2 ) DIV - - col2 + - col0 FROM tab2 AS cor0
----
-1219
-3144
-3961

skipif mysql # not compatible
query I rowsort label-64
SELECT + col1 * col2 * + ( - col2 ) / - - col2 + - col0 FROM tab2 AS cor0
----
-1219
-3144
-3961

query I rowsort
SELECT - col2 * + ( + col2 ) AS col1 FROM tab0 AS cor0
----
-100
-2209
-9801

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

query I rowsort
SELECT 7 * 4 AS col1 FROM tab1
----
28
28
28

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

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

query I rowsort
SELECT DISTINCT + col1 + + - col2 AS col2 FROM tab0
----
-98
11
34

onlyif mysql # DIV for integer division: 
query I rowsort label-70
SELECT DISTINCT 83 * + - col1 - 56 DIV + 71 AS col1 FROM tab1 AS cor0
----
-1162
-3901
-415

skipif mysql # not compatible
query I rowsort label-70
SELECT DISTINCT 83 * + - col1 - 56 / + 71 AS col1 FROM tab1 AS cor0
----
-1162
-3901
-415

onlyif mysql # DIV for integer division: 
query I rowsort label-71
SELECT + - 12 + - ( + col2 ) DIV ( 19 ) DIV + - 48 FROM tab1 AS cor0
----
-12
-12
-12

skipif mysql # not compatible
query I rowsort label-71
SELECT + - 12 + - ( + col2 ) / ( 19 ) / + - 48 FROM tab1 AS cor0
----
-12
-12
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-72
SELECT ALL - + MIN( + col0 ) * + - COUNT( * ) FROM tab0 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-72
SELECT ALL - + MIN ( + col0 ) * + - COUNT ( * ) FROM tab0 AS cor0
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-73
SELECT ALL + 32 DIV - 33 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-73
SELECT ALL + 32 / - 33 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - col2 - col0 + ( col0 ) FROM tab0 cor0
----
-10
-47
-99

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-75
SELECT DISTINCT SUM ( - - col0 ) col1 FROM tab1 AS cor0
----
227

query I rowsort
SELECT ALL col0 * - ( col2 ) FROM tab0
----
-705
-870
-9603

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

skipif mysql # not compatible
query I rowsort label-77
SELECT + 13 * + ( + - COUNT ( * ) ) - + + 65 * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-79
SELECT ( - 10 ) DIV col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-79
SELECT ( - 10 ) / col2 FROM tab1 AS cor0
----
0
0
0

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

skipif mysql # not compatible
query I rowsort label-80
SELECT COUNT ( * ) + 52 FROM tab0 AS cor0 WHERE NOT NULL >= col2
----
52

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

query I rowsort
SELECT DISTINCT - col1 * - ( - + col2 ) FROM tab1 AS cor0
----
-1344
-295
-3196

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

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

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

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

skipif mysql # not compatible
query I rowsort label-85
SELECT + 43 * + COUNT ( * ) FROM tab1
----
129

query I rowsort
SELECT - ( - - ( col1 ) ) FROM tab2
----
-51
-67
-77

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

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

query I rowsort
SELECT ALL - + 83 AS col1 FROM tab0 AS cor0
----
-83
-83
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-89
SELECT DISTINCT + 88 * + CAST( + - 49 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-4312

skipif mysql # not compatible
query I rowsort label-89
SELECT DISTINCT + 88 * + CAST ( + - 49 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-4312

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

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

query I rowsort
SELECT ALL 74 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

query I rowsort
SELECT ALL - ( + + 13 ) FROM tab1
----
-13
-13
-13

onlyif mysql # aggregate syntax: 
query II rowsort label-93
SELECT - 48, + COUNT( * ) * + - SUM( DISTINCT + col1 ) AS col1 FROM tab0
----
-48
-309

skipif mysql # not compatible
query II rowsort label-93
SELECT - 48, + COUNT ( * ) * + - SUM ( DISTINCT + col1 ) AS col1 FROM tab0
----
-48
-309

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 80 + - + col2 + - col1 col0 FROM tab0
----
-20
-48
49

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

query I rowsort
SELECT col2 + col1 * + col1 * + + 59 AS col1 FROM tab1 AS cor0
----
11660
130399
1534

onlyif mysql # aggregate syntax: 
query I rowsort label-97
SELECT DISTINCT + 8 * SUM( + 86 ) AS col0 FROM tab1 AS cor0
----
2064

skipif mysql # not compatible
query I rowsort label-97
SELECT DISTINCT + 8 * SUM ( + 86 ) AS col0 FROM tab1 AS cor0
----
2064

query I rowsort
SELECT + col2 + + + col2 FROM tab1 AS cor0
----
118
136
192

query I rowsort
SELECT ALL col0 * - 21 + - - col1 AS col0 FROM tab1 AS cor0
----
-1057
-1780
-1864

onlyif mysql # aggregate syntax: 
query I rowsort label-100
SELECT ALL + COUNT( * ) * + MIN( DISTINCT col2 ) FROM tab0 cor0
----
30

skipif mysql # not compatible
query I rowsort label-100
SELECT ALL + COUNT ( * ) * + MIN ( DISTINCT col2 ) FROM tab0 cor0
----
30

query I rowsort
SELECT DISTINCT + col1 + + + col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
100
128
31

query I rowsort
SELECT DISTINCT col2 * - col0 * - col2 FROM tab2 AS cor0
----
102400
24334
252300

onlyif mysql # aggregate syntax: 
query II rowsort label-103
SELECT + 82 AS col2, COUNT( * ) AS col2 FROM tab2 AS cor0
----
82
3

skipif mysql # not compatible
query II rowsort label-103
SELECT + 82 AS col2, COUNT ( * ) AS col2 FROM tab2 AS cor0
----
82
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-104
SELECT DISTINCT - 56 + - COUNT( * ) * - - CAST( + 25 AS SIGNED ) FROM tab0
----
-131

skipif mysql # not compatible
query I rowsort label-104
SELECT DISTINCT - 56 + - COUNT ( * ) * - - CAST ( + 25 AS INTEGER ) FROM tab0
----
-131

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

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

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

query I rowsort
SELECT ALL col0 * ( col2 ) - - col2 AS col2 FROM tab0
----
752
880
9702

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

query I rowsort
SELECT DISTINCT - col1 * - col1 - col1 * - col0 AS col1 FROM tab2 AS cor0
----
10857
4947
9514

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

query I rowsort
SELECT DISTINCT col1 * + 18 * + col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
1746
21870
32886

query I rowsort
SELECT DISTINCT + + 75 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
75

query I rowsort
SELECT DISTINCT - + 25 FROM tab1 cor0
----
-25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-114
SELECT DISTINCT + COUNT( * ) DIV 11 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-114
SELECT DISTINCT + COUNT ( * ) / 11 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + col1 > col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( + 46, 25 + + - col0, + + col1 + col1 * + col1 + - col1 + - - col2 )
----

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + 99 col2, - 11 FROM tab1 AS cor0
----
99
-11
99
-11
99
-11

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

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

query I rowsort
SELECT 83 * + 77 AS col2 FROM tab1
----
6391
6391
6391

query I rowsort
SELECT - + col1 FROM tab0 WHERE NOT + col1 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - 0 FROM tab0, tab0 AS cor0
----
0

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-124
SELECT + - SUM ( col1 ) + COUNT ( * ) col0 FROM tab2 AS cor0
----
-192

onlyif mysql # aggregate syntax: 
query I rowsort label-125
SELECT - SUM( ALL + col2 ) * + + 0 + - 14 - - - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-125
SELECT - SUM ( ALL + col2 ) * + + 0 + - 14 - - - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-17

query I rowsort
SELECT - col0 * col2 + - col2 + 74 * + - 70 + + - col2 AS col2 FROM tab0 AS cor0
----
-14981
-5979
-6070

query I rowsort
SELECT DISTINCT col0 FROM tab1 cor0 WHERE - 71 NOT BETWEEN - col1 + + col0 * col2 * - - 69 * - col1 AND NULL
----

query I rowsort
SELECT ALL + 17 * + ( - col2 ) FROM tab1
----
-1003
-1156
-1632

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

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

skipif mysql # not compatible
query I rowsort label-130
SELECT - SUM ( ALL + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT col2 * - - 57 AS col0 FROM tab0 AS cor0
----
2679
5643
570

query I rowsort
SELECT DISTINCT + + 32 * - - col2 AS col1 FROM tab1 AS cor0
----
1888
2176
3072

query III rowsort
SELECT ALL * FROM tab0 WHERE - + col2 * + 15 NOT BETWEEN NULL AND + col2 / - col2 + + 82 + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-134
SELECT - COUNT( * ) + 27 + + + COUNT( * ) + + - COUNT( DISTINCT - + col0 ) + + 63 * 47 AS col0 FROM tab2
----
2985

skipif mysql # not compatible
query I rowsort label-134
SELECT - COUNT ( * ) + 27 + + + COUNT ( * ) + + - COUNT ( DISTINCT - + col0 ) + + 63 * 47 AS col0 FROM tab2
----
2985

query I rowsort
SELECT ALL - - col2 * 41 - - - col0 AS col1 FROM tab0 AS cor0
----
1912
323
3962

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

skipif mysql # not compatible
query I rowsort label-136
SELECT MAX ( ALL - ( 96 ) ) AS col0 FROM tab2 AS cor0
----
-96

query I rowsort
SELECT DISTINCT col1 * + col2 * - + 79 * + col0 - - - 11 FROM tab2 AS cor0
----
-15572491
-23024561
-4262693

onlyif mysql # aggregate syntax: 
query I rowsort label-138
SELECT MIN( - col1 ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-47

skipif mysql # not compatible
query I rowsort label-138
SELECT MIN ( - col1 ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-47

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-139
SELECT COUNT ( * ) col1 FROM tab0 WHERE NOT ( NOT NULL IS NOT NULL )
----
0

query I rowsort
SELECT ALL 84 * - - 50 * col0 * 23 AS col1 FROM tab1
----
4926600
8211000
8790600

query I rowsort
SELECT ALL + 90 * 48 AS col1 FROM tab1
----
4320
4320
4320

onlyif mysql # aggregate syntax: 
query I rowsort label-142
SELECT COUNT( * ) * + + SUM( col0 ) FROM tab0
----
597

skipif mysql # not compatible
query I rowsort label-142
SELECT COUNT ( * ) * + + SUM ( col0 ) FROM tab0
----
597

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-145
SELECT ALL 98 DIV COUNT( * ) * - - 77 FROM tab1 AS cor0
----
2464

skipif mysql # not compatible
query I rowsort label-145
SELECT ALL 98 / COUNT ( * ) * - - 77 FROM tab1 AS cor0
----
2464

onlyif mysql # DIV for integer division: 
query I rowsort label-146
SELECT + - ( + 8 ) DIV - col1 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-146
SELECT + - ( + 8 ) / - col1 FROM tab1 AS cor0
----
0
0
1

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-149
SELECT + col1 * + - CAST ( + col2 AS INTEGER ) col2 FROM tab0
----
-210
-3807
-99

query I rowsort
SELECT DISTINCT + 94 * + + col2 * col2 FROM tab0
----
207646
921294
9400

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

skipif mysql # not compatible
query I rowsort label-151
SELECT DISTINCT col0 / - - col0 AS col2 FROM tab2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-152
SELECT ALL + COUNT( * ) * - 55 AS col0 FROM tab2
----
-165

skipif mysql # not compatible
query I rowsort label-152
SELECT ALL + COUNT ( * ) * - 55 AS col0 FROM tab2
----
-165

query II rowsort
SELECT 23 AS col1, 12 * + col1 FROM tab1
----
23
168
23
564
23
60

query II rowsort
SELECT ALL + + col2, 50 + - - 56 AS col1 FROM tab0 AS cor0
----
10
106
47
106
99
106

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

query I rowsort
SELECT col1 + - 50 FROM tab2
----
1
17
27

query I rowsort
SELECT + 89 + col0 * + 25 * col0 FROM tab2 AS cor0
----
102489
140714
52989

query I rowsort
SELECT ALL - - col1 - + 63 AS col1 FROM tab0 cor0
----
-42
-62
18

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-161
SELECT - 9 - - 24 + ( + COUNT( * ) ) FROM tab2
----
18

skipif mysql # not compatible
query I rowsort label-161
SELECT - 9 - - 24 + ( + COUNT ( * ) ) FROM tab2
----
18

query I rowsort
SELECT ALL + AVG ( + col1 ) FROM tab1 WHERE NOT 19 IS NOT NULL
----
NULL

query I rowsort
SELECT - 70 FROM tab0 WHERE + col1 IS NOT NULL
----
-70
-70
-70

query I rowsort
SELECT + col2 - - 58 FROM tab1
----
117
126
154

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-168
SELECT DISTINCT col0 DIV 47 AS col2 FROM tab0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-168
SELECT DISTINCT col0 / 47 AS col2 FROM tab0
----
0
1
2

query I rowsort
SELECT DISTINCT - 80 * - 16 AS col2 FROM tab2
----
1280

query I rowsort
SELECT DISTINCT col0 * + - 84 AS col0 FROM tab2
----
-3864
-5376
-6300

onlyif mysql # aggregate syntax: 
query I rowsort label-171
SELECT COUNT( ALL - + col0 ) * ( + 42 ) FROM tab0
----
126

skipif mysql # not compatible
query I rowsort label-171
SELECT COUNT ( ALL - + col0 ) * ( + 42 ) FROM tab0
----
126

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

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

query I rowsort
SELECT ALL - + 74 AS col2 FROM tab1 cor0
----
-74
-74
-74

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

skipif mysql # not compatible
query I rowsort label-174
SELECT + COUNT ( * ) / - 11 FROM tab1 AS cor0
----
0

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-177
SELECT DISTINCT + - COUNT( * ) AS col2, + MAX( DISTINCT + - ( - - 79 ) ) - - ( + - 46 ) * 54 AS col2 FROM tab1 AS cor0
----
-3
-2563

skipif mysql # not compatible
query II rowsort label-177
SELECT DISTINCT + - COUNT ( * ) AS col2, + MAX ( DISTINCT + - ( - - 79 ) ) - - ( + - 46 ) * 54 AS col2 FROM tab1 AS cor0
----
-3
-2563

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-179
SELECT - 27 * + col1, + CAST( NULL AS DECIMAL ) AS col1 FROM tab1
----
-1269
NULL
-135
NULL
-378
NULL

skipif mysql # not compatible
query II rowsort label-179
SELECT - 27 * + col1, + CAST ( NULL AS REAL ) AS col1 FROM tab1
----
-1269
NULL
-135
NULL
-378
NULL

query I rowsort
SELECT DISTINCT + col2 * + + col2 + + + 29 + - col0 FROM tab0
----
2223
42
9733

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-182
SELECT DISTINCT - MIN ( + col1 ) col1 FROM tab1
----
-5

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 >= col2
----
97
1
99

onlyif mysql # DIV for integer division: 
query I rowsort label-184
SELECT col1 + - ( + col0 ) DIV col2 FROM tab1 AS cor0
----
14
4
46

skipif mysql # not compatible
query I rowsort label-184
SELECT col1 + - ( + col0 ) / col2 FROM tab1 AS cor0
----
14
4
46

query I rowsort
SELECT ALL + 52 * col0 FROM tab0 WHERE NOT 8 + col1 NOT IN ( + 97 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-186
SELECT 21 AS col2, COUNT( * ) FROM tab2
----
21
3

skipif mysql # not compatible
query II rowsort label-186
SELECT 21 AS col2, COUNT ( * ) FROM tab2
----
21
3

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-188
SELECT ALL col2 * + CAST( + col1 AS SIGNED ) - 22 AS col2 FROM tab1 AS cor0
----
1322
273
3174

skipif mysql # not compatible
query I rowsort label-188
SELECT ALL col2 * + CAST ( + col1 AS INTEGER ) - 22 AS col2 FROM tab1 AS cor0
----
1322
273
3174

query I rowsort
SELECT + col2 * ( col0 ) - + + col0 FROM tab1 AS cor0
----
4845
4930
6097

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-191
SELECT + COUNT( * ) - - MIN( DISTINCT + col0 ) AS col2 FROM tab1 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-191
SELECT + COUNT ( * ) - - MIN ( DISTINCT + col0 ) AS col2 FROM tab1 AS cor0
----
54

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

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

query I rowsort
SELECT + - col2 + - + col2 * + + 5 + - - 21 AS col2 FROM tab0 AS cor0
----
-261
-39
-573

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-194
SELECT ALL CAST( - - MIN( - - col2 ) AS SIGNED ) * - MIN( ALL - - col0 ) FROM tab0
----
-150

skipif mysql # not compatible
query I rowsort label-194
SELECT ALL CAST ( - - MIN ( - - col2 ) AS INTEGER ) * - MIN ( ALL - - col0 ) FROM tab0
----
-150

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-197
SELECT + 58 * - COUNT( * ) col1 FROM tab0
----
-174

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-197
SELECT + 58 * - COUNT ( * ) col1 FROM tab0
----
-174

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-199
SELECT - MAX( DISTINCT + + col1 ) FROM tab0 cor0
----
-81

skipif mysql # not compatible
query I rowsort label-199
SELECT - MAX ( DISTINCT + + col1 ) FROM tab0 cor0
----
-81

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-200
SELECT * FROM tab1 AS cor0 WHERE NOT NULL IN ( 11, + 6, - 41, + 96 * 94 + col1 - + - col0 + + 53, col1, + CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-200
SELECT * FROM tab1 AS cor0 WHERE NOT NULL IN ( 11, + 6, - 41, + 96 * 94 + col1 - + - col0 + + 53, col1, + CAST ( NULL AS REAL ) )
----

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-204
SELECT + COUNT( * ) AS col0, + 54 AS col2 FROM tab0
----
3
54

skipif mysql # not compatible
query II rowsort label-204
SELECT + COUNT ( * ) AS col0, + 54 AS col2 FROM tab0
----
3
54

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

onlyif mysql # aggregate syntax: 
query I rowsort label-206
SELECT ALL + MIN( DISTINCT + + 6 ) + - - SUM( DISTINCT + col1 ) FROM tab1
----
72

skipif mysql # not compatible
query I rowsort label-206
SELECT ALL + MIN ( DISTINCT + + 6 ) + - - SUM ( DISTINCT + col1 ) FROM tab1
----
72

onlyif mysql # aggregate syntax: 
query II rowsort label-207
SELECT ALL + 49 AS col2, - SUM( - col0 ) FROM tab2
----
49
185

skipif mysql # not compatible
query II rowsort label-207
SELECT ALL + 49 AS col2, - SUM ( - col0 ) FROM tab2
----
49
185

query II rowsort
SELECT DISTINCT - - col2 + + + 98, col2 * + 2 + - col1 AS col0 FROM tab0 AS cor0
----
108
-1
145
13
197
197

query I rowsort
SELECT ALL + + col0 + + 90 FROM tab1 cor0
----
141
175
181

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

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

query II rowsort
SELECT ALL - - col0 AS col2, - col2 * + 26 FROM tab2 AS cor0 WHERE NOT ( + col2 IS NULL )
----
46
-598
64
-1040
75
-1508

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

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

query I rowsort
SELECT ALL + col1 - - + ( + 15 ) + - 22 AS col2 FROM tab2 AS cor0
----
44
60
70

onlyif mysql # DIV for integer division: 
query II rowsort label-215
SELECT DISTINCT + col1 DIV - col2 AS col2, 41 - - col1 FROM tab1 cor0
----
0
46
0
55
0
88

skipif mysql # not compatible
query II rowsort label-215
SELECT DISTINCT + col1 / - col2 AS col2, 41 - - col1 FROM tab1 cor0
----
0
46
0
55
0
88

query II rowsort
SELECT ALL col2, col2 * - 15 FROM tab2
----
23
-345
40
-600
58
-870

query I rowsort
SELECT + col0 FROM tab1 WHERE NOT - 38 / + + 28 * - col2 IS NOT NULL
----

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

query II rowsort
SELECT - col1, 87 * - col0 AS col1 FROM tab0
----
-1
-8439
-21
-7569
-81
-1305

onlyif mysql # DIV for integer division: 
query I rowsort label-220
SELECT - col0 DIV + 6 AS col0 FROM tab2
----
-10
-12
-7

skipif mysql # not compatible
query I rowsort label-220
SELECT - col0 / + 6 AS col0 FROM tab2
----
-10
-12
-7

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( 60 ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-222
SELECT DISTINCT + SUM( ALL CAST( col1 AS SIGNED ) ) AS col1, - 91 * - 48 AS col1 FROM tab1 cor0
----
66
4368

skipif mysql # not compatible
query II rowsort label-222
SELECT DISTINCT + SUM ( ALL CAST ( col1 AS INTEGER ) ) AS col1, - 91 * - 48 AS col1 FROM tab1 cor0
----
66
4368

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 79 col0 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( 68, col1, col0 )
----

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

query I rowsort
SELECT DISTINCT 9 - + 51 FROM tab2, tab0 cor0
----
-42

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

onlyif mysql # aggregate syntax: 
query I rowsort label-228
SELECT DISTINCT - 96 * - COUNT( * ) AS col1 FROM tab2
----
288

skipif mysql # not compatible
query I rowsort label-228
SELECT DISTINCT - 96 * - COUNT ( * ) AS col1 FROM tab2
----
288

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-229
SELECT col0 DIV + 96 + - col2 * + 76 - + CAST( - 24 AS SIGNED ) FROM tab2 AS cor0
----
-1724
-3016
-4384

skipif mysql # not compatible
query I rowsort label-229
SELECT col0 / + 96 + - col2 * + 76 - + CAST ( - 24 AS INTEGER ) FROM tab2 AS cor0
----
-1724
-3016
-4384

query I rowsort
SELECT DISTINCT + 8 * 3 AS col2 FROM tab2 AS cor0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-231
SELECT - MAX( + 9 ) * - 65 + + 54 col0 FROM tab0 AS cor0
----
639

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-231
SELECT - MAX ( + 9 ) * - 65 + + 54 col0 FROM tab0 AS cor0
----
639

query II rowsort
SELECT + col2, - col0 * col2 - - - col0 * - col0 FROM tab2
----
23
1058
40
1536
58
1275

query I rowsort
SELECT ALL col1 * + col2 + + - col2 AS col1 FROM tab1
----
1248
236
3128

onlyif mysql # DIV for integer division: 
query I rowsort label-234
SELECT ALL 73 DIV 30 FROM tab1
----
2
2
2

skipif mysql # not compatible
query I rowsort label-234
SELECT ALL 73 / 30 FROM tab1
----
2
2
2

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

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

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

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

query I rowsort
SELECT ALL ( col1 ) + 2 FROM tab2
----
53
69
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - - 48 col2 FROM tab1 WHERE ( NULL ) NOT BETWEEN + col0 AND + - col2 AND ( + + 40 ) * - col2 * - - col1 * + - 31 * - col0 = + + ( - col0 ) + - ( col1 ) + - - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - col2 col1 FROM tab0 cor0
----
705
870
9603

query I rowsort
SELECT - col2 + - col0 + + 87 * - - 74 FROM tab1 AS cor0
----
6279
6291
6294

query I rowsort
SELECT DISTINCT + + col0 * + 62 FROM tab2 AS cor0
----
2852
3968
4650

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-243
SELECT ALL + + 24 DIV + 58 * + COUNT( ALL 26 ) * + MIN( + 87 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-243
SELECT ALL + + 24 / + 58 * + COUNT ( ALL 26 ) * + MIN ( + 87 ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT + 62 + col0 AS col1 FROM tab2 AS cor0
----
108
126
137

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-245
SELECT - CAST( NULL AS SIGNED ), 77 AS col0 FROM tab0 AS cor0
----
NULL
77
NULL
77
NULL
77

skipif mysql # not compatible
query II rowsort label-245
SELECT - CAST ( NULL AS INTEGER ), 77 AS col0 FROM tab0 AS cor0
----
NULL
77
NULL
77
NULL
77

onlyif mysql # DIV for integer division: 
query I rowsort label-246
SELECT DISTINCT + col2 DIV - 44 + 45 + - 59 DIV + 91 + - col1 FROM tab2 AS cor0
----
-23
-32
-6

skipif mysql # not compatible
query I rowsort label-246
SELECT DISTINCT + col2 / - 44 + 45 + - 59 / + 91 + - col1 FROM tab2 AS cor0
----
-23
-32
-6

query I rowsort
SELECT + 60 + - 35 * AVG ( ALL + ( - 78 ) ) FROM tab2 cor0 WHERE NULL NOT BETWEEN - col1 AND - col1 * + + col0
----
NULL

query I rowsort
SELECT + + col2 + + - 44 AS col1 FROM tab0 cor0
----
-34
3
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + ( + col2 ) col0 FROM tab2 AS cor0
----
1173
3080
3886

onlyif mysql # DIV for integer division: 
query II rowsort label-250
SELECT ALL + 75 AS col0, + col0 DIV - col2 AS col2 FROM tab1 AS cor0
----
75
-1
75
-1
75
0

skipif mysql # not compatible
query II rowsort label-250
SELECT ALL + 75 AS col0, + col0 / - col2 AS col2 FROM tab1 AS cor0
----
75
-1
75
-1
75
0

query I rowsort
SELECT ALL + ( - 49 ) FROM tab1 cor0
----
-49
-49
-49

query I rowsort
SELECT ALL 6 * + col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
282
594
60

query I rowsort
SELECT DISTINCT + 95 * + + ( + 21 ) AS col1 FROM tab0, tab1 AS cor0
----
1995

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + - 98 * + col1 IN ( col2 * - + col0, 62, + ( + 55 ), + 31 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT ( + - col1 ) * - col2 * col1 * - col1 FROM tab1
----
-263424
-7059964
-7375

onlyif mysql # aggregate syntax: 
query I rowsort label-257
SELECT DISTINCT - 72 * + MAX( - col2 ) * 1 FROM tab1
----
4248

skipif mysql # not compatible
query I rowsort label-257
SELECT DISTINCT - 72 * + MAX ( - col2 ) * 1 FROM tab1
----
4248

onlyif mysql # aggregate syntax: 
query I rowsort label-258
SELECT + MAX( ALL + + 51 ) AS col1 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-258
SELECT + MAX ( ALL + + 51 ) AS col1 FROM tab2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-259
SELECT MIN( 17 ) AS col0 FROM tab2
----
17

skipif mysql # not compatible
query I rowsort label-259
SELECT MIN ( 17 ) AS col0 FROM tab2
----
17

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

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

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

query II rowsort
SELECT - col1 AS col1, - col1 + + - col1 AS col2 FROM tab2 WHERE NOT NULL >= NULL
----

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

query I rowsort
SELECT ALL - col1 * + + 62 AS col2 FROM tab0 AS cor0
----
-1302
-5022
-62

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-266
SELECT ALL + + CAST( NULL AS SIGNED ) AS col2, col2 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-266
SELECT ALL + + CAST ( NULL AS INTEGER ) AS col2, col2 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

query I rowsort
SELECT 74 + col1 + + + col0 AS col0 FROM tab2 AS cor0
----
171
215
216

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col2 < + 94 + + col0
----

query II rowsort
SELECT DISTINCT - + 92, ( + + 79 ) AS col0 FROM tab0 AS cor0
----
-92
79

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

query I rowsort
SELECT + col1 * - col0 * + col0 * - col2 AS col2 FROM tab0
----
1589490
856575
931491

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

query I rowsort
SELECT ALL - 39 + + - col0 FROM tab0
----
-126
-136
-54

onlyif mysql # DIV for integer division: 
query II rowsort label-274
SELECT ALL 17 * - col2 * + + col2 DIV + col2, 88 AS col2 FROM tab2
----
-391
88
-680
88
-986
88

skipif mysql # not compatible
query II rowsort label-274
SELECT ALL 17 * - col2 * + + col2 / + col2, 88 AS col2 FROM tab2
----
-391
88
-680
88
-986
88

query II rowsort
SELECT ALL - col2, - 39 AS col0 FROM tab1
----
-59
-39
-68
-39
-96
-39

onlyif mysql # aggregate syntax: 
query II rowsort label-276
SELECT DISTINCT - COUNT( * ) AS col1, + 90 col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
-9
90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-276
SELECT DISTINCT - COUNT ( * ) AS col1, + 90 col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
-9
90

onlyif mysql # aggregate syntax: 
query I rowsort label-277
SELECT ALL SUM( - + 70 ) AS col0 FROM tab0 WHERE NULL IS NULL
----
-210

skipif mysql # not compatible
query I rowsort label-277
SELECT ALL SUM ( - + 70 ) AS col0 FROM tab0 WHERE NULL IS NULL
----
-210

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN + + 76 + - - 54 / col1 + col0 AND + col1
----

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

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

query I rowsort
SELECT + col2 * - - col1 * + - col1 AS col2 FROM tab2 AS cor0
----
-237160
-260362
-59823

onlyif mysql # DIV for integer division: 
query II rowsort label-282
SELECT DISTINCT 64 col2, - col2 DIV + - 94 AS col1 FROM tab1
----
64
0
64
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-282
SELECT DISTINCT 64 col2, - col2 / + - 94 AS col1 FROM tab1
----
64
0
64
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-283
SELECT 48 * + + 93 AS col0, 88 + COUNT( * ) * - CAST( NULL AS SIGNED ) col2 FROM tab0
----
4464
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-283
SELECT 48 * + + 93 AS col0, 88 + COUNT ( * ) * - CAST ( NULL AS INTEGER ) col2 FROM tab0
----
4464
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-284
SELECT ALL 35 * - + COUNT( * ) AS col1 FROM tab1
----
-105

skipif mysql # not compatible
query I rowsort label-284
SELECT ALL 35 * - + COUNT ( * ) AS col1 FROM tab1
----
-105

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

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

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-289
SELECT DISTINCT col2 / + + 32 AS col0 FROM tab2
----
0
1

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

query I rowsort
SELECT ALL + 0 FROM tab2 AS cor0 WHERE col2 < col2
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-293
SELECT - col2 DIV col2 + - col1 FROM tab0 AS cor0
----
-2
-22
-82

skipif mysql # not compatible
query I rowsort label-293
SELECT - col2 / col2 + - col1 FROM tab0 AS cor0
----
-2
-22
-82

query I rowsort
SELECT - 60 - - 9 * 9 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

query II rowsort
SELECT + col2 * + 51 * + - 98 AS col1, col2 FROM tab2 cor0
----
-114954
23
-199920
40
-289884
58

onlyif mysql # DIV for integer division: 
query I rowsort label-296
SELECT + + 8 DIV - col1 AS col2 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-296
SELECT + + 8 / - col1 AS col2 FROM tab1 AS cor0
----
-1
0
0

onlyif mysql # DIV for integer division: 
query II rowsort label-297
SELECT - 85 DIV - 40, col0 * + + 8 AS col0 FROM tab1 AS cor0
----
2
408
2
680
2
728

skipif mysql # not compatible
query II rowsort label-297
SELECT - 85 / - 40, col0 * + + 8 AS col0 FROM tab1 AS cor0
----
2
408
2
680
2
728

query III rowsort
SELECT * FROM tab0 WHERE 34 IN ( + + col2, 53 * - col0 )
----

query I rowsort
SELECT DISTINCT - col0 + - - col0 AS col1 FROM tab1
----
0

query I rowsort
SELECT ALL + col2 + - - 68 FROM tab1
----
127
136
164

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

query I rowsort
SELECT ALL col0 + + ( - col1 ) + + col2 - + 47 FROM tab0
----
-66
148
29

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

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

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

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

query I rowsort
SELECT DISTINCT + col1 * - col0 - col2 * - col0 FROM tab1
----
1911
4182
4590

query I rowsort
SELECT ALL 66 FROM tab0 WHERE ( - ( + 40 ) ) BETWEEN NULL AND - ( col2 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-309
SELECT DISTINCT ( + ( + COUNT( * ) ) ) FROM tab1 WHERE - col1 <> 29
----
3

skipif mysql # not compatible
query I rowsort label-309
SELECT DISTINCT ( + ( + COUNT ( * ) ) ) FROM tab1 WHERE - col1 <> 29
----
3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-311
SELECT ALL MIN( 78 ) AS col2 FROM tab1
----
78

skipif mysql # not compatible
query I rowsort label-311
SELECT ALL MIN ( 78 ) AS col2 FROM tab1
----
78

query III rowsort
SELECT * FROM tab1 WHERE 51 IN ( col2 * 34 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-314
SELECT + ( + COUNT( * ) ) col0 FROM tab2 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-314
SELECT + ( + COUNT ( * ) ) col0 FROM tab2 WHERE NULL IS NULL
----
3

query I rowsort
SELECT - 33 AS col2 FROM tab0 WHERE NULL IS NULL
----
-33
-33
-33

query I rowsort
SELECT - 20 FROM tab2 WHERE NULL IS NOT NULL
----

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 * - col2 <> + col2 + - col0
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-319
SELECT DISTINCT CAST( col2 AS SIGNED ) DIV col1 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
0
99

skipif mysql # not compatible
query I rowsort label-319
SELECT DISTINCT CAST ( col2 AS INTEGER ) / col1 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
0
99

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

skipif mysql # not compatible
query I rowsort label-320
SELECT DISTINCT 89 - CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT - col2 IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-321
SELECT ALL CAST( - 1 AS SIGNED ) AS col0 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-321
SELECT ALL CAST ( - 1 AS INTEGER ) AS col0 FROM tab2
----
-1
-1
-1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-322
SELECT DISTINCT - MIN( - ( col1 ) ) AS col1 FROM tab2 WHERE NOT + 84 + - col2 * col0 NOT BETWEEN ( + CAST( NULL AS DECIMAL ) ) AND + 42
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-323
SELECT 26 + + COUNT( * ) FROM tab0
----
29

skipif mysql # not compatible
query I rowsort label-323
SELECT 26 + + COUNT ( * ) FROM tab0
----
29

query I rowsort
SELECT col2 FROM tab1 WHERE + col0 / - col0 IS NOT NULL
----
59
68
96

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

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

skipif mysql # not compatible
query I rowsort label-326
SELECT DISTINCT CAST ( 46 AS INTEGER ) * + COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab1
----
141

query III rowsort
SELECT ALL * FROM tab2 WHERE + col0 <= ( NULL )
----

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

query I rowsort
SELECT 76 * 15 AS col2 FROM tab1 AS cor0
----
1140
1140
1140

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 82 - + col2 <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 * - col2 <= - 33
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE col2 - ( 45 + col1 ) / col2 IN ( col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-333
SELECT + CAST( - 11 AS SIGNED ) + COUNT( * ) FROM tab1
----
-8

skipif mysql # not compatible
query I rowsort label-333
SELECT + CAST ( - 11 AS INTEGER ) + COUNT ( * ) FROM tab1
----
-8

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

skipif mysql # not compatible
query I rowsort label-334
SELECT 88 AS col1 FROM tab2 cor0 WHERE CAST ( + CAST ( + col1 AS INTEGER ) AS INTEGER ) IS NULL
----

query I rowsort
SELECT ALL ( 90 ) FROM tab2 AS cor0
----
90
90
90

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-340
SELECT + 43 + col1 DIV col1 FROM tab2 AS cor0
----
44
44
44

skipif mysql # not compatible
query I rowsort label-340
SELECT + 43 + col1 / col1 FROM tab2 AS cor0
----
44
44
44

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 + col0 NOT IN ( ( 84 ) )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-343
SELECT ALL 24 * + COUNT( * ) AS col0 FROM tab0 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-343
SELECT ALL 24 * + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
72

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-346
SELECT + 58 DIV col2 col2 FROM tab0
----
0
1
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-346
SELECT + 58 / col2 col2 FROM tab0
----
0
1
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-347
SELECT ALL + col1 AS col2 FROM tab2 WHERE ( - CAST( NULL AS SIGNED ) / col0 ) IS NULL
----
51
67
77

skipif mysql # not compatible
query I rowsort label-347
SELECT ALL + col1 AS col2 FROM tab2 WHERE ( - CAST ( NULL AS INTEGER ) / col0 ) IS NULL
----
51
67
77

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + col2 ) <> - ( + 4 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 67 - col1 + + col0 * 11 AS col1 FROM tab1
----
1021
614
997

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

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

query I rowsort
SELECT DISTINCT - + 42 - 79 FROM tab0 AS cor0
----
-121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-354
SELECT + col0 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT - col0 <> NULL
----

skipif mysql # not compatible
query I rowsort label-354
SELECT + col0 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT - col0 <> NULL
----

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 27 + - 56 NOT IN ( + 67 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-356
SELECT MAX( - 52 ) * COUNT( * ) + + 90 AS col1 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-356
SELECT MAX ( - 52 ) * COUNT ( * ) + + 90 AS col1 FROM tab1
----
-66

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + col2 + 84 BETWEEN ( NULL ) AND col1 + col0 )
----
46
51
23

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-358
SELECT DISTINCT CAST ( + 24 AS INTEGER ) col2 FROM tab2
----
24

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL > - col2 + - 31 * + col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-360
SELECT ALL COUNT( * ) AS col1, CAST( + 27 AS SIGNED ) FROM tab0
----
3
27

skipif mysql # not compatible
query II rowsort label-360
SELECT ALL COUNT ( * ) AS col1, CAST ( + 27 AS INTEGER ) FROM tab0
----
3
27

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

query I rowsort
SELECT DISTINCT - 92 * - + 83 + - 35 FROM tab0 AS cor0
----
7601

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col1 FROM tab0 AS cor0 WHERE NOT - col2 >= + 52
----
15
87
97

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 <= col1 * ( col0 - - col2 )
----

query I rowsort
SELECT DISTINCT + ( + 44 ) FROM tab2 AS cor0 WHERE NULL BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT + - 73 * - col0 AS col2 FROM tab0 AS cor0
----
1095
6351
7081

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

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

skipif mysql # not compatible
query I rowsort label-368
SELECT ALL - + CAST ( NULL AS INTEGER ) * 56 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-369
SELECT ALL - SUM( DISTINCT - col1 ) AS col2 FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-369
SELECT ALL - SUM ( DISTINCT - col1 ) AS col2 FROM tab0
----
103

query III rowsort
SELECT * FROM tab1 WHERE NOT + - ( + + 95 ) * col2 + 85 * + col2 IS NOT NULL
----

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

query I rowsort
SELECT DISTINCT - col1 + + col1 + col1 * + - 18 FROM tab1
----
-252
-846
-90

query I rowsort
SELECT - 82 + - col0 + - col2 AS col1 FROM tab2 AS cor0
----
-151
-186
-215

query I rowsort
SELECT ALL col0 * - - 66 FROM tab1 AS cor0
----
3366
5610
6006

query I rowsort
SELECT - 86 + + - ( + col0 ) AS col2 FROM tab1 AS cor0
----
-137
-171
-177

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( 33 + col0 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-378
SELECT + COUNT( * ) + + COUNT( * ) FROM tab2 AS cor0 WHERE ( - - 60 * 71 IN ( col2 ) )
----
0

skipif mysql # not compatible
query I rowsort label-378
SELECT + COUNT ( * ) + + COUNT ( * ) FROM tab2 AS cor0 WHERE ( - - 60 * 71 IN ( col2 ) )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-379
SELECT 98 + + - col1 - - 62 DIV + col0 FROM tab0 AS cor0
----
21
77
97

skipif mysql # not compatible
query I rowsort label-379
SELECT 98 + + - col1 - - 62 / + col0 FROM tab0 AS cor0
----
21
77
97

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

query I rowsort
SELECT - col0 + 70 + + - col2 FROM tab1 AS cor0
----
-74
-77
-89

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-383
SELECT ALL + COUNT( * ) - - 44 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-383
SELECT ALL + COUNT ( * ) - - 44 FROM tab1 AS cor0
----
47

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

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

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

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

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

query I rowsort
SELECT ALL + col2 * + + col1 FROM tab2 AS cor0
----
1173
3080
3886

query I rowsort
SELECT + 16 - - 72 FROM tab2 AS cor0
----
88
88
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - 10 col2 FROM tab2 AS cor0
----
36
54
65

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-391
SELECT ALL - + 73 DIV 48 + + CAST( + - col1 AS SIGNED ) * col0 FROM tab0 AS cor0
----
-1216
-1828
-98

skipif mysql # not compatible
query I rowsort label-391
SELECT ALL - + 73 / 48 + + CAST ( + - col1 AS INTEGER ) * col0 FROM tab0 AS cor0
----
-1216
-1828
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-392
SELECT DISTINCT - col2 * CAST( 11 AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE NOT + - col1 IS NULL AND col2 NOT IN ( + col0 )
----
-1089
-110
-517

skipif mysql # not compatible
query I rowsort label-392
SELECT DISTINCT - col2 * CAST ( 11 AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE NOT + - col1 IS NULL AND col2 NOT IN ( + col0 )
----
-1089
-110
-517

query I rowsort
SELECT ALL 48 + + col2 FROM tab2
----
106
71
88

query II rowsort
SELECT ALL - 29 AS col1, + 73 AS col0 FROM tab0
----
-29
73
-29
73
-29
73

query I rowsort
SELECT col0 + col1 - - col0 FROM tab0
----
111
195
195

query I rowsort
SELECT DISTINCT + col0 + - - col0 - + - col1 FROM tab0
----
111
195

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

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

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

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

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

query I rowsort
SELECT 18 * + + col1 AS col2 FROM tab0
----
1458
18
378

query I rowsort
SELECT ALL - ( - col1 ) - - + col0 * - ( + col0 ) * + col1 AS col1 FROM tab2 AS cor0
----
-107865
-315315
-376808

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-403
SELECT + 81, COUNT( ALL + 59 ) DIV 4 AS col2 FROM tab0 AS cor0
----
81
0

skipif mysql # not compatible
query II rowsort label-403
SELECT + 81, COUNT ( ALL + 59 ) / 4 AS col2 FROM tab0 AS cor0
----
81
0

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + col0 >= ( - 4 ) )
----

query I rowsort
SELECT ALL + + 66 * + col1 + - + col0 FROM tab2 AS cor0
----
3320
4347
5018

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-408
SELECT - col1 * 93 DIV + 16 AS col2 FROM tab0 AS cor0
----
-122
-470
-5

skipif mysql # not compatible
query I rowsort label-408
SELECT - col1 * 93 / + 16 AS col2 FROM tab0 AS cor0
----
-122
-470
-5

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-411
SELECT ALL + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE col0 <= - 48
----
0

skipif mysql # not compatible
query I rowsort label-411
SELECT ALL + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE col0 <= - 48
----
0

query I rowsort
SELECT DISTINCT - col2 + + + col1 + + col1 * - - 12 AS col0 FROM tab2 AS cor0
----
640
813
961

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-413
SELECT ALL + 51 * + CAST( + col0 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
4437
4947
765

skipif mysql # not compatible
query I rowsort label-413
SELECT ALL + 51 * + CAST ( + col0 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
4437
4947
765

query I rowsort
SELECT ALL 6 + 21 + - 13 FROM tab1
----
14
14
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-415
SELECT - 61 * CAST( + - col0 AS SIGNED ) col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
5307
5917
915

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

query I rowsort
SELECT ALL - 3 * - 63 + col1 FROM tab1
----
194
203
236

query I rowsort
SELECT DISTINCT + 3 * col1 * col1 AS col1 FROM tab0
----
1323
19683
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + - 45 < NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-419
SELECT - 58, COUNT( * ) - - - 33 AS col0 FROM tab0
----
-58
-30

skipif mysql # not compatible
query II rowsort label-419
SELECT - 58, COUNT ( * ) - - - 33 AS col0 FROM tab0
----
-58
-30

query I rowsort
SELECT DISTINCT + col0 * 33 AS col2 FROM tab1
----
1683
2805
3003

onlyif mysql # aggregate syntax: 
query I rowsort label-421
SELECT DISTINCT + COUNT( * ) * 61 FROM tab2 cor0
----
183

skipif mysql # not compatible
query I rowsort label-421
SELECT DISTINCT + COUNT ( * ) * 61 FROM tab2 cor0
----
183

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

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

query I rowsort
SELECT ALL col2 - - col1 AS col2 FROM tab1 AS cor0 WHERE - ( col2 ) / + - col2 + - col1 * + col2 IS NOT NULL
----
110
115
64

onlyif mysql # DIV for integer division: 
query I rowsort label-425
SELECT ALL - + 39 DIV - col1 FROM tab1 cor0
----
0
2
7

skipif mysql # not compatible
query I rowsort label-425
SELECT ALL - + 39 / - col1 FROM tab1 cor0
----
0
2
7

query I rowsort
SELECT - ( + 78 ) + + 21 AS col1 FROM tab2
----
-57
-57
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-427
SELECT + CAST( NULL AS SIGNED ) * - 44 * - + MAX( ALL + - 84 ) - - COUNT( * ) * + + 41 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-427
SELECT + CAST ( NULL AS INTEGER ) * - 44 * - + MAX ( ALL + - 84 ) - - COUNT ( * ) * + + 41 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-428
SELECT ALL - 98 DIV - + 33 AS col0 FROM tab2
----
2
2
2

skipif mysql # not compatible
query I rowsort label-428
SELECT ALL - 98 / - + 33 AS col0 FROM tab2
----
2
2
2

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-430
SELECT ALL - 55 - + + 53 * + - CAST( NULL AS DECIMAL ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-430
SELECT ALL - 55 - + + 53 * + - CAST ( NULL AS REAL ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-432
SELECT + col0 * + col1 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( + 69 / - CAST( NULL AS SIGNED ) * + col2, CAST( NULL AS SIGNED ) + + col1 + - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-432
SELECT + col0 * + col1 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( + 69 / - CAST ( NULL AS INTEGER ) * + col2, CAST ( NULL AS INTEGER ) + + col1 + - CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 97 * + col0 <= + 31 + + col2 + - ( + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 5 - col2 * - 96 AS col0 FROM tab1 AS cor0
----
5669
6533
9221

query I rowsort
SELECT ALL + col1 - + 9 * col2 AS col2 FROM tab0 cor0
----
-342
-69
-890

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

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

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

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

query I rowsort
SELECT + 95 * - 19 AS col2 FROM tab2 AS cor0
----
-1805
-1805
-1805

query I rowsort
SELECT DISTINCT + col0 * + - col1 + 13 FROM tab0
----
-1202
-1814
-84

query I rowsort
SELECT col2 * - col1 - - - 59 FROM tab1
----
-1403
-3255
-354

query I rowsort
SELECT col1 - + 70 FROM tab2
----
-19
-3
7

query I rowsort
SELECT DISTINCT + col2 + col2 FROM tab2 WHERE NOT - 49 * col1 NOT BETWEEN + col0 AND + + 88 + + 30
----

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

skipif mysql # not compatible
query I rowsort label-444
SELECT COUNT ( * ) / - + 30 AS col1 FROM tab0
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 73 IN ( col2 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + col2 * - 33 / 7 ) <= NULL
----

query I rowsort
SELECT DISTINCT + ( + col2 ) * + col1 * - col2 FROM tab1
----
-129024
-17405
-217328

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

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

skipif mysql # not compatible
query I rowsort label-449
SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT - col0 * + + col1 IS NOT NULL
----
0

query I rowsort
SELECT + 8 FROM tab0 cor0 WHERE NOT col1 * + col0 IS NULL
----
8
8
8

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-452
SELECT DISTINCT - col2 AS col2, 63 DIV col0 DIV - + 18 AS col0 FROM tab1
----
-59
0
-68
0
-96
0

skipif mysql # not compatible
query II rowsort label-452
SELECT DISTINCT - col2 AS col2, 63 / col0 / - + 18 AS col0 FROM tab1
----
-59
0
-68
0
-96
0

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

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

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

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

query I rowsort
SELECT 54 * ( - 80 ) + - col1 + - 28 AS col1 FROM tab1 AS cor0
----
-4353
-4362
-4395

onlyif mysql # DIV for integer division: 
query II rowsort label-457
SELECT DISTINCT + 66 AS col1, + col2 DIV - col0 AS col2 FROM tab2 AS cor0
----
66
0

skipif mysql # not compatible
query II rowsort label-457
SELECT DISTINCT + 66 AS col1, + col2 / - col0 AS col2 FROM tab2 AS cor0
----
66
0

query II rowsort
SELECT + - col1, ( 42 ) * - + col2 AS col2 FROM tab1 AS cor0
----
-14
-4032
-47
-2856
-5
-2478

query II rowsort
SELECT - + ( 99 ), + 60 * col0 * col1 AS col2 FROM tab1 AS cor0
----
-99
25500
-99
256620
-99
42840

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-463
SELECT ALL 50 + + CAST( col0 AS SIGNED ) AS col1 FROM tab2
----
114
125
96

skipif mysql # not compatible
query I rowsort label-463
SELECT ALL 50 + + CAST ( col0 AS INTEGER ) AS col1 FROM tab2
----
114
125
96

query I rowsort
SELECT DISTINCT - ( + col1 ) + - col2 FROM tab2
----
-117
-125
-74

onlyif mysql # aggregate syntax: 
query II rowsort label-465
SELECT - SUM( DISTINCT + col1 ) AS col2, - 8 AS col2 FROM tab2
----
-195
-8

skipif mysql # not compatible
query II rowsort label-465
SELECT - SUM ( DISTINCT + col1 ) AS col2, - 8 AS col2 FROM tab2
----
-195
-8

query I rowsort
SELECT ALL - col1 + + + 62 AS col2 FROM tab2 WHERE NOT ( col2 * - + 60 IS NULL )
----
-15
-5
11

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

query III rowsort
SELECT * FROM tab2 WHERE NULL <= + 94
----

query III rowsort
SELECT * FROM tab1 WHERE + - col1 >= + col1 + - 44
----
51
14
96
85
5
59

query I rowsort
SELECT DISTINCT - 69 - - 36 FROM tab2 AS cor0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-471
SELECT COUNT( * ) - - 84 FROM tab2 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-471
SELECT COUNT ( * ) - - 84 FROM tab2 AS cor0
----
87

query I rowsort
SELECT + + 29 - + col2 AS col1 FROM tab1 AS cor0
----
-30
-39
-67

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-474
SELECT col2 / - CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-474
SELECT col2 / - CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 41 * col0 * - + col2 * + 83 FROM tab0
----
2399115
2960610
32679009

onlyif mysql # aggregate syntax: 
query I rowsort label-476
SELECT + 13 * COUNT( * ) FROM tab2
----
39

skipif mysql # not compatible
query I rowsort label-476
SELECT + 13 * COUNT ( * ) FROM tab2
----
39

query II rowsort
SELECT DISTINCT col0 * - - col0 AS col1, - col1 FROM tab0
----
225
-81
7569
-21
9409
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-478
SELECT ALL + 47 DIV - col2 AS col0, - 98 AS col2 FROM tab2
----
-1
-98
-2
-98
0
-98

skipif mysql # not compatible
query II rowsort label-478
SELECT ALL + 47 / - col2 AS col0, - 98 AS col2 FROM tab2
----
-1
-98
-2
-98
0
-98

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-480
SELECT - 9 AS col0 FROM tab2 AS cor0 WHERE NOT ( - 71 * - col2 * - CAST( NULL AS DECIMAL ) * + 89 * - col0 ) IS NOT NULL
----
-9
-9
-9

skipif mysql # not compatible
query I rowsort label-480
SELECT - 9 AS col0 FROM tab2 AS cor0 WHERE NOT ( - 71 * - col2 * - CAST ( NULL AS REAL ) * + 89 * - col0 ) IS NOT NULL
----
-9
-9
-9

query I rowsort
SELECT DISTINCT + ( - - col1 ) * - col0 FROM tab1 cor0
----
-425
-4277
-714

query I rowsort
SELECT DISTINCT - ( - 56 ) * - + ( - col1 ) AS col0 FROM tab0 AS cor0
----
1176
4536
56

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

onlyif mysql # aggregate syntax: 
query I rowsort label-484
SELECT ALL MIN( 95 ) FROM tab2
----
95

skipif mysql # not compatible
query I rowsort label-484
SELECT ALL MIN ( 95 ) FROM tab2
----
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-485
SELECT DISTINCT - SUM( - 33 ) DIV COUNT( * ) FROM tab1
----
33

skipif mysql # not compatible
query I rowsort label-485
SELECT DISTINCT - SUM ( - 33 ) / COUNT ( * ) FROM tab1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-486
SELECT + SUM( ALL - 17 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-153

skipif mysql # not compatible
query I rowsort label-486
SELECT + SUM ( ALL - 17 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-153

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-487
SELECT - 58 * - - col2 * - - 17 + - CAST( + col1 AS SIGNED ) FROM tab1 AS cor0
----
-58179
-67095
-94670

skipif mysql # not compatible
query I rowsort label-487
SELECT - 58 * - - col2 * - - 17 + - CAST ( + col1 AS INTEGER ) FROM tab1 AS cor0
----
-58179
-67095
-94670

query II rowsort
SELECT - ( col0 ) AS col0, ( ( + 82 ) ) AS col0 FROM tab1 AS cor0 WHERE NOT + col2 + - 46 IS NOT NULL
----

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

query I rowsort
SELECT DISTINCT - 8 + - col0 AS col2 FROM tab2
----
-54
-72
-83

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-493
SELECT ALL + 14 + COUNT( * ) + + 50 AS col0 FROM tab1
----
67

skipif mysql # not compatible
query I rowsort label-493
SELECT ALL + 14 + COUNT ( * ) + + 50 AS col0 FROM tab1
----
67

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-496
SELECT DISTINCT COUNT( * ) FROM tab0 WHERE NULL BETWEEN - col2 AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-496
SELECT DISTINCT COUNT ( * ) FROM tab0 WHERE NULL BETWEEN - col2 AND ( NULL )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-497
SELECT + ( + MAX( DISTINCT - ( 6 ) ) ) DIV - COUNT( * ) + - MIN( ALL col0 ) FROM tab2
----
-44

skipif mysql # not compatible
query I rowsort label-497
SELECT + ( + MAX ( DISTINCT - ( 6 ) ) ) / - COUNT ( * ) + - MIN ( ALL col0 ) FROM tab2
----
-44

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - col2 ) <= ( + + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-499
SELECT ALL - 32 - - + 69 + - col2 + + 34 + + + ( - 79 ) + col2 * - + col0 + + col1 DIV + 63 FROM tab1 AS cor0
----
-5000
-5082
-6264

skipif mysql # not compatible
query I rowsort label-499
SELECT ALL - 32 - - + 69 + - col2 + + 34 + + + ( - 79 ) + col2 * - + col0 + + col1 / + 63 FROM tab1 AS cor0
----
-5000
-5082
-6264

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-500
SELECT DISTINCT - 40 FROM tab0 AS cor0 WHERE NULL IN ( + col1 / - - col1 * + col2 + - - col1 * + col1 * - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-500
SELECT DISTINCT - 40 FROM tab0 AS cor0 WHERE NULL IN ( + col1 / - - col1 * + col2 + - - col1 * + col1 * - CAST ( NULL AS INTEGER ) )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-502
SELECT DISTINCT COUNT( DISTINCT 7 ) AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-502
SELECT DISTINCT COUNT ( DISTINCT 7 ) AS col1 FROM tab0
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-503
SELECT col2 AS col2, + col0 DIV + 66 + - - col0 AS col2 FROM tab0
----
10
88
47
15
99
98

skipif mysql # not compatible
query II rowsort label-503
SELECT col2 AS col2, + col0 / + 66 + - - col0 AS col2 FROM tab0
----
10
88
47
15
99
98

onlyif mysql # aggregate syntax: 
query I rowsort label-504
SELECT ALL + 80 * + + ( - + COUNT( * ) ) FROM tab2
----
-240

skipif mysql # not compatible
query I rowsort label-504
SELECT ALL + 80 * + + ( - + COUNT ( * ) ) FROM tab2
----
-240

query I rowsort
SELECT - 4 * - 74 FROM tab0
----
296
296
296

query I rowsort
SELECT + ( + + 89 ) * col0 * + + 0 * 18 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-507
SELECT ALL AVG ( ALL + - col0 ) col2, - COUNT( * ) + - COUNT( * ) FROM tab1 WHERE NOT NULL = col1 * + - CAST( NULL AS SIGNED )
----
NULL
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-507
SELECT ALL AVG ( ALL + - col0 ) col2, - COUNT ( * ) + - COUNT ( * ) FROM tab1 WHERE NOT NULL = col1 * + - CAST ( NULL AS INTEGER )
----
NULL
0

query I rowsort
SELECT + 71 * - + col0 * - 29 * 6 AS col2 FROM tab1
----
1050090
1124214
630054

onlyif mysql # aggregate syntax: 
query I rowsort label-509
SELECT + ( + + SUM( ALL 0 ) ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-509
SELECT + ( + + SUM ( ALL 0 ) ) FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-510
SELECT ALL - 53 DIV - + col0 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-510
SELECT ALL - 53 / - + col0 FROM tab1
----
0
0
1

query II rowsort
SELECT ALL - col2, col0 FROM tab2 WHERE - col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-512
SELECT DISTINCT - 40 AS col0, - col0 DIV col1 + + 26 AS col1 FROM tab0 cor0
----
-40
-71
-40
22
-40
26

skipif mysql # not compatible
query II rowsort label-512
SELECT DISTINCT - 40 AS col0, - col0 / col1 + + 26 AS col1 FROM tab0 cor0
----
-40
-71
-40
22
-40
26

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

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab1 AS cor0 WHERE 71 / - 65 * - 10 * col0 + col0 IS NOT NULL
----
-14
-47
-5

query II rowsort
SELECT DISTINCT - 25, col2 * + 99 * + 8 * col1 + 53 FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN + col2 AND NULL
----

query I rowsort
SELECT + ( - 32 ) * 47 AS col0 FROM tab0 AS cor0
----
-1504
-1504
-1504

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

query I rowsort
SELECT + col1 * + + 40 - + col2 AS col1 FROM tab0 AS cor0
----
-59
3193
830

query I rowsort
SELECT + col1 + - + 43 FROM tab0
----
-22
-42
38

query I rowsort
SELECT - col0 + 42 AS col1 FROM tab1
----
-43
-49
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-521
SELECT + - CAST( NULL AS SIGNED ) AS col1, MAX( DISTINCT CAST( + 68 AS SIGNED ) ) + + 66 FROM tab2 WHERE + ( + - col1 ) IS NOT NULL
----
NULL
134

skipif mysql # not compatible
query II rowsort label-521
SELECT + - CAST ( NULL AS INTEGER ) AS col1, MAX ( DISTINCT CAST ( + 68 AS INTEGER ) ) + + 66 FROM tab2 WHERE + ( + - col1 ) IS NOT NULL
----
NULL
134

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-522
SELECT - CAST( + ( col0 ) AS SIGNED ) * - 62 FROM tab0 WHERE NULL IS NULL
----
5394
6014
930

skipif mysql # not compatible
query I rowsort label-522
SELECT - CAST ( + ( col0 ) AS INTEGER ) * - 62 FROM tab0 WHERE NULL IS NULL
----
5394
6014
930

query I rowsort
SELECT + col2 + + 15 FROM tab0 AS cor0
----
114
25
62

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

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

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

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

query II rowsort
SELECT + col2, - 25 FROM tab2 AS cor0
----
23
-25
40
-25
58
-25

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

query I rowsort
SELECT - ( + 43 ) AS col1 FROM tab0 AS cor0
----
-43
-43
-43

query II rowsort
SELECT 56 AS col0, 90 FROM tab2 AS cor0
----
56
90
56
90
56
90

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

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT + + ( + - 89 ) IS NOT NULL
----

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

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

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

query I rowsort
SELECT 59 * + + col1 AS col1 FROM tab0 AS cor0
----
1239
4779
59

onlyif mysql # aggregate syntax: 
query I rowsort label-536
SELECT - SUM( + - 35 ) col0 FROM tab2
----
105

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-536
SELECT - SUM ( + - 35 ) col0 FROM tab2
----
105

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

query I rowsort
SELECT - col0 * - 15 + + col1 + ( - col0 ) FROM tab0
----
1239
1359
291

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-539
SELECT + 53 + + - CAST( + 22 AS SIGNED ) AS col0, SUM( ALL - + 22 ) DIV - COUNT( DISTINCT + + col1 ) AS col0 FROM tab2
----
31
22

skipif mysql # not compatible
query II rowsort label-539
SELECT + 53 + + - CAST ( + 22 AS INTEGER ) AS col0, SUM ( ALL - + 22 ) / - COUNT ( DISTINCT + + col1 ) AS col0 FROM tab2
----
31
22

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 NOT IN ( + col2, - col1, - 22 / col2 * - 56, col0, 99 + - + col2 )
----

query I rowsort
SELECT DISTINCT 60 * 96 * + col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
339840
391680
552960

query I rowsort
SELECT ALL - 16 * - + 93 AS col2 FROM tab0 AS cor0
----
1488
1488
1488

query I rowsort
SELECT - - col1 + - 37 * 40 * - + 68 AS col2 FROM tab1 AS cor0
----
100645
100654
100687

onlyif mysql # aggregate syntax: 
query II rowsort label-544
SELECT DISTINCT - SUM( col0 ) * - 22 AS col2, 7 * + 32 AS col0 FROM tab0 cor0
----
4378
224

skipif mysql # not compatible
query II rowsort label-544
SELECT DISTINCT - SUM ( col0 ) * - 22 AS col2, 7 * + 32 AS col0 FROM tab0 cor0
----
4378
224

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 70 * + col1 * - ( + col0 ) = NULL
----

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

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

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

query I rowsort
SELECT ALL 86 * col2 AS col0 FROM tab2 cor0
----
1978
3440
4988

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

onlyif mysql # aggregate syntax: 
query I rowsort label-550
SELECT - + COUNT( col1 ) AS col0 FROM tab0 AS cor0 WHERE col2 * + col0 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-550
SELECT - + COUNT ( col1 ) AS col0 FROM tab0 AS cor0 WHERE col2 * + col0 IS NOT NULL
----
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-551
SELECT DISTINCT + 86 DIV + - ( ( 25 ) ), - 44 AS col0 FROM tab1
----
-3
-44

skipif mysql # not compatible
query II rowsort label-551
SELECT DISTINCT + 86 / + - ( ( 25 ) ), - 44 AS col0 FROM tab1
----
-3
-44

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-552
SELECT + CAST( + - col0 AS SIGNED ) AS col2, col0 * - col2 FROM tab1
----
-51
-4896
-85
-5015
-91
-6188

skipif mysql # not compatible
query II rowsort label-552
SELECT + CAST ( + - col0 AS INTEGER ) AS col2, col0 * - col2 FROM tab1
----
-51
-4896
-85
-5015
-91
-6188

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

query I rowsort
SELECT ALL - 63 - 65 FROM tab0
----
-128
-128
-128

onlyif mysql # DIV for integer division: 
query I rowsort label-555
SELECT + col0 DIV col1 - - - col0 AS col1 FROM tab2
----
-46
-64
-74

skipif mysql # not compatible
query I rowsort label-555
SELECT + col0 / col1 - - - col0 AS col1 FROM tab2
----
-46
-64
-74

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-556
SELECT - + col0 / - 12 + - 28 * + 48 - + CAST( NULL AS SIGNED ) AS col1, - 30 FROM tab2 AS cor0
----
NULL
-30
NULL
-30
NULL
-30

skipif mysql # not compatible
query II rowsort label-556
SELECT - + col0 / - 12 + - 28 * + 48 - + CAST ( NULL AS INTEGER ) AS col1, - 30 FROM tab2 AS cor0
----
NULL
-30
NULL
-30
NULL
-30

query I rowsort
SELECT ALL - - ( - + 9 ) - + - col2 + + 40 * 44 FROM tab0 cor0
----
1761
1798
1850

query II rowsort
SELECT col0 + + - ( + col2 ) - + ( - + col1 ) AS col1, - col1 FROM tab1 cor0
----
-31
-14
31
-5
70
-47

query I rowsort
SELECT col0 * + - 5 FROM tab0
----
-435
-485
-75

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-560
SELECT DISTINCT + MIN ( DISTINCT - col1 ) col2 FROM tab1
----
-47

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

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

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

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

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

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

query I rowsort
SELECT + ( - 45 ) AS col1 FROM tab1
----
-45
-45
-45

query III rowsort
SELECT * FROM tab2 WHERE NOT + 87 * 82 * - col0 <> + + col0
----

query II rowsort
SELECT DISTINCT 66 AS col0, col2 * - col2 AS col0 FROM tab1
----
66
-3481
66
-4624
66
-9216

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

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

query I rowsort
SELECT ALL + col2 * + col0 * - 39 AS col1 FROM tab1 cor0
----
-190944
-195585
-241332

query I rowsort
SELECT 24 * - col2 + + - 93 AS col1 FROM tab0 AS cor0
----
-1221
-2469
-333

query I rowsort
SELECT DISTINCT - 20 + col2 FROM tab1 AS cor0
----
39
48
76

onlyif mysql # aggregate syntax: 
query II rowsort label-573
SELECT ALL + SUM( col0 ) AS col1, 82 AS col2 FROM tab0 WHERE - + col1 IS NOT NULL
----
199
82

skipif mysql # not compatible
query II rowsort label-573
SELECT ALL + SUM ( col0 ) AS col1, 82 AS col2 FROM tab0 WHERE - + col1 IS NOT NULL
----
199
82

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-575
SELECT + MIN( DISTINCT + 30 ) * - MAX( DISTINCT + ( - 7 ) ) AS col2 FROM tab2
----
210

skipif mysql # not compatible
query I rowsort label-575
SELECT + MIN ( DISTINCT + 30 ) * - MAX ( DISTINCT + ( - 7 ) ) AS col2 FROM tab2
----
210

onlyif mysql # aggregate syntax: 
query I rowsort label-576
SELECT - COUNT( * ) - - - MIN( DISTINCT - col0 ) col1 FROM tab0 AS cor0
----
94

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

query I rowsort
SELECT + 83 - + col1 FROM tab1 AS cor0
----
36
69
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-578
SELECT ALL + 60 / - CAST( NULL AS SIGNED ) - - - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-578
SELECT ALL + 60 / - CAST ( NULL AS INTEGER ) - - - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-580
SELECT 23 * - + 26 + + COUNT( + col2 ) FROM tab2
----
-595

skipif mysql # not compatible
query I rowsort label-580
SELECT 23 * - + 26 + + COUNT ( + col2 ) FROM tab2
----
-595

onlyif mysql # aggregate syntax: 
query I rowsort label-581
SELECT SUM( col2 ) + + 9 AS col0 FROM tab1
----
232

skipif mysql # not compatible
query I rowsort label-581
SELECT SUM ( col2 ) + + 9 AS col0 FROM tab1
----
232

query I rowsort
SELECT DISTINCT - ( - + col2 ) AS col2 FROM tab1
----
59
68
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 1 + - - col0 col1 FROM tab1
----
52
86
92

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <= - col0 + 82 * - col0 / - col2
----

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

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

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

query I rowsort
SELECT - + col0 * + + 31 AS col1 FROM tab2 AS cor0
----
-1426
-1984
-2325

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-588
SELECT ALL - COUNT( * ) DIV + 81 FROM tab1 AS cor0
----
0

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

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

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

query I rowsort
SELECT + + 70 * - 9 AS col1 FROM tab2 AS cor0
----
-630
-630
-630

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-592
SELECT SUM( ALL + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-593
SELECT DISTINCT - SUM( DISTINCT + col0 ) + - 95 FROM tab1 cor0 WHERE NOT NULL > + 72 * - + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-593
SELECT DISTINCT - SUM ( DISTINCT + col0 ) + - 95 FROM tab1 cor0 WHERE NOT NULL > + 72 * - + col2
----
NULL

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

query I rowsort
SELECT ALL + + 82 + + 58 AS col1 FROM tab1 AS cor0 WHERE + col0 * - col2 BETWEEN col0 AND - - ( col2 )
----

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

onlyif mysql # aggregate syntax: 
query II rowsort label-597
SELECT 52 AS col0, COUNT( * ) FROM tab0
----
52
3

skipif mysql # not compatible
query II rowsort label-597
SELECT 52 AS col0, COUNT ( * ) FROM tab0
----
52
3

query II rowsort
SELECT 26, 44 AS col2 FROM tab0
----
26
44
26
44
26
44

query I rowsort
SELECT - 93 * 21 FROM tab1
----
-1953
-1953
-1953

query I rowsort
SELECT DISTINCT col0 * - col1 + - 50 AS col0 FROM tab2
----
-2396
-4978
-5075

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

query I rowsort
SELECT ALL - 26 * + + col0 FROM tab0 AS cor0
----
-2262
-2522
-390

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

skipif mysql # not compatible
query I rowsort label-603
SELECT ALL - CAST ( + - col2 AS INTEGER ) FROM tab0 cor0
----
10
47
99

query I rowsort
SELECT - 33 AS col2 FROM tab1 WHERE col2 + - col1 BETWEEN + + 72 AND - 65
----

query I rowsort
SELECT ALL col0 + - + col2 AS col1 FROM tab0
----
-2
-32
77

onlyif mysql # aggregate syntax: 
query I rowsort label-606
SELECT + 89 + - + COUNT( * ) AS col0 FROM tab1 cor0
----
86

skipif mysql # not compatible
query I rowsort label-606
SELECT + 89 + - + COUNT ( * ) AS col0 FROM tab1 cor0
----
86

query I rowsort
SELECT - col2 + col1 + 85 FROM tab2 AS cor0
----
113
122
94

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col2 = ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-609
SELECT ALL MIN( + 8 ) AS col2 FROM tab2 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-609
SELECT ALL MIN ( + 8 ) AS col2 FROM tab2 AS cor0
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-610
SELECT ALL + - CAST( - MIN( DISTINCT col1 ) AS SIGNED ) FROM tab1 cor0
----
5

skipif mysql # not compatible
query I rowsort label-610
SELECT ALL + - CAST ( - MIN ( DISTINCT col1 ) AS INTEGER ) FROM tab1 cor0
----
5

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-612
SELECT MIN( - - 6 ) AS col2 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-612
SELECT MIN ( - - 6 ) AS col2 FROM tab1
----
6

query I rowsort
SELECT ALL 61 * - - col0 + + ( - + ( 9 ) ) AS col2 FROM tab2
----
2797
3895
4566

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-614
SELECT - CAST( NULL AS DECIMAL ) - + col2 * + col1 * + + 56 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-614
SELECT - CAST ( NULL AS REAL ) - + col2 * + col1 * + + 56 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-615
SELECT DISTINCT SUM( DISTINCT - 11 ) AS col1 FROM tab1 WHERE NOT ( col2 * - 65 + - col1 / + - 74 + - 11 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-615
SELECT DISTINCT SUM ( DISTINCT - 11 ) AS col1 FROM tab1 WHERE NOT ( col2 * - 65 + - col1 / + - 74 + - 11 ) IS NOT NULL
----
NULL

query I rowsort
SELECT + col2 - + + col2 * + + col0 AS col1 FROM tab1
----
-4800
-4956
-6120

query I rowsort
SELECT DISTINCT + col1 + + 17 FROM tab0
----
18
38
98

query II rowsort
SELECT 22 - col0 AS col1, - col2 AS col1 FROM tab2
----
-24
-23
-42
-40
-53
-58

onlyif mysql # DIV for integer division: 
query II rowsort label-619
SELECT ALL + - col0 DIV + col1 AS col0, + col0 + + col0 FROM tab2 cor0
----
-1
150
0
128
0
92

skipif mysql # not compatible
query II rowsort label-619
SELECT ALL + - col0 / + col1 AS col0, + col0 + + col0 FROM tab2 cor0
----
-1
150
0
128
0
92

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col0 ) * ( - col2 ) * + + col2 col0 FROM tab0
----
33135
8700
950697

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE + 32 IS NULL
----

query I rowsort
SELECT DISTINCT 62 * 77 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
4774

onlyif mysql # DIV for integer division: 
query I rowsort label-624
SELECT ALL col1 DIV + 47 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-624
SELECT ALL col1 / + 47 FROM tab2
----
1
1
1

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

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

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

query II rowsort
SELECT ALL + 56 AS col2, col1 FROM tab0 AS cor0
----
56
1
56
21
56
81

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL < 77
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 4 + ( + col1 ) col2 FROM tab1
----
18
51
9

onlyif mysql # aggregate syntax: 
query I rowsort label-630
SELECT - COUNT( * ) * 7 AS col2 FROM tab0
----
-21

skipif mysql # not compatible
query I rowsort label-630
SELECT - COUNT ( * ) * 7 AS col2 FROM tab0
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-631
SELECT ALL + 8 * + MAX( - + col2 ) AS col2 FROM tab1
----
-472

skipif mysql # not compatible
query I rowsort label-631
SELECT ALL + 8 * + MAX ( - + col2 ) AS col2 FROM tab1
----
-472

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

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

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

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

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

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

query I rowsort
SELECT col2 + - 88 + + 12 FROM tab2 AS cor0
----
-18
-36
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-637
SELECT DISTINCT - 15 * + 9 * - + 72 * - col1 DIV col1 * + col0 + + 22 AS col0 FROM tab2
----
-447098
-622058
-728978

skipif mysql # not compatible
query I rowsort label-637
SELECT DISTINCT - 15 * + 9 * - + 72 * - col1 / col1 * + col0 + + 22 AS col0 FROM tab2
----
-447098
-622058
-728978

query I rowsort
SELECT DISTINCT + - 41 FROM tab1 WHERE NULL IS NULL
----
-41

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-640
SELECT + 60 FROM tab1 cor0 CROSS JOIN tab2 AS cor1 WHERE NULL >= - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-640
SELECT + 60 FROM tab1 cor0 CROSS JOIN tab2 AS cor1 WHERE NULL >= - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT - col2 - 13 AS col1 FROM tab2 cor0
----
-36
-53
-71

query I rowsort
SELECT ALL col1 - + 49 AS col1 FROM tab1 AS cor0
----
-2
-35
-44

query I rowsort
SELECT - ( - + 82 ) + + col1 * 45 + - col0 * + col0 + + col2 + - 14 + - col0 FROM tab1 AS cor0
----
-1858
-6121
-6958

onlyif mysql # aggregate syntax: 
query I rowsort label-644
SELECT + SUM( + 53 ) + 72 + + - 72 AS col2 FROM tab2 AS cor0
----
159

skipif mysql # not compatible
query I rowsort label-644
SELECT + SUM ( + 53 ) + 72 + + - 72 AS col2 FROM tab2 AS cor0
----
159

onlyif mysql # DIV for integer division: 
query I rowsort label-645
SELECT 14 + + 32 * + - col0 DIV - col0 FROM tab0 AS cor0
----
46
46
46

skipif mysql # not compatible
query I rowsort label-645
SELECT 14 + + 32 * + - col0 / - col0 FROM tab0 AS cor0
----
46
46
46

query I rowsort
SELECT DISTINCT - + col1 * + - 67 * col1 - - 13 AS col2 FROM tab2 AS cor0
----
174280
300776
397256

onlyif mysql # aggregate syntax: 
query I rowsort label-647
SELECT + 27 + + - COUNT( 54 ) AS col2 FROM tab0 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-647
SELECT + 27 + + - COUNT ( 54 ) AS col2 FROM tab0 AS cor0
----
24

query I rowsort
SELECT ALL col1 * - col2 * + - col1 FROM tab2
----
237160
260362
59823

query I rowsort
SELECT DISTINCT - 81 FROM tab0, tab1 AS cor0 WHERE - 45 IS NOT NULL
----
-81

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

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

skipif mysql # not compatible
query I rowsort label-651
SELECT + + ( + CAST ( + col2 AS INTEGER ) ) FROM tab0 AS cor0
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-652
SELECT col2 AS col0, - 84 + col1 + - 90, + CAST( ( col0 ) AS SIGNED ) - - col0 AS col1 FROM tab0 AS cor0
----
9 values hashing to 05d4e336253665e0e52ad91da67e2e19

skipif mysql # not compatible
query III rowsort label-652
SELECT col2 AS col0, - 84 + col1 + - 90, + CAST ( ( col0 ) AS INTEGER ) - - col0 AS col1 FROM tab0 AS cor0
----
9 values hashing to 05d4e336253665e0e52ad91da67e2e19

onlyif mysql # DIV for integer division: 
query I rowsort label-653
SELECT + 21 DIV + 5 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

skipif mysql # not compatible
query I rowsort label-653
SELECT + 21 / + 5 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + 9 col0 FROM tab0
----
135
783
873

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

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

query I rowsort
SELECT DISTINCT + 81 * + col1 FROM tab0 AS cor0
----
1701
6561
81

onlyif mysql # DIV for integer division: 
query I rowsort label-657
SELECT - - 1 DIV - col0 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-657
SELECT - - 1 / - col0 AS col2 FROM tab1 AS cor0
----
0
0
0

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

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

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

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

query I rowsort
SELECT + - 47 + - - col2 AS col1 FROM tab2 AS cor0
----
-24
-7
11

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

onlyif mysql # aggregate syntax: 
query I rowsort label-662
SELECT ALL - 8 * + MAX( + 68 ) + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-541

skipif mysql # not compatible
query I rowsort label-662
SELECT ALL - 8 * + MAX ( + 68 ) + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-541

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

query III rowsort
SELECT ALL * FROM tab0 WHERE 82 IS NULL
----

query I rowsort
SELECT ( + + col0 ) * + + 31 * + ( + col2 ) FROM tab2
----
134850
32798
79360

query I rowsort
SELECT ALL 14 * - + col1 AS col0 FROM tab2
----
-1078
-714
-938

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

skipif mysql # not compatible
query II rowsort label-667
SELECT ALL + COUNT ( * ) AS col0, SUM ( ( - col0 ) ) FROM tab1 AS cor0
----
3
-227

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 13 col1, 35 FROM tab0 AS cor0
----
13
35
13
35
13
35

onlyif mysql # DIV for integer division: 
query I rowsort label-669
SELECT - col0 + col1 DIV + + col1 AS col1 FROM tab0 AS cor0
----
-14
-86
-96

skipif mysql # not compatible
query I rowsort label-669
SELECT - col0 + col1 / + + col1 AS col1 FROM tab0 AS cor0
----
-14
-86
-96

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

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

query I rowsort
SELECT + 32 AS col0 FROM tab1 WHERE - 92 BETWEEN col0 AND + - 32 + + + col2 + 43
----

query I rowsort
SELECT - col0 + 2 + - 72 AS col2 FROM tab0
----
-157
-167
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-673
SELECT COUNT( * ) * 59 AS col0 FROM tab0 WHERE - col2 / + col1 IS NOT NULL
----
177

skipif mysql # not compatible
query I rowsort label-673
SELECT COUNT ( * ) * 59 AS col0 FROM tab0 WHERE - col2 / + col1 IS NOT NULL
----
177

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

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

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE NOT + col1 IS NULL
----
51
67
77

query I rowsort
SELECT - - ( - ( 75 ) ) * - col1 FROM tab2 AS cor0
----
3825
5025
5775

query I rowsort
SELECT - ( - 67 ) * + 79 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT 73 * - - 88 AS col1 FROM tab2
----
6424
6424
6424

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

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

query I rowsort
SELECT - 99 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-99
-99
-99

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

query II rowsort
SELECT ALL col1, ( - + 92 ) * + 41 - 60 * - - col0 AS col0 FROM tab2 cor0
----
51
-6532
67
-8272
77
-7612

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

query II rowsort
SELECT ALL + 12, + col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + 40 * + + col2 AS col2 FROM tab0 AS cor0
----
1880
3960
400

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-692
SELECT MIN( ALL + col2 ) * 48 AS col2 FROM tab0
----
480

skipif mysql # not compatible
query I rowsort label-692
SELECT MIN ( ALL + col2 ) * 48 AS col2 FROM tab0
----
480

query II rowsort
SELECT - ( + 6 ) + ( - 31 ) + + 4 AS col2, col2 FROM tab1
----
-33
59
-33
68
-33
96

query I rowsort
SELECT + col0 * + col0 + 76 - col1 * - - col0 * + - col0 AS col1 FROM tab0
----
166594
18526
18894

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-695
SELECT DISTINCT COUNT( * ) + - CAST( NULL AS DECIMAL ) - - COUNT( * ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-695
SELECT DISTINCT COUNT ( * ) + - CAST ( NULL AS REAL ) - - COUNT ( * ) AS col1 FROM tab2
----
NULL

query I rowsort
SELECT + 88 - + col0 * + col2 FROM tab0 WHERE NULL <= NULL
----

query I rowsort
SELECT DISTINCT - + col1 FROM tab1 WHERE + col0 > NULL
----

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

skipif mysql # not compatible
query I rowsort label-698
SELECT ALL COUNT ( * ) / + 98 AS col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT + col0 + col2 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
196
62
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-700
SELECT DISTINCT 21 * - CAST( NULL AS SIGNED ) AS col1, - 44 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL
-44

skipif mysql # not compatible
query II rowsort label-700
SELECT DISTINCT 21 * - CAST ( NULL AS INTEGER ) AS col1, - 44 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL
-44

query I rowsort
SELECT - col2 - - - col1 AS col1 FROM tab1
----
-110
-115
-64

query I rowsort
SELECT DISTINCT 90 - col2 AS col2 FROM tab0 AS cor0
----
-9
43
80

query II rowsort
SELECT DISTINCT + 4, col1 * + + col1 AS col2 FROM tab2 AS cor0
----
4
2601
4
4489
4
5929

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

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

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

query I rowsort
SELECT DISTINCT col1 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col1 AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-707
SELECT + + 93 * COUNT( * ) AS col0 FROM tab1 cor0
----
279

skipif mysql # not compatible
query I rowsort label-707
SELECT + + 93 * COUNT ( * ) AS col0 FROM tab1 cor0
----
279

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-709
SELECT ALL + - MIN( - col2 ) + - 12 FROM tab1 WHERE NOT + col0 + + - 24 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-709
SELECT ALL + - MIN ( - col2 ) + - 12 FROM tab1 WHERE NOT + col0 + + - 24 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-710
SELECT ALL + SUM( ( + col1 ) ) FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-710
SELECT ALL + SUM ( ( + col1 ) ) FROM tab1
----
66

onlyif mysql # DIV for integer division: 
query II rowsort label-711
SELECT col0 DIV col1 AS col2, 72 FROM tab1
----
1
72
17
72
3
72

skipif mysql # not compatible
query II rowsort label-711
SELECT col0 / col1 AS col2, 72 FROM tab1
----
1
72
17
72
3
72

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

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

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

query I rowsort
SELECT ALL + - 29 FROM tab2 cor0
----
-29
-29
-29

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

query I rowsort
SELECT ALL 84 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8

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

skipif mysql # not compatible
query I rowsort label-717
SELECT ALL ( + + COUNT ( * ) ) AS col2 FROM tab0, tab2 AS cor0
----
9

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

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

query I rowsort
SELECT col1 + + + 12 FROM tab2 AS cor0
----
63
79
89

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

query II rowsort
SELECT ALL col1, 16 * - 36 AS col0 FROM tab0 cor0
----
1
-576
21
-576
81
-576

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-723
SELECT DISTINCT + 37 AS col0 FROM tab1 WHERE - + CAST( NULL AS DECIMAL ) * col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-723
SELECT DISTINCT + 37 AS col0 FROM tab1 WHERE - + CAST ( NULL AS REAL ) * col2 IS NOT NULL
----

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

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

query I rowsort
SELECT ALL 21 + col0 FROM tab1
----
106
112
72

query I rowsort
SELECT ALL col2 + + 2 AS col2 FROM tab0
----
101
12
49

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

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

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

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

query I rowsort
SELECT ALL + col2 * - 83 FROM tab2
----
-1909
-3320
-4814

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col2 - col1 IS NULL AND NOT NULL IS NOT NULL
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0, + col0 col1 FROM tab0 AS cor0
----
15
15
87
87
97
97

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-734
SELECT col2 AS col2 FROM tab2 WHERE + - CAST( - col2 AS SIGNED ) > col2
----

skipif mysql # not compatible
query I rowsort label-734
SELECT col2 AS col2 FROM tab2 WHERE + - CAST ( - col2 AS INTEGER ) > col2
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-736
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 7 BETWEEN ( 82 ) + + + CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-736
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 7 BETWEEN ( 82 ) + + + CAST ( NULL AS INTEGER ) AND NULL
----

query I rowsort
SELECT ALL + - col1 AS col0 FROM tab2 AS cor0 WHERE col1 + - 75 IS NULL
----

query II rowsort
SELECT - col1 AS col2, + ( + - 40 ) FROM tab0
----
-1
-40
-21
-40
-81
-40

query I rowsort
SELECT - col0 * - 40 AS col1 FROM tab2
----
1840
2560
3000

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-740
SELECT DISTINCT - + CAST( NULL AS SIGNED ) + - CAST( NULL AS SIGNED ) + + - 26 FROM tab0 WHERE NOT ( NOT NULL < col0 * - col2 / - col0 )
----

skipif mysql # not compatible
query I rowsort label-740
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) + - CAST ( NULL AS INTEGER ) + + - 26 FROM tab0 WHERE NOT ( NOT NULL < col0 * - col2 / - col0 )
----

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

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-747
SELECT 64 + + - 39 * + + 85 col2, + col0 DIV - - col2 FROM tab0 AS cor0
----
-3251
0
-3251
0
-3251
8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-747
SELECT 64 + + - 39 * + + 85 col2, + col0 / - - col2 FROM tab0 AS cor0
----
-3251
0
-3251
0
-3251
8

query I rowsort
SELECT DISTINCT 59 * - 25 FROM tab2
----
-1475

query I rowsort
SELECT col2 + 60 FROM tab0 WHERE NOT + 67 NOT IN ( + 73 )
----

query I rowsort
SELECT ALL - 0 * 89 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-751
SELECT CAST( - MAX( - col0 ) AS SIGNED ) AS col2 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-751
SELECT CAST ( - MAX ( - col0 ) AS INTEGER ) AS col2 FROM tab1
----
51

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-754
SELECT + ( col2 ) * 6 + + col1 DIV + 65 FROM tab0
----
283
594
60

skipif mysql # not compatible
query I rowsort label-754
SELECT + ( col2 ) * 6 + + col1 / + 65 FROM tab0
----
283
594
60

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-759
SELECT col1 DIV - 98 FROM tab1 WHERE ( col2 * - col1 ) IS NOT NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-759
SELECT col1 / - 98 FROM tab1 WHERE ( col2 * - col1 ) IS NOT NULL
----
0
0
0

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

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

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

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

query I rowsort
SELECT - 56 * col0 + col1 AS col0 FROM tab0
----
-4851
-5431
-759

onlyif mysql # aggregate syntax: 
query I rowsort label-763
SELECT DISTINCT - 97 + COUNT( * ) col1 FROM tab1
----
-94

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-763
SELECT DISTINCT - 97 + COUNT ( * ) col1 FROM tab1
----
-94

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-765
SELECT ALL - col0 + CAST( - CAST( col1 AS SIGNED ) - 43 AS SIGNED ) FROM tab1
----
-108
-133
-181

skipif mysql # not compatible
query I rowsort label-765
SELECT ALL - col0 + CAST ( - CAST ( col1 AS INTEGER ) - 43 AS INTEGER ) FROM tab1
----
-108
-133
-181

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-767
SELECT 6 + COUNT( * ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-767
SELECT 6 + COUNT ( * ) FROM tab0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-768
SELECT COUNT( * ) * 9 AS col0 FROM tab1
----
27

skipif mysql # not compatible
query I rowsort label-768
SELECT COUNT ( * ) * 9 AS col0 FROM tab1
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-769
SELECT ALL MAX( - ( 52 ) ) + ( + CAST( - MIN( ALL ( col2 ) ) AS SIGNED ) ) * 1 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-769
SELECT ALL MAX ( - ( 52 ) ) + ( + CAST ( - MIN ( ALL ( col2 ) ) AS INTEGER ) ) * 1 FROM tab2
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-770
SELECT COUNT( col2 ) * 86 FROM tab1
----
258

skipif mysql # not compatible
query I rowsort label-770
SELECT COUNT ( col2 ) * 86 FROM tab1
----
258

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-771
SELECT 55 + + SUM( ALL + 47 + 1 ) DIV ( - MAX( ALL 41 ) * 91 ) FROM tab1
----
55

skipif mysql # not compatible
query I rowsort label-771
SELECT 55 + + SUM ( ALL + 47 + 1 ) / ( - MAX ( ALL 41 ) * 91 ) FROM tab1
----
55

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - 68 ) >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * 52 + - 91 col2 FROM tab0 WHERE NOT NULL <= col1 - + 87
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-775
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - 59 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-775
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - 59 AS col2 FROM tab1
----
NULL

query I rowsort
SELECT - col2 + + col2 * + 97 FROM tab2
----
2208
3840
5568

query I rowsort
SELECT DISTINCT + 54 * col2 - col0 AS col2 FROM tab2 AS cor0
----
1196
2096
3057

query I rowsort
SELECT col2 AS col1 FROM tab1 AS cor0 WHERE ( - col0 ) IS NOT NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-779
SELECT ALL 29 * - 88 - + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-2555

skipif mysql # not compatible
query I rowsort label-779
SELECT ALL 29 * - 88 - + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-2555

query I rowsort
SELECT DISTINCT 51 - - col0 FROM tab2 AS cor0
----
115
126
97

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 76 * - col0 col2 FROM tab0
----
-1140
-6612
-7372

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-783
SELECT ALL - MAX ( DISTINCT - col2 ) col0 FROM tab0 AS cor0
----
10

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

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

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

query I rowsort
SELECT DISTINCT + 42 * + col0 AS col0 FROM tab1 AS cor0
----
2142
3570
3822

query I rowsort
SELECT + 39 * col2 AS col2 FROM tab2 AS cor0
----
1560
2262
897

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-789
SELECT DISTINCT - + ( - MIN( 71 ) ) AS col1 FROM tab1 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-789
SELECT DISTINCT - + ( - MIN ( 71 ) ) AS col1 FROM tab1 AS cor0
----
71

query I rowsort
SELECT - col0 FROM tab0 cor0 WHERE NOT 56 + ( - 51 ) <= + col2 + + 40 / - 6
----
-87

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 BETWEEN col1 AND 70
----
85
5
59
91
47
68

query I rowsort
SELECT DISTINCT + - 60 * col0 FROM tab0 cor0
----
-5220
-5820
-900

onlyif mysql # aggregate syntax: 
query I rowsort label-793
SELECT COUNT( + 56 ) FROM tab1 WHERE NOT + col1 NOT BETWEEN ( col2 ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-793
SELECT COUNT ( + 56 ) FROM tab1 WHERE NOT + col1 NOT BETWEEN ( col2 ) AND NULL
----
0

query I rowsort
SELECT DISTINCT 76 * col0 FROM tab2
----
3496
4864
5700

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-795
SELECT ALL + CAST( 93 AS SIGNED ) * + col2 - - col0 AS col1 FROM tab1 WHERE NOT col1 < ( NULL )
----

skipif mysql # not compatible
query I rowsort label-795
SELECT ALL + CAST ( 93 AS INTEGER ) * + col2 - - col0 AS col1 FROM tab1 WHERE NOT col1 < ( NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL >= ( + ( - ( 8 ) ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - col1 * - col2 col2 FROM tab2
----
237160
260362
59823

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 36 * - col1 col2 FROM tab1 WHERE NOT NULL BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT - ( 95 ) FROM tab0
----
-95
-95
-95

query I rowsort
SELECT + ( col2 ) * + col2 FROM tab1
----
3481
4624
9216

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-804
SELECT ALL - col0 AS col1 FROM tab2 WHERE NOT - ( CAST( + 67 AS SIGNED ) ) + - 59 * col0 = NULL
----

skipif mysql # not compatible
query I rowsort label-804
SELECT ALL - col0 AS col1 FROM tab2 WHERE NOT - ( CAST ( + 67 AS INTEGER ) ) + - 59 * col0 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-805
SELECT ALL - MIN( 38 ) col2 FROM tab1
----
-38

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

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

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

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

skipif mysql # not compatible
query I rowsort label-807
SELECT + + 67 / - col0 FROM tab1 AS cor0
----
-1
0
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-809
SELECT - ( - 45 ) DIV col1 FROM tab1 AS cor0
----
0
3
9

skipif mysql # not compatible
query I rowsort label-809
SELECT - ( - 45 ) / col1 FROM tab1 AS cor0
----
0
3
9

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

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE 30 - - 54 IS NOT NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 55 col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

onlyif mysql # DIV for integer division: 
query I rowsort label-813
SELECT 18 * - 5 + - col2 DIV + 14 FROM tab2
----
-91
-92
-94

skipif mysql # not compatible
query I rowsort label-813
SELECT 18 * - 5 + - col2 / + 14 FROM tab2
----
-91
-92
-94

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-814
SELECT + col1 DIV + + 39 + - CAST( 55 AS SIGNED ) + col2 FROM tab1
----
14
4
41

skipif mysql # not compatible
query I rowsort label-814
SELECT + col1 / + + 39 + - CAST ( 55 AS INTEGER ) + col2 FROM tab1
----
14
4
41

query I rowsort
SELECT ALL - col1 + 44 * - col1 FROM tab1
----
-2115
-225
-630

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-817
SELECT + 58 + + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-817
SELECT + 58 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + 17 * - col1 + - 63 - 1 * + 84 AS col2 FROM tab0 AS cor0
----
-1524
-164
-504

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

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

query I rowsort
SELECT col2 * - - col1 + + col1 * - 72 AS col0 FROM tab1 AS cor0
----
-188
-65
336

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-821
SELECT COUNT( * ) * - 36 AS col2 FROM tab2 AS cor0 WHERE NULL = - 97 * + CAST( NULL AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-821
SELECT COUNT ( * ) * - 36 AS col2 FROM tab2 AS cor0 WHERE NULL = - 97 * + CAST ( NULL AS INTEGER )
----
0

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

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

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

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

query II rowsort
SELECT DISTINCT + col0 AS col1, col2 + + col0 FROM tab0 AS cor0
----
15
62
87
97
97
196

query II rowsort
SELECT + col2 AS col2, col2 * - col0 AS col2 FROM tab1 AS cor0
----
59
-5015
68
-6188
96
-4896

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-827
SELECT + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE 22 > NULL
----

skipif mysql # not compatible
query I rowsort label-827
SELECT + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE 22 > NULL
----

query I rowsort
SELECT DISTINCT 97 + + - col2 FROM tab1 AS cor0
----
1
29
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - 89 * + ( + + col2 ) * + col0 col2 FROM tab0
----
-1626030
-5082345
-854667

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-830
SELECT COUNT( * ) DIV + ( 24 ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-830
SELECT COUNT ( * ) / + ( 24 ) AS col0 FROM tab1
----
0

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) <= + 72
----

query I rowsort
SELECT - col1 * - col0 - col2 AS col1 FROM tab2
----
2323
4888
4967

query I rowsort
SELECT DISTINCT col2 + + 33 AS col0 FROM tab1
----
101
129
92

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-836
SELECT - col0 DIV 5 AS col0 FROM tab1
----
-10
-17
-18

skipif mysql # not compatible
query I rowsort label-836
SELECT - col0 / 5 AS col0 FROM tab1
----
-10
-17
-18

query I rowsort
SELECT ALL col0 * + - 17 FROM tab1
----
-1445
-1547
-867

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

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

query II rowsort
SELECT ( - 34 ) * col0 AS col2, col2 FROM tab0
----
-2958
10
-3298
99
-510
47

onlyif mysql # aggregate syntax: 
query I rowsort label-840
SELECT - + COUNT( * ) FROM tab1 AS cor0 WHERE NOT + col1 = + + col1
----
0

skipif mysql # not compatible
query I rowsort label-840
SELECT - + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT + col1 = + + col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-841
SELECT ALL 74 AS col2, - SUM( ALL + col0 ) * 52 AS col0 FROM tab2 AS cor0
----
74
-9620

skipif mysql # not compatible
query II rowsort label-841
SELECT ALL 74 AS col2, - SUM ( ALL + col0 ) * 52 AS col0 FROM tab2 AS cor0
----
74
-9620

query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE NOT 30 + col2 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-843
SELECT ALL + COUNT( DISTINCT - 91 ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-843
SELECT ALL + COUNT ( DISTINCT - 91 ) FROM tab2 AS cor0
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-845
SELECT ALL 13 * + + ( COUNT( * ) ) FROM tab1 cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-845
SELECT ALL 13 * + + ( COUNT ( * ) ) FROM tab1 cor0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-846
SELECT ALL + + MIN( DISTINCT + + col2 ) / + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-846
SELECT ALL + + MIN ( DISTINCT + + col2 ) / + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-848
SELECT COUNT( * ) * + + SUM( DISTINCT + + col1 ) AS col2 FROM tab2
----
585

skipif mysql # not compatible
query I rowsort label-848
SELECT COUNT ( * ) * + + SUM ( DISTINCT + + col1 ) AS col2 FROM tab2
----
585

onlyif mysql # DIV for integer division: 
query I rowsort label-849
SELECT ALL + 77 DIV - col0 AS col1 FROM tab0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-849
SELECT ALL + 77 / - col0 AS col1 FROM tab0
----
-5
0
0

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 22 NOT IN ( ( + 70 ) )
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-853
SELECT ALL 81 * + col2 + CAST( col1 AS SIGNED ) AS col0, + 21 AS col2 FROM tab1 AS cor0
----
4784
21
5555
21
7790
21

skipif mysql # not compatible
query II rowsort label-853
SELECT ALL 81 * + col2 + CAST ( col1 AS INTEGER ) AS col0, + 21 AS col2 FROM tab1 AS cor0
----
4784
21
5555
21
7790
21

query I rowsort
SELECT - col1 FROM tab1 AS cor0 WHERE col2 NOT BETWEEN ( + 33 * - + col2 + col0 ) AND + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * col2 col0 FROM tab1 WHERE - - col1 NOT BETWEEN col0 AND + col1
----
-1344
-295
-3196

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

skipif mysql # not compatible
query I rowsort label-856
SELECT - CAST ( NULL AS INTEGER ) - - - ( - 15 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 4 * - - 97 - + col2 + ( - col2 ) * + 67 * - - col2 AS col0 FROM tab2 AS cor0
----
-106852
-225058
-35078

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

onlyif mysql # DIV for integer division: 
query I rowsort label-859
SELECT DISTINCT + col2 DIV 86 AS col2 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-859
SELECT DISTINCT + col2 / 86 AS col2 FROM tab1 AS cor0
----
0
1

query I rowsort
SELECT ALL - - 14 AS col2 FROM tab1 AS cor0
----
14
14
14

query I rowsort
SELECT + 97 + - col0 FROM tab0 AS cor0
----
0
10
82

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-864
SELECT DISTINCT - col1 DIV col0 + - 97 FROM tab1
----
-97

skipif mysql # not compatible
query I rowsort label-864
SELECT DISTINCT - col1 / col0 + - 97 FROM tab1
----
-97

query I rowsort
SELECT DISTINCT 22 - 78 AS col0 FROM tab2 WHERE NOT ( NULL ) <> + col2
----

query I rowsort
SELECT - + 32 * + - col1 FROM tab2 AS cor0
----
1632
2144
2464

query I rowsort
SELECT DISTINCT ( - 17 ) AS col1 FROM tab2, tab0 AS cor0
----
-17

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

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

query II rowsort
SELECT - - 27 * + col0 AS col1, + 90 FROM tab2 cor0
----
1242
90
1728
90
2025
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * 59 col0 FROM tab1 AS cor0
----
-3009
-5015
-5369

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-872
SELECT + col1 DIV - + col1 AS col2, col1 FROM tab0 AS cor0
----
-1
1
-1
21
-1
81

skipif mysql # not compatible
query II rowsort label-872
SELECT + col1 / - + col1 AS col2, col1 FROM tab0 AS cor0
----
-1
1
-1
21
-1
81

query I rowsort
SELECT + col1 * + + col0 AS col1 FROM tab2 AS cor0
----
2346
4928
5025

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-877
SELECT ALL - 67 DIV + COUNT( * ) AS col2 FROM tab1
----
-22

skipif mysql # not compatible
query I rowsort label-877
SELECT ALL - 67 / + COUNT ( * ) AS col2 FROM tab1
----
-22

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

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

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

query II rowsort
SELECT col1 AS col0, + col1 + + col1 AS col2 FROM tab1
----
14
28
47
94
5
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 89 ) col1 FROM tab2
----
89
89
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - col1, 40 * - 97 col1 FROM tab1 AS cor0
----
14
-3880
47
-3880
5
-3880

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + col1 * + ( 92 ) col0, col0 AS col1 FROM tab1 AS cor0
----
-1288
51
-4324
91
-460
85

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 < ( - col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-885
SELECT - MAX( ALL + CAST( - col2 AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-885
SELECT - MAX ( ALL + CAST ( - col2 AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
23

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

onlyif mysql # DIV for integer division: 
query I rowsort label-887
SELECT DISTINCT 75 DIV 42 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-887
SELECT DISTINCT 75 / 42 FROM tab0 AS cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-888
SELECT ALL - + 90 AS col1, 7 * col0 * + + 93 - - CAST( + + col2 AS SIGNED ) DIV + 21 + - 76 AS col0 FROM tab1 cor0
----
-90
33129
-90
55261
-90
59168

skipif mysql # not compatible
query II rowsort label-888
SELECT ALL - + 90 AS col1, 7 * col0 * + + 93 - - CAST ( + + col2 AS INTEGER ) / + 21 + - 76 AS col0 FROM tab1 cor0
----
-90
33129
-90
55261
-90
59168

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-889
SELECT DISTINCT + col0 + col0 + CAST( NULL AS DECIMAL ) + - - col2 FROM tab0 WHERE NOT + col2 NOT IN ( 49 - + col1, col1 )
----

skipif mysql # not compatible
query I rowsort label-889
SELECT DISTINCT + col0 + col0 + CAST ( NULL AS REAL ) + - - col2 FROM tab0 WHERE NOT + col2 NOT IN ( 49 - + col1, col1 )
----

query II rowsort
SELECT ALL col0 * - ( + col1 ), + col0 FROM tab2
----
-2346
46
-4928
64
-5025
75

onlyif mysql # aggregate syntax: 
query I rowsort label-891
SELECT - COUNT( * ) * + 28 - + COUNT( * ) - + 51 + COUNT( * ) + - + COUNT( * ) * COUNT( * ) AS col2 FROM tab0 WHERE NOT NULL >= NULL
----
-51

skipif mysql # not compatible
query I rowsort label-891
SELECT - COUNT ( * ) * + 28 - + COUNT ( * ) - + 51 + COUNT ( * ) + - + COUNT ( * ) * COUNT ( * ) AS col2 FROM tab0 WHERE NOT NULL >= NULL
----
-51

query II rowsort
SELECT + + col2 AS col1, col0 FROM tab2 WHERE NOT + col1 - - col0 >= col1 * col1
----
23
46
40
64
58
75

query II rowsort
SELECT ALL ( 24 ), col2 FROM tab0 AS cor0
----
24
10
24
47
24
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-894
SELECT CAST( + CAST( - 51 AS SIGNED ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-51
-51
-51

skipif mysql # not compatible
query I rowsort label-894
SELECT CAST ( + CAST ( - 51 AS INTEGER ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-51
-51
-51

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN ( - 2 ) AND NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT - 8 < ( NULL ) )
----

query I rowsort
SELECT - ( + + 52 ) AS col0 FROM tab2 AS cor0
----
-52
-52
-52

query I rowsort
SELECT DISTINCT + - 20 * col1 FROM tab2 AS cor0
----
-1020
-1340
-1540

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

query I rowsort
SELECT DISTINCT + col0 + + + 92 + - 75 AS col0 FROM tab2
----
63
81
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-901
SELECT ALL - COUNT( * ) * - COUNT( * ) DIV - + COUNT( * ) - + + MIN( + - col0 ) * MIN( - col1 ) FROM tab2 WHERE NULL IS NULL
----
-5778

skipif mysql # not compatible
query I rowsort label-901
SELECT ALL - COUNT ( * ) * - COUNT ( * ) / - + COUNT ( * ) - + + MIN ( + - col0 ) * MIN ( - col1 ) FROM tab2 WHERE NULL IS NULL
----
-5778

onlyif mysql # aggregate syntax: 
query II rowsort label-902
SELECT - ( + - SUM( ALL - ( + col0 ) ) ), 2 AS col0 FROM tab2
----
-185
2

skipif mysql # not compatible
query II rowsort label-902
SELECT - ( + - SUM ( ALL - ( + col0 ) ) ), 2 AS col0 FROM tab2
----
-185
2

query III rowsort
SELECT * FROM tab2 WHERE + ( + 6 ) <= NULL
----

query I rowsort
SELECT 70 + + 53 FROM tab0
----
123
123
123

query I rowsort
SELECT DISTINCT - col2 + + 0 FROM tab1
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-906
SELECT ALL + COUNT( * ) * COUNT( * ) + + COUNT( * ) AS col1 FROM tab0
----
12

skipif mysql # not compatible
query I rowsort label-906
SELECT ALL + COUNT ( * ) * COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab0
----
12

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + 11 ) + - col0 col1 FROM tab0
----
-4
-76
-86

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

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

query I rowsort
SELECT DISTINCT - + col2 + - 40 AS col2 FROM tab2 AS cor0
----
-63
-80
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-911
SELECT - MIN( ALL + col0 ) * + 42 AS col1 FROM tab0 AS cor0
----
-630

skipif mysql # not compatible
query I rowsort label-911
SELECT - MIN ( ALL + col0 ) * + 42 AS col1 FROM tab0 AS cor0
----
-630

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-912
SELECT DISTINCT - - CAST( NULL AS SIGNED ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-912
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
NULL

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

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

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

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

query I rowsort
SELECT - + ( + + col1 ) FROM tab2 WHERE NOT NULL <> + col2
----

query I rowsort
SELECT ALL + 99 * - + 31 FROM tab0
----
-3069
-3069
-3069

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + + col2 + + + 2 BETWEEN ( col1 - ( 46 ) + + 51 + + 41 ) AND - col2 * + col0 / + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 9 + + + col1 col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
42
58
68

query III rowsort
SELECT ALL * FROM tab2 WHERE - 97 NOT BETWEEN - - 60 * + - col0 * - col0 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col2 FROM tab2 WHERE NOT NULL BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 - + 28 > NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-922
SELECT ALL + COUNT( * ) AS col2, + 34 col0 FROM tab1
----
3
34

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-922
SELECT ALL + COUNT ( * ) AS col2, + 34 col0 FROM tab1
----
3
34

onlyif mysql # aggregate syntax: 
query I rowsort label-923
SELECT DISTINCT - MIN( DISTINCT + - col2 ) * 22 FROM tab1
----
2112

skipif mysql # not compatible
query I rowsort label-923
SELECT DISTINCT - MIN ( DISTINCT + - col2 ) * 22 FROM tab1
----
2112

query I rowsort
SELECT + col1 * - + col0 * + - 89 FROM tab0
----
108135
162603
8633

query I rowsort
SELECT ALL col0 * col1 * - - 29 AS col1 FROM tab1 AS cor0
----
12325
124033
20706

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-926
SELECT + + col2, 78 + CAST( col1 AS SIGNED ) - + ( + + 69 ) * + 51 - 2 FROM tab2 AS cor0
----
23
-3392
40
-3366
58
-3376

skipif mysql # not compatible
query II rowsort label-926
SELECT + + col2, 78 + CAST ( col1 AS INTEGER ) - + ( + + 69 ) * + 51 - 2 FROM tab2 AS cor0
----
23
-3392
40
-3366
58
-3376

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

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

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

query I rowsort
SELECT col1 * - + 71 * + + col2 AS col1 FROM tab2 AS cor0
----
-218680
-275906
-83283

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-931
SELECT 55 * + MIN( col0 ) DIV + + COUNT( * ) + - + 82 AS col0 FROM tab1
----
853

skipif mysql # not compatible
query I rowsort label-931
SELECT 55 * + MIN ( col0 ) / + + COUNT ( * ) + - + 82 AS col0 FROM tab1
----
853

query I rowsort
SELECT col0 + - 77 AS col1 FROM tab0 AS cor0
----
-62
10
20

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

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

query I rowsort
SELECT ( + col2 ) + - + 5 AS col2 FROM tab0 cor0
----
42
5
94

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL <> 38 - - 76
----

query I rowsort
SELECT DISTINCT + 66 + - col2 * + 68 FROM tab0
----
-3130
-614
-6666

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 69 col2 FROM tab0 WHERE + + ( - + col1 ) < + col1
----
-69
-69
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-940
SELECT MIN( ALL - 42 ) FROM tab2
----
-42

skipif mysql # not compatible
query I rowsort label-940
SELECT MIN ( ALL - 42 ) FROM tab2
----
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-941
SELECT ALL col1 DIV - + col0 + 77 FROM tab2
----
76
76
77

skipif mysql # not compatible
query I rowsort label-941
SELECT ALL col1 / - + col0 + 77 FROM tab2
----
76
76
77

query II rowsort
SELECT col1, - col1 + + 63 + + 69 * + col0 FROM tab0
----
1
6755
21
6045
81
1017

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-943
SELECT CAST( NULL AS SIGNED ) AS col0, + COUNT( * ) FROM tab0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-943
SELECT CAST ( NULL AS INTEGER ) AS col0, + COUNT ( * ) FROM tab0
----
NULL
3

query I rowsort
SELECT ALL 91 + col1 + + col0 + col0 AS col0 FROM tab1
----
207
266
320

query I rowsort
SELECT DISTINCT col0 + 75 FROM tab0
----
162
172
90

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

onlyif mysql # DIV for integer division: 
query II rowsort label-947
SELECT - - col0 DIV + col1 + col2 - col2, 58 AS col0 FROM tab1 AS cor0
----
1
58
17
58
3
58

skipif mysql # not compatible
query II rowsort label-947
SELECT - - col0 / + col1 + col2 - col2, 58 AS col0 FROM tab1 AS cor0
----
1
58
17
58
3
58

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

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

query I rowsort
SELECT DISTINCT + 43 AS col1 FROM tab0 WHERE - - col1 IS NULL
----

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

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

query I rowsort
SELECT ALL + 60 - + col1 AS col0 FROM tab1
----
13
46
55

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-954
SELECT + ( - - CAST( 0 AS SIGNED ) ) FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-954
SELECT + ( - - CAST ( 0 AS INTEGER ) ) FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-955
SELECT DISTINCT MAX( - - 82 ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL <= - col0 + - 14
----
NULL

skipif mysql # not compatible
query I rowsort label-955
SELECT DISTINCT MAX ( - - 82 ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL <= - col0 + - 14
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-957
SELECT ALL SUM( - col1 ) * - 55 AS col0 FROM tab2
----
10725

skipif mysql # not compatible
query I rowsort label-957
SELECT ALL SUM ( - col1 ) * - 55 AS col0 FROM tab2
----
10725

onlyif mysql # aggregate syntax: 
query I rowsort label-958
SELECT DISTINCT + 38 * - 40 * + + COUNT( * ) AS col2 FROM tab0
----
-4560

skipif mysql # not compatible
query I rowsort label-958
SELECT DISTINCT + 38 * - 40 * + + COUNT ( * ) AS col2 FROM tab0
----
-4560

query II rowsort
SELECT col2 * - ( + - 82 ) AS col0, + 7 AS col2 FROM tab1
----
4838
7
5576
7
7872
7

query I rowsort
SELECT ALL col1 * col0 * + - col2 * - + 67 AS col0 FROM tab2
----
13207040
19527150
3615186

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-961
SELECT - + CAST( 49 AS SIGNED ) * col1 FROM tab1 WHERE NOT 57 < NULL
----

skipif mysql # not compatible
query I rowsort label-961
SELECT - + CAST ( 49 AS INTEGER ) * col1 FROM tab1 WHERE NOT 57 < NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-963
SELECT 48 * + + COUNT( * ) AS col2 FROM tab2
----
144

skipif mysql # not compatible
query I rowsort label-963
SELECT 48 * + + COUNT ( * ) AS col2 FROM tab2
----
144

onlyif mysql # DIV for integer division: 
query I rowsort label-964
SELECT DISTINCT - 11 DIV + 97 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-964
SELECT DISTINCT - 11 / + 97 FROM tab1
----
0

query I rowsort
SELECT col0 * - 11 FROM tab0
----
-1067
-165
-957

query I rowsort
SELECT ALL 82 * col1 FROM tab0
----
1722
6642
82

query I rowsort
SELECT + 60 * - 14 AS col0 FROM tab1
----
-840
-840
-840

onlyif mysql # aggregate syntax: 
query I rowsort label-968
SELECT DISTINCT - MAX( + 18 ) AS col1 FROM tab0 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-968
SELECT DISTINCT - MAX ( + 18 ) AS col1 FROM tab0 AS cor0
----
-18

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 45 col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 71160abf09589695379a70558726f0ba

query II rowsort
SELECT + 67 AS col1, col0 + + col1 AS col2 FROM tab2 WHERE ( NOT - ( - col1 ) = NULL )
----

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

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

query I rowsort
SELECT ALL - 46 * - 53 FROM tab1 AS cor0
----
2438
2438
2438

query I rowsort
SELECT DISTINCT - - ( col2 ) / col1 FROM tab1 AS cor0 WHERE col0 IS NULL
----

query II rowsort
SELECT DISTINCT + - col2 AS col1, ( 3 ) FROM tab2 AS cor0
----
-23
3
-40
3
-58
3

query I rowsort
SELECT + col1 * + 77 FROM tab2 AS cor0
----
3927
5159
5929

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-981
SELECT 8 + + COUNT( 28 ) FROM tab1 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-981
SELECT 8 + + COUNT ( 28 ) FROM tab1 AS cor0
----
11

query II rowsort
SELECT DISTINCT 82 AS col0, 79 * col2 FROM tab0 AS cor0
----
82
3713
82
7821
82
790

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 43 + - col1 col2, 75 FROM tab1 AS cor0
----
-4
75
29
75
38
75

query I rowsort
SELECT ALL - col1 * 70 + col2 + + + col0 FROM tab2
----
-3501
-4557
-5286

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-985
SELECT ( - col0 ) + ( + CAST( NULL AS SIGNED ) ) - + - 89 * + 32 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-985
SELECT ( - col0 ) + ( + CAST ( NULL AS INTEGER ) ) - + - 89 * + 32 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-986
SELECT ALL col0 DIV col0 + + - 71 FROM tab0
----
-70
-70
-70

skipif mysql # not compatible
query I rowsort label-986
SELECT ALL col0 / col0 + + - 71 FROM tab0
----
-70
-70
-70

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL > - 3
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-988
SELECT ALL + 44 * - 81 + 38, + col2 AS col2 FROM tab2 WHERE + - CAST( + col1 AS SIGNED ) IS NOT NULL
----
-3526
23
-3526
40
-3526
58

skipif mysql # not compatible
query II rowsort label-988
SELECT ALL + 44 * - 81 + 38, + col2 AS col2 FROM tab2 WHERE + - CAST ( + col1 AS INTEGER ) IS NOT NULL
----
-3526
23
-3526
40
-3526
58

query I rowsort
SELECT ALL - col0 + + - col0 + col2 AS col2 FROM tab1 AS cor0
----
-111
-114
-6

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

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - 32 = - 84 + 98
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-992
SELECT - col0 - - + 58 DIV - - col0 AS col1 FROM tab1
----
-50
-85
-91

skipif mysql # not compatible
query I rowsort label-992
SELECT - col0 - - + 58 / - - col0 AS col1 FROM tab1
----
-50
-85
-91

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-996
SELECT DISTINCT 10 AS col2, + COUNT( * ) FROM tab0 AS cor0
----
10
3

skipif mysql # not compatible
query II rowsort label-996
SELECT DISTINCT 10 AS col2, + COUNT ( * ) FROM tab0 AS cor0
----
10
3

onlyif mysql # aggregate syntax: 
query I rowsort label-997
SELECT DISTINCT + - COUNT( ALL - 61 ) + 44 AS col1 FROM tab2 AS cor0 WHERE col1 >= - + ( - + col1 ) + - col0
----
41

skipif mysql # not compatible
query I rowsort label-997
SELECT DISTINCT + - COUNT ( ALL - 61 ) + 44 AS col1 FROM tab2 AS cor0 WHERE col1 >= - + ( - + col1 ) + - col0
----
41

query II rowsort
SELECT col0 AS col0, 61 + 17 * ( + col0 ) AS col0 FROM tab1 AS cor0
----
51
928
85
1506
91
1608

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 90 * + col2 * - col1 col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
120960
26550
287640

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - + 42 col1 FROM tab1
----
-1974
-210
-588

onlyif mysql # aggregate syntax: 
query I rowsort label-1001
SELECT ALL COUNT( * ) * + - 87 FROM tab0
----
-261

skipif mysql # not compatible
query I rowsort label-1001
SELECT ALL COUNT ( * ) * + - 87 FROM tab0
----
-261

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1002
SELECT ALL * 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-1002
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col0 / ( - CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1003
SELECT DISTINCT + col2 - + col0 + + 0 + - - col2 + + - 34 FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN + - ( + CAST( - + ( + col1 ) AS DECIMAL ) ) AND - ( + + 17 ) * col1 - - 50
----

skipif mysql # not compatible
query I rowsort label-1003
SELECT DISTINCT + col2 - + col0 + + 0 + - - col2 + + - 34 FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN + - ( + CAST ( - + ( + col1 ) AS REAL ) ) AND - ( + + 17 ) * col1 - - 50
----

query I rowsort
SELECT DISTINCT col2 * 49 AS col0 FROM tab0 AS cor0
----
2303
4851
490

query II rowsort
SELECT ALL + 1 AS col0, col1 * col2 FROM tab2 WHERE ( + col1 ) < ( NULL )
----

query I rowsort
SELECT + - ( col0 ) + col2 * + + col2 FROM tab2 AS cor0
----
1536
3289
483

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

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

query II rowsort
SELECT ALL col0, - 15 - col0 * - - ( + col2 ) + col1 AS col2 FROM tab0
----
15
-639
87
-864
97
-9617

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT IN ( - 24 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1011
SELECT DISTINCT + COUNT( * ) + - - SUM( ALL col2 ) AS col0 FROM tab1
----
226

skipif mysql # not compatible
query I rowsort label-1011
SELECT DISTINCT + COUNT ( * ) + - - SUM ( ALL col2 ) AS col0 FROM tab1
----
226

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1012
SELECT ALL - 88 - + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1012
SELECT ALL - 88 - + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1013
SELECT CAST( 82 AS SIGNED ) * - + 31 - + col0 * + 87 FROM tab1
----
-10459
-6979
-9937

skipif mysql # not compatible
query I rowsort label-1013
SELECT CAST ( 82 AS INTEGER ) * - + 31 - + col0 * + 87 FROM tab1
----
-10459
-6979
-9937

query I rowsort
SELECT + ( - + col1 ) - - col2 FROM tab1
----
21
54
82

query I rowsort
SELECT ALL + 99 * + - col1 * + + col2 + 9 AS col0 FROM tab0 AS cor0
----
-20781
-376884
-9792

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

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

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

query II rowsort
SELECT ALL - + col0 - col1 AS col0, + 0 FROM tab2 AS cor0
----
-141
0
-142
0
-97
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 74 ) col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

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

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

query I rowsort
SELECT ALL 68 - - - 38 FROM tab0, tab1 AS cor0
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

query I rowsort
SELECT - + col2 + col2 * + 0 FROM tab2 WHERE NOT - + col1 + + - col0 - + col2 IS NULL
----
-23
-40
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - 14 - - col0 - + col0 col0 FROM tab2 WHERE NOT NULL > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 86 * col2 + col2 * + 71 col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1485
-150
-705

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

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

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

query I rowsort
SELECT col1 * + 48 AS col2 FROM tab2
----
2448
3216
3696

query I rowsort
SELECT - col0 * 95 AS col0 FROM tab2
----
-4370
-6080
-7125

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <> - - col1 * + - col2 * col2
----

query I rowsort
SELECT + col0 + + 31 AS col1 FROM tab2 cor0
----
106
77
95

query I rowsort
SELECT + ( col0 ) + + col0 + + col2 * + + 95 FROM tab2 AS cor0
----
2277
3928
5660

query I rowsort
SELECT ALL + ( ( + col1 ) ) + + + 80 FROM tab1 AS cor0
----
127
85
94

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

query I rowsort
SELECT + + 41 * - - col0 * - 83 FROM tab2 AS cor0
----
-156538
-217792
-255225

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1036
SELECT ALL ( ( + col1 ) ) DIV + 85 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1036
SELECT ALL ( ( + col1 ) ) / + 85 AS col1 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 * - 11 IN ( + col2 )
----

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

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

query I rowsort
SELECT ALL 59 * - + col0 * + - col0 FROM tab2 AS cor0
----
124844
241664
331875

query II rowsort
SELECT DISTINCT - 16 AS col0, col0 AS col1 FROM tab1 WHERE - col0 - - + col2 IS NOT NULL
----
-16
51
-16
85
-16
91

query I rowsort
SELECT col2 * + + col1 + 46 AS col1 FROM tab2
----
1219
3126
3932

query I rowsort
SELECT ALL ( 49 ) * - + col0 FROM tab0 WHERE + 31 / col1 + col1 IS NOT NULL
----
-4263
-4753
-735

query I rowsort
SELECT + col1 AS col0 FROM tab0 WHERE - - col2 > - 17 + + 38
----
1
81

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

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

query I rowsort
SELECT ALL - col0 - + 78 + - col0 * - 61 - - col0 * col1 FROM tab0
----
2037
5839
6969

query I rowsort
SELECT DISTINCT 79 + - + 53 FROM tab1
----
26

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

query II rowsort
SELECT - 61 AS col0, + 93 AS col2 FROM tab2 AS cor0
----
-61
93
-61
93
-61
93

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1050
SELECT + + 64 DIV - - 42 col1 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1050
SELECT + + 64 / - - 42 col1 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1051
SELECT DISTINCT COUNT( * ) + + + 33 * - + COUNT( * ) AS col0 FROM tab2
----
-96

skipif mysql # not compatible
query I rowsort label-1051
SELECT DISTINCT COUNT ( * ) + + + 33 * - + COUNT ( * ) AS col0 FROM tab2
----
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 90 col1 FROM tab1
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1053
SELECT ALL 70 * - CAST( - col2 AS SIGNED ) * + + col2 AS col0 FROM tab0
----
154630
686070
7000

skipif mysql # not compatible
query I rowsort label-1053
SELECT ALL 70 * - CAST ( - col2 AS INTEGER ) * + + col2 AS col0 FROM tab0
----
154630
686070
7000

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

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

query I rowsort
SELECT DISTINCT - 4 + 64 + - col1 FROM tab0
----
-21
39
59

query I rowsort
SELECT + 85 + + col1 AS col2 FROM tab0
----
106
166
86

query I rowsort
SELECT - 69 * + - col0 FROM tab1 AS cor0
----
3519
5865
6279

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - 37 col1, - col0 col1 FROM tab2 cor0
----
37
-46
37
-64
37
-75

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1061
SELECT DISTINCT - + SUM( ALL 51 ) AS col0 FROM tab0 AS cor0
----
-153

skipif mysql # not compatible
query I rowsort label-1061
SELECT DISTINCT - + SUM ( ALL 51 ) AS col0 FROM tab0 AS cor0
----
-153

onlyif mysql # aggregate syntax: 
query I rowsort label-1062
SELECT 82 - + COUNT( * ) + + MAX( DISTINCT - col2 ) AS col2 FROM tab1
----
20

skipif mysql # not compatible
query I rowsort label-1062
SELECT 82 - + COUNT ( * ) + + MAX ( DISTINCT - col2 ) AS col2 FROM tab1
----
20

onlyif mysql # aggregate syntax: 
query II rowsort label-1063
SELECT COUNT( * ) - + + COUNT( * ) AS col2, - COUNT( * ) + - 22 FROM tab2
----
0
-25

skipif mysql # not compatible
query II rowsort label-1063
SELECT COUNT ( * ) - + + COUNT ( * ) AS col2, - COUNT ( * ) + - 22 FROM tab2
----
0
-25

query I rowsort
SELECT ALL col1 + + 38 AS col1 FROM tab2
----
105
115
89

query I rowsort
SELECT col1 - - 70 FROM tab1
----
117
75
84

query I rowsort
SELECT ALL - - col0 AS col2 FROM tab2 WHERE - 28 = + 18
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1067
SELECT DISTINCT - 21 DIV - 90 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1067
SELECT DISTINCT - 21 / - 90 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1068
SELECT ALL - SUM( DISTINCT 3 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1068
SELECT ALL - SUM ( DISTINCT 3 ) FROM tab2 AS cor0
----
-3

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

skipif mysql # not compatible
query I rowsort label-1069
SELECT DISTINCT - SUM ( col0 ) AS col2 FROM tab0
----
-199

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1071
SELECT DISTINCT COUNT( * ) DIV - 98 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1071
SELECT DISTINCT COUNT ( * ) / - 98 FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 51 AS col2, col0 col0 FROM tab0 WHERE NOT - col2 IN ( col1 )
----
51
15
51
87
51
97

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1074
SELECT + COUNT( * ) * 72 AS col0 FROM tab2, tab1 AS cor0
----
648

skipif mysql # not compatible
query I rowsort label-1074
SELECT + COUNT ( * ) * 72 AS col0 FROM tab2, tab1 AS cor0
----
648

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1075
SELECT CAST( NULL AS SIGNED ) AS col2, col2 FROM tab0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-1075
SELECT CAST ( NULL AS INTEGER ) AS col2, col2 FROM tab0
----
NULL
10
NULL
47
NULL
99

query I rowsort
SELECT 61 + - col0 FROM tab2
----
-14
-3
15

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

skipif mysql # not compatible
query I rowsort label-1077
SELECT COUNT ( * ) + + 46 FROM tab0
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-1078
SELECT ALL 14 DIV + col0 * - + 29 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1078
SELECT ALL 14 / + col0 * - + 29 FROM tab1
----
0
0
0

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1080
SELECT ALL - + col0 AS col1, + col0 DIV - - col0 AS col0 FROM tab2 cor0
----
-46
1
-64
1
-75
1

skipif mysql # not compatible
query II rowsort label-1080
SELECT ALL - + col0 AS col1, + col0 / - - col0 AS col0 FROM tab2 cor0
----
-46
1
-64
1
-75
1

query I rowsort
SELECT - col0 * 0 AS col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1082
SELECT CAST( COUNT( * ) AS SIGNED ) + MIN( DISTINCT + col1 ) AS col2 FROM tab0 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-1082
SELECT CAST ( COUNT ( * ) AS INTEGER ) + MIN ( DISTINCT + col1 ) AS col2 FROM tab0 AS cor0
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1083
SELECT 98 * 95 + - 62 + + 63 - - col1 * - 65 * - col1 * + - col2 + - CAST( NULL AS SIGNED ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1083
SELECT 98 * 95 + - 62 + + 63 - - col1 * - 65 * - col1 * + - col2 + - CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT 93 <> - + col2
----

query I rowsort
SELECT + 42 + - 83 * - col1 FROM tab1 AS cor0
----
1204
3943
457

query I rowsort
SELECT + - 43 + 87 FROM tab0 cor0
----
44
44
44

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1087
SELECT DISTINCT CAST( NULL AS SIGNED ) - col1, + col2 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-1087
SELECT DISTINCT CAST ( NULL AS INTEGER ) - col1, + col2 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1088
SELECT - col2 DIV - - CAST( - 98 AS SIGNED ) * + col2 + + 60 * 23 FROM tab1 AS cor0
----
1380
1380
1380

skipif mysql # not compatible
query I rowsort label-1088
SELECT - col2 / - - CAST ( - 98 AS INTEGER ) * + col2 + + 60 * 23 FROM tab1 AS cor0
----
1380
1380
1380

onlyif mysql # DIV for integer division: 
query I rowsort label-1089
SELECT ALL 74 DIV col2 - col0 + - col1 * + col0 + + - 22 FROM tab2 AS cor0
----
-2411
-5013
-5121

skipif mysql # not compatible
query I rowsort label-1089
SELECT ALL 74 / col2 - col0 + - col1 * + col0 + + - 22 FROM tab2 AS cor0
----
-2411
-5013
-5121

onlyif mysql # aggregate syntax: 
query II rowsort label-1090
SELECT ALL ( - MIN( - col2 ) ) AS col0, COUNT( * ) + + + 66 FROM tab0
----
99
69

skipif mysql # not compatible
query II rowsort label-1090
SELECT ALL ( - MIN ( - col2 ) ) AS col0, COUNT ( * ) + + + 66 FROM tab0
----
99
69

onlyif mysql # aggregate syntax: 
query I rowsort label-1091
SELECT DISTINCT 98 * + 34 * - + 2 * + ( COUNT( * ) ) AS col0 FROM tab2
----
-19992

skipif mysql # not compatible
query I rowsort label-1091
SELECT DISTINCT 98 * + 34 * - + 2 * + ( COUNT ( * ) ) AS col0 FROM tab2
----
-19992

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1092
SELECT ALL 39 col2 FROM tab2 WHERE NULL = ( + CAST( NULL AS SIGNED ) * col1 + + col1 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1092
SELECT ALL 39 col2 FROM tab2 WHERE NULL = ( + CAST ( NULL AS INTEGER ) * col1 + + col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 58 BETWEEN col0 AND NULL
----
85
5
59
91
47
68

onlyif mysql # aggregate syntax: 
query I rowsort label-1094
SELECT DISTINCT SUM( col2 ) AS col0 FROM tab0 WHERE - 44 IS NOT NULL
----
156

skipif mysql # not compatible
query I rowsort label-1094
SELECT DISTINCT SUM ( col2 ) AS col0 FROM tab0 WHERE - 44 IS NOT NULL
----
156

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1096
SELECT DISTINCT + + CAST( - + col1 AS SIGNED ) * col0 AS col2, 71 AS col0 FROM tab0 AS cor0
----
-1215
71
-1827
71
-97
71

skipif mysql # not compatible
query II rowsort label-1096
SELECT DISTINCT + + CAST ( - + col1 AS INTEGER ) * col0 AS col2, 71 AS col0 FROM tab0 AS cor0
----
-1215
71
-1827
71
-97
71

onlyif mysql # aggregate syntax: 
query I rowsort label-1097
SELECT ALL + 64 * + COUNT( ALL col0 ) AS col1 FROM tab2 AS cor0
----
192

skipif mysql # not compatible
query I rowsort label-1097
SELECT ALL + 64 * + COUNT ( ALL col0 ) AS col1 FROM tab2 AS cor0
----
192

query II rowsort
SELECT + + col1 * + col1 + + col2 AS col2, col1 AS col2 FROM tab2 AS cor0
----
2624
51
4547
67
5969
77

query I rowsort
SELECT DISTINCT - - 0 AS col2 FROM tab0 AS cor0
----
0

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

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

query I rowsort
SELECT ALL - col1 FROM tab0 AS cor0 WHERE NULL BETWEEN - col1 AND NULL
----

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

query I rowsort
SELECT DISTINCT + 51 + + - 97 AS col0 FROM tab2 AS cor0
----
-46

query I rowsort
SELECT ALL - 99 + 4 AS col1 FROM tab1
----
-95
-95
-95

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

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

query I rowsort
SELECT - col2 + + col1 FROM tab1 WHERE 10 IS NULL
----

query I rowsort
SELECT col0 * - col0 * - - col1 AS col1 FROM tab0
----
-158949
-18225
-9409

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1109
SELECT DISTINCT - COUNT( DISTINCT col0 ) + ( COUNT( * ) ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1109
SELECT DISTINCT - COUNT ( DISTINCT col0 ) + ( COUNT ( * ) ) FROM tab2
----
0

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

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

query I rowsort
SELECT ALL + 55 * 50 + 8 FROM tab2
----
2758
2758
2758

query I rowsort
SELECT DISTINCT col2 * - 95 + - col2 AS col0 FROM tab1
----
-5664
-6528
-9216

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

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

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

skipif mysql # not compatible
query I rowsort label-1115
SELECT ALL 43 + + 98 + + + ( COUNT ( * ) ) + + + COUNT ( * ) + - CAST ( NULL AS REAL ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

query II rowsort
SELECT - + col0 AS col2, + 2 FROM tab1 AS cor0
----
-51
2
-85
2
-91
2

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1119
SELECT DISTINCT + + ( 21 ) - COUNT( * ) + 53 + - COUNT( * ) * + CAST( - 72 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
287

skipif mysql # not compatible
query I rowsort label-1119
SELECT DISTINCT + + ( 21 ) - COUNT ( * ) + 53 + - COUNT ( * ) * + CAST ( - 72 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
287

query II rowsort
SELECT ALL - col2 - ( - + col1 ) + + col0 - col2 * + + 47 AS col1, - col2 AS col1 FROM tab1 AS cor0
----
-2742
-59
-3126
-68
-4543
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1121
SELECT ALL - + COUNT( DISTINCT - - col2 ) FROM tab0 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) > NULL
----
0

skipif mysql # not compatible
query I rowsort label-1121
SELECT ALL - + COUNT ( DISTINCT - - col2 ) FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) > NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1122
SELECT - SUM( ALL - ( - 26 ) ) AS col0 FROM tab1 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-1122
SELECT - SUM ( ALL - ( - 26 ) ) AS col0 FROM tab1 AS cor0
----
-78

query II rowsort
SELECT col0 * - 31, col0 AS col0 FROM tab1 AS cor0
----
-1581
51
-2635
85
-2821
91

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1125
SELECT DISTINCT + SUM( - 50 ) AS col1 FROM tab0
----
-150

skipif mysql # not compatible
query I rowsort label-1125
SELECT DISTINCT + SUM ( - 50 ) AS col1 FROM tab0
----
-150

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

skipif mysql # not compatible
query II rowsort label-1126
SELECT - 44 / + col0, col1 FROM tab1
----
0
14
0
47
0
5

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

skipif mysql # not compatible
query I rowsort label-1127
SELECT + COUNT ( * ) FROM tab1 WHERE NOT + - 73 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1128
SELECT ALL MAX( - ( + - 18 ) ) FROM tab1, tab2 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-1128
SELECT ALL MAX ( - ( + - 18 ) ) FROM tab1, tab2 AS cor0
----
18

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

query I rowsort
SELECT ALL - col1 * - + 65 FROM tab0 AS cor0
----
1365
5265
65

onlyif mysql # DIV for integer division: 
query I rowsort label-1131
SELECT - 59 DIV col2 * + col1 + col2 FROM tab1 AS cor0
----
54
68
96

skipif mysql # not compatible
query I rowsort label-1131
SELECT - 59 / col2 * + col1 + col2 FROM tab1 AS cor0
----
54
68
96

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1133
SELECT + 63 + + CAST( NULL AS SIGNED ) + 36 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1133
SELECT + 63 + + CAST ( NULL AS INTEGER ) + 36 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * - 24 + - col0 FROM tab0
----
-1143
-2473
-327

query I rowsort
SELECT DISTINCT 33 + - ( - col0 ) AS col0 FROM tab2
----
108
79
97

query II rowsort
SELECT DISTINCT 36 * + col1 + + - col0 + 9, col2 * 23 AS col0 FROM tab0
----
-52
2277
2910
1081
678
230

query II rowsort
SELECT - col0 + + + col1 + - col2 * + col0 AS col2, + 97 FROM tab1
----
-4933
97
-5095
97
-6232
97

query I rowsort
SELECT ALL + 49 * col1 + + - col2 FROM tab1
----
186
2235
590

onlyif mysql # aggregate syntax: 
query I rowsort label-1139
SELECT DISTINCT MIN( ALL - 83 ) * - + MAX( ALL - 25 ) * + 28 + - 48 * - 75 AS col0 FROM tab2
----
-54500

skipif mysql # not compatible
query I rowsort label-1139
SELECT DISTINCT MIN ( ALL - 83 ) * - + MAX ( ALL - 25 ) * + 28 + - 48 * - 75 AS col0 FROM tab2
----
-54500

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

query I rowsort
SELECT ALL - - col0 * + col1 * - col0 FROM tab1 AS cor0
----
-36125
-36414
-389207

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

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

query IIIIII rowsort
SELECT * FROM tab2 cor0 LEFT JOIN tab2 AS cor1 ON NULL IS NOT NULL
----
18 values hashing to 18b19f89ce73392082a69acc4aed78f1

query I rowsort
SELECT col0 - + - 14 AS col0 FROM tab0
----
101
111
29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 27 col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1146
SELECT - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) <> - - 44
----

skipif mysql # not compatible
query I rowsort label-1146
SELECT - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) <> - - 44
----

query I rowsort
SELECT ALL + col2 AS col1 FROM tab1 AS cor0 WHERE NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1148
SELECT DISTINCT + MIN( DISTINCT + col0 ) FROM tab2 AS cor0 WHERE col0 BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1148
SELECT DISTINCT + MIN ( DISTINCT + col0 ) FROM tab2 AS cor0 WHERE col0 BETWEEN NULL AND NULL
----
NULL

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT ( 52 ) AS col1 FROM tab0 WHERE NOT NULL <> col2
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 * + col2 <> col1
----

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

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

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

query II rowsort
SELECT 88, + col2 FROM tab2 AS cor0
----
88
23
88
40
88
58

query III rowsort
SELECT ALL * FROM tab0 WHERE + 93 + col1 > NULL
----

query I rowsort
SELECT + col0 AS col2 FROM tab1 cor0 WHERE NULL IS NULL
----
51
85
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1161
SELECT ALL 76 / - CAST( NULL AS SIGNED ) + - COUNT( + col2 ) - + 78 - + 18 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1161
SELECT ALL 76 / - CAST ( NULL AS INTEGER ) + - COUNT ( + col2 ) - + 78 - + 18 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1162
SELECT DISTINCT COUNT( * ) + + 42 FROM tab1
----
45

skipif mysql # not compatible
query I rowsort label-1162
SELECT DISTINCT COUNT ( * ) + + 42 FROM tab1
----
45

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

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

query I rowsort
SELECT DISTINCT - 68 + - col0 FROM tab2
----
-114
-132
-143

query I rowsort
SELECT ALL 12 - ( 60 ) FROM tab1
----
-48
-48
-48

query II rowsort
SELECT + ( - col1 ) - - 43 AS col0, - col1 + + col2 + - + col1 AS col2 FROM tab0
----
-38
-115
22
-32
42
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1167
SELECT ALL 92 * col2 + + - CAST( - col0 AS SIGNED ) FROM tab2
----
2162
3744
5411

skipif mysql # not compatible
query I rowsort label-1167
SELECT ALL 92 * col2 + + - CAST ( - col0 AS INTEGER ) FROM tab2
----
2162
3744
5411

query I rowsort
SELECT + col1 - + - col0 + - col2 * col2 AS col2 FROM tab1 cor0
----
-3391
-4486
-9151

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 + - 41 BETWEEN + 99 * 66 - - col0 AND col1 * - 92
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - - 75 * - col1 * 24 - - - col1 * + - 89 col1 FROM tab0 cor0
----
-174511
-2179791
-3286731

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

query I rowsort
SELECT + 74 + col0 FROM tab2
----
120
138
149

onlyif mysql # aggregate syntax: 
query I rowsort label-1173
SELECT - SUM( col2 ) * - MIN( + col2 ) FROM tab0
----
1560

skipif mysql # not compatible
query I rowsort label-1173
SELECT - SUM ( col2 ) * - MIN ( + col2 ) FROM tab0
----
1560

query I rowsort
SELECT ALL col1 AS col1 FROM tab2 WHERE NOT - col0 * - col2 IS NULL
----
51
67
77

query I rowsort
SELECT DISTINCT 30 * + 49 AS col1 FROM tab1
----
1470

onlyif mysql # aggregate syntax: 
query I rowsort label-1176
SELECT - COUNT( * ) AS col1 FROM tab0 WHERE NOT + col1 BETWEEN ( - col1 / + 86 ) AND - col2
----
-3

skipif mysql # not compatible
query I rowsort label-1176
SELECT - COUNT ( * ) AS col1 FROM tab0 WHERE NOT + col1 BETWEEN ( - col1 / + 86 ) AND - col2
----
-3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1178
SELECT ALL + SUM( ALL - 23 ) AS col0 FROM tab0 WHERE NULL IS NULL
----
-69

skipif mysql # not compatible
query I rowsort label-1178
SELECT ALL + SUM ( ALL - 23 ) AS col0 FROM tab0 WHERE NULL IS NULL
----
-69

query I rowsort
SELECT DISTINCT col1 * 88 + + col0 AS col2 FROM tab1
----
1283
4227
525

query I rowsort
SELECT DISTINCT col2 - + col1 * + col1 AS col0 FROM tab1
----
-100
-2141
34

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1181
SELECT * FROM tab0 WHERE NOT 42 BETWEEN ( CAST( - col2 AS SIGNED ) ) AND ( col2 - - 2 )
----
87
21
10

skipif mysql # not compatible
query III rowsort label-1181
SELECT * FROM tab0 WHERE NOT 42 BETWEEN ( CAST ( - col2 AS INTEGER ) ) AND ( col2 - - 2 )
----
87
21
10

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

query III rowsort
SELECT ALL * FROM tab0 WHERE ( col1 ) BETWEEN col0 AND ( - 54 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1184
SELECT - COUNT( * ) * + 58 FROM tab2 WHERE ( - col0 ) - 24 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-1184
SELECT - COUNT ( * ) * + 58 FROM tab2 WHERE ( - col0 ) - 24 <> NULL
----
0

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

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

query I rowsort
SELECT 59 AS col2 FROM tab0 WHERE NOT ( - col0 ) IS NOT NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1188
SELECT + COUNT( + 9 ) AS col2 FROM tab2 WHERE NOT col0 * col2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-1188
SELECT + COUNT ( + 9 ) AS col2 FROM tab2 WHERE NOT col0 * col2 IS NULL
----
3

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( + 42 * + 76 ) IS NOT NULL
----

query I rowsort
SELECT + 23 * ( - 14 * - 57 ) + + 74 AS col1 FROM tab1
----
18428
18428
18428

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1194
SELECT MIN( col2 ) * 96 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1194
SELECT MIN ( col2 ) * 96 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

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

query I rowsort
SELECT col2 * 12 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
276
480
696

onlyif mysql # aggregate syntax: 
query I rowsort label-1197
SELECT DISTINCT + 51 + - COUNT( * ) * + 32 AS col2 FROM tab2 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-1197
SELECT DISTINCT + 51 + - COUNT ( * ) * + 32 AS col2 FROM tab2 AS cor0
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-1198
SELECT DISTINCT COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE 65 = + col0
----
0

skipif mysql # not compatible
query I rowsort label-1198
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE 65 = + col0
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <= + col1 + + col1 * col0
----

query I rowsort
SELECT DISTINCT 42 FROM tab1 WHERE ( NULL ) NOT IN ( - 18 * col1 - col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - ( + col1 ) * - col1 IS NOT NULL
----

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

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

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

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

query I rowsort
SELECT DISTINCT ( - col0 ) * ( col2 * 99 ) FROM tab0 AS cor0 WHERE NOT 80 + col2 <= NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 / col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1207
SELECT DISTINCT - 48 * + COUNT( ALL - 23 ) AS col2 FROM tab0 cor0
----
-144

skipif mysql # not compatible
query I rowsort label-1207
SELECT DISTINCT - 48 * + COUNT ( ALL - 23 ) AS col2 FROM tab0 cor0
----
-144

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * 83 + ( col0 ) col2 FROM tab1 AS cor0
----
-4182
-6970
-7462

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

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

query I rowsort
SELECT DISTINCT col0 - 57 * - 60 FROM tab1 AS cor0 WHERE NOT col0 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1212
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) < CAST( + col2 AS SIGNED ) / 37 + - col2
----

skipif mysql # not compatible
query III rowsort label-1212
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) < CAST ( + col2 AS INTEGER ) / 37 + - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col2 ) + - 28 col1 FROM tab2
----
-51
-68
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-1214
SELECT DISTINCT 94 + + COUNT( * ) AS col0 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-1214
SELECT DISTINCT 94 + + COUNT ( * ) AS col0 FROM tab0
----
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - 4 col0 FROM tab1
----
55
64
92

query I rowsort
SELECT DISTINCT + col2 FROM tab1 WHERE NULL = - col1 + col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1217
SELECT ALL COUNT( * ) * CAST( NULL AS SIGNED ) AS col1 FROM tab2 WHERE 78 >= - CAST( - col0 AS SIGNED ) / col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1217
SELECT ALL COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col1 FROM tab2 WHERE 78 >= - CAST ( - col0 AS INTEGER ) / col2
----
NULL

query I rowsort
SELECT ALL col2 + - 20 * ( + 53 ) AS col0 FROM tab0
----
-1013
-1050
-961

query I rowsort
SELECT DISTINCT col2 - - col2 FROM tab1 WHERE NOT - col0 < ( + col2 + 78 ) OR NOT ( col1 * 36 ) <= - 66
----
118
136
192

query I rowsort
SELECT ALL - 24 * col2 - + 65 AS col2 FROM tab1 AS cor0
----
-1481
-1697
-2369

onlyif mysql # aggregate syntax: 
query I rowsort label-1221
SELECT ALL - - SUM( ALL - - 80 ) FROM tab2 AS cor0
----
240

skipif mysql # not compatible
query I rowsort label-1221
SELECT ALL - - SUM ( ALL - - 80 ) FROM tab2 AS cor0
----
240

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1222
SELECT DISTINCT - ( - CAST( NULL AS SIGNED ) ) * 55 col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1222
SELECT DISTINCT - ( - CAST ( NULL AS INTEGER ) ) * 55 col0 FROM tab1 AS cor0
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1224
SELECT 8 DIV 47 col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1224
SELECT 8 / 47 col0 FROM tab1
----
0
0
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1226
SELECT 55, 44 * CAST( col1 AS SIGNED ) AS col0 FROM tab2
----
55
2244
55
2948
55
3388

skipif mysql # not compatible
query II rowsort label-1226
SELECT 55, 44 * CAST ( col1 AS INTEGER ) AS col0 FROM tab2
----
55
2244
55
2948
55
3388

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1228
SELECT + + 18 * + CAST( + col2 AS DECIMAL ) FROM tab2 AS cor0 WHERE NOT - 27 < NULL
----

skipif mysql # not compatible
query I rowsort label-1228
SELECT + + 18 * + CAST ( + col2 AS REAL ) FROM tab2 AS cor0 WHERE NOT - 27 < NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1230
SELECT ALL + AVG ( + col1 ) FROM tab2 AS cor0 WHERE ( NULL ) >= - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1230
SELECT ALL + AVG ( + col1 ) FROM tab2 AS cor0 WHERE ( NULL ) >= - CAST ( NULL AS INTEGER )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1231
SELECT ALL - 1 * + + COUNT ( + 51 ) FROM tab2
----
-3

query I rowsort
SELECT ALL 67 AS col2 FROM tab1 WHERE NOT - + 99 + col0 IS NOT NULL
----

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

skipif mysql # not compatible
query I rowsort label-1233
SELECT DISTINCT + col2 * col2 AS col1 FROM tab0 WHERE NOT ( + CAST ( + - col2 AS REAL ) ) NOT BETWEEN ( NULL ) AND CAST ( NULL AS REAL )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1235
SELECT DISTINCT - MAX( ALL + + col1 ) + SUM( - ( 29 ) ) FROM tab0
----
-168

skipif mysql # not compatible
query I rowsort label-1235
SELECT DISTINCT - MAX ( ALL + + col1 ) + SUM ( - ( 29 ) ) FROM tab0
----
-168

onlyif mysql # DIV for integer division: 
query I rowsort label-1236
SELECT ALL 86 DIV col2 AS col2 FROM tab2
----
1
2
3

skipif mysql # not compatible
query I rowsort label-1236
SELECT ALL 86 / col2 AS col2 FROM tab2
----
1
2
3

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

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

query I rowsort
SELECT col2 * + col0 * 4 + + ( 20 ) AS col0 FROM tab1 AS cor0
----
19604
20080
24772

query I rowsort
SELECT DISTINCT 47 AS col0 FROM tab1 AS cor0 WHERE col1 - + + 53 NOT IN ( 36 * 49 )
----
47

query III rowsort
SELECT * FROM tab2 cor0 WHERE 34 <= ( - + 86 )
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + 3, ( - col0 ) col1 FROM tab0 AS cor0
----
-3
-15
-3
-87
-3
-97

query I rowsort
SELECT ALL ( - - 32 ) AS col1 FROM tab0 AS cor0
----
32
32
32

onlyif mysql # aggregate syntax: 
query I rowsort label-1244
SELECT ALL - COUNT( DISTINCT + + 98 ) AS col2 FROM tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1244
SELECT ALL - COUNT ( DISTINCT + + 98 ) AS col2 FROM tab0 cor0
----
-1

query I rowsort
SELECT DISTINCT - ( - ( + col2 ) ) AS col1 FROM tab2 AS cor0
----
23
40
58

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL <= + col2 * col1 + ( + 7 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1248
SELECT DISTINCT ( + 10 ) * + 46 + - + COUNT( * ) AS col0 FROM tab0
----
457

skipif mysql # not compatible
query I rowsort label-1248
SELECT DISTINCT ( + 10 ) * + 46 + - + COUNT ( * ) AS col0 FROM tab0
----
457

query I rowsort
SELECT col1 - 51 AS col0 FROM tab1
----
-37
-4
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-1250
SELECT - ( + + COUNT( DISTINCT + 95 ) ) AS col1 FROM tab0 WHERE NULL BETWEEN - + col1 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-1250
SELECT - ( + + COUNT ( DISTINCT + 95 ) ) AS col1 FROM tab0 WHERE NULL BETWEEN - + col1 AND NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1, - col2 * + col2 col2 FROM tab0
----
-1
-9801
-21
-100
-81
-2209

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

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

query I rowsort
SELECT DISTINCT + ( col1 ) * 96 + 49 * col2 + - + col2 - col2 FROM tab1
----
3253
5856
7708

query I rowsort
SELECT ALL 4 - col1 + - 66 FROM tab0
----
-143
-63
-83

query I rowsort
SELECT DISTINCT + col1 + + 69 FROM tab1
----
116
74
83

onlyif mysql # aggregate syntax: 
query I rowsort label-1256
SELECT ALL - 89 * + + COUNT( * ) FROM tab2
----
-267

skipif mysql # not compatible
query I rowsort label-1256
SELECT ALL - 89 * + + COUNT ( * ) FROM tab2
----
-267

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1257
SELECT DISTINCT CAST( NULL AS DECIMAL ) * - ( - 78 ) * col1 col0 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1257
SELECT DISTINCT CAST ( NULL AS REAL ) * - ( - 78 ) * col1 col0 FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE 98 IS NULL AND - 5 IS NULL
----

query I rowsort
SELECT + col1 + - col2 FROM tab0 WHERE NOT + + col2 + - + 44 IS NULL
----
-98
11
34

query III rowsort
SELECT * FROM tab0 WHERE + col0 IS NOT NULL AND NOT ( NULL ) BETWEEN - 19 AND NULL
----

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

query I rowsort
SELECT - - 94 + 96 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) = NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1263
SELECT DISTINCT + COUNT( * ) * - 37, - 81 AS col1 FROM tab2 AS cor0
----
-111
-81

skipif mysql # not compatible
query II rowsort label-1263
SELECT DISTINCT + COUNT ( * ) * - 37, - 81 AS col1 FROM tab2 AS cor0
----
-111
-81

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1264
SELECT + - MIN( ALL + - 82 ) * - - ( CAST( NULL AS DECIMAL ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1264
SELECT + - MIN ( ALL + - 82 ) * - - ( CAST ( NULL AS REAL ) ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - 44 AS col1 FROM tab0 cor0 WHERE NOT NULL <> + 53 * - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - ( + col0 ) col1 FROM tab0
----
-705
-870
-9603

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1267
SELECT ALL - COUNT( * ) * - - 65 + CAST( NULL AS SIGNED ) * + 12 - + 38 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1267
SELECT ALL - COUNT ( * ) * - - 65 + CAST ( NULL AS INTEGER ) * + 12 - + 38 AS col2 FROM tab2
----
NULL

query I rowsort
SELECT + 62 * - 42 AS col0 FROM tab1
----
-2604
-2604
-2604

query II rowsort
SELECT DISTINCT col0 * + + col0 + col0, col1 AS col0 FROM tab1
----
2652
14
7310
5
8372
47

query I rowsort
SELECT ALL + + col1 / - col0 AS col0 FROM tab1 WHERE NULL < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1271
SELECT ALL - 88 * + CAST( - + COUNT( * ) AS SIGNED ) + - + MIN( ALL - 97 ) FROM tab1
----
361

skipif mysql # not compatible
query I rowsort label-1271
SELECT ALL - 88 * + CAST ( - + COUNT ( * ) AS INTEGER ) + - + MIN ( ALL - 97 ) FROM tab1
----
361

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1272
SELECT ALL 56 DIV COUNT( * ) * MIN( + 84 ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
1512

skipif mysql # not compatible
query I rowsort label-1272
SELECT ALL 56 / COUNT ( * ) * MIN ( + 84 ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
1512

query I rowsort
SELECT ALL 38 * - col0 AS col2 FROM tab2 AS cor0
----
-1748
-2432
-2850

query II rowsort
SELECT DISTINCT - col2 * + - 1 + + - col0 AS col2, col1 * + + col0 AS col1 FROM tab1 AS cor0
----
-23
4277
-26
425
45
714

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

skipif mysql # not compatible
query I rowsort label-1275
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - col0 AND NULL
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE + - col1 > - col0
----
87
21
10
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1277
SELECT + 23 * - 88 + - SUM( DISTINCT 25 ) AS col2 FROM tab1, tab1 AS cor0
----
-2049

skipif mysql # not compatible
query I rowsort label-1277
SELECT + 23 * - 88 + - SUM ( DISTINCT 25 ) AS col2 FROM tab1, tab1 AS cor0
----
-2049

query II rowsort
SELECT + ( - col2 ), - col2 + + col2 AS col0 FROM tab2
----
-23
0
-40
0
-58
0

query I rowsort
SELECT ALL col2 + col0 * - 3 - + ( + col2 ) AS col1 FROM tab0 AS cor0
----
-261
-291
-45

onlyif mysql # DIV for integer division: 
query II rowsort label-1280
SELECT 29 + + - 95 - - 2 DIV + - col0 AS col2, + col0 FROM tab1 AS cor0
----
-66
51
-66
85
-66
91

skipif mysql # not compatible
query II rowsort label-1280
SELECT 29 + + - 95 - - 2 / + - col0 AS col2, + col0 FROM tab1 AS cor0
----
-66
51
-66
85
-66
91

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1283
SELECT MIN( ALL - col2 ) + 7 FROM tab0 AS cor0
----
-92

skipif mysql # not compatible
query I rowsort label-1283
SELECT MIN ( ALL - col2 ) + 7 FROM tab0 AS cor0
----
-92

query I rowsort
SELECT - col1 + + 6 FROM tab2 AS cor0
----
-45
-61
-71

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1286
SELECT SUM( - - 44 ) + + 45 FROM tab2
----
177

skipif mysql # not compatible
query I rowsort label-1286
SELECT SUM ( - - 44 ) + + 45 FROM tab2
----
177

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

query I rowsort
SELECT DISTINCT 14 + col2 AS col2 FROM tab1
----
110
73
82

onlyif mysql # aggregate syntax: 
query I rowsort label-1289
SELECT COUNT( * ) * - - 6 AS col1 FROM tab0
----
18

skipif mysql # not compatible
query I rowsort label-1289
SELECT COUNT ( * ) * - - 6 AS col1 FROM tab0
----
18

query II rowsort
SELECT DISTINCT - + 26 * - col2 + - col1 AS col2, col1 FROM tab0 WHERE + - col0 + - col2 < + - col0
----
1141
81
239
21
2573
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 50 * - + col2 * + col1 * - col0 - 31 col2, + col1 AS col0 FROM tab0 AS cor0
----
2855219
81
480119
1
913469
21

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

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

query I rowsort
SELECT + 40 * 83 * col0 AS col0 FROM tab2
----
152720
212480
249000

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col1 <> - col2 + - 34 / + 43
----

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

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

query II rowsort
SELECT ALL col2, - 77 * - - col1 AS col1 FROM tab1 AS cor0
----
59
-385
68
-3619
96
-1078

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

query I rowsort
SELECT - col1 + + 76 + + - col0 FROM tab2 AS cor0
----
-21
-65
-66

onlyif mysql # DIV for integer division: 
query II rowsort label-1299
SELECT ALL col2 DIV + col0 AS col1, - 16 col2 FROM tab2 AS cor0
----
0
-16
0
-16
0
-16

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1299
SELECT ALL col2 / + col0 AS col1, - 16 col2 FROM tab2 AS cor0
----
0
-16
0
-16
0
-16

query I rowsort
SELECT ALL 8 * col0 AS col1 FROM tab0 cor0 WHERE NOT - col0 * col1 IS NOT NULL
----

query II rowsort
SELECT 40, col0 * col1 AS col1 FROM tab0 AS cor0
----
40
1215
40
1827
40
97

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

query II rowsort
SELECT col1 * - 31 AS col1, - col2 AS col1 FROM tab2
----
-1581
-23
-2077
-58
-2387
-40

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1304
SELECT ALL + 91 * + 32 AS col0, - ( CAST( NULL AS DECIMAL ) ) col1 FROM tab0
----
2912
NULL
2912
NULL
2912
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1305
SELECT DISTINCT col0 DIV + 93 * - - 37 * - col0 DIV col2 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1305
SELECT DISTINCT col0 / + 93 * - - 37 * - col0 / col2 AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - ( 29 ) FROM tab0 AS cor0
----
-29
-29
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1307
SELECT DISTINCT - - 6 * + + 64 FROM tab1 AS cor0 WHERE NOT NULL <> - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-1307
SELECT DISTINCT - - 6 * + + 64 FROM tab1 AS cor0 WHERE NOT NULL <> - CAST ( NULL AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col0 FROM tab0 AS cor0 WHERE col0 * col1 IN ( col2 + - + col1, col1 * + + col2 * - - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1309
SELECT ALL + 46 * + + 54 + COUNT( * ) FROM tab0 AS cor0
----
2487

skipif mysql # not compatible
query I rowsort label-1309
SELECT ALL + 46 * + + 54 + COUNT ( * ) FROM tab0 AS cor0
----
2487

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1311
SELECT ALL 26 + - MIN( - + col0 ) AS col0, 1 col1 FROM tab0
----
123
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1311
SELECT ALL 26 + - MIN ( - + col0 ) AS col0, 1 col1 FROM tab0
----
123
1

query III rowsort
SELECT ALL * FROM tab1 WHERE - col1 IN ( + - 36, - 87 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1313
SELECT 81 DIV - COUNT( * ) + - COUNT( + ( col0 ) ) AS col2 FROM tab2
----
-30

skipif mysql # not compatible
query I rowsort label-1313
SELECT 81 / - COUNT ( * ) + - COUNT ( + ( col0 ) ) AS col2 FROM tab2
----
-30

query I rowsort
SELECT + 45 + - col1 AS col2 FROM tab2
----
-22
-32
-6

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1317
SELECT - + col2 AS col0, - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-10
NULL
-47
NULL
-99
NULL

skipif mysql # not compatible
query II rowsort label-1317
SELECT - + col2 AS col0, - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-10
NULL
-47
NULL
-99
NULL

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

query I rowsort
SELECT ALL - + 1 * + + 86 * + 90 - - - col2 - - col2 AS col2 FROM tab2 cor0
----
-7740
-7740
-7740

onlyif mysql # DIV for integer division: 
query I rowsort label-1320
SELECT ALL + + 84 DIV - 24 FROM tab1 AS cor0
----
-3
-3
-3

skipif mysql # not compatible
query I rowsort label-1320
SELECT ALL + + 84 / - 24 FROM tab1 AS cor0
----
-3
-3
-3

query I rowsort
SELECT 24 - col2 * - col2 * + col1 AS col0 FROM tab0
----
178953
2124
9825

onlyif mysql # DIV for integer division: 
query I rowsort label-1322
SELECT col2 DIV - 96 * - - col1 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1322
SELECT col2 / - 96 * - - col1 AS col2 FROM tab2
----
0
0
0

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

query I rowsort
SELECT 73 * + + 15 AS col0 FROM tab1
----
1095
1095
1095

onlyif mysql # DIV for integer division: 
query I rowsort label-1325
SELECT col1 DIV - + 25 FROM tab0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-1325
SELECT col1 / - + 25 FROM tab0
----
-3
0
0

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

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

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

query II rowsort
SELECT DISTINCT 13 * col2 AS col1, - col0 * + col1 + - col2 + col2 FROM tab2 AS cor0
----
299
-2346
520
-4928
754
-5025

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1334
SELECT DISTINCT - + COUNT( * ) AS col0, 66 * MIN( - + 78 ) AS col2 FROM tab1 AS cor0
----
-3
-5148

skipif mysql # not compatible
query II rowsort label-1334
SELECT DISTINCT - + COUNT ( * ) AS col0, 66 * MIN ( - + 78 ) AS col2 FROM tab1 AS cor0
----
-3
-5148

query II rowsort
SELECT - - 22 AS col0, + 40 + + - 26 AS col2 FROM tab2 AS cor0
----
22
14
22
14
22
14

onlyif mysql # aggregate syntax: 
query I rowsort label-1336
SELECT COUNT( + col1 ) * - 84 FROM tab2
----
-252

skipif mysql # not compatible
query I rowsort label-1336
SELECT COUNT ( + col1 ) * - 84 FROM tab2
----
-252

query I rowsort
SELECT 95 * - ( - col1 ) + + + col0 * - col1 FROM tab2
----
1340
2387
2499

onlyif mysql # aggregate syntax: 
query I rowsort label-1338
SELECT DISTINCT - 57 + 38 * + COUNT( * ) col1 FROM tab1
----
57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1338
SELECT DISTINCT - 57 + 38 * + COUNT ( * ) col1 FROM tab1
----
57

query I rowsort
SELECT DISTINCT 90 * + + col2 AS col0 FROM tab0
----
4230
8910
900

onlyif mysql # aggregate syntax: 
query I rowsort label-1340
SELECT ALL + MAX( DISTINCT - col1 ) + - + 14 col0 FROM tab0
----
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1340
SELECT ALL + MAX ( DISTINCT - col1 ) + - + 14 col0 FROM tab0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-1341
SELECT ALL - COUNT( 4 ) AS col1 FROM tab2 WHERE NULL > + col1
----
0

skipif mysql # not compatible
query I rowsort label-1341
SELECT ALL - COUNT ( 4 ) AS col1 FROM tab2 WHERE NULL > + col1
----
0

query I rowsort
SELECT - 53 AS col2 FROM tab0 WHERE - col1 NOT IN ( + + col2, col0 + - ( + col0 ), - ( col2 ) * col2 )
----
-53
-53
-53

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

query I rowsort
SELECT 10 * + + 72 AS col1 FROM tab1 AS cor0
----
720
720
720

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

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

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

skipif mysql # not compatible
query I rowsort label-1346
SELECT DISTINCT col2 / CAST ( CAST ( NULL AS REAL ) AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1347
SELECT + - col1 DIV - - ( - 57 ) AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1347
SELECT + - col1 / - - ( - 57 ) AS col1 FROM tab1 AS cor0
----
0
0
0

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

query I rowsort
SELECT ALL - 54 - + - 43 + - col2 + - col2 AS col0 FROM tab1 AS cor0
----
-129
-147
-203

query I rowsort
SELECT col0 + - col2 + + col1 FROM tab2 AS cor0
----
101
74
84

query I rowsort
SELECT - - 35 + + + 3 AS col2 FROM tab0 cor0
----
38
38
38

query II rowsort
SELECT ALL + - col0 * + + col2 AS col0, col1 + - col2 AS col2 FROM tab1 AS cor0
----
-4896
-82
-5015
-54
-6188
-21

query I rowsort
SELECT DISTINCT + + 53 AS col0 FROM tab0 AS cor0
----
53

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1355
SELECT - - 11 * - 55 + + COUNT( * ) FROM tab1 AS cor0
----
-602

skipif mysql # not compatible
query I rowsort label-1355
SELECT - - 11 * - 55 + + COUNT ( * ) FROM tab1 AS cor0
----
-602

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1358
SELECT - COUNT ( * ) * COUNT ( * ) * + - CAST ( NULL AS INTEGER ) col2 FROM tab2
----
NULL

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + - col0 ) * + col1 * + - col0 + 2 col1 FROM tab1
----
-36123
-36412
-389205

query I rowsort
SELECT DISTINCT - 62 * + col1 FROM tab1
----
-2914
-310
-868

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1364
SELECT + col2 * + - CAST( col2 AS SIGNED ) FROM tab0 cor0 WHERE NOT NULL > NULL
----

skipif mysql # not compatible
query I rowsort label-1364
SELECT + col2 * + - CAST ( col2 AS INTEGER ) FROM tab0 cor0 WHERE NOT NULL > NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1365
SELECT DISTINCT - - COUNT( * ) AS col2, - 13 FROM tab1 AS cor0
----
3
-13

skipif mysql # not compatible
query II rowsort label-1365
SELECT DISTINCT - - COUNT ( * ) AS col2, - 13 FROM tab1 AS cor0
----
3
-13

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

query I rowsort
SELECT + - col0 + + 42 AS col0 FROM tab0 AS cor0
----
-45
-55
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1368
SELECT ALL COUNT( * ) DIV + - 99 FROM tab1 AS cor0
----
0

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

query I rowsort
SELECT 27 + 31 AS col0 FROM tab0 AS cor0
----
58
58
58

query I rowsort
SELECT DISTINCT + 79 + - 94 FROM tab2 WHERE 71 IS NULL
----

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1372
SELECT 21 AS col1, COUNT( * ) AS col0 FROM tab1
----
21
3

skipif mysql # not compatible
query II rowsort label-1372
SELECT 21 AS col1, COUNT ( * ) AS col0 FROM tab1
----
21
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 * col2 + + col0 col1, - 21 FROM tab1
----
-4845
-21
-4930
-21
-6097
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1374
SELECT DISTINCT ( + 35 ) + - CAST( + col2 AS SIGNED ) AS col0 FROM tab1
----
-24
-33
-61

skipif mysql # not compatible
query I rowsort label-1374
SELECT DISTINCT ( + 35 ) + - CAST ( + col2 AS INTEGER ) AS col0 FROM tab1
----
-24
-33
-61

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 78 / + 8 IS NULL
----

query I rowsort
SELECT DISTINCT - col0 * - col2 + - 32 AS col2 FROM tab0
----
673
838
9571

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 95 - - 84 * - - col1 * ( - + 6 ), col1 col2 FROM tab2
----
-25609
51
-33673
67
-38713
77

query I rowsort
SELECT DISTINCT col2 + 93 * - + ( - col1 ) AS col1 FROM tab0 AS cor0
----
192
1963
7580

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1380
SELECT ALL + CAST( - - col0 AS SIGNED ) FROM tab0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-1380
SELECT ALL + CAST ( - - col0 AS INTEGER ) FROM tab0
----
15
87
97

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL IS NULL )
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

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

query I rowsort
SELECT ALL ( - 93 ) AS col1 FROM tab0
----
-93
-93
-93

query I rowsort
SELECT ALL - - 9 + + 91 FROM tab2 AS cor0 WHERE 14 IN ( + ( - - col2 ), 26 * + - ( + col0 ) )
----

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

skipif mysql # not compatible
query I rowsort label-1385
SELECT ALL SUM ( DISTINCT 12 ) AS col0 FROM tab0 AS cor0
----
12

query II rowsort
SELECT DISTINCT - - 32 AS col0, 16 - - 16 FROM tab2 cor0
----
32
32

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + 91 col1, + ( + + 3 ) FROM tab1 cor0
----
91
3
91
3
91
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col1 FROM tab0 cor0 WHERE NOT + 10 = + col0 * - - col0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1390
SELECT ALL + - 41 * + COUNT( * ) - + 78 FROM tab0 AS cor0
----
-201

skipif mysql # not compatible
query I rowsort label-1390
SELECT ALL + - 41 * + COUNT ( * ) - + 78 FROM tab0 AS cor0
----
-201

onlyif mysql # DIV for integer division: 
query I rowsort label-1391
SELECT - 6 DIV col0 * - col0 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1391
SELECT - 6 / col0 * - col0 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT 98 AS col1 FROM tab2 WHERE NOT NULL NOT BETWEEN - - 74 AND - 83
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1393
SELECT DISTINCT + 14 DIV col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1393
SELECT DISTINCT + 14 / col1 FROM tab2
----
0

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

query I rowsort
SELECT ( - ( + + col2 ) ) FROM tab2
----
-23
-40
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1396
SELECT MIN( + col2 ) * + 76 * - AVG ( CAST( NULL AS SIGNED ) ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1396
SELECT MIN ( + col2 ) * + 76 * - AVG ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2
----
NULL

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

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

skipif mysql # not compatible
query I rowsort label-1398
SELECT ALL - COUNT ( * ) AS col0 FROM tab2 WHERE NOT - - 44 IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT - - 63 AS col0 FROM tab2 AS cor0
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1400
SELECT SUM( CAST( - 86 AS SIGNED ) ) col0 FROM tab0 AS cor0
----
-258

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1400
SELECT SUM ( CAST ( - 86 AS INTEGER ) ) col0 FROM tab0 AS cor0
----
-258

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

query I rowsort
SELECT ALL - 18 + - + col1 AS col2 FROM tab0 WHERE NOT NULL IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1404
SELECT - - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE col2 + col1 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-1404
SELECT - - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE col2 + col1 <= NULL
----
0

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1407
SELECT DISTINCT - MAX( ALL - 8 ) col0 FROM tab2 AS cor0
----
8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1407
SELECT DISTINCT - MAX ( ALL - 8 ) col0 FROM tab2 AS cor0
----
8

query I rowsort
SELECT + 89 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

query I rowsort
SELECT ALL + 95 + + col0 AS col1 FROM tab1
----
146
180
186

query II rowsort
SELECT DISTINCT + col1 + col0 / - col1, + 98 AS col1 FROM tab1 WHERE ( NOT ( + 77 ) <= NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1411
SELECT COUNT( * ) + + 23 AS col0, + COUNT( * ) * + - CAST( - + ( + COUNT( * ) ) AS SIGNED ) AS col1 FROM tab2
----
26
9

skipif mysql # not compatible
query II rowsort label-1411
SELECT COUNT ( * ) + + 23 AS col0, + COUNT ( * ) * + - CAST ( - + ( + COUNT ( * ) ) AS INTEGER ) AS col1 FROM tab2
----
26
9

query I rowsort
SELECT DISTINCT - 12 + 89 AS col0 FROM tab2
----
77

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 82 + - col1 col1 FROM tab1
----
35
68
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1416
SELECT - 9 - COUNT( - col1 ) FROM tab0
----
-12

skipif mysql # not compatible
query I rowsort label-1416
SELECT - 9 - COUNT ( - col1 ) FROM tab0
----
-12

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1418
SELECT ALL - ( + - CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0 WHERE NULL <> - 14
----

skipif mysql # not compatible
query I rowsort label-1418
SELECT ALL - ( + - CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0 WHERE NULL <> - 14
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1419
SELECT - MIN( ALL col1 ) AS col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1419
SELECT - MIN ( ALL col1 ) AS col0 FROM tab0 AS cor0
----
-1

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

skipif mysql # not compatible
query I rowsort label-1420
SELECT + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL > col0
----
0

query I rowsort
SELECT ALL - col0 FROM tab2 AS cor0 WHERE 90 / col0 BETWEEN NULL AND + col1 * 48
----

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

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

query I rowsort
SELECT DISTINCT - 62 * col1 AS col0 FROM tab0
----
-1302
-5022
-62

query I rowsort
SELECT ALL col0 * + 77 AS col2 FROM tab2
----
3542
4928
5775

query I rowsort
SELECT ( + + col0 ) * + - 46 FROM tab2
----
-2116
-2944
-3450

query I rowsort
SELECT 9 * - - ( - col0 ) AS col2 FROM tab1
----
-459
-765
-819

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1429
SELECT DISTINCT - - COUNT( * ) AS col0, - ( - - CAST( + - 57 AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
3
57

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1430
SELECT + + 36 DIV - 82 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1430
SELECT + + 36 / - 82 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL 36 * - 30 + + col2 FROM tab2 AS cor0
----
-1022
-1040
-1057

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1434
SELECT DISTINCT col1 + + col2 - + 66 * - col0 * col2 col2, - CAST( - col2 AS SIGNED ) FROM tab0
----
46658
47
57451
10
633898
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1434
SELECT DISTINCT col1 + + col2 - + 66 * - col0 * col2 col2, - CAST ( - col2 AS INTEGER ) FROM tab0
----
46658
47
57451
10
633898
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1435
SELECT + + 21 + - CAST( - + MAX( ALL + col1 ) AS SIGNED ) FROM tab2 AS cor0
----
98

skipif mysql # not compatible
query I rowsort label-1435
SELECT + + 21 + - CAST ( - + MAX ( ALL + col1 ) AS INTEGER ) FROM tab2 AS cor0
----
98

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

skipif mysql # not compatible
query I rowsort label-1436
SELECT ALL - CAST ( + COUNT ( * ) AS INTEGER ) * - + 36 FROM tab0 AS cor0
----
108

query I rowsort
SELECT + col1 AS col0 FROM tab0 AS cor0 WHERE NULL > NULL
----

query I rowsort
SELECT ALL - + col2 AS col1 FROM tab0 AS cor0 WHERE NOT - col2 >= - + col0
----
-47
-99

query II rowsort
SELECT DISTINCT 58 * - col2, - col0 AS col0 FROM tab0 cor0
----
-2726
-15
-5742
-97
-580
-87

onlyif mysql # DIV for integer division: 
query II rowsort label-1440
SELECT ALL + col2 DIV + - 65, + col1 FROM tab0 AS cor0
----
-1
1
0
21
0
81

skipif mysql # not compatible
query II rowsort label-1440
SELECT ALL + col2 / + - 65, + col1 FROM tab0 AS cor0
----
-1
1
0
21
0
81

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

skipif mysql # not compatible
query I rowsort label-1441
SELECT DISTINCT COUNT ( * ) + - 30 FROM tab1
----
-27

query I rowsort
SELECT ALL col0 + + - 77 FROM tab0
----
-62
10
20

onlyif mysql # aggregate syntax: 
query I rowsort label-1443
SELECT DISTINCT - SUM( - 77 ) + - ( MIN( ALL col1 ) ) FROM tab0
----
230

skipif mysql # not compatible
query I rowsort label-1443
SELECT DISTINCT - SUM ( - 77 ) + - ( MIN ( ALL col1 ) ) FROM tab0
----
230

onlyif mysql # aggregate syntax: 
query I rowsort label-1444
SELECT DISTINCT + - SUM( col1 ) AS col1 FROM tab2 WHERE 15 >= - - col1 AND NOT ( NULL ) <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1444
SELECT DISTINCT + - SUM ( col1 ) AS col1 FROM tab2 WHERE 15 >= - - col1 AND NOT ( NULL ) <> NULL
----
NULL

query I rowsort
SELECT col2 * + + col0 - + col2 * col2 FROM tab2
----
529
960
986

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1446
SELECT ALL + + CAST( + - CAST( - + 6 AS SIGNED ) AS SIGNED ) DIV - - col0 * + col2 - - ( - - 16 ) AS col0 FROM tab0 AS cor0
----
16
16
16

skipif mysql # not compatible
query I rowsort label-1446
SELECT ALL + + CAST ( + - CAST ( - + 6 AS INTEGER ) AS INTEGER ) / - - col0 * + col2 - - ( - - 16 ) AS col0 FROM tab0 AS cor0
----
16
16
16

query I rowsort
SELECT col1 / - col1 FROM tab2 AS cor0 WHERE NULL > NULL
----

query I rowsort
SELECT ALL - 18 - + - col2 AS col0 FROM tab0 cor0
----
-8
29
81

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

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

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

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

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

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

query I rowsort
SELECT ALL ( + 87 ) * + 43 * - + col0 * + col0 FROM tab1 AS cor0
----
-27028725
-30979221
-9730341

onlyif mysql # aggregate syntax: 
query I rowsort label-1454
SELECT MIN( ALL col2 ) AS col1 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-1454
SELECT MIN ( ALL col2 ) AS col1 FROM tab0 AS cor0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-1455
SELECT - COUNT( - col0 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1455
SELECT - COUNT ( - col0 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

query I rowsort
SELECT 63 AS col1 FROM tab0 AS cor0 WHERE NOT + 3 IS NOT NULL
----

query I rowsort
SELECT ( col1 ) + - 81 * - - 46 AS col1 FROM tab2 WHERE NOT ( - col0 + + col1 ) IS NULL
----
-3649
-3659
-3675

query I rowsort
SELECT ALL - ( - 40 ) AS col1 FROM tab1
----
40
40
40

query I rowsort
SELECT - 26 * + + col0 AS col0 FROM tab1
----
-1326
-2210
-2366

onlyif mysql # DIV for integer division: 
query II rowsort label-1460
SELECT ( - col1 ) DIV - col0 - + 12 + 24, col0 FROM tab2
----
12
75
13
46
13
64

skipif mysql # not compatible
query II rowsort label-1460
SELECT ( - col1 ) / - col0 - + 12 + 24, col0 FROM tab2
----
12
75
13
46
13
64

query I rowsort
SELECT 85 * - col2 FROM tab1
----
-5015
-5780
-8160

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1463
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) / + 69 * col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-1463
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) / + 69 * col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1465
SELECT DISTINCT + 95 + - - COUNT( * ) AS col0 FROM tab1
----
98

skipif mysql # not compatible
query I rowsort label-1465
SELECT DISTINCT + 95 + - - COUNT ( * ) AS col0 FROM tab1
----
98

query I rowsort
SELECT ALL ( + 74 ) * + - col0 * + col2 FROM tab2
----
-189440
-321900
-78292

query I rowsort
SELECT DISTINCT + 54 * col1 AS col2 FROM tab1 AS cor0
----
2538
270
756

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1468
SELECT DISTINCT CAST( + col2 AS SIGNED ) DIV - col2 + 32 * CAST( col2 AS SIGNED ) * - col2 col2 FROM tab0 AS cor0
----
-313633
-3201
-70689

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1468
SELECT DISTINCT CAST ( + col2 AS INTEGER ) / - col2 + 32 * CAST ( col2 AS INTEGER ) * - col2 col2 FROM tab0 AS cor0
----
-313633
-3201
-70689

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1470
SELECT col2 + - - col2 AS col0, + col0 * - - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
118
NULL
136
NULL
192
NULL

skipif mysql # not compatible
query II rowsort label-1470
SELECT col2 + - - col2 AS col0, + col0 * - - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
118
NULL
136
NULL
192
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1471
SELECT ALL + col0 DIV col2 + - ( col1 ) * - col2 AS col1 FROM tab2
----
1175
3081
3887

skipif mysql # not compatible
query I rowsort label-1471
SELECT ALL + col0 / col2 + - ( col1 ) * - col2 AS col1 FROM tab2
----
1175
3081
3887

query II rowsort
SELECT ALL col0 + - col2 AS col2, + col0 FROM tab1
----
-45
51
23
91
26
85

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1475
SELECT - 18 * + + COUNT( * ) FROM tab2
----
-54

skipif mysql # not compatible
query I rowsort label-1475
SELECT - 18 * + + COUNT ( * ) FROM tab2
----
-54

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1477
SELECT ALL SUM( - + 57 ) * + - 42, COUNT( ALL + 39 ) AS col0 FROM tab0, tab0 AS cor0
----
21546
9

skipif mysql # not compatible
query II rowsort label-1477
SELECT ALL SUM ( - + 57 ) * + - 42, COUNT ( ALL + 39 ) AS col0 FROM tab0, tab0 AS cor0
----
21546
9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1478
SELECT * FROM tab0 WHERE NOT + 9 = + + CAST( + 16 AS SIGNED ) / + 87 - + + ( - - 85 ) * - col1 / + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1478
SELECT * FROM tab0 WHERE NOT + 9 = + + CAST ( + 16 AS INTEGER ) / + 87 - + + ( - - 85 ) * - col1 / + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query II rowsort label-1479
SELECT DISTINCT ( - col2 ) DIV + col1 AS col1, col0 FROM tab0 AS cor0
----
-99
97
0
15
0
87

skipif mysql # not compatible
query II rowsort label-1479
SELECT DISTINCT ( - col2 ) / + col1 AS col1, col0 FROM tab0 AS cor0
----
-99
97
0
15
0
87

query I rowsort
SELECT 84 AS col1 FROM tab0 AS cor0 WHERE NOT 64 / 66 IS NOT NULL
----

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT IN ( - 48 )
----

query I rowsort
SELECT ALL - col0 * + col1 * + + ( + ( - col0 ) ) + + 26 FROM tab1
----
36151
36440
389233

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 = col2
----

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

skipif mysql # not compatible
query I rowsort label-1486
SELECT ALL - col1 * CAST ( + col1 AS INTEGER ) AS col2 FROM tab0 WHERE NOT NULL < col2 + col2
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1488
SELECT 16 * - CAST( NULL AS SIGNED ) col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1488
SELECT 16 * - CAST ( NULL AS INTEGER ) col0 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT + 58 AS col1, ( - 93 ) + - 57 AS col2 FROM tab1 WHERE + col0 >= NULL
----

query I rowsort
SELECT - 91 * ( + - 66 ) FROM tab0 AS cor0
----
6006
6006
6006

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1492
SELECT + 74 + MAX( DISTINCT - col0 ) DIV + 97 AS col2 FROM tab0
----
74

skipif mysql # not compatible
query I rowsort label-1492
SELECT + 74 + MAX ( DISTINCT - col0 ) / + 97 AS col2 FROM tab0
----
74

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 5 * col2 <> - 72 * - + 81 * - col0 + 48 + 11 - - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1494
SELECT ALL - COUNT( * ) - + 2 AS col0 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-1494
SELECT ALL - COUNT ( * ) - + 2 AS col0 FROM tab1 AS cor0
----
-5

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1495
SELECT ALL + + 10 * col0 + 96 col0 FROM tab2 AS cor0 WHERE NOT NULL <> + CAST( 70 AS DECIMAL ) * - col0
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1495
SELECT ALL + + 10 * col0 + 96 col0 FROM tab2 AS cor0 WHERE NOT NULL <> + CAST ( 70 AS REAL ) * - col0
----

query I rowsort
SELECT ( + col0 ) * + 34 - - col1 FROM tab1
----
1748
2895
3141

query I rowsort
SELECT - 14 - col0 FROM tab2
----
-60
-78
-89

query I rowsort
SELECT ALL 66 - + col2 AS col1 FROM tab2
----
26
43
8

query II rowsort
SELECT col2, + 78 FROM tab0
----
10
78
47
78
99
78

onlyif mysql # aggregate syntax: 
query I rowsort label-1500
SELECT COUNT( * ) * + + 86 FROM tab1
----
258

skipif mysql # not compatible
query I rowsort label-1500
SELECT COUNT ( * ) * + + 86 FROM tab1
----
258

onlyif mysql # aggregate syntax: 
query I rowsort label-1501
SELECT ALL - COUNT( DISTINCT + 64 ) * + SUM( ALL 10 ) col1 FROM tab2
----
-30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1501
SELECT ALL - COUNT ( DISTINCT + 64 ) * + SUM ( ALL 10 ) col1 FROM tab2
----
-30

query I rowsort
SELECT ALL - col0 FROM tab1 WHERE ( NOT ( col0 / + - 93 + + 68 ) IS NULL )
----
-51
-85
-91

query I rowsort
SELECT col2 FROM tab0 WHERE NOT + - 73 + 73 + col2 IS NOT NULL
----

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1507
SELECT ALL + 57 * - col0, + col1 FROM tab0 AS cor0 WHERE NOT + CAST( + ( - col0 ) AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-1507
SELECT ALL + 57 * - col0, + col1 FROM tab0 AS cor0 WHERE NOT + CAST ( + ( - col0 ) AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 34 FROM tab2 WHERE - 89 + col0 - + col1 IS NOT NULL
----
-34

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1509
SELECT ALL - COUNT ( * ) / + MAX ( + col2 ) col2 FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 * + col1 col2, + col2 * - 98 FROM tab0
----
210
-980
3807
-4606
99
-9702

query II rowsort
SELECT col1 * 78, - 46 + + - col2 AS col1 FROM tab1
----
1092
-142
3666
-114
390
-105

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1512
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT IN ( CAST( + 30 AS SIGNED ), col0, - 59, - 39 )
----

skipif mysql # not compatible
query III rowsort label-1512
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT IN ( CAST ( + 30 AS INTEGER ), col0, - 59, - 39 )
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1514
SELECT ALL - 10 + CAST( NULL AS SIGNED ) / - + col1 AS col2, col1 * + CAST( col1 AS SIGNED ) col2 FROM tab2 AS cor0
----
NULL
2601
NULL
4489
NULL
5929

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1514
SELECT ALL - 10 + CAST ( NULL AS INTEGER ) / - + col1 AS col2, col1 * + CAST ( col1 AS INTEGER ) col2 FROM tab2 AS cor0
----
NULL
2601
NULL
4489
NULL
5929

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 * + col1 + + col2 > - col0
----

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

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

query I rowsort
SELECT - 32 * + 87 * + AVG ( ALL - col1 ) AS col0 FROM tab0 cor0 WHERE NOT ( NULL ) <> NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1519
SELECT DISTINCT - MIN( ALL - + col2 ) AS col2 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-1519
SELECT DISTINCT - MIN ( ALL - + col2 ) AS col2 FROM tab0
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-1520
SELECT DISTINCT - 17 DIV col2 * + + col1 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1520
SELECT DISTINCT - 17 / col2 * + + col1 AS col0 FROM tab2
----
0

query I rowsort
SELECT + col2 + - 56 + - 80 + + col0 * - - col1 FROM tab1
----
348
4209
674

query I rowsort
SELECT DISTINCT 6 + + col0 FROM tab2
----
52
70
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1523
SELECT + 85 + - + COUNT( + + 83 ) col0 FROM tab0
----
82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1523
SELECT + 85 + - + COUNT ( + + 83 ) col0 FROM tab0
----
82

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

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

query IIIIII rowsort
SELECT DISTINCT * FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE NOT ( NULL ) >= NULL
----

query II rowsort
SELECT 51 + + col0 AS col2, - 84 AS col0 FROM tab2 AS cor0
----
115
-84
126
-84
97
-84

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 88 IS NULL
----

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

query I rowsort
SELECT - ( + col2 ) + + 80 FROM tab2 AS cor0
----
22
40
57

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1530
SELECT DISTINCT col1 - + col0 - + - col1 + - col1 AS col2, - CAST( + col2 AS SIGNED ) * - - col0 + - col2 + + 82 + 96 + + col1 + + + 35 FROM tab1 AS cor0
----
-37
-4765
-44
-5996
-80
-4856

skipif mysql # not compatible
query II rowsort label-1530
SELECT DISTINCT col1 - + col0 - + - col1 + - col1 AS col2, - CAST ( + col2 AS INTEGER ) * - - col0 + - col2 + + 82 + 96 + + col1 + + + 35 FROM tab1 AS cor0
----
-37
-4765
-44
-5996
-80
-4856

query I rowsort
SELECT ALL + + 52 * + + 48 FROM tab2 AS cor0
----
2496
2496
2496

query I rowsort
SELECT ( 63 ) AS col1 FROM tab0
----
63
63
63

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - + 88 > - - col0 + - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

query I rowsort
SELECT ALL 63 * + col0 FROM tab0
----
5481
6111
945

query I rowsort
SELECT ALL + col1 AS col0 FROM tab2 WHERE NULL IS NULL
----
51
67
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1537
SELECT - 78 DIV - COUNT( * ) AS col1 FROM tab1
----
26

skipif mysql # not compatible
query I rowsort label-1537
SELECT - 78 / - COUNT ( * ) AS col1 FROM tab1
----
26

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1541
SELECT DISTINCT + col0 * col1 * col2 DIV - col0 AS col1 FROM tab1
----
-1344
-295
-3196

skipif mysql # not compatible
query I rowsort label-1541
SELECT DISTINCT + col0 * col1 * col2 / - col0 AS col1 FROM tab1
----
-1344
-295
-3196

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1543
SELECT - 79 * - COUNT( * ) + + COUNT( * ) * - 59 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
180

skipif mysql # not compatible
query I rowsort label-1543
SELECT - 79 * - COUNT ( * ) + + COUNT ( * ) * - 59 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
180

query I rowsort
SELECT DISTINCT 7 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 19 col2 FROM tab1
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1546
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col2 * + - CAST( NULL AS SIGNED ) * 91 IS NULL
----

skipif mysql # not compatible
query III rowsort label-1546
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col2 * + - CAST ( NULL AS INTEGER ) * 91 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-1547
SELECT DISTINCT 61 DIV + MAX( DISTINCT col1 ) col0 FROM tab2 cor0 WHERE CAST( - - col0 AS DECIMAL ) IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1547
SELECT DISTINCT 61 / + MAX ( DISTINCT col1 ) col0 FROM tab2 cor0 WHERE CAST ( - - col0 AS REAL ) IS NOT NULL
----
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1549
SELECT ALL - - 90 * - ( + col1 ) + CAST( col1 AS SIGNED ) col1 FROM tab2 AS cor0
----
-4539
-5963
-6853

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1549
SELECT ALL - - 90 * - ( + col1 ) + CAST ( col1 AS INTEGER ) col1 FROM tab2 AS cor0
----
-4539
-5963
-6853

query I rowsort
SELECT ALL - col1 AS col0 FROM tab2 cor0 WHERE NOT - 18 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 72 col1 FROM tab2 AS cor0 WHERE NOT - col0 + col2 * 56 * + 67 + - 52 * - - col1 IS NOT NULL
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1554
SELECT ALL COUNT( * ) FROM tab2 AS cor0 WHERE NULL > col2
----
0

skipif mysql # not compatible
query I rowsort label-1554
SELECT ALL COUNT ( * ) FROM tab2 AS cor0 WHERE NULL > col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1555
SELECT ALL + ( COUNT( * ) ) + - COUNT( * ) + + + 14 * COUNT( + + ( + 90 ) ) * + + COUNT( * ) FROM tab2 AS cor0
----
126

skipif mysql # not compatible
query I rowsort label-1555
SELECT ALL + ( COUNT ( * ) ) + - COUNT ( * ) + + + 14 * COUNT ( + + ( + 90 ) ) * + + COUNT ( * ) FROM tab2 AS cor0
----
126

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1557
SELECT DISTINCT - col1 DIV - - col0 + ( 82 ) AS col0 FROM tab2
----
81
82

skipif mysql # not compatible
query I rowsort label-1557
SELECT DISTINCT - col1 / - - col0 + ( 82 ) AS col0 FROM tab2
----
81
82

onlyif mysql # DIV for integer division: 
query I rowsort label-1558
SELECT - col2 + + 27 DIV 81 FROM tab0 AS cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-1558
SELECT - col2 + + 27 / 81 FROM tab0 AS cor0
----
-10
-47
-99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - col0 ) < ( col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 92 + col1 * + col1 + + col2 col1 FROM tab2
----
2716
4639
6061

query I rowsort
SELECT - 24 * - 42 + + 59 AS col0 FROM tab1
----
1067
1067
1067

query I rowsort
SELECT DISTINCT + col0 * - col2 * + - 94 - + 78 + + 66 FROM tab1 AS cor0
----
460212
471398
581660

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1565
SELECT ALL MAX( ALL col2 ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-1565
SELECT ALL MAX ( ALL col2 ) FROM tab1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1566
SELECT + MAX( - + 28 ) * - 82 AS col1 FROM tab0
----
2296

skipif mysql # not compatible
query I rowsort label-1566
SELECT + MAX ( - + 28 ) * - 82 AS col1 FROM tab0
----
2296

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 48 < NULL
----

query II rowsort
SELECT DISTINCT + - col2 + - col2, - 52 * 0 AS col2 FROM tab2 WHERE NOT + 60 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1572
SELECT DISTINCT - - COUNT( * ) * SUM( - 74 ) FROM tab1 AS cor0
----
-666

skipif mysql # not compatible
query I rowsort label-1572
SELECT DISTINCT - - COUNT ( * ) * SUM ( - 74 ) FROM tab1 AS cor0
----
-666

query I rowsort
SELECT DISTINCT - + 24 * - col2 AS col0 FROM tab2 cor0
----
1392
552
960

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

query I rowsort
SELECT ALL 51 * - col1 AS col0 FROM tab1 AS cor0
----
-2397
-255
-714

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

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

query I rowsort
SELECT DISTINCT + 91 + + col1 * + col1 FROM tab0 AS cor0
----
532
6652
92

query I rowsort
SELECT ALL - 51 * + 5 FROM tab1 AS cor0
----
-255
-255
-255

query I rowsort
SELECT + 30 + + col0 AS col2 FROM tab2 cor0
----
105
76
94

query I rowsort
SELECT - col0 + col1 * + col1 AS col2 FROM tab1
----
-60
145
2118

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1581
SELECT CAST( NULL AS DECIMAL ) * + 86 + - 0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1581
SELECT CAST ( NULL AS REAL ) * + 86 + - 0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1582
SELECT DISTINCT + COUNT( * ) * + 50 + 54 AS col0 FROM tab2
----
204

skipif mysql # not compatible
query I rowsort label-1582
SELECT DISTINCT + COUNT ( * ) * + 50 + 54 AS col0 FROM tab2
----
204

query I rowsort
SELECT DISTINCT 78 FROM tab1 WHERE ( NULL ) >= NULL
----

query I rowsort
SELECT DISTINCT + 54 - + + ( + 84 ) AS col1 FROM tab0
----
-30

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 72 IS NOT NULL
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1587
SELECT ALL - 11 DIV + ( - - col2 ) FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1587
SELECT ALL - 11 / + ( - - col2 ) FROM tab0 AS cor0
----
-1
0
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1589
SELECT - col0 - - col0 DIV col2 FROM tab2 AS cor0
----
-44
-63
-74

skipif mysql # not compatible
query I rowsort label-1589
SELECT - col0 - - col0 / col2 FROM tab2 AS cor0
----
-44
-63
-74

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

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE NOT col0 <= + col2
----
85
91

query II rowsort
SELECT + 37 * - col1 AS col0, 35 AS col0 FROM tab0 AS cor0
----
-2997
35
-37
35
-777
35

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1594
SELECT ALL + + col1 DIV + CAST( col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1594
SELECT ALL + + col1 / + CAST ( col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL 47 * 15 AS col1 FROM tab2 AS cor0
----
705
705
705

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

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

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

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

query I rowsort
SELECT ALL - - col1 / - - 98 + + - col2 FROM tab1 WHERE NOT NULL >= + - 73
----

query II rowsort
SELECT ALL + col1, col2 * - col2 FROM tab2
----
51
-529
67
-3364
77
-1600

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1601
SELECT DISTINCT - COUNT( * ) * + + COUNT( DISTINCT - 19 ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1601
SELECT DISTINCT - COUNT ( * ) * + + COUNT ( DISTINCT - 19 ) FROM tab1 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1602
SELECT DISTINCT 32 * COUNT( * ) AS col0 FROM tab0 WHERE NOT ( + col0 * - col2 ) BETWEEN 8 AND 65 * - 21
----
96

skipif mysql # not compatible
query I rowsort label-1602
SELECT DISTINCT 32 * COUNT ( * ) AS col0 FROM tab0 WHERE NOT ( + col0 * - col2 ) BETWEEN 8 AND 65 * - 21
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1603
SELECT ALL - MAX( ALL + 12 ) FROM tab0
----
-12

skipif mysql # not compatible
query I rowsort label-1603
SELECT ALL - MAX ( ALL + 12 ) FROM tab0
----
-12

query I rowsort
SELECT - ( 35 ) * col1 + - ( + 29 ) FROM tab1
----
-1674
-204
-519

query I rowsort
SELECT - ( - 97 ) + + col0 AS col0 FROM tab2 WHERE ( NULL ) BETWEEN ( col2 * - 94 ) AND col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
46
64
75

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab0 WHERE col2 * col1 > ( col0 * + col0 )
----
81

query III rowsort
SELECT * FROM tab1 WHERE NOT ( 27 + - 21 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col0 + col2 FROM tab0 WHERE 52 / ( - col1 ) IS NOT NULL
----
196
62
97

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1611
SELECT DISTINCT 96 - COUNT( * ) * COUNT( * ) FROM tab0
----
87

skipif mysql # not compatible
query I rowsort label-1611
SELECT DISTINCT 96 - COUNT ( * ) * COUNT ( * ) FROM tab0
----
87

query I rowsort
SELECT DISTINCT 92 + + 76 FROM tab2 WHERE col2 <= NULL
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1615
SELECT col0 + + 22 DIV - 95 AS col0 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-1615
SELECT col0 + + 22 / - 95 AS col0 FROM tab2
----
46
64
75

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1618
SELECT COUNT( * ) FROM tab2 WHERE col2 * + col1 + 87 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1618
SELECT COUNT ( * ) FROM tab2 WHERE col2 * + col1 + 87 IS NULL
----
0

query I rowsort
SELECT DISTINCT col2 * + 92 FROM tab2
----
2116
3680
5336

query I rowsort
SELECT DISTINCT col1 * ( col2 ) AS col2 FROM tab1
----
1344
295
3196

query I rowsort
SELECT DISTINCT - col0 FROM tab0 WHERE NOT NULL BETWEEN col0 AND - 92
----

query I rowsort
SELECT ALL col1 * - 92 AS col2 FROM tab1
----
-1288
-4324
-460

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1624
SELECT DISTINCT - COUNT( * ) - CAST( + 4 AS SIGNED ) DIV 43 AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-1624
SELECT DISTINCT - COUNT ( * ) - CAST ( + 4 AS INTEGER ) / 43 AS col0 FROM tab2
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-1625
SELECT col2 DIV ( - col0 * col0 ) FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1625
SELECT col2 / ( - col0 * col0 ) FROM tab1
----
0
0
0

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

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

query I rowsort
SELECT 96 + + col2 AS col1 FROM tab2
----
119
136
154

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1628
SELECT * FROM tab0 AS cor0 WHERE + col2 + + col0 NOT IN ( - 56 * CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-1628
SELECT * FROM tab0 AS cor0 WHERE + col2 + + col0 NOT IN ( - 56 * CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE + 97 IS NOT NULL
----
-10
-47
-99

query I rowsort
SELECT DISTINCT 62 + col0 AS col2 FROM tab2 AS cor0
----
108
126
137

onlyif mysql # aggregate syntax: 
query I rowsort label-1631
SELECT DISTINCT COUNT( * ) + 45 * - 28 AS col1 FROM tab1 WHERE NOT - col0 IS NULL
----
-1257

skipif mysql # not compatible
query I rowsort label-1631
SELECT DISTINCT COUNT ( * ) + 45 * - 28 AS col1 FROM tab1 WHERE NOT - col0 IS NULL
----
-1257

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + col2 ) * - col2 col0 FROM tab0
----
100
2209
9801

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

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

query I rowsort
SELECT + 21 FROM tab2 AS cor0 CROSS JOIN tab2
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1636
SELECT ALL - 69 / - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1636
SELECT ALL - 69 / - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 FROM tab0 cor0 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT - col0 / ( + 42 ) + col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( - col2 )
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1640
SELECT ALL - - 66 DIV - 34 AS col0 FROM tab2 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1640
SELECT ALL - - 66 / - 34 AS col0 FROM tab2 cor0
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1641
SELECT * FROM tab2 AS cor0 WHERE NOT ( - col1 + - col0 * + CAST( 86 * + ( - col2 ) + + col1 AS SIGNED ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-1641
SELECT * FROM tab2 AS cor0 WHERE NOT ( - col1 + - col0 * + CAST ( 86 * + ( - col2 ) + + col1 AS INTEGER ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1642
SELECT - COUNT( + 76 ) * 78 AS col0 FROM tab2 AS cor0
----
-234

skipif mysql # not compatible
query I rowsort label-1642
SELECT - COUNT ( + 76 ) * 78 AS col0 FROM tab2 AS cor0
----
-234

query III rowsort
SELECT ALL * FROM tab0 WHERE ( col1 ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT - 41 * + col0 AS col0 FROM tab0
----
-3567
-3977
-615

onlyif mysql # aggregate syntax: 
query I rowsort label-1645
SELECT ALL COUNT( * ) * + 18 FROM tab2
----
54

skipif mysql # not compatible
query I rowsort label-1645
SELECT ALL COUNT ( * ) * + 18 FROM tab2
----
54

onlyif mysql # DIV for integer division: 
query I rowsort label-1646
SELECT ALL 81 DIV col1 FROM tab1
----
1
16
5

skipif mysql # not compatible
query I rowsort label-1646
SELECT ALL 81 / col1 FROM tab1
----
1
16
5

onlyif mysql # DIV for integer division: 
query I rowsort label-1647
SELECT DISTINCT col0 * 85 DIV 6 AS col0 FROM tab1
----
1204
1289
722

skipif mysql # not compatible
query I rowsort label-1647
SELECT DISTINCT col0 * 85 / 6 AS col0 FROM tab1
----
1204
1289
722

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1648
SELECT SUM( DISTINCT 61 ) DIV 2 AS col0 FROM tab2
----
30

skipif mysql # not compatible
query I rowsort label-1648
SELECT SUM ( DISTINCT 61 ) / 2 AS col0 FROM tab2
----
30

query I rowsort
SELECT - col2 AS col1 FROM tab0 WHERE NOT NULL >= + col0 + + 62 * - col0
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL = + col0 * 12 + col2
----

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1655
SELECT ALL ( CAST( - col1 AS SIGNED ) ) + col2 AS col2 FROM tab1
----
21
54
82

skipif mysql # not compatible
query I rowsort label-1655
SELECT ALL ( CAST ( - col1 AS INTEGER ) ) + col2 AS col2 FROM tab1
----
21
54
82

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1657
SELECT ALL + 94 - ( ( + COUNT( * ) ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
85

skipif mysql # not compatible
query I rowsort label-1657
SELECT ALL + 94 - ( ( + COUNT ( * ) ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
85

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT 53 <= NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1660
SELECT ALL - - MAX( 74 ) FROM tab1 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-1660
SELECT ALL - - MAX ( 74 ) FROM tab1 AS cor0
----
74

query I rowsort
SELECT ALL - 66 + - - col2 AS col2 FROM tab0 AS cor0
----
-19
-56
33

query I rowsort
SELECT - + col2 * - 96 + + + 48 FROM tab1 AS cor0
----
5712
6576
9264

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1664
SELECT - - COUNT( * ) DIV + COUNT( * ) + + + 89 FROM tab1 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-1664
SELECT - - COUNT ( * ) / + COUNT ( * ) + + + 89 FROM tab1 AS cor0
----
90

query I rowsort
SELECT - col0 + + - col2 AS col1 FROM tab0 AS cor0
----
-196
-62
-97

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

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

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

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

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

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

query III rowsort
SELECT * FROM tab0 WHERE + 62 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1670
SELECT ALL COUNT( * ) + + - 66 + + 73 * + 79 + SUM( DISTINCT + col0 + 78 ) FROM tab1
----
6165

skipif mysql # not compatible
query I rowsort label-1670
SELECT ALL COUNT ( * ) + + - 66 + + 73 * + 79 + SUM ( DISTINCT + col0 + 78 ) FROM tab1
----
6165

query III rowsort
SELECT * FROM tab1 WHERE col1 + - 20 BETWEEN col2 / 88 AND - col2 * + 80
----

query I rowsort
SELECT ALL + col1 + col2 * - - col0 FROM tab0
----
786
891
9604

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

query I rowsort
SELECT DISTINCT 87 + 94 - col1 + + col1 - 96 * col1 FROM tab0
----
-1835
-7595
85

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1677
SELECT + MAX( DISTINCT - 57 ) + - 42 FROM tab0 WHERE NOT 96 <> + 30
----
NULL

skipif mysql # not compatible
query I rowsort label-1677
SELECT + MAX ( DISTINCT - 57 ) + - 42 FROM tab0 WHERE NOT 96 <> + 30
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1678
SELECT + - COUNT( * ) AS col2, SUM( DISTINCT 85 ) + 69 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9
154

skipif mysql # not compatible
query II rowsort label-1678
SELECT + - COUNT ( * ) AS col2, SUM ( DISTINCT 85 ) + 69 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9
154

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1681
SELECT ALL MAX( ( + 3 ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-1681
SELECT ALL MAX ( ( + 3 ) ) FROM tab2
----
3

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1683
SELECT DISTINCT col0 * col0 AS col2 FROM tab1 AS cor0 WHERE + 83 = + ( - - 80 ) * + CAST( NULL AS DECIMAL ) + col0
----

skipif mysql # not compatible
query I rowsort label-1683
SELECT DISTINCT col0 * col0 AS col2 FROM tab1 AS cor0 WHERE + 83 = + ( - - 80 ) * + CAST ( NULL AS REAL ) + col0
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1686
SELECT - SUM( - + 90 ) + + 67 FROM tab1 AS cor0 WHERE NOT NULL IN ( col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1686
SELECT - SUM ( - + 90 ) + + 67 FROM tab1 AS cor0 WHERE NOT NULL IN ( col2 )
----
NULL

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

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

query I rowsort
SELECT col0 * - + 56 FROM tab0 AS cor0
----
-4872
-5432
-840

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1691
SELECT DISTINCT ( + - ( + MAX( DISTINCT + ( + 96 ) ) ) ) AS col1 FROM tab0 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-1691
SELECT DISTINCT ( + - ( + MAX ( DISTINCT + ( + 96 ) ) ) ) AS col1 FROM tab0 AS cor0
----
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-1692
SELECT ALL - col1 DIV - 85 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1692
SELECT ALL - col1 / - 85 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1693
SELECT ALL 78 DIV - + col0 AS col1 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1693
SELECT ALL 78 / - + col0 AS col1 FROM tab2
----
-1
-1
-1

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + 32 ) >= - col1 / - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1695
SELECT ALL + CAST( + 74 AS SIGNED ) FROM tab0
----
74
74
74

skipif mysql # not compatible
query I rowsort label-1695
SELECT ALL + CAST ( + 74 AS INTEGER ) FROM tab0
----
74
74
74

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

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

query II rowsort
SELECT + col0, + 93 * col2 FROM tab0 AS cor0
----
15
4371
87
930
97
9207

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

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

query I rowsort
SELECT ALL + - 44 * col0 * - 55 AS col2 FROM tab1 AS cor0
----
123420
205700
220220

query I rowsort
SELECT DISTINCT - col1 + + + 90 + col1 FROM tab0
----
90

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1703
SELECT DISTINCT CAST( + col2 AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE NOT ( 37 + 80 ) NOT BETWEEN - 57 * col0 AND ( col0 )
----

skipif mysql # not compatible
query I rowsort label-1703
SELECT DISTINCT CAST ( + col2 AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE NOT ( 37 + 80 ) NOT BETWEEN - 57 * col0 AND ( col0 )
----

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

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

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

query I rowsort
SELECT ALL + 30 + + col2 FROM tab1 AS cor0 WHERE NOT ( ( NOT - col0 - col0 IN ( + - 5 ) ) )
----

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

query I rowsort
SELECT + ( - ( col0 ) ) - col2 AS col1 FROM tab2
----
-104
-133
-69

query I rowsort
SELECT + 50 - + col2 FROM tab2
----
-8
10
27

query III rowsort
SELECT * FROM tab0 WHERE NULL < + col0 + - + 72
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1711
SELECT ALL - 75 + - col2 DIV - - col0 AS col2 FROM tab2
----
-75
-75
-75

skipif mysql # not compatible
query I rowsort label-1711
SELECT ALL - 75 + - col2 / - - col0 AS col2 FROM tab2
----
-75
-75
-75

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

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

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

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

query II rowsort
SELECT + col1 * - col0 + + - 56, + col2 FROM tab0
----
-1271
47
-153
99
-1883
10

onlyif mysql # aggregate syntax: 
query I rowsort label-1715
SELECT ALL + 43 - - MAX( DISTINCT + col2 ) AS col1 FROM tab2
----
101

skipif mysql # not compatible
query I rowsort label-1715
SELECT ALL + 43 - - MAX ( DISTINCT + col2 ) AS col1 FROM tab2
----
101

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

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

skipif mysql # not compatible
query I rowsort label-1717
SELECT ALL - + COUNT ( * ) * - 41 * - 3 FROM tab1 AS cor0
----
-369

query I rowsort
SELECT DISTINCT col2 * - 52 * + + col1 FROM tab1
----
-15340
-166192
-69888

query II rowsort
SELECT + col2 * 83, + col0 + + - col1 AS col1 FROM tab0
----
3901
-66
8217
96
830
66

query I rowsort
SELECT + col0 * + + col0 AS col1 FROM tab1 cor0
----
2601
7225
8281

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

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

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

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + ( - col1 ) BETWEEN + 10 AND + + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-1724
SELECT SUM( DISTINCT - 67 ) AS col1, + 12 FROM tab0 AS cor0
----
-67
12

skipif mysql # not compatible
query II rowsort label-1724
SELECT SUM ( DISTINCT - 67 ) AS col1, + 12 FROM tab0 AS cor0
----
-67
12

query I rowsort
SELECT ALL - - 71 + + 30 FROM tab0 AS cor0
----
101
101
101

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

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

query I rowsort
SELECT + col1 * + - 28 AS col2 FROM tab2
----
-1428
-1876
-2156

query I rowsort
SELECT 71 * + col2 AS col0 FROM tab2
----
1633
2840
4118

onlyif mysql # DIV for integer division: 
query I rowsort label-1729
SELECT ALL - 42 DIV - - col0 * + ( col0 ) AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1729
SELECT ALL - 42 / - - col0 * + ( col0 ) AS col2 FROM tab1
----
0
0
0

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

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

query III rowsort
SELECT * FROM tab0 WHERE ( + 22 ) IN ( - 40 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 NOT BETWEEN - col1 AND - - 86
----
85
5
59
91
47
68

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

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

query I rowsort
SELECT - ( 78 ) * col0 * + - col2 AS col1 FROM tab0 AS cor0
----
54990
67860
749034

onlyif mysql # aggregate syntax: 
query I rowsort label-1737
SELECT DISTINCT 1 * + MIN( ALL + col1 ) AS col2 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-1737
SELECT DISTINCT 1 * + MIN ( ALL + col1 ) AS col2 FROM tab2 AS cor0
----
51

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1739
SELECT * FROM tab2 AS cor0 WHERE col2 <= ( 6 * + - col1 + - - col2 * CAST( NULL AS SIGNED ) * + 1 )
----

skipif mysql # not compatible
query III rowsort label-1739
SELECT * FROM tab2 AS cor0 WHERE col2 <= ( 6 * + - col1 + - - col2 * CAST ( NULL AS INTEGER ) * + 1 )
----

query I rowsort
SELECT 50 * + 41 FROM tab1
----
2050
2050
2050

query I rowsort
SELECT 3 FROM tab1 WHERE + col0 * + 58 * col0 IS NULL
----

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

query II rowsort
SELECT + - 1 + col0 * - col1 * + - col1 + + col1 * + ( + col2 ) AS col2, col0 FROM tab1 AS cor0
----
11339
51
204214
91
2419
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + col1 * - - ( + 75 ) col2 FROM tab1 AS cor0
----
290
3434
999

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 53 col1, col0 col0 FROM tab0 AS cor0
----
53
15
53
87
53
97

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

query I rowsort
SELECT - 59 + - col2 * col2 FROM tab1 AS cor0
----
-3540
-4683
-9275

onlyif mysql # DIV for integer division: 
query I rowsort label-1748
SELECT + ( + 52 ) + col2 DIV + 91 FROM tab0 AS cor0
----
52
52
53

skipif mysql # not compatible
query I rowsort label-1748
SELECT + ( + 52 ) + col2 / + 91 FROM tab0 AS cor0
----
52
52
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 * + - col0 col1, col2 FROM tab1
----
-4896
96
-5015
59
-6188
68

query III rowsort
SELECT ALL * FROM tab0 WHERE 36 IS NULL
----

query I rowsort
SELECT DISTINCT + ( - 45 ) AS col2 FROM tab0
----
-45

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

skipif mysql # not compatible
query I rowsort label-1752
SELECT DISTINCT - COUNT ( ALL ( - 44 ) ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
-9

query I rowsort
SELECT ALL - 19 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 339c9d62143bf2f7566b89a1b56eeeb4

query I rowsort
SELECT + + col1 + + + col1 * + 7 AS col2 FROM tab0 cor0
----
168
648
8

query I rowsort
SELECT col1 + + + col1 * - - col2 AS col2 FROM tab0 cor0
----
100
231
3888

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 81 + - 14 IS NULL
----

query I rowsort
SELECT ALL + - 30 * - 50 AS col1 FROM tab0 AS cor0
----
1500
1500
1500

query I rowsort
SELECT DISTINCT - ( + - 58 ) * + 30 FROM tab1 AS cor0
----
1740

onlyif mysql # aggregate syntax: 
query I rowsort label-1760
SELECT DISTINCT - COUNT( * ) * + 96 AS col0 FROM tab2 AS cor0
----
-288

skipif mysql # not compatible
query I rowsort label-1760
SELECT DISTINCT - COUNT ( * ) * + 96 AS col0 FROM tab2 AS cor0
----
-288

query II rowsort
SELECT DISTINCT + + 46, + 87 AS col2 FROM tab2 AS cor0
----
46
87

query I rowsort
SELECT 47 * - 87 * 92 AS col0 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( 78 )
----

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1766
SELECT DISTINCT - CAST ( - 35 AS INTEGER ) FROM tab2
----
35

query I rowsort
SELECT + 37 * + 1 AS col2 FROM tab1
----
37
37
37

query I rowsort
SELECT + col1 * - 81 + - 40 FROM tab2 AS cor0
----
-4171
-5467
-6277

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 LEFT OUTER JOIN tab1 AS cor1 ON NOT NULL IS NOT NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1771
SELECT ALL - CAST( + - 16 AS SIGNED ) * + col2 - col2 + + - col0, + 76 * + + col2 * - + col0 DIV - CAST( - - col0 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
1388
7524
63
760
690
3572

skipif mysql # not compatible
query II rowsort label-1771
SELECT ALL - CAST ( + - 16 AS INTEGER ) * + col2 - col2 + + - col0, + 76 * + + col2 * - + col0 / - CAST ( - - col0 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
1388
7524
63
760
690
3572

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1772
SELECT col2 AS col1, - CAST( - 77 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
59
77
68
77
96
77

skipif mysql # not compatible
query II rowsort label-1772
SELECT col2 AS col1, - CAST ( - 77 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
59
77
68
77
96
77

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

query I rowsort
SELECT DISTINCT 40 - + 1 AS col0 FROM tab0 cor0
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-1775
SELECT DISTINCT - 18 DIV 59 * col2 - - + col2 AS col0 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-1775
SELECT DISTINCT - 18 / 59 * col2 - - + col2 AS col0 FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT 88 * + col1 FROM tab2 cor0 WHERE - col1 IS NOT NULL
----
4488
5896
6776

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1778
SELECT - + 38 DIV - + col1 FROM tab2 WHERE NOT + 98 * - col1 IS NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1778
SELECT - + 38 / - + col1 FROM tab2 WHERE NOT + 98 * - col1 IS NULL
----
0
0
0

onlyif mysql # DIV for integer division: 
query II rowsort label-1779
SELECT + col1 AS col0, + 17 DIV + col1 FROM tab1
----
14
1
47
0
5
3

skipif mysql # not compatible
query II rowsort label-1779
SELECT + col1 AS col0, + 17 / + col1 FROM tab1
----
14
1
47
0
5
3

query I rowsort
SELECT + + col1 / - 34 AS col2 FROM tab1 WHERE NOT ( + ( - col0 ) ) * 78 - + col1 - + col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 45 AS col1 FROM tab1 WHERE NOT + col1 <> 59 + 5
----

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

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

query I rowsort
SELECT DISTINCT - ( 0 ) FROM tab1
----
0

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

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

skipif mysql # not compatible
query I rowsort label-1785
SELECT + COUNT ( * ) / 32 AS col0 FROM tab2
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + - 84 <> NULL
----

query I rowsort
SELECT col1 * - 70 * + col2 AS col1 FROM tab0
----
-14700
-266490
-6930

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

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

query I rowsort
SELECT DISTINCT - ( - + col0 ) AS col1 FROM tab2
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1790
SELECT DISTINCT + CAST( - 15 AS SIGNED ) col2 FROM tab1
----
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1790
SELECT DISTINCT + CAST ( - 15 AS INTEGER ) col2 FROM tab1
----
-15

query I rowsort
SELECT ALL + col0 FROM tab2 AS cor0 WHERE + col1 * - - 18 / + col0 IS NULL
----

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

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

query I rowsort
SELECT DISTINCT - col2 FROM tab2 WHERE 92 * + col0 + col2 + + + 34 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1794
SELECT COUNT( * ) FROM tab0 WHERE NOT col0 * + col1 + + - col0 * - CAST( NULL AS SIGNED ) / - col1 * - col0 <= - 27 * - 44 * + 6
----
0

skipif mysql # not compatible
query I rowsort label-1794
SELECT COUNT ( * ) FROM tab0 WHERE NOT col0 * + col1 + + - col0 * - CAST ( NULL AS INTEGER ) / - col1 * - col0 <= - 27 * - 44 * + 6
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 NOT IN ( ( - - col2 ) * ( 20 ), ( + col1 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1796
SELECT - 21 * - CAST( - col2 AS SIGNED ) * + - col2 FROM tab0
----
205821
2100
46389

skipif mysql # not compatible
query I rowsort label-1796
SELECT - 21 * - CAST ( - col2 AS INTEGER ) * + - col2 FROM tab0
----
205821
2100
46389

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 NOT BETWEEN + col2 AND + col1 + + 84
----
15
81
47
87
21
10

query I rowsort
SELECT DISTINCT + - col0 + + 77 FROM tab2 AS cor0
----
13
2
31

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

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

query I rowsort
SELECT col2 * + - col0 + 11 FROM tab1
----
-4885
-5004
-6177

query I rowsort
SELECT col1 * + col2 + + - col1 + 84 FROM tab1
----
1414
3233
374

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1803
SELECT col0 + + col0 * + col1 + + col0 + + CAST( - 59 AS SIGNED ) FROM tab1
----
4400
536
757

skipif mysql # not compatible
query I rowsort label-1803
SELECT col0 + + col0 * + col1 + + col0 + + CAST ( - 59 AS INTEGER ) FROM tab1
----
4400
536
757

onlyif mysql # DIV for integer division: 
query II rowsort label-1804
SELECT ALL col1 DIV + + col0 + + + col1 AS col1, col2 AS col1 FROM tab2
----
52
23
67
58
78
40

skipif mysql # not compatible
query II rowsort label-1804
SELECT ALL col1 / + + col0 + + + col1 AS col1, col2 AS col1 FROM tab2
----
52
23
67
58
78
40

onlyif mysql # DIV for integer division: 
query I rowsort label-1805
SELECT DISTINCT col0 + + - ( - col0 ) DIV - col1 FROM tab0
----
0
15
83

skipif mysql # not compatible
query I rowsort label-1805
SELECT DISTINCT col0 + + - ( - col0 ) / - col1 FROM tab0
----
0
15
83

query I rowsort
SELECT + + col1 * - col0 * - col1 - + col1 + + col2 FROM tab2 AS cor0
----
119618
336666
379419

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1807
SELECT + 71 DIV - COUNT( * ) * + - COUNT( DISTINCT 70 ) FROM tab1 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-1807
SELECT + 71 / - COUNT ( * ) * + - COUNT ( DISTINCT 70 ) FROM tab1 AS cor0
----
23

query II rowsort
SELECT + + 60 AS col1, + col0 + - col0 AS col1 FROM tab2 AS cor0
----
60
0
60
0
60
0

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

query I rowsort
SELECT - - col1 * - col0 * - col2 + - 89 FROM tab1 AS cor0
----
24986
290747
68455

query III rowsort
SELECT ALL * FROM tab2 WHERE ( + + 0 + col2 - + col2 + + 62 / - - 35 - - ( 63 ) / - col0 ) IS NULL
----

query I rowsort
SELECT DISTINCT 0 - + col2 AS col2 FROM tab2
----
-23
-40
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 - 24 * 44 col1 FROM tab0 AS cor0
----
-1009
-1046
-957

query I rowsort
SELECT - col1 + + col1 + col2 + - 49 + + col0 * - col2 + + col2 FROM tab0 AS cor0
----
-660
-899
-9454

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NOT col1 * 47 + + + 54 <> + col1 )
----

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

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

query I rowsort
SELECT DISTINCT - 13 * + 13 AS col2 FROM tab2
----
-169

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1819
SELECT ALL + 87 DIV - col2 AS col2 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-1819
SELECT ALL + 87 / - col2 AS col2 FROM tab1
----
-1
-1
0

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

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

query I rowsort
SELECT - - 63 FROM tab2 WHERE NOT - ( + col2 ) NOT BETWEEN + col0 AND + + 30 + col1
----

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

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

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

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

query I rowsort
SELECT 20 + - ( + col0 ) AS col0 FROM tab1
----
-31
-65
-71

query I rowsort
SELECT ALL + - col1 FROM tab1 WHERE NOT ( NOT 69 IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1826
SELECT + - CAST( - + 27 AS SIGNED ) + - 71 * + - ( + col2 ) + col2 AS col1, + col2 FROM tab2 cor0
----
1683
23
2907
40
4203
58

skipif mysql # not compatible
query II rowsort label-1826
SELECT + - CAST ( - + 27 AS INTEGER ) + - 71 * + - ( + col2 ) + col2 AS col1, + col2 FROM tab2 cor0
----
1683
23
2907
40
4203
58

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

skipif mysql # not compatible
query I rowsort label-1827
SELECT COUNT ( * ) + - - COUNT ( * ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
6

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

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

query I rowsort
SELECT - ( - 29 ) FROM tab1 AS cor0
----
29
29
29

query II rowsort
SELECT ALL + ( - 91 ) AS col1, + 80 FROM tab2 AS cor0
----
-91
80
-91
80
-91
80

onlyif mysql # aggregate syntax: 
query I rowsort label-1831
SELECT DISTINCT + COUNT( * ) + - 77 FROM tab1 AS cor0 WHERE NULL = - col0
----
-77

skipif mysql # not compatible
query I rowsort label-1831
SELECT DISTINCT + COUNT ( * ) + - 77 FROM tab1 AS cor0 WHERE NULL = - col0
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1832
SELECT DISTINCT - CAST( col1 AS SIGNED ) + - - 91 AS col0 FROM tab0 AS cor0
----
10
70
90

skipif mysql # not compatible
query I rowsort label-1832
SELECT DISTINCT - CAST ( col1 AS INTEGER ) + - - 91 AS col0 FROM tab0 AS cor0
----
10
70
90

onlyif mysql # aggregate syntax: 
query II rowsort label-1833
SELECT ALL MAX( DISTINCT col2 ) AS col2, - 58 FROM tab2
----
58
-58

skipif mysql # not compatible
query II rowsort label-1833
SELECT ALL MAX ( DISTINCT col2 ) AS col2, - 58 FROM tab2
----
58
-58

query III rowsort
SELECT * FROM tab2 WHERE + 89 BETWEEN 50 - 7 AND NULL
----

query I rowsort
SELECT ( 25 ) AS col2 FROM tab2
----
25
25
25

query I rowsort
SELECT ALL col0 + col2 + + - col0 AS col1 FROM tab0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1837
SELECT - SUM( + 48 ) - 60 + + 87 FROM tab0
----
-117

skipif mysql # not compatible
query I rowsort label-1837
SELECT - SUM ( + 48 ) - 60 + + 87 FROM tab0
----
-117

onlyif mysql # DIV for integer division: 
query II rowsort label-1838
SELECT DISTINCT col2 DIV + col0 - - + col1, - col1 DIV - col1 AS col2 FROM tab2
----
51
1
67
1
77
1

skipif mysql # not compatible
query II rowsort label-1838
SELECT DISTINCT col2 / + col0 - - + col1, - col1 / - col1 AS col2 FROM tab2
----
51
1
67
1
77
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1839
SELECT - COUNT( * ) + - 23 * - 30 AS col1 FROM tab1 AS cor0
----
687

skipif mysql # not compatible
query I rowsort label-1839
SELECT - COUNT ( * ) + - 23 * - 30 AS col1 FROM tab1 AS cor0
----
687

query I rowsort
SELECT + + 20 + col0 * - col0 AS col2 FROM tab2 AS cor0
----
-2096
-4076
-5605

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

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

query I rowsort
SELECT ALL + 49 + - - col1 * - col1 FROM tab0
----
-392
-6512
48

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1843
SELECT CAST( + 10 AS SIGNED ) DIV + col1, + 78 AS col2 FROM tab2
----
0
78
0
78
0
78

skipif mysql # not compatible
query II rowsort label-1843
SELECT CAST ( + 10 AS INTEGER ) / + col1, + 78 AS col2 FROM tab2
----
0
78
0
78
0
78

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

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

query I rowsort
SELECT - 3 AS col2 FROM tab1 AS cor0 WHERE NOT + 32 NOT IN ( - 72 + + + 44, col0 )
----

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

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

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

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

query I rowsort
SELECT DISTINCT + 75 * + - 55 AS col0 FROM tab0 AS cor0
----
-4125

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col2 ) <> 47
----

query I rowsort
SELECT ALL + 53 * 30 * - col2 FROM tab2
----
-36570
-63600
-92220

query I rowsort
SELECT DISTINCT + 59 * + - 75 FROM tab1
----
-4425

query I rowsort
SELECT 3 * - + ( col0 ) FROM tab2
----
-138
-192
-225

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT ( NOT + col1 - - col2 IS NULL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 36 + col1 FROM tab1 WHERE + col2 IS NOT NULL
----
41
50
83

onlyif mysql # aggregate syntax: 
query I rowsort label-1855
SELECT DISTINCT + - SUM( ALL 25 ) * COUNT( * ) FROM tab1 cor0
----
-225

skipif mysql # not compatible
query I rowsort label-1855
SELECT DISTINCT + - SUM ( ALL 25 ) * COUNT ( * ) FROM tab1 cor0
----
-225

query I rowsort
SELECT DISTINCT 16 + col2 FROM tab2
----
39
56
74

onlyif mysql # aggregate syntax: 
query I rowsort label-1857
SELECT - 67 * - + SUM( DISTINCT + 95 ) - - 13 AS col1 FROM tab2 AS cor0
----
6378

skipif mysql # not compatible
query I rowsort label-1857
SELECT - 67 * - + SUM ( DISTINCT + 95 ) - - 13 AS col1 FROM tab2 AS cor0
----
6378

query I rowsort
SELECT ALL - 21 AS col0 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
-21
-21
-21

query I rowsort
SELECT ALL + 0 * + + 30 + + col0 * - col0 FROM tab2 AS cor0
----
-2116
-4096
-5625

query I rowsort
SELECT DISTINCT + - col0 * col1 + + + col1 AS col2 FROM tab1 AS cor0
----
-420
-4230
-700

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 38 + + 54 col2 FROM tab2 cor0
----
92
92
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + ( + 18 ) col0 FROM tab1 AS cor0
----
-18
-18
-18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 47 + + + 60 col2 FROM tab0
----
107

query I rowsort
SELECT 23 AS col0 FROM tab0 WHERE NULL NOT BETWEEN NULL AND + col1
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT IN ( + col2, + 77 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1866
SELECT - 48 + - COUNT( * ) * - ( + COUNT( * ) ) col1 FROM tab0
----
-39

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1866
SELECT - 48 + - COUNT ( * ) * - ( + COUNT ( * ) ) col1 FROM tab0
----
-39

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1867
SELECT DISTINCT 34 + CAST( NULL AS DECIMAL ) * - 4 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1867
SELECT DISTINCT 34 + CAST ( NULL AS REAL ) * - 4 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT col0 * col1 + ( 21 ) FROM tab0 AS cor0
----
118
1236
1848

query I rowsort
SELECT ALL - 98 - - 88 AS col1 FROM tab1 AS cor0
----
-10
-10
-10

query III rowsort
SELECT ALL * FROM tab0 WHERE + col0 BETWEEN NULL AND 23 + 96
----

query III rowsort
SELECT ALL * FROM tab2 WHERE + + col1 * + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 * col2 = - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1873
SELECT + - SUM( ALL + 53 ) FROM tab1 AS cor0
----
-159

skipif mysql # not compatible
query I rowsort label-1873
SELECT + - SUM ( ALL + 53 ) FROM tab1 AS cor0
----
-159

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + ( + col0 ) col1, - 29 FROM tab0 AS cor0
----
15
-29
87
-29
97
-29

query II rowsort
SELECT ALL - col0 * + 88 AS col2, - col1 + - - col1 + - 96 AS col0 FROM tab1 AS cor0
----
-4488
-96
-7480
-96
-8008
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-1876
SELECT - + MAX( DISTINCT - 60 ) FROM tab0 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-1876
SELECT - + MAX ( DISTINCT - 60 ) FROM tab0 AS cor0
----
60

onlyif mysql # DIV for integer division: 
query II rowsort label-1877
SELECT - + ( - col0 ) * - col1 + - col2 DIV + col0 AS col0, + col0 AS col1 FROM tab0 AS cor0
----
-1218
15
-1827
87
-98
97

skipif mysql # not compatible
query II rowsort label-1877
SELECT - + ( - col0 ) * - col1 + - col2 / + col0 AS col0, + col0 AS col1 FROM tab0 AS cor0
----
-1218
15
-1827
87
-98
97

query I rowsort
SELECT + col0 * col1 * - + 49 FROM tab0
----
-4753
-59535
-89523

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1879
SELECT ALL CAST( NULL AS SIGNED ) / - ( col2 ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1879
SELECT ALL CAST ( NULL AS INTEGER ) / - ( col2 ) AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1880
SELECT DISTINCT ( COUNT( * ) ) * + COUNT( * ) AS col2 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-1880
SELECT DISTINCT ( COUNT ( * ) ) * + COUNT ( * ) AS col2 FROM tab2
----
9

query I rowsort
SELECT - 78 * + - 71 AS col1 FROM tab0
----
5538
5538
5538

onlyif mysql # aggregate syntax: 
query II rowsort label-1882
SELECT - 32 AS col0, COUNT( * ) * + + 54 * + - SUM( DISTINCT + col1 ) AS col1 FROM tab2 cor0
----
-32
-31590

skipif mysql # not compatible
query II rowsort label-1882
SELECT - 32 AS col0, COUNT ( * ) * + + 54 * + - SUM ( DISTINCT + col1 ) AS col1 FROM tab2 cor0
----
-32
-31590

query I rowsort
SELECT DISTINCT + 45 AS col1 FROM tab0 AS cor0 WHERE - 65 < + 48
----
45

query I rowsort
SELECT DISTINCT + col2 * 99 + col1 AS col1 FROM tab1
----
5846
6779
9518

query I rowsort
SELECT + - 2 FROM tab0 WHERE - col2 * col0 * 82 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT + col0 + - col2 IS NOT NULL
----

query I rowsort
SELECT + col1 * + 57 * col1 AS col2 FROM tab1 AS cor0
----
11172
125913
1425

query I rowsort
SELECT - col2 * - - col2 - + - col0 AS col0 FROM tab2 AS cor0
----
-1536
-3289
-483

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col0 * + col2 * + 47 * col0 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 IN ( col0, col2 * + col1 + - + 84, col1, + + col2 + 29 / + - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1891
SELECT + MAX( + 65 ) AS col1 FROM tab2
----
65

skipif mysql # not compatible
query I rowsort label-1891
SELECT + MAX ( + 65 ) AS col1 FROM tab2
----
65

onlyif mysql # DIV for integer division: 
query I rowsort label-1892
SELECT DISTINCT ( + 49 ) DIV ( + 76 ) + - col0 FROM tab0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-1892
SELECT DISTINCT ( + 49 ) / ( + 76 ) + - col0 FROM tab0
----
-15
-87
-97

query I rowsort
SELECT - ( + col2 ) + - - 25 AS col0 FROM tab0
----
-22
-74
15

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( col1 * 21 ) IN ( - col2 * - ( + + 33 ), - 94 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( col1, 2, - col0, + col1, - - col1, col0 + - col1 * + 72, + + col1 )
----

query II rowsort
SELECT - + col2, - 31 AS col1 FROM tab2 AS cor0
----
-23
-31
-40
-31
-58
-31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 80 col0 FROM tab0 AS cor0
----
80
80
80

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - 63 < NULL
----

query I rowsort
SELECT - col0 * - 57 FROM tab2 AS cor0 WHERE NOT NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1900
SELECT - + COUNT( * ) * - SUM( DISTINCT + - 39 ) col0 FROM tab1 AS cor0
----
-117

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1900
SELECT - + COUNT ( * ) * - SUM ( DISTINCT + - 39 ) col0 FROM tab1 AS cor0
----
-117

query I rowsort
SELECT ALL 35 * ( - col1 ) * - col1 + col0 FROM tab1
----
6911
77406
960

query I rowsort
SELECT 26 * + 39 + - ( + 35 ) + + + col0 * + - col2 - + col2 FROM tab2 WHERE NOT - 87 * - + 94 IS NULL
----
-102
-1621
-3429

query I rowsort
SELECT 46 * + col0 AS col2 FROM tab0
----
4002
4462
690

onlyif mysql # aggregate syntax: 
query I rowsort label-1904
SELECT - COUNT( * ) + - 23 AS col2 FROM tab2
----
-26

skipif mysql # not compatible
query I rowsort label-1904
SELECT - COUNT ( * ) + - 23 AS col2 FROM tab2
----
-26

onlyif mysql # aggregate syntax: 
query II rowsort label-1905
SELECT + 68 + - COUNT( * ) AS col1, COUNT( * ) FROM tab0
----
65
3

skipif mysql # not compatible
query II rowsort label-1905
SELECT + 68 + - COUNT ( * ) AS col1, COUNT ( * ) FROM tab0
----
65
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1906
SELECT ALL + COUNT( * ) + - 81 + + MAX( DISTINCT + ( col0 ) ) col0 FROM tab2
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1906
SELECT ALL + COUNT ( * ) + - 81 + + MAX ( DISTINCT + ( col0 ) ) col0 FROM tab2
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1907
SELECT DISTINCT - + MIN( - col0 ) * + + MIN( ALL + CAST( NULL AS SIGNED ) ) / - 49 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1907
SELECT DISTINCT - + MIN ( - col0 ) * + + MIN ( ALL + CAST ( NULL AS INTEGER ) ) / - 49 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) <= col2 / col2
----

query II rowsort
SELECT DISTINCT - col2 * ( + col0 ) AS col1, col1 * col2 AS col1 FROM tab1 AS cor0
----
-4896
1344
-5015
295
-6188
3196

query III rowsort
SELECT * FROM tab0 WHERE + + 99 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1911
SELECT + SUM( DISTINCT ( 71 ) ) FROM tab2
----
71

skipif mysql # not compatible
query I rowsort label-1911
SELECT + SUM ( DISTINCT ( 71 ) ) FROM tab2
----
71

query I rowsort
SELECT ALL + 22 + + + col2 FROM tab1 AS cor0
----
118
81
90

query I rowsort
SELECT ALL - - 35 + col1 + col2 AS col2 FROM tab0 AS cor0 WHERE NOT 4 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1914
SELECT - COUNT( * ) + + SUM( ALL col1 ) * 69 FROM tab0 AS cor0
----
7104

skipif mysql # not compatible
query I rowsort label-1914
SELECT - COUNT ( * ) + + SUM ( ALL col1 ) * 69 FROM tab0 AS cor0
----
7104

query I rowsort
SELECT + - col1 + + 26 AS col0 FROM tab2 AS cor0
----
-25
-41
-51

query I rowsort
SELECT - col1 + - col0 * + - col0 FROM tab2 AS cor0
----
2065
4019
5558

onlyif mysql # DIV for integer division: 
query I rowsort label-1917
SELECT ALL - 84 DIV + - col1 FROM tab1 AS cor0
----
1
16
6

skipif mysql # not compatible
query I rowsort label-1917
SELECT ALL - 84 / + - col1 FROM tab1 AS cor0
----
1
16
6

query I rowsort
SELECT - col2 * 14 * + col1 - col2 / - + 96 AS col1 FROM tab1 WHERE ( - 0 ) IS NULL
----

query I rowsort
SELECT DISTINCT - + 62 * + 72 + col1 / - col2 AS col1 FROM tab1 AS cor0 WHERE NOT + col0 IS NOT NULL
----

query I rowsort
SELECT + 47 * + 96 FROM tab0 AS cor0
----
4512
4512
4512

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE col1 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1922
SELECT + 22 AS col2, CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
22
NULL
22
NULL
22
NULL

skipif mysql # not compatible
query II rowsort label-1922
SELECT + 22 AS col2, CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
22
NULL
22
NULL
22
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1923
SELECT ALL 0 col0, + COUNT( * ) * - - 81 FROM tab0 AS cor0
----
0
243

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1923
SELECT ALL 0 col0, + COUNT ( * ) * - - 81 FROM tab0 AS cor0
----
0
243

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1924
SELECT ALL col2 + + col1 * col1 / + ( - CAST( NULL AS DECIMAL ) ) AS col2 FROM tab1 cor0 WHERE + 21 >= NULL
----

skipif mysql # not compatible
query I rowsort label-1924
SELECT ALL col2 + + col1 * col1 / + ( - CAST ( NULL AS REAL ) ) AS col2 FROM tab1 cor0 WHERE + 21 >= NULL
----

query I rowsort
SELECT DISTINCT col2 * col1 * - col2 FROM tab0 AS cor0
----
-178929
-2100
-9801

query I rowsort
SELECT DISTINCT - 89 * 42 FROM tab2 AS cor0 WHERE - col1 * - col1 - col1 * - + col0 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col2 BETWEEN 20 AND + col2 * - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1928
SELECT ALL + COUNT( ALL 62 ) col2 FROM tab1, tab0 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1928
SELECT ALL + COUNT ( ALL 62 ) col2 FROM tab1, tab0 AS cor0
----
9

query II rowsort
SELECT ALL col1 AS col2, - col1 * + - col2 FROM tab2
----
51
1173
67
3886
77
3080

onlyif mysql # aggregate syntax: 
query I rowsort label-1930
SELECT MIN( ALL + col0 ) AS col0 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-1930
SELECT MIN ( ALL + col0 ) AS col0 FROM tab0 AS cor0
----
15

query I rowsort
SELECT ALL - col0 * + col2 * - col0 * + col0 AS col2 FROM tab0 AS cor0
----
158625
6585030
90354627

query I rowsort
SELECT - col1 + col0 + 1 AS col2 FROM tab0 AS cor0 WHERE + 29 IS NOT NULL
----
-65
67
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1933
SELECT + col2 FROM tab2 AS cor0 WHERE - CAST( + + 47 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-1933
SELECT + col2 FROM tab2 AS cor0 WHERE - CAST ( + + 47 AS INTEGER ) IS NULL
----

query I rowsort
SELECT DISTINCT + - 86 + + col2 FROM tab0 AS cor0
----
-39
-76
13

onlyif mysql # aggregate syntax: 
query I rowsort label-1935
SELECT DISTINCT + SUM( + 13 ) col0 FROM tab1 AS cor0
----
39

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1935
SELECT DISTINCT + SUM ( + 13 ) col0 FROM tab1 AS cor0
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1936
SELECT ALL 33 + MAX( DISTINCT + + CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1936
SELECT ALL 33 + MAX ( DISTINCT + + CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT 94 - + col1 FROM tab2 AS cor0
----
17
27
43

query I rowsort
SELECT DISTINCT ( - - 46 ) FROM tab1 AS cor0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-1939
SELECT ALL - 63 + + - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT ( - col0 ) + + col1 BETWEEN NULL AND NULL
----
-63

skipif mysql # not compatible
query I rowsort label-1939
SELECT ALL - 63 + + - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT ( - col0 ) + + col1 BETWEEN NULL AND NULL
----
-63

query I rowsort
SELECT DISTINCT + col0 * + + col1 AS col0 FROM tab1 AS cor0
----
425
4277
714

onlyif mysql # aggregate syntax: 
query I rowsort label-1941
SELECT - 21 - + MIN( DISTINCT col0 ) FROM tab2 AS cor0
----
-67

skipif mysql # not compatible
query I rowsort label-1941
SELECT - 21 - + MIN ( DISTINCT col0 ) FROM tab2 AS cor0
----
-67

query III rowsort
SELECT * FROM tab2 WHERE - 24 < + + 24 * + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1943
SELECT ALL - COUNT( DISTINCT - + col0 ) * - ( - 38 ) FROM tab2
----
-114

skipif mysql # not compatible
query I rowsort label-1943
SELECT ALL - COUNT ( DISTINCT - + col0 ) * - ( - 38 ) FROM tab2
----
-114

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL < 38 + - - ( - - col1 )
----

query I rowsort
SELECT - - col2 AS col2 FROM tab0 WHERE NOT - col0 NOT BETWEEN - - col2 AND - col2 * 46
----

query I rowsort
SELECT ALL + col1 + col0 + - - 54 * + col1 * - - col2 * + 30 AS col1 FROM tab0 WHERE + + 64 * - 50 + - - ( + col2 ) <= NULL
----

query I rowsort
SELECT + col0 * - col2 / + + col1 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1948
SELECT + 76 * - + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 WHERE NOT ( + col1 + col0 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-1948
SELECT + 76 * - + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE NOT ( + col1 + col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1949
SELECT DISTINCT MAX( col1 ) AS col0 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-1949
SELECT DISTINCT MAX ( col1 ) AS col0 FROM tab2 AS cor0
----
77

query I rowsort
SELECT DISTINCT - ( + 63 ) FROM tab1 AS cor0
----
-63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - ( + col2 ) ) col1 FROM tab1
----
-59
-68
-96

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 <> col1 - + 0
----

query I rowsort
SELECT ALL ( - - col2 ) * - + col1 FROM tab2
----
-1173
-3080
-3886

onlyif mysql # DIV for integer division: 
query I rowsort label-1954
SELECT DISTINCT 25 DIV col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1954
SELECT DISTINCT 25 / col1 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1955
SELECT ALL MAX( + + col0 ) FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-1955
SELECT ALL MAX ( + + col0 ) FROM tab1 AS cor0
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1956
SELECT ALL + CAST( NULL AS SIGNED ), col0 AS col0 FROM tab0 AS cor0 WHERE NOT col2 - + col2 IS NULL
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-1956
SELECT ALL + CAST ( NULL AS INTEGER ), col0 AS col0 FROM tab0 AS cor0 WHERE NOT col2 - + col2 IS NULL
----
NULL
15
NULL
87
NULL
97

onlyif mysql # DIV for integer division: 
query II rowsort label-1957
SELECT 87 DIV + 86 AS col2, ( + col2 ) + - - col2 AS col1 FROM tab2 AS cor0
----
1
116
1
46
1
80

skipif mysql # not compatible
query II rowsort label-1957
SELECT 87 / + 86 AS col2, ( + col2 ) + - - col2 AS col1 FROM tab2 AS cor0
----
1
116
1
46
1
80

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 63 * - col1 * col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 38 AS col0 FROM tab1 AS cor0 WHERE NULL < - 52 + + - ( + 6 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1960
SELECT ALL + COUNT( ALL - ( + - 81 ) ) + - COUNT( * ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1960
SELECT ALL + COUNT ( ALL - ( + - 81 ) ) + - COUNT ( * ) FROM tab0
----
0

query I rowsort
SELECT col2 + + + col1 AS col0 FROM tab1
----
110
115
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 10 * - col2 + + ( col2 ) col1 FROM tab2
----
-207
-360
-522

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1963
SELECT COUNT( * ) + + 97 DIV - + COUNT( * ) FROM tab1
----
-29

skipif mysql # not compatible
query I rowsort label-1963
SELECT COUNT ( * ) + + 97 / - + COUNT ( * ) FROM tab1
----
-29

query III rowsort
SELECT ALL * FROM tab2 WHERE col0 <> col1 + - 51 + + col0 * - - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL col0 * col2 + + col2 AS col0, col2 AS col2 FROM tab1
----
4992
96
5074
59
6256
68

query I rowsort
SELECT DISTINCT ( - - 20 ) FROM tab1 AS cor0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-1967
SELECT - + MAX( + - col1 ) col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1967
SELECT - + MAX ( + - col1 ) col2 FROM tab0 AS cor0
----
1

query II rowsort
SELECT col0 AS col1, - 33 FROM tab0 AS cor0 WHERE ( NOT + - 67 IS NULL )
----
15
-33
87
-33
97
-33

query I rowsort
SELECT ALL - - col1 FROM tab1 WHERE NOT NULL < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1970
SELECT DISTINCT + col2 + + CAST( NULL AS SIGNED ) + col2 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1970
SELECT DISTINCT + col2 + + CAST ( NULL AS INTEGER ) + col2 AS col1 FROM tab2
----
NULL

query I rowsort
SELECT - - 18 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1972
SELECT ALL - 75 + - 38 - + - CAST( - - 87 AS SIGNED ) + - col1 AS col0 FROM tab2
----
-103
-77
-93

skipif mysql # not compatible
query I rowsort label-1972
SELECT ALL - 75 + - 38 - + - CAST ( - - 87 AS INTEGER ) + - col1 AS col0 FROM tab2
----
-103
-77
-93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col1 ) + - 98 col0 FROM tab2 AS cor0
----
-149
-165
-175

query I rowsort
SELECT col0 * + col0 + - col0 + + - col1 + + col2 FROM tab1 AS cor0
----
2632
7194
8211

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1975
SELECT - CAST( NULL AS SIGNED ) + - col1 + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1975
SELECT - CAST ( NULL AS INTEGER ) + - col1 + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1976
SELECT DISTINCT + - CAST( NULL AS SIGNED ) * - - col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1976
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * - - col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + col1 + - 14 AS col0 FROM tab2 cor0
----
37
53
63

query I rowsort
SELECT DISTINCT + 59 - - col0 FROM tab1 AS cor0
----
110
144
150

query III rowsort
SELECT * FROM tab2 WHERE NOT - - col2 <> ( - - ( col1 ) )
----

query I rowsort
SELECT ( 57 ) AS col1 FROM tab1 WHERE NOT NULL = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 24 col2 FROM tab0 WHERE NOT ( ( ( NOT ( NULL ) IS NULL ) ) )
----
24

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + col1 * + col1 + col0 + + 21 * + 93 + + - col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1983
SELECT - col2 DIV + 51 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1983
SELECT - col2 / + 51 FROM tab2
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1984
SELECT DISTINCT COUNT( * ) FROM tab1 WHERE - col0 * - col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1984
SELECT DISTINCT COUNT ( * ) FROM tab1 WHERE - col0 * - col1 IS NULL
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 IN ( - col2, - col1 + - - 7 * + 48 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1986
SELECT DISTINCT - ( - ( MIN( - col1 ) ) ) FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-1986
SELECT DISTINCT - ( - ( MIN ( - col1 ) ) ) FROM tab1 AS cor0
----
-47

query II rowsort
SELECT DISTINCT - col2 * - - 84 * - col2 * + - 99 + - col1, 78 AS col0 FROM tab1 AS cor0
----
-28948001
78
-38453231
78
-76640270
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1988
SELECT - - col1 * - + ( - 60 ) * + CAST( - 49 AS SIGNED ) - + - 34 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-238106
-2906
-61706

skipif mysql # not compatible
query I rowsort label-1988
SELECT - - col1 * - + ( - 60 ) * + CAST ( - 49 AS INTEGER ) - + - 34 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-238106
-2906
-61706

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - ( - col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1990
SELECT DISTINCT COUNT( * ) + - + 9 FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-1990
SELECT DISTINCT COUNT ( * ) + - + 9 FROM tab2
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1991
SELECT DISTINCT + CAST( ( + - col0 ) AS SIGNED ) FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-1991
SELECT DISTINCT + CAST ( ( + - col0 ) AS INTEGER ) FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1992
SELECT DISTINCT - col1, - 10 * - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-14
NULL
-47
NULL
-5
NULL

skipif mysql # not compatible
query II rowsort label-1992
SELECT DISTINCT - col1, - 10 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-14
NULL
-47
NULL
-5
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT + 5 BETWEEN - col2 AND NULL
----

query II rowsort
SELECT ALL + - col2 AS col1, col2 * + ( col0 ) + + - col2 AS col0 FROM tab1 AS cor0 WHERE NOT + 60 + + - ( - + col2 ) = - 89 / + col2 * - col0
----
-59
4956
-68
6120
-96
4800

query I rowsort
SELECT DISTINCT + - 71 + + - col1 + col2 + - + col1 * + - col2 + + col2 * - 80 FROM tab0 AS cor0
----
-58
-672
-7794

onlyif mysql # DIV for integer division: 
query I rowsort label-1996
SELECT + 57 DIV 77 * - col0 DIV + - 61 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1996
SELECT + 57 / 77 * - col0 / + - 61 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND - + col1
----

query I rowsort
SELECT DISTINCT + col1 + - - col0 + - col0 FROM tab1
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1999
SELECT - ( - 50 ) * + COUNT( * ) + 72 FROM tab2 WHERE NULL <= + col0
----
72

skipif mysql # not compatible
query I rowsort label-1999
SELECT - ( - 50 ) * + COUNT ( * ) + 72 FROM tab2 WHERE NULL <= + col0
----
72

query III rowsort
SELECT * FROM tab0 WHERE + col2 - col2 * 37 + - ( - 95 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-2001
SELECT MAX( col1 ) AS col1, - COUNT( * ) * - COUNT( * ) AS col1 FROM tab2
----
77
9

skipif mysql # not compatible
query II rowsort label-2001
SELECT MAX ( col1 ) AS col1, - COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab2
----
77
9

query I rowsort
SELECT DISTINCT - 78 + col2 FROM tab2
----
-20
-38
-55

query I rowsort
SELECT + col2 + 17 FROM tab2 AS cor0
----
40
57
75

query I rowsort
SELECT - col1 + 50 * + col0 * + + 85 * + 84 FROM tab1 AS cor0
----
18206986
30344995
32486953

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND 94
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 39 <> + + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query II rowsort label-2007
SELECT col0 + - + col0 + + + col2 DIV 28 DIV + col2 AS col1, - col0 FROM tab0
----
0
-15
0
-87
0
-97

skipif mysql # not compatible
query II rowsort label-2007
SELECT col0 + - + col0 + + + col2 / 28 / + col2 AS col1, - col0 FROM tab0
----
0
-15
0
-87
0
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2008
SELECT - + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-2008
SELECT - + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-9

query I rowsort
SELECT ALL - - 62 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2010
SELECT DISTINCT - COUNT( * ) DIV - + MIN( DISTINCT 17 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-2010
SELECT DISTINCT - COUNT ( * ) / - + MIN ( DISTINCT 17 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2011
SELECT - COUNT( * ), 59 col2 FROM tab0
----
-3
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2011
SELECT - COUNT ( * ), 59 col2 FROM tab0
----
-3
59

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2012
SELECT + CAST( NULL AS SIGNED ), col1 DIV - - col0 col1 FROM tab1 AS cor0
----
NULL
0
NULL
0
NULL
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2012
SELECT + CAST ( NULL AS INTEGER ), col1 / - - col0 col1 FROM tab1 AS cor0
----
NULL
0
NULL
0
NULL
0

query I rowsort
SELECT DISTINCT + + 46 AS col2 FROM tab0 cor0
----
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + col0 ) col0 FROM tab1 AS cor0 WHERE NOT 67 / 50 + + + 93 <> - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2015
SELECT DISTINCT col0 * ( + + CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2015
SELECT DISTINCT col0 * ( + + CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

query I rowsort
SELECT 88 * + - col0 AS col2 FROM tab1
----
-4488
-7480
-8008

query III rowsort
SELECT * FROM tab1 WHERE NOT 48 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT 47 * + - col0, + col2 AS col0 FROM tab2
----
-2162
23
-3008
40
-3525
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2019
SELECT - COUNT( * ) * 60 AS col0 FROM tab2
----
-180

skipif mysql # not compatible
query I rowsort label-2019
SELECT - COUNT ( * ) * 60 AS col0 FROM tab2
----
-180

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-2020
SELECT ALL * FROM tab0 WHERE NOT + - CAST( NULL AS DECIMAL ) * + 64 + - 51 * - col1 NOT BETWEEN - CAST( NULL AS SIGNED ) * col1 AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-2020
SELECT ALL * FROM tab0 WHERE NOT + - CAST ( NULL AS REAL ) * + 64 + - 51 * - col1 NOT BETWEEN - CAST ( NULL AS INTEGER ) * col1 AND ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2021
SELECT + col1 DIV - - 85 * 40 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2021
SELECT + col1 / - - 85 * 40 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2022
SELECT + COUNT( DISTINCT - col0 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2022
SELECT + COUNT ( DISTINCT - col0 ) FROM tab2 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 74 / + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2024
SELECT COUNT( DISTINCT + col1 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-2024
SELECT COUNT ( DISTINCT + col1 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 * - col2 NOT BETWEEN + col0 AND - 32
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 33 + + 13 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39

query I rowsort
SELECT 23 * + 5 AS col2 FROM tab2
----
115
115
115

onlyif mysql # aggregate syntax: 
query I rowsort label-2028
SELECT DISTINCT - COUNT( - ( - + col1 ) ) col0 FROM tab2 AS cor0 WHERE NOT col0 + + col0 + - col0 IS NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2028
SELECT DISTINCT - COUNT ( - ( - + col1 ) ) col0 FROM tab2 AS cor0 WHERE NOT col0 + + col0 + - col0 IS NULL
----
-3

query I rowsort
SELECT + - 1 AS col2 FROM tab2 AS cor0 WHERE + 50 + 40 < NULL
----

query I rowsort
SELECT DISTINCT + + 53 * - col2 FROM tab1 cor0
----
-3127
-3604
-5088

query II rowsort
SELECT ALL - - col1 + + col2 * + col0, 11 AS col0 FROM tab0 AS cor0
----
786
11
891
11
9604
11

query I rowsort
SELECT - col1 - col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-108
-96
-98

query I rowsort
SELECT col1 + col0 * + 24 + + col2 AS col1 FROM tab1
----
1334
2104
2299

onlyif mysql # DIV for integer division: 
query I rowsort label-2034
SELECT ALL + 44 DIV - - col1 col1 FROM tab0
----
0
2
44

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2034
SELECT ALL + 44 / - - col1 col1 FROM tab0
----
0
2
44

query I rowsort
SELECT DISTINCT - ( + 17 ) + + + ( - + col0 ) AS col0 FROM tab2
----
-63
-81
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-2036
SELECT DISTINCT - 5 + COUNT( * ) + + COUNT( * ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-2036
SELECT DISTINCT - 5 + COUNT ( * ) + + COUNT ( * ) FROM tab1
----
1

query I rowsort
SELECT ALL + - 51 AS col2 FROM tab0 WHERE - 53 >= col1 * - + col1 * + col1 + + - 87 - + - 45 * + col0 + - col0
----
-51
-51

query I rowsort
SELECT + col2 + + + 5 AS col0 FROM tab2
----
28
45
63

onlyif mysql # aggregate syntax: 
query II rowsort label-2039
SELECT ALL + - COUNT( * ) * + COUNT( * ) * + COUNT( + 54 ) + - COUNT( * ) + COUNT( * ), - COUNT( ALL - col0 ) AS col1 FROM tab2 WHERE NOT + 38 IS NOT NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-2039
SELECT ALL + - COUNT ( * ) * + COUNT ( * ) * + COUNT ( + 54 ) + - COUNT ( * ) + COUNT ( * ), - COUNT ( ALL - col0 ) AS col1 FROM tab2 WHERE NOT + 38 IS NOT NULL
----
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2040
SELECT ALL - CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2040
SELECT ALL - CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2041
SELECT DISTINCT - 97 * + - 85 * COUNT( * ) FROM tab1 cor0 WHERE NOT NULL IN ( col2 )
----
0

skipif mysql # not compatible
query I rowsort label-2041
SELECT DISTINCT - 97 * + - 85 * COUNT ( * ) FROM tab1 cor0 WHERE NOT NULL IN ( col2 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2042
SELECT col1 - col0 * + + ( + - col1 ) + + + col2 DIV 92 FROM tab2 AS cor0
----
2397
5005
5092

skipif mysql # not compatible
query I rowsort label-2042
SELECT col1 - col0 * + + ( + - col1 ) + + + col2 / 92 FROM tab2 AS cor0
----
2397
5005
5092

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 / + + col1 + + col1 col1 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT - 77 - - 68 * col0, col2 FROM tab2 AS cor0
----
3051
23
4275
40
5023
58

query I rowsort
SELECT - col1 FROM tab2 WHERE NOT col1 IS NULL
----
-51
-67
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2046
SELECT - 65 DIV - COUNT( * ) FROM tab1
----
21

skipif mysql # not compatible
query I rowsort label-2046
SELECT - 65 / - COUNT ( * ) FROM tab1
----
21

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 91 <> col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 54 * col0 FROM tab0
----
4698
5238
810

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 96 / - col0 < - ( col1 ) - + col0
----

query I rowsort
SELECT - 38 * 92 AS col2 FROM tab0
----
-3496
-3496
-3496

query I rowsort
SELECT DISTINCT ( col0 ) + ( col0 ) FROM tab1
----
102
170
182

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2052
SELECT ALL + COUNT( * ) - MIN( DISTINCT 44 ) FROM tab1 WHERE NOT + col2 + + ( - CAST( NULL AS DECIMAL ) ) BETWEEN + col0 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2052
SELECT ALL + COUNT ( * ) - MIN ( DISTINCT 44 ) FROM tab1 WHERE NOT + col2 + + ( - CAST ( NULL AS REAL ) ) BETWEEN + col0 AND NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2053
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN - col1 AND - CAST( + col0 AS SIGNED ) * col0
----

skipif mysql # not compatible
query III rowsort label-2053
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN - col1 AND - CAST ( + col0 AS INTEGER ) * col0
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( 28 ) > + 82 / + col1
----
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2055
SELECT DISTINCT COUNT( DISTINCT - 37 ) AS col0 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-2055
SELECT DISTINCT COUNT ( DISTINCT - 37 ) AS col0 FROM tab2
----
1

query I rowsort
SELECT ALL - 86 FROM tab1 WHERE NOT NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2057
SELECT COUNT( * ) AS col0 FROM tab2 WHERE col2 IN ( - ( 35 ) * - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-2057
SELECT COUNT ( * ) AS col0 FROM tab2 WHERE col2 IN ( - ( 35 ) * - col0 )
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN + col0 AND ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2059
SELECT DISTINCT 75 + + 18 DIV + col2 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-2059
SELECT DISTINCT 75 + + 18 / + col2 FROM tab2
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2060
SELECT ALL + COUNT( * ) - 68 DIV COUNT( * ) FROM tab2
----
-19

skipif mysql # not compatible
query I rowsort label-2060
SELECT ALL + COUNT ( * ) - 68 / COUNT ( * ) FROM tab2
----
-19

query I rowsort
SELECT col2 * + 88 + + 42 AS col2 FROM tab0
----
4178
8754
922

query I rowsort
SELECT ALL + 93 - - col2 AS col1 FROM tab1
----
152
161
189

onlyif mysql # aggregate syntax: 
query I rowsort label-2063
SELECT ALL - COUNT( * ) + 91 FROM tab2
----
88

skipif mysql # not compatible
query I rowsort label-2063
SELECT ALL - COUNT ( * ) + 91 FROM tab2
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-2064
SELECT col0 DIV 94 + col0 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-2064
SELECT col0 / 94 + col0 FROM tab2
----
46
64
75

query I rowsort
SELECT col1 * + col2 + col2 AS col1 FROM tab0
----
198
220
3854

query I rowsort
SELECT DISTINCT + 52 * + col0 + col2 AS col0 FROM tab1
----
2748
4479
4800

onlyif mysql # DIV for integer division: 
query I rowsort label-2067
SELECT - 94 DIV col1 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2067
SELECT - 94 / col1 FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2068
SELECT col0 * - col2 + + 83 col0 FROM tab0 AS cor0 WHERE NOT col0 + - col2 >= CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2068
SELECT col0 * - col2 + + 83 col0 FROM tab0 AS cor0 WHERE NOT col0 + - col2 >= CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2069
SELECT ALL col0 * - CAST( CAST( NULL AS DECIMAL ) * col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2069
SELECT ALL col0 * - CAST ( CAST ( NULL AS REAL ) * col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - ( col2 ) + col2 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-2071
SELECT DISTINCT * FROM tab2 AS cor0 LEFT JOIN tab0 ON NOT NULL >= + CAST( NULL AS SIGNED )
----
18 values hashing to 18b19f89ce73392082a69acc4aed78f1

skipif mysql # not compatible
query IIIIII rowsort label-2071
SELECT DISTINCT * FROM tab2 AS cor0 LEFT JOIN tab0 ON NOT NULL >= + CAST ( NULL AS INTEGER )
----
18 values hashing to 18b19f89ce73392082a69acc4aed78f1

onlyif mysql # DIV for integer division: 
query I rowsort label-2072
SELECT col0 + - col2 DIV 27 FROM tab2
----
46
63
73

skipif mysql # not compatible
query I rowsort label-2072
SELECT col0 + - col2 / 27 FROM tab2
----
46
63
73

query I rowsort
SELECT ALL col1 AS col2 FROM tab2 WHERE NOT NULL = NULL
----

query I rowsort
SELECT 14 + + col0 AS col1 FROM tab1 AS cor0
----
105
65
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2075
SELECT - - 90 DIV COUNT( * ) AS col0 FROM tab0 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-2075
SELECT - - 90 / COUNT ( * ) AS col0 FROM tab0 AS cor0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-2076
SELECT - COUNT( * ) * + COUNT( ALL + col1 * ( col1 ) ) AS col2 FROM tab0 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-2076
SELECT - COUNT ( * ) * + COUNT ( ALL + col1 * ( col1 ) ) AS col2 FROM tab0 cor0
----
-9

query I rowsort
SELECT - ( + 58 ) AS col0 FROM tab2 AS cor0
----
-58
-58
-58

query I rowsort
SELECT DISTINCT + ( col0 ) * + 43 AS col0 FROM tab2 AS cor0
----
1978
2752
3225

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2079
SELECT DISTINCT * FROM tab2 AS cor0 WHERE CAST( - 60 AS SIGNED ) * - 13 NOT BETWEEN col2 + col2 AND + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2079
SELECT DISTINCT * FROM tab2 AS cor0 WHERE CAST ( - 60 AS INTEGER ) * - 13 NOT BETWEEN col2 + col2 AND + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col2 * + 67 AS col2 FROM tab2 AS cor0
----
-1541
-2680
-3886

query I rowsort
SELECT DISTINCT - - 76 + + col0 AS col1 FROM tab1 AS cor0
----
127
161
167

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2082
SELECT ALL CAST( NULL AS DECIMAL ) / + AVG ( ALL 95 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2082
SELECT ALL CAST ( NULL AS REAL ) / + AVG ( ALL 95 ) FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + col0 ) BETWEEN ( NULL ) AND - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2084
SELECT DISTINCT + - 82 + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-85

skipif mysql # not compatible
query I rowsort label-2084
SELECT DISTINCT + - 82 + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-85

query I rowsort
SELECT 27 AS col0 FROM tab1 WHERE ( - ( - 38 ) ) IS NOT NULL
----
27
27
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2086
SELECT ALL - col1 + - + CAST( - col2 AS SIGNED ) FROM tab0
----
-11
-34
98

skipif mysql # not compatible
query I rowsort label-2086
SELECT ALL - col1 + - + CAST ( - col2 AS INTEGER ) FROM tab0
----
-11
-34
98

query III rowsort
SELECT * FROM tab0 WHERE + 64 / col2 IS NULL
----

query I rowsort
SELECT DISTINCT + col2 + + + col2 AS col1 FROM tab2
----
116
46
80

query I rowsort
SELECT col0 - + col1 * 18 AS col2 FROM tab1
----
-201
-5
-755

query I rowsort
SELECT 89 + ( 86 ) + - col0 AS col1 FROM tab0
----
160
78
88

onlyif mysql # DIV for integer division: 
query I rowsort label-2091
SELECT DISTINCT col0 * col1 * + col2 - - col1 DIV - col2 AS col2 FROM tab1
----
25075
290836
68544

skipif mysql # not compatible
query I rowsort label-2091
SELECT DISTINCT col0 * col1 * + col2 - - col1 / - col2 AS col2 FROM tab1
----
25075
290836
68544

query III rowsort
SELECT * FROM tab2 WHERE - col1 * col1 + col1 * 78 >= ( - ( + col2 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE ( col2 * col2 - - 1 ) BETWEEN ( col0 ) AND NULL
----

query I rowsort
SELECT DISTINCT col0 - + 5 AS col1 FROM tab2 AS cor0 WHERE NULL BETWEEN - col1 AND NULL
----

query I rowsort
SELECT DISTINCT 87 + - col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 79 <= - 62 / col0
----

query I rowsort
SELECT ALL col1 FROM tab0 AS cor0 WHERE NOT 2 >= NULL
----

query I rowsort
SELECT ( + 75 ) * 45 FROM tab2, tab1 AS cor0
----
9 values hashing to 546d276b94a395c0878090831a7bbf99

query I rowsort
SELECT ALL + 81 * 32 FROM tab1 AS cor0
----
2592
2592
2592

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + col2 >= - col1
----

query I rowsort
SELECT DISTINCT + 10 + + 24 FROM tab0 AS cor0 WHERE 97 IN ( - 47 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2102
SELECT DISTINCT + - 22 DIV - + col2 FROM tab0 AS cor0
----
0
2

skipif mysql # not compatible
query I rowsort label-2102
SELECT DISTINCT + - 22 / - + col2 FROM tab0 AS cor0
----
0
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2103
SELECT ALL + SUM( 38 ) FROM tab0 AS cor0
----
114

skipif mysql # not compatible
query I rowsort label-2103
SELECT ALL + SUM ( 38 ) FROM tab0 AS cor0
----
114

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2104
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 - - - col1 NOT BETWEEN - col0 AND col1 * CAST( 11 * 78 AS DECIMAL ) + + 20
----
87
21
10

skipif mysql # not compatible
query III rowsort label-2104
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 - - - col1 NOT BETWEEN - col0 AND col1 * CAST ( 11 * 78 AS REAL ) + + 20
----
87
21
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2105
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 19 FROM tab2 AS cor0 WHERE col0 < + 26
----

skipif mysql # not compatible
query I rowsort label-2105
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 19 FROM tab2 AS cor0 WHERE col0 < + 26
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2106
SELECT DISTINCT + SUM( ALL - col0 ) AS col2 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-2106
SELECT DISTINCT + SUM ( ALL - col0 ) AS col2 FROM tab0 AS cor0
----
-199

onlyif mysql # aggregate syntax: 
query I rowsort label-2107
SELECT DISTINCT ( + MAX( ALL col1 ) ) AS col2 FROM tab2 cor0
----
77

skipif mysql # not compatible
query I rowsort label-2107
SELECT DISTINCT ( + MAX ( ALL col1 ) ) AS col2 FROM tab2 cor0
----
77

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL IN ( - 33 )
----

query II rowsort
SELECT + + 49, - col1 AS col1 FROM tab2 AS cor0
----
49
-51
49
-67
49
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-2110
SELECT DISTINCT SUM( DISTINCT - col1 ) AS col1 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-2110
SELECT DISTINCT SUM ( DISTINCT - col1 ) AS col1 FROM tab2
----
-195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2111
SELECT CAST( - col2 AS SIGNED ) AS col0 FROM tab0 WHERE NOT + + col2 - - col1 BETWEEN + col1 AND - col1
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-2111
SELECT CAST ( - col2 AS INTEGER ) AS col0 FROM tab0 WHERE NOT + + col2 - - col1 BETWEEN + col1 AND - col1
----
-10
-47
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2112
SELECT ALL - ( ( col2 ) ) + - CAST( NULL AS SIGNED ) FROM tab1 WHERE - + 26 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2112
SELECT ALL - ( ( col2 ) ) + - CAST ( NULL AS INTEGER ) FROM tab1 WHERE - + 26 IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2113
SELECT DISTINCT col2 + - ( + col2 ) FROM tab0 WHERE NOT ( + + col0 ) NOT BETWEEN CAST( col2 AS SIGNED ) AND col0
----
0

skipif mysql # not compatible
query I rowsort label-2113
SELECT DISTINCT col2 + - ( + col2 ) FROM tab0 WHERE NOT ( + + col0 ) NOT BETWEEN CAST ( col2 AS INTEGER ) AND col0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + 81 * + 94 + - + col1 col0 FROM tab0
----
7614
7614
7614

query III rowsort
SELECT * FROM tab0 WHERE NOT + 37 + + 8 NOT BETWEEN + col1 + 4 AND + col1 + col2
----
97
1
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2116
SELECT * FROM tab2 WHERE NOT - + ( - col1 ) NOT BETWEEN - CAST( + col1 AS SIGNED ) AND col0 * col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2116
SELECT * FROM tab2 WHERE NOT - + ( - col1 ) NOT BETWEEN - CAST ( + col1 AS INTEGER ) AND col0 * col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2117
SELECT DISTINCT ( - COUNT( DISTINCT + col1 ) ) FROM tab1 AS cor0 WHERE ( + col1 / + col1 ) BETWEEN - col2 AND - col0 * - col0
----
-3

skipif mysql # not compatible
query I rowsort label-2117
SELECT DISTINCT ( - COUNT ( DISTINCT + col1 ) ) FROM tab1 AS cor0 WHERE ( + col1 / + col1 ) BETWEEN - col2 AND - col0 * - col0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2118
SELECT ALL - + col1 * + CAST( NULL AS SIGNED ) + + + col0 + col1 * - 13 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2118
SELECT ALL - + col1 * + CAST ( NULL AS INTEGER ) + + + col0 + col1 * - 13 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 39 + - ( col0 ) col2 FROM tab2
----
-25
-36
-7

query I rowsort
SELECT ALL + col0 * - - 83 FROM tab1
----
4233
7055
7553

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col1 = - + 72 * + + ( col0 ) + 62
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL < ( - col2 + + 49 )
----

query I rowsort
SELECT + - 48 + + + col2 AS col0 FROM tab2 AS cor0
----
-25
-8
10

query I rowsort
SELECT DISTINCT + - 2 AS col0 FROM tab1 AS cor0
----
-2

query I rowsort
SELECT ALL + col1 * - - col0 AS col1 FROM tab2 AS cor0
----
2346
4928
5025

onlyif mysql # DIV for integer division: 
query I rowsort label-2126
SELECT + + col2 + col2 DIV - col1 col0 FROM tab0 AS cor0
----
0
10
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2126
SELECT + + col2 + col2 / - col1 col0 FROM tab0 AS cor0
----
0
10
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2127
SELECT - - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) + - + COUNT( * ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2127
SELECT - - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) + - + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT ALL + col1 AS col1, col2 FROM tab0 AS cor0
----
1
99
21
10
81
47

query I rowsort
SELECT ALL - col1 + - - 29 AS col1 FROM tab2 AS cor0
----
-22
-38
-48

query I rowsort
SELECT - col1 + 34 + + col2 FROM tab1 AS cor0
----
116
55
88

query III rowsort
SELECT * FROM tab1 WHERE + ( col1 ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2132
SELECT + 42 + + 56 * + COUNT( * ) AS col2 FROM tab2
----
210

skipif mysql # not compatible
query I rowsort label-2132
SELECT + 42 + + 56 * + COUNT ( * ) AS col2 FROM tab2
----
210

onlyif mysql # aggregate syntax: 
query I rowsort label-2133
SELECT 51 * - + COUNT( * ) FROM tab0
----
-153

skipif mysql # not compatible
query I rowsort label-2133
SELECT 51 * - + COUNT ( * ) FROM tab0
----
-153

onlyif mysql # aggregate syntax: 
query I rowsort label-2134
SELECT ALL ( COUNT( * ) ) + + 98 AS col0 FROM tab0
----
101

skipif mysql # not compatible
query I rowsort label-2134
SELECT ALL ( COUNT ( * ) ) + + 98 AS col0 FROM tab0
----
101

query I rowsort
SELECT DISTINCT + ( + - col1 ) * - col1 - col0 + + col0 FROM tab1
----
196
2209
25

query III rowsort
SELECT ALL * FROM tab2 WHERE - col1 * col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2137
SELECT ALL + 60 - - col1 AS col2, + col1 * + CAST( NULL AS SIGNED ) + - 19 + ( + 97 ) FROM tab2
----
111
NULL
127
NULL
137
NULL

skipif mysql # not compatible
query II rowsort label-2137
SELECT ALL + 60 - - col1 AS col2, + col1 * + CAST ( NULL AS INTEGER ) + - 19 + ( + 97 ) FROM tab2
----
111
NULL
127
NULL
137
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE + - 77 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2139
SELECT ALL col0 + 92 + 79 - + col2 DIV + 18 AS col1 FROM tab2
----
216
233
243

skipif mysql # not compatible
query I rowsort label-2139
SELECT ALL col0 + 92 + 79 - + col2 / + 18 AS col1 FROM tab2
----
216
233
243

query I rowsort
SELECT DISTINCT 70 * - col0 FROM tab1 WHERE - 65 IS NOT NULL
----
-3570
-5950
-6370

query I rowsort
SELECT ( - col1 ) FROM tab1 WHERE - + col2 NOT BETWEEN ( + 22 ) AND ( col2 )
----
-14
-47
-5

query I rowsort
SELECT + col1 - - + col0 * - - col0 FROM tab2 AS cor0
----
2167
4173
5692

query II rowsort
SELECT + 45 AS col1, col0 + col2 * col2 * + - col0 AS col1 FROM tab0 AS cor0
----
45
-33120
45
-8613
45
-950600

onlyif mysql # DIV for integer division: 
query I rowsort label-2144
SELECT - - col1 DIV - 1 + - 2 AS col1 FROM tab2 AS cor0
----
-53
-69
-79

skipif mysql # not compatible
query I rowsort label-2144
SELECT - - col1 / - 1 + - 2 AS col1 FROM tab2 AS cor0
----
-53
-69
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-2145
SELECT DISTINCT 96 * - - COUNT( * ) * + - 4 * + 47 FROM tab2
----
-54144

skipif mysql # not compatible
query I rowsort label-2145
SELECT DISTINCT 96 * - - COUNT ( * ) * + - 4 * + 47 FROM tab2
----
-54144

query I rowsort
SELECT + 75 * + + col2 * + 22 AS col0 FROM tab0
----
163350
16500
77550

onlyif mysql # aggregate syntax: 
query I rowsort label-2147
SELECT - COUNT( * ) col2 FROM tab1 AS cor0 WHERE NOT ( - 84 / + col1 * + ( col1 ) IS NOT NULL )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2147
SELECT - COUNT ( * ) col2 FROM tab1 AS cor0 WHERE NOT ( - 84 / + col1 * + ( col1 ) IS NOT NULL )
----
0

query I rowsort
SELECT - 47 AS col2 FROM tab2 AS cor0 WHERE NOT - col0 * + + col2 * ( + col1 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2149
SELECT 82 DIV + col1 AS col1, col2 AS col2 FROM tab2 AS cor0
----
1
23
1
40
1
58

skipif mysql # not compatible
query II rowsort label-2149
SELECT 82 / + col1 AS col1, col2 AS col2 FROM tab2 AS cor0
----
1
23
1
40
1
58

query I rowsort
SELECT - - ( + 21 ) * 1 * - + 72 AS col1 FROM tab1 AS cor0
----
-1512
-1512
-1512

onlyif mysql # aggregate syntax: 
query I rowsort label-2151
SELECT + + MAX( DISTINCT + - col1 ) AS col1 FROM tab2 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-2151
SELECT + + MAX ( DISTINCT + - col1 ) AS col1 FROM tab2 cor0
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2152
SELECT - + MIN( DISTINCT - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2152
SELECT - + MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2153
SELECT + COUNT( * ) AS col0, 58 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
3
58

skipif mysql # not compatible
query II rowsort label-2153
SELECT + COUNT ( * ) AS col0, 58 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
3
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2154
SELECT DISTINCT MIN( - 58 ) FROM tab1
----
-58

skipif mysql # not compatible
query I rowsort label-2154
SELECT DISTINCT MIN ( - 58 ) FROM tab1
----
-58

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN - + 38 - + 38 + + col2 AND + col2
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN NULL AND - 57
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2157
SELECT DISTINCT col2 + + ( - 99 ) * - col0 * - col1 + + + 95 AS col1, - CAST( NULL AS SIGNED ) + + 30 AS col0 FROM tab0
----
-120143
NULL
-180768
NULL
-9409
NULL

skipif mysql # not compatible
query II rowsort label-2157
SELECT DISTINCT col2 + + ( - 99 ) * - col0 * - col1 + + + 95 AS col1, - CAST ( NULL AS INTEGER ) + + 30 AS col0 FROM tab0
----
-120143
NULL
-180768
NULL
-9409
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2158
SELECT 37 col1, - MAX( DISTINCT ( 39 ) ) AS col0 FROM tab1
----
37
-39

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2158
SELECT 37 col1, - MAX ( DISTINCT ( 39 ) ) AS col0 FROM tab1
----
37
-39

query I rowsort
SELECT DISTINCT - 39 + 84 + - 82 FROM tab1
----
-37

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( col2 * + ( + ( col2 ) ), col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2161
SELECT + 52 DIV + col0 FROM tab0 AS cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-2161
SELECT + 52 / + col0 FROM tab0 AS cor0
----
0
0
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 NOT IN ( + col1 * - 5 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2163
SELECT ALL + 12 + - + MAX( - 26 ) DIV - + ( + 89 ) * + - 55 FROM tab2
----
12

skipif mysql # not compatible
query I rowsort label-2163
SELECT ALL + 12 + - + MAX ( - 26 ) / - + ( + 89 ) * + - 55 FROM tab2
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-2164
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NOT ( - CAST( NULL AS SIGNED ) * ( + 22 ) IS NULL ) )
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

skipif mysql # not compatible
query IIIIII rowsort label-2164
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NOT ( - CAST ( NULL AS INTEGER ) * ( + 22 ) IS NULL ) )
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - col2 ) + - + col2 col0 FROM tab2
----
-116
-46
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-2166
SELECT ( - col2 ) DIV - 49 FROM tab0 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-2166
SELECT ( - col2 ) / - 49 FROM tab0 AS cor0
----
0
0
2

query I rowsort
SELECT - col0 FROM tab2 AS cor0 WHERE NULL <= ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2168
SELECT DISTINCT - ( - - MIN( ( col2 ) ) ) AS col1 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-2168
SELECT DISTINCT - ( - - MIN ( ( col2 ) ) ) AS col1 FROM tab1 AS cor0
----
-59

query I rowsort
SELECT ALL - col0 + - col1 * + col1 - - col0 FROM tab0 cor0
----
-1
-441
-6561

onlyif mysql # aggregate syntax: 
query II rowsort label-2170
SELECT DISTINCT - COUNT( * ), - 1 * - COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL > NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-2170
SELECT DISTINCT - COUNT ( * ), - 1 * - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL > NULL
----
0
0

query I rowsort
SELECT + col2 - + - 57 FROM tab0 AS cor0
----
104
156
67

query I rowsort
SELECT 65 + + 37 + - col1 FROM tab0 WHERE NULL IN ( + 43 + - - col2 * col0 * - col1, + 58 )
----

query I rowsort
SELECT DISTINCT 6 - - 53 AS col1 FROM tab0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2174
SELECT + 58 * - + 41 + COUNT( * ) - + COUNT( * ) AS col2 FROM tab0
----
-2378

skipif mysql # not compatible
query I rowsort label-2174
SELECT + 58 * - + 41 + COUNT ( * ) - + COUNT ( * ) AS col2 FROM tab0
----
-2378

onlyif mysql # aggregate syntax: 
query I rowsort label-2175
SELECT DISTINCT - COUNT( * ) + - ( - ( + - 63 ) ) FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-2175
SELECT DISTINCT - COUNT ( * ) + - ( - ( + - 63 ) ) FROM tab1
----
-66

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 82 > NULL
----

query II rowsort
SELECT + 89, col1 AS col1 FROM tab2
----
89
51
89
67
89
77

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 - - + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 35 * - 70 * + col2 AS col0 FROM tab2
----
-142100
-56350
-98000

onlyif mysql # aggregate syntax: 
query I rowsort label-2180
SELECT + COUNT( ALL + col1 ) * + + 30 AS col0 FROM tab1
----
90

skipif mysql # not compatible
query I rowsort label-2180
SELECT + COUNT ( ALL + col1 ) * + + 30 AS col0 FROM tab1
----
90

onlyif mysql # DIV for integer division: 
query II rowsort label-2181
SELECT ALL + 83 DIV + - col2, 4 * + - col0 AS col2 FROM tab1
----
-1
-340
-1
-364
0
-204

skipif mysql # not compatible
query II rowsort label-2181
SELECT ALL + 83 / + - col2, 4 * + - col0 AS col2 FROM tab1
----
-1
-340
-1
-364
0
-204

onlyif mysql # aggregate syntax: 
query I rowsort label-2182
SELECT + + COUNT( + col1 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2182
SELECT + + COUNT ( + col1 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT - - col0 AS col1 FROM tab1 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2184
SELECT - COUNT( col0 ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2184
SELECT - COUNT ( col0 ) FROM tab2 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2185
SELECT + + MIN( - col2 ) AS col2 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-2185
SELECT + + MIN ( - col2 ) AS col2 FROM tab0 AS cor0
----
-99

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 12 * - + ( 84 ) / + col2 >= NULL
----

query II rowsort
SELECT DISTINCT - 24 * - col2 AS col1, 2 AS col0 FROM tab0 AS cor0
----
1128
2
2376
2
240
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2188
SELECT DISTINCT - CAST( + + 27 AS SIGNED ) * COUNT( * ) AS col2 FROM tab2
----
-81

skipif mysql # not compatible
query I rowsort label-2188
SELECT DISTINCT - CAST ( + + 27 AS INTEGER ) * COUNT ( * ) AS col2 FROM tab2
----
-81

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2189
SELECT DISTINCT - 67 DIV - 45, CAST( col1 AS SIGNED ) AS col2 FROM tab1
----
1
14
1
47
1
5

skipif mysql # not compatible
query II rowsort label-2189
SELECT DISTINCT - 67 / - 45, CAST ( col1 AS INTEGER ) AS col2 FROM tab1
----
1
14
1
47
1
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2190
SELECT ALL COUNT( * ) + - 66 FROM tab1
----
-63

skipif mysql # not compatible
query I rowsort label-2190
SELECT ALL COUNT ( * ) + - 66 FROM tab1
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2191
SELECT 79 * + 9 + - CAST( NULL AS SIGNED ) AS col0, + col0 * + 46, - col1 AS col0 FROM tab0
----
9 values hashing to e96b6fb02145eeec9ba70fa6e9d922b1

skipif mysql # not compatible
query III rowsort label-2191
SELECT 79 * + 9 + - CAST ( NULL AS INTEGER ) AS col0, + col0 * + 46, - col1 AS col0 FROM tab0
----
9 values hashing to e96b6fb02145eeec9ba70fa6e9d922b1

onlyif mysql # aggregate syntax: 
query I rowsort label-2192
SELECT COUNT( + + 48 ) + + MIN( DISTINCT col2 ) AS col1 FROM tab0
----
13

skipif mysql # not compatible
query I rowsort label-2192
SELECT COUNT ( + + 48 ) + + MIN ( DISTINCT col2 ) AS col1 FROM tab0
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2193
SELECT + + col1, + CAST( - 78 AS SIGNED ) FROM tab1 AS cor0 WHERE NULL <= ( NULL )
----

skipif mysql # not compatible
query II rowsort label-2193
SELECT + + col1, + CAST ( - 78 AS INTEGER ) FROM tab1 AS cor0 WHERE NULL <= ( NULL )
----

query I rowsort
SELECT DISTINCT - 44 / + col0 AS col2 FROM tab2 cor0 WHERE NOT col0 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT + 33 * + - ( col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL IN ( - 87 * + 3, - col0 )
----

query II rowsort
SELECT col0 * - - 89 - col2, + 65 * 76 AS col0 FROM tab1
----
4443
4940
7506
4940
8031
4940

query I rowsort
SELECT ALL - 10 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to f68f33032846e21ee6b2c668fc10355e

onlyif mysql # aggregate syntax: 
query I rowsort label-2199
SELECT DISTINCT + MIN( DISTINCT + - col1 ) FROM tab0 cor0
----
-81

skipif mysql # not compatible
query I rowsort label-2199
SELECT DISTINCT + MIN ( DISTINCT + - col1 ) FROM tab0 cor0
----
-81

query I rowsort
SELECT - col1 + + 42 + 53 * col0 FROM tab2 AS cor0
----
2429
3357
3950

query II rowsort
SELECT DISTINCT + + col2 AS col1, col1 AS col2 FROM tab2 AS cor0
----
23
51
40
77
58
67

query II rowsort
SELECT ALL + 68 AS col0, 74 + + col2 FROM tab2 AS cor0
----
68
114
68
132
68
97

query I rowsort
SELECT DISTINCT - 86 + - AVG ( + col1 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) = - + col0 * - + col1 + + + col1 + col1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - col0 <= ( + - col1 / + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2205
SELECT + MAX( ALL - ( + 22 ) ) FROM tab2 AS cor0
----
-22

skipif mysql # not compatible
query I rowsort label-2205
SELECT + MAX ( ALL - ( + 22 ) ) FROM tab2 AS cor0
----
-22

query I rowsort
SELECT ALL + col1 * - col1 - - 7 * - 92 FROM tab2 AS cor0
----
-3245
-5133
-6573

onlyif mysql # aggregate syntax: 
query I rowsort label-2207
SELECT + COUNT( * ) * COUNT( * ) AS col0 FROM tab1 cor0
----
9

skipif mysql # not compatible
query I rowsort label-2207
SELECT + COUNT ( * ) * COUNT ( * ) AS col0 FROM tab1 cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2208
SELECT + - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2208
SELECT + - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-2209
SELECT ALL col2 DIV col0 + - - col1 - 36 * - col2 FROM tab0
----
1776
3566
381

skipif mysql # not compatible
query I rowsort label-2209
SELECT ALL col2 / col0 + - - col1 - 36 * - col2 FROM tab0
----
1776
3566
381

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2210
SELECT DISTINCT ( CAST( NULL AS SIGNED ) ) + COUNT( * ) col1 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2210
SELECT DISTINCT ( CAST ( NULL AS INTEGER ) ) + COUNT ( * ) col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2211
SELECT + COUNT( * ), - 95 AS col0 FROM tab1
----
3
-95

skipif mysql # not compatible
query II rowsort label-2211
SELECT + COUNT ( * ), - 95 AS col0 FROM tab1
----
3
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 1 col1, - 12 FROM tab0
----
-1
-12
-1
-12
-1
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-2213
SELECT DISTINCT col2 DIV 57 + 77 * - col1 FROM tab0
----
-1617
-6237
-76

skipif mysql # not compatible
query I rowsort label-2213
SELECT DISTINCT col2 / 57 + 77 * - col1 FROM tab0
----
-1617
-6237
-76

query I rowsort
SELECT DISTINCT - 5 * + col2 FROM tab2
----
-115
-200
-290

query I rowsort
SELECT ALL 80 * + col1 + + col2 - + 51 * + col1 AS col2 FROM tab1 AS cor0
----
1431
204
502

query II rowsort
SELECT + 84 + + 20, col0 FROM tab2 AS cor0
----
104
46
104
64
104
75

onlyif mysql # DIV for integer division: 
query I rowsort label-2217
SELECT - + col0 DIV - 69 + + + col2 FROM tab1 AS cor0
----
60
69
96

skipif mysql # not compatible
query I rowsort label-2217
SELECT - + col0 / - 69 + + + col2 FROM tab1 AS cor0
----
60
69
96

query I rowsort
SELECT + col0 + - 74 FROM tab1 AS cor0
----
-23
11
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2219
SELECT DISTINCT + COUNT( * ) + - COUNT( DISTINCT CAST( NULL AS SIGNED ) ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2219
SELECT DISTINCT + COUNT ( * ) + - COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) FROM tab1 cor0
----
3

query I rowsort
SELECT ALL col0 - - col2 * + 72 FROM tab1
----
4333
4987
6963

query I rowsort
SELECT DISTINCT - - 51 / + 60 / + 29 FROM tab1 WHERE + + 1 * + 39 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( + + col2 ) col0 FROM tab1 AS cor0
----
59
68
96

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL IN ( + 25 )
----

query I rowsort
SELECT col1 * + - col2 + + - 5 * - 39 AS col2 FROM tab2 AS cor0 WHERE NOT - 4 + col1 + col2 NOT BETWEEN ( + 47 ) * - 96 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2225
SELECT - 96 * + COUNT( * ) AS col0, MIN( DISTINCT + col0 ) AS col1 FROM tab0 AS cor0
----
-288
15

skipif mysql # not compatible
query II rowsort label-2225
SELECT - 96 * + COUNT ( * ) AS col0, MIN ( DISTINCT + col0 ) AS col1 FROM tab0 AS cor0
----
-288
15

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2226
SELECT DISTINCT col2 AS col1, ( - - CAST( NULL AS SIGNED ) ) AS col2 FROM tab1
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-2226
SELECT DISTINCT col2 AS col1, ( - - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1
----
59
NULL
68
NULL
96
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2227
SELECT 79 DIV + + col0 AS col0 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2227
SELECT 79 / + + col0 AS col0 FROM tab2
----
1
1
1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - ( + + col1 ) - + 12 * + + col0 + - 0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-2229
SELECT ALL COUNT( * ) AS col1, COUNT( * ) AS col1 FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-2229
SELECT ALL COUNT ( * ) AS col1, COUNT ( * ) AS col1 FROM tab0
----
3
3

query I rowsort
SELECT DISTINCT 89 * col1 AS col0 FROM tab0 AS cor0
----
1869
7209
89

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 54 NOT IN ( - - ( 25 ), - col2 + - + col2 * col0, 37 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2232
SELECT DISTINCT - MIN( - col2 ) AS col1 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-2232
SELECT DISTINCT - MIN ( - col2 ) AS col1 FROM tab1
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2233
SELECT - col1 * + 23 - + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2233
SELECT - col1 * + 23 - + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2234
SELECT * FROM tab2 AS cor0 WHERE - CAST( + ( - col0 ) AS SIGNED ) NOT IN ( col2 - col0, 24 - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2234
SELECT * FROM tab2 AS cor0 WHERE - CAST ( + ( - col0 ) AS INTEGER ) NOT IN ( col2 - col0, 24 - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2235
SELECT ALL - + 88 + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-2235
SELECT ALL - + 88 + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-2236
SELECT - 96 + + + col1 DIV - + ( 89 ) FROM tab2 AS cor0
----
-96
-96
-96

skipif mysql # not compatible
query I rowsort label-2236
SELECT - 96 + + + col1 / - + ( 89 ) FROM tab2 AS cor0
----
-96
-96
-96

query I rowsort
SELECT DISTINCT - + col2 + - col0 FROM tab1 cor0
----
-144
-147
-159

query I rowsort
SELECT - - ( + 24 ) * col1 + + - col2 * - col0 FROM tab1 AS cor0
----
5135
5232
7316

query I rowsort
SELECT + 52 + - + col1 FROM tab1
----
38
47
5

query I rowsort
SELECT ALL col1 * + + 33 + + col2 FROM tab0
----
132
2720
703

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2241
SELECT ALL - CAST( - col1 AS SIGNED ) * + - CAST( NULL AS SIGNED ) * - col1 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2241
SELECT ALL - CAST ( - col1 AS INTEGER ) * + - CAST ( NULL AS INTEGER ) * - col1 AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 74 AS col1 FROM tab2 WHERE + 13 IS NOT NULL
----
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 45 + + 54 * + - 37, - 26 col0 FROM tab1
----
-2043
-26
-2043
-26
-2043
-26

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL <= 73
----

query I rowsort
SELECT DISTINCT - 95 * + col0 FROM tab0
----
-1425
-8265
-9215

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2246
SELECT ALL + - 80 DIV - - COUNT( * ) FROM tab2 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-2246
SELECT ALL + - 80 / - - COUNT ( * ) FROM tab2 AS cor0
----
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - + 61 col0 FROM tab0 AS cor0
----
-46
26
36

query I rowsort
SELECT 3 * + 95 AS col2 FROM tab2 cor0
----
285
285
285

query I rowsort
SELECT - - col0 * + col2 - ( + 63 ) FROM tab2 AS cor0
----
2497
4287
995

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 4 + - - col0 col1 FROM tab1
----
55
89
95

onlyif mysql # DIV for integer division: 
query I rowsort label-2251
SELECT col1 + + + col2 DIV col2 AS col0 FROM tab1
----
15
48
6

skipif mysql # not compatible
query I rowsort label-2251
SELECT col1 + + + col2 / col2 AS col0 FROM tab1
----
15
48
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2252
SELECT COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT ( 84 ) < 34
----
3

skipif mysql # not compatible
query I rowsort label-2252
SELECT COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT ( 84 ) < 34
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2253
SELECT + ( 11 ) * + - COUNT( * ) FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2253
SELECT + ( 11 ) * + - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----
0

query II rowsort
SELECT - col2 AS col1, - col2 AS col0 FROM tab1 cor0
----
-59
-59
-68
-68
-96
-96

query I rowsort
SELECT - - col1 * - 27 AS col1 FROM tab1 AS cor0
----
-1269
-135
-378

onlyif mysql # aggregate syntax: 
query I rowsort label-2256
SELECT ALL - ( + - MIN( - - col0 ) ) FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-2256
SELECT ALL - ( + - MIN ( - - col0 ) ) FROM tab2 AS cor0
----
46

query I rowsort
SELECT ( 39 ) AS col0 FROM tab2 AS cor0
----
39
39
39

query II rowsort
SELECT DISTINCT + - col0, + 24 - - - col0 AS col0 FROM tab0 AS cor0
----
-15
9
-87
-63
-97
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2259
SELECT - + COUNT( * ) * - CAST( NULL AS SIGNED ) * 81 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2259
SELECT - + COUNT ( * ) * - CAST ( NULL AS INTEGER ) * 81 FROM tab2 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2260
SELECT - 68 * - COUNT( col2 ) * - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-612

skipif mysql # not compatible
query I rowsort label-2260
SELECT - 68 * - COUNT ( col2 ) * - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-612

query III rowsort
SELECT * FROM tab1 WHERE NOT + - col1 < - + col1 - + col0 * + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col0 < - 67 * col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2263
SELECT DISTINCT - CAST( + - ( + col1 ) AS SIGNED ) FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-2263
SELECT DISTINCT - CAST ( + - ( + col1 ) AS INTEGER ) FROM tab0 AS cor0
----
1
21
81

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 64 IS NOT NULL
----

query I rowsort
SELECT - 94 + col0 FROM tab0
----
-7
-79
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2266
SELECT + - SUM( + + 98 ) FROM tab1 AS cor0
----
-294

skipif mysql # not compatible
query I rowsort label-2266
SELECT + - SUM ( + + 98 ) FROM tab1 AS cor0
----
-294

query I rowsort
SELECT + 4 * - col1 FROM tab2 AS cor0
----
-204
-268
-308

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( - 13 ) BETWEEN - col2 AND NULL
----
87
21
10

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2269
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col2 / - CAST( NULL AS SIGNED ) + - col1 * - 36, 95 - + CAST( + col0 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2269
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col2 / - CAST ( NULL AS INTEGER ) + - col1 * - 36, 95 - + CAST ( + col0 AS INTEGER ) )
----

query I rowsort
SELECT + - col1 * 99 AS col0 FROM tab1 AS cor0
----
-1386
-4653
-495

query I rowsort
SELECT ALL + - ( - 13 ) FROM tab1 AS cor0 WHERE NOT - col0 IS NOT NULL
----

query II rowsort
SELECT + + 21 AS col0, col0 AS col0 FROM tab2 AS cor0
----
21
46
21
64
21
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - - col2 col0 FROM tab1
----
144
147
159

onlyif mysql # DIV for integer division: 
query II rowsort label-2274
SELECT 72 - col0 DIV + col1 + + - 27 AS col2, col1 FROM tab0
----
-52
1
41
21
45
81

skipif mysql # not compatible
query II rowsort label-2274
SELECT 72 - col0 / + col1 + + - 27 AS col2, col1 FROM tab0
----
-52
1
41
21
45
81

query I rowsort
SELECT ALL + col1 + + ( - col1 ) FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2276
SELECT ( 53 ) + - COUNT( * ) AS col2 FROM tab1
----
50

skipif mysql # not compatible
query I rowsort label-2276
SELECT ( 53 ) + - COUNT ( * ) AS col2 FROM tab1
----
50

query II rowsort
SELECT + col1 + - col1, col2 FROM tab2
----
0
23
0
40
0
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2278
SELECT DISTINCT COUNT( * ) - + MIN( DISTINCT col1 ) AS col1 FROM tab2
----
-48

skipif mysql # not compatible
query I rowsort label-2278
SELECT DISTINCT COUNT ( * ) - + MIN ( DISTINCT col1 ) AS col1 FROM tab2
----
-48

query I rowsort
SELECT ALL col0 - ( col2 ) AS col1 FROM tab1
----
-45
23
26

onlyif mysql # aggregate syntax: 
query I rowsort label-2280
SELECT COUNT( - + col0 ) + - - 41 FROM tab2 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-2280
SELECT COUNT ( - + col0 ) + - - 41 FROM tab2 AS cor0
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2281
SELECT ALL - CAST( NULL AS SIGNED ) * - - ( + - col2 ) + + col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2281
SELECT ALL - CAST ( NULL AS INTEGER ) * - - ( + - col2 ) + + col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2282
SELECT ALL MAX( ALL 85 ) FROM tab2
----
85

skipif mysql # not compatible
query I rowsort label-2282
SELECT ALL MAX ( ALL 85 ) FROM tab2
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-2283
SELECT - MIN( ALL col0 ) AS col2 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-2283
SELECT - MIN ( ALL col0 ) AS col2 FROM tab0 AS cor0
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-2284
SELECT ALL col1 DIV + + col2 AS col2 FROM tab2 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-2284
SELECT ALL col1 / + + col2 AS col2 FROM tab2 AS cor0
----
1
1
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2, col0 col0 FROM tab1 AS cor0
----
59
85
68
91
96
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2286
SELECT DISTINCT SUM( + col2 ) FROM tab2 cor0
----
121

skipif mysql # not compatible
query I rowsort label-2286
SELECT DISTINCT SUM ( + col2 ) FROM tab2 cor0
----
121

query II rowsort
SELECT DISTINCT - col1 AS col0, + 18 * - + col2 FROM tab0 cor0
----
-1
-1782
-21
-180
-81
-846

onlyif mysql # aggregate syntax: 
query I rowsort label-2288
SELECT - + MAX( DISTINCT - col2 ) col1 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2288
SELECT - + MAX ( DISTINCT - col2 ) col1 FROM tab2 AS cor0
----
23

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col2 + col0 < + col0 + + col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2290
SELECT ALL CAST( NULL AS DECIMAL ) / col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2290
SELECT ALL CAST ( NULL AS REAL ) / col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2291
SELECT DISTINCT 20 DIV - MAX( - col2 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2291
SELECT DISTINCT 20 / - MAX ( - col2 ) FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-2292
SELECT - ( - - col0 ) DIV 42 * col2 AS col2, 32 AS col1 FROM tab2
----
-23
32
-40
32
-58
32

skipif mysql # not compatible
query II rowsort label-2292
SELECT - ( - - col0 ) / 42 * col2 AS col2, 32 AS col1 FROM tab2
----
-23
32
-40
32
-58
32

query I rowsort
SELECT DISTINCT + ( col2 ) AS col0 FROM tab0 WHERE NOT + - col2 IS NULL
----
10
47
99

query II rowsort
SELECT col0, col2 * + col1 + col2 AS col2 FROM tab0
----
15
3854
87
220
97
198

onlyif mysql # aggregate syntax: 
query I rowsort label-2295
SELECT COUNT( * ) * - - 65 AS col2 FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-2295
SELECT COUNT ( * ) * - - 65 AS col2 FROM tab2
----
195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2296
SELECT ALL - col2 * + CAST( 56 AS SIGNED ) FROM tab1
----
-3304
-3808
-5376

skipif mysql # not compatible
query I rowsort label-2296
SELECT ALL - col2 * + CAST ( 56 AS INTEGER ) FROM tab1
----
-3304
-3808
-5376

query I rowsort
SELECT DISTINCT - 45 + - col1 AS col2 FROM tab0 AS cor0
----
-126
-46
-66

query I rowsort
SELECT + - 71 FROM tab0 cor0
----
-71
-71
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-2299
SELECT DISTINCT + 75 + - SUM( DISTINCT - + col1 ) FROM tab0 AS cor0
----
178

skipif mysql # not compatible
query I rowsort label-2299
SELECT DISTINCT + 75 + - SUM ( DISTINCT - + col1 ) FROM tab0 AS cor0
----
178

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE - 89 >= 20
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2301
SELECT DISTINCT + + col2 - + + col1 col0 FROM tab1 WHERE NOT + CAST( col0 AS SIGNED ) NOT BETWEEN NULL AND 91 + col2
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2301
SELECT DISTINCT + + col2 - + + col1 col0 FROM tab1 WHERE NOT + CAST ( col0 AS INTEGER ) NOT BETWEEN NULL AND 91 + col2
----

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab2 AS cor0 WHERE NOT col2 * - 11 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2303
SELECT DISTINCT - col1 * col2 * - col0 AS col0 FROM tab2 AS cor0 WHERE NOT - col0 + - col0 + + col0 * + CAST( + col0 AS SIGNED ) IS NULL
----
197120
291450
53958

skipif mysql # not compatible
query I rowsort label-2303
SELECT DISTINCT - col1 * col2 * - col0 AS col0 FROM tab2 AS cor0 WHERE NOT - col0 + - col0 + + col0 * + CAST ( + col0 AS INTEGER ) IS NULL
----
197120
291450
53958

query I rowsort
SELECT 1 * - 19 + col1 AS col0 FROM tab1 AS cor0
----
-14
-5
28

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2305
SELECT + + CAST( NULL AS DECIMAL ) + + col0 AS col0, col2 FROM tab2 cor0
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-2305
SELECT + + CAST ( NULL AS REAL ) + + col0 AS col0, col2 FROM tab2 cor0
----
NULL
23
NULL
40
NULL
58

query I rowsort
SELECT DISTINCT - 95 + col0 AS col0 FROM tab2
----
-20
-31
-49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2307
SELECT 42 DIV + COUNT( * ) FROM tab2
----
14

skipif mysql # not compatible
query I rowsort label-2307
SELECT 42 / + COUNT ( * ) FROM tab2
----
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 * col2 + - + col1, 23 col2 FROM tab1
----
3476
23
4577
23
9202
23

query I rowsort
SELECT DISTINCT ( + + 44 ) + + + col0 FROM tab2
----
108
119
90

onlyif mysql # DIV for integer division: 
query I rowsort label-2310
SELECT ALL 26 + - col0 + + col1 DIV - col0 FROM tab1
----
-25
-59
-65

skipif mysql # not compatible
query I rowsort label-2310
SELECT ALL 26 + - col0 + + col1 / - col0 FROM tab1
----
-25
-59
-65

query I rowsort
SELECT DISTINCT ( - col0 ) FROM tab0 WHERE 11 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2312
SELECT ALL COUNT( * ) - + + COUNT( * ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2312
SELECT ALL COUNT ( * ) - + + COUNT ( * ) AS col1 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2313
SELECT DISTINCT + SUM( ALL - 5 ) + - COUNT( * ) FROM tab1 AS cor0 WHERE 51 / + 93 IS NOT NULL
----
-18

skipif mysql # not compatible
query I rowsort label-2313
SELECT DISTINCT + SUM ( ALL - 5 ) + - COUNT ( * ) FROM tab1 AS cor0 WHERE 51 / + 93 IS NOT NULL
----
-18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 34 col2 FROM tab0 AS cor0
----
34

query I rowsort
SELECT ALL + 69 AS col1 FROM tab0 cor0
----
69
69
69

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 79 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2317
SELECT - + COUNT( ALL 72 ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2317
SELECT - + COUNT ( ALL 72 ) AS col1 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-2318
SELECT DISTINCT + 7 * + - 64, COUNT( - - col0 ) - - 38 AS col2 FROM tab0 AS cor0
----
-448
41

skipif mysql # not compatible
query II rowsort label-2318
SELECT DISTINCT + 7 * + - 64, COUNT ( - - col0 ) - - 38 AS col2 FROM tab0 AS cor0
----
-448
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2319
SELECT + col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-2319
SELECT + col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT col2 * + + col1 AS col1 FROM tab0
----
210
3807
99

query II rowsort
SELECT DISTINCT - col1, - 88 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-1
-88
-21
-88
-81
-88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + 26 col0 FROM tab1
----
1326
2210
2366

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 19 + - + 94 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - + 74 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5a567947d14593676e3825756f8e6130

query I rowsort
SELECT DISTINCT + col0 * col2 + + 30 AS col0 FROM tab2
----
1088
2590
4380

query I rowsort
SELECT AVG ( col2 ) AS col0 FROM tab0 AS cor0 WHERE 25 - - - 85 = NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT + col2 / col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2328
SELECT + 44 * - - COUNT( * ) AS col2 FROM tab0 AS cor0
----
132

skipif mysql # not compatible
query I rowsort label-2328
SELECT + 44 * - - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
132

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2329
SELECT + CAST( col0 AS SIGNED ) * - + col0 FROM tab1 AS cor0
----
-2601
-7225
-8281

skipif mysql # not compatible
query I rowsort label-2329
SELECT + CAST ( col0 AS INTEGER ) * - + col0 FROM tab1 AS cor0
----
-2601
-7225
-8281

onlyif mysql # aggregate syntax: 
query I rowsort label-2330
SELECT + COUNT( * ) FROM tab1 AS cor0 WHERE col0 <= - - col0 * col2 + col1 + + 99
----
3

skipif mysql # not compatible
query I rowsort label-2330
SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE col0 <= - - col0 * col2 + col1 + + 99
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2331
SELECT ALL + COUNT( * ) * + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2331
SELECT ALL + COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT NULL <= + 18 + - 69 )
----

query I rowsort
SELECT DISTINCT - col1 + + + 21 - - col0 AS col2 FROM tab0
----
-45
117
87

onlyif mysql # aggregate syntax: 
query I rowsort label-2334
SELECT + 55 - SUM( ALL col1 ) FROM tab0
----
-48

skipif mysql # not compatible
query I rowsort label-2334
SELECT + 55 - SUM ( ALL col1 ) FROM tab0
----
-48

query I rowsort
SELECT col0 + + ( col1 ) + + 65 * + ( - col2 ) FROM tab0
----
-2959
-542
-6337

query I rowsort
SELECT col1 + + - col2 + - col1 FROM tab1
----
-59
-68
-96

query I rowsort
SELECT ALL - col0 * - col1 + - + col1 FROM tab1
----
420
4230
700

query I rowsort
SELECT - col0 * 10 + col2 FROM tab0 AS cor0
----
-103
-860
-871

query I rowsort
SELECT + 89 + col1 * col0 FROM tab0 AS cor0
----
1304
186
1916

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 54 * + + col2 + - + 97 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2341
SELECT + COUNT( * ) * - COUNT( * ) DIV - 50 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2341
SELECT + COUNT ( * ) * - COUNT ( * ) / - 50 AS col2 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2342
SELECT DISTINCT + CAST( - + col2 AS SIGNED ) AS col0 FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-2342
SELECT DISTINCT + CAST ( - + col2 AS INTEGER ) AS col0 FROM tab0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2343
SELECT DISTINCT - SUM( ALL col2 ) AS col1 FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-2343
SELECT DISTINCT - SUM ( ALL col2 ) AS col1 FROM tab0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-2344
SELECT MAX( DISTINCT col2 ) AS col0 FROM tab0 cor0
----
99

skipif mysql # not compatible
query I rowsort label-2344
SELECT MAX ( DISTINCT col2 ) AS col0 FROM tab0 cor0
----
99

query I rowsort
SELECT - col0 - + col1 * + - col2 / + + 83 AS col1 FROM tab1 AS cor0 WHERE NOT NULL < 37 + - col1
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL BETWEEN 3 AND + 20
----

query I rowsort
SELECT ALL ( + - ( + col2 ) ) AS col1 FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2348
SELECT ALL - - COUNT( ALL + col0 ) FROM tab0 AS cor0 WHERE col2 BETWEEN NULL AND - + 86
----
0

skipif mysql # not compatible
query I rowsort label-2348
SELECT ALL - - COUNT ( ALL + col0 ) FROM tab0 AS cor0 WHERE col2 BETWEEN NULL AND - + 86
----
0

query I rowsort
SELECT - + col2 AS col2 FROM tab1 cor0 WHERE NOT col2 / - 80 >= - 6
----

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE NOT ( - 91 + - 67 ) = + col0
----
-10
-47
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2351
SELECT + 85 col2 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN 77 * - col1 / CAST( NULL AS SIGNED ) AND - 39
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2351
SELECT + 85 col2 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN 77 * - col1 / CAST ( NULL AS INTEGER ) AND - 39
----

query I rowsort
SELECT ( + - 63 ) AS col0 FROM tab0 AS cor0
----
-63
-63
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-2353
SELECT DISTINCT - - ( - ( - COUNT( * ) ) ) * 30 * - - 48 FROM tab2 AS cor0
----
4320

skipif mysql # not compatible
query I rowsort label-2353
SELECT DISTINCT - - ( - ( - COUNT ( * ) ) ) * 30 * - - 48 FROM tab2 AS cor0
----
4320

query II rowsort
SELECT - 33, - col1 AS col0 FROM tab0 AS cor0
----
-33
-1
-33
-21
-33
-81

query II rowsort
SELECT DISTINCT - - col0, col2 FROM tab0 AS cor0
----
15
47
87
10
97
99

query I rowsort
SELECT - col0 * - col0 + - col2 AS col1 FROM tab2
----
2093
4056
5567

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 <= col2 + + + col2
----

query I rowsort
SELECT ALL - col1 * + - 71 * - ( - - col0 ) FROM tab0
----
-129717
-6887
-86265

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT col1 + ( + - 50 ) / - 68 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col0 * + - col1 - + - col1 AS col2 FROM tab0 AS cor0
----
-1134
-1806
-96

query I rowsort
SELECT 81 + - 10 * + + col2 AS col2 FROM tab0 AS cor0
----
-19
-389
-909

query I rowsort
SELECT - 13 + + - ( col2 ) AS col2 FROM tab1 AS cor0
----
-109
-72
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2363
SELECT ALL - CAST( - COUNT( * ) AS SIGNED ) - COUNT( * ) + + 50 + - + 74 FROM tab2 AS cor0 WHERE NOT 2 IS NULL
----
-24

skipif mysql # not compatible
query I rowsort label-2363
SELECT ALL - CAST ( - COUNT ( * ) AS INTEGER ) - COUNT ( * ) + + 50 + - + 74 FROM tab2 AS cor0 WHERE NOT 2 IS NULL
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2364
SELECT - CAST( NULL AS SIGNED ) + col1 * + - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2364
SELECT - CAST ( NULL AS INTEGER ) + col1 * + - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 + + 67 FROM tab1 AS cor0
----
118
152
158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 14 col2 FROM tab1 cor0
----
14
14
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2367
SELECT + col2 * + CAST( NULL AS SIGNED ) * col2 + - col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2367
SELECT + col2 * + CAST ( NULL AS INTEGER ) * col2 + - col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE ( NULL NOT BETWEEN + 70 AND 75 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2369
SELECT ALL 98 DIV + 96 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2369
SELECT ALL 98 / + 96 FROM tab0
----
1
1
1

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT BETWEEN + + ( + 31 ) AND col2
----

query II rowsort
SELECT DISTINCT + col2 AS col0, + col0 - + + col2 AS col2 FROM tab2
----
23
23
40
24
58
17

onlyif mysql # aggregate syntax: 
query I rowsort label-2372
SELECT COUNT( DISTINCT - 84 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2372
SELECT COUNT ( DISTINCT - 84 ) FROM tab1 AS cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2373
SELECT + CAST( 79 AS SIGNED ) col0 FROM tab0 AS cor0
----
79
79
79

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2373
SELECT + CAST ( 79 AS INTEGER ) col0 FROM tab0 AS cor0
----
79
79
79

query I rowsort
SELECT DISTINCT + + 22 AS col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
22

onlyif mysql # aggregate syntax: 
query II rowsort label-2375
SELECT + MIN( DISTINCT - ( - - col1 ) ) AS col2, + COUNT( * ) * + - SUM( ALL - col0 ) FROM tab0 AS cor0
----
-81
597

skipif mysql # not compatible
query II rowsort label-2375
SELECT + MIN ( DISTINCT - ( - - col1 ) ) AS col2, + COUNT ( * ) * + - SUM ( ALL - col0 ) FROM tab0 AS cor0
----
-81
597

query I rowsort
SELECT - + col0 * col0 FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2377
SELECT ALL - + 93 * + - ( COUNT( * ) ) + - 87 FROM tab1 AS cor0
----
192

skipif mysql # not compatible
query I rowsort label-2377
SELECT ALL - + 93 * + - ( COUNT ( * ) ) + - 87 FROM tab1 AS cor0
----
192

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2378
SELECT ALL - CAST( NULL AS SIGNED ) / + col2 + + + ( + col0 ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2378
SELECT ALL - CAST ( NULL AS INTEGER ) / + col2 + + + ( + col0 ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 * + - col0 * + col0 FROM tab1 AS cor0
----
132651
614125
753571

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2380
SELECT DISTINCT col1 * CAST( NULL AS SIGNED ) + - + col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2380
SELECT DISTINCT col1 * CAST ( NULL AS INTEGER ) + - + col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2381
SELECT DISTINCT + MIN( + + col0 ) + + COUNT( + col0 ) AS col2 FROM tab1 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-2381
SELECT DISTINCT + MIN ( + + col0 ) + + COUNT ( + col0 ) AS col2 FROM tab1 AS cor0
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2382
SELECT - 50 FROM tab1 WHERE NULL NOT BETWEEN NULL AND col0 + - col0 * + CAST( - - col2 AS SIGNED ) / ( - col2 ) / 58
----

skipif mysql # not compatible
query I rowsort label-2382
SELECT - 50 FROM tab1 WHERE NULL NOT BETWEEN NULL AND col0 + - col0 * + CAST ( - - col2 AS INTEGER ) / ( - col2 ) / 58
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2383
SELECT + CAST( + col1 AS SIGNED ) * 59 + col2 AS col1 FROM tab2
----
3032
4011
4583

skipif mysql # not compatible
query I rowsort label-2383
SELECT + CAST ( + col1 AS INTEGER ) * 59 + col2 AS col1 FROM tab2
----
3032
4011
4583

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL IN ( 97, + col0 )
----

query I rowsort
SELECT DISTINCT + + 86 * col0 FROM tab0 AS cor0
----
1290
7482
8342

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * col0 + - col0 * 68 col2 FROM tab1
----
-10465
-4182
-6205

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL < 86
----

query I rowsort
SELECT ALL - 17 - + col1 FROM tab2 AS cor0
----
-68
-84
-94

query II rowsort
SELECT - - col1 - + - 89, 67 AS col0 FROM tab1 cor0
----
103
67
136
67
94
67

query I rowsort
SELECT ALL + + 11 - + col1 FROM tab2 cor0
----
-40
-56
-66

query I rowsort
SELECT ALL 43 * col1 AS col0 FROM tab2
----
2193
2881
3311

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2392
SELECT - COUNT( * ) / + CAST( NULL AS SIGNED ) * - + COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2392
SELECT - COUNT ( * ) / + CAST ( NULL AS INTEGER ) * - + COUNT ( * ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2393
SELECT DISTINCT 83 * - COUNT( * ) FROM tab2
----
-249

skipif mysql # not compatible
query I rowsort label-2393
SELECT DISTINCT 83 * - COUNT ( * ) FROM tab2
----
-249

onlyif mysql # aggregate syntax: 
query I rowsort label-2394
SELECT MAX( - - 8 ) FROM tab2
----
8

skipif mysql # not compatible
query I rowsort label-2394
SELECT MAX ( - - 8 ) FROM tab2
----
8

query I rowsort
SELECT ALL col0 * - 80 AS col0 FROM tab1
----
-4080
-6800
-7280

onlyif mysql # aggregate syntax: 
query I rowsort label-2396
SELECT + MIN( DISTINCT col2 ) col0 FROM tab0
----
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2396
SELECT + MIN ( DISTINCT col2 ) col0 FROM tab0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-2397
SELECT COUNT( - 48 ) col2 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2397
SELECT COUNT ( - 48 ) col2 FROM tab1
----
3

query I rowsort
SELECT ( + 7 ) FROM tab0
----
7
7
7

onlyif mysql # DIV for integer division: 
query II rowsort label-2399
SELECT DISTINCT - - 7 DIV + - 85 AS col1, - col1 FROM tab1 WHERE NOT + - 62 IS NULL
----
0
-14
0
-47
0
-5

skipif mysql # not compatible
query II rowsort label-2399
SELECT DISTINCT - - 7 / + - 85 AS col1, - col1 FROM tab1 WHERE NOT + - 62 IS NULL
----
0
-14
0
-47
0
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-2400
SELECT DISTINCT - col0 DIV col0 col1 FROM tab2 cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2400
SELECT DISTINCT - col0 / col0 col1 FROM tab2 cor0
----
-1

query I rowsort
SELECT + col1 * - 33 * col1 AS col1 FROM tab2
----
-148137
-195657
-85833

query I rowsort
SELECT - 2 * + - col1 AS col2 FROM tab2
----
102
134
154

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2403
SELECT - 29 / CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2403
SELECT - 29 / CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 85 AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2405
SELECT * FROM tab0 AS cor0 WHERE NOT + ( + col0 ) * - CAST( NULL AS SIGNED ) * + - col1 * 71 IN ( col1, col1, + col1, + 64 * - - col2 )
----

skipif mysql # not compatible
query III rowsort label-2405
SELECT * FROM tab0 AS cor0 WHERE NOT + ( + col0 ) * - CAST ( NULL AS INTEGER ) * + - col1 * 71 IN ( col1, col1, + col1, + 64 * - - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2406
SELECT MIN( DISTINCT + col1 ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2406
SELECT MIN ( DISTINCT + col1 ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

query I rowsort
SELECT col0 * - 14 / - + col1 / - col2 - - 90 AS col1 FROM tab1 AS cor0 WHERE NOT - col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col1 FROM tab1 AS cor0 WHERE - 56 IS NULL
----

query I rowsort
SELECT - 86 + + + col2 AS col2 FROM tab2
----
-28
-46
-63

query I rowsort
SELECT col2 + + 28 FROM tab1
----
124
87
96

query I rowsort
SELECT col1 * - + col1 * col0 + - col0 FROM tab2
----
-119692
-336750
-379520

query I rowsort
SELECT + ( + col1 ) + col1 * + col0 AS col0 FROM tab2
----
2397
5005
5092

onlyif mysql # aggregate syntax: 
query I rowsort label-2413
SELECT DISTINCT COUNT( * ) * 37 + + COUNT( * ) AS col1 FROM tab0
----
114

skipif mysql # not compatible
query I rowsort label-2413
SELECT DISTINCT COUNT ( * ) * 37 + + COUNT ( * ) AS col1 FROM tab0
----
114

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col1 + - col2 IS NOT NULL
----

query I rowsort
SELECT 25 * + col1 AS col0 FROM tab2
----
1275
1675
1925

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2416
SELECT * FROM tab2 AS cor0 WHERE + col0 * + + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2416
SELECT * FROM tab2 AS cor0 WHERE + col0 * + + CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2417
SELECT DISTINCT - MIN( DISTINCT + - col1 ) + + - 69 AS col0 FROM tab1 AS cor0 WHERE NOT + col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2417
SELECT DISTINCT - MIN ( DISTINCT + - col1 ) + + - 69 AS col0 FROM tab1 AS cor0 WHERE NOT + col1 IS NOT NULL
----
NULL

query II rowsort
SELECT DISTINCT - col2, col1 + - col2 * - col2 AS col2 FROM tab1
----
-59
3486
-68
4671
-96
9230

query I rowsort
SELECT 98 - + 16 * + 49 FROM tab1
----
-686
-686
-686

query I rowsort
SELECT col2 + ( 3 ) FROM tab2
----
26
43
61

query I rowsort
SELECT ALL col2 + + 85 + + col1 FROM tab2
----
159
202
210

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2422
SELECT - CAST( + col2 AS SIGNED ) + + + col2 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2422
SELECT - CAST ( + col2 AS INTEGER ) + + + col2 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + 68 + 69 AS col1 FROM tab0 AS cor0
----
137
137
137

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 34 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2425
SELECT + SUM( - - col1 ) FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-2425
SELECT + SUM ( - - col1 ) FROM tab2 AS cor0
----
195

query I rowsort
SELECT ALL - + col2 * - + 62 - + 91 FROM tab1 AS cor0
----
3567
4125
5861

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2427
SELECT ALL * FROM tab1 AS cor0 WHERE - CAST( NULL AS SIGNED ) / 9 * + ( - 91 ) IN ( - + col0 * col1 * - col1 * 18 * + - col1, - CAST( + col0 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2427
SELECT ALL * FROM tab1 AS cor0 WHERE - CAST ( NULL AS INTEGER ) / 9 * + ( - 91 ) IN ( - + col0 * col1 * - col1 * 18 * + - col1, - CAST ( + col0 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2428
SELECT + + COUNT( * ) col1, ( + + COUNT( col2 ) ) FROM tab1 AS cor0
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2428
SELECT + + COUNT ( * ) col1, ( + + COUNT ( col2 ) ) FROM tab1 AS cor0
----
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2429
SELECT - CAST( + - col0 AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE NOT + 36 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2429
SELECT - CAST ( + - col0 AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NOT + 36 IS NOT NULL
----

query II rowsort
SELECT DISTINCT - 25 AS col1, 16 * + 24 + - col2 + + + 46 FROM tab0 AS cor0
----
-25
331
-25
383
-25
420

query II rowsort
SELECT + 11 AS col1, + col1 * col2 AS col1 FROM tab2 AS cor0
----
11
1173
11
3080
11
3886

query I rowsort
SELECT - col0 * + 67 AS col0 FROM tab2
----
-3082
-4288
-5025

query II rowsort
SELECT DISTINCT - col1 * col1 * + + ( - 14 ) AS col1, + col2 AS col2 FROM tab1
----
2744
96
30926
68
350
59

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + - 23 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2435
SELECT + 79 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND ( col0 ) + - + CAST( - col2 AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-2435
SELECT + 79 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND ( col0 ) + - + CAST ( - col2 AS REAL )
----

query I rowsort
SELECT ALL col1 * + + 13 AS col1 FROM tab0
----
1053
13
273

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND - 19
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( 86 ) IS NULL
----

query I rowsort
SELECT + col2 * col0 + + + ( 39 ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

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-2441
SELECT 2 + + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
11

skipif mysql # not compatible
query I rowsort label-2441
SELECT 2 + + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-2442
SELECT - col2 + 21 DIV + col0 AS col1 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-2442
SELECT - col2 + 21 / + col0 AS col1 FROM tab1
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2443
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL NOT BETWEEN - col1 AND + - col0 * col2 * + CAST( + - 24 AS SIGNED ) * - 8 + + col0 )
----

skipif mysql # not compatible
query III rowsort label-2443
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL NOT BETWEEN - col1 AND + - col0 * col2 * + CAST ( + - 24 AS INTEGER ) * - 8 + + col0 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2444
SELECT - COUNT( * ) * + MIN( DISTINCT col1 ) AS col1, - MAX( + col2 ) FROM tab0 AS cor0
----
-3
-99

skipif mysql # not compatible
query II rowsort label-2444
SELECT - COUNT ( * ) * + MIN ( DISTINCT col1 ) AS col1, - MAX ( + col2 ) FROM tab0 AS cor0
----
-3
-99

query I rowsort
SELECT - + col1 * - ( - - ( - col1 ) ) - - col1 + 73 + + + col2 + - col1 + col0 FROM tab2 AS cor0 WHERE - col2 * + col2 IS NULL
----

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab1 AS cor0 WHERE ( + - 29 ) + - 1 IN ( + col2, - col1 )
----

query I rowsort
SELECT DISTINCT + - col1 * col0 + col2 + + + col2 - + - col2 * - - col1 * 10 FROM tab1 AS cor0
----
12918
2643
27819

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2448
SELECT * FROM tab0 WHERE + col1 < + + CAST( NULL AS SIGNED ) - + col1
----

skipif mysql # not compatible
query III rowsort label-2448
SELECT * FROM tab0 WHERE + col1 < + + CAST ( NULL AS INTEGER ) - + col1
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-2449
SELECT * FROM tab0 WHERE CAST( col0 AS DECIMAL ) * + col0 IN ( - 45, + col1 * - col2 * - + CAST( 80 AS SIGNED ), - - 73 )
----

skipif mysql # not compatible
query III rowsort label-2449
SELECT * FROM tab0 WHERE CAST ( col0 AS REAL ) * + col0 IN ( - 45, + col1 * - col2 * - + CAST ( 80 AS INTEGER ), - - 73 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2450
SELECT ALL - COUNT( * ) + + 19, COUNT( * ) AS col0 FROM tab1
----
16
3

skipif mysql # not compatible
query II rowsort label-2450
SELECT ALL - COUNT ( * ) + + 19, COUNT ( * ) AS col0 FROM tab1
----
16
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2451
SELECT DISTINCT CAST( NULL AS SIGNED ) + col1 + + 54 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2451
SELECT DISTINCT CAST ( NULL AS INTEGER ) + col1 + + 54 AS col2 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT 47 AS col0 FROM tab1 AS cor0 WHERE NOT - 66 * + + 19 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NOT + + col1 * col2 >= NULL )
----

query I rowsort
SELECT DISTINCT + - 80 AS col0 FROM tab0 AS cor0
----
-80

query III rowsort
SELECT ALL * FROM tab1 WHERE - col2 <> + + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-2456
SELECT col1 DIV 39 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2456
SELECT col1 / 39 FROM tab2
----
1
1
1

query II rowsort
SELECT + ( + col2 ), - col2 FROM tab0 AS cor0
----
10
-10
47
-47
99
-99

query I rowsort
SELECT - 40 * - col1 AS col2 FROM tab2 AS cor0
----
2040
2680
3080

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * + - col1 + 45 col0 FROM tab0 cor0
----
46
486
6606

query I rowsort
SELECT ALL - 96 * + col0 AS col0 FROM tab2
----
-4416
-6144
-7200

query I rowsort
SELECT DISTINCT ( + ( 54 ) ) AS col2 FROM tab2
----
54

query III rowsort
SELECT * FROM tab2 WHERE NOT - 82 IN ( col0 * + + col2 * - + col2 + col2, + col1, - col0, + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 35 * col1 FROM tab0
----
-2835
-35
-735

onlyif mysql # aggregate syntax: 
query I rowsort label-2464
SELECT - MAX( 34 ) * ( COUNT( * ) ) AS col2 FROM tab0
----
-102

skipif mysql # not compatible
query I rowsort label-2464
SELECT - MAX ( 34 ) * ( COUNT ( * ) ) AS col2 FROM tab0
----
-102

query II rowsort
SELECT - col0 AS col2, + 15 - + - col0 FROM tab0
----
-15
30
-87
102
-97
112

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + col1 AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col2 * 7 * + + col2 >= col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2468
SELECT - CAST( 97 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-97
-97
-97

skipif mysql # not compatible
query I rowsort label-2468
SELECT - CAST ( 97 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-97
-97
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2469
SELECT col2 + col1 * - CAST( - col2 AS SIGNED ) col1 FROM tab1 WHERE + 67 BETWEEN NULL AND NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2469
SELECT col2 + col1 * - CAST ( - col2 AS INTEGER ) col1 FROM tab1 WHERE + 67 BETWEEN NULL AND NULL
----

query I rowsort
SELECT + col0 AS col0 FROM tab1 WHERE NOT ( - 45 + + 42 * col2 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 45 col1 FROM tab2 WHERE NOT NULL IN ( 3 + - 14 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2472
SELECT DISTINCT + COUNT( * ) * + 89 FROM tab0
----
267

skipif mysql # not compatible
query I rowsort label-2472
SELECT DISTINCT + COUNT ( * ) * + 89 FROM tab0
----
267

onlyif mysql # aggregate syntax: 
query I rowsort label-2473
SELECT MIN( ALL col1 ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-2473
SELECT MIN ( ALL col1 ) AS col0 FROM tab0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2474
SELECT ALL * FROM tab1 WHERE NOT + CAST( NULL AS SIGNED ) * - col0 IS NULL
----

skipif mysql # not compatible
query III rowsort label-2474
SELECT ALL * FROM tab1 WHERE NOT + CAST ( NULL AS INTEGER ) * - col0 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT 28 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2476
SELECT COUNT( * ) + + 72 AS col1 FROM tab1
----
75

skipif mysql # not compatible
query I rowsort label-2476
SELECT COUNT ( * ) + + 72 AS col1 FROM tab1
----
75

query I rowsort
SELECT ALL col1 AS col1 FROM tab1 WHERE NOT - col2 + - 25 * 12 IS NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2478
SELECT 28 * ( - COUNT( * ) * - COUNT( * ) ) AS col1 FROM tab0
----
252

skipif mysql # not compatible
query I rowsort label-2478
SELECT 28 * ( - COUNT ( * ) * - COUNT ( * ) ) AS col1 FROM tab0
----
252

onlyif mysql # aggregate syntax: 
query I rowsort label-2479
SELECT COUNT( 82 ) * - SUM( DISTINCT - col1 ) AS col1 FROM tab2
----
585

skipif mysql # not compatible
query I rowsort label-2479
SELECT COUNT ( 82 ) * - SUM ( DISTINCT - col1 ) AS col1 FROM tab2
----
585

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2480
SELECT DISTINCT - CAST( COUNT( * ) AS SIGNED ) - + MAX( DISTINCT + col0 ) * - 99 FROM tab1
----
9006

skipif mysql # not compatible
query I rowsort label-2480
SELECT DISTINCT - CAST ( COUNT ( * ) AS INTEGER ) - + MAX ( DISTINCT + col0 ) * - 99 FROM tab1
----
9006

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) < col1 - - 2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2482
SELECT ALL + CAST( NULL AS SIGNED ) + + MAX( col0 - + col0 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2482
SELECT ALL + CAST ( NULL AS INTEGER ) + + MAX ( col0 - + col0 ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2483
SELECT DISTINCT COUNT( * ) + 60 AS col1 FROM tab0
----
63

skipif mysql # not compatible
query I rowsort label-2483
SELECT DISTINCT COUNT ( * ) + 60 AS col1 FROM tab0
----
63

query I rowsort
SELECT ALL col2 + - col1 FROM tab2 WHERE ( 87 ) <> NULL
----

query I rowsort
SELECT - col1 + 41 FROM tab2
----
-10
-26
-36

query I rowsort
SELECT - col0 - - col0 AS col2 FROM tab1 WHERE NOT ( NULL ) BETWEEN - col2 AND NULL
----

query I rowsort
SELECT DISTINCT - col1 * + 46 FROM tab0
----
-3726
-46
-966

query III rowsort
SELECT * FROM tab2 WHERE ( + col1 ) >= 97 + - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE NOT 49 * 86 > ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2490
SELECT - COUNT( * ) + 60 AS col1 FROM tab0
----
57

skipif mysql # not compatible
query I rowsort label-2490
SELECT - COUNT ( * ) + 60 AS col1 FROM tab0
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2491
SELECT DISTINCT + COUNT( * ) DIV COUNT( col1 ) AS col0 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-2491
SELECT DISTINCT + COUNT ( * ) / COUNT ( col1 ) AS col0 FROM tab2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2492
SELECT DISTINCT - 65 DIV col1 AS col1 FROM tab1
----
-1
-13
-4

skipif mysql # not compatible
query I rowsort label-2492
SELECT DISTINCT - 65 / col1 AS col1 FROM tab1
----
-1
-13
-4

query I rowsort
SELECT 42 - 64 AS col1 FROM tab0 AS cor0
----
-22
-22
-22

query I rowsort
SELECT 14 - + col1 AS col1 FROM tab1 AS cor0
----
-33
0
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2495
SELECT + MIN( ALL + ( - col2 ) ) - 28 col1 FROM tab0 cor0
----
-127

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2495
SELECT + MIN ( ALL + ( - col2 ) ) - 28 col1 FROM tab0 cor0
----
-127

query I rowsort
SELECT ALL 88 * - col1 FROM tab2 WHERE 11 * - col0 + + 25 * col0 <= col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2497
SELECT - COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0
----
-9

skipif mysql # not compatible
query I rowsort label-2497
SELECT - COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0
----
-9

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col0 / + col1 BETWEEN + col1 + col0 * + col2 AND col2 * col2
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( col2 ) = + col1 * 93
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2500
SELECT DISTINCT - SUM( 33 ) AS col2 FROM tab1 cor0
----
-99

skipif mysql # not compatible
query I rowsort label-2500
SELECT DISTINCT - SUM ( 33 ) AS col2 FROM tab1 cor0
----
-99

query I rowsort
SELECT 69 * 67 FROM tab0 AS cor0
----
4623
4623
4623

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT 24 >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2503
SELECT DISTINCT MIN( ALL 36 ) FROM tab0 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-2503
SELECT DISTINCT MIN ( ALL 36 ) FROM tab0 AS cor0
----
36

query I rowsort
SELECT + ( col2 ) * - col0 AS col0 FROM tab0 AS cor0
----
-705
-870
-9603

query I rowsort
SELECT ALL - 13 * - col0 AS col2 FROM tab2 AS cor0
----
598
832
975

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 5 + + 47 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + col1 - 16 * - 30 ) NOT BETWEEN NULL AND col0 - 57
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( 94 + 47 ) IN ( col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2509
SELECT CAST( NULL AS SIGNED ) / - - MAX( DISTINCT col0 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2509
SELECT CAST ( NULL AS INTEGER ) / - - MAX ( DISTINCT col0 ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2510
SELECT ALL + ( - - COUNT( * ) ) col2 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2510
SELECT ALL + ( - - COUNT ( * ) ) col2 FROM tab2
----
3

query I rowsort
SELECT col2 FROM tab0 WHERE NOT NULL <= ( + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2512
SELECT ALL * FROM tab0 cor0 WHERE NOT ( col2 * - CAST( col1 AS SIGNED ) ) > col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2512
SELECT ALL * FROM tab0 cor0 WHERE NOT ( col2 * - CAST ( col1 AS INTEGER ) ) > col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 12 * - - col1 AS col2 FROM tab2 AS cor0
----
612
804
924

query I rowsort
SELECT DISTINCT - col1 FROM tab2 AS cor0 WHERE NOT + ( + col2 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + col2 + col1 * 31 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 60 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 067a4b5daf8747042e3b07ca8459859f

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE - 45 / + 46 IS NOT NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

query I rowsort
SELECT + col1 FROM tab0 WHERE + - col0 BETWEEN - 41 + + 41 AND col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - 44 + + col0 col2 FROM tab1 AS cor0
----
-2511
-2901
-4173

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2520
SELECT ALL + - COUNT( * ) + + + CAST( + + COUNT( * ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2520
SELECT ALL + - COUNT ( * ) + + + CAST ( + + COUNT ( * ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT - ( + col0 ) * col1 + - col2 * + col2 AS col0 FROM tab0 AS cor0
----
-1927
-3424
-9898

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2522
SELECT DISTINCT - + 36 DIV + - SUM( + - col2 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2522
SELECT DISTINCT - + 36 / + - SUM ( + - col2 ) FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2523
SELECT 29 DIV + COUNT( * ) FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2523
SELECT 29 / + COUNT ( * ) FROM tab2 AS cor0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-2524
SELECT ALL col2 * col1 + + + 83 + - col0 DIV - 88 FROM tab0 AS cor0
----
183
293
3890

skipif mysql # not compatible
query I rowsort label-2524
SELECT ALL col2 * col1 + + + 83 + - col0 / - 88 FROM tab0 AS cor0
----
183
293
3890

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( 25 + + + col1 + ( col2 ) ) <> ( col0 * + 4 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) = - ( + ( col2 ) ) * 50 + col1 * 96
----

query I rowsort
SELECT 10 * - - 14 * - col0 * + 81 FROM tab0 AS cor0
----
-1099980
-170100
-986580

onlyif mysql # aggregate syntax: 
query I rowsort label-2528
SELECT - COUNT( * ) FROM tab1 AS cor0 WHERE - 64 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2528
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE - 64 IS NOT NULL
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2529
SELECT ALL - CAST( + - col0 AS SIGNED ) / + col0 * + CAST( NULL AS SIGNED ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2529
SELECT ALL - CAST ( + - col0 AS INTEGER ) / + col0 * + CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 85 * col2 col2 FROM tab1 AS cor0
----
5015
5780
8160

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 14 - - col0 * - 50 + - 44 + col1 col2 FROM tab0
----
-4359
-4879
-699

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2532
SELECT ALL + col1 * + 39 * + ( col2 ) * - col0 + - CAST( CAST( - col1 AS DECIMAL ) AS SIGNED ) FROM tab2
----
-11366483
-2104311
-7687603

skipif mysql # not compatible
query I rowsort label-2532
SELECT ALL + col1 * + 39 * + ( col2 ) * - col0 + - CAST ( CAST ( - col1 AS REAL ) AS INTEGER ) FROM tab2
----
-11366483
-2104311
-7687603

query I rowsort
SELECT ALL col0 + + 93 * + + col2 AS col2 FROM tab2
----
2185
3784
5469

query I rowsort
SELECT ALL - 41 + + col2 FROM tab1
----
18
27
55

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2535
SELECT DISTINCT + 7 + + col0 * col2 + - CAST( NULL AS DECIMAL ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2535
SELECT DISTINCT + 7 + + col0 * col2 + - CAST ( NULL AS REAL ) FROM tab1
----
NULL

query I rowsort
SELECT ALL + 58 - 65 * 31 FROM tab0
----
-1957
-1957
-1957

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2537
SELECT - col1 + - + col0 - - - col2 / - col2 / CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2537
SELECT - col1 + - + col0 - - - col2 / - col2 / CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 + + - col1 AS col1, col1 - col1 * + col2 col2 FROM tab0 AS cor0
----
0
-189
0
-3726
0
-98

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 44 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col2 = ( + 89 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col2 * - col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + + col0 + - + 7 * col0 * + col0 NOT IN ( + col0 )
----

query I rowsort
SELECT 1 * - 26 AS col1 FROM tab1
----
-26
-26
-26

query II rowsort
SELECT ALL - ( - + ( col2 ) ) AS col0, col2 FROM tab1 AS cor0
----
59
59
68
68
96
96

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( col1 - - col1 * + col1 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - + 37 FROM tab1 AS cor0 WHERE + col1 < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2547
SELECT - - col1 + - 31 DIV + col2 AS col1 FROM tab0 cor0 WHERE NOT - 28 IS NULL
----
1
18
81

skipif mysql # not compatible
query I rowsort label-2547
SELECT - - col1 + - 31 / + col2 AS col1 FROM tab0 cor0 WHERE NOT - 28 IS NULL
----
1
18
81

query I rowsort
SELECT ALL - - ( + 98 ) * + col0 FROM tab2 AS cor0
----
4508
6272
7350

query II rowsort
SELECT DISTINCT col1, - 78 AS col1 FROM tab1
----
14
-78
47
-78
5
-78

query II rowsort
SELECT ALL col0 AS col0, + col1 FROM tab0
----
15
81
87
21
97
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2551
SELECT col1 DIV - col1 + ( - + 62 ) * - col0 AS col1 FROM tab1
----
3161
5269
5641

skipif mysql # not compatible
query I rowsort label-2551
SELECT col1 / - col1 + ( - + 62 ) * - col0 AS col1 FROM tab1
----
3161
5269
5641

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col0 > - 9
----

query I rowsort
SELECT DISTINCT 78 + + col0 AS col2 FROM tab2 WHERE NOT ( NOT NULL IS NULL )
----
124
142
153

query I rowsort
SELECT col1 * + col1 FROM tab2 AS cor0 WHERE NOT 45 BETWEEN + - col1 + - 78 * 43 AND ( ( col0 ) )
----

query II rowsort
SELECT + + 45 * - + col2 AS col0, col1 + + col2 AS col0 FROM tab1 cor0
----
-2655
64
-3060
115
-4320
110

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 < ( col1 - col2 + 22 + - 35 * + 15 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - col1 ) NOT IN ( + col1, 42 - + 32 )
----

query II rowsort
SELECT ALL - + col0, - 66 AS col0 FROM tab2 AS cor0
----
-46
-66
-64
-66
-75
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2559
SELECT DISTINCT - col0 * col0 + + ( CAST( NULL AS SIGNED ) ) col0 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2559
SELECT DISTINCT - col0 * col0 + + ( CAST ( NULL AS INTEGER ) ) col0 FROM tab1
----
NULL

query I rowsort
SELECT + col1 FROM tab1 WHERE - + col0 NOT BETWEEN NULL AND + 52
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2561
SELECT DISTINCT - CAST( - - 5 AS SIGNED ) * + + 54 AS col1 FROM tab2 AS cor0
----
-270

skipif mysql # not compatible
query I rowsort label-2561
SELECT DISTINCT - CAST ( - - 5 AS INTEGER ) * + + 54 AS col1 FROM tab2 AS cor0
----
-270

onlyif mysql # DIV for integer division: 
query I rowsort label-2562
SELECT DISTINCT - col1 DIV - 11 FROM tab1 AS cor0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-2562
SELECT DISTINCT - col1 / - 11 FROM tab1 AS cor0
----
0
1
4

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + + col2 BETWEEN + 53 - + + col0 AND - col2 / + col1 + + 1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2564
SELECT ALL - col1 AS col0 FROM tab0 AS cor0 WHERE NOT + col0 * col1 / CAST( + - col0 AS SIGNED ) / + - col0 + + 80 + col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2564
SELECT ALL - col1 AS col0 FROM tab0 AS cor0 WHERE NOT + col0 * col1 / CAST ( + - col0 AS INTEGER ) / + - col0 + + 80 + col1 IS NOT NULL
----

query I rowsort
SELECT - + col1 + + col1 * - + 29 FROM tab0 AS cor0
----
-2430
-30
-630

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( col1 * 45 - + col2 ) > col1 * 35
----
51
14
96
91
47
68

query II rowsort
SELECT DISTINCT 13, col2 AS col0 FROM tab2
----
13
23
13
40
13
58

query I rowsort
SELECT - 59 FROM tab0 WHERE - col0 * - col1 * + - col2 = - - col1
----

query III rowsort
SELECT ALL * FROM tab2 WHERE - col0 IS NULL OR NOT NULL <= NULL
----

query I rowsort
SELECT + ( - 9 ) AS col0 FROM tab0
----
-9
-9
-9

query I rowsort
SELECT ALL - col1 - - 61 FROM tab0
----
-20
40
60

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2572
SELECT col2 * CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0 WHERE col2 * + col2 IN ( 28 + + col1 + ( - 60 ) )
----

skipif mysql # not compatible
query I rowsort label-2572
SELECT col2 * CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0 WHERE col2 * + col2 IN ( 28 + + col1 + ( - 60 ) )
----

query I rowsort
SELECT ALL + col2 + - 22 + + col2 - - 7 + col1 AS col0 FROM tab0 AS cor0
----
160
184
26

onlyif mysql # aggregate syntax: 
query I rowsort label-2574
SELECT + + ( - MAX( 84 ) ) * + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-252

skipif mysql # not compatible
query I rowsort label-2574
SELECT + + ( - MAX ( 84 ) ) * + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-252

onlyif mysql # aggregate syntax: 
query I rowsort label-2575
SELECT - + SUM( DISTINCT + col0 ) AS col2 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-2575
SELECT - + SUM ( DISTINCT + col0 ) AS col2 FROM tab2 AS cor0
----
-185

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2576
SELECT - col1 col1, - CAST( NULL AS SIGNED ) * - col0 + + col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-1
NULL
-21
NULL
-81
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2576
SELECT - col1 col1, - CAST ( NULL AS INTEGER ) * - col0 + + col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-1
NULL
-21
NULL
-81
NULL

query I rowsort
SELECT + - col2 * - - 44 FROM tab1 AS cor0
----
-2596
-2992
-4224

query I rowsort
SELECT 15 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

query I rowsort
SELECT + + 26 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

onlyif mysql # aggregate syntax: 
query I rowsort label-2580
SELECT + COUNT( * ) * 57 + - + 43 FROM tab1 AS cor0
----
128

skipif mysql # not compatible
query I rowsort label-2580
SELECT + COUNT ( * ) * 57 + - + 43 FROM tab1 AS cor0
----
128

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col1 IN ( 22 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2582
SELECT - CAST( - col2 AS SIGNED ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-2582
SELECT - CAST ( - col2 AS INTEGER ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + - 73 AS col0 FROM tab0 AS cor0
----
-73
-73
-73

onlyif mysql # aggregate syntax: 
query II rowsort label-2584
SELECT - - MIN( ALL + col1 ), - 72 AS col1 FROM tab2 AS cor0
----
51
-72

skipif mysql # not compatible
query II rowsort label-2584
SELECT - - MIN ( ALL + col1 ), - 72 AS col1 FROM tab2 AS cor0
----
51
-72

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( col0 ) >= col2
----
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-2586
SELECT - SUM( DISTINCT + col1 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-66

skipif mysql # not compatible
query I rowsort label-2586
SELECT - SUM ( DISTINCT + col1 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-2587
SELECT ALL + COUNT( * ) * 51 + - - MAX( + - col0 ) AS col1 FROM tab1 AS cor0
----
102

skipif mysql # not compatible
query I rowsort label-2587
SELECT ALL + COUNT ( * ) * 51 + - - MAX ( + - col0 ) AS col1 FROM tab1 AS cor0
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-2588
SELECT + + COUNT( DISTINCT - - 76 ) AS col1 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2588
SELECT + + COUNT ( DISTINCT - - 76 ) AS col1 FROM tab1 AS cor0
----
1

query I rowsort
SELECT DISTINCT - - 64 FROM tab1 cor0
----
64

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 * col0 BETWEEN col1 / - - 97 + + + 63 - - - col0 * - 88 * - + col0 + col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2591
SELECT DISTINCT + COUNT( * ) FROM tab2 WHERE NULL > col1 * + + col1 * 41 + - col1
----
0

skipif mysql # not compatible
query I rowsort label-2591
SELECT DISTINCT + COUNT ( * ) FROM tab2 WHERE NULL > col1 * + + col1 * 41 + - col1
----
0

query II rowsort
SELECT DISTINCT - col0, 9 - - + col1 + + ( + col1 ) + - + col2 AS col1 FROM tab1
----
-51
-59
-85
-40
-91
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2593
SELECT DISTINCT - - CAST( col1 AS SIGNED ) FROM tab0 WHERE NOT - col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2593
SELECT DISTINCT - - CAST ( col1 AS INTEGER ) FROM tab0 WHERE NOT - col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2594
SELECT + col1 DIV 78 * + col2, + col0 AS col1 FROM tab0
----
0
87
0
97
47
15

skipif mysql # not compatible
query II rowsort label-2594
SELECT + col1 / 78 * + col2, + col0 AS col1 FROM tab0
----
0
87
0
97
47
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + col2 ) col0 FROM tab0 WHERE + - col1 IN ( - 7 + - 34 )
----

query I rowsort
SELECT - ( 87 ) * + col2 - 99 AS col2 FROM tab0 AS cor0
----
-4188
-8712
-969

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - ( - col2 ) * + col0 * + col2 - - 55 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 + + col1 col1 FROM tab2 AS cor0
----
117
125
74

onlyif mysql # aggregate syntax: 
query I rowsort label-2599
SELECT ALL - MIN( DISTINCT + + 5 ) FROM tab1 cor0 WHERE - 11 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2599
SELECT ALL - MIN ( DISTINCT + + 5 ) FROM tab1 cor0 WHERE - 11 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2600
SELECT DISTINCT COUNT( - col0 ) AS col1 FROM tab0 AS cor0 WHERE NOT 21 * - col2 / - + col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2600
SELECT DISTINCT COUNT ( - col0 ) AS col1 FROM tab0 AS cor0 WHERE NOT 21 * - col2 / - + col0 IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 6 col0 FROM tab1 AS cor0
----
6
6
6

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2602
SELECT ALL + CAST( NULL AS SIGNED ), col0 AS col0 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-2602
SELECT ALL + CAST ( NULL AS INTEGER ), col0 AS col0 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

query I rowsort
SELECT - 59 - + col2 + - col2 * + 81 FROM tab2 AS cor0
----
-1945
-3339
-4815

onlyif mysql # aggregate syntax: 
query I rowsort label-2604
SELECT + COUNT( * ) + - - 42 AS col1 FROM tab2
----
45

skipif mysql # not compatible
query I rowsort label-2604
SELECT + COUNT ( * ) + - - 42 AS col1 FROM tab2
----
45

query I rowsort
SELECT ALL + + col1 * + col2 AS col0 FROM tab1 WHERE NOT NULL < NULL
----

query III rowsort
SELECT * FROM tab2 WHERE + + 11 < NULL
----

query I rowsort
SELECT DISTINCT - 28 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2608
SELECT ALL 44 * - CAST( + - 57 AS SIGNED ) AS col2 FROM tab0
----
2508
2508
2508

skipif mysql # not compatible
query I rowsort label-2608
SELECT ALL 44 * - CAST ( + - 57 AS INTEGER ) AS col2 FROM tab0
----
2508
2508
2508

query I rowsort
SELECT - - col1 AS col1 FROM tab2 WHERE NOT - - col0 - - 69 + - col1 IS NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2610
SELECT DISTINCT - 63 * + MAX( ( + ( col2 ) ) ) FROM tab2
----
-3654

skipif mysql # not compatible
query I rowsort label-2610
SELECT DISTINCT - 63 * + MAX ( ( + ( col2 ) ) ) FROM tab2
----
-3654

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2611
SELECT + - MAX( DISTINCT + CAST( NULL AS SIGNED ) ) AS col0, 10 AS col1 FROM tab2 AS cor0
----
NULL
10

skipif mysql # not compatible
query II rowsort label-2611
SELECT + - MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col0, 10 AS col1 FROM tab2 AS cor0
----
NULL
10

query II rowsort
SELECT DISTINCT + col0 * + col1 AS col0, - ( - + 57 ) + col2 FROM tab2 cor0
----
2346
80
4928
97
5025
115

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL <= - col2 * - - col2
----

query I rowsort
SELECT ALL + - col1 * + ( - 11 ) FROM tab1 AS cor0
----
154
517
55

query I rowsort
SELECT + col1 * - 24 AS col1 FROM tab0
----
-1944
-24
-504

query II rowsort
SELECT DISTINCT - col0 * col1 * 4, + col2 FROM tab2
----
-19712
40
-20100
58
-9384
23

onlyif mysql # DIV for integer division: 
query I rowsort label-2617
SELECT ALL - 8 DIV - 94 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2617
SELECT ALL - 8 / - 94 FROM tab1
----
0
0
0

query II rowsort
SELECT ALL + 0, col0 AS col2 FROM tab2 AS cor0
----
0
46
0
64
0
75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2619
SELECT DISTINCT 32, + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
32
NULL

skipif mysql # not compatible
query II rowsort label-2619
SELECT DISTINCT 32, + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
32
NULL

query I rowsort
SELECT - - 14 * + - col0 FROM tab0 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2621
SELECT + ( - - ( + COUNT( * ) ) ) + + COUNT( + + 11 ) + + + COUNT( * ) FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2621
SELECT + ( - - ( + COUNT ( * ) ) ) + + COUNT ( + + 11 ) + + + COUNT ( * ) FROM tab1 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2622
SELECT - 88 + COUNT( * ) col2 FROM tab2
----
-85

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2622
SELECT - 88 + COUNT ( * ) col2 FROM tab2
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-2623
SELECT ( COUNT( * ) ) + + + 64 AS col0 FROM tab1
----
67

skipif mysql # not compatible
query I rowsort label-2623
SELECT ( COUNT ( * ) ) + + + 64 AS col0 FROM tab1
----
67

query I rowsort
SELECT DISTINCT col0 + - - col0 - 63 FROM tab2
----
29
65
87

onlyif mysql # aggregate syntax: 
query I rowsort label-2625
SELECT COUNT( ALL + - 96 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2625
SELECT COUNT ( ALL + - 96 ) FROM tab2
----
3

query I rowsort
SELECT ALL 8 + + - col2 AS col0 FROM tab2
----
-15
-32
-50

query II rowsort
SELECT col2 + + col2, - col0 + - + col0 FROM tab1 WHERE ( NULL IS NOT NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 * + - col1 * - col2 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2629
SELECT ALL - COUNT( DISTINCT - + 61 ) AS col1 FROM tab1 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2629
SELECT ALL - COUNT ( DISTINCT - + 61 ) AS col1 FROM tab1 cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 51 - + 8 col1 FROM tab1 AS cor0
----
43
43
43

onlyif mysql # aggregate syntax: 
query I rowsort label-2631
SELECT DISTINCT - MIN( - col1 ) FROM tab0 cor0
----
81

skipif mysql # not compatible
query I rowsort label-2631
SELECT DISTINCT - MIN ( - col1 ) FROM tab0 cor0
----
81

query I rowsort
SELECT ALL - + 51 AS col1 FROM tab2 AS cor0
----
-51
-51
-51

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( + + col1 ) * - col1 + col1 + + + col1 * - + col2 / + - 72 * + col0 * + - 7 + + + ( + col2 ) IS NULL
----

query I rowsort
SELECT ALL - - 71 + + col0 + + 99 FROM tab1 AS cor0
----
221
255
261

onlyif mysql # aggregate syntax: 
query I rowsort label-2635
SELECT DISTINCT + - COUNT( ALL + 0 ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2635
SELECT DISTINCT + - COUNT ( ALL + 0 ) AS col0 FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2636
SELECT CAST( + col0 AS SIGNED ) * + 57 AS col0 FROM tab2
----
2622
3648
4275

skipif mysql # not compatible
query I rowsort label-2636
SELECT CAST ( + col0 AS INTEGER ) * + 57 AS col0 FROM tab2
----
2622
3648
4275

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-2637
SELECT DISTINCT * FROM tab1 WHERE NOT + + CAST( + - ( + + CAST( + CAST( NULL AS DECIMAL ) AS SIGNED ) ) AS SIGNED ) / + col1 BETWEEN - 25 AND + - col2
----

skipif mysql # not compatible
query III rowsort label-2637
SELECT DISTINCT * FROM tab1 WHERE NOT + + CAST ( + - ( + + CAST ( + CAST ( NULL AS REAL ) AS INTEGER ) ) AS INTEGER ) / + col1 BETWEEN - 25 AND + - col2
----

query II rowsort
SELECT DISTINCT + col2, 81 AS col0 FROM tab2
----
23
81
40
81
58
81

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2639
SELECT DISTINCT col0 AS col1, - col0 DIV + CAST( - 39 AS SIGNED ) FROM tab1
----
51
1
85
2
91
2

skipif mysql # not compatible
query II rowsort label-2639
SELECT DISTINCT col0 AS col1, - col0 / + CAST ( - 39 AS INTEGER ) FROM tab1
----
51
1
85
2
91
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2640
SELECT ALL - CAST( - - 33 AS SIGNED ) FROM tab0
----
-33
-33
-33

skipif mysql # not compatible
query I rowsort label-2640
SELECT ALL - CAST ( - - 33 AS INTEGER ) FROM tab0
----
-33
-33
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-2641
SELECT 13 * + 54 + + col0 - - + col0 DIV col2 + + col2 DIV + 18 FROM tab0 AS cor0
----
719
797
804

skipif mysql # not compatible
query I rowsort label-2641
SELECT 13 * + 54 + + col0 - - + col0 / col2 + + col2 / + 18 FROM tab0 AS cor0
----
719
797
804

query I rowsort
SELECT DISTINCT 8 * - col2 FROM tab1
----
-472
-544
-768

query I rowsort
SELECT + - 77 * - ( + col1 ) + - col2 AS col1 FROM tab1 AS cor0
----
326
3551
982

query I rowsort
SELECT - col2 * + 87 AS col0 FROM tab2 AS cor0
----
-2001
-3480
-5046

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 72 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col1 * + col1 + - 75 - - - ( + + col0 ) * col2 + - 45 FROM tab1 AS cor0
----
-4099
-4820
-5110

query II rowsort
SELECT ALL col0 * col1 AS col0, 20 * + + 6 * - + 96 FROM tab1 AS cor0
----
425
-11520
4277
-11520
714
-11520

query I rowsort
SELECT + col2 FROM tab1 WHERE 74 IS NOT NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2649
SELECT - MAX( DISTINCT col0 ) + + 8 AS col0 FROM tab2 WHERE - col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2649
SELECT - MAX ( DISTINCT col0 ) + + 8 AS col0 FROM tab2 WHERE - col1 IS NULL
----
NULL

query I rowsort
SELECT + ( + + 87 ) FROM tab0, tab0 AS cor0
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

query I rowsort
SELECT - 45 + - + col1 FROM tab2
----
-112
-122
-96

query I rowsort
SELECT 77 + col2 FROM tab2 cor0
----
100
117
135

query I rowsort
SELECT ALL + - col1 + + - col1 FROM tab0 AS cor0 WHERE NOT - 96 BETWEEN - 84 AND - 28
----
-162
-2
-42

query I rowsort
SELECT DISTINCT col2 * + + ( 44 ) * + 22 + + 15 + + col0 * - col1 * - col0 - col1 + + 81 AS col2 FROM tab2 cor0
----
130225
354131
433048

query I rowsort
SELECT ALL ( - 64 ) + - col1 AS col2 FROM tab0
----
-145
-65
-85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 50 col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to c7432a968c8352c12996dfa54dd4b9e8

query I rowsort
SELECT ALL col2 - + col1 * - - 19 AS col1 FROM tab0
----
-1492
-389
80

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL <> - 62
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 / + ( - + col2 ) > NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 82 NOT BETWEEN - col1 / - col0 AND - - 35 * - 5 * - col1 * + + 1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 10 - 91 + + - 60 * 73 + + + col2 * 48 col2 FROM tab1 AS cor0
----
-1197
-1629
147

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT NULL >= NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2663
SELECT ALL - MIN( DISTINCT col0 ) col0 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2663
SELECT ALL - MIN ( DISTINCT col0 ) col0 FROM tab1 AS cor0
----
-51

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( ( NULL ) IS NOT NULL )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 99 / - - 30 NOT BETWEEN - 66 + + col2 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2666
SELECT MIN( 57 ) * + - CAST( - SUM( - col2 ) AS SIGNED ) + 21 FROM tab2
----
-6876

skipif mysql # not compatible
query I rowsort label-2666
SELECT MIN ( 57 ) * + - CAST ( - SUM ( - col2 ) AS INTEGER ) + 21 FROM tab2
----
-6876

query I rowsort
SELECT col1 * - - 66 AS col2 FROM tab2
----
3366
4422
5082

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 AS col1, col0 col1 FROM tab0 AS cor0
----
15
15
87
87
97
97

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + col0 IN ( + 10 - col0, + 82, + col0 )
----

query I rowsort
SELECT ALL col1 * 30 * - 72 AS col0 FROM tab0 AS cor0
----
-174960
-2160
-45360

query I rowsort
SELECT + - 57 AS col1 FROM tab2 AS cor0
----
-57
-57
-57

query I rowsort
SELECT DISTINCT - 39 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-39

query I rowsort
SELECT ALL + 1 * - col1 FROM tab0 cor0
----
-1
-21
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2674
SELECT DISTINCT + col1 * + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2674
SELECT DISTINCT + col1 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT DISTINCT - col1 AS col0, col0 - 49 FROM tab2 AS cor0
----
-51
-3
-67
26
-77
15

query I rowsort
SELECT ALL + 32 * - - col1 FROM tab0 AS cor0
----
2592
32
672

onlyif mysql # aggregate syntax: 
query II rowsort label-2677
SELECT - COUNT( ALL - + col1 ) + 86 * + 94, COUNT( DISTINCT + - ( - + col1 ) ) AS col1 FROM tab2 AS cor0
----
8081
3

skipif mysql # not compatible
query II rowsort label-2677
SELECT - COUNT ( ALL - + col1 ) + 86 * + 94, COUNT ( DISTINCT + - ( - + col1 ) ) AS col1 FROM tab2 AS cor0
----
8081
3

query I rowsort
SELECT ALL col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND col1
----

query I rowsort
SELECT ALL - + 13 + col2 FROM tab1 AS cor0
----
46
55
83

query I rowsort
SELECT col2 + - - 88 FROM tab2
----
111
128
146

query I rowsort
SELECT - 24 + 60 AS col0 FROM tab1
----
36
36
36

onlyif mysql # aggregate syntax: 
query I rowsort label-2682
SELECT MIN( DISTINCT - 91 ) * + 99 + 73 FROM tab0
----
-8936

skipif mysql # not compatible
query I rowsort label-2682
SELECT MIN ( DISTINCT - 91 ) * + 99 + 73 FROM tab0
----
-8936

query I rowsort
SELECT ALL - 36 + - + col2 * - col0 FROM tab2
----
1022
2524
4314

query I rowsort
SELECT DISTINCT + 3 + + - col1 AS col2 FROM tab2
----
-48
-64
-74

query I rowsort
SELECT ALL + 45 * 41 + 44 + + + ( - - col1 ) * - 83 FROM tab1
----
-2012
1474
727

onlyif mysql # aggregate syntax: 
query I rowsort label-2686
SELECT MAX( - - 58 ) col0 FROM tab2
----
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2686
SELECT MAX ( - - 58 ) col0 FROM tab2
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2687
SELECT DISTINCT 41 + CAST( NULL AS SIGNED ) / COUNT( * ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2687
SELECT DISTINCT 41 + CAST ( NULL AS INTEGER ) / COUNT ( * ) AS col0 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab1 cor0 WHERE 80 + - - 73 > NULL
----

query I rowsort
SELECT + col2 - + 5 FROM tab1 AS cor0
----
54
63
91

query II rowsort
SELECT - col1 - + + 99 + + col0, col1 FROM tab2 AS cor0
----
-104
51
-112
77
-91
67

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2691
SELECT + CAST( NULL AS SIGNED ) * + col2 - + col2, - CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2691
SELECT + CAST ( NULL AS INTEGER ) * + col2 - + col2, - CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 + + + 46 FROM tab2 AS cor0
----
113
123
97

query I rowsort
SELECT + col1 + - - col2 * + col0 AS col1 FROM tab2
----
1109
2637
4417

query IIIIII rowsort
SELECT DISTINCT * FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE + 63 IS NOT NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab0 AS cor1 WHERE + 23 IS NOT NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

onlyif mysql # aggregate syntax: 
query I rowsort label-2696
SELECT ALL - + ( MIN( col1 ) ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2696
SELECT ALL - + ( MIN ( col1 ) ) FROM tab0 AS cor0
----
-1

query I rowsort
SELECT + col0 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT ALL col0 * + col0 FROM tab1 AS cor0 WHERE + 95 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2699
SELECT ALL - COUNT( * ) / + COUNT( * ) * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2699
SELECT ALL - COUNT ( * ) / + COUNT ( * ) * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2700
SELECT col1 DIV - 45 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2700
SELECT col1 / - 45 FROM tab0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2701
SELECT ALL MAX( DISTINCT - - 79 ) col1 FROM tab2
----
79

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2701
SELECT ALL MAX ( DISTINCT - - 79 ) col1 FROM tab2
----
79

query I rowsort
SELECT 65 * + - 55 * + col2 FROM tab1
----
-210925
-243100
-343200

onlyif mysql # aggregate syntax: 
query I rowsort label-2703
SELECT DISTINCT - 1 * - COUNT( * ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2703
SELECT DISTINCT - 1 * - COUNT ( * ) FROM tab2
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2704
SELECT ( + - CAST( NULL AS DECIMAL ) ) * col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2704
SELECT ( + - CAST ( NULL AS REAL ) ) * col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2705
SELECT - ( SUM( - + col0 ) ) DIV + 4 AS col1 FROM tab0 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-2705
SELECT - ( SUM ( - + col0 ) ) / + 4 AS col1 FROM tab0 AS cor0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-2706
SELECT - - MIN( + col1 ) FROM tab2 cor0
----
51

skipif mysql # not compatible
query I rowsort label-2706
SELECT - - MIN ( + col1 ) FROM tab2 cor0
----
51

query I rowsort
SELECT ALL col2 + - + col2 FROM tab1
----
0
0
0

query I rowsort
SELECT - 6 + + ( + col0 ) FROM tab2
----
40
58
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2709
SELECT ALL CAST( NULL AS SIGNED ) AS col1, MIN( DISTINCT + col1 ) - - + COUNT( * ) FROM tab0
----
NULL
4

skipif mysql # not compatible
query II rowsort label-2709
SELECT ALL CAST ( NULL AS INTEGER ) AS col1, MIN ( DISTINCT + col1 ) - - + COUNT ( * ) FROM tab0
----
NULL
4

query I rowsort
SELECT + ( + 17 ) * - col1 FROM tab0
----
-1377
-17
-357

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - - ( + 75 ) + - 49 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2712
SELECT - - MAX( ALL + 13 ) FROM tab0 cor0
----
13

skipif mysql # not compatible
query I rowsort label-2712
SELECT - - MAX ( ALL + 13 ) FROM tab0 cor0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-2713
SELECT ALL - COUNT( * ) + + MAX( ALL - col2 ) FROM tab0 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-2713
SELECT ALL - COUNT ( * ) + + MAX ( ALL - col2 ) FROM tab0 AS cor0
----
-13

query I rowsort
SELECT ALL + 19 + + 39 AS col0 FROM tab2
----
58
58
58

onlyif mysql # aggregate syntax: 
query II rowsort label-2715
SELECT DISTINCT - MIN( ALL + col2 ) AS col1, + 14 FROM tab2
----
-23
14

skipif mysql # not compatible
query II rowsort label-2715
SELECT DISTINCT - MIN ( ALL + col2 ) AS col1, + 14 FROM tab2
----
-23
14

query I rowsort
SELECT col1 - - 28 FROM tab1
----
33
42
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 5 + col0 col2 FROM tab2
----
51
69
80

query I rowsort
SELECT col1 + 78 * + col2 AS col0 FROM tab1
----
4607
5351
7502

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2719
SELECT DISTINCT 19 - + + CAST( NULL AS SIGNED ) * + - 51 - CAST( - 47 AS DECIMAL ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2719
SELECT DISTINCT 19 - + + CAST ( NULL AS INTEGER ) * + - 51 - CAST ( - 47 AS REAL ) FROM tab2
----
NULL

query I rowsort
SELECT + - col0 * + 40 * - col2 * - col0 FROM tab1 WHERE + 50 * col1 - col1 + col1 + - + 77 - + - col1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT + col0 + + - ( + col1 ) AS col1 FROM tab2
----
-13
-5
8

query I rowsort
SELECT ALL + ( + - 13 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e95f5f4bd0f480397cced5f5e8a23792

onlyif mysql # aggregate syntax: 
query I rowsort label-2723
SELECT ALL - MIN( - 54 ) * SUM( DISTINCT - col2 ) + + + MIN( col2 ) * 71 AS col1 FROM tab0
----
-7714

skipif mysql # not compatible
query I rowsort label-2723
SELECT ALL - MIN ( - 54 ) * SUM ( DISTINCT - col2 ) + + + MIN ( col2 ) * 71 AS col1 FROM tab0
----
-7714

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT 28 + - ( ( col0 ) ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 40 IS NOT NULL
----

query I rowsort
SELECT ALL + 76 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND + - ( + - col1 )
----

query I rowsort
SELECT + + 97 * 23 AS col0 FROM tab1 AS cor0
----
2231
2231
2231

onlyif mysql # aggregate syntax: 
query I rowsort label-2728
SELECT + 77 * - - ( SUM( DISTINCT col1 ) ) FROM tab0
----
7931

skipif mysql # not compatible
query I rowsort label-2728
SELECT + 77 * - - ( SUM ( DISTINCT col1 ) ) FROM tab0
----
7931

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2729
SELECT - MIN( DISTINCT col2 ) * CAST( - - COUNT( * ) AS SIGNED ) FROM tab2
----
-69

skipif mysql # not compatible
query I rowsort label-2729
SELECT - MIN ( DISTINCT col2 ) * CAST ( - - COUNT ( * ) AS INTEGER ) FROM tab2
----
-69

query I rowsort
SELECT ALL - 74 * + col0 FROM tab2
----
-3404
-4736
-5550

query I rowsort
SELECT ALL + 40 * - col1 * - + col1 FROM tab2
----
104040
179560
237160

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2732
SELECT ALL MIN( 16 ) DIV COUNT( col0 ) AS col2 FROM tab0
----
5

skipif mysql # not compatible
query I rowsort label-2732
SELECT ALL MIN ( 16 ) / COUNT ( col0 ) AS col2 FROM tab0
----
5

query II rowsort
SELECT DISTINCT + + col0, - 79 FROM tab2 AS cor0
----
46
-79
64
-79
75
-79

query I rowsort
SELECT DISTINCT + col1 + - + col1 AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL + + ( 98 ) + col2 FROM tab2 cor0
----
121
138
156

query I rowsort
SELECT ALL - + col1 + - + 75 AS col2 FROM tab1 cor0
----
-122
-80
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2737
SELECT DISTINCT - CAST( col1 AS SIGNED ) col0 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2737
SELECT DISTINCT - CAST ( col1 AS INTEGER ) col0 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-2738
SELECT ALL - 67 DIV ( + col2 ) + col0 FROM tab0 AS cor0
----
14
81
97

skipif mysql # not compatible
query I rowsort label-2738
SELECT ALL - 67 / ( + col2 ) + col0 FROM tab0 AS cor0
----
14
81
97

query I rowsort
SELECT ( - col1 ) + col1 AS col2 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2740
SELECT DISTINCT COUNT( * ) * + + CAST( - CAST( - 24 AS DECIMAL ) AS SIGNED ) + - - 31 FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-2740
SELECT DISTINCT COUNT ( * ) * + + CAST ( - CAST ( - 24 AS REAL ) AS INTEGER ) + - - 31 FROM tab0
----
103

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2741
SELECT ALL + MIN( DISTINCT + + col2 ) + 75 DIV MIN( - ( + ( 82 ) ) ) AS col0 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-2741
SELECT ALL + MIN ( DISTINCT + + col2 ) + 75 / MIN ( - ( + ( 82 ) ) ) AS col0 FROM tab2
----
23

query III rowsort
SELECT * FROM tab1 WHERE ( - col2 * + col2 + + - 87 * + + col0 ) = NULL
----

query I rowsort
SELECT DISTINCT + col1 - 81 FROM tab1
----
-34
-67
-76

query I rowsort
SELECT ALL - col1 * + + col2 * + col2 - col0 FROM tab0
----
-178944
-2187
-9898

onlyif mysql # aggregate syntax: 
query I rowsort label-2745
SELECT DISTINCT + + 45 - + + COUNT( * ) * + ( + - COUNT( * ) ) FROM tab2 cor0
----
54

skipif mysql # not compatible
query I rowsort label-2745
SELECT DISTINCT + + 45 - + + COUNT ( * ) * + ( + - COUNT ( * ) ) FROM tab2 cor0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-2746
SELECT + ( COUNT( * ) ) - COUNT( * ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2746
SELECT + ( COUNT ( * ) ) - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
0

query II rowsort
SELECT col1 - - col1 * - col2, - 62 AS col1 FROM tab0 AS cor0
----
-189
-62
-3726
-62
-98
-62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2748
SELECT + 84 DIV + COUNT( * ) FROM tab2 cor0
----
28

skipif mysql # not compatible
query I rowsort label-2748
SELECT + 84 / + COUNT ( * ) FROM tab2 cor0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-2749
SELECT DISTINCT COUNT( * ) * 37 FROM tab2
----
111

skipif mysql # not compatible
query I rowsort label-2749
SELECT DISTINCT COUNT ( * ) * 37 FROM tab2
----
111

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2750
SELECT ALL ( - CAST( NULL AS SIGNED ) ) / - col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2750
SELECT ALL ( - CAST ( NULL AS INTEGER ) ) / - col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2751
SELECT ALL - 12 AS col1, - COUNT( * ) FROM tab0 AS cor0
----
-12
-3

skipif mysql # not compatible
query II rowsort label-2751
SELECT ALL - 12 AS col1, - COUNT ( * ) FROM tab0 AS cor0
----
-12
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 <> + col0 + col1 / - + col1
----

query I rowsort
SELECT DISTINCT col0 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT + + col1, + col2 * - col1 FROM tab0 AS cor0
----
1
-99
21
-210
81
-3807

query II rowsort
SELECT - - col2 AS col1, 46 FROM tab0 AS cor0
----
10
46
47
46
99
46

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col0 + + + 91 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2757
SELECT + + COUNT( DISTINCT - ( col0 ) ) AS col0 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2757
SELECT + + COUNT ( DISTINCT - ( col0 ) ) AS col0 FROM tab0 cor0
----
3

query II rowsort
SELECT + col0 * col0 AS col0, - col2 FROM tab1
----
2601
-96
7225
-59
8281
-68

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2759
SELECT ALL + COUNT( * ) * - - CAST( NULL AS DECIMAL ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2759
SELECT ALL + COUNT ( * ) * - - CAST ( NULL AS REAL ) FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2760
SELECT ALL + col0 DIV + + 96 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2760
SELECT ALL + col0 / + + 96 FROM tab1
----
0
0
0

query I rowsort
SELECT 99 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + + 11 FROM tab1 cor0 WHERE NOT + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2763
SELECT + + 74 * + COUNT( * ) FROM tab1 cor0
----
222

skipif mysql # not compatible
query I rowsort label-2763
SELECT + + 74 * + COUNT ( * ) FROM tab1 cor0
----
222

onlyif mysql # aggregate syntax: 
query I rowsort label-2764
SELECT + COUNT( * ) * 42 * - - MAX( ALL + - col0 ) AS col2 FROM tab2 AS cor0
----
-5796

skipif mysql # not compatible
query I rowsort label-2764
SELECT + COUNT ( * ) * 42 * - - MAX ( ALL + - col0 ) AS col2 FROM tab2 AS cor0
----
-5796

query I rowsort
SELECT col1 + + 6 * - col0 AS col2 FROM tab1
----
-292
-499
-505

query I rowsort
SELECT col0 AS col1 FROM tab2 WHERE NULL NOT IN ( - + col0 * 67, col1 * - + ( + - col0 ) - + 75 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2767
SELECT - COUNT( DISTINCT 38 ) * - 86 FROM tab1 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-2767
SELECT - COUNT ( DISTINCT 38 ) * - 86 FROM tab1 AS cor0
----
86

query I rowsort
SELECT ALL - - col1 * + - col2 AS col0 FROM tab1 AS cor0
----
-1344
-295
-3196

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT + col2 + - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2770
SELECT ALL - COUNT( - col0 ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2770
SELECT ALL - COUNT ( - col0 ) AS col2 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2771
SELECT - 24 - + COUNT( * ) * - - 29 FROM tab0 AS cor0
----
-111

skipif mysql # not compatible
query I rowsort label-2771
SELECT - 24 - + COUNT ( * ) * - - 29 FROM tab0 AS cor0
----
-111

onlyif mysql # aggregate syntax: 
query II rowsort label-2772
SELECT ALL COUNT( * ) AS col2, SUM( ALL + col1 ) + + 73 FROM tab0 AS cor0
----
3
176

skipif mysql # not compatible
query II rowsort label-2772
SELECT ALL COUNT ( * ) AS col2, SUM ( ALL + col1 ) + + 73 FROM tab0 AS cor0
----
3
176

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN - 42 * + - col0 * - 89 AND - col0 / - ( - - col0 ) * + + 64 + - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2774
SELECT + col0 - + CAST( 29 AS SIGNED ) FROM tab0
----
-14
58
68

skipif mysql # not compatible
query I rowsort label-2774
SELECT + col0 - + CAST ( 29 AS INTEGER ) FROM tab0
----
-14
58
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - + 3 col0 FROM tab1
----
11
2
44

query I rowsort
SELECT ALL + 97 + + + col0 + + col2 FROM tab2
----
166
201
230

query I rowsort
SELECT - 68 + + col1 AS col0 FROM tab0
----
-47
-67
13

onlyif mysql # DIV for integer division: 
query I rowsort label-2778
SELECT - 9 DIV + + col2 + - 17 FROM tab0
----
-17
-17
-17

skipif mysql # not compatible
query I rowsort label-2778
SELECT - 9 / + + col2 + - 17 FROM tab0
----
-17
-17
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-2779
SELECT DISTINCT - col0 DIV 25 * - col0 DIV ( - col0 ) + - col1 AS col0 FROM tab1
----
-16
-50
-8

skipif mysql # not compatible
query I rowsort label-2779
SELECT DISTINCT - col0 / 25 * - col0 / ( - col0 ) + - col1 AS col0 FROM tab1
----
-16
-50
-8

query I rowsort
SELECT 28 + + ( - col0 ) AS col1 FROM tab1
----
-23
-57
-63

query I rowsort
SELECT ALL + 99 - + + col2 FROM tab2 cor0 WHERE NULL NOT BETWEEN + 85 AND ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2782
SELECT + - MAX( DISTINCT 15 ) FROM tab0 AS cor0 WHERE NOT col0 <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2782
SELECT + - MAX ( DISTINCT 15 ) FROM tab0 AS cor0 WHERE NOT col0 <> NULL
----
NULL

query I rowsort
SELECT DISTINCT + col1 FROM tab1 AS cor0 WHERE + col2 * + - 20 IS NULL
----

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-15
-87
-97

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col1 >= - - col0
----
75
67
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2786
SELECT 25 * - + COUNT( * ) AS col0 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-2786
SELECT 25 * - + COUNT ( * ) AS col0 FROM tab2
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2787
SELECT DISTINCT MAX( + + 84 ) col1 FROM tab0 cor0
----
84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2787
SELECT DISTINCT MAX ( + + 84 ) col1 FROM tab0 cor0
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-2788
SELECT ALL col1 DIV 30 col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
1
2
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2788
SELECT ALL col1 / 30 col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
1
2
2

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2789
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( - col1, 14 * + + col1, - ( + CAST( NULL AS SIGNED ) ), + 6, col2 )
----

skipif mysql # not compatible
query III rowsort label-2789
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( - col1, 14 * + + col1, - ( + CAST ( NULL AS INTEGER ) ), + 6, col2 )
----

query I rowsort
SELECT ALL col1 * - + 84 * col2 * col0 FROM tab1 AS cor0
----
-2106300
-24430224
-5757696

query I rowsort
SELECT - col0 * - 53 * + 15 FROM tab1
----
40545
67575
72345

query I rowsort
SELECT col2 AS col1 FROM tab1 WHERE NOT 60 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2793
SELECT ALL + ( - col2 ) DIV - + col0 + + 84 FROM tab2
----
84
84
84

skipif mysql # not compatible
query I rowsort label-2793
SELECT ALL + ( - col2 ) / - + col0 + + 84 FROM tab2
----
84
84
84

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2794
SELECT ALL + col0, CAST( NULL AS SIGNED ) AS col2, - - col0 AS col2 FROM tab1
----
9 values hashing to 8d7a2d0e8ae0e6021d96efb1888e66d7

skipif mysql # not compatible
query III rowsort label-2794
SELECT ALL + col0, CAST ( NULL AS INTEGER ) AS col2, - - col0 AS col2 FROM tab1
----
9 values hashing to 8d7a2d0e8ae0e6021d96efb1888e66d7

query I rowsort
SELECT col0 + - 65 AS col1 FROM tab1
----
-14
20
26

query I rowsort
SELECT + 86 * + col2 FROM tab2
----
1978
3440
4988

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2797
SELECT * FROM tab1 AS cor0 WHERE CAST( - 86 AS DECIMAL ) / ( - col1 ) + col1 <> NULL
----

skipif mysql # not compatible
query III rowsort label-2797
SELECT * FROM tab1 AS cor0 WHERE CAST ( - 86 AS REAL ) / ( - col1 ) + col1 <> NULL
----

query I rowsort
SELECT ALL + - 90 * col1 AS col1 FROM tab0 AS cor0
----
-1890
-7290
-90

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) < - col0 - - col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2800
SELECT - 47 DIV - MAX( - + col2 ) FROM tab0 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-2800
SELECT - 47 / - MAX ( - + col2 ) FROM tab0 AS cor0
----
-4

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) > - col0 * - + col2 * - col1 + - col0 AND ( NULL ) IN ( - + col0 + - 69, + 41, + col0 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL = - ( + 97 ) / 3 + + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2803
SELECT ALL + MIN( DISTINCT col1 ) col0 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2803
SELECT ALL + MIN ( DISTINCT col1 ) col0 FROM tab1 AS cor0
----
5

query I rowsort
SELECT ALL col0 + + ( - col0 ) + col1 FROM tab0 AS cor0
----
1
21
81

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 57 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2806
SELECT ALL MAX( ALL - 55 ), 32 AS col0 FROM tab0 AS cor0
----
-55
32

skipif mysql # not compatible
query II rowsort label-2806
SELECT ALL MAX ( ALL - 55 ), 32 AS col0 FROM tab0 AS cor0
----
-55
32

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT - 61 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col2 * + + 97 FROM tab0 AS cor0
----
4559
9603
970

onlyif mysql # DIV for integer division: 
query I rowsort label-2809
SELECT col0 DIV 67 FROM tab0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-2809
SELECT col0 / 67 FROM tab0
----
0
1
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2810
SELECT ALL COUNT( * ) DIV + 51 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2810
SELECT ALL COUNT ( * ) / + 51 AS col0 FROM tab2
----
0

query II rowsort
SELECT 50 AS col2, + col1 + + 56 AS col1 FROM tab0
----
50
137
50
57
50
77

query I rowsort
SELECT + 74 * + col2 FROM tab1 WHERE NULL IS NULL
----
4366
5032
7104

query I rowsort
SELECT DISTINCT - col0 - + - ( + col2 ) FROM tab2 WHERE + col1 / col2 * - ( - + col2 ) <> NULL
----

query II rowsort
SELECT - 16 AS col0, 41 AS col0 FROM tab0, tab1 AS cor0
----
18 values hashing to ed615987b05d7298d280cfeb697c8f0b

onlyif mysql # aggregate syntax: 
query I rowsort label-2815
SELECT DISTINCT 92 + - - ( - COUNT( * ) ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
83

skipif mysql # not compatible
query I rowsort label-2815
SELECT DISTINCT 92 + - - ( - COUNT ( * ) ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
83

onlyif mysql # aggregate syntax: 
query II rowsort label-2816
SELECT DISTINCT COUNT( col1 ) AS col0, COUNT( * ) AS col1 FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-2816
SELECT DISTINCT COUNT ( col1 ) AS col0, COUNT ( * ) AS col1 FROM tab2 AS cor0
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2817
SELECT COUNT( * ) * COUNT( + + 49 ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2817
SELECT COUNT ( * ) * COUNT ( + + 49 ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT - 84 * + 29 * + col0 + col0 FROM tab2 AS cor0
----
-112010
-155840
-182625

onlyif mysql # aggregate syntax: 
query I rowsort label-2819
SELECT SUM( ALL + - col2 ) * COUNT( * ) AS col2 FROM tab0
----
-468

skipif mysql # not compatible
query I rowsort label-2819
SELECT SUM ( ALL + - col2 ) * COUNT ( * ) AS col2 FROM tab0
----
-468

onlyif mysql # DIV for integer division: 
query I rowsort label-2820
SELECT DISTINCT + col0 + - + col1 + col0 DIV 63 FROM tab0
----
-66
67
97

skipif mysql # not compatible
query I rowsort label-2820
SELECT DISTINCT + col0 + - + col1 + col0 / 63 FROM tab0
----
-66
67
97

query I rowsort
SELECT DISTINCT col0 + + col1 * + col1 * col2 AS col0 FROM tab0
----
196
308382
4497

onlyif mysql # aggregate syntax: 
query I rowsort label-2822
SELECT COUNT( * ) * - - 63 FROM tab1
----
189

skipif mysql # not compatible
query I rowsort label-2822
SELECT COUNT ( * ) * - - 63 FROM tab1
----
189

query I rowsort
SELECT ALL + 88 * - 20 AS col2 FROM tab1
----
-1760
-1760
-1760

query II rowsort
SELECT 31 * + + ( + col1 ) * - col2 + - 72 AS col0, ( col1 ) * - - 24 AS col1 FROM tab2
----
-120538
1608
-36435
1224
-95552
1848

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2825
SELECT ALL col1, + CAST( NULL AS SIGNED ) FROM tab0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-2825
SELECT ALL col1, + CAST ( NULL AS INTEGER ) FROM tab0
----
1
NULL
21
NULL
81
NULL

query I rowsort
SELECT DISTINCT col0 + + 45 AS col0 FROM tab1
----
130
136
96

query II rowsort
SELECT + 55 + - + 61 * col2 AS col0, col1 FROM tab0 AS cor0
----
-2812
81
-555
21
-5984
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2828
SELECT ALL + + COUNT( * ) * COUNT( * ) AS col1 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2828
SELECT ALL + + COUNT ( * ) * COUNT ( * ) AS col1 FROM tab2 AS cor0
----
9

query I rowsort
SELECT DISTINCT + + col2 * + col2 + + col1 - + + ( col1 ) AS col1 FROM tab0 AS cor0 WHERE 89 IS NOT NULL
----
100
2209
9801

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 43 col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-43

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2831
SELECT * FROM tab2 WHERE col0 + col1 * col1 + CAST( NULL AS DECIMAL ) = NULL
----

skipif mysql # not compatible
query III rowsort label-2831
SELECT * FROM tab2 WHERE col0 + col1 * col1 + CAST ( NULL AS REAL ) = NULL
----

query I rowsort
SELECT - - 1 AS col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

query I rowsort
SELECT DISTINCT col1 * - col2 + ( - + col0 ) FROM tab2
----
-1219
-3144
-3961

query I rowsort
SELECT + + col0 * 34 AS col0 FROM tab1 AS cor0
----
1734
2890
3094

query I rowsort
SELECT DISTINCT - col1 - - col2 AS col0 FROM tab1 AS cor0
----
21
54
82

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 > NULL
----

query I rowsort
SELECT - col0 - + 34 FROM tab0 AS cor0
----
-121
-131
-49

query I rowsort
SELECT ALL + - 16 - col1 * col0 FROM tab0 cor0
----
-113
-1231
-1843

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2839
SELECT ALL col2 / + 12 - 60 + + col0 / 54 + - col1 * - - col1 / 17 / - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2839
SELECT ALL col2 / + 12 - 60 + + col0 / 54 + - col1 * - - col1 / 17 / - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL - - col2 AS col1, + 60 + - 49 AS col1 FROM tab2 cor0
----
23
11
40
11
58
11

onlyif mysql # DIV for integer division: 
query I rowsort label-2841
SELECT DISTINCT - + col2 DIV + col0 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2841
SELECT DISTINCT - + col2 / + col0 AS col2 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2842
SELECT DISTINCT - + COUNT( * ) col1, COUNT( * ) AS col1 FROM tab1 AS cor0
----
-3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2842
SELECT DISTINCT - + COUNT ( * ) col1, COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-3
3

query III rowsort
SELECT ALL * FROM tab2 WHERE ( col2 = + 43 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( - - col2 * + ( col0 ) / + - 23 + - ( - col0 ), col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2845
SELECT DISTINCT 50 DIV col2 FROM tab2 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-2845
SELECT DISTINCT 50 / col2 FROM tab2 AS cor0
----
0
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2846
SELECT MIN( - col2 ) FROM tab1 AS cor0 WHERE NOT - 54 BETWEEN - ( - col2 ) + - col1 AND NULL
----
-96

skipif mysql # not compatible
query I rowsort label-2846
SELECT MIN ( - col2 ) FROM tab1 AS cor0 WHERE NOT - 54 BETWEEN - ( - col2 ) + - col1 AND NULL
----
-96

query II rowsort
SELECT - ( - 44 ) AS col1, - 17 AS col1 FROM tab0 AS cor0
----
44
-17
44
-17
44
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-2848
SELECT ALL - + MAX( DISTINCT + col1 ) FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-2848
SELECT ALL - + MAX ( DISTINCT + col1 ) FROM tab1 AS cor0
----
-47

query I rowsort
SELECT DISTINCT + 89 * - - ( - col2 ) + - 91 AS col0 FROM tab0
----
-4274
-8902
-981

onlyif mysql # aggregate syntax: 
query I rowsort label-2850
SELECT + + ( - + COUNT( * ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-2850
SELECT + + ( - + COUNT ( * ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

query I rowsort
SELECT ALL + 5 FROM tab1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 * - + col0 > NULL
----

query I rowsort
SELECT ALL - 40 AS col2 FROM tab2 cor0
----
-40
-40
-40

query I rowsort
SELECT - col1 + 78 * col0 + - - col1 AS col1 FROM tab2 cor0
----
3588
4992
5850

onlyif mysql # aggregate syntax: 
query I rowsort label-2855
SELECT DISTINCT COUNT( * ) + + 75 FROM tab2 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-2855
SELECT DISTINCT COUNT ( * ) + + 75 FROM tab2 AS cor0
----
78

query III rowsort
SELECT * FROM tab1 WHERE + ( col2 ) < NULL
----

query I rowsort
SELECT ALL 93 + - col1 + col1 * + - col1 * + 51 AS col2 FROM tab1
----
-112613
-1187
-9917

query I rowsort
SELECT DISTINCT + - col1 FROM tab1 WHERE NULL IS NULL
----
-14
-47
-5

query I rowsort
SELECT ALL col0 + + ( + 19 ) + 45 AS col1 FROM tab0
----
151
161
79

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col2 + 82 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2861
SELECT DISTINCT + - MIN( + 46 ) col1 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2861
SELECT DISTINCT + - MIN ( + 46 ) col1 FROM tab2 AS cor0
----
-46

query I rowsort
SELECT + col1 * - col1 + ( + col0 ) - + col2 FROM tab2 AS cor0
----
-2578
-4472
-5905

onlyif mysql # aggregate syntax: 
query I rowsort label-2863
SELECT + - COUNT( * ) AS col1 FROM tab2 WHERE col2 < + + col1 / + - col1
----
0

skipif mysql # not compatible
query I rowsort label-2863
SELECT + - COUNT ( * ) AS col1 FROM tab2 WHERE col2 < + + col1 / + - col1
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2864
SELECT - CAST( NULL AS DECIMAL ) + + 94 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2864
SELECT - CAST ( NULL AS REAL ) + + 94 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - - 83 + 16 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

query I rowsort
SELECT 46 * + col0 * + col1 + + 15 * + col0 FROM tab1 WHERE - + ( - col0 ) IS NOT NULL
----
198107
20825
33609

query II rowsort
SELECT DISTINCT - - 45, + 11 AS col0 FROM tab1 AS cor0
----
45
11

query II rowsort
SELECT - + col0, ( col1 ) + - col1 AS col2 FROM tab1 cor0
----
-51
0
-85
0
-91
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2869
SELECT * FROM tab2 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) * + - ( + + 89 ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-2869
SELECT * FROM tab2 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) * + - ( + + 89 ) IS NULL
----

query II rowsort
SELECT ALL + 91 AS col2, - col0 FROM tab2 AS cor0
----
91
-46
91
-64
91
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2871
SELECT - 69 DIV + COUNT( * ) AS col1, ( + + SUM( - 9 ) ) FROM tab0
----
-23
-27

skipif mysql # not compatible
query II rowsort label-2871
SELECT - 69 / + COUNT ( * ) AS col1, ( + + SUM ( - 9 ) ) FROM tab0
----
-23
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-2872
SELECT - SUM( DISTINCT + - col1 ) AS col0 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-2872
SELECT - SUM ( DISTINCT + - col1 ) AS col0 FROM tab1 AS cor0
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-2873
SELECT + 29 DIV - col2 col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2873
SELECT + 29 / - col2 col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2874
SELECT DISTINCT 31 * + + CAST( NULL AS SIGNED ) AS col0 FROM tab1 WHERE + col0 > NULL
----

skipif mysql # not compatible
query I rowsort label-2874
SELECT DISTINCT 31 * + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 WHERE + col0 > NULL
----

query I rowsort
SELECT - 76 - 56 AS col1 FROM tab2
----
-132
-132
-132

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2876
SELECT - CAST( NULL AS DECIMAL ) + ( + 32 ) * - - col1 * col0 col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2876
SELECT - CAST ( NULL AS REAL ) + ( + 32 ) * - - col1 * col0 col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 - col2 AS col2 FROM tab0
----
-98
11
34

query I rowsort
SELECT + + 30 + - col0 FROM tab0 AS cor0
----
-57
-67
15

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2879
SELECT - col1 / - ( col2 ) + - 93 * CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2879
SELECT - col1 / - ( col2 ) + - 93 * CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 94 col1 FROM tab0 AS cor0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-2881
SELECT ALL COUNT( - col0 ) AS col2 FROM tab1 WHERE NOT NULL > 75 / 39
----
0

skipif mysql # not compatible
query I rowsort label-2881
SELECT ALL COUNT ( - col0 ) AS col2 FROM tab1 WHERE NOT NULL > 75 / 39
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 22 * - col0 < + col0 + - col2
----

query III rowsort
SELECT * FROM tab1 WHERE NULL <> - 97 / 26 - - col0 * 43
----

query I rowsort
SELECT DISTINCT - col0 * - 73 FROM tab0
----
1095
6351
7081

query I rowsort
SELECT ALL col0 AS col1 FROM tab2 WHERE NOT + col2 = ( + col0 + col1 )
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2886
SELECT - 12 DIV - CAST( col2 AS SIGNED ) FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2886
SELECT - 12 / - CAST ( col2 AS INTEGER ) FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2887
SELECT DISTINCT COUNT( * ) - + 55 FROM tab1
----
-52

skipif mysql # not compatible
query I rowsort label-2887
SELECT DISTINCT COUNT ( * ) - + 55 FROM tab1
----
-52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 97 + + col2 col2 FROM tab0
----
-50
-87
2

query I rowsort
SELECT col1 * + col2 + + 55 FROM tab2
----
1228
3135
3941

query I rowsort
SELECT 4 AS col1 FROM tab1 WHERE NOT - 37 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2891
SELECT ALL COUNT( * ) + + 20 col0 FROM tab1
----
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2891
SELECT ALL COUNT ( * ) + + 20 col0 FROM tab1
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2892
SELECT ALL ( 6 ) * CAST( NULL AS SIGNED ) FROM tab1 WHERE ( 60 + col1 / 92 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-2892
SELECT ALL ( 6 ) * CAST ( NULL AS INTEGER ) FROM tab1 WHERE ( 60 + col1 / 92 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2893
SELECT ALL - SUM( - 46 ) FROM tab2
----
138

skipif mysql # not compatible
query I rowsort label-2893
SELECT ALL - SUM ( - 46 ) FROM tab2
----
138

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( 48 ) <= - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 * 74 + col1 AS col1 FROM tab1
----
3788
6295
6781

onlyif mysql # aggregate syntax: 
query I rowsort label-2896
SELECT - COUNT( - 93 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-2896
SELECT - COUNT ( - 93 ) FROM tab2
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2897
SELECT + COUNT( * ) DIV + 11 + + COUNT( * ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2897
SELECT + COUNT ( * ) / + 11 + + COUNT ( * ) FROM tab0
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col1 * - col1 NOT IN ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2899
SELECT ALL - COUNT( - ( - col0 ) ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-2899
SELECT ALL - COUNT ( - ( - col0 ) ) FROM tab1
----
-3

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( 65 + + 65 ) <> col0
----

query I rowsort
SELECT ALL 66 FROM tab0 WHERE NOT + col0 IS NULL
----
66
66
66

query III rowsort
SELECT * FROM tab2 WHERE + col0 / 41 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 85 + 45 AS col1 FROM tab2
----
-40
-40
-40

query I rowsort
SELECT ( - 46 ) AS col0 FROM tab1
----
-46
-46
-46

query I rowsort
SELECT + 74 + + col0 FROM tab1
----
125
159
165

query I rowsort
SELECT ALL - col2 * + 61 FROM tab1 AS cor0
----
-3599
-4148
-5856

query I rowsort
SELECT DISTINCT - ( 40 ) * col2 AS col2 FROM tab0 AS cor0
----
-1880
-3960
-400

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL < + 83 * col2
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) = ( col0 + - ( col1 ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2910
SELECT COUNT( * ) FROM tab0 cor0 WHERE NOT col1 NOT IN ( ( - col0 ) + CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-2910
SELECT COUNT ( * ) FROM tab0 cor0 WHERE NOT col1 NOT IN ( ( - col0 ) + CAST ( NULL AS INTEGER ) )
----
0

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab1 WHERE NULL IS NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

onlyif mysql # aggregate syntax: 
query I rowsort label-2912
SELECT ALL MAX( ALL col2 ) + + 55 AS col0 FROM tab2
----
113

skipif mysql # not compatible
query I rowsort label-2912
SELECT ALL MAX ( ALL col2 ) + + 55 AS col0 FROM tab2
----
113

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + 61 ) col0 FROM tab1
----
61
61
61

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + col0 ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2915
SELECT DISTINCT COUNT( * ) col0 FROM tab2 AS cor0 WHERE NOT 35 * col0 IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2915
SELECT DISTINCT COUNT ( * ) col0 FROM tab2 AS cor0 WHERE NOT 35 * col0 IS NOT NULL
----
0

query I rowsort
SELECT + col1 FROM tab1 AS cor0 WHERE NULL >= col1 - + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2917
SELECT + - col1 + CAST( 80 AS SIGNED ) FROM tab2 AS cor0
----
13
29
3

skipif mysql # not compatible
query I rowsort label-2917
SELECT + - col1 + CAST ( 80 AS INTEGER ) FROM tab2 AS cor0
----
13
29
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2918
SELECT ALL 31 * - ( COUNT( ALL 78 ) ) * 27 AS col2 FROM tab2
----
-2511

skipif mysql # not compatible
query I rowsort label-2918
SELECT ALL 31 * - ( COUNT ( ALL 78 ) ) * 27 AS col2 FROM tab2
----
-2511

query I rowsort
SELECT ALL col0 * - col1 * col2 + - col0 FROM tab1
----
-25160
-290927
-68595

query I rowsort
SELECT ALL AVG ( DISTINCT col1 ) FROM tab2 WHERE NOT + col0 IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT - col1 + + + 91 AS col0 FROM tab1
----
44
77
86

query I rowsort
SELECT DISTINCT col0 + col2 + - col0 * - 33 FROM tab0
----
2968
3397
557

query I rowsort
SELECT ALL 96 + + col1 AS col1 FROM tab1 WHERE - col1 IN ( col1 * 75 )
----

query I rowsort
SELECT + 50 * col0 AS col1 FROM tab1
----
2550
4250
4550

onlyif mysql # aggregate syntax: 
query I rowsort label-2925
SELECT DISTINCT + 32 + + COUNT( - 5 ) FROM tab0
----
35

skipif mysql # not compatible
query I rowsort label-2925
SELECT DISTINCT + 32 + + COUNT ( - 5 ) FROM tab0
----
35

query I rowsort
SELECT DISTINCT + 26 - + + col2 - - col0 * - 45 FROM tab2
----
-2067
-2894
-3407

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2927
SELECT * FROM tab0 WHERE ( ( + CAST( NULL AS SIGNED ) ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2927
SELECT * FROM tab0 WHERE ( ( + CAST ( NULL AS INTEGER ) ) ) IS NOT NULL
----

query I rowsort
SELECT ALL - ( col0 ) + + col0 * col1 AS col1 FROM tab2
----
2300
4864
4950

onlyif mysql # DIV for integer division: 
query I rowsort label-2929
SELECT ALL + col0 DIV - col2 + + 50 AS col0 FROM tab1 WHERE NOT col1 DIV col0 IS NULL
----
49
49
50

skipif mysql # not compatible
query I rowsort label-2929
SELECT ALL + col0 / - col2 + + 50 AS col0 FROM tab1 WHERE NOT col1 / col0 IS NULL
----
49
49
50

query I rowsort
SELECT ALL col0 - - - 54 + - col2 FROM tab1
----
-28
-31
-99

query I rowsort
SELECT 90 - + col0 AS col0 FROM tab0 AS cor0
----
-7
3
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2932
SELECT 91 - - COUNT( * ) + + 81 FROM tab1 AS cor0
----
175

skipif mysql # not compatible
query I rowsort label-2932
SELECT 91 - - COUNT ( * ) + + 81 FROM tab1 AS cor0
----
175

query I rowsort
SELECT + ( - 9 ) - + col0 AS col0 FROM tab2 AS cor0
----
-55
-73
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-2934
SELECT + 44 - 45 * - COUNT( * ) FROM tab0 AS cor0
----
179

skipif mysql # not compatible
query I rowsort label-2934
SELECT + 44 - 45 * - COUNT ( * ) FROM tab0 AS cor0
----
179

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 IN ( + 35 + col2 * + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2936
SELECT ALL - COUNT( - + col0 ) * - 71 FROM tab2
----
213

skipif mysql # not compatible
query I rowsort label-2936
SELECT ALL - COUNT ( - + col0 ) * - 71 FROM tab2
----
213

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2937
SELECT DISTINCT COUNT( * ) DIV - 52 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-2937
SELECT DISTINCT COUNT ( * ) / - 52 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
0

query I rowsort
SELECT - col2 AS col0 FROM tab1 AS cor0 WHERE NOT + col2 <> - - col0 * - 4
----

query II rowsort
SELECT ALL - col1 AS col1, col2 FROM tab2 cor0
----
-51
23
-67
58
-77
40

query I rowsort
SELECT ALL + 94 * - col1 * - - col2 FROM tab0 AS cor0
----
-19740
-357858
-9306

onlyif mysql # aggregate syntax: 
query I rowsort label-2941
SELECT MAX( 81 ) * + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT col1 BETWEEN - 43 * 44 AND ( col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2941
SELECT MAX ( 81 ) * + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT col1 BETWEEN - 43 * 44 AND ( col2 )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col2 col0, 80 FROM tab2 AS cor0
----
-23
80
-40
80
-58
80

query I rowsort
SELECT DISTINCT + 31 - 67 FROM tab2 AS cor0 WHERE ( - 3 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2944
SELECT + CAST( NULL AS SIGNED ) * - col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2944
SELECT + CAST ( NULL AS INTEGER ) * - col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 89 FROM tab0 AS cor0 WHERE NOT ( NULL ) >= - - 81
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2946
SELECT - - MAX( ALL - 72 ) AS col0 FROM tab2 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-2946
SELECT - - MAX ( ALL - 72 ) AS col0 FROM tab2 AS cor0
----
-72

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 NOT BETWEEN - - 15 / 14 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2948
SELECT DISTINCT - 39 + + MIN( ALL - col0 ) * 85 FROM tab1 AS cor0 WHERE NOT + col2 BETWEEN col1 AND ( col1 )
----
-7774

skipif mysql # not compatible
query I rowsort label-2948
SELECT DISTINCT - 39 + + MIN ( ALL - col0 ) * 85 FROM tab1 AS cor0 WHERE NOT + col2 BETWEEN col1 AND ( col1 )
----
-7774

onlyif mysql # aggregate syntax: 
query I rowsort label-2949
SELECT MIN( DISTINCT + col2 ) AS col2 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-2949
SELECT MIN ( DISTINCT + col2 ) AS col2 FROM tab2 AS cor0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-2950
SELECT - ( - MIN( col2 ) ) AS col1 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-2950
SELECT - ( - MIN ( col2 ) ) AS col1 FROM tab1
----
59

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + ( + col1 ) * 97 BETWEEN 56 AND + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 86 * col1 col0 FROM tab1 WHERE NOT NULL <= + 39 * + col2
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + ( - col2 ) ) < + ( 96 )
----

query I rowsort
SELECT col2 * 37 FROM tab1 WHERE NOT + ( 28 ) * ( - 92 * col1 ) BETWEEN + col2 + 40 AND col1
----
2183
2516
3552

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 55 col2 FROM tab2 AS cor0
----
-55

query I rowsort
SELECT + col1 + - 83 * + 62 - - col0 * 10 AS col1 FROM tab0 AS cor0
----
-4175
-4255
-4915

query I rowsort
SELECT DISTINCT - col0 + + col1 + + 28 + - col2 + - col2 FROM tab2
----
-13
-39
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2958
SELECT COUNT( - - 72 ) FROM tab0 AS cor0 WHERE NULL > ( CAST( + - col1 AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-2958
SELECT COUNT ( - - 72 ) FROM tab0 AS cor0 WHERE NULL > ( CAST ( + - col1 AS INTEGER ) )
----
0

query I rowsort
SELECT 39 * 75 AS col2 FROM tab1 AS cor0
----
2925
2925
2925

onlyif mysql # DIV for integer division: 
query I rowsort label-2960
SELECT - 76 DIV - + 43 - + + col0 FROM tab0 AS cor0
----
-14
-86
-96

skipif mysql # not compatible
query I rowsort label-2960
SELECT - 76 / - + 43 - + + col0 FROM tab0 AS cor0
----
-14
-86
-96

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( - - col1 / + col0 )
----

query I rowsort
SELECT DISTINCT 45 + col0 AS col0 FROM tab1 AS cor0 WHERE NOT col1 * ( col0 ) + + + col1 / 43 < NULL
----

query I rowsort
SELECT DISTINCT + + 63 * - + col0 FROM tab2 AS cor0
----
-2898
-4032
-4725

query I rowsort
SELECT ALL + - 67 + + col0 AS col0 FROM tab0 AS cor0
----
-52
20
30

onlyif mysql # DIV for integer division: 
query I rowsort label-2965
SELECT ALL + - col2 + - 30 DIV - col2 + - col2 * - 26 FROM tab0 cor0
----
1175
2475
253

skipif mysql # not compatible
query I rowsort label-2965
SELECT ALL + - col2 + - 30 / - col2 + - col2 * - 26 FROM tab0 cor0
----
1175
2475
253

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2966
SELECT DISTINCT + col0 FROM tab1 WHERE NULL NOT IN ( + CAST( NULL AS DECIMAL ), 98 - - - col1 / 76 )
----

skipif mysql # not compatible
query I rowsort label-2966
SELECT DISTINCT + col0 FROM tab1 WHERE NULL NOT IN ( + CAST ( NULL AS REAL ), 98 - - - col1 / 76 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL >= ( + 90 - - - col1 + - col2 )
----

query I rowsort
SELECT 13 + + - col0 * col0 FROM tab0
----
-212
-7556
-9396

query I rowsort
SELECT ALL - col1 * + - col0 + + col1 AS col0 FROM tab1
----
430
4324
728

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2970
SELECT ( + 82 ) DIV - 47 - - CAST( - col2 AS SIGNED ) + col1 FROM tab2
----
27
36
8

skipif mysql # not compatible
query I rowsort label-2970
SELECT ( + 82 ) / - 47 - - CAST ( - col2 AS INTEGER ) + col1 FROM tab2
----
27
36
8

onlyif mysql # aggregate syntax: 
query II rowsort label-2971
SELECT - COUNT( * ) + - COUNT( * ) AS col2, MIN( + - 33 ) AS col2 FROM tab1
----
-6
-33

skipif mysql # not compatible
query II rowsort label-2971
SELECT - COUNT ( * ) + - COUNT ( * ) AS col2, MIN ( + - 33 ) AS col2 FROM tab1
----
-6
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-2972
SELECT 54 + - - COUNT( * ) * - COUNT( * ) * - - ( + 46 ) col2 FROM tab2
----
-360

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2972
SELECT 54 + - - COUNT ( * ) * - COUNT ( * ) * - - ( + 46 ) col2 FROM tab2
----
-360

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2973
SELECT ( 25 ) DIV + COUNT( * ) FROM tab0 WHERE - 33 + - 5 <= ( - ( - col0 ) )
----
8

skipif mysql # not compatible
query I rowsort label-2973
SELECT ( 25 ) / + COUNT ( * ) FROM tab0 WHERE - 33 + - 5 <= ( - ( - col0 ) )
----
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col1 col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
2346
4928
5025

query I rowsort
SELECT ALL - col1 + + col0 FROM tab1 WHERE NOT - col1 - - + col2 IS NULL
----
37
44
80

query I rowsort
SELECT - 15 * ( + col1 ) AS col1 FROM tab2
----
-1005
-1155
-765

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 * col2 IN ( - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2978
SELECT ALL - CAST( - ( + 34 ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
34
34
34

skipif mysql # not compatible
query I rowsort label-2978
SELECT ALL - CAST ( - ( + 34 ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
34
34
34

query I rowsort
SELECT DISTINCT col0 * + + ( - 96 ) * - col1 * + 74 FROM tab1 cor0
----
3019200
30383808
5072256

query I rowsort
SELECT ALL + + col2 * - col2 * 55 * + col2 FROM tab1 AS cor0
----
-11295845
-17293760
-48660480

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( ( + 44 ) ) NOT BETWEEN ( NULL ) AND 76
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 15 / col2 col0 FROM tab2 AS cor0 WHERE ( + ( - col0 ) IN ( + - col0 * + 39 + col2 * - col2 ) )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( 80 + + - col1 * col0 * + col1 )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + 14 IS NOT NULL
----

query I rowsort
SELECT - col0 AS col0 FROM tab2 cor0 WHERE NOT - 28 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT 8 FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN ( - col0 ) AND NULL
----

query I rowsort
SELECT + col2 * + - ( - - ( col2 ) ) FROM tab0 AS cor0
----
-100
-2209
-9801

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + col0, + 87 * + - 2 )
----

query II rowsort
SELECT DISTINCT col1 AS col1, - ( - col2 ) * + + col0 AS col2 FROM tab2
----
51
1058
67
4350
77
2560

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( 23 ) IS NOT NULL
----

query II rowsort
SELECT ALL + col2, ( + col1 ) AS col0 FROM tab2
----
23
51
40
77
58
67

onlyif mysql # aggregate syntax: 
query I rowsort label-2992
SELECT DISTINCT - COUNT( ALL - + col2 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-2992
SELECT DISTINCT - COUNT ( ALL - + col2 ) FROM tab1
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 AS col2, - col2 col0 FROM tab0
----
10
-10
47
-47
99
-99

query I rowsort
SELECT ALL ( + + 79 ) FROM tab2
----
79
79
79

onlyif mysql # aggregate syntax: 
query I rowsort label-2995
SELECT DISTINCT MAX( - - col1 ) AS col2 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-2995
SELECT DISTINCT MAX ( - - col1 ) AS col2 FROM tab1
----
47

query II rowsort
SELECT DISTINCT - col1 AS col1, + 94 + + col1 AS col0 FROM tab1
----
-14
108
-47
141
-5
99

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 NOT BETWEEN 70 AND + col1
----

query I rowsort
SELECT DISTINCT - 4 + - - 70 AS col2 FROM tab0 AS cor0
----
66

query II rowsort
SELECT DISTINCT + col2 AS col0, col0 AS col1 FROM tab0 cor0
----
10
87
47
15
99
97

query I rowsort
SELECT DISTINCT - 78 FROM tab0 cor0 CROSS JOIN tab1 cor1
----
-78

query I rowsort
SELECT + 18 AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

query I rowsort
SELECT ALL - 54 + - col2 FROM tab1
----
-113
-122
-150

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 49 IS NOT NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3004
SELECT DISTINCT - 60 - - + COUNT( * ) DIV + SUM( + - col2 ) AS col2 FROM tab0
----
-60

skipif mysql # not compatible
query I rowsort label-3004
SELECT DISTINCT - 60 - - + COUNT ( * ) / + SUM ( + - col2 ) AS col2 FROM tab0
----
-60

query II rowsort
SELECT ALL + 27 * 40, - col1 AS col1 FROM tab2
----
1080
-51
1080
-67
1080
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3006
SELECT ALL - 62 * - COUNT( * ) - - 7 AS col1 FROM tab2 cor0
----
193

skipif mysql # not compatible
query I rowsort label-3006
SELECT ALL - 62 * - COUNT ( * ) - - 7 AS col1 FROM tab2 cor0
----
193

query I rowsort
SELECT - 50 + - + col0 FROM tab0 AS cor0
----
-137
-147
-65

query I rowsort
SELECT + col2 + + + col2 FROM tab0 AS cor0
----
198
20
94

query I rowsort
SELECT col1 * - 58 + + - col0 AS col0 FROM tab2 AS cor0
----
-3004
-3961
-4530

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - 24 ) IS NULL
----

query I rowsort
SELECT DISTINCT col0 + + 66 AS col1 FROM tab0
----
153
163
81

query I rowsort
SELECT DISTINCT - 55 + - col0 FROM tab2
----
-101
-119
-130

query I rowsort
SELECT ALL AVG ( DISTINCT + 78 ) FROM tab1 WHERE NULL IN ( - + col2, 26 )
----
NULL

query I rowsort
SELECT DISTINCT ( - - col2 ) * - - col2 * - col1 * - col0 + + - col2 FROM tab2
----
1241011
16904042
7884760

onlyif mysql # aggregate syntax: 
query I rowsort label-3015
SELECT DISTINCT COUNT( * ) * + - COUNT( * ) FROM tab1 WHERE col0 IS NULL AND NOT col1 / - 47 > ( 19 + 88 )
----
0

skipif mysql # not compatible
query I rowsort label-3015
SELECT DISTINCT COUNT ( * ) * + - COUNT ( * ) FROM tab1 WHERE col0 IS NULL AND NOT col1 / - 47 > ( 19 + 88 )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 69 col1 FROM tab2 cor0
----
-69
-69
-69

query I rowsort
SELECT DISTINCT col0 FROM tab1 AS cor0 WHERE NULL IN ( 2, - 62 * + - 55 )
----

query I rowsort
SELECT col1 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT + + ( - + col2 ) FROM tab0 AS cor0
----
-10
-47
-99

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 JOIN tab0 cor1 ON NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3021
SELECT + CAST( + - col1 AS SIGNED ) DIV 60 * + col2 AS col0 FROM tab2
----
-40
-58
0

skipif mysql # not compatible
query I rowsort label-3021
SELECT + CAST ( + - col1 AS INTEGER ) / 60 * + col2 AS col0 FROM tab2
----
-40
-58
0

query I rowsort
SELECT ALL + + col1 * - col1 + + - col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-210
-2256
-30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col0, col2 AS col0 FROM tab1 AS cor0
----
59
59
68
68
96
96

query II rowsort
SELECT - - col0, 93 AS col2 FROM tab2 AS cor0
----
46
93
64
93
75
93

onlyif mysql # aggregate syntax: 
query II rowsort label-3025
SELECT ALL - 38 AS col2, COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE + 17 + - - 4 > ( NULL )
----
-38
0

skipif mysql # not compatible
query II rowsort label-3025
SELECT ALL - 38 AS col2, COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE + 17 + - - 4 > ( NULL )
----
-38
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3026
SELECT ALL + col1 DIV + col1 + + col2 * - 10 * col1 * + 62 AS col2 FROM tab0 AS cor0
----
-130199
-2360339
-61379

skipif mysql # not compatible
query I rowsort label-3026
SELECT ALL + col1 / + col1 + + col2 * - 10 * col1 * + 62 AS col2 FROM tab0 AS cor0
----
-130199
-2360339
-61379

onlyif mysql # aggregate syntax: 
query I rowsort label-3027
SELECT - MAX( DISTINCT - + col0 ) FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-3027
SELECT - MAX ( DISTINCT - + col0 ) FROM tab2 AS cor0
----
46

query I rowsort
SELECT DISTINCT + 67 + + 6 AS col1 FROM tab0 AS cor0
----
73

query I rowsort
SELECT ALL - col0 + - 83 FROM tab2
----
-129
-147
-158

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3030
SELECT ALL * FROM tab2 WHERE - col0 * CAST( NULL AS SIGNED ) <> ( + - col0 )
----

skipif mysql # not compatible
query III rowsort label-3030
SELECT ALL * FROM tab2 WHERE - col0 * CAST ( NULL AS INTEGER ) <> ( + - col0 )
----

query I rowsort
SELECT ALL + 3 + 72 FROM tab1
----
75
75
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3032
SELECT - COUNT( * ) * - + COUNT( * ) AS col2 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-3032
SELECT - COUNT ( * ) * - + COUNT ( * ) AS col2 FROM tab0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3033
SELECT COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE ( + - col2 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-3033
SELECT COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE ( + - col2 ) IS NOT NULL
----
3

query I rowsort
SELECT col2 + + - col0 * + col1 FROM tab2 AS cor0
----
-2323
-4888
-4967

query I rowsort
SELECT - - 76 + + col0 AS col0 FROM tab1 cor0
----
127
161
167

query I rowsort
SELECT DISTINCT - col0 + 66 AS col0 FROM tab1 AS cor0
----
-19
-25
15

query I rowsort
SELECT ALL - 93 + + - 57 FROM tab0
----
-150
-150
-150

query I rowsort
SELECT ALL + 99 + - 90 AS col0 FROM tab2
----
9
9
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3039
SELECT - - MIN( DISTINCT - 6 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-6

skipif mysql # not compatible
query I rowsort label-3039
SELECT - - MIN ( DISTINCT - 6 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-6

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3040
SELECT + 7 DIV 75 * - - col0 + + col1 FROM tab0 WHERE - CAST( - + col1 AS SIGNED ) IS NOT NULL
----
1
21
81

skipif mysql # not compatible
query I rowsort label-3040
SELECT + 7 / 75 * - - col0 + + col1 FROM tab0 WHERE - CAST ( - + col1 AS INTEGER ) IS NOT NULL
----
1
21
81

query I rowsort
SELECT ALL - 31 + - - col1 AS col2 FROM tab0 AS cor0
----
-10
-30
50

query II rowsort
SELECT ALL - - col1 AS col2, + ( - - col0 ) FROM tab1 AS cor0
----
14
51
47
91
5
85

query II rowsort
SELECT DISTINCT - + col2 AS col2, - 32 + + + 82 AS col2 FROM tab1 AS cor0
----
-59
50
-68
50
-96
50

onlyif mysql # aggregate syntax: 
query I rowsort label-3044
SELECT DISTINCT COUNT( - - 34 ) * - 27 col1 FROM tab0
----
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3044
SELECT DISTINCT COUNT ( - - 34 ) * - 27 col1 FROM tab0
----
-81

query I rowsort
SELECT DISTINCT col1 * + + 69 FROM tab0
----
1449
5589
69

onlyif mysql # DIV for integer division: 
query I rowsort label-3046
SELECT ALL - col2 * - col0 DIV + col0 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-3046
SELECT ALL - col2 * - col0 / + col0 FROM tab2
----
23
40
58

query I rowsort
SELECT DISTINCT + - ( - + col2 ) AS col2 FROM tab0 AS cor0
----
10
47
99

query I rowsort
SELECT - 40 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 27 col0 FROM tab1
----
1377
2295
2457

query I rowsort
SELECT 89 * + - col2 AS col1 FROM tab2
----
-2047
-3560
-5162

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3051
SELECT DISTINCT - ( + CAST( NULL AS SIGNED ) ) * + + 86 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3051
SELECT DISTINCT - ( + CAST ( NULL AS INTEGER ) ) * + + 86 FROM tab0
----
NULL

query I rowsort
SELECT ALL + col0 FROM tab1 AS cor0 WHERE NOT col1 NOT BETWEEN + col2 AND NULL
----

query I rowsort
SELECT DISTINCT - 35 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3054
SELECT DISTINCT + + COUNT( * ) * - - 21 col0 FROM tab1 WHERE + 23 >= NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3054
SELECT DISTINCT + + COUNT ( * ) * - - 21 col0 FROM tab1 WHERE + 23 >= NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3055
SELECT + COUNT( - ( - col0 ) ) + - 23 AS col0, - 77 + + SUM( - 20 ) AS col2 FROM tab2
----
-20
-137

skipif mysql # not compatible
query II rowsort label-3055
SELECT + COUNT ( - ( - col0 ) ) + - 23 AS col0, - 77 + + SUM ( - 20 ) AS col2 FROM tab2
----
-20
-137

query I rowsort
SELECT DISTINCT - 14 + - - col1 * + 43 FROM tab0
----
29
3469
889

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + 30 col1 FROM tab1
----
115
121
81

query I rowsort
SELECT DISTINCT + 93 FROM tab1 WHERE - col2 * 23 <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3059
SELECT ALL + col2 DIV - - col0 col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3059
SELECT ALL + col2 / - - col0 col0 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL + 60 FROM tab2 WHERE NOT - col1 + + col1 IS NULL
----
60
60
60

query I rowsort
SELECT 84 + - col2 * + col1 AS col2 FROM tab2
----
-1089
-2996
-3802

onlyif mysql # aggregate syntax: 
query I rowsort label-3062
SELECT - MAX( DISTINCT + - col2 ) FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-3062
SELECT - MAX ( DISTINCT + - col2 ) FROM tab1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3063
SELECT ALL 93 + + - COUNT( * ) AS col2 FROM tab2
----
90

skipif mysql # not compatible
query I rowsort label-3063
SELECT ALL 93 + + - COUNT ( * ) AS col2 FROM tab2
----
90

onlyif mysql # aggregate syntax: 
query II rowsort label-3064
SELECT ALL - 25 AS col0, + ( + COUNT( * ) ) AS col0 FROM tab1
----
-25
3

skipif mysql # not compatible
query II rowsort label-3064
SELECT ALL - 25 AS col0, + ( + COUNT ( * ) ) AS col0 FROM tab1
----
-25
3

query III rowsort
SELECT * FROM tab0 WHERE ( + 86 / col1 ) IN ( + col1, col0, col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1, - col1 col1 FROM tab2 cor0
----
-51
-51
-67
-67
-77
-77

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT - - 55 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT 22 AS col0, col2 FROM tab2 AS cor0
----
22
23
22
40
22
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3069
SELECT DISTINCT - - col1 FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) - - 10 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3069
SELECT DISTINCT - - col1 FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) - - 10 IS NOT NULL
----

query I rowsort
SELECT - 53 - - - 68 + - col0 * + 67 * + 90 AS col2 FROM tab1 AS cor0
----
-307651
-512671
-548851

query I rowsort
SELECT + - col0 AS col0 FROM tab2 WHERE + 70 NOT BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3072
SELECT 81 + - - col0 + ( - - col0 ) + + ( - col0 ) * - + col2 DIV + col2 + col1 * + col0 FROM tab2
----
2565
5201
5331

skipif mysql # not compatible
query I rowsort label-3072
SELECT 81 + - - col0 + ( - - col0 ) + + ( - col0 ) * - + col2 / + col2 + col1 * + col0 FROM tab2
----
2565
5201
5331

query I rowsort
SELECT - 46 FROM tab0 AS cor0 WHERE + 58 * + + col0 * + 78 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3074
SELECT ALL * FROM tab2 AS cor0 WHERE NULL BETWEEN - 52 AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3074
SELECT ALL * FROM tab2 AS cor0 WHERE NULL BETWEEN - 52 AND CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL BETWEEN col1 * - col2 + col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3076
SELECT - MIN( + col1 ) * - 89 FROM tab2 AS cor0
----
4539

skipif mysql # not compatible
query I rowsort label-3076
SELECT - MIN ( + col1 ) * - 89 FROM tab2 AS cor0
----
4539

onlyif mysql # aggregate syntax: 
query I rowsort label-3077
SELECT DISTINCT COUNT( - col2 ) * COUNT( * ) FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3077
SELECT DISTINCT COUNT ( - col2 ) * COUNT ( * ) FROM tab1 AS cor0
----
9

query I rowsort
SELECT + - col2 * + col0 * + - ( col2 ) FROM tab0 cor0
----
33135
8700
950697

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3079
SELECT COUNT( * ) * - - ( ( CAST( COUNT( * ) AS SIGNED ) ) ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-3079
SELECT COUNT ( * ) * - - ( ( CAST ( COUNT ( * ) AS INTEGER ) ) ) FROM tab2
----
9

query III rowsort
SELECT ALL * FROM tab2 WHERE - + col0 > + - col0 + - 9
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 82 * + col0 * - + col2 AS col1 FROM tab0
----
-57810
-71340
-787446

onlyif mysql # aggregate syntax: 
query I rowsort label-3082
SELECT + SUM( ALL + + 78 ) * 64 - - + 92 + + + ( + ( - 11 ) ) AS col0 FROM tab1
----
15057

skipif mysql # not compatible
query I rowsort label-3082
SELECT + SUM ( ALL + + 78 ) * 64 - - + 92 + + + ( + ( - 11 ) ) AS col0 FROM tab1
----
15057

query I rowsort
SELECT DISTINCT - 60 * - col0 AS col1 FROM tab2
----
2760
3840
4500

query I rowsort
SELECT ALL 84 * - col0 AS col0 FROM tab1
----
-4284
-7140
-7644

query I rowsort
SELECT DISTINCT col1 * + - col0 FROM tab2 AS cor0
----
-2346
-4928
-5025

onlyif mysql # DIV for integer division: 
query I rowsort label-3086
SELECT DISTINCT 54 DIV - 76 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3086
SELECT DISTINCT 54 / - 76 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + ( - ( + - ( - col1 ) ) ) FROM tab1 AS cor0
----
-14
-47
-5

query I rowsort
SELECT DISTINCT - + 65 FROM tab2 AS cor0 WHERE NOT + 62 + - col2 + + col1 IS NULL
----
-65

query I rowsort
SELECT ALL + + col2 * + + ( - col1 ) * + - ( + + col2 ) + - 96 AS col1 FROM tab1 AS cor0
----
128928
17309
217232

onlyif mysql # aggregate syntax: 
query I rowsort label-3090
SELECT + 86 * - - COUNT( * ) * - + ( + - 94 ) AS col2 FROM tab1 AS cor0
----
24252

skipif mysql # not compatible
query I rowsort label-3090
SELECT + 86 * - - COUNT ( * ) * - + ( + - 94 ) AS col2 FROM tab1 AS cor0
----
24252

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3091
SELECT + + col2 FROM tab2 cor0 WHERE CAST( NULL AS SIGNED ) < NULL
----

skipif mysql # not compatible
query I rowsort label-3091
SELECT + + col2 FROM tab2 cor0 WHERE CAST ( NULL AS INTEGER ) < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3092
SELECT ALL - col2 * + CAST( NULL AS SIGNED ) + 28 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3092
SELECT ALL - col2 * + CAST ( NULL AS INTEGER ) + 28 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + col0 col1 FROM tab0 AS cor0
----
705
870
9603

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 * - col1 + col0 + + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE - - 96 IS NULL
----

query I rowsort
SELECT DISTINCT + col0 + + 85 FROM tab2
----
131
149
160

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + + 82 ) * + + col0 + + + col2 col0 FROM tab1
----
4278
7029
7530

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3098
SELECT * FROM tab2 WHERE + - CAST( NULL AS SIGNED ) >= - 6
----

skipif mysql # not compatible
query III rowsort label-3098
SELECT * FROM tab2 WHERE + - CAST ( NULL AS INTEGER ) >= - 6
----

query I rowsort
SELECT - col2 * + col0 * - - 55 + + 91 + + + col2 * + col0 FROM tab2
----
-138149
-234809
-57041

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 52 * col2 col1 FROM tab0 AS cor0
----
2444
5148
520

query I rowsort
SELECT - 43 * col0 + 83 FROM tab1 AS cor0
----
-2110
-3572
-3830

query I rowsort
SELECT + col0 + - 29 AS col2 FROM tab0 AS cor0
----
-14
58
68

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3103
SELECT * FROM tab1 AS cor0 WHERE - CAST( col1 AS DECIMAL ) + - 15 > - col1
----

skipif mysql # not compatible
query III rowsort label-3103
SELECT * FROM tab1 AS cor0 WHERE - CAST ( col1 AS REAL ) + - 15 > - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3104
SELECT * FROM tab0 AS cor0 WHERE ( - col0 * + - col2 - + - CAST( NULL AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3104
SELECT * FROM tab0 AS cor0 WHERE ( - col0 * + - col2 - + - CAST ( NULL AS INTEGER ) ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col0, + col1 FROM tab2
----
-23
51
-40
77
-58
67

query I rowsort
SELECT col2 + - col0 AS col1 FROM tab1 WHERE - col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3107
SELECT DISTINCT - CAST( - + ( + 37 ) AS SIGNED ) FROM tab1 AS cor0
----
37

skipif mysql # not compatible
query I rowsort label-3107
SELECT DISTINCT - CAST ( - + ( + 37 ) AS INTEGER ) FROM tab1 AS cor0
----
37

query III rowsort
SELECT + - 25, col1, - - ( 99 ) AS col2 FROM tab0 AS cor0
----
9 values hashing to 2691556f1e60c961971e11c9d9c47219

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 - + 53 - + - 7 * - ( + col0 ) * + 66 + + col2 > NULL
----

query II rowsort
SELECT - col2 AS col1, - col2 * + col0 AS col1 FROM tab2 cor0
----
-23
-1058
-40
-2560
-58
-4350

query I rowsort
SELECT ALL + - col1 * - col2 * col1 AS col1 FROM tab0 AS cor0
----
308367
4410
99

query I rowsort
SELECT ALL ( - ( - + 42 ) ) FROM tab0 AS cor0
----
42
42
42

onlyif mysql # aggregate syntax: 
query I rowsort label-3113
SELECT DISTINCT + ( + MIN( - col2 ) ) AS col0 FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-3113
SELECT DISTINCT + ( + MIN ( - col2 ) ) AS col0 FROM tab1
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3114
SELECT + COUNT( * ) * 5 * + 50 FROM tab2
----
750

skipif mysql # not compatible
query I rowsort label-3114
SELECT + COUNT ( * ) * 5 * + 50 FROM tab2
----
750

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - ( - - col1 ) col0 FROM tab1
----
-196
-2209
-25

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3116
SELECT + 51 AS col2 FROM tab0 AS cor0 WHERE NOT 51 >= - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-3116
SELECT + 51 AS col2 FROM tab0 AS cor0 WHERE NOT 51 >= - CAST ( NULL AS REAL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3117
SELECT + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT col1 - 83 + + + 32 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-3117
SELECT + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT col1 - 83 + + + 32 <> NULL
----
0

query I rowsort
SELECT ALL col1 * - 18 AS col0 FROM tab0 cor0
----
-1458
-18
-378

query I rowsort
SELECT DISTINCT - ( + 88 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-88

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3120
SELECT DISTINCT + CAST( NULL AS DECIMAL ) + - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-3120
SELECT DISTINCT + CAST ( NULL AS REAL ) + - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3121
SELECT ALL COUNT( * ) * + COUNT( ( - 25 ) ) AS col2 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3121
SELECT ALL COUNT ( * ) * + COUNT ( ( - 25 ) ) AS col2 FROM tab0 AS cor0
----
9

query I rowsort
SELECT - col2 / col0 AS col2 FROM tab1 AS cor0 WHERE col0 = NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3123
SELECT DISTINCT COUNT( * ) DIV - + 92 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3123
SELECT DISTINCT COUNT ( * ) / - + 92 AS col2 FROM tab2 AS cor0
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 * - col2 / + col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3125
SELECT ALL col2 + - col0 DIV - + col2 FROM tab1 AS cor0
----
60
69
96

skipif mysql # not compatible
query I rowsort label-3125
SELECT ALL col2 + - col0 / - + col2 FROM tab1 AS cor0
----
60
69
96

query II rowsort
SELECT ALL + + col2 + + col2 * + col1, col0 AS col1 FROM tab0 cor0
----
198
97
220
87
3854
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3127
SELECT + CAST( - 98 AS SIGNED ) + - + MAX( DISTINCT - + 6 ) AS col0 FROM tab1
----
-92

skipif mysql # not compatible
query I rowsort label-3127
SELECT + CAST ( - 98 AS INTEGER ) + - + MAX ( DISTINCT - + 6 ) AS col0 FROM tab1
----
-92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + - - col0 - + + col1 col1 FROM tab0
----
-19
195
76

onlyif mysql # DIV for integer division: 
query I rowsort label-3129
SELECT 66 DIV - col1 + - col0 + col1 * - + col1 FROM tab0
----
-164
-531
-6576

skipif mysql # not compatible
query I rowsort label-3129
SELECT 66 / - col1 + - col0 + col1 * - + col1 FROM tab0
----
-164
-531
-6576

query I rowsort
SELECT DISTINCT col1 + + col2 + + + col2 FROM tab2
----
157
183
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3131
SELECT ALL - 78 * - CAST( NULL AS SIGNED ) col2, + MAX( - CAST( - col2 AS SIGNED ) ) FROM tab0
----
NULL
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3131
SELECT ALL - 78 * - CAST ( NULL AS INTEGER ) col2, + MAX ( - CAST ( - col2 AS INTEGER ) ) FROM tab0
----
NULL
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 10 col0 FROM tab0, tab2 AS cor0
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

query I rowsort
SELECT ALL - col0 * - ( + 59 ) FROM tab2
----
2714
3776
4425

query I rowsort
SELECT ALL - + 67 - 16 AS col0 FROM tab2 AS cor0
----
-83
-83
-83

query I rowsort
SELECT + 37 AS col0 FROM tab1 AS cor0 WHERE 22 < - 40
----

query I rowsort
SELECT + col1 - + 60 AS col1 FROM tab0 AS cor0
----
-39
-59
21

query I rowsort
SELECT 28 * - col1 + - ( + col0 ) * - col1 * - - col0 AS col0 FROM tab0
----
158361
15957
9381

onlyif mysql # aggregate syntax: 
query I rowsort label-3138
SELECT COUNT( - 68 ) + + + 31 FROM tab2
----
34

skipif mysql # not compatible
query I rowsort label-3138
SELECT COUNT ( - 68 ) + + + 31 FROM tab2
----
34

query I rowsort
SELECT 19 + - col2 AS col0 FROM tab1
----
-40
-49
-77

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 * col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3141
SELECT + COUNT( * ) * - - MIN( ALL col2 ) FROM tab2 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-3141
SELECT + COUNT ( * ) * - - MIN ( ALL col2 ) FROM tab2 AS cor0
----
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3142
SELECT ALL + COUNT( * ) DIV + MAX( - - col0 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3142
SELECT ALL + COUNT ( * ) / + MAX ( - - col0 ) FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3143
SELECT ALL MIN( ALL 83 ) FROM tab0 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-3143
SELECT ALL MIN ( ALL 83 ) FROM tab0 AS cor0
----
83

query I rowsort
SELECT DISTINCT + + ( - - 58 ) AS col1 FROM tab1 AS cor0
----
58

query I rowsort
SELECT DISTINCT - col1 * - 98 FROM tab0 AS cor0 WHERE + col2 + - 0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3146
SELECT + COUNT( * ) * 72 * 20 FROM tab0 AS cor0
----
4320

skipif mysql # not compatible
query I rowsort label-3146
SELECT + COUNT ( * ) * 72 * 20 FROM tab0 AS cor0
----
4320

query II rowsort
SELECT - col1 AS col1, + col0 AS col0 FROM tab0 AS cor0
----
-1
97
-21
87
-81
15

query I rowsort
SELECT - 38 * ( + col0 ) FROM tab2
----
-1748
-2432
-2850

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 * + ( + 40 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + 59 * - + col1 AS col0 FROM tab0
----
-1239
-4779
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 col2, ( + col1 ) FROM tab0
----
10
21
47
81
99
1

query I rowsort
SELECT - 7 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ba940cd66e21e94e95aada5f28e1faf5

query I rowsort
SELECT ALL 36 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NOT ( NOT col0 IS NOT NULL ) )
----

query II rowsort
SELECT - 66 * + col1, col0 AS col2 FROM tab1 AS cor0
----
-3102
91
-330
85
-924
51

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 31 IN ( - ( - + col1 ), - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-3157
SELECT col0 DIV + 70 AS col1 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3157
SELECT col0 / + 70 AS col1 FROM tab2 AS cor0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 76 * - - col2 col1 FROM tab0 AS cor0
----
3572
7524
760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 47 col1 FROM tab1 AS cor0
----
-47

query II rowsort
SELECT ALL + 12 + 76 AS col1, col1 FROM tab0 AS cor0
----
88
1
88
21
88
81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3161
SELECT + 40 AS col2, + CAST( + - col0 AS SIGNED ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-3161
SELECT + 40 AS col2, + CAST ( + - col0 AS INTEGER ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT col2 - + 81 AS col2 FROM tab2
----
-23
-41
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3163
SELECT CAST( + col2 AS SIGNED ) + - col1 + - col1 * - ( 13 ) + col1 - ( 21 ) + - CAST( - + 45 AS SIGNED ) AS col1 FROM tab0
----
1124
136
307

skipif mysql # not compatible
query I rowsort label-3163
SELECT CAST ( + col2 AS INTEGER ) + - col1 + - col1 * - ( 13 ) + col1 - ( 21 ) + - CAST ( - + 45 AS INTEGER ) AS col1 FROM tab0
----
1124
136
307

query I rowsort
SELECT col0 + + - 95 AS col0 FROM tab0
----
-8
-80
2

query I rowsort
SELECT DISTINCT - col1 + col1 - + col1 FROM tab1
----
-14
-47
-5

query I rowsort
SELECT + col0 * col1 * col1 AS col0 FROM tab1
----
201019
2125
9996

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3167
SELECT + 82 DIV + COUNT( * ) FROM tab0
----
27

skipif mysql # not compatible
query I rowsort label-3167
SELECT + 82 / + COUNT ( * ) FROM tab0
----
27

query I rowsort
SELECT ALL - col2 + + ( - 11 ) AS col1 FROM tab0 WHERE col2 = + + col1
----

query I rowsort
SELECT 74 AS col1 FROM tab1 cor0
----
74
74
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3170
SELECT COUNT( * ) FROM tab2 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-3170
SELECT COUNT ( * ) FROM tab2 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 84 * col2 * col2 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3172
SELECT ALL COUNT( * ) DIV 33 * - + 57 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-3172
SELECT ALL COUNT ( * ) / 33 * - + 57 FROM tab0 cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3173
SELECT * FROM tab0 AS cor0 WHERE NOT 90 * - CAST( + + col0 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3173
SELECT * FROM tab0 AS cor0 WHERE NOT 90 * - CAST ( + + col0 AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT - - ( + + 51 ) AS col0 FROM tab2 AS cor0
----
51
51
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3175
SELECT + COUNT( col0 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3175
SELECT + COUNT ( col0 ) AS col2 FROM tab0 AS cor0
----
3

query I rowsort
SELECT 77 * + - col1 FROM tab0
----
-1617
-6237
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3177
SELECT - ( CAST( + MAX( ALL - col1 ) AS SIGNED ) ) AS col1 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-3177
SELECT - ( CAST ( + MAX ( ALL - col1 ) AS INTEGER ) ) AS col1 FROM tab2
----
51

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT ( + 62 + col0 IS NOT NULL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-3179
SELECT DISTINCT 2 DIV 80 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3179
SELECT DISTINCT 2 / 80 FROM tab1
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3180
SELECT 26 * - CAST( NULL AS DECIMAL ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3180
SELECT 26 * - CAST ( NULL AS REAL ) AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3181
SELECT - col0 DIV 70 FROM tab0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-3181
SELECT - col0 / 70 FROM tab0
----
-1
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3182
SELECT - MAX( ALL - + col1 ) AS col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3182
SELECT - MAX ( ALL - + col1 ) AS col2 FROM tab0 AS cor0
----
1

query II rowsort
SELECT col2 AS col1, + col1 * - ( - - col2 ) + + col1 AS col0 FROM tab1 AS cor0
----
59
-290
68
-3149
96
-1330

onlyif mysql # aggregate syntax: 
query I rowsort label-3184
SELECT SUM( 21 ) col2 FROM tab2
----
63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3184
SELECT SUM ( 21 ) col2 FROM tab2
----
63

query I rowsort
SELECT + 98 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) >= + + col0
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 + - col0 IS NULL
----

query II rowsort
SELECT DISTINCT col0 AS col0, + col1 + + col0 * - - col2 * col1 AS col2 FROM tab1 AS cor0
----
51
68558
85
25080
91
290883

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + - 57 / 8 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3190
SELECT ALL + 10 + + CAST( NULL AS SIGNED ) * - + 71 + - - col0 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3190
SELECT ALL + 10 + + CAST ( NULL AS INTEGER ) * - + 71 + - - col0 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 * - col2 * + + col0 AS col0 FROM tab0
----
-33135
-8700
-950697

query I rowsort
SELECT ALL - 76 + - 6 FROM tab1 WHERE NULL IS NULL
----
-82
-82
-82

query I rowsort
SELECT DISTINCT + - col1 AS col1 FROM tab1 WHERE NULL < 41 * col0 * + - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 col0 FROM tab0 WHERE 40 + + col2 IS NOT NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3195
SELECT DISTINCT COUNT( * ) + + + ( + + MAX( - col2 ) ) FROM tab0
----
-7

skipif mysql # not compatible
query I rowsort label-3195
SELECT DISTINCT COUNT ( * ) + + + ( + + MAX ( - col2 ) ) FROM tab0
----
-7

query I rowsort
SELECT + + 10 - + col0 FROM tab0 cor0
----
-5
-77
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-3197
SELECT DISTINCT - COUNT( * ) - 65 * 30 FROM tab1 cor0
----
-1953

skipif mysql # not compatible
query I rowsort label-3197
SELECT DISTINCT - COUNT ( * ) - 65 * 30 FROM tab1 cor0
----
-1953

query I rowsort
SELECT - col1 FROM tab1 AS cor0 WHERE NOT col1 + 99 = col0 / - 78
----
-14
-47
-5

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 * col1 * col2 <= - + 25
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3200
SELECT DISTINCT MAX( + col2 ) * - - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3200
SELECT DISTINCT MAX ( + col2 ) * - - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT + ( - 9 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

query I rowsort
SELECT + + col2 FROM tab1 AS cor0 WHERE NOT + 66 + - 91 IS NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3203
SELECT DISTINCT + - MAX( DISTINCT - col2 ) FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-3203
SELECT DISTINCT + - MAX ( DISTINCT - col2 ) FROM tab2 AS cor0
----
23

query I rowsort
SELECT DISTINCT - - 39 AS col2 FROM tab1 cor0
----
39

query II rowsort
SELECT - - 71, + col0 FROM tab1 AS cor0
----
71
51
71
85
71
91

query II rowsort
SELECT - col1, - ( + col1 ) * + + col2 * + 31 AS col2 FROM tab1 cor0
----
-14
-41664
-47
-99076
-5
-9145

query I rowsort
SELECT ALL + col0 * + 22 FROM tab2 AS cor0
----
1012
1408
1650

query I rowsort
SELECT DISTINCT col2 + - + 76 * + ( - col1 ) + - 40 AS col1 FROM tab0
----
135
1566
6163

query I rowsort
SELECT + 51 * + 58 FROM tab2
----
2958
2958
2958

query I rowsort
SELECT col0 FROM tab0 WHERE NOT + 61 IN ( + col1 * col0 - + col1, col0, + col2, col0 )
----
15
87
97

query I rowsort
SELECT 95 * - - 68 AS col2 FROM tab2
----
6460
6460
6460

onlyif mysql # aggregate syntax: 
query I rowsort label-3212
SELECT - MIN( DISTINCT + + 74 ) col2 FROM tab1
----
-74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3212
SELECT - MIN ( DISTINCT + + 74 ) col2 FROM tab1
----
-74

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - - col2 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-3214
SELECT ALL COUNT( * ), - 30 AS col1 FROM tab2 AS cor0 WHERE + col1 + - 66 < NULL
----
0
-30

skipif mysql # not compatible
query II rowsort label-3214
SELECT ALL COUNT ( * ), - 30 AS col1 FROM tab2 AS cor0 WHERE + col1 + - 66 < NULL
----
0
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-3215
SELECT 32 * + + 94 + + - COUNT( * ) FROM tab0 AS cor0
----
3005

skipif mysql # not compatible
query I rowsort label-3215
SELECT 32 * + + 94 + + - COUNT ( * ) FROM tab0 AS cor0
----
3005

query I rowsort
SELECT - - AVG ( col1 ) FROM tab1 AS cor0 WHERE NULL <= col2 * + col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3217
SELECT DISTINCT 71 * - ( + + 75 ) * + COUNT( * ) FROM tab1 AS cor0
----
-15975

skipif mysql # not compatible
query I rowsort label-3217
SELECT DISTINCT 71 * - ( + + 75 ) * + COUNT ( * ) FROM tab1 AS cor0
----
-15975

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT IN ( col0, - 30 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3219
SELECT ALL 98 + + COUNT( * ) DIV - COUNT( * ) col2 FROM tab2
----
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3219
SELECT ALL 98 + + COUNT ( * ) / - COUNT ( * ) col2 FROM tab2
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3220
SELECT DISTINCT + COUNT( - col1 ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-3220
SELECT DISTINCT + COUNT ( - col1 ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
3

query I rowsort
SELECT DISTINCT 5 + + col2 * - 99 + + + col1 * - 20 FROM tab0
----
-1405
-6268
-9816

query I rowsort
SELECT - - 17 AS col1 FROM tab2 cor0
----
17
17
17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + - 0 ) col1 FROM tab0 AS cor0 WHERE + col0 >= - col2 * col0 + - col1
----
0
0
0

query I rowsort
SELECT 32 - 63 FROM tab2 AS cor0
----
-31
-31
-31

query II rowsort
SELECT ALL col2, + 63 FROM tab0 AS cor0
----
10
63
47
63
99
63

query I rowsort
SELECT col0 AS col0 FROM tab1 AS cor0 WHERE + 83 >= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3227
SELECT ALL + 80 * - MIN( + col0 ) + 37 AS col1, MAX( DISTINCT + 16 ) * + 68 AS col0 FROM tab0
----
-1163
1088

skipif mysql # not compatible
query II rowsort label-3227
SELECT ALL + 80 * - MIN ( + col0 ) + 37 AS col1, MAX ( DISTINCT + 16 ) * + 68 AS col0 FROM tab0
----
-1163
1088

onlyif mysql # aggregate syntax: 
query I rowsort label-3228
SELECT ALL - MIN( - 48 ) - - COUNT( * ) FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-3228
SELECT ALL - MIN ( - 48 ) - - COUNT ( * ) FROM tab1
----
51

query I rowsort
SELECT DISTINCT - col1 - - 90 * + - 3 AS col2 FROM tab1
----
-275
-284
-317

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - + ( - - col2 ) + + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3231
SELECT + CAST( + col1 AS SIGNED ) AS col0 FROM tab1 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3231
SELECT + CAST ( + col1 AS INTEGER ) AS col0 FROM tab1 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - col2 - - col0 col1 FROM tab0
----
-690
-783
-9506

onlyif mysql # aggregate syntax: 
query I rowsort label-3233
SELECT ALL - MAX( - 0 ) FROM tab1 AS cor0 WHERE - col2 + - - col2 NOT BETWEEN + + col2 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-3233
SELECT ALL - MAX ( - 0 ) FROM tab1 AS cor0 WHERE - col2 + - - col2 NOT BETWEEN + + col2 AND NULL
----
0

query II rowsort
SELECT DISTINCT + col0, 13 FROM tab0 AS cor0
----
15
13
87
13
97
13

onlyif mysql # aggregate syntax: 
query II rowsort label-3235
SELECT MAX( + + col0 ) AS col2, + COUNT( * ) AS col0 FROM tab1 AS cor0
----
91
3

skipif mysql # not compatible
query II rowsort label-3235
SELECT MAX ( + + col0 ) AS col2, + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
91
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3236
SELECT DISTINCT ( + - COUNT( * ) ) AS col1 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3236
SELECT DISTINCT ( + - COUNT ( * ) ) AS col1 FROM tab0 cor0
----
-3

query I rowsort
SELECT + - 17 AS col1 FROM tab0 AS cor0 WHERE NOT ( NOT ( - col2 IS NOT NULL ) )
----
-17
-17
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-3238
SELECT ALL + MIN( DISTINCT - col1 ) col2 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3238
SELECT ALL + MIN ( DISTINCT - col1 ) col2 FROM tab0 AS cor0
----
-81

query I rowsort
SELECT - col1 * - - col1 * - col0 + col2 AS col0 FROM tab2 AS cor0 WHERE NOT col1 >= NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NOT - + col1 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3241
SELECT + - COUNT( * ) AS col1 FROM tab0 cor0 WHERE NOT col1 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-3241
SELECT + - COUNT ( * ) AS col1 FROM tab0 cor0 WHERE NOT col1 = NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3242
SELECT - + COUNT( - - col0 ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3242
SELECT - + COUNT ( - - col0 ) AS col2 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT DISTINCT + col0 FROM tab0 AS cor0 WHERE col0 IS NULL
----

query I rowsort
SELECT + 61 + 9 FROM tab2
----
70
70
70

query I rowsort
SELECT - 41 + - 41 - ( col1 ) FROM tab2
----
-133
-149
-159

query II rowsort
SELECT ALL col2, ( + + col2 ) * - col1 AS col1 FROM tab1
----
59
-295
68
-3196
96
-1344

query I rowsort
SELECT - col0 * 16 FROM tab2
----
-1024
-1200
-736

query I rowsort
SELECT + 75 * + 14 FROM tab2
----
1050
1050
1050

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 <= + + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL ( - 48 ) AS col2 FROM tab0 WHERE + + col0 IS NOT NULL
----
-48
-48
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-3251
SELECT DISTINCT + COUNT( * ) + + + 14 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
23

skipif mysql # not compatible
query I rowsort label-3251
SELECT DISTINCT + COUNT ( * ) + + + 14 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3252
SELECT DISTINCT + MAX( + - col2 ) + - COUNT( * ) AS col2 FROM tab1
----
-62

skipif mysql # not compatible
query I rowsort label-3252
SELECT DISTINCT + MAX ( + - col2 ) + - COUNT ( * ) AS col2 FROM tab1
----
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3253
SELECT ALL + + SUM( DISTINCT - CAST( NULL AS SIGNED ) ) col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3253
SELECT ALL + + SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + col0 - 88 - + + col0 AS col2 FROM tab2 AS cor0
----
-88
-88
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-3255
SELECT + 85 * - + COUNT( * ) FROM tab1 AS cor0
----
-255

skipif mysql # not compatible
query I rowsort label-3255
SELECT + 85 * - + COUNT ( * ) FROM tab1 AS cor0
----
-255

query I rowsort
SELECT - col2 FROM tab2 AS cor0 WHERE ( + col1 ) NOT BETWEEN + col0 AND NULL
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-3257
SELECT ALL 65 DIV - + col1 AS col0 FROM tab0 AS cor0
----
-3
-65
0

skipif mysql # not compatible
query I rowsort label-3257
SELECT ALL 65 / - + col1 AS col0 FROM tab0 AS cor0
----
-3
-65
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3258
SELECT ALL COUNT( * ) + + MAX( ALL - col0 ) AS col0 FROM tab2 AS cor0
----
-43

skipif mysql # not compatible
query I rowsort label-3258
SELECT ALL COUNT ( * ) + + MAX ( ALL - col0 ) AS col0 FROM tab2 AS cor0
----
-43

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 * 24 IS NULL
----

query I rowsort
SELECT - ( - + 95 ) FROM tab2
----
95
95
95

onlyif mysql # DIV for integer division: 
query I rowsort label-3261
SELECT - col1 DIV - - 39 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3261
SELECT - col1 / - - 39 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT - ( ( + col2 ) ) AS col1 FROM tab2
----
-23
-40
-58

query II rowsort
SELECT DISTINCT + col1, + 27 FROM tab0
----
1
27
21
27
81
27

onlyif mysql # aggregate syntax: 
query I rowsort label-3264
SELECT ALL + - MAX( 74 ) FROM tab0 WHERE NULL = - - 22
----
NULL

skipif mysql # not compatible
query I rowsort label-3264
SELECT ALL + - MAX ( 74 ) FROM tab0 WHERE NULL = - - 22
----
NULL

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL NOT BETWEEN NULL AND + 73
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3266
SELECT - 85 AS col0, + 97 + - CAST( NULL AS SIGNED ) + - col2 FROM tab1 cor0
----
-85
NULL
-85
NULL
-85
NULL

skipif mysql # not compatible
query II rowsort label-3266
SELECT - 85 AS col0, + 97 + - CAST ( NULL AS INTEGER ) + - col2 FROM tab1 cor0
----
-85
NULL
-85
NULL
-85
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3267
SELECT DISTINCT + + ( - + COUNT( * ) ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3267
SELECT DISTINCT + + ( - + COUNT ( * ) ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT ALL + + col2 + + + 81 FROM tab2 AS cor0
----
104
121
139

onlyif mysql # DIV for integer division: 
query II rowsort label-3269
SELECT col2, 99 * - - ( + ( + col0 ) ) * - - col2 DIV col2 AS col1 FROM tab0 AS cor0
----
10
8613
47
1485
99
9603

skipif mysql # not compatible
query II rowsort label-3269
SELECT col2, 99 * - - ( + ( + col0 ) ) * - - col2 / col2 AS col1 FROM tab0 AS cor0
----
10
8613
47
1485
99
9603

query II rowsort
SELECT DISTINCT + ( 83 ), + col1 FROM tab0 AS cor0
----
83
1
83
21
83
81

query I rowsort
SELECT - col2 * + + 85 FROM tab1 AS cor0
----
-5015
-5780
-8160

onlyif mysql # DIV for integer division: 
query I rowsort label-3272
SELECT 35 DIV + col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3272
SELECT 35 / + col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3273
SELECT ALL - COUNT( ALL - col0 ) * + - ( COUNT( * ) ) FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3273
SELECT ALL - COUNT ( ALL - col0 ) * + - ( COUNT ( * ) ) FROM tab2 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3274
SELECT + - SUM( ALL 20 ) AS col1 FROM tab0 WHERE + col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3274
SELECT + - SUM ( ALL 20 ) AS col1 FROM tab0 WHERE + col0 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3275
SELECT ALL COUNT( * ) + + 60 FROM tab1
----
63

skipif mysql # not compatible
query I rowsort label-3275
SELECT ALL COUNT ( * ) + + 60 FROM tab1
----
63

query I rowsort
SELECT DISTINCT - col2 + + col1 + - col1 AS col2 FROM tab1
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3277
SELECT COUNT( * ) + 93 AS col2 FROM tab2 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-3277
SELECT COUNT ( * ) + 93 AS col2 FROM tab2 AS cor0
----
96

query I rowsort
SELECT - col1 * - 16 + + - col1 FROM tab0 cor0
----
1215
15
315

query I rowsort
SELECT - col0 - col1 AS col0 FROM tab1 AS cor0 WHERE col2 IS NULL
----

query II rowsort
SELECT DISTINCT - - col0 * + + col1 AS col2, + col0 FROM tab0 cor0 WHERE NOT 64 - col0 IS NOT NULL
----

query I rowsort
SELECT ALL + col2 - + - ( col1 ) FROM tab2
----
117
125
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3282
SELECT - ( - 30 ) - + MIN( DISTINCT col1 ) * - + 46 AS col1 FROM tab2 AS cor0
----
2376

skipif mysql # not compatible
query I rowsort label-3282
SELECT - ( - 30 ) - + MIN ( DISTINCT col1 ) * - + 46 AS col1 FROM tab2 AS cor0
----
2376

query I rowsort
SELECT ALL 71 - + 88 FROM tab1 AS cor0
----
-17
-17
-17

query I rowsort
SELECT + - col0 - - col0 + + + 67 - + col2 * + col0 FROM tab0 cor0
----
-638
-803
-9536

onlyif mysql # aggregate syntax: 
query I rowsort label-3285
SELECT DISTINCT + 29 - COUNT( ALL + 84 ) + + 88 AS col0 FROM tab2 AS cor0
----
114

skipif mysql # not compatible
query I rowsort label-3285
SELECT DISTINCT + 29 - COUNT ( ALL + 84 ) + + 88 AS col0 FROM tab2 AS cor0
----
114

query II rowsort
SELECT DISTINCT + col1 AS col2, 16 FROM tab1 AS cor0
----
14
16
47
16
5
16

onlyif mysql # aggregate syntax: 
query I rowsort label-3287
SELECT + SUM( ALL - 90 ) FROM tab1
----
-270

skipif mysql # not compatible
query I rowsort label-3287
SELECT + SUM ( ALL - 90 ) FROM tab1
----
-270

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3288
SELECT col0 * + - CAST( + 4 AS SIGNED ) col2 FROM tab0
----
-348
-388
-60

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3288
SELECT col0 * + - CAST ( + 4 AS INTEGER ) col2 FROM tab0
----
-348
-388
-60

query I rowsort
SELECT DISTINCT 43 * - col2 * + col1 FROM tab0
----
-163701
-4257
-9030

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3290
SELECT CAST( - - col0 AS SIGNED ) AS col2 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-3290
SELECT CAST ( - - col0 AS INTEGER ) AS col2 FROM tab2
----
46
64
75

query I rowsort
SELECT ALL - - 18 + + col2 - + col1 AS col1 FROM tab0 WHERE NOT col1 > - - col0 / + 16 + - - col1
----
-16
116
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3292
SELECT ALL + SUM( - col1 ) FROM tab1 cor0
----
-66

skipif mysql # not compatible
query I rowsort label-3292
SELECT ALL + SUM ( - col1 ) FROM tab1 cor0
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3293
SELECT col1 * CAST( + col0 AS SIGNED ) FROM tab2 AS cor0
----
2346
4928
5025

skipif mysql # not compatible
query I rowsort label-3293
SELECT col1 * CAST ( + col0 AS INTEGER ) FROM tab2 AS cor0
----
2346
4928
5025

query IIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT 72 * + + col1 AS col2 FROM tab1
----
1008
3384
360

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab2 AS cor0 WHERE NOT col0 * + col2 + 92 IS NULL
----
-51
-67
-77

query I rowsort
SELECT + col1 + col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
117
125
74

query I rowsort
SELECT DISTINCT + - 45 AS col2 FROM tab1 cor0
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-3299
SELECT DISTINCT SUM( + col2 ) col0 FROM tab0 AS cor0 WHERE ( ( - col1 ) ) + + + ( col0 ) IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3299
SELECT DISTINCT SUM ( + col2 ) col0 FROM tab0 AS cor0 WHERE ( ( - col1 ) ) + + + ( col0 ) IS NULL
----
NULL

query I rowsort
SELECT 28 FROM tab1 AS cor0 WHERE + 40 * + col0 IS NOT NULL
----
28
28
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3301
SELECT - SUM( DISTINCT + CAST( NULL AS SIGNED ) ) * + - COUNT( * ) + - 7 + ( + MIN( + 97 ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3301
SELECT - SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) * + - COUNT ( * ) + - 7 + ( + MIN ( + 97 ) ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3302
SELECT + COUNT( * ) DIV + 61 + - + 94 AS col0 FROM tab0
----
-94

skipif mysql # not compatible
query I rowsort label-3302
SELECT + COUNT ( * ) / + 61 + - + 94 AS col0 FROM tab0
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-3303
SELECT DISTINCT - COUNT( * ) + + 43 AS col0 FROM tab1
----
40

skipif mysql # not compatible
query I rowsort label-3303
SELECT DISTINCT - COUNT ( * ) + + 43 AS col0 FROM tab1
----
40

query I rowsort
SELECT ALL + ( col0 ) + - - 72 AS col0 FROM tab1
----
123
157
163

query II rowsort
SELECT - col0 AS col1, ( + + ( - - col1 ) ) FROM tab2
----
-46
51
-64
77
-75
67

query II rowsort
SELECT col2 AS col2, - 53 FROM tab1
----
59
-53
68
-53
96
-53

query I rowsort
SELECT + col1 * + ( + 47 ) FROM tab0
----
3807
47
987

onlyif mysql # aggregate syntax: 
query I rowsort label-3308
SELECT DISTINCT ( + 56 ) * + SUM( ALL + col2 ) AS col1 FROM tab2
----
6776

skipif mysql # not compatible
query I rowsort label-3308
SELECT DISTINCT ( + 56 ) * + SUM ( ALL + col2 ) AS col1 FROM tab2
----
6776

query I rowsort
SELECT ALL - col2 + - + 97 FROM tab2
----
-120
-137
-155

query I rowsort
SELECT ALL - 78 * 52 * - - ( - 75 ) FROM tab1
----
304200
304200
304200

query III rowsort
SELECT * FROM tab1 WHERE col1 BETWEEN NULL AND + - ( - + 94 ) - 17
----

query II rowsort
SELECT + col2, col2 AS col2 FROM tab1 AS cor0 WHERE col0 * col1 NOT BETWEEN + ( + + col0 ) AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3313
SELECT 94 DIV + + col2 + col0 * - col2 FROM tab2
----
-1054
-2558
-4349

skipif mysql # not compatible
query I rowsort label-3313
SELECT 94 / + + col2 + col0 * - col2 FROM tab2
----
-1054
-2558
-4349

query I rowsort
SELECT col1 * - 5 * 50 + col2 * + 57 FROM tab0
----
-17571
-4680
5393

onlyif mysql # aggregate syntax: 
query I rowsort label-3315
SELECT COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9

skipif mysql # not compatible
query I rowsort label-3315
SELECT COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9

query I rowsort
SELECT DISTINCT + col1 - + col1 * col2 FROM tab1 AS cor0
----
-1330
-290
-3149

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3317
SELECT + 74 + + col0 AS col0, col1 * - + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NOT + col1 * - col0 * - col1 NOT IN ( + CAST( NULL AS SIGNED ), - 73, col1, + col2 * col1, - col2 )
----

skipif mysql # not compatible
query II rowsort label-3317
SELECT + 74 + + col0 AS col0, col1 * - + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT + col1 * - col0 * - col1 NOT IN ( + CAST ( NULL AS INTEGER ), - 73, col1, + col2 * col1, - col2 )
----

query I rowsort
SELECT DISTINCT + 11 * + - col2 * col2 AS col2 FROM tab2 AS cor0
----
-17600
-37004
-5819

onlyif mysql # aggregate syntax: 
query I rowsort label-3319
SELECT ALL + + 75 * SUM( DISTINCT col2 ) AS col1 FROM tab2 AS cor0
----
9075

skipif mysql # not compatible
query I rowsort label-3319
SELECT ALL + + 75 * SUM ( DISTINCT col2 ) AS col1 FROM tab2 AS cor0
----
9075

query I rowsort
SELECT - 30 * + 62 - + col2 + col2 AS col1 FROM tab1 AS cor0
----
-1860
-1860
-1860

onlyif mysql # aggregate syntax: 
query I rowsort label-3321
SELECT + + COUNT( * ) * - 27 FROM tab2 cor0
----
-81

skipif mysql # not compatible
query I rowsort label-3321
SELECT + + COUNT ( * ) * - 27 FROM tab2 cor0
----
-81

query I rowsort
SELECT ALL + col2 * + + col2 * ( + col2 ) FROM tab0
----
1000
103823
970299

onlyif mysql # aggregate syntax: 
query I rowsort label-3323
SELECT DISTINCT - COUNT( * ) * 63 FROM tab2
----
-189

skipif mysql # not compatible
query I rowsort label-3323
SELECT DISTINCT - COUNT ( * ) * 63 FROM tab2
----
-189

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3324
SELECT ALL CAST( NULL AS SIGNED ) * + COUNT( ALL - ( - 95 ) ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3324
SELECT ALL CAST ( NULL AS INTEGER ) * + COUNT ( ALL - ( - 95 ) ) AS col1 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT 40 * - - col2 AS col2 FROM tab2
----
1600
2320
920

query I rowsort
SELECT DISTINCT 9 AS col0 FROM tab1 WHERE NOT ( NOT NULL NOT IN ( - 54 ) )
----

query I rowsort
SELECT + ( - 51 ) AS col2 FROM tab1 AS cor0
----
-51
-51
-51

query I rowsort
SELECT - 64 * + 96 AS col1 FROM tab2
----
-6144
-6144
-6144

query I rowsort
SELECT col1 * - 44 FROM tab0
----
-3564
-44
-924

query I rowsort
SELECT DISTINCT + 2 AS col2 FROM tab1 WHERE ( + ( ( col2 ) ) * col2 ) IS NOT NULL
----
2

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - col1 * - 32 + - col0 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 65 * + 78 AS col0 FROM tab0
----
5070
5070
5070

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL ) NOT BETWEEN NULL AND ( col2 * col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3334
SELECT + COUNT( * ) + - 96 * + 7 AS col2 FROM tab0 WHERE + col1 * + 99 IS NULL
----
-672

skipif mysql # not compatible
query I rowsort label-3334
SELECT + COUNT ( * ) + - 96 * + 7 AS col2 FROM tab0 WHERE + col1 * + 99 IS NULL
----
-672

query I rowsort
SELECT col2 + + col2 * + 37 FROM tab0
----
1786
3762
380

query I rowsort
SELECT ALL - ( + ( - col0 ) ) FROM tab1
----
51
85
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + + ( col0 ) col1 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3338
SELECT DISTINCT COUNT( * ) * - 99 FROM tab0
----
-297

skipif mysql # not compatible
query I rowsort label-3338
SELECT DISTINCT COUNT ( * ) * - 99 FROM tab0
----
-297

query III rowsort
SELECT * FROM tab0 WHERE col0 NOT BETWEEN ( 88 ) AND NULL
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3340
SELECT COUNT( 43 ) + 42 AS col1 FROM tab2
----
45

skipif mysql # not compatible
query I rowsort label-3340
SELECT COUNT ( 43 ) + 42 AS col1 FROM tab2
----
45

query I rowsort
SELECT - 98 FROM tab2 WHERE NULL >= ( - 29 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3342
SELECT COUNT( * ) + - 12 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-3342
SELECT COUNT ( * ) + - 12 FROM tab0
----
-9

query I rowsort
SELECT DISTINCT - col2 FROM tab2 WHERE NULL > - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3344
SELECT ALL - COUNT( * ) * + COUNT( DISTINCT col0 ) FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-3344
SELECT ALL - COUNT ( * ) * + COUNT ( DISTINCT col0 ) FROM tab2
----
-9

query III rowsort
SELECT * FROM tab0 WHERE NOT + 41 NOT IN ( + col1 * 79 )
----

query III rowsort
SELECT * FROM tab0 WHERE ( col0 ) NOT IN ( - ( - 60 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 AS col2 FROM tab1 WHERE NOT + col1 IN ( 40 + col0 )
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3348
SELECT DISTINCT 50 + + col0 * CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3348
SELECT DISTINCT 50 + + col0 * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT - 61 * + 18 FROM tab2
----
-1098
-1098
-1098

onlyif mysql # aggregate syntax: 
query I rowsort label-3350
SELECT + MIN( 37 ) + COUNT( * ) FROM tab2 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-3350
SELECT + MIN ( 37 ) + COUNT ( * ) FROM tab2 AS cor0
----
40

query I rowsort
SELECT col1 + 53 AS col2 FROM tab2 AS cor0
----
104
120
130

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col1 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3353
SELECT DISTINCT 31 - COUNT( * ) * + COUNT( - col1 ) AS col0 FROM tab1 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-3353
SELECT DISTINCT 31 - COUNT ( * ) * + COUNT ( - col1 ) AS col0 FROM tab1 AS cor0
----
22

query I rowsort
SELECT DISTINCT + 25 * - col0 - + col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-1196
-1664
-1950

onlyif mysql # aggregate syntax: 
query I rowsort label-3355
SELECT - COUNT( * ) / AVG ( ALL col1 ) AS col0 FROM tab0 WHERE ( 53 ) = col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3355
SELECT - COUNT ( * ) / AVG ( ALL col1 ) AS col0 FROM tab0 WHERE ( 53 ) = col0
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE ( - col2 ) * 20 + + col2 / + col1 IN ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3357
SELECT + MIN( col0 ) + COUNT( * ) AS col2 FROM tab2 WHERE - col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3357
SELECT + MIN ( col0 ) + COUNT ( * ) AS col2 FROM tab2 WHERE - col2 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3358
SELECT - SUM( DISTINCT + col1 ) AS col2 FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-3358
SELECT - SUM ( DISTINCT + col1 ) AS col2 FROM tab0
----
-103

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col1 > + 40 + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 43 FROM tab2 AS cor0 CROSS JOIN tab2
----
9 values hashing to 199105619049271147956de52e7f5ed4

onlyif mysql # aggregate syntax: 
query I rowsort label-3361
SELECT DISTINCT - SUM( + 12 ) AS col0 FROM tab0 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-3361
SELECT DISTINCT - SUM ( + 12 ) AS col0 FROM tab0 AS cor0
----
-36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + 19 col1 FROM tab2 AS cor0 WHERE ( col1 / - col2 + col0 * + 51 ) IS NOT NULL
----
42
59
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3363
SELECT ALL - SUM( DISTINCT col2 ) AS col2 FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-3363
SELECT ALL - SUM ( DISTINCT col2 ) AS col2 FROM tab2 AS cor0
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-3364
SELECT DISTINCT MAX( + 66 ) AS col0 FROM tab2 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-3364
SELECT DISTINCT MAX ( + 66 ) AS col0 FROM tab2 AS cor0
----
66

query I rowsort
SELECT ALL - col2 * col0 + + ( + col2 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-4800
-4956
-6120

query I rowsort
SELECT 19 * + ( ( col0 ) ) AS col1 FROM tab0 cor0
----
1653
1843
285

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) > - 63
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 22 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3369
SELECT + COUNT( - 72 ) + - 51 AS col2 FROM tab0 AS cor0 WHERE NOT col0 = NULL
----
-51

skipif mysql # not compatible
query I rowsort label-3369
SELECT + COUNT ( - 72 ) + - 51 AS col2 FROM tab0 AS cor0 WHERE NOT col0 = NULL
----
-51

query I rowsort
SELECT col2 + 23 / col1 AS col2 FROM tab1 AS cor0 WHERE NOT col0 NOT IN ( col0 + + col0 )
----

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab2 WHERE + col2 <= ( + col1 )
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3372
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab1 WHERE NOT + col2 <= 62
----
-2

skipif mysql # not compatible
query I rowsort label-3372
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab1 WHERE NOT + col2 <= 62
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3373
SELECT - MIN( ALL + col1 ) * COUNT( * ) col0 FROM tab0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3373
SELECT - MIN ( ALL + col1 ) * COUNT ( * ) col0 FROM tab0
----
-3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3374
SELECT ALL - 17 DIV - ( - CAST( col1 AS SIGNED ) ) AS col1 FROM tab0
----
-17
0
0

skipif mysql # not compatible
query I rowsort label-3374
SELECT ALL - 17 / - ( - CAST ( col1 AS INTEGER ) ) AS col1 FROM tab0
----
-17
0
0

query I rowsort
SELECT DISTINCT - ( + col1 ) * col1 FROM tab0
----
-1
-441
-6561

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 * col1 < - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3377
SELECT 78 DIV - ( + COUNT( * ) ) AS col0 FROM tab0
----
-26

skipif mysql # not compatible
query I rowsort label-3377
SELECT 78 / - ( + COUNT ( * ) ) AS col0 FROM tab0
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-3378
SELECT COUNT( + col1 ) * + 39 FROM tab1
----
117

skipif mysql # not compatible
query I rowsort label-3378
SELECT COUNT ( + col1 ) * + 39 FROM tab1
----
117

query I rowsort
SELECT ALL - col1 FROM tab1 WHERE NOT col2 BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - 55 + - 77 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-132

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) >= + col1 * - col1 AND ( col1 * col0 ) IS NOT NULL
----

query I rowsort
SELECT ALL + col2 AS col1 FROM tab0 WHERE + col1 NOT IN ( 96 * col1 )
----
10
47
99

query I rowsort
SELECT ALL + 40 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <> ( col1 * + col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3386
SELECT DISTINCT MIN( ALL - - 48 ) FROM tab2 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-3386
SELECT DISTINCT MIN ( ALL - - 48 ) FROM tab2 AS cor0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3387
SELECT ALL - SUM( DISTINCT + 74 ) * COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
-222

skipif mysql # not compatible
query I rowsort label-3387
SELECT ALL - SUM ( DISTINCT + 74 ) * COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
-222

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL <= ( col1 )
----

query I rowsort
SELECT col2 + - 73 AS col2 FROM tab0 AS cor0
----
-26
-63
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3390
SELECT DISTINCT - - MAX( + 51 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3390
SELECT DISTINCT - - MAX ( + 51 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

query I rowsort
SELECT ALL col2 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + col0 * + + 55 AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( 45 ) AND ( + col2 ) + col1 / 56
----

query II rowsort
SELECT ALL 89 AS col0, - 44 AS col0 FROM tab0 AS cor0
----
89
-44
89
-44
89
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-3394
SELECT - - COUNT( * ) + - ( - + SUM( ALL + ( - col1 ) ) ) col1 FROM tab2 AS cor0
----
-192

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3394
SELECT - - COUNT ( * ) + - ( - + SUM ( ALL + ( - col1 ) ) ) col1 FROM tab2 AS cor0
----
-192

query I rowsort
SELECT DISTINCT + 57 * col0 FROM tab2 AS cor0
----
2622
3648
4275

onlyif mysql # aggregate syntax: 
query I rowsort label-3396
SELECT + - COUNT( * ) FROM tab1 WHERE NULL <= 25
----
0

skipif mysql # not compatible
query I rowsort label-3396
SELECT + - COUNT ( * ) FROM tab1 WHERE NULL <= 25
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3397
SELECT ALL 82 DIV - 78 + + - 79 FROM tab0
----
-80
-80
-80

skipif mysql # not compatible
query I rowsort label-3397
SELECT ALL 82 / - 78 + + - 79 FROM tab0
----
-80
-80
-80

query I rowsort
SELECT DISTINCT - col2 + + - ( + 9 ) FROM tab2
----
-32
-49
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3399
SELECT col1 FROM tab1 WHERE 14 + + CAST( NULL AS SIGNED ) NOT IN ( + col2 )
----

skipif mysql # not compatible
query I rowsort label-3399
SELECT col1 FROM tab1 WHERE 14 + + CAST ( NULL AS INTEGER ) NOT IN ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3400
SELECT DISTINCT - COUNT( * ) FROM tab0 WHERE NULL NOT BETWEEN + + col1 AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-3400
SELECT DISTINCT - COUNT ( * ) FROM tab0 WHERE NULL NOT BETWEEN + + col1 AND ( NULL )
----
0

query I rowsort
SELECT + col2 FROM tab1 WHERE 84 IS NOT NULL
----
59
68
96

query I rowsort
SELECT DISTINCT + col0 * + - 96 + col0 FROM tab2
----
-4370
-6080
-7125

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 - + 83 col0 FROM tab0
----
-130
-182
-93

query I rowsort
SELECT ALL - 66 - + col1 + - col1 * + 42 AS col0 FROM tab2 AS cor0
----
-2259
-2947
-3377

onlyif mysql # DIV for integer division: 
query I rowsort label-3405
SELECT - 10 DIV col0 - col0 AS col0 FROM tab0 AS cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-3405
SELECT - 10 / col0 - col0 AS col0 FROM tab0 AS cor0
----
-15
-87
-97

query I rowsort
SELECT - col0 - + 69 + - col2 FROM tab1 AS cor0
----
-213
-216
-228

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col2 >= - col0
----
51
14
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3408
SELECT - ( - CAST( NULL AS SIGNED ) ) - - 59 FROM tab1 AS cor0 WHERE NULL > col2
----

skipif mysql # not compatible
query I rowsort label-3408
SELECT - ( - CAST ( NULL AS INTEGER ) ) - - 59 FROM tab1 AS cor0 WHERE NULL > col2
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( ( ( 17 ) BETWEEN + col0 AND ( col0 ) ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( 55 + + 85 / + col2 < ( NULL ) )
----

query I rowsort
SELECT DISTINCT + 79 * + col1 FROM tab2
----
4029
5293
6083

query I rowsort
SELECT - col1 * 71 AS col1 FROM tab2
----
-3621
-4757
-5467

query I rowsort
SELECT DISTINCT - ( - 4 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
4

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 70 + - + col1 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 <> + col1 - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3416
SELECT ALL - ( CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3416
SELECT ALL - ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 <= - 90
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE NOT - col0 = 19
----
15
87
97

query I rowsort
SELECT ALL - col1 * - - 6 AS col2 FROM tab0 AS cor0
----
-126
-486
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-3420
SELECT + MAX( - ( - col2 ) ) AS col2 FROM tab1 AS cor0 WHERE NOT + col1 * - + col2 IN ( col0 )
----
96

skipif mysql # not compatible
query I rowsort label-3420
SELECT + MAX ( - ( - col2 ) ) AS col2 FROM tab1 AS cor0 WHERE NOT + col1 * - + col2 IN ( col0 )
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3421
SELECT DISTINCT - ( - - 87 ) - COUNT( - 58 + + 14 ) FROM tab1 cor0 WHERE - 86 / - col2 IS NULL
----
-87

skipif mysql # not compatible
query I rowsort label-3421
SELECT DISTINCT - ( - - 87 ) - COUNT ( - 58 + + 14 ) FROM tab1 cor0 WHERE - 86 / - col2 IS NULL
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-3422
SELECT - + MAX( DISTINCT ( - col0 ) ) FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-3422
SELECT - + MAX ( DISTINCT ( - col0 ) ) FROM tab2 AS cor0
----
46

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN + col1 - + col1 * - 12 AND NULL
----

query I rowsort
SELECT + 13 * col1 AS col0 FROM tab0 WHERE NOT NULL NOT IN ( - ( col2 ) )
----

query I rowsort
SELECT ALL col2 AS col1 FROM tab2 WHERE - + col0 * 31 - + ( + col1 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 31 * + col2 col2 FROM tab0 AS cor0
----
1457
3069
310

onlyif mysql # aggregate syntax: 
query I rowsort label-3427
SELECT + 12 + + MIN( ALL col0 ) AS col1 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-3427
SELECT + 12 + + MIN ( ALL col0 ) AS col1 FROM tab2 AS cor0
----
58

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) > ( col1 * - col0 )
----

query I rowsort
SELECT DISTINCT col2 * - 5 * + + 20 AS col0 FROM tab0
----
-1000
-4700
-9900

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3430
SELECT + col2 * - + col1 * + + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3430
SELECT + col2 * - + col1 * + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + col0 * - + col2 AS col2 FROM tab2 AS cor0
----
-1058
-2560
-4350

query I rowsort
SELECT ALL - 55 * + col0 + + col1 FROM tab1 AS cor0
----
-2791
-4670
-4958

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + ( - col1 ) BETWEEN NULL AND col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT + 68 + - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3435
SELECT - MAX( ALL + + col2 ) * SUM( ALL - 8 ) col0 FROM tab0 AS cor0 WHERE col2 = ( NULL )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3435
SELECT - MAX ( ALL + + col2 ) * SUM ( ALL - 8 ) col0 FROM tab0 AS cor0 WHERE col2 = ( NULL )
----
NULL

query I rowsort
SELECT ALL + 89 * - ( - col1 ) AS col2 FROM tab1 cor0
----
1246
4183
445

onlyif mysql # aggregate syntax: 
query I rowsort label-3437
SELECT + COUNT( * ) - - 32 + + ( + ( - COUNT( * ) ) ) AS col2 FROM tab0 cor0
----
32

skipif mysql # not compatible
query I rowsort label-3437
SELECT + COUNT ( * ) - - 32 + + ( + ( - COUNT ( * ) ) ) AS col2 FROM tab0 cor0
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3438
SELECT - CAST( AVG ( - col0 ) AS SIGNED ) + + - MAX( - col0 ) FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-3438
SELECT - CAST ( AVG ( - col0 ) AS INTEGER ) + + - MAX ( - col0 ) FROM tab0
----
81

query I rowsort
SELECT ALL col2 * + 38 + + 37 AS col0 FROM tab1
----
2279
2621
3685

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 72 + col0 col0 FROM tab2
----
118
136
147

onlyif mysql # DIV for integer division: 
query I rowsort label-3441
SELECT ALL - col0 + col0 DIV 57 FROM tab2
----
-46
-63
-74

skipif mysql # not compatible
query I rowsort label-3441
SELECT ALL - col0 + col0 / 57 FROM tab2
----
-46
-63
-74

onlyif mysql # aggregate syntax: 
query II rowsort label-3442
SELECT ALL - 60 AS col1, COUNT( * ) AS col2 FROM tab0 AS cor0
----
-60
3

skipif mysql # not compatible
query II rowsort label-3442
SELECT ALL - 60 AS col1, COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-60
3

query I rowsort
SELECT ALL - 97 FROM tab2, tab0 AS cor0
----
9 values hashing to e4a6bd848a69226cbb7ad3d154be321b

onlyif mysql # DIV for integer division: 
query I rowsort label-3444
SELECT 7 DIV - col0 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3444
SELECT 7 / - col0 AS col2 FROM tab2
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col2 + + col2 / + col2 <= + - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 64 col0 FROM tab0 AS cor0
----
-64

query I rowsort
SELECT - - col1 * col0 * - 59 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-107793
-5723
-71685

onlyif mysql # aggregate syntax: 
query I rowsort label-3448
SELECT - SUM( - 95 ) + - COUNT( * ) FROM tab0
----
282

skipif mysql # not compatible
query I rowsort label-3448
SELECT - SUM ( - 95 ) + - COUNT ( * ) FROM tab0
----
282

onlyif mysql # aggregate syntax: 
query I rowsort label-3449
SELECT DISTINCT COUNT( * ) AS col2 FROM tab0 WHERE NOT - col2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3449
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab0 WHERE NOT - col2 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3450
SELECT MIN( + + col2 ) col1 FROM tab1
----
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3450
SELECT MIN ( + + col2 ) col1 FROM tab1
----
59

onlyif mysql # DIV for integer division: 
query II rowsort label-3451
SELECT col1, + col1 DIV + - col0 + - col0 FROM tab1
----
14
-51
47
-91
5
-85

skipif mysql # not compatible
query II rowsort label-3451
SELECT col1, + col1 / + - col0 + - col0 FROM tab1
----
14
-51
47
-91
5
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3452
SELECT + 43 DIV - COUNT( * ) AS col1 FROM tab0
----
-14

skipif mysql # not compatible
query I rowsort label-3452
SELECT + 43 / - COUNT ( * ) AS col1 FROM tab0
----
-14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 col2, 53 FROM tab0 AS cor0
----
1
53
21
53
81
53

query II rowsort
SELECT 74 * col0 * + + 74 + + 13 - + col2, + col0 FROM tab2 AS cor0
----
251886
46
350437
64
410655
75

query I rowsort
SELECT DISTINCT - col0 + - 25 AS col0 FROM tab2 AS cor0
----
-100
-71
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 + + col0 col2, - ( - col0 ) col0 FROM tab1
----
138
91
65
51
90
85

onlyif mysql # aggregate syntax: 
query I rowsort label-3457
SELECT ALL COUNT( + + col0 ) + + 32 AS col2 FROM tab1
----
35

skipif mysql # not compatible
query I rowsort label-3457
SELECT ALL COUNT ( + + col0 ) + + 32 AS col2 FROM tab1
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3458
SELECT DISTINCT + + COUNT( * ) * - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3458
SELECT DISTINCT + + COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 9 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 * - - 86 + + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-3461
SELECT - col1 DIV 49 * + + 83 AS col1 FROM tab0 AS cor0
----
-83
0
0

skipif mysql # not compatible
query I rowsort label-3461
SELECT - col1 / 49 * + + 83 AS col1 FROM tab0 AS cor0
----
-83
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3462
SELECT + COUNT( * ) DIV COUNT( * ) AS col1, - ( - 86 ) FROM tab0 cor0
----
1
86

skipif mysql # not compatible
query II rowsort label-3462
SELECT + COUNT ( * ) / COUNT ( * ) AS col1, - ( - 86 ) FROM tab0 cor0
----
1
86

query I rowsort
SELECT col0 FROM tab1 WHERE ( NOT ( col1 ) IS NOT NULL )
----

query II rowsort
SELECT + 82 * - col2, + col1 AS col2 FROM tab2
----
-1886
51
-3280
77
-4756
67

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + + col2 * - 56 NOT BETWEEN - col1 AND - - 82 * 84
----

query I rowsort
SELECT + col0 AS col1 FROM tab1 WHERE col2 <= NULL
----

query I rowsort
SELECT DISTINCT + col0 * + + col1 + 20 AS col0 FROM tab2
----
2366
4948
5045

onlyif mysql # aggregate syntax: 
query I rowsort label-3468
SELECT + MAX( DISTINCT + ( + col2 ) ) - - + COUNT( * ) FROM tab0
----
102

skipif mysql # not compatible
query I rowsort label-3468
SELECT + MAX ( DISTINCT + ( + col2 ) ) - - + COUNT ( * ) FROM tab0
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-3469
SELECT ALL - COUNT( * ) FROM tab0 WHERE - col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3469
SELECT ALL - COUNT ( * ) FROM tab0 WHERE - col2 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3470
SELECT ALL - SUM( DISTINCT - + 0 ) AS col0, 60 AS col1 FROM tab0 AS cor0
----
0
60

skipif mysql # not compatible
query II rowsort label-3470
SELECT ALL - SUM ( DISTINCT - + 0 ) AS col0, 60 AS col1 FROM tab0 AS cor0
----
0
60

query I rowsort
SELECT + col1 * - ( + 10 ) AS col0 FROM tab1 AS cor0
----
-140
-470
-50

query I rowsort
SELECT ( - - 7 ) * - - col0 FROM tab1 AS cor0
----
357
595
637

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + - 53 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL IN ( col0, ( - - col0 ), + 37 * 74 )
----

query I rowsort
SELECT DISTINCT 88 * + + 29 FROM tab1
----
2552

query II rowsort
SELECT + col1 + + + 32 - + 30 AS col1, 31 FROM tab2 AS cor0 WHERE NOT ( col1 * - 15 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3477
SELECT - SUM( ALL + 12 ) FROM tab2 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-3477
SELECT - SUM ( ALL + 12 ) FROM tab2 AS cor0
----
-36

query II rowsort
SELECT + col1, - 32 * + col1 + col0 * col1 * - + ( col1 ) FROM tab2 cor0
----
51
-121278
67
-338819
77
-381920

query I rowsort
SELECT + - ( + + 44 ) AS col0 FROM tab0 AS cor0
----
-44
-44
-44

query I rowsort
SELECT ALL - ( col0 ) FROM tab2 WHERE - 49 * + ( col0 ) + - col2 * - col2 * col0 / - col2 <> NULL
----

query I rowsort
SELECT DISTINCT - + col0 FROM tab2 WHERE + col2 + - + 48 IS NOT NULL
----
-46
-64
-75

query I rowsort
SELECT ALL - col0 + - col2 + + - col1 AS col2 FROM tab1
----
-149
-161
-206

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + col0 * - 74 + ( - - 31 ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3484
SELECT * FROM tab1 WHERE - 87 / CAST( col0 AS SIGNED ) BETWEEN - col1 - + col1 AND - - 46 + - col2
----

skipif mysql # not compatible
query III rowsort label-3484
SELECT * FROM tab1 WHERE - 87 / CAST ( col0 AS INTEGER ) BETWEEN - col1 - + col1 AND - - 46 + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3485
SELECT ALL - - ( COUNT( * ) ) col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3485
SELECT ALL - - ( COUNT ( * ) ) col0 FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT + 83 FROM tab2 AS cor0 WHERE NOT + 22 * - col0 * + ( - col1 ) / + - col0 / 45 = col0
----
83

query I rowsort
SELECT col0 + + 86 AS col2 FROM tab1 WHERE col1 - - 99 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3488
SELECT + COUNT( * ) AS col2, COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9
9

skipif mysql # not compatible
query II rowsort label-3488
SELECT + COUNT ( * ) AS col2, COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9
9

query I rowsort
SELECT ALL 33 - + + col0 + - ( - col2 ) FROM tab0 AS cor0
----
-44
35
65

query I rowsort
SELECT col1 + - col2 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 59 / col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col0 * + col2 - ( + col0 ) FROM tab2 AS cor0
----
1012
2496
4275

onlyif mysql # aggregate syntax: 
query I rowsort label-3493
SELECT + 17 - COUNT( * ) AS col0 FROM tab2 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-3493
SELECT + 17 - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
14

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - ( col1 ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( 48 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3496
SELECT + 46 / - SUM( + 50 ) FROM tab1 WHERE - col2 <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3496
SELECT + 46 / - SUM ( + 50 ) FROM tab1 WHERE - col2 <= NULL
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT ( 44 * - - 81 * col1 + + 99 ) = col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 62 col2 FROM tab0 WHERE - - 82 / col2 IS NOT NULL
----
-62

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + + col0 ) NOT BETWEEN NULL AND ( + 62 )
----

query I rowsort
SELECT 53 * - + 88 AS col1 FROM tab0
----
-4664
-4664
-4664

onlyif mysql # aggregate syntax: 
query I rowsort label-3501
SELECT ALL - COUNT( + + col1 ) * + 66 AS col2 FROM tab0
----
-198

skipif mysql # not compatible
query I rowsort label-3501
SELECT ALL - COUNT ( + + col1 ) * + 66 AS col2 FROM tab0
----
-198

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 * + + col0, + 84 * - col2 col2 FROM tab0
----
-225
-3948
-7569
-840
-9409
-8316

query I rowsort
SELECT DISTINCT - 46 * - 70 AS col0 FROM tab2
----
3220

onlyif mysql # DIV for integer division: 
query I rowsort label-3504
SELECT ALL ( + col2 ) DIV - col0 AS col2 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3504
SELECT ALL ( + col2 ) / - col0 AS col2 FROM tab1
----
-1
0
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( 20 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3506
SELECT DISTINCT ( COUNT( * ) ) DIV - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3506
SELECT DISTINCT ( COUNT ( * ) ) / - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-1

query II rowsort
SELECT ALL 4 AS col1, + ( - col2 ) AS col1 FROM tab1 AS cor0
----
4
-59
4
-68
4
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3508
SELECT MAX( DISTINCT + - col1 ) AS col1 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-3508
SELECT MAX ( DISTINCT + - col1 ) AS col1 FROM tab2
----
-51

query I rowsort
SELECT + + 72 + - 50 + 22 FROM tab1 AS cor0
----
44
44
44

query I rowsort
SELECT - + 18 + + 2 AS col2 FROM tab2 AS cor0
----
-16
-16
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-3511
SELECT ALL ( + COUNT( * ) ) + + 17 AS col2 FROM tab0
----
20

skipif mysql # not compatible
query I rowsort label-3511
SELECT ALL ( + COUNT ( * ) ) + + 17 AS col2 FROM tab0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-3512
SELECT ALL MIN( ALL - col0 ) col0 FROM tab1
----
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3512
SELECT ALL MIN ( ALL - col0 ) col0 FROM tab1
----
-91

query III rowsort
SELECT * FROM tab1 WHERE col1 NOT BETWEEN + + 81 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 8 col1 FROM tab0
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3515
SELECT * FROM tab1 WHERE + CAST( NULL AS SIGNED ) + - + col1 BETWEEN NULL AND col1
----

skipif mysql # not compatible
query III rowsort label-3515
SELECT * FROM tab1 WHERE + CAST ( NULL AS INTEGER ) + - + col1 BETWEEN NULL AND col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3516
SELECT - MIN( - + col1 ) * + COUNT( * ) + - - COUNT( * ) FROM tab0 WHERE - CAST( NULL AS SIGNED ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3516
SELECT - MIN ( - + col1 ) * + COUNT ( * ) + - - COUNT ( * ) FROM tab0 WHERE - CAST ( NULL AS INTEGER ) IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3517
SELECT + - MIN( ALL + - col1 ) FROM tab1 WHERE NULL IS NULL
----
47

skipif mysql # not compatible
query I rowsort label-3517
SELECT + - MIN ( ALL + - col1 ) FROM tab1 WHERE NULL IS NULL
----
47

query I rowsort
SELECT - 54 * + + 65 * - col0 FROM tab0 AS cor0
----
305370
340470
52650

onlyif mysql # aggregate syntax: 
query I rowsort label-3519
SELECT ALL SUM( DISTINCT + 81 ) AS col1 FROM tab1 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-3519
SELECT ALL SUM ( DISTINCT + 81 ) AS col1 FROM tab1 AS cor0
----
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0, + 99 * + - col2 col1 FROM tab1 cor0
----
-51
-9504
-85
-5841
-91
-6732

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3521
SELECT CAST( NULL AS SIGNED ) * - + 35 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3521
SELECT CAST ( NULL AS INTEGER ) * - + 35 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + col0 - 11 AS col1 FROM tab2 AS cor0
----
35
53
64

query I rowsort
SELECT DISTINCT - - ( + ( - col2 ) ) AS col0 FROM tab0 AS cor0
----
-10
-47
-99

query I rowsort
SELECT - - 95 FROM tab0 AS cor0 WHERE ( NULL ) < - 69
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3525
SELECT COUNT( * ) + - ( COUNT( * ) ) AS col2 FROM tab2 AS cor0 WHERE - col2 NOT BETWEEN ( NULL ) AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-3525
SELECT COUNT ( * ) + - ( COUNT ( * ) ) AS col2 FROM tab2 AS cor0 WHERE - col2 NOT BETWEEN ( NULL ) AND ( NULL )
----
0

query I rowsort
SELECT + ( - + col0 ) + col1 + col1 * + - col0 FROM tab0
----
-1149
-1893
-193

query I rowsort
SELECT + 2 + col0 AS col2 FROM tab1
----
53
87
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3528
SELECT ALL + COUNT( * ) - - COUNT( 68 ) AS col2 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-3528
SELECT ALL + COUNT ( * ) - - COUNT ( 68 ) AS col2 FROM tab1
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-3529
SELECT - 2 DIV 5 AS col0 FROM tab1 WHERE NULL IS NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3529
SELECT - 2 / 5 AS col0 FROM tab1 WHERE NULL IS NULL
----
0
0
0

query I rowsort
SELECT ALL 97 - - col2 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3531
SELECT DISTINCT - ( CAST( NULL AS SIGNED ) ) * - col1 * - 60 + 60 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3531
SELECT DISTINCT - ( CAST ( NULL AS INTEGER ) ) * - col1 * - 60 + 60 AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3532
SELECT - col0 col1 FROM tab0 cor0 WHERE + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3532
SELECT - col0 col1 FROM tab0 cor0 WHERE + CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col1 - + + col1 * + col1 FROM tab0 AS cor0
----
-2
-462
-6642

onlyif mysql # aggregate syntax: 
query II rowsort label-3534
SELECT MAX( + - col2 ), + 11 AS col1 FROM tab2 AS cor0
----
-23
11

skipif mysql # not compatible
query II rowsort label-3534
SELECT MAX ( + - col2 ), + 11 AS col1 FROM tab2 AS cor0
----
-23
11

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) <= - - ( + col0 ) + 14 + - 83
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 + - col1 * - col0 + + ( + ( + 91 ) ) + + col0 BETWEEN + - col0 AND - + 83 * + col2 * + col0 + - + col2 * - col1 * + col1
----
64
77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3537
SELECT ALL MIN( ALL + col2 ) FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-3537
SELECT ALL MIN ( ALL + col2 ) FROM tab1 AS cor0
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-3538
SELECT - col0 DIV - + col0 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3538
SELECT - col0 / - + col0 FROM tab0 AS cor0
----
1
1
1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + col2 AND - 52
----

query I rowsort
SELECT col0 * - + 41 FROM tab2
----
-1886
-2624
-3075

onlyif mysql # aggregate syntax: 
query I rowsort label-3541
SELECT DISTINCT - COUNT( * ) * - COUNT( DISTINCT + 66 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3541
SELECT DISTINCT - COUNT ( * ) * - COUNT ( DISTINCT + 66 ) AS col0 FROM tab2
----
3

query I rowsort
SELECT ALL 76 * + - col1 FROM tab1
----
-1064
-3572
-380

onlyif mysql # aggregate syntax: 
query I rowsort label-3543
SELECT 92 * + COUNT( * ) FROM tab0
----
276

skipif mysql # not compatible
query I rowsort label-3543
SELECT 92 * + COUNT ( * ) FROM tab0
----
276

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN + + col2 * + col1 AND - col0 + + + col1 + + ( col2 ) + col2 * - col2 - + ( - col2 ) - col2
----

query I rowsort
SELECT DISTINCT + + 70 FROM tab1 AS cor0 WHERE + col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3546
SELECT - CAST( NULL AS SIGNED ), - 42 AS col1 FROM tab0 AS cor0
----
NULL
-42
NULL
-42
NULL
-42

skipif mysql # not compatible
query II rowsort label-3546
SELECT - CAST ( NULL AS INTEGER ), - 42 AS col1 FROM tab0 AS cor0
----
NULL
-42
NULL
-42
NULL
-42

query I rowsort
SELECT - 16 * - col0 + col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 73 col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3549
SELECT + COUNT( ALL col0 ) AS col0 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3549
SELECT + COUNT ( ALL col0 ) AS col0 FROM tab0 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3550
SELECT ALL - - COUNT( DISTINCT - - col0 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3550
SELECT ALL - - COUNT ( DISTINCT - - col0 ) AS col0 FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT + col0 * - col2 + + col2 FROM tab2 AS cor0
----
-1035
-2520
-4292

query II rowsort
SELECT ALL + 84 * + + 8 * + 42, 80 AS col2 FROM tab1 AS cor0
----
28224
80
28224
80
28224
80

query I rowsort
SELECT - 89 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 924a74d31360fa4301c953b423a4710e

onlyif mysql # DIV for integer division: 
query I rowsort label-3554
SELECT ALL + 89 * col1 DIV - col0 AS col1 FROM tab0
----
-21
-480
0

skipif mysql # not compatible
query I rowsort label-3554
SELECT ALL + 89 * col1 / - col0 AS col1 FROM tab0
----
-21
-480
0

query I rowsort
SELECT DISTINCT + 68 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 col1, + col2 AS col2 FROM tab0
----
-10
10
-47
47
-99
99

query I rowsort
SELECT + col1 * ( - 4 ) FROM tab0 AS cor0
----
-324
-4
-84

onlyif mysql # aggregate syntax: 
query II rowsort label-3558
SELECT - COUNT( * ) * 92 AS col0, 38 AS col0 FROM tab2 AS cor0
----
-276
38

skipif mysql # not compatible
query II rowsort label-3558
SELECT - COUNT ( * ) * 92 AS col0, 38 AS col0 FROM tab2 AS cor0
----
-276
38

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col1 NOT BETWEEN col1 / - col2 + + - col2 + + col1 AND NULL
----

query II rowsort
SELECT + col2, col1 * - col0 AS col0 FROM tab1 AS cor0
----
59
-425
68
-4277
96
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-3561
SELECT DISTINCT - COUNT( + col2 ) AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3561
SELECT DISTINCT - COUNT ( + col2 ) AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

query II rowsort
SELECT col1, + 39 FROM tab0 AS cor0
----
1
39
21
39
81
39

query I rowsort
SELECT + ( - 89 ) AS col0 FROM tab1 AS cor0
----
-89
-89
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-3564
SELECT ALL 0 + SUM( + + col1 ) FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-3564
SELECT ALL 0 + SUM ( + + col1 ) FROM tab1
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3565
SELECT DISTINCT CAST( NULL AS SIGNED ) + 83 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3565
SELECT DISTINCT CAST ( NULL AS INTEGER ) + 83 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3566
SELECT + 60 AS col0 FROM tab0 WHERE NOT - CAST( 3 AS SIGNED ) IS NULL AND NULL <> col0
----

skipif mysql # not compatible
query I rowsort label-3566
SELECT + 60 AS col0 FROM tab0 WHERE NOT - CAST ( 3 AS INTEGER ) IS NULL AND NULL <> col0
----

query I rowsort
SELECT + col0 AS col0 FROM tab0 WHERE + 15 IS NOT NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3568
SELECT - 82 + - MIN( + col1 ) AS col0 FROM tab0
----
-83

skipif mysql # not compatible
query I rowsort label-3568
SELECT - 82 + - MIN ( + col1 ) AS col0 FROM tab0
----
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 13 + - ( - col1 ) + - col2 col0 FROM tab1
----
-34
-67
-95

query I rowsort
SELECT ALL ( - 87 ) + - + col2 AS col1 FROM tab1
----
-146
-155
-183

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3571
SELECT COUNT( * ) * + + MIN( + CAST( NULL AS DECIMAL ) ) + 25 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3571
SELECT COUNT ( * ) * + + MIN ( + CAST ( NULL AS REAL ) ) + 25 AS col2 FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL > + col1 )
----

query I rowsort
SELECT - col0 * - - col2 + - - col0 AS col2 FROM tab2 cor0
----
-1012
-2496
-4275

query I rowsort
SELECT 65 + + - col1 FROM tab0 AS cor0
----
-16
44
64

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 12 / + 80 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col0 + + col2 * + col1 + col0 AS col2 FROM tab0 AS cor0
----
210
3807
99

query I rowsort
SELECT ALL + 40 AS col1 FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3578
SELECT - MIN( DISTINCT + + ( + col2 ) ) AS col2 FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-3578
SELECT - MIN ( DISTINCT + + ( + col2 ) ) AS col2 FROM tab1
----
-59

query I rowsort
SELECT ALL col0 + + ( - col0 ) FROM tab1
----
0
0
0

query I rowsort
SELECT + col2 - + - col2 AS col1 FROM tab2
----
116
46
80

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL > + 88
----

query I rowsort
SELECT ALL + ( - 19 ) FROM tab1 AS cor0
----
-19
-19
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-3583
SELECT + MIN( DISTINCT - - col1 ) AS col0 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-3583
SELECT + MIN ( DISTINCT - - col1 ) AS col0 FROM tab2 AS cor0
----
51

onlyif mysql # aggregate syntax: 
query II rowsort label-3584
SELECT DISTINCT ( COUNT( DISTINCT - + col2 ) ), COUNT( * ) AS col0 FROM tab1 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-3584
SELECT DISTINCT ( COUNT ( DISTINCT - + col2 ) ), COUNT ( * ) AS col0 FROM tab1 AS cor0
----
3
3

query I rowsort
SELECT 2 * - + col1 FROM tab2
----
-102
-134
-154

onlyif mysql # aggregate syntax: 
query I rowsort label-3586
SELECT ALL 6 * - COUNT( * ) * - - 93 FROM tab0
----
-1674

skipif mysql # not compatible
query I rowsort label-3586
SELECT ALL 6 * - COUNT ( * ) * - - 93 FROM tab0
----
-1674

query I rowsort
SELECT DISTINCT ( - - col2 ) AS col1 FROM tab0
----
10
47
99

query II rowsort
SELECT DISTINCT - col2 AS col2, col1 FROM tab0 WHERE NULL >= + col1
----

query I rowsort
SELECT + col0 FROM tab1 WHERE NOT ( NOT ( NULL ) <= NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3590
SELECT + - ( + CAST( NULL AS SIGNED ) ) + + ( + + COUNT( * ) ) AS col2 FROM tab0 AS cor0 WHERE NOT + col1 * - col0 = + col2 * - - col2 + - 78
----
NULL

skipif mysql # not compatible
query I rowsort label-3590
SELECT + - ( + CAST ( NULL AS INTEGER ) ) + + ( + + COUNT ( * ) ) AS col2 FROM tab0 AS cor0 WHERE NOT + col1 * - col0 = + col2 * - - col2 + - 78
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3591
SELECT DISTINCT + + CAST( COUNT( * ) AS SIGNED ) * + COUNT( * ) FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3591
SELECT DISTINCT + + CAST ( COUNT ( * ) AS INTEGER ) * + COUNT ( * ) FROM tab0 AS cor0
----
9

query I rowsort
SELECT 11 * ( + 57 ) + - col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT 89 * - col1 AS col1 FROM tab0
----
-1869
-7209
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 71 col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-71

query III rowsort
SELECT * FROM tab0 WHERE 9 + + col0 < NULL
----

query I rowsort
SELECT - col2 + - - col0 AS col1 FROM tab1 AS cor0
----
-45
23
26

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 * - 4 > NULL
----

query I rowsort
SELECT - 45 * 12 - - col2 + + 43 * + + col0 FROM tab2 AS cor0 WHERE NULL > col2 / - + 60
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3599
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - COUNT( * ) * + COUNT( * ) - - 59 * COUNT( * ) col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3599
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - COUNT ( * ) * + COUNT ( * ) - - 59 * COUNT ( * ) col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - 48 * 40 + 4 AS col0 FROM tab0 AS cor0
----
-1916
-1916
-1916

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 39 + - 0 col1 FROM tab1 AS cor0
----
39
39
39

query II rowsort
SELECT + - 36 * - 29 + col2 * col0 * - - col0, 63 AS col0 FROM tab1 AS cor0
----
250740
63
427319
63
564152
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3603
SELECT ALL - SUM( - col0 ) + COUNT( * ) FROM tab1
----
230

skipif mysql # not compatible
query I rowsort label-3603
SELECT ALL - SUM ( - col0 ) + COUNT ( * ) FROM tab1
----
230

query II rowsort
SELECT - 29, 63 AS col1 FROM tab0
----
-29
63
-29
63
-29
63

query I rowsort
SELECT DISTINCT - col2 * + + 17 + - col1 AS col2 FROM tab1
----
-1008
-1203
-1646

onlyif mysql # aggregate syntax: 
query II rowsort label-3606
SELECT COUNT( DISTINCT - - 55 ), + COUNT( * ) AS col1 FROM tab0 WHERE NULL IS NULL
----
1
3

skipif mysql # not compatible
query II rowsort label-3606
SELECT COUNT ( DISTINCT - - 55 ), + COUNT ( * ) AS col1 FROM tab0 WHERE NULL IS NULL
----
1
3

query I rowsort
SELECT + 53 AS col1 FROM tab0 WHERE NULL = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3608
SELECT DISTINCT + col1 / - col2 - 13 * + ( - + CAST( NULL AS SIGNED ) ) * + + 33 + - col0 + - - 94 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3608
SELECT DISTINCT + col1 / - col2 - 13 * + ( - + CAST ( NULL AS INTEGER ) ) * + + 33 + - col0 + - - 94 AS col2 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3609
SELECT DISTINCT COUNT( - col0 ) + 94 + + COUNT( * ) FROM tab1
----
100

skipif mysql # not compatible
query I rowsort label-3609
SELECT DISTINCT COUNT ( - col0 ) + 94 + + COUNT ( * ) FROM tab1
----
100

query I rowsort
SELECT 93 FROM tab0 WHERE NULL < + 72
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL BETWEEN col2 AND - + col1 + 12 AND NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3612
SELECT ALL + + CAST( col1 AS SIGNED ), - 48 * 13 AS col1 FROM tab1 AS cor0
----
14
-624
47
-624
5
-624

skipif mysql # not compatible
query II rowsort label-3612
SELECT ALL + + CAST ( col1 AS INTEGER ), - 48 * 13 AS col1 FROM tab1 AS cor0
----
14
-624
47
-624
5
-624

onlyif mysql # DIV for integer division: 
query I rowsort label-3613
SELECT - col2 * col1 DIV - col2 + col0 AS col0 FROM tab1 AS cor0
----
138
65
90

skipif mysql # not compatible
query I rowsort label-3613
SELECT - col2 * col1 / - col2 + col0 AS col0 FROM tab1 AS cor0
----
138
65
90

query I rowsort
SELECT + col1 * + ( 85 ) AS col2 FROM tab1 AS cor0
----
1190
3995
425

query I rowsort
SELECT - + col1 * - col0 * + - col2 FROM tab1 AS cor0
----
-25075
-290836
-68544

onlyif mysql # aggregate syntax: 
query I rowsort label-3616
SELECT ALL SUM( ALL 64 ) col2 FROM tab2
----
192

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3616
SELECT ALL SUM ( ALL 64 ) col2 FROM tab2
----
192

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 + + col2 IS NULL
----

query II rowsort
SELECT + 26 / - col1, + col2 FROM tab1 WHERE NOT NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT 26 + col2 * col2 FROM tab1 WHERE NOT NULL = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 64 col1 FROM tab1 cor0
----
-64
-64
-64

query I rowsort
SELECT + col0 + - 40 AS col1 FROM tab2 AS cor0
----
24
35
6

query I rowsort
SELECT DISTINCT col2 + - + col1 + + col2 FROM tab2
----
-5
3
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3623
SELECT ALL col2 + ( + 38 ) + col2 / - ( + + CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3623
SELECT ALL col2 + ( + 38 ) + col2 / - ( + + CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3624
SELECT DISTINCT + 44 * + SUM( DISTINCT col2 ) + + 78 FROM tab1 cor0
----
9890

skipif mysql # not compatible
query I rowsort label-3624
SELECT DISTINCT + 44 * + SUM ( DISTINCT col2 ) + + 78 FROM tab1 cor0
----
9890

onlyif mysql # DIV for integer division: 
query II rowsort label-3625
SELECT + 38 DIV - col0 AS col0, col0 * - col2 * 62 FROM tab0 AS cor0
----
-2
-43710
0
-53940
0
-595386

skipif mysql # not compatible
query II rowsort label-3625
SELECT + 38 / - col0 AS col0, col0 * - col2 * 62 FROM tab0 AS cor0
----
-2
-43710
0
-53940
0
-595386

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 / col2 + 63 + + col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 81 - + 82 col0 FROM tab1 AS cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3628
SELECT + COUNT( * ) * + 7 + SUM( - col1 ) FROM tab1
----
-45

skipif mysql # not compatible
query I rowsort label-3628
SELECT + COUNT ( * ) * + 7 + SUM ( - col1 ) FROM tab1
----
-45

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3629
SELECT ALL * FROM tab1 WHERE NOT CAST( - + col0 AS DECIMAL ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3629
SELECT ALL * FROM tab1 WHERE NOT CAST ( - + col0 AS REAL ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 8 + - 10 FROM tab1
----
-18
-18
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-3631
SELECT DISTINCT + 7 + - SUM( DISTINCT - col2 ) AS col0 FROM tab2
----
128

skipif mysql # not compatible
query I rowsort label-3631
SELECT DISTINCT + 7 + - SUM ( DISTINCT - col2 ) AS col0 FROM tab2
----
128

query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 AS cor0 WHERE NOT NULL IN ( + 66, 40 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - 75 col1 FROM tab1
----
-16
-7
21

onlyif mysql # DIV for integer division: 
query I rowsort label-3634
SELECT ALL + col0 DIV + 20 AS col0 FROM tab0
----
0
4
4

skipif mysql # not compatible
query I rowsort label-3634
SELECT ALL + col0 / + 20 AS col0 FROM tab0
----
0
4
4

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3635
SELECT ALL * FROM tab0 AS cor0 WHERE + col1 > - - CAST( - - col2 AS DECIMAL )
----
15
81
47
87
21
10

skipif mysql # not compatible
query III rowsort label-3635
SELECT ALL * FROM tab0 AS cor0 WHERE + col1 > - - CAST ( - - col2 AS REAL )
----
15
81
47
87
21
10

query I rowsort
SELECT DISTINCT 93 * - col2 AS col2 FROM tab2
----
-2139
-3720
-5394

query II rowsort
SELECT 35, + col0 FROM tab1 cor0
----
35
51
35
85
35
91

onlyif mysql # DIV for integer division: 
query I rowsort label-3638
SELECT ALL ( - + col1 ) DIV - col2 + - 21 + 38 AS col1 FROM tab0 AS cor0
----
17
18
19

skipif mysql # not compatible
query I rowsort label-3638
SELECT ALL ( - + col1 ) / - col2 + - 21 + 38 AS col1 FROM tab0 AS cor0
----
17
18
19

onlyif mysql # aggregate syntax: 
query I rowsort label-3639
SELECT DISTINCT - COUNT( ALL + + 30 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3639
SELECT DISTINCT - COUNT ( ALL + + 30 ) FROM tab1 AS cor0
----
-3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + ( - - col1 ) - + + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-3641
SELECT 2 DIV - + col0 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3641
SELECT 2 / - + col0 AS col1 FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab2 WHERE NOT - - col2 BETWEEN - 51 + - 55 + col2 AND - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3643
SELECT DISTINCT MAX( DISTINCT - 45 ) AS col0 FROM tab1
----
-45

skipif mysql # not compatible
query I rowsort label-3643
SELECT DISTINCT MAX ( DISTINCT - 45 ) AS col0 FROM tab1
----
-45

query I rowsort
SELECT ALL 26 + + ( 69 ) * col2 FROM tab1
----
4097
4718
6650

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab0 WHERE NOT ( col2 / + + col1 + - 39 + 47 + - + col0 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3646
SELECT - col2 * + - col0 * + - 49 * CAST( + col1 AS SIGNED ) FROM tab2
----
-14281050
-2643942
-9658880

skipif mysql # not compatible
query I rowsort label-3646
SELECT - col2 * + - col0 * + - 49 * CAST ( + col1 AS INTEGER ) FROM tab2
----
-14281050
-2643942
-9658880

query I rowsort
SELECT + 45 * + ( - col0 ) AS col1 FROM tab0
----
-3915
-4365
-675

onlyif mysql # aggregate syntax: 
query I rowsort label-3648
SELECT ALL - + COUNT( ALL - - col2 ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3648
SELECT ALL - + COUNT ( ALL - - col2 ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
-3

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 19 + - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + - 28 + - 65 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-93

query III rowsort
SELECT * FROM tab1 WHERE - - col2 BETWEEN ( + 30 / - col0 / + col2 - - col0 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3652
SELECT DISTINCT + col2, + col2 - - col1 + - ( - col0 ) + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-3652
SELECT DISTINCT + col2, + col2 - - col1 + - ( - col0 ) + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
10
NULL
47
NULL
99
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3653
SELECT + COUNT( * ) + - SUM( DISTINCT - 36 ) + - ( 90 ) col0 FROM tab0 cor0
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3653
SELECT + COUNT ( * ) + - SUM ( DISTINCT - 36 ) + - ( 90 ) col0 FROM tab0 cor0
----
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-3654
SELECT ALL - COUNT( * ), 88 AS col1 FROM tab2 AS cor0
----
-3
88

skipif mysql # not compatible
query II rowsort label-3654
SELECT ALL - COUNT ( * ), 88 AS col1 FROM tab2 AS cor0
----
-3
88

onlyif mysql # aggregate syntax: 
query I rowsort label-3655
SELECT ALL - + COUNT( DISTINCT - col1 ) * - ( COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3655
SELECT ALL - + COUNT ( DISTINCT - col1 ) * - ( COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
9

query II rowsort
SELECT DISTINCT col0 AS col2, col2 + - 86 AS col0 FROM tab1 cor0
----
51
10
85
-27
91
-18

query I rowsort
SELECT col1 * + col2 + - col0 AS col0 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
1127
3016
3811

query I rowsort
SELECT ALL 95 + + + 0 + - 6 FROM tab0 AS cor0
----
89
89
89

query I rowsort
SELECT ALL - - ( - col1 ) FROM tab0 cor0
----
-1
-21
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3660
SELECT COUNT( - CAST( - 30 AS SIGNED ) ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3660
SELECT COUNT ( - CAST ( - 30 AS INTEGER ) ) AS col0 FROM tab2
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3661
SELECT ALL COUNT( * ) DIV - + ( - 61 ) + + - MIN( col1 ) FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-3661
SELECT ALL COUNT ( * ) / - + ( - 61 ) + + - MIN ( col1 ) FROM tab1
----
-5

query I rowsort
SELECT DISTINCT 17 + - 31 + + col1 FROM tab0
----
-13
67
7

query I rowsort
SELECT 6 - + ( + - col0 ) AS col0 FROM tab2
----
52
70
81

onlyif mysql # aggregate syntax: 
query II rowsort label-3664
SELECT ALL 71 - 66, - COUNT( * ) AS col0 FROM tab1
----
5
-3

skipif mysql # not compatible
query II rowsort label-3664
SELECT ALL 71 - 66, - COUNT ( * ) AS col0 FROM tab1
----
5
-3

query I rowsort
SELECT DISTINCT + ( + - col1 ) - + 26 * + col1 + + - col2 AS col1 FROM tab1
----
-1337
-194
-474

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3666
SELECT DISTINCT col1 + + col2 - - col1 * + 73 * + 3 + + - 22 * CAST( + 62 AS SIGNED ) * + col1 AS col2 FROM tab1 AS cor0
----
-15920
-53700
-5661

skipif mysql # not compatible
query I rowsort label-3666
SELECT DISTINCT col1 + + col2 - - col1 * + 73 * + 3 + + - 22 * CAST ( + 62 AS INTEGER ) * + col1 AS col2 FROM tab1 AS cor0
----
-15920
-53700
-5661

query II rowsort
SELECT ALL + - 5 * col0 * - 93 - col2, + col0 AS col1 FROM tab1 cor0
----
23619
51
39466
85
42247
91

query I rowsort
SELECT - col2 * + - col2 AS col2 FROM tab2 AS cor0
----
1600
3364
529

onlyif mysql # aggregate syntax: 
query I rowsort label-3669
SELECT ALL + COUNT( * ) col2 FROM tab0 AS cor0 WHERE NOT - col0 >= 38 + - col2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3669
SELECT ALL + COUNT ( * ) col2 FROM tab0 AS cor0 WHERE NOT - col0 >= 38 + - col2
----
3

query I rowsort
SELECT + 51 * - col2 FROM tab0 cor0
----
-2397
-5049
-510

query II rowsort
SELECT + + 70, col0 * - col0 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + col0 AND - - col0
----

query I rowsort
SELECT ALL + col2 * + + col0 * col0 - 80 + + - col2 * col2 * - col1 * + - col1 * - - col2 FROM tab2 WHERE NOT - 42 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3673
SELECT DISTINCT + CAST( NULL AS SIGNED ), + 91 - - col0 FROM tab2 WHERE NOT CAST( NULL AS SIGNED ) NOT IN ( - + 53 )
----

skipif mysql # not compatible
query II rowsort label-3673
SELECT DISTINCT + CAST ( NULL AS INTEGER ), + 91 - - col0 FROM tab2 WHERE NOT CAST ( NULL AS INTEGER ) NOT IN ( - + 53 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN + col2 AND col0 * + + col2
----

query I rowsort
SELECT DISTINCT + col0 * + - 29 AS col2 FROM tab0
----
-2523
-2813
-435

onlyif mysql # DIV for integer division: 
query I rowsort label-3676
SELECT ALL col1 DIV + 2 AS col0 FROM tab2 AS cor0
----
25
33
38

skipif mysql # not compatible
query I rowsort label-3676
SELECT ALL col1 / + 2 AS col0 FROM tab2 AS cor0
----
25
33
38

onlyif mysql # aggregate syntax: 
query I rowsort label-3677
SELECT DISTINCT + MAX( ALL - 24 ) AS col1 FROM tab1 cor0
----
-24

skipif mysql # not compatible
query I rowsort label-3677
SELECT DISTINCT + MAX ( ALL - 24 ) AS col1 FROM tab1 cor0
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3678
SELECT + SUM( ALL + CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3678
SELECT + SUM ( ALL + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT col0 AS col1, + ( - 63 ) * - + col2 FROM tab2 AS cor0
----
46
1449
64
2520
75
3654

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3680
SELECT - + CAST( NULL AS DECIMAL ) AS col1, - col1 + - col0 AS col0 FROM tab0 AS cor0
----
NULL
-108
NULL
-96
NULL
-98

skipif mysql # not compatible
query II rowsort label-3680
SELECT - + CAST ( NULL AS REAL ) AS col1, - col1 + - col0 AS col0 FROM tab0 AS cor0
----
NULL
-108
NULL
-96
NULL
-98

query I rowsort
SELECT - ( - ( - col2 ) ) AS col0 FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT DISTINCT - col2 * 12 + col0 + - 55 FROM tab1 AS cor0
----
-1156
-678
-780

onlyif mysql # DIV for integer division: 
query I rowsort label-3683
SELECT DISTINCT - col1 DIV + 75 AS col1 FROM tab0
----
-1
0

skipif mysql # not compatible
query I rowsort label-3683
SELECT DISTINCT - col1 / + 75 AS col1 FROM tab0
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3684
SELECT SUM( ALL + + 85 ) - - + 51 AS col0 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3684
SELECT SUM ( ALL + + 85 ) - - + 51 AS col0 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3685
SELECT + 28 * + COUNT( * ) AS col2 FROM tab0
----
84

skipif mysql # not compatible
query I rowsort label-3685
SELECT + 28 * + COUNT ( * ) AS col2 FROM tab0
----
84

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - - col0 * - col0 * col0 + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3687
SELECT 78 - + MIN( 18 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3687
SELECT 78 - + MIN ( 18 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT ALL + col1 * - 10 FROM tab1 AS cor0
----
-140
-470
-50

query I rowsort
SELECT + - col0 + + + col2 AS col1 FROM tab2 AS cor0
----
-17
-23
-24

query I rowsort
SELECT + 3 FROM tab2 WHERE NULL >= - - col1
----

query I rowsort
SELECT DISTINCT + 33 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-3692
SELECT + COUNT( - + 71 ) * - - MAX( DISTINCT + - 35 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-315

skipif mysql # not compatible
query I rowsort label-3692
SELECT + COUNT ( - + 71 ) * - - MAX ( DISTINCT + - 35 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-315

query I rowsort
SELECT - col1 * + 64 + 91 FROM tab0 AS cor0
----
-1253
-5093
27

onlyif mysql # aggregate syntax: 
query I rowsort label-3694
SELECT ALL COUNT( * ) - + 40 FROM tab1 AS cor0
----
-37

skipif mysql # not compatible
query I rowsort label-3694
SELECT ALL COUNT ( * ) - + 40 FROM tab1 AS cor0
----
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3695
SELECT CAST( + col0 AS SIGNED ) * + - col2 - - col1 * - col2 AS col0 FROM tab0 AS cor0
----
-1080
-4512
-9702

skipif mysql # not compatible
query I rowsort label-3695
SELECT CAST ( + col0 AS INTEGER ) * + - col2 - - col1 * - col2 AS col0 FROM tab0 AS cor0
----
-1080
-4512
-9702

onlyif mysql # DIV for integer division: 
query I rowsort label-3696
SELECT - 11 DIV col0 - - col1 AS col2 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-3696
SELECT - 11 / col0 - - col1 AS col2 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT + - ( + col0 ) - - + col0 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT col1 * + col1 - + 27 * + + col0 FROM tab0 AS cor0
----
-1908
-2618
6156

onlyif mysql # aggregate syntax: 
query I rowsort label-3699
SELECT - COUNT( * ) + - + COUNT( * ) FROM tab1 cor0
----
-6

skipif mysql # not compatible
query I rowsort label-3699
SELECT - COUNT ( * ) + - + COUNT ( * ) FROM tab1 cor0
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3700
SELECT + + col1 AS col0 FROM tab2 AS cor0 WHERE ( ( col1 ) BETWEEN + - col1 AND + + CAST( + - col1 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-3700
SELECT + + col1 AS col0 FROM tab2 AS cor0 WHERE ( ( col1 ) BETWEEN + - col1 AND + + CAST ( + - col1 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3701
SELECT ALL + COUNT( * ) FROM tab0 AS cor0 WHERE 7 * + - col1 * + col0 + + + col0 - col0 > + + col2
----
0

skipif mysql # not compatible
query I rowsort label-3701
SELECT ALL + COUNT ( * ) FROM tab0 AS cor0 WHERE 7 * + - col1 * + col0 + + + col0 - col0 > + + col2
----
0

query I rowsort
SELECT DISTINCT 81 + + col0 - - + 41 * - col0 AS col2 FROM tab2
----
-1759
-2479
-2919

query I rowsort
SELECT ALL 99 + col1 - col2 * - - 37 * - 48 AS col0 FROM tab2
----
103174
40998
71216

query I rowsort
SELECT ALL 8 + - 63 AS col1 FROM tab1
----
-55
-55
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3705
SELECT DISTINCT + col0 * + + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3705
SELECT DISTINCT + col0 * + + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3706
SELECT ALL + col0 DIV + + 50 + - + 4 FROM tab1
----
-3
-3
-3

skipif mysql # not compatible
query I rowsort label-3706
SELECT ALL + col0 / + + 50 + - + 4 FROM tab1
----
-3
-3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3707
SELECT ALL - 12 + + 34 + + COUNT( * ) * + 88 AS col2 FROM tab1
----
286

skipif mysql # not compatible
query I rowsort label-3707
SELECT ALL - 12 + + 34 + + COUNT ( * ) * + 88 AS col2 FROM tab1
----
286

onlyif mysql # aggregate syntax: 
query II rowsort label-3708
SELECT ALL - 98 col1, + MIN( col0 ) col0 FROM tab0 AS cor0
----
-98
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3708
SELECT ALL - 98 col1, + MIN ( col0 ) col0 FROM tab0 AS cor0
----
-98
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3709
SELECT ALL + ( - COUNT( * ) ) col0 FROM tab1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3709
SELECT ALL + ( - COUNT ( * ) ) col0 FROM tab1
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3710
SELECT ALL + + col1 - + CAST( 25 AS SIGNED ) * - + col2 AS col2 FROM tab2 AS cor0 WHERE col2 + + col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-3710
SELECT ALL + + col1 - + CAST ( 25 AS INTEGER ) * - + col2 AS col2 FROM tab2 AS cor0 WHERE col2 + + col0 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 77 >= + + 17 + + col1
----
64
77
40
75
67
58

query I rowsort
SELECT ALL - 19 + + 11 FROM tab2
----
-8
-8
-8

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 71 / - col0 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - - col1 col2 FROM tab0
----
210
3807
99

query I rowsort
SELECT ALL - col0 + + - 92 AS col2 FROM tab0
----
-107
-179
-189

query II rowsort
SELECT ALL 21 AS col0, - col2 * - col0 AS col2 FROM tab2 AS cor0
----
21
1058
21
2560
21
4350

query I rowsort
SELECT ALL + + ( + - col1 ) FROM tab2 cor0
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3718
SELECT + MIN( ALL + + col2 ) FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-3718
SELECT + MIN ( ALL + + col2 ) FROM tab2 AS cor0
----
23

query I rowsort
SELECT ALL - ( + col2 ) FROM tab1 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----

query I rowsort
SELECT ALL - col2 + - col2 * + col2 AS col1 FROM tab0
----
-110
-2256
-9900

query I rowsort
SELECT ALL - 9 - col1 + + - col1 * - 90 * - - col0 FROM tab1 AS cor0
----
38236
384874
64237

query II rowsort
SELECT DISTINCT - col0, 53 AS col1 FROM tab0 AS cor0
----
-15
53
-87
53
-97
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * + + col2 + - col0 * + col0 col1 FROM tab0 AS cor0
----
-4032
-7779
-9508

query I rowsort
SELECT 29 AS col1 FROM tab2 cor0
----
29
29
29

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col1 <= + - col0 / - col0 + + - 16
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT col0 AS col0, 77 FROM tab0
----
15
77
87
77
97
77

query II rowsort
SELECT DISTINCT - col0 * + + col1, + col2 FROM tab1 AS cor0 WHERE ( NOT ( NOT ( ( NULL ) IS NULL ) ) )
----
-425
59
-4277
68
-714
96

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 9 + + + 12 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + 14 * col0 AS col0 FROM tab0 AS cor0
----
1218
1358
210

onlyif mysql # DIV for integer division: 
query I rowsort label-3730
SELECT + 47 DIV - col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3730
SELECT + 47 / - col2 FROM tab1 AS cor0
----
0
0
0

query II rowsort
SELECT - 94 AS col0, col0 AS col2 FROM tab0 cor0
----
-94
15
-94
87
-94
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3732
SELECT + MIN( + + 27 ) AS col2 FROM tab0 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-3732
SELECT + MIN ( + + 27 ) AS col2 FROM tab0 AS cor0
----
27

onlyif mysql # aggregate syntax: 
query II rowsort label-3733
SELECT + 93 AS col0, + COUNT( DISTINCT - + col2 ) FROM tab0 cor0
----
93
3

skipif mysql # not compatible
query II rowsort label-3733
SELECT + 93 AS col0, + COUNT ( DISTINCT - + col2 ) FROM tab0 cor0
----
93
3

query II rowsort
SELECT DISTINCT + 27 + + col1 * - + col2, col1 * + + col0 AS col0 FROM tab0 AS cor0
----
-183
1827
-3780
1215
-72
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + 2 col0 FROM tab0
----
17
89
99

query I rowsort
SELECT ALL - col1 + + - 81 FROM tab2
----
-132
-148
-158

onlyif mysql # aggregate syntax: 
query I rowsort label-3737
SELECT DISTINCT 83 + SUM( + col0 ) col0 FROM tab2
----
268

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3737
SELECT DISTINCT 83 + SUM ( + col0 ) col0 FROM tab2
----
268

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 20 <= + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3739
SELECT DISTINCT - 2 * - + MAX( ALL col1 ) AS col0 FROM tab0
----
162

skipif mysql # not compatible
query I rowsort label-3739
SELECT DISTINCT - 2 * - + MAX ( ALL col1 ) AS col0 FROM tab0
----
162

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3740
SELECT CAST( NULL AS SIGNED ) + - 51 + CAST( col0 AS SIGNED ) col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3740
SELECT CAST ( NULL AS INTEGER ) + - 51 + CAST ( col0 AS INTEGER ) col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3741
SELECT + COUNT( * ) + - COUNT( ALL col2 ) AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3741
SELECT + COUNT ( * ) + - COUNT ( ALL col2 ) AS col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT 17 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 43298e43365fccb5146ea32003753c92

onlyif mysql # aggregate syntax: 
query I rowsort label-3743
SELECT DISTINCT 82 * - - 86 * COUNT( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
63468

skipif mysql # not compatible
query I rowsort label-3743
SELECT DISTINCT 82 * - - 86 * COUNT ( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
63468

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - 33 - - ( - ( - 30 ) ) col1 FROM tab0 AS cor0
----
2703
63
723

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 47 >= NULL
----

query I rowsort
SELECT - col2 - + 95 + + - 51 * + - ( - col2 ) * + col0 * col1 + - col1 FROM tab0 AS cor0
----
-2912578
-489948
-931896

query I rowsort
SELECT - ( + + col2 ) * col0 - col1 AS col2 FROM tab0 AS cor0
----
-786
-891
-9604

query I rowsort
SELECT DISTINCT + col0 * - - col0 - + 21 AS col0 FROM tab2 AS cor0
----
2095
4075
5604

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3750
SELECT ALL + COUNT( * ) + + + MIN( + 95 ) - COUNT( * ) FROM tab0 AS cor0 WHERE NOT + col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3750
SELECT ALL + COUNT ( * ) + + + MIN ( + 95 ) - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT + col2 IS NOT NULL
----
NULL

query I rowsort
SELECT col0 AS col2 FROM tab2 AS cor0 WHERE NOT + col0 + - - col1 IS NULL
----
46
64
75

query II rowsort
SELECT ALL - col2 AS col2, - col2 AS col2 FROM tab2
----
-23
-23
-40
-40
-58
-58

query I rowsort
SELECT ALL 55 * - - 10 AS col2 FROM tab1 WHERE NOT + 7 IS NULL
----
550
550
550

query II rowsort
SELECT ALL 39 AS col1, - col2 FROM tab0
----
39
-10
39
-47
39
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3755
SELECT ALL + COUNT( + col2 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3755
SELECT ALL + COUNT ( + col2 ) AS col0 FROM tab0
----
3

query II rowsort
SELECT col0, - col1 + col1 + col2 FROM tab1
----
51
96
85
59
91
68

onlyif mysql # DIV for integer division: 
query I rowsort label-3757
SELECT DISTINCT 69 DIV - col0 AS col2 FROM tab0 cor0
----
-4
0

skipif mysql # not compatible
query I rowsort label-3757
SELECT DISTINCT 69 / - col0 AS col2 FROM tab0 cor0
----
-4
0

query I rowsort
SELECT + + ( - + col2 ) FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT DISTINCT - - 91 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
91

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT ALL + - 40 FROM tab2 AS cor0
----
-40
-40
-40

query I rowsort
SELECT ( + col1 ) + 99 AS col0 FROM tab0 AS cor0
----
100
120
180

query I rowsort
SELECT ALL col2 AS col2 FROM tab0 AS cor0 WHERE 38 IS NOT NULL
----
10
47
99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN ( NULL ) AND + + col0 + - + 85 + col2
----

query I rowsort
SELECT + col2 AS col1 FROM tab1 AS cor0 WHERE + col2 * + col1 IS NOT NULL
----
59
68
96

query I rowsort
SELECT ALL col1 * + col0 + + col0 - - 50 * - col1 AS col2 FROM tab0
----
-2820
144
864

query III rowsort
SELECT * FROM tab1 WHERE NULL < + 59
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - ( - col2 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3769
SELECT ALL col2 * col0 + col1 AS col1, 33 DIV - col0 col1 FROM tab0
----
786
-2
891
0
9604
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3769
SELECT ALL col2 * col0 + col1 AS col1, 33 / - col0 col1 FROM tab0
----
786
-2
891
0
9604
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3770
SELECT ALL 40 + + + 87 * + - COUNT( ALL col2 ) AS col2 FROM tab0
----
-221

skipif mysql # not compatible
query I rowsort label-3770
SELECT ALL 40 + + + 87 * + - COUNT ( ALL col2 ) AS col2 FROM tab0
----
-221

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - - 0 col2 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3772
SELECT ALL - COUNT( * ) FROM tab2 WHERE - 40 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3772
SELECT ALL - COUNT ( * ) FROM tab2 WHERE - 40 IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3773
SELECT DISTINCT + + col0 - - CAST( - - col2 AS SIGNED ) - - + col2 DIV - 98 FROM tab0 AS cor0
----
195
62
97

skipif mysql # not compatible
query I rowsort label-3773
SELECT DISTINCT + + col0 - - CAST ( - - col2 AS INTEGER ) - - + col2 / - 98 FROM tab0 AS cor0
----
195
62
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 25 AS col2, + col0 col0 FROM tab0 AS cor0
----
25
15
25
87
25
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3775
SELECT 46 * ( COUNT( * ) ) AS col0 FROM tab2
----
138

skipif mysql # not compatible
query I rowsort label-3775
SELECT 46 * ( COUNT ( * ) ) AS col0 FROM tab2
----
138

query I rowsort
SELECT + 51 * - col2 AS col2 FROM tab2
----
-1173
-2040
-2958

query I rowsort
SELECT 52 - - 72 FROM tab1
----
124
124
124

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * 68 col1 FROM tab1
----
3468
5780
6188

query I rowsort
SELECT ALL + col1 * 56 FROM tab1
----
2632
280
784

onlyif mysql # aggregate syntax: 
query I rowsort label-3780
SELECT COUNT( * ) + 91 col1 FROM tab1
----
94

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3780
SELECT COUNT ( * ) + 91 col1 FROM tab1
----
94

query I rowsort
SELECT col1 AS col2 FROM tab1 WHERE NOT 21 <> NULL
----

query III rowsort
SELECT * FROM tab2 WHERE col2 + - col1 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3783
SELECT MIN( 73 ) FROM tab0
----
73

skipif mysql # not compatible
query I rowsort label-3783
SELECT MIN ( 73 ) FROM tab0
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3784
SELECT DISTINCT * FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) + col1 BETWEEN - ( + col0 ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-3784
SELECT DISTINCT * FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) + col1 BETWEEN - ( + col0 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3785
SELECT ALL * FROM tab1 WHERE NOT ( ( - CAST( ( - col1 ) AS SIGNED ) ) * + col1 ) NOT BETWEEN + 85 + - 4 AND + col0 * col0
----
51
14
96
91
47
68

skipif mysql # not compatible
query III rowsort label-3785
SELECT ALL * FROM tab1 WHERE NOT ( ( - CAST ( ( - col1 ) AS INTEGER ) ) * + col1 ) NOT BETWEEN + 85 + - 4 AND + col0 * col0
----
51
14
96
91
47
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3786
SELECT MAX( DISTINCT - 42 ) FROM tab0 WHERE NULL NOT IN ( 80 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3786
SELECT MAX ( DISTINCT - 42 ) FROM tab0 WHERE NULL NOT IN ( 80 )
----
NULL

query I rowsort
SELECT 72 FROM tab1 WHERE NOT ( - 34 ) IS NULL
----
72
72
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3788
SELECT - COUNT( ( col2 ) ) + 23 DIV + 98 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3788
SELECT - COUNT ( ( col2 ) ) + 23 / + 98 FROM tab0
----
-3

query I rowsort
SELECT ALL - col0 FROM tab0 WHERE NOT - col2 IN ( - col1 )
----
-15
-87
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3790
SELECT + CAST( - 4 AS SIGNED ) FROM tab2
----
-4
-4
-4

skipif mysql # not compatible
query I rowsort label-3790
SELECT + CAST ( - 4 AS INTEGER ) FROM tab2
----
-4
-4
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3791
SELECT ALL - COUNT( * ) - AVG ( CAST( NULL AS SIGNED ) ) * COUNT( * ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3791
SELECT ALL - COUNT ( * ) - AVG ( CAST ( NULL AS INTEGER ) ) * COUNT ( * ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT 83 * 9 FROM tab1 WHERE col2 IS NOT NULL
----
747

onlyif mysql # aggregate syntax: 
query I rowsort label-3793
SELECT ALL 79 + SUM( + col2 ) AS col0 FROM tab1
----
302

skipif mysql # not compatible
query I rowsort label-3793
SELECT ALL 79 + SUM ( + col2 ) AS col0 FROM tab1
----
302

query I rowsort
SELECT 48 + + 28 FROM tab1
----
76
76
76

query I rowsort
SELECT ALL col2 * - 91 + 94 * - 73 FROM tab1
----
-12231
-13050
-15598

onlyif mysql # DIV for integer division: 
query I rowsort label-3796
SELECT 46 * + col1 + 22 * + ( col1 DIV 1 ) AS col2 FROM tab1
----
3196
340
952

skipif mysql # not compatible
query I rowsort label-3796
SELECT 46 * + col1 + 22 * + ( col1 / 1 ) AS col2 FROM tab1
----
3196
340
952

onlyif mysql # aggregate syntax: 
query I rowsort label-3797
SELECT + COUNT( * ) + - COUNT( * ) AS col2 FROM tab1 WHERE NOT col2 < + col2 * - col2
----
0

skipif mysql # not compatible
query I rowsort label-3797
SELECT + COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab1 WHERE NOT col2 < + col2 * - col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3798
SELECT ALL + COUNT( ALL 20 ) col0 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3798
SELECT ALL + COUNT ( ALL 20 ) col0 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3799
SELECT ALL SUM( + 94 ) AS col1 FROM tab0
----
282

skipif mysql # not compatible
query I rowsort label-3799
SELECT ALL SUM ( + 94 ) AS col1 FROM tab0
----
282

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 24 + 39 IS NOT NULL
----

query I rowsort
SELECT col0 + - 86 AS col0 FROM tab1 AS cor0
----
-1
-35
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3802
SELECT - COUNT( * ) + 32 FROM tab2 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-3802
SELECT - COUNT ( * ) + 32 FROM tab2 AS cor0
----
29

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 94 IS NULL
----

query I rowsort
SELECT DISTINCT 12 * + col2 FROM tab0 AS cor0
----
1188
120
564

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( col1 ) AND 50 / col0
----

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab1 AS cor0 WHERE - col0 / col0 + col1 = NULL
----

query I rowsort
SELECT col2 - + 75 AS col2 FROM tab2 AS cor0 WHERE ( + col0 * - col0 ) IS NOT NULL
----
-17
-35
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-3808
SELECT DISTINCT + MAX( col2 ) AS col1 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-3808
SELECT DISTINCT + MAX ( col2 ) AS col1 FROM tab1 AS cor0
----
96

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( col0 ) <= col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + ( 96 ) + - col0 AS col1 FROM tab0
----
-1
81
9

query I rowsort
SELECT DISTINCT + col2 + - 91 FROM tab2
----
-33
-51
-68

query I rowsort
SELECT ALL + col2 / - col0 FROM tab1 WHERE 23 IN ( col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3813
SELECT ALL col0 + CAST( col2 AS SIGNED ) + - col1 * + 43 col2 FROM tab2
----
-2124
-2748
-3207

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3813
SELECT ALL col0 + CAST ( col2 AS INTEGER ) + - col1 * + 43 col2 FROM tab2
----
-2124
-2748
-3207

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - + 10 - + col2 col2 FROM tab1
----
-55
13
16

onlyif mysql # aggregate syntax: 
query I rowsort label-3815
SELECT + SUM( + col0 ) + SUM( DISTINCT col1 + - col2 ) FROM tab1 WHERE NULL IN ( col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3815
SELECT + SUM ( + col0 ) + SUM ( DISTINCT col1 + - col2 ) FROM tab1 WHERE NULL IN ( col1 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3816
SELECT ALL 65 * + col2 * ( col2 ) - - CAST( NULL AS SIGNED ) * col2 col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3816
SELECT ALL 65 * + col2 * ( col2 ) - - CAST ( NULL AS INTEGER ) * col2 col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 82 + + 24 * col0 AS col1 FROM tab0
----
2170
2410
442

onlyif mysql # aggregate syntax: 
query I rowsort label-3818
SELECT ALL COUNT( * ) AS col2 FROM tab2 WHERE NOT + col2 + - 49 NOT IN ( col2 )
----
0

skipif mysql # not compatible
query I rowsort label-3818
SELECT ALL COUNT ( * ) AS col2 FROM tab2 WHERE NOT + col2 + - 49 NOT IN ( col2 )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 8 + + - col2 col1 FROM tab0
----
-107
-18
-55

query I rowsort
SELECT + col1 * 79 FROM tab1 WHERE NULL NOT BETWEEN col1 * + 17 AND NULL
----

query I rowsort
SELECT + 84 FROM tab2 WHERE ( NULL ) IS NULL
----
84
84
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3822
SELECT COUNT( ALL + col2 ) + 13 * - COUNT( * ) FROM tab0
----
-36

skipif mysql # not compatible
query I rowsort label-3822
SELECT COUNT ( ALL + col2 ) + 13 * - COUNT ( * ) FROM tab0
----
-36

query I rowsort
SELECT ALL + 6 * - 39 * col0 - 16 AS col2 FROM tab2
----
-10780
-14992
-17566

query I rowsort
SELECT DISTINCT + col2 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - col1 )
----

query I rowsort
SELECT 36 * - col2 + + col2 AS col1 FROM tab0 cor0
----
-1645
-3465
-350

query I rowsort
SELECT ALL + col1 - + + 63 * 64 AS col1 FROM tab1 AS cor0
----
-3985
-4018
-4027

query I rowsort
SELECT ALL - col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) = NULL
----

query III rowsort
SELECT * FROM tab0 WHERE ( - - col2 + + ( - col1 + 49 ) ) = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + ( 91 ) IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3830
SELECT COUNT( * ) + + 50 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
59

skipif mysql # not compatible
query I rowsort label-3830
SELECT COUNT ( * ) + + 50 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
59

query I rowsort
SELECT DISTINCT - + 8 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-3832
SELECT DISTINCT - ( ( - SUM( ( col1 ) ) ) ) FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-3832
SELECT DISTINCT - ( ( - SUM ( ( col1 ) ) ) ) FROM tab2 AS cor0
----
195

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE - 35 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3834
SELECT + CAST( NULL AS DECIMAL ) * + col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3834
SELECT + CAST ( NULL AS REAL ) * + col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3835
SELECT ALL + COUNT( * ) FROM tab1 cor0 WHERE ( - col2 ) NOT IN ( - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-3835
SELECT ALL + COUNT ( * ) FROM tab1 cor0 WHERE ( - col2 ) NOT IN ( - col2 )
----
0

query II rowsort
SELECT DISTINCT + col2 AS col2, col0 * ( + ( col0 ) ) FROM tab1 AS cor0
----
59
7225
68
8281
96
2601

onlyif mysql # aggregate syntax: 
query I rowsort label-3837
SELECT ALL - MAX( + + 51 ) AS col1 FROM tab0 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-3837
SELECT ALL - MAX ( + + 51 ) AS col1 FROM tab0 AS cor0
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3838
SELECT ALL - CAST( NULL AS SIGNED ) * + col0 + col0 + 30 * - col1 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3838
SELECT ALL - CAST ( NULL AS INTEGER ) * + col0 + col0 + 30 * - col1 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3839
SELECT CAST( - - col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-3839
SELECT CAST ( - - col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
14
47
5

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 + + col0 <= + 78
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3841
SELECT 50 + COUNT( * ) FROM tab1 WHERE NOT + col1 IN ( + CAST( - col2 AS SIGNED ) )
----
53

skipif mysql # not compatible
query I rowsort label-3841
SELECT 50 + COUNT ( * ) FROM tab1 WHERE NOT + col1 IN ( + CAST ( - col2 AS INTEGER ) )
----
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 96 * 48 * - 32 col1 FROM tab1
----
-147456

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL = 30 + + 34
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + ( 61 ) * col2 NOT IN ( - col0 + 93 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3845
SELECT ALL - col2 DIV + + col2 AS col2, + ( + + col2 ) AS col0 FROM tab0
----
-1
10
-1
47
-1
99

skipif mysql # not compatible
query II rowsort label-3845
SELECT ALL - col2 / + + col2 AS col2, + ( + + col2 ) AS col0 FROM tab0
----
-1
10
-1
47
-1
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3846
SELECT 27 AS col0 FROM tab1 WHERE NOT ( - - col0 ) NOT BETWEEN CAST( NULL AS SIGNED ) AND + 35 + 35 * + col0
----

skipif mysql # not compatible
query I rowsort label-3846
SELECT 27 AS col0 FROM tab1 WHERE NOT ( - - col0 ) NOT BETWEEN CAST ( NULL AS INTEGER ) AND + 35 + 35 * + col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) BETWEEN col2 AND ( 34 * - col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3848
SELECT ALL 80 DIV - 10 FROM tab0
----
-8
-8
-8

skipif mysql # not compatible
query I rowsort label-3848
SELECT ALL 80 / - 10 FROM tab0
----
-8
-8
-8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - 67 * col0 col1 FROM tab2
----
-157182
-330176
-336675

onlyif mysql # aggregate syntax: 
query I rowsort label-3850
SELECT - SUM( - - 63 ) FROM tab0
----
-189

skipif mysql # not compatible
query I rowsort label-3850
SELECT - SUM ( - - 63 ) FROM tab0
----
-189

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 75 + + col2 BETWEEN 96 + - col2 AND NULL
----

query I rowsort
SELECT ALL ( + - 81 ) FROM tab1
----
-81
-81
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 26 * - col2 col0, col0 AS col2 FROM tab0
----
-1222
15
-2574
97
-260
87

onlyif mysql # DIV for integer division: 
query II rowsort label-3854
SELECT ALL col2 DIV col1, col1 FROM tab1
----
1
47
11
5
6
14

skipif mysql # not compatible
query II rowsort label-3854
SELECT ALL col2 / col1, col1 FROM tab1
----
1
47
11
5
6
14

onlyif mysql # aggregate syntax: 
query I rowsort label-3855
SELECT DISTINCT MIN( 9 ) AS col1 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3855
SELECT DISTINCT MIN ( 9 ) AS col1 FROM tab2 AS cor0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-3856
SELECT DISTINCT 41 DIV 96 FROM tab1 AS cor0 WHERE - 92 NOT IN ( 21 )
----
0

skipif mysql # not compatible
query I rowsort label-3856
SELECT DISTINCT 41 / 96 FROM tab1 AS cor0 WHERE - 92 NOT IN ( 21 )
----
0

query I rowsort
SELECT DISTINCT + col1 + 3 FROM tab0 AS cor0
----
24
4
84

query I rowsort
SELECT - ( col1 ) * + - col0 + 49 FROM tab1 AS cor0
----
4326
474
763

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 45, + col0 col0 FROM tab2
----
45
46
45
64
45
75

query I rowsort
SELECT ALL - col0 + + 5 + + + col2 - 28 FROM tab2
----
-40
-46
-47

query I rowsort
SELECT + col2 * 51 + - col1 AS col1 FROM tab2
----
1122
1963
2891

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3862
SELECT ALL + CAST( NULL AS SIGNED ) + - 47 col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3862
SELECT ALL + CAST ( NULL AS INTEGER ) + - 47 col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col1 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3864
SELECT DISTINCT + 98 DIV - - 70 + + COUNT( * ) FROM tab1 AS cor0 WHERE NOT 26 IS NOT NULL
----
1

skipif mysql # not compatible
query I rowsort label-3864
SELECT DISTINCT + 98 / - - 70 + + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT 26 IS NOT NULL
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3865
SELECT ALL MIN( 79 ) AS col1 FROM tab1 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-3865
SELECT ALL MIN ( 79 ) AS col1 FROM tab1 AS cor0
----
79

query I rowsort
SELECT DISTINCT 6 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3867
SELECT col2 DIV - 12 - + col2 - + - 57 * + col2 * + 0 + + 29 FROM tab1 AS cor0
----
-34
-44
-75

skipif mysql # not compatible
query I rowsort label-3867
SELECT col2 / - 12 - + col2 - + - 57 * + col2 * + 0 + + 29 FROM tab1 AS cor0
----
-34
-44
-75

query I rowsort
SELECT DISTINCT col2 * + + ( - + col0 ) + - ( col2 ) FROM tab0 AS cor0
----
-752
-880
-9702

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col1 ) col1 FROM tab2 cor0
----
51
67
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3870
SELECT COUNT( DISTINCT CAST( NULL AS SIGNED ) ) * - + 70 + + AVG ( - CAST( NULL AS SIGNED ) ) + AVG ( DISTINCT col1 ) col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3870
SELECT COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) * - + 70 + + AVG ( - CAST ( NULL AS INTEGER ) ) + AVG ( DISTINCT col1 ) col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 51 AS col2 FROM tab2 AS cor0 WHERE NOT ( 18 * 53 * - 75 + col0 + ( col0 ) * + col1 ) IS NULL
----
51

query II rowsort
SELECT DISTINCT + col1 AS col2, + 33 * + - col1 * col0 + col1 AS col0 FROM tab2 AS cor0
----
51
-77367
67
-165758
77
-162547

onlyif mysql # aggregate syntax: 
query I rowsort label-3873
SELECT DISTINCT 14 + + COUNT( + + 65 ) FROM tab2
----
17

skipif mysql # not compatible
query I rowsort label-3873
SELECT DISTINCT 14 + + COUNT ( + + 65 ) FROM tab2
----
17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col0, + 56 FROM tab1
----
14
56
47
56
5
56

query I rowsort
SELECT DISTINCT + 15 + + ( + - col2 ) + 41 + + col0 FROM tab0
----
133
24
54

query II rowsort
SELECT ALL + 43 + - col1 AS col2, col1 + 32 / + col0 AS col1 FROM tab2 WHERE NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT - 33 * + + col0 * col0 FROM tab1
----
-238425
-273273
-85833

query III rowsort
SELECT ALL * FROM tab1 WHERE - col0 + + - col2 NOT IN ( col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL <> + ( + 66 ) + - - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + col2 ) + - 81 col0 FROM tab1
----
-13
-22
15

query I rowsort
SELECT - 17 AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-17
-17
-17

query II rowsort
SELECT - 65 AS col1, - 67 AS col0 FROM tab2 AS cor0
----
-65
-67
-65
-67
-65
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-3883
SELECT COUNT( * ) * - 39 AS col1 FROM tab2 WHERE NOT + col1 * + 69 + - col1 IN ( col2 )
----
-117

skipif mysql # not compatible
query I rowsort label-3883
SELECT COUNT ( * ) * - 39 AS col1 FROM tab2 WHERE NOT + col1 * + 69 + - col1 IN ( col2 )
----
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-3884
SELECT ALL COUNT( * ) * + + 82 AS col1 FROM tab0
----
246

skipif mysql # not compatible
query I rowsort label-3884
SELECT ALL COUNT ( * ) * + + 82 AS col1 FROM tab0
----
246

onlyif mysql # aggregate syntax: 
query I rowsort label-3885
SELECT - + SUM( ALL - col2 ) col2 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3885
SELECT - + SUM ( ALL - col2 ) col2 FROM tab1 AS cor0
----
223

query I rowsort
SELECT ALL - ( - ( 50 ) ) FROM tab0 AS cor0
----
50
50
50

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 83 <> col0 * - + 17
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL NOT IN ( + col0, 19 * - col1 / - - 14 )
----

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN 97 * - col0 AND - ( - 95 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3890
SELECT ALL 24 + + SUM( + 10 ) AS col1 FROM tab1
----
54

skipif mysql # not compatible
query I rowsort label-3890
SELECT ALL 24 + + SUM ( + 10 ) AS col1 FROM tab1
----
54

query I rowsort
SELECT DISTINCT - - col0 FROM tab2 WHERE NOT + 1 * - col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 88 AS col0, col2 col1 FROM tab2
----
88
23
88
40
88
58

query II rowsort
SELECT ALL 97 AS col0, 82 AS col0 FROM tab0 AS cor0 WHERE + col2 IS NULL
----

query I rowsort
SELECT - - col0 + - col0 * + 27 + - + 37 * ( - - 10 ) + - - 89 FROM tab2 cor0
----
-1477
-1945
-2231

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 20 / - col2 + - col1 + - + 58 + - - 57 <> ( NULL ) AND NOT col1 + - col1 * 19 IN ( col2 )
----

query I rowsort
SELECT - col0 + + + 45 AS col2 FROM tab1 AS cor0
----
-40
-46
-6

query I rowsort
SELECT + 89 + - + col1 FROM tab0
----
68
8
88

query III rowsort
SELECT * FROM tab1 WHERE - col0 * + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 * + ( col2 ) AS col0 FROM tab0
----
100
2209
9801

onlyif mysql # aggregate syntax: 
query I rowsort label-3900
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE ( col2 + - col2 ) <= col1 / - col1
----
0

skipif mysql # not compatible
query I rowsort label-3900
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE ( col2 + - col2 ) <= col1 / - col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3901
SELECT COUNT( * ) * 52 AS col0 FROM tab1 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-3901
SELECT COUNT ( * ) * 52 AS col0 FROM tab1 AS cor0
----
156

query I rowsort
SELECT - 43 * + + 19 FROM tab1 AS cor0
----
-817
-817
-817

query I rowsort
SELECT DISTINCT + col0 * + + 7 FROM tab2 AS cor0
----
322
448
525

query I rowsort
SELECT + col1 - ( + col0 ) FROM tab2 AS cor0
----
-8
13
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3905
SELECT DISTINCT - col2 / ( + CAST( 20 AS SIGNED ) ) col0 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col0, 2 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3905
SELECT DISTINCT - col2 / ( + CAST ( 20 AS INTEGER ) ) col0 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col0, 2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3906
SELECT - + CAST( NULL AS SIGNED ) - - - col2 + + ( - col0 ) * - col1 * + col0 col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3906
SELECT - + CAST ( NULL AS INTEGER ) - - - col2 + + ( - col0 ) * - col1 * + col0 col1 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 28 + 95 AS col2 FROM tab2 AS cor0
----
123

query I rowsort
SELECT ALL col1 * - 14 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1134
-14
-294

query I rowsort
SELECT ALL - col2 + + 93 AS col0 FROM tab1
----
-3
25
34

query I rowsort
SELECT DISTINCT 97 + 43 AS col1 FROM tab1
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-3911
SELECT - COUNT( * ) * ( 23 ) + + 63 FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-3911
SELECT - COUNT ( * ) * ( 23 ) + + 63 FROM tab0
----
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 86 / + - col2 * 14 * col1 + - col1 + - col0 * 62 col2 FROM tab1 WHERE NULL >= col2 + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3913
SELECT DISTINCT + 30 - COUNT( * ) col0 FROM tab2
----
27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3913
SELECT DISTINCT + 30 - COUNT ( * ) col0 FROM tab2
----
27

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 BETWEEN NULL AND + col0 / - - ( + - 96 ) + - - col1 - + - col2 * + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3915
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT IN ( CAST( NULL AS SIGNED ) * + - col2, col1 )
----

skipif mysql # not compatible
query III rowsort label-3915
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT IN ( CAST ( NULL AS INTEGER ) * + - col2, col1 )
----

query II rowsort
SELECT DISTINCT - col2 AS col1, col2 * + + col2 AS col1 FROM tab1 AS cor0
----
-59
3481
-68
4624
-96
9216

query II rowsort
SELECT - 66, 47 AS col2 FROM tab0 AS cor0
----
-66
47
-66
47
-66
47

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL > col0 * - col0
----

query I rowsort
SELECT - ( + 54 ) FROM tab1 AS cor0
----
-54
-54
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-3920
SELECT ALL + SUM( DISTINCT + + col0 ) * + - COUNT( * ) + + ( - SUM( col1 ) ) + - COUNT( * ) * 21 AS col1 FROM tab2 AS cor0
----
-813

skipif mysql # not compatible
query I rowsort label-3920
SELECT ALL + SUM ( DISTINCT + + col0 ) * + - COUNT ( * ) + + ( - SUM ( col1 ) ) + - COUNT ( * ) * 21 AS col1 FROM tab2 AS cor0
----
-813

query I rowsort
SELECT + col2 * 87 + - col1 FROM tab2 AS cor0
----
1950
3403
4979

query II rowsort
SELECT + ( - col2 ) AS col2, col2 FROM tab2
----
-23
23
-40
40
-58
58

query I rowsort
SELECT + col2 * + - 64 AS col1 FROM tab2
----
-1472
-2560
-3712

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 <= + col1 - - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 < 31 * col1 * + - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - - ( 65 ) FROM tab0 AS cor0
----
65
65
65

query I rowsort
SELECT DISTINCT - 41 * + + 64 FROM tab1
----
-2624

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3928
SELECT DISTINCT 35 * + 74 * + col0 * - CAST( col1 AS SIGNED ) FROM tab0 AS cor0
----
-251230
-3146850
-4731930

skipif mysql # not compatible
query I rowsort label-3928
SELECT DISTINCT 35 * + 74 * + col0 * - CAST ( col1 AS INTEGER ) FROM tab0 AS cor0
----
-251230
-3146850
-4731930

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3929
SELECT * FROM tab0 cor0 WHERE col0 = CAST( + col2 AS SIGNED ) + - col2
----

skipif mysql # not compatible
query III rowsort label-3929
SELECT * FROM tab0 cor0 WHERE col0 = CAST ( + col2 AS INTEGER ) + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3930
SELECT ALL ( + MAX( DISTINCT + + 0 ) ) + ( - - MIN( ALL - + col2 ) ) FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-3930
SELECT ALL ( + MAX ( DISTINCT + + 0 ) ) + ( - - MIN ( ALL - + col2 ) ) FROM tab1 AS cor0
----
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-3931
SELECT ALL - 24 DIV col1 FROM tab0 AS cor0
----
-1
-24
0

skipif mysql # not compatible
query I rowsort label-3931
SELECT ALL - 24 / col1 FROM tab0 AS cor0
----
-1
-24
0

query I rowsort
SELECT DISTINCT - 84 - - col1 FROM tab0 AS cor0
----
-3
-63
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3933
SELECT CAST( NULL AS SIGNED ) / 60 * - + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3933
SELECT CAST ( NULL AS INTEGER ) / 60 * - + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL > - 87
----

query I rowsort
SELECT + ( - ( + col1 ) ) * 55 + - col2 FROM tab1 AS cor0
----
-2653
-334
-866

query I rowsort
SELECT ALL 35 AS col0 FROM tab2 cor0
----
35
35
35

query III rowsort
SELECT * FROM tab2 cor0 WHERE 79 * 65 / + 40 + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 6 * + - 96 AS col0 FROM tab1 AS cor0
----
576
576
576

query I rowsort
SELECT col1 * + + col1 - + + col0 AS col0 FROM tab2 AS cor0
----
2555
4414
5865

query I rowsort
SELECT + 25 AS col0 FROM tab0 WHERE - ( + 93 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3941
SELECT 68 * SUM( + col2 ) AS col0 FROM tab0
----
10608

skipif mysql # not compatible
query I rowsort label-3941
SELECT 68 * SUM ( + col2 ) AS col0 FROM tab0
----
10608

query I rowsort
SELECT ALL 6 + + 24 + + 79 FROM tab1
----
109
109
109

query II rowsort
SELECT col1 - - col1 + + - col2 * 20 * - + ( + 46 ) - 3, - col1 * + + col1 * + - col0 AS col2 FROM tab1
----
54287
2125
62651
201019
88345
9996

query I rowsort
SELECT ALL + 70 + + 9 FROM tab1
----
79
79
79

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( - + 68 * + col1, col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3946
SELECT DISTINCT CAST( - - MIN( ALL - 58 ) AS SIGNED ) FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-3946
SELECT DISTINCT CAST ( - - MIN ( ALL - 58 ) AS INTEGER ) FROM tab2
----
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-3947
SELECT ALL + SUM( 98 ) AS col2, 83 FROM tab2 AS cor0
----
294
83

skipif mysql # not compatible
query II rowsort label-3947
SELECT ALL + SUM ( 98 ) AS col2, 83 FROM tab2 AS cor0
----
294
83

query II rowsort
SELECT ALL col0, + col1 * 25 AS col0 FROM tab0
----
15
2025
87
525
97
25

query I rowsort
SELECT DISTINCT 98 * + col1 * - - 86 AS col0 FROM tab1
----
117992
396116
42140

onlyif mysql # aggregate syntax: 
query I rowsort label-3950
SELECT ALL + + SUM( DISTINCT col2 ) AS col2 FROM tab2 cor0
----
121

skipif mysql # not compatible
query I rowsort label-3950
SELECT ALL + + SUM ( DISTINCT col2 ) AS col2 FROM tab2 cor0
----
121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3951
SELECT DISTINCT + - MAX( ALL - 84 ) * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3951
SELECT DISTINCT + - MAX ( ALL - 84 ) * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3952
SELECT + + col0, CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-3952
SELECT + + col0, CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
51
NULL
85
NULL
91
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3953
SELECT DISTINCT * FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) = + col2
----

skipif mysql # not compatible
query III rowsort label-3953
SELECT DISTINCT * FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) = + col2
----

query I rowsort
SELECT DISTINCT + col0 + - 87 FROM tab1
----
-2
-36
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 37 + + + col0 + + - col1 + + 10 col0 FROM tab0
----
-19
113
143

query I rowsort
SELECT ALL col0 * + - 22 AS col0 FROM tab2
----
-1012
-1408
-1650

onlyif mysql # aggregate syntax: 
query I rowsort label-3957
SELECT DISTINCT + COUNT( * ) + - 24 FROM tab2
----
-21

skipif mysql # not compatible
query I rowsort label-3957
SELECT DISTINCT + COUNT ( * ) + - 24 FROM tab2
----
-21

query I rowsort
SELECT DISTINCT + col1 * - ( col0 ) FROM tab1
----
-425
-4277
-714

query I rowsort
SELECT - col2 + 7 * + + ( - + col2 ) * col1 - col0 FROM tab1 AS cor0
----
-2209
-22531
-9555

onlyif mysql # DIV for integer division: 
query II rowsort label-3960
SELECT ALL + - col0 AS col2, - col0 + col1 + + 98 DIV + + col1 FROM tab0 AS cor0
----
-15
67
-87
-62
-97
2

skipif mysql # not compatible
query II rowsort label-3960
SELECT ALL + - col0 AS col2, - col0 + col1 + + 98 / + + col1 FROM tab0 AS cor0
----
-15
67
-87
-62
-97
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3961
SELECT COUNT( * ) DIV + ( - - 2 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
4

skipif mysql # not compatible
query I rowsort label-3961
SELECT COUNT ( * ) / + ( - - 2 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
4

query I rowsort
SELECT ALL - col0 + - 36 * + col1 FROM tab2
----
-1882
-2487
-2836

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3963
SELECT ALL + col2 * + CAST( NULL AS SIGNED ) * + ( + - 19 ) - - 49 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3963
SELECT ALL + col2 * + CAST ( NULL AS INTEGER ) * + ( + - 19 ) - - 49 AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3964
SELECT + + MAX( + col0 ) FROM tab0 AS cor0 WHERE 86 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3964
SELECT + + MAX ( + col0 ) FROM tab0 AS cor0 WHERE 86 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3965
SELECT - COUNT( DISTINCT - col1 ) - + 94 + + 81 AS col1 FROM tab2 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-3965
SELECT - COUNT ( DISTINCT - col1 ) - + 94 + + 81 AS col1 FROM tab2 AS cor0
----
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3966
SELECT + 89 + + 45 + 73 DIV - COUNT( * ) FROM tab0 AS cor0
----
110

skipif mysql # not compatible
query I rowsort label-3966
SELECT + 89 + + 45 + 73 / - COUNT ( * ) FROM tab0 AS cor0
----
110

query I rowsort
SELECT ALL + ( - col1 ) + - 97 FROM tab0 AS cor0
----
-118
-178
-98

query I rowsort
SELECT col1 * + 80 FROM tab1
----
1120
3760
400

query I rowsort
SELECT ALL 3 * - 10 * + - ( col1 ) AS col1 FROM tab0
----
2430
30
630

onlyif mysql # DIV for integer division: 
query I rowsort label-3970
SELECT DISTINCT - col0 DIV + col1 AS col0 FROM tab1
----
-1
-17
-3

skipif mysql # not compatible
query I rowsort label-3970
SELECT DISTINCT - col0 / + col1 AS col0 FROM tab1
----
-1
-17
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3971
SELECT CAST( + 46 AS SIGNED ) col0 FROM tab0
----
46
46
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3971
SELECT CAST ( + 46 AS INTEGER ) col0 FROM tab0
----
46
46
46

query II rowsort
SELECT - col1 AS col0, 11 FROM tab2
----
-51
11
-67
11
-77
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3973
SELECT + MIN( - - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3973
SELECT + MIN ( - - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col1 ) col2 FROM tab2 cor0
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-3975
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE - CAST( - 3 AS SIGNED ) <> 30
----
54 values hashing to 375f372843089b03f23b00160007527a

skipif mysql # not compatible
query IIIIII rowsort label-3975
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE - CAST ( - 3 AS INTEGER ) <> 30
----
54 values hashing to 375f372843089b03f23b00160007527a

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3976
SELECT col2 * + + 75 AS col0, col2 / - ( + CAST( NULL AS SIGNED ) ) FROM tab0
----
3525
NULL
7425
NULL
750
NULL

skipif mysql # not compatible
query II rowsort label-3976
SELECT col2 * + + 75 AS col0, col2 / - ( + CAST ( NULL AS INTEGER ) ) FROM tab0
----
3525
NULL
7425
NULL
750
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3977
SELECT DISTINCT MIN( DISTINCT - 44 ) * COUNT( 44 ) FROM tab0
----
-132

skipif mysql # not compatible
query I rowsort label-3977
SELECT DISTINCT MIN ( DISTINCT - 44 ) * COUNT ( 44 ) FROM tab0
----
-132

query I rowsort
SELECT 54 * 31 AS col1 FROM tab1
----
1674
1674
1674

onlyif mysql # DIV for integer division: 
query I rowsort label-3979
SELECT DISTINCT - col1 DIV + col2 + - col0 * + 79 + - ( 99 ) AS col2 FROM tab1 AS cor0
----
-4128
-6814
-7288

skipif mysql # not compatible
query I rowsort label-3979
SELECT DISTINCT - col1 / + col2 + - col0 * + 79 + - ( 99 ) AS col2 FROM tab1 AS cor0
----
-4128
-6814
-7288

query I rowsort
SELECT 18 + + + ( - + 75 ) FROM tab0 AS cor0
----
-57
-57
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-3981
SELECT DISTINCT + SUM( DISTINCT - + col1 ) FROM tab1 cor0
----
-66

skipif mysql # not compatible
query I rowsort label-3981
SELECT DISTINCT + SUM ( DISTINCT - + col1 ) FROM tab1 cor0
----
-66

query I rowsort
SELECT + 69 * + col0 + - 85 FROM tab1 AS cor0
----
3434
5780
6194

query I rowsort
SELECT + - col2 + - - ( col2 ) AS col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3984
SELECT ALL + ( - ( - + COUNT( * ) ) ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3984
SELECT ALL + ( - ( - + COUNT ( * ) ) ) AS col2 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3985
SELECT DISTINCT - MIN( DISTINCT + 37 ) AS col2 FROM tab2
----
-37

skipif mysql # not compatible
query I rowsort label-3985
SELECT DISTINCT - MIN ( DISTINCT + 37 ) AS col2 FROM tab2
----
-37

query I rowsort
SELECT ALL 95 + + - col0 FROM tab2
----
20
31
49

onlyif mysql # aggregate syntax: 
query I rowsort label-3987
SELECT SUM( + - 55 ) AS col1 FROM tab0
----
-165

skipif mysql # not compatible
query I rowsort label-3987
SELECT SUM ( + - 55 ) AS col1 FROM tab0
----
-165

onlyif mysql # aggregate syntax: 
query I rowsort label-3988
SELECT DISTINCT COUNT( * ) + - COUNT( * ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3988
SELECT DISTINCT COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3989
SELECT ALL - 2 DIV + - col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3989
SELECT ALL - 2 / + - col0 FROM tab0
----
0
0
0

query I rowsort
SELECT 31 * col0 * + + col0 AS col2 FROM tab2
----
126976
174375
65596

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - - col2 ) NOT BETWEEN col0 AND NULL
----
87
21
10

query I rowsort
SELECT ALL col0 + - + col2 - + 1 AS col2 FROM tab0
----
-3
-33
76

query II rowsort
SELECT ALL col1 AS col2, - col1 AS col1 FROM tab2
----
51
-51
67
-67
77
-77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3994
SELECT DISTINCT * FROM tab1 WHERE NOT CAST( - 1 AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3994
SELECT DISTINCT * FROM tab1 WHERE NOT CAST ( - 1 AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3995
SELECT - CAST( CAST( + ( MAX( DISTINCT + - col2 ) ) AS SIGNED ) AS SIGNED ) AS col0, 46 FROM tab2 AS cor0
----
23
46

skipif mysql # not compatible
query II rowsort label-3995
SELECT - CAST ( CAST ( + ( MAX ( DISTINCT + - col2 ) ) AS INTEGER ) AS INTEGER ) AS col0, 46 FROM tab2 AS cor0
----
23
46

query I rowsort
SELECT - col0 FROM tab2 AS cor0 WHERE + col0 IS NOT NULL
----
-46
-64
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3997
SELECT + col2 - - CAST( - col0 AS SIGNED ) FROM tab0 AS cor0
----
-77
2
32

skipif mysql # not compatible
query I rowsort label-3997
SELECT + col2 - - CAST ( - col0 AS INTEGER ) FROM tab0 AS cor0
----
-77
2
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3998
SELECT + CAST( col1 AS SIGNED ) + - col0 FROM tab0
----
-66
-96
66

skipif mysql # not compatible
query I rowsort label-3998
SELECT + CAST ( col1 AS INTEGER ) + - col0 FROM tab0
----
-66
-96
66

query I rowsort
SELECT DISTINCT + - 63 - + - 41 AS col1 FROM tab2 AS cor0
----
-22

query II rowsort
SELECT ALL + - 81 AS col2, ( - col0 ) FROM tab1 cor0
----
-81
-51
-81
-85
-81
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4001
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE 43 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4001
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE 43 IS NOT NULL
----
-3

query I rowsort
SELECT - 58 * + + ( ( col1 ) ) FROM tab1 AS cor0
----
-2726
-290
-812

query I rowsort
SELECT - + 56 * col1 * + 92 AS col0 FROM tab0 AS cor0
----
-108192
-417312
-5152

query II rowsort
SELECT ALL - col0, - 72 * col1 AS col2 FROM tab0 AS cor0
----
-15
-5832
-87
-1512
-97
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-4005
SELECT ALL COUNT( * ) * - - MIN( - col0 ) FROM tab2 AS cor0
----
-225

skipif mysql # not compatible
query I rowsort label-4005
SELECT ALL COUNT ( * ) * - - MIN ( - col0 ) FROM tab2 AS cor0
----
-225

query II rowsort
SELECT DISTINCT + col2 * - + col2 AS col1, - col2 AS col0 FROM tab1
----
-3481
-59
-4624
-68
-9216
-96

query I rowsort
SELECT DISTINCT col0 * - 78 FROM tab1
----
-3978
-6630
-7098

query I rowsort
SELECT DISTINCT col2 * - 26 * - col0 AS col0 FROM tab1
----
127296
130390
160888

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4009
SELECT DISTINCT * FROM tab1 WHERE NOT + - col2 * 0 + col0 NOT IN ( + col1, CAST( NULL AS SIGNED ), - + CAST( NULL AS SIGNED ), 48 * - 21 )
----

skipif mysql # not compatible
query III rowsort label-4009
SELECT DISTINCT * FROM tab1 WHERE NOT + - col2 * 0 + col0 NOT IN ( + col1, CAST ( NULL AS INTEGER ), - + CAST ( NULL AS INTEGER ), 48 * - 21 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4010
SELECT ALL - ( - COUNT( * ) ) col1 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4010
SELECT ALL - ( - COUNT ( * ) ) col1 FROM tab0
----
3

query I rowsort
SELECT + - col0 FROM tab0 WHERE NOT - - 9 IS NULL
----
-15
-87
-97

query I rowsort
SELECT + ( + + col0 ) AS col2 FROM tab2 cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4013
SELECT DISTINCT + + MIN( col0 ) AS col2 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-4013
SELECT DISTINCT + + MIN ( col0 ) AS col2 FROM tab0 AS cor0
----
15

query I rowsort
SELECT DISTINCT - 66 * - col1 FROM tab2 AS cor0
----
3366
4422
5082

query I rowsort
SELECT DISTINCT col0 FROM tab2 AS cor0 WHERE col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - ( 52 ) + col2 AS col0 FROM tab1 cor0 WHERE ( NULL ) NOT BETWEEN + + col1 - + 70 / col0 AND NULL
----

query II rowsort
SELECT DISTINCT - - col1 * 69, + 97 AS col2 FROM tab1 AS cor0
----
3243
97
345
97
966
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4018
SELECT MIN( DISTINCT + - 85 ) col0 FROM tab0 cor0
----
-85

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4018
SELECT MIN ( DISTINCT + - 85 ) col0 FROM tab0 cor0
----
-85

query I rowsort
SELECT ALL col1 * + col0 + col2 + 87 + - - col0 * - col0 FROM tab0 AS cor0
----
-5645
-9126
1124

query I rowsort
SELECT col2 FROM tab2 WHERE NOT NULL IN ( - 50 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4021
SELECT + CAST( NULL AS SIGNED ) + - 42 AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4021
SELECT + CAST ( NULL AS INTEGER ) + - 42 AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query II rowsort
SELECT ALL + col1 AS col0, col0 * - + 59 AS col2 FROM tab2 AS cor0
----
51
-2714
67
-4425
77
-3776

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4023
SELECT + col0 * col2 * + 82 + - col0 * + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4023
SELECT + col0 * col2 * + 82 + - col0 * + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4024
SELECT DISTINCT + SUM( + + col1 ) + - + COUNT( ALL col0 ) AS col2 FROM tab0 AS cor0
----
100

skipif mysql # not compatible
query I rowsort label-4024
SELECT DISTINCT + SUM ( + + col1 ) + - + COUNT ( ALL col0 ) AS col2 FROM tab0 AS cor0
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-4025
SELECT SUM( ALL + + 94 ) FROM tab0 AS cor0
----
282

skipif mysql # not compatible
query I rowsort label-4025
SELECT SUM ( ALL + + 94 ) FROM tab0 AS cor0
----
282

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4026
SELECT 24 / - - MAX( + col2 ) + - - COUNT( * ) * + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4026
SELECT 24 / - - MAX ( + col2 ) + - - COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 65 * ( col0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-4028
SELECT ALL + col1 DIV - col2 + + 85 FROM tab1
----
85
85
85

skipif mysql # not compatible
query I rowsort label-4028
SELECT ALL + col1 / - col2 + + 85 FROM tab1
----
85
85
85

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NOT + col1 >= NULL )
----

query I rowsort
SELECT - 51 + ( + + 77 ) FROM tab1
----
26
26
26

query I rowsort
SELECT ALL col0 * + col1 + - 14 FROM tab1
----
411
4263
700

query I rowsort
SELECT + 97 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4033
SELECT ALL col1 DIV - 62 + - col0 FROM tab2
----
-46
-65
-76

skipif mysql # not compatible
query I rowsort label-4033
SELECT ALL col1 / - 62 + - col0 FROM tab2
----
-46
-65
-76

query II rowsort
SELECT col0 + + col1 AS col0, - col1 FROM tab2
----
141
-77
142
-67
97
-51

query III rowsort
SELECT * FROM tab1 WHERE + + 11 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4036
SELECT + + COUNT( * ) DIV COUNT( * ) col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4036
SELECT + + COUNT ( * ) / COUNT ( * ) col1 FROM tab0 AS cor0
----
1

query II rowsort
SELECT + col2 * - - col0 AS col0, 69 - + - 28 FROM tab2 AS cor0
----
1058
97
2560
97
4350
97

query I rowsort
SELECT DISTINCT 77 + + col2 + - + col2 FROM tab0
----
77

query I rowsort
SELECT - 74 * + col0 FROM tab0 cor0
----
-1110
-6438
-7178

query II rowsort
SELECT - 19 AS col1, + 9 * + 87 * - 12 * - col0 + + ( + 99 ) FROM tab2 AS cor0
----
-19
432315
-19
601443
-19
704799

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4041
SELECT + col1 * - CAST( + col1 AS SIGNED ) * + - col0 AS col2 FROM tab1
----
201019
2125
9996

skipif mysql # not compatible
query I rowsort label-4041
SELECT + col1 * - CAST ( + col1 AS INTEGER ) * + - col0 AS col2 FROM tab1
----
201019
2125
9996

query I rowsort
SELECT - ( - col1 ) * + 65 AS col0 FROM tab1
----
3055
325
910

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4043
SELECT * FROM tab2 WHERE NOT + 36 * - ( + col0 ) + + - col0 * ( + CAST( - + col0 AS SIGNED ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4043
SELECT * FROM tab2 WHERE NOT + 36 * - ( + col0 ) + + - col0 * ( + CAST ( - + col0 AS INTEGER ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - ( + 85 ) FROM tab0
----
-85
-85
-85

query I rowsort
SELECT - 29 * + col0 AS col1 FROM tab2
----
-1334
-1856
-2175

onlyif mysql # aggregate syntax: 
query I rowsort label-4046
SELECT MAX( DISTINCT - + 85 ) FROM tab2 AS cor0
----
-85

skipif mysql # not compatible
query I rowsort label-4046
SELECT MAX ( DISTINCT - + 85 ) FROM tab2 AS cor0
----
-85

query I rowsort
SELECT ALL + col1 * - + col0 - - col2 FROM tab0 AS cor0 WHERE - col0 IS NOT NULL
----
-1168
-1817
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4048
SELECT DISTINCT - COUNT( * ) + - COUNT( * ) AS col2 FROM tab2 cor0
----
-6

skipif mysql # not compatible
query I rowsort label-4048
SELECT DISTINCT - COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab2 cor0
----
-6

query I rowsort
SELECT 14 FROM tab1 cor0 JOIN tab1 AS cor1 ON NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT 16 + - 41 FROM tab2
----
-25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 * + col2 col0, col2 * - 1 FROM tab0 cor0
----
-210
-10
-3807
-47
-99
-99

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4052
SELECT + COUNT( * ) * - CAST( NULL AS DECIMAL ) / + + COUNT( * ) + + + 10 - - AVG ( ALL - 59 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4052
SELECT + COUNT ( * ) * - CAST ( NULL AS REAL ) / + + COUNT ( * ) + + + 10 - - AVG ( ALL - 59 ) FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT 7 AS col0, col2 FROM tab2 AS cor0 WHERE ( NULL ) <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 51 * col1 col1 FROM tab2 cor0
----
2601
3417
3927

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4055
SELECT + 54 AS col0 FROM tab2 AS cor0 WHERE - col1 <> - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-4055
SELECT + 54 AS col0 FROM tab2 AS cor0 WHERE - col1 <> - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT - ( 67 ) * - - col1 + - col2 AS col1 FROM tab0 AS cor0
----
-1417
-166
-5474

query I rowsort
SELECT DISTINCT - col2 + - 17 + - col2 - - 92 AS col1 FROM tab2 cor0
----
-41
-5
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4058
SELECT - SUM( ALL + - 92 ) + 58 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4058
SELECT - SUM ( ALL + - 92 ) + 58 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4059
SELECT - MAX( DISTINCT - + col2 ) col0 FROM tab1
----
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4059
SELECT - MAX ( DISTINCT - + col2 ) col0 FROM tab1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4060
SELECT + MAX( ALL + col1 ) - COUNT( * ) FROM tab1 WHERE NULL IS NULL
----
44

skipif mysql # not compatible
query I rowsort label-4060
SELECT + MAX ( ALL + col1 ) - COUNT ( * ) FROM tab1 WHERE NULL IS NULL
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-4061
SELECT ALL + COUNT( * ) - - + 58 FROM tab0
----
61

skipif mysql # not compatible
query I rowsort label-4061
SELECT ALL + COUNT ( * ) - - + 58 FROM tab0
----
61

onlyif mysql # DIV for integer division: 
query I rowsort label-4062
SELECT DISTINCT 91 DIV + 97 * - col0 - col0 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-4062
SELECT DISTINCT 91 / + 97 * - col0 - col0 FROM tab2
----
-46
-64
-75

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 33 * + + 57 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4064
SELECT ALL + ( COUNT( * ) ) DIV + MIN( 19 ) FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-4064
SELECT ALL + ( COUNT ( * ) ) / + MIN ( 19 ) FROM tab2 cor0
----
0

query I rowsort
SELECT 32 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to d30a2acbf33c88274474306936d3227b

query I rowsort
SELECT col2 + + - 19 FROM tab0
----
-9
28
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4067
SELECT ALL - COUNT( * ) * - MIN( + - 60 ) AS col0 FROM tab0
----
-180

skipif mysql # not compatible
query I rowsort label-4067
SELECT ALL - COUNT ( * ) * - MIN ( + - 60 ) AS col0 FROM tab0
----
-180

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 > - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 NOT BETWEEN 55 + - 43 AND NULL
----

query I rowsort
SELECT DISTINCT - + 22 AS col0 FROM tab0 AS cor0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-4071
SELECT + MIN( ALL - col2 ) FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-4071
SELECT + MIN ( ALL - col2 ) FROM tab1 AS cor0
----
-96

query I rowsort
SELECT ( - - col1 ) * - - 43 AS col0 FROM tab2 AS cor0
----
2193
2881
3311

query I rowsort
SELECT DISTINCT + 2 * + + col1 AS col0 FROM tab0 AS cor0
----
162
2
42

query I rowsort
SELECT - + col1 * + col2 - - col1 AS col0 FROM tab1 AS cor0
----
-1330
-290
-3149

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4075
SELECT DISTINCT + ( - + CAST( - ( - 81 ) AS SIGNED ) ) FROM tab2
----
-81

skipif mysql # not compatible
query I rowsort label-4075
SELECT DISTINCT + ( - + CAST ( - ( - 81 ) AS INTEGER ) ) FROM tab2
----
-81

query I rowsort
SELECT 22 * - - 52 FROM tab0
----
1144
1144
1144

query II rowsort
SELECT + 30, - col0 / + col2 / + col0 AS col1 FROM tab2 WHERE NOT ( NOT - col0 * + col0 >= NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4078
SELECT DISTINCT + COUNT( * ), + 77 AS col1 FROM tab1
----
3
77

skipif mysql # not compatible
query II rowsort label-4078
SELECT DISTINCT + COUNT ( * ), + 77 AS col1 FROM tab1
----
3
77

query I rowsort
SELECT ( col2 ) * + 87 FROM tab0
----
4089
8613
870

onlyif mysql # aggregate syntax: 
query I rowsort label-4080
SELECT DISTINCT MAX( ALL - col1 ) * - + COUNT( * ) + - SUM( col1 ) FROM tab0
----
-100

skipif mysql # not compatible
query I rowsort label-4080
SELECT DISTINCT MAX ( ALL - col1 ) * - + COUNT ( * ) + - SUM ( col1 ) FROM tab0
----
-100

onlyif mysql # aggregate syntax: 
query II rowsort label-4081
SELECT ALL + MAX( ALL - col0 ) * - - 82, 70 AS col2 FROM tab1 AS cor0
----
-4182
70

skipif mysql # not compatible
query II rowsort label-4081
SELECT ALL + MAX ( ALL - col0 ) * - - 82, 70 AS col2 FROM tab1 AS cor0
----
-4182
70

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col1 * col2 + - 21 + - - col1 * - col1 + - col2 + 54 <> + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 88 + + - col0 col2 FROM tab2 AS cor0
----
-134
-152
-163

onlyif mysql # aggregate syntax: 
query I rowsort label-4084
SELECT + COUNT( * ) FROM tab2 cor0 WHERE + 17 + - 41 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4084
SELECT + COUNT ( * ) FROM tab2 cor0 WHERE + 17 + - 41 IS NULL
----
0

query III rowsort
SELECT * FROM tab0 WHERE NULL > 87
----

query I rowsort
SELECT ALL - + ( - - col0 ) * 61 FROM tab1 AS cor0
----
-3111
-5185
-5551

onlyif mysql # aggregate syntax: 
query I rowsort label-4087
SELECT ALL ( - SUM( 10 ) ) * COUNT( * ) FROM tab1 cor0
----
-90

skipif mysql # not compatible
query I rowsort label-4087
SELECT ALL ( - SUM ( 10 ) ) * COUNT ( * ) FROM tab1 cor0
----
-90

query I rowsort
SELECT + col1 * - - 74 FROM tab0 AS cor0
----
1554
5994
74

query I rowsort
SELECT DISTINCT + AVG ( DISTINCT - - col2 ) FROM tab2 AS cor0 WHERE NOT - col2 IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4090
SELECT DISTINCT + - col1 * 72 + + col1 DIV + - col1 AS col0, + 5 col0 FROM tab2 AS cor0
----
-3673
5
-4825
5
-5545
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4090
SELECT DISTINCT + - col1 * 72 + + col1 / + - col1 AS col0, + 5 col0 FROM tab2 AS cor0
----
-3673
5
-4825
5
-5545
5

onlyif mysql # DIV for integer division: 
query II rowsort label-4091
SELECT DISTINCT col2 DIV + col1 + col1 * col1 AS col1, + col0 FROM tab0 AS cor0
----
100
97
441
87
6561
15

skipif mysql # not compatible
query II rowsort label-4091
SELECT DISTINCT col2 / + col1 + col1 * col1 AS col1, + col0 FROM tab0 AS cor0
----
100
97
441
87
6561
15

query I rowsort
SELECT ALL 12 + + 88 + - col2 * + - col2 FROM tab2
----
1700
3464
629

query I rowsort
SELECT DISTINCT - 59 FROM tab0 WHERE NOT - - col1 NOT BETWEEN + col0 AND NULL
----

query I rowsort
SELECT col2 * + + 25 + + ( - col1 ) AS col1 FROM tab2
----
1383
524
923

query I rowsort
SELECT DISTINCT + col2 * - - col0 + + - col1 + + col1 - + col2 * ( + 76 ) * + + col0 * + col0 FROM tab1
----
-18972000
-32391885
-42790020

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4096
SELECT ALL col2 - + CAST( NULL AS SIGNED ), - col0 AS col2 FROM tab0
----
NULL
-15
NULL
-87
NULL
-97

skipif mysql # not compatible
query II rowsort label-4096
SELECT ALL col2 - + CAST ( NULL AS INTEGER ), - col0 AS col2 FROM tab0
----
NULL
-15
NULL
-87
NULL
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4097
SELECT ALL + CAST( NULL AS SIGNED ) AS col0 FROM tab1 cor0 WHERE NOT - CAST( NULL AS SIGNED ) >= + + col0
----

skipif mysql # not compatible
query I rowsort label-4097
SELECT ALL + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 cor0 WHERE NOT - CAST ( NULL AS INTEGER ) >= + + col0
----

query I rowsort
SELECT - + 53 * - - col0 FROM tab1 AS cor0
----
-2703
-4505
-4823

query I rowsort
SELECT + - 56 - - ( + 58 ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

query IIIIII rowsort
SELECT * FROM tab2 cor0 INNER JOIN tab1 AS cor1 ON + 89 IS NOT NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

onlyif mysql # aggregate syntax: 
query I rowsort label-4101
SELECT DISTINCT + SUM( DISTINCT + 88 ) FROM tab0 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-4101
SELECT DISTINCT + SUM ( DISTINCT + 88 ) FROM tab0 AS cor0
----
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 96 col1 FROM tab2 AS cor0
----
96
96
96

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT IN ( 73, col0, + 44 )
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT 1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE NOT col1 / col0 IS NULL
----
-10
-47
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-4106
SELECT ALL - col1 DIV + col1 + + + 37 AS col0 FROM tab1 cor0
----
36
36
36

skipif mysql # not compatible
query I rowsort label-4106
SELECT ALL - col1 / + col1 + + + 37 AS col0 FROM tab1 cor0
----
36
36
36

query I rowsort
SELECT ALL 5 * + col0 FROM tab2 cor0
----
230
320
375

query I rowsort
SELECT - col1 FROM tab1 WHERE - col1 IS NULL AND - 70 >= + - col0
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL IN ( + col0, col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4110
SELECT DISTINCT MAX( col1 ) col0 FROM tab1
----
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4110
SELECT DISTINCT MAX ( col1 ) col0 FROM tab1
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-4111
SELECT col2 DIV + 15 AS col2 FROM tab0
----
0
3
6

skipif mysql # not compatible
query I rowsort label-4111
SELECT col2 / + 15 AS col2 FROM tab0
----
0
3
6

query I rowsort
SELECT col2 * + 37 AS col2 FROM tab1
----
2183
2516
3552

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4113
SELECT ALL * FROM tab2 WHERE NOT CAST( NULL AS DECIMAL ) BETWEEN + col2 AND col1
----

skipif mysql # not compatible
query III rowsort label-4113
SELECT ALL * FROM tab2 WHERE NOT CAST ( NULL AS REAL ) BETWEEN + col2 AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4114
SELECT SUM( - 1 ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-4114
SELECT SUM ( - 1 ) AS col1 FROM tab1
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4115
SELECT ALL + - CAST( + + ( 50 ) AS SIGNED ) FROM tab0 AS cor0
----
-50
-50
-50

skipif mysql # not compatible
query I rowsort label-4115
SELECT ALL + - CAST ( + + ( 50 ) AS INTEGER ) FROM tab0 AS cor0
----
-50
-50
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-4116
SELECT ALL - MIN( ALL - 51 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
51

skipif mysql # not compatible
query I rowsort label-4116
SELECT ALL - MIN ( ALL - 51 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
51

query I rowsort
SELECT col0 + + col0 + - + col2 AS col2 FROM tab2
----
69
88
92

query II rowsort
SELECT + 64 AS col2, 50 FROM tab0 AS cor0 WHERE + col0 IS NOT NULL
----
64
50
64
50
64
50

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 + + 56 IS NULL
----

query I rowsort
SELECT ALL + 61 + - 68 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-7
-7
-7

query I rowsort
SELECT 80 FROM tab0 AS cor0 WHERE NULL IS NULL
----
80
80
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4122
SELECT ALL - CAST( + 61 AS SIGNED ) - - col2 AS col2 FROM tab2 AS cor0
----
-21
-3
-38

skipif mysql # not compatible
query I rowsort label-4122
SELECT ALL - CAST ( + 61 AS INTEGER ) - - col2 AS col2 FROM tab2 AS cor0
----
-21
-3
-38

query III rowsort
SELECT * FROM tab2 cor0 WHERE 69 + + - col1 / - col2 IS NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE col1 - + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4125
SELECT DISTINCT - 66 * - + COUNT( * ) + - COUNT( DISTINCT + + 75 ) FROM tab2 AS cor0
----
197

skipif mysql # not compatible
query I rowsort label-4125
SELECT DISTINCT - 66 * - + COUNT ( * ) + - COUNT ( DISTINCT + + 75 ) FROM tab2 AS cor0
----
197

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 73 * - col2 col2 FROM tab2 AS cor0
----
-1679
-2920
-4234

query I rowsort
SELECT ALL + 25 AS col2 FROM tab1 cor0 WHERE NULL < + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4128
SELECT ALL SUM( ALL + 38 ) AS col0 FROM tab2
----
114

skipif mysql # not compatible
query I rowsort label-4128
SELECT ALL SUM ( ALL + 38 ) AS col0 FROM tab2
----
114

query II rowsort
SELECT DISTINCT - 31 AS col1, - col0 FROM tab1
----
-31
-51
-31
-85
-31
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4130
SELECT DISTINCT - SUM( DISTINCT - col2 ) + COUNT( + + col1 ) DIV 68 AS col2 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-4130
SELECT DISTINCT - SUM ( DISTINCT - col2 ) + COUNT ( + + col1 ) / 68 AS col2 FROM tab0
----
156

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col2 FROM tab0 WHERE 86 BETWEEN NULL AND + 9 * + col0 - col0
----

query I rowsort
SELECT col2 - - col0 - ( ( col1 ) ) AS col0 FROM tab1
----
112
133
139

query I rowsort
SELECT col2 - + + 66 AS col2 FROM tab2
----
-26
-43
-8

query I rowsort
SELECT + col2 FROM tab0 WHERE + col1 BETWEEN NULL AND - + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4135
SELECT DISTINCT COUNT( * ) + MAX( + col0 ) AS col2 FROM tab2
----
78

skipif mysql # not compatible
query I rowsort label-4135
SELECT DISTINCT COUNT ( * ) + MAX ( + col0 ) AS col2 FROM tab2
----
78

query I rowsort
SELECT ALL 95 - + 32 + - col0 AS col1 FROM tab1
----
-22
-28
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4137
SELECT - 45 DIV 64 AS col1, SUM( col0 ) FROM tab0 cor0 WHERE ( - 84 ) * + 7 + col2 IS NULL
----
0
NULL

skipif mysql # not compatible
query II rowsort label-4137
SELECT - 45 / 64 AS col1, SUM ( col0 ) FROM tab0 cor0 WHERE ( - 84 ) * + 7 + col2 IS NULL
----
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4138
SELECT DISTINCT + SUM( col0 ) AS col0 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-4138
SELECT DISTINCT + SUM ( col0 ) AS col0 FROM tab2 AS cor0
----
185

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4139
SELECT ALL - SUM( ALL + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4139
SELECT ALL - SUM ( ALL + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT ALL - col2 AS col2, 83 * + 73 AS col1 FROM tab2 AS cor0
----
-23
6059
-40
6059
-58
6059

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4141
SELECT - COUNT( * ) AS col2 FROM tab0 WHERE NOT + + col1 <> - CAST( NULL AS SIGNED ) + + CAST( NULL AS DECIMAL )
----
0

skipif mysql # not compatible
query I rowsort label-4141
SELECT - COUNT ( * ) AS col2 FROM tab0 WHERE NOT + + col1 <> - CAST ( NULL AS INTEGER ) + + CAST ( NULL AS REAL )
----
0

query I rowsort
SELECT + ( - + ( 81 ) ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 205b3ff2d7b1817c98d7980b8c17e6c1

query I rowsort
SELECT + - 20 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f1cccb95c90889319e7a51e4ae9475bb

onlyif mysql # aggregate syntax: 
query I rowsort label-4144
SELECT ALL - ( - SUM( - 45 ) ) FROM tab1 cor0
----
-135

skipif mysql # not compatible
query I rowsort label-4144
SELECT ALL - ( - SUM ( - 45 ) ) FROM tab1 cor0
----
-135

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 BETWEEN + 32 AND NULL
----

query I rowsort
SELECT ALL - + col1 * - col0 * col1 * - col0 FROM tab1 AS cor0
----
-180625
-18292729
-509796

onlyif mysql # aggregate syntax: 
query I rowsort label-4147
SELECT - MIN( ALL col2 ) FROM tab2 cor0 WHERE NOT col1 / + col1 * col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4147
SELECT - MIN ( ALL col2 ) FROM tab2 cor0 WHERE NOT col1 / + col1 * col0 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4148
SELECT - + COUNT( - + 40 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4148
SELECT - + COUNT ( - + 40 ) FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4149
SELECT DISTINCT 64 * + CAST( NULL AS SIGNED ) * - - col2 + col2 + + + 19 * - col1 * 32 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4149
SELECT DISTINCT 64 * + CAST ( NULL AS INTEGER ) * - - col2 + col2 + + + 19 * - col1 * 32 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4150
SELECT + AVG ( ALL + CAST( NULL AS SIGNED ) ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4150
SELECT + AVG ( ALL + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4151
SELECT DISTINCT + 3 + - COUNT( * ) * COUNT( * ) AS col1 FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-4151
SELECT DISTINCT + 3 + - COUNT ( * ) * COUNT ( * ) AS col1 FROM tab2
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4152
SELECT ALL SUM( - 5 ) * + 6 AS col1 FROM tab1
----
-90

skipif mysql # not compatible
query I rowsort label-4152
SELECT ALL SUM ( - 5 ) * + 6 AS col1 FROM tab1
----
-90

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 18 - - + 86 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 78 AS col0, + col1 - + 59 * - 10 col2 FROM tab2
----
78
641
78
657
78
667

query I rowsort
SELECT DISTINCT - + 32 AS col1 FROM tab1 AS cor0
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-4156
SELECT ALL - 99 + - COUNT( * ) FROM tab2 AS cor0
----
-102

skipif mysql # not compatible
query I rowsort label-4156
SELECT ALL - 99 + - COUNT ( * ) FROM tab2 AS cor0
----
-102

query I rowsort
SELECT ALL - col1 * col0 * - ( + - 90 ) * - + col0 AS col2 FROM tab0 AS cor0
----
14305410
1640250
846810

query I rowsort
SELECT + - col1 / - col2 / + + col0 AS col0 FROM tab0 WHERE + - 96 < NULL
----

query II rowsort
SELECT col1 + 34 AS col2, - 27 FROM tab1 cor0
----
39
-27
48
-27
81
-27

query I rowsort
SELECT ALL - 78 * + col1 FROM tab2
----
-3978
-5226
-6006

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4161
SELECT + ( - 62 ) + + 45 AS col0, CAST( COUNT( * ) AS SIGNED ) AS col2 FROM tab2
----
-17
3

skipif mysql # not compatible
query II rowsort label-4161
SELECT + ( - 62 ) + + 45 AS col0, CAST ( COUNT ( * ) AS INTEGER ) AS col2 FROM tab2
----
-17
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4162
SELECT 19 * - COUNT( * ) + - - 64 + + + 8 FROM tab2 WHERE NOT + 84 IS NOT NULL
----
72

skipif mysql # not compatible
query I rowsort label-4162
SELECT 19 * - COUNT ( * ) + - - 64 + + + 8 FROM tab2 WHERE NOT + 84 IS NOT NULL
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-4163
SELECT ALL COUNT( DISTINCT + 28 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-4163
SELECT ALL COUNT ( DISTINCT + 28 ) FROM tab0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 AS col2, 27 col1 FROM tab2
----
46
27
64
27
75
27

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 IN ( col1, - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4166
SELECT DISTINCT CAST( COUNT( * ) AS SIGNED ) col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4166
SELECT DISTINCT CAST ( COUNT ( * ) AS INTEGER ) col0 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4167
SELECT ALL - 85 * 84 + - SUM( DISTINCT - col1 ) + 58 col1 FROM tab1 cor0
----
-7016

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4167
SELECT ALL - 85 * 84 + - SUM ( DISTINCT - col1 ) + 58 col1 FROM tab1 cor0
----
-7016

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4168
SELECT ALL * FROM tab2 WHERE NOT + col2 BETWEEN + - 82 AND - + CAST( - 36 AS SIGNED ) + + + 62 + - 35
----

skipif mysql # not compatible
query III rowsort label-4168
SELECT ALL * FROM tab2 WHERE NOT + col2 BETWEEN + - 82 AND - + CAST ( - 36 AS INTEGER ) + + + 62 + - 35
----

query I rowsort
SELECT ALL - 5 * + col2 FROM tab2
----
-115
-200
-290

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4170
SELECT * FROM tab1 AS cor0 WHERE NOT + 80 * ( col0 ) * + + col1 + - 93 + ( - + col1 ) + + CAST( NULL AS SIGNED ) * + - col2 / + col0 * - col1 * + + col2 >= NULL
----

skipif mysql # not compatible
query III rowsort label-4170
SELECT * FROM tab1 AS cor0 WHERE NOT + 80 * ( col0 ) * + + col1 + - 93 + ( - + col1 ) + + CAST ( NULL AS INTEGER ) * + - col2 / + col0 * - col1 * + + col2 >= NULL
----

query I rowsort
SELECT DISTINCT + - col0 * - - 12 FROM tab0 AS cor0
----
-1044
-1164
-180

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 BETWEEN ( + col0 ) AND + + 84
----
15
81
47

query I rowsort
SELECT ALL + 86 + - - 79 FROM tab2 AS cor0
----
165
165
165

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 93 - col0 + ( - 69 ) + 74 * - + 72 * - 0 * - - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col1 + - + col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) <= - col0 * - 56
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4176
SELECT + + col0 + CAST( + - 41 AS SIGNED ) - + - 50 * col1 AS col2 FROM tab1 AS cor0
----
2400
294
710

skipif mysql # not compatible
query I rowsort label-4176
SELECT + + col0 + CAST ( + - 41 AS INTEGER ) - + - 50 * col1 AS col2 FROM tab1 AS cor0
----
2400
294
710

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 * - col1 col0 FROM tab2 AS cor0
----
-2346
-4928
-5025

query I rowsort
SELECT DISTINCT - 47 * + 3 + col0 AS col2 FROM tab1
----
-50
-56
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-4179
SELECT + ( + 1 ) * - - COUNT( * ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4179
SELECT + ( + 1 ) * - - COUNT ( * ) FROM tab1
----
3

query I rowsort
SELECT ALL 84 * - + col2 * - 15 + + col0 - 48 AS col1 FROM tab0
----
124789
12639
59187

query I rowsort
SELECT + 77 * + col0 * + - col0 * 8 AS col2 FROM tab1
----
-1602216
-4450600
-5101096

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4182
SELECT DISTINCT CAST( NULL AS SIGNED ) * 41 / + - 22 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4182
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 41 / + - 22 FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4183
SELECT - col2 * col2 DIV col1 * - + col1 FROM tab0
----
2187
84
9801

skipif mysql # not compatible
query I rowsort label-4183
SELECT - col2 * col2 / col1 * - + col1 FROM tab0
----
2187
84
9801

onlyif mysql # aggregate syntax: 
query I rowsort label-4184
SELECT ALL - SUM( DISTINCT - col2 ) AS col0 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-4184
SELECT ALL - SUM ( DISTINCT - col2 ) AS col0 FROM tab2
----
121

query II rowsort
SELECT DISTINCT 5 * col1 AS col0, 98 FROM tab2 AS cor0
----
255
98
335
98
385
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 96 col2 FROM tab1 AS cor0 WHERE NOT - col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 92 + - col1 * + + col0 col2 FROM tab0 AS cor0
----
-1123
-1735
-5

query II rowsort
SELECT col0 + 51 + - - col2, col0 AS col1 FROM tab2
----
120
46
155
64
184
75

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 > + col0
----
15
81
47

onlyif mysql # aggregate syntax: 
query II rowsort label-4190
SELECT 80 AS col2, - COUNT( ALL + col0 ) + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
80
-6

skipif mysql # not compatible
query II rowsort label-4190
SELECT 80 AS col2, - COUNT ( ALL + col0 ) + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
80
-6

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col1 * col0 = + 39 * col0 + - - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT col1 AS col2, + col0 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4193
SELECT ALL + CAST( NULL AS SIGNED ) AS col1, 70 FROM tab2 cor0
----
NULL
70
NULL
70
NULL
70

skipif mysql # not compatible
query II rowsort label-4193
SELECT ALL + CAST ( NULL AS INTEGER ) AS col1, 70 FROM tab2 cor0
----
NULL
70
NULL
70
NULL
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4194
SELECT + col1 AS col2 FROM tab1 WHERE NOT - ( + 18 ) + CAST( - + col0 AS SIGNED ) / + - col1 + col0 NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-4194
SELECT + col1 AS col2 FROM tab1 WHERE NOT - ( + 18 ) + CAST ( - + col0 AS INTEGER ) / + - col1 + col0 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4195
SELECT ALL - ( + + CAST( - 84 AS SIGNED ) ) col2, + MIN( + CAST( NULL AS DECIMAL ) ) + + + COUNT( * ) FROM tab1 WHERE NOT NULL IS NULL
----
84
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4195
SELECT ALL - ( + + CAST ( - 84 AS INTEGER ) ) col2, + MIN ( + CAST ( NULL AS REAL ) ) + + + COUNT ( * ) FROM tab1 WHERE NOT NULL IS NULL
----
84
NULL

query I rowsort
SELECT + col1 * + 64 AS col1 FROM tab1 WHERE NOT col2 * - 40 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 6 col2 FROM tab0
----
282
594
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4198
SELECT - 30 DIV COUNT( * ) AS col2 FROM tab2
----
-10

skipif mysql # not compatible
query I rowsort label-4198
SELECT - 30 / COUNT ( * ) AS col2 FROM tab2
----
-10

onlyif mysql # aggregate syntax: 
query II rowsort label-4199
SELECT - SUM( DISTINCT + col1 ) AS col2, + 19 * - 47 FROM tab2
----
-195
-893

skipif mysql # not compatible
query II rowsort label-4199
SELECT - SUM ( DISTINCT + col1 ) AS col2, + 19 * - 47 FROM tab2
----
-195
-893

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 IN ( - 6 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4201
SELECT ALL ( + + CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4201
SELECT ALL ( + + CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT + 45 * + + 0 + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4203
SELECT + col2 AS col0 FROM tab1 AS cor0 WHERE NOT - 15 * + 92 <= ( - col2 ) * + CAST( col1 AS SIGNED )
----
68

skipif mysql # not compatible
query I rowsort label-4203
SELECT + col2 AS col0 FROM tab1 AS cor0 WHERE NOT - 15 * + 92 <= ( - col2 ) * + CAST ( col1 AS INTEGER )
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4204
SELECT DISTINCT + 64 * - COUNT( * ) AS col0 FROM tab0 cor0
----
-192

skipif mysql # not compatible
query I rowsort label-4204
SELECT DISTINCT + 64 * - COUNT ( * ) AS col0 FROM tab0 cor0
----
-192

onlyif mysql # aggregate syntax: 
query II rowsort label-4205
SELECT ALL 75 + + - 80, + COUNT( * ) AS col2 FROM tab0
----
-5
3

skipif mysql # not compatible
query II rowsort label-4205
SELECT ALL 75 + + - 80, + COUNT ( * ) AS col2 FROM tab0
----
-5
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - 6 col0 FROM tab2
----
-138
-240
-348

query I rowsort
SELECT ALL - col2 AS col0 FROM tab2 WHERE NOT - - ( col1 ) IS NULL
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4208
SELECT ALL - 33 * COUNT( * ) AS col0 FROM tab2
----
-99

skipif mysql # not compatible
query I rowsort label-4208
SELECT ALL - 33 * COUNT ( * ) AS col0 FROM tab2
----
-99

query II rowsort
SELECT ALL + + 64 AS col1, + col1 AS col0 FROM tab1 AS cor0
----
64
14
64
47
64
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4210
SELECT DISTINCT - ( - COUNT( * ) ) DIV - + 40 AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4210
SELECT DISTINCT - ( - COUNT ( * ) ) / - + 40 AS col1 FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 39 col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-4212
SELECT DISTINCT 7 DIV - + 54 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-4212
SELECT DISTINCT 7 / - + 54 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4213
SELECT DISTINCT - + col2 - 57 + + 66 DIV + + col0 FROM tab2 AS cor0
----
-115
-79
-96

skipif mysql # not compatible
query I rowsort label-4213
SELECT DISTINCT - + col2 - 57 + + 66 / + + col0 FROM tab2 AS cor0
----
-115
-79
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4214
SELECT DISTINCT + SUM( DISTINCT col0 ) - - + 21 AS col1 FROM tab2 cor0
----
206

skipif mysql # not compatible
query I rowsort label-4214
SELECT DISTINCT + SUM ( DISTINCT col0 ) - - + 21 AS col1 FROM tab2 cor0
----
206

query II rowsort
SELECT ALL + - ( + col1 ) AS col2, - col0 FROM tab1 AS cor0
----
-14
-51
-47
-91
-5
-85

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 * - 75 - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4217
SELECT DISTINCT ( - SUM( ALL ( + 29 ) ) ) AS col1 FROM tab2 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-4217
SELECT DISTINCT ( - SUM ( ALL ( + 29 ) ) ) AS col1 FROM tab2 AS cor0
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-4218
SELECT COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT - 73 + + 89 * - + col2 * + + 13 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4218
SELECT COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT - 73 + + 89 * - + col2 * + + 13 IS NOT NULL
----
0

query I rowsort
SELECT 2 * + - 77 FROM tab1
----
-154
-154
-154

onlyif mysql # aggregate syntax: 
query II rowsort label-4220
SELECT ALL + 35, + MAX( ALL + + col1 ) AS col1 FROM tab2
----
35
77

skipif mysql # not compatible
query II rowsort label-4220
SELECT ALL + 35, + MAX ( ALL + + col1 ) AS col1 FROM tab2
----
35
77

query I rowsort
SELECT + col2 FROM tab1 WHERE NOT NULL >= - - col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4222
SELECT COUNT( * ) DIV + - ( 54 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4222
SELECT COUNT ( * ) / + - ( 54 ) FROM tab1
----
0

query I rowsort
SELECT + - col2 + - + ( - - col0 ) FROM tab1 AS cor0 WHERE NOT col2 NOT IN ( + + 14 * - 40, + col0, + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4224
SELECT - - CAST( NULL AS SIGNED ) * - col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4224
SELECT - - CAST ( NULL AS INTEGER ) * - col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4225
SELECT + 38 + MIN( DISTINCT col0 ) * SUM( DISTINCT 50 ) FROM tab0
----
788

skipif mysql # not compatible
query I rowsort label-4225
SELECT + 38 + MIN ( DISTINCT col0 ) * SUM ( DISTINCT 50 ) FROM tab0
----
788

query I rowsort
SELECT ALL - col2 FROM tab2 WHERE NOT + col2 * - col1 - + 24 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col0 * 11 FROM tab2 WHERE NOT + col0 <= - col1
----
-506
-704
-825

query I rowsort
SELECT ALL + 14 * col2 FROM tab2
----
322
560
812

onlyif mysql # aggregate syntax: 
query I rowsort label-4229
SELECT DISTINCT SUM( col2 ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
223

skipif mysql # not compatible
query I rowsort label-4229
SELECT DISTINCT SUM ( col2 ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
223

query I rowsort
SELECT ALL col2 * + 59 FROM tab1
----
3481
4012
5664

onlyif mysql # aggregate syntax: 
query I rowsort label-4231
SELECT MIN( col2 ) col2 FROM tab0
----
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4231
SELECT MIN ( col2 ) col2 FROM tab0
----
10

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4232
SELECT + col1 DIV col1 + col2 DIV CAST( col1 + + ( + 42 ) AS SIGNED ) FROM tab0
----
1
1
3

skipif mysql # not compatible
query I rowsort label-4232
SELECT + col1 / col1 + col2 / CAST ( col1 + + ( + 42 ) AS INTEGER ) FROM tab0
----
1
1
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4233
SELECT + COUNT( * ) DIV - 32 + - 59 AS col2 FROM tab2
----
-59

skipif mysql # not compatible
query I rowsort label-4233
SELECT + COUNT ( * ) / - 32 + - 59 AS col2 FROM tab2
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-4234
SELECT ALL COUNT( + 84 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4234
SELECT ALL COUNT ( + 84 ) FROM tab1
----
3

query I rowsort
SELECT 5 * 16 AS col1 FROM tab1
----
80
80
80

onlyif mysql # DIV for integer division: 
query I rowsort label-4236
SELECT ALL + ( + col0 ) DIV - col2 + col2 DIV col1 AS col0 FROM tab1
----
0
10
6

skipif mysql # not compatible
query I rowsort label-4236
SELECT ALL + ( + col0 ) / - col2 + col2 / col1 AS col0 FROM tab1
----
0
10
6

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - col2 ) <= 26
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 WHERE col1 * col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4239
SELECT ALL + 44 * col0 - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4239
SELECT ALL + 44 * col0 - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 FROM tab0 WHERE NULL NOT BETWEEN ( + 79 * 44 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4241
SELECT ALL CAST( - ( + col2 ) AS SIGNED ) AS col0 FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-4241
SELECT ALL CAST ( - ( + col2 ) AS INTEGER ) AS col0 FROM tab0
----
-10
-47
-99

query I rowsort
SELECT ALL + col0 + + 46 AS col2 FROM tab2
----
110
121
92

onlyif mysql # aggregate syntax: 
query I rowsort label-4243
SELECT ALL + 78 * - MAX( col0 ) AS col1 FROM tab1
----
-7098

skipif mysql # not compatible
query I rowsort label-4243
SELECT ALL + 78 * - MAX ( col0 ) AS col1 FROM tab1
----
-7098

query III rowsort
SELECT * FROM tab1 WHERE NOT + 63 > - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4245
SELECT DISTINCT - 25 * + CAST( NULL AS SIGNED ) AS col1 FROM tab0 WHERE NOT col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4245
SELECT DISTINCT - 25 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 WHERE NOT col2 IS NULL
----
NULL

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab2 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT 56 * col1 AS col1 FROM tab0
----
1176
4536
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4248
SELECT - col0 AS col1 FROM tab2 WHERE + col2 <= - CAST( col0 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-4248
SELECT - col0 AS col1 FROM tab2 WHERE + col2 <= - CAST ( col0 AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4249
SELECT * FROM tab1 WHERE NOT + ( + 85 ) + - 58 * + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-4249
SELECT * FROM tab1 WHERE NOT + ( + 85 ) + - 58 * + CAST ( NULL AS INTEGER ) IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE 69 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4251
SELECT MAX( col2 ) + + 30 col0 FROM tab2
----
88

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4251
SELECT MAX ( col2 ) + + 30 col0 FROM tab2
----
88

query I rowsort
SELECT - 10 * + col2 AS col2 FROM tab1 WHERE NOT NULL NOT IN ( col2 )
----

query I rowsort
SELECT ALL + col2 * + 1 AS col2 FROM tab1
----
59
68
96

query I rowsort
SELECT 43 FROM tab1 WHERE NOT - col0 + col1 IS NULL
----
43
43
43

onlyif mysql # aggregate syntax: 
query I rowsort label-4255
SELECT DISTINCT 2 * COUNT( * ) col0 FROM tab2 cor0
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4255
SELECT DISTINCT 2 * COUNT ( * ) col0 FROM tab2 cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4256
SELECT DISTINCT + COUNT( * ) * - 82 - MIN( col1 ) FROM tab2 AS cor0
----
-297

skipif mysql # not compatible
query I rowsort label-4256
SELECT DISTINCT + COUNT ( * ) * - 82 - MIN ( col1 ) FROM tab2 AS cor0
----
-297

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( 34 ) < - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4258
SELECT ALL MAX( col2 ) * COUNT( * ) AS col1 FROM tab1 cor0
----
288

skipif mysql # not compatible
query I rowsort label-4258
SELECT ALL MAX ( col2 ) * COUNT ( * ) AS col1 FROM tab1 cor0
----
288

query I rowsort
SELECT DISTINCT - 16 + col2 * - col2 AS col1 FROM tab0 cor0
----
-116
-2225
-9817

query I rowsort
SELECT 77 * col2 + col0 FROM tab1 AS cor0
----
4628
5327
7443

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL IN ( + 67 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4262
SELECT DISTINCT + COUNT( * ) + 32 * COUNT( * ) AS col1 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-4262
SELECT DISTINCT + COUNT ( * ) + 32 * COUNT ( * ) AS col1 FROM tab0
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4263
SELECT DISTINCT + 22 * - CAST( COUNT( * ) AS SIGNED ) - + COUNT( * ) FROM tab2
----
-69

skipif mysql # not compatible
query I rowsort label-4263
SELECT DISTINCT + 22 * - CAST ( COUNT ( * ) AS INTEGER ) - + COUNT ( * ) FROM tab2
----
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-4264
SELECT DISTINCT 54 DIV + 86 + col2 FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-4264
SELECT DISTINCT 54 / + 86 + col2 FROM tab0
----
10
47
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 37 col2 FROM tab0 AS cor0 CROSS JOIN tab0
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

query I rowsort
SELECT 37 AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab1 )
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

onlyif mysql # DIV for integer division: 
query I rowsort label-4267
SELECT DISTINCT + 86 DIV + col2 AS col2 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-4267
SELECT DISTINCT + 86 / + col2 AS col2 FROM tab1 AS cor0
----
0
1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN col1 * + col2 AND - col0 * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4269
SELECT COUNT( * ) AS col1 FROM tab0 cor0 WHERE NOT ( col2 + - col0 ) NOT BETWEEN col2 AND col0
----
0

skipif mysql # not compatible
query I rowsort label-4269
SELECT COUNT ( * ) AS col1 FROM tab0 cor0 WHERE NOT ( col2 + - col0 ) NOT BETWEEN col2 AND col0
----
0

query I rowsort
SELECT + col0 FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4271
SELECT ALL CAST( NULL AS DECIMAL ) * col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4271
SELECT ALL CAST ( NULL AS REAL ) * col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - col1 * - 18 AS col2 FROM tab1 AS cor0
----
252
846
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 26 col1 FROM tab2 AS cor0
----
26
26
26

onlyif mysql # aggregate syntax: 
query I rowsort label-4274
SELECT + MAX( DISTINCT col2 ) * COUNT( * ) FROM tab1 AS cor0
----
288

skipif mysql # not compatible
query I rowsort label-4274
SELECT + MAX ( DISTINCT col2 ) * COUNT ( * ) FROM tab1 AS cor0
----
288

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 < col0
----
51
14
96

query I rowsort
SELECT - 2 * + 63 FROM tab1 AS cor0
----
-126
-126
-126

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE col0 * ( 80 * col2 ) + + 62 / - col1 <> + 6
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4278
SELECT ALL + MIN( DISTINCT + + 38 ) AS col2 FROM tab2
----
38

skipif mysql # not compatible
query I rowsort label-4278
SELECT ALL + MIN ( DISTINCT + + 38 ) AS col2 FROM tab2
----
38

query I rowsort
SELECT col2 + 50 AS col1 FROM tab0 WHERE NOT + col1 + col0 NOT BETWEEN ( NULL ) AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4280
SELECT * FROM tab1 WHERE NOT ( - CAST( 32 AS SIGNED ) - + col0 / + col0 ) BETWEEN ( col1 ) AND col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4280
SELECT * FROM tab1 WHERE NOT ( - CAST ( 32 AS INTEGER ) - + col0 / + col0 ) BETWEEN ( col1 ) AND col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL = 82
----

query I rowsort
SELECT DISTINCT + AVG ( DISTINCT - 35 ) AS col1 FROM tab1 WHERE NOT - 29 + - 97 <= - col2
----
NULL

query I rowsort
SELECT ALL + 98 * ( - 58 ) FROM tab0
----
-5684
-5684
-5684

query I rowsort
SELECT - 2 * - col2 AS col0 FROM tab2 WHERE NOT NULL > 27
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4285
SELECT 12 DIV CAST( - col1 AS SIGNED ) * col1 AS col2 FROM tab1
----
-10
0
0

skipif mysql # not compatible
query I rowsort label-4285
SELECT 12 / CAST ( - col1 AS INTEGER ) * col1 AS col2 FROM tab1
----
-10
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4286
SELECT ALL - COUNT( DISTINCT + + 17 ) FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4286
SELECT ALL - COUNT ( DISTINCT + + 17 ) FROM tab1 AS cor0
----
-1

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( - 88 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4288
SELECT ALL MAX( + ( col2 ) ) AS col0 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-4288
SELECT ALL MAX ( + ( col2 ) ) AS col0 FROM tab0 AS cor0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4289
SELECT + + COUNT( * ) * COUNT( * ) + COUNT( * ) * 15 FROM tab0 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-4289
SELECT + + COUNT ( * ) * COUNT ( * ) + COUNT ( * ) * 15 FROM tab0 AS cor0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4290
SELECT DISTINCT ( AVG ( DISTINCT 82 ) ) - + COUNT( DISTINCT col0 - 56 / col0 ) AS col0 FROM tab1 cor0 WHERE NOT ( - col2 ) NOT BETWEEN NULL AND ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4290
SELECT DISTINCT ( AVG ( DISTINCT 82 ) ) - + COUNT ( DISTINCT col0 - 56 / col0 ) AS col0 FROM tab1 cor0 WHERE NOT ( - col2 ) NOT BETWEEN NULL AND ( NULL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4291
SELECT DISTINCT - MIN( + col0 ) AS col0 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-4291
SELECT DISTINCT - MIN ( + col0 ) AS col0 FROM tab2 AS cor0
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4292
SELECT * FROM tab0 WHERE NOT - CAST( NULL AS SIGNED ) BETWEEN ( - col1 * 85 + col2 * 78 ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-4292
SELECT * FROM tab0 WHERE NOT - CAST ( NULL AS INTEGER ) BETWEEN ( - col1 * 85 + col2 * 78 ) AND NULL
----

query I rowsort
SELECT DISTINCT + 10 FROM tab0, tab0 cor0
----
10

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 76 * - 20 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4295
SELECT DISTINCT col2 * - col2 + 30 + CAST( + col0 AS SIGNED ) * + col0 col2 FROM tab2
----
1617
2291
2526

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4295
SELECT DISTINCT col2 * - col2 + 30 + CAST ( + col0 AS INTEGER ) * + col0 col2 FROM tab2
----
1617
2291
2526

query II rowsort
SELECT 26, 47 + - - col0 AS col0 FROM tab2
----
26
111
26
122
26
93

query I rowsort
SELECT + 31 FROM tab1 WHERE ( col0 <> ( - col0 ) )
----
31
31
31

query I rowsort
SELECT DISTINCT - ( - - col0 ) * - 70 + col2 AS col0 FROM tab0 cor0
----
1097
6100
6889

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4299
SELECT - - col2 * - CAST( + 50 AS SIGNED ) * + CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4299
SELECT - - col2 * - CAST ( + 50 AS INTEGER ) * + CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 43 * + col1 NOT IN ( col1 * - 44 ) OR NOT col1 BETWEEN NULL AND ( NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + ( - col0 ) * 0 AS col1 FROM tab1 cor0 WHERE NOT NULL NOT IN ( 70 )
----

query I rowsort
SELECT - 64 + col0 AS col1 FROM tab2 cor0
----
-18
0
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4303
SELECT ALL + 10 + + MAX( ALL col1 ) FROM tab2 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-4303
SELECT ALL + 10 + + MAX ( ALL col1 ) FROM tab2 AS cor0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4304
SELECT - MAX( DISTINCT - ( col0 ) ) + 36 AS col2 FROM tab1 WHERE NULL IN ( col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4304
SELECT - MAX ( DISTINCT - ( col0 ) ) + 36 AS col2 FROM tab1 WHERE NULL IN ( col2 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4305
SELECT + 44 FROM tab2 WHERE + CAST( NULL AS SIGNED ) BETWEEN ( 41 ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-4305
SELECT + 44 FROM tab2 WHERE + CAST ( NULL AS INTEGER ) BETWEEN ( 41 ) AND NULL
----

query I rowsort
SELECT ALL + col0 - col1 * + + col0 + + col2 + 74 * + 46 * - col2 FROM tab2
----
-140984
-202324
-80569

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) NOT BETWEEN NULL AND ( + 88 * - col1 * - col1 + col2 )
----

query I rowsort
SELECT col1 AS col1 FROM tab2 WHERE - ( col0 ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab1 cor0 WHERE NOT ( + col1 ) IN ( col2 * 75 )
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4310
SELECT COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE ( + col0 * col0 + + col0 + col0 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4310
SELECT COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE ( + col0 * col0 + + col0 + col0 ) IS NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col1 - - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 12 + - ( ( - - col2 ) ) AS col1 FROM tab0
----
-35
-87
2

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab0 WHERE NOT - col0 = + + col1 * 62
----
15
87
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 col1, - col0 FROM tab2
----
46
-46
64
-64
75
-75

query II rowsort
SELECT ALL + 13 AS col0, 0 AS col2 FROM tab2
----
13
0
13
0
13
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 11 col2, - col1 AS col0 FROM tab1
----
11
-14
11
-47
11
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col1 FROM tab1 WHERE NOT + col1 IS NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4318
SELECT ALL MAX( - col1 ) AS col2 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-4318
SELECT ALL MAX ( - col1 ) AS col2 FROM tab1 AS cor0
----
-5

query II rowsort
SELECT DISTINCT - col2, - 76 AS col0 FROM tab1 AS cor0
----
-59
-76
-68
-76
-96
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-4320
SELECT ALL - ( ( - + COUNT( + 47 ) ) ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4320
SELECT ALL - ( ( - + COUNT ( + 47 ) ) ) FROM tab0 cor0
----
3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL > 76 / + - col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + ( + col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4323
SELECT DISTINCT - 86 * + SUM( - 0 ) AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4323
SELECT DISTINCT - 86 * + SUM ( - 0 ) AS col1 FROM tab2 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) > col2 * + - col0
----

query I rowsort
SELECT + + col2 FROM tab2 WHERE NOT - 41 + + - col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 52 * 94 * + + 93 col1 FROM tab0
----
454584
454584
454584

onlyif mysql # aggregate syntax: 
query I rowsort label-4327
SELECT DISTINCT + 32 * + COUNT( * ) FROM tab2
----
96

skipif mysql # not compatible
query I rowsort label-4327
SELECT DISTINCT + 32 * + COUNT ( * ) FROM tab2
----
96

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4328
SELECT ALL - ( + - CAST( NULL AS DECIMAL ) ) * + COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4328
SELECT ALL - ( + - CAST ( NULL AS REAL ) ) * + COUNT ( * ) FROM tab2
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT ( + col0 IS NULL ) )
----

query II rowsort
SELECT - col0 * + + col0 AS col1, col2 AS col1 FROM tab0
----
-225
47
-7569
10
-9409
99

query II rowsort
SELECT DISTINCT col2 * + - 42 AS col0, col0 AS col1 FROM tab2
----
-1680
64
-2436
75
-966
46

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( ( NOT - col2 > NULL ) )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4333
SELECT ALL + COUNT( * ) AS col2, ( 3 ) AS col2 FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-4333
SELECT ALL + COUNT ( * ) AS col2, ( 3 ) AS col2 FROM tab0
----
3
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4334
SELECT ( - + col2 ) DIV - - 12 - + col2 FROM tab0
----
-10
-107
-50

skipif mysql # not compatible
query I rowsort label-4334
SELECT ( - + col2 ) / - - 12 - + col2 FROM tab0
----
-10
-107
-50

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT 67 - + + col1 + - col1 * col1 + + col2 > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4337
SELECT - MIN( ALL - 92 ) + + MIN( - + col2 ) FROM tab2
----
34

skipif mysql # not compatible
query I rowsort label-4337
SELECT - MIN ( ALL - 92 ) + + MIN ( - + col2 ) FROM tab2
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4338
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col1 < + + 9 - + CAST( + col0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4338
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col1 < + + 9 - + CAST ( + col0 AS INTEGER )
----

query I rowsort
SELECT + + col2 FROM tab0 AS cor0 WHERE col1 * + col2 * 80 + - + 32 BETWEEN NULL AND - 33
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col1, col0 FROM tab1
----
51
51
85
85
91
91

query I rowsort
SELECT DISTINCT 25 * - - col1 - - - col0 FROM tab1
----
1084
299
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + col2 col2 FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4343
SELECT - col2 * 73 DIV - - col0 - - 58 FROM tab2
----
13
2
22

skipif mysql # not compatible
query I rowsort label-4343
SELECT - col2 * 73 / - - col0 - - 58 FROM tab2
----
13
2
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4344
SELECT DISTINCT - - MAX( - col1 ) AS col1 FROM tab1 cor0
----
-5

skipif mysql # not compatible
query I rowsort label-4344
SELECT DISTINCT - - MAX ( - col1 ) AS col1 FROM tab1 cor0
----
-5

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE ( + col2 ) IN ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4346
SELECT COUNT( + 35 ) * + - 93 AS col2 FROM tab2
----
-279

skipif mysql # not compatible
query I rowsort label-4346
SELECT COUNT ( + 35 ) * + - 93 AS col2 FROM tab2
----
-279

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4347
SELECT DISTINCT - 2 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT CAST( + CAST( NULL AS SIGNED ) AS DECIMAL ) IS NOT NULL
----
-2

skipif mysql # not compatible
query I rowsort label-4347
SELECT DISTINCT - 2 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) IS NOT NULL
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4348
SELECT + MAX( 54 ) AS col1 FROM tab2 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-4348
SELECT + MAX ( 54 ) AS col1 FROM tab2 AS cor0
----
54

onlyif mysql # DIV for integer division: 
query I rowsort label-4349
SELECT DISTINCT + col0 * 57 DIV + + ( 27 ) + + - col0 FROM tab1 AS cor0
----
101
56
94

skipif mysql # not compatible
query I rowsort label-4349
SELECT DISTINCT + col0 * 57 / + + ( 27 ) + + - col0 FROM tab1 AS cor0
----
101
56
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4350
SELECT ALL - 8 * - CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4350
SELECT ALL - 8 * - CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - 11 * - col0 AS col0 FROM tab0 AS cor0
----
1067
165
957

onlyif mysql # aggregate syntax: 
query I rowsort label-4352
SELECT DISTINCT ( - - MIN( DISTINCT - + col1 ) ) * + ( + 26 ) + + 41 AS col1 FROM tab0 AS cor0
----
-2065

skipif mysql # not compatible
query I rowsort label-4352
SELECT DISTINCT ( - - MIN ( DISTINCT - + col1 ) ) * + ( + 26 ) + + 41 AS col1 FROM tab0 AS cor0
----
-2065

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT IN ( + col0 * + ( + 29 ), - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4354
SELECT ALL + 71 * - - MIN( DISTINCT - 21 ) AS col0 FROM tab1
----
-1491

skipif mysql # not compatible
query I rowsort label-4354
SELECT ALL + 71 * - - MIN ( DISTINCT - 21 ) AS col0 FROM tab1
----
-1491

query I rowsort
SELECT ALL + ( - 72 ) FROM tab0
----
-72
-72
-72

query I rowsort
SELECT DISTINCT - 39 * + 28 + - - col2 AS col2 FROM tab0
----
-1045
-1082
-993

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4357
SELECT ( + 84 ) DIV 31 * - CAST( col1 AS SIGNED ) + + col0 AS col2 FROM tab0 AS cor0
----
-147
45
95

skipif mysql # not compatible
query I rowsort label-4357
SELECT ( + 84 ) / 31 * - CAST ( col1 AS INTEGER ) + + col0 AS col2 FROM tab0 AS cor0
----
-147
45
95

query I rowsort
SELECT DISTINCT - col2 + - 1 FROM tab2 AS cor0
----
-24
-41
-59

query I rowsort
SELECT 74 + col0 AS col2 FROM tab2 AS cor0
----
120
138
149

query II rowsort
SELECT + col0 AS col2, col0 FROM tab2
----
46
46
64
64
75
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4361
SELECT + 60 * + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
540

skipif mysql # not compatible
query I rowsort label-4361
SELECT + 60 * + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
540

onlyif mysql # DIV for integer division: 
query I rowsort label-4362
SELECT col2 DIV + col0 + - + col2 FROM tab1 AS cor0
----
-59
-68
-95

skipif mysql # not compatible
query I rowsort label-4362
SELECT col2 / + col0 + - + col2 FROM tab1 AS cor0
----
-59
-68
-95

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4363
SELECT * FROM tab2 cor0 WHERE + col1 / 33 BETWEEN NULL AND - col1 * + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4363
SELECT * FROM tab2 cor0 WHERE + col1 / 33 BETWEEN NULL AND - col1 * + CAST ( NULL AS INTEGER )
----

query II rowsort
SELECT ALL + col1 - + + col2, col1 FROM tab2 AS cor0
----
28
51
37
77
9
67

query I rowsort
SELECT col1 - - col2 - 51 * - - ( - 54 ) FROM tab2 cor0
----
2828
2871
2879

query II rowsort
SELECT ALL - col1, 4 AS col2 FROM tab1 AS cor0
----
-14
4
-47
4
-5
4

query I rowsort
SELECT - col2 AS col0 FROM tab0 AS cor0 WHERE NULL <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4368
SELECT ALL - CAST( + 9 AS SIGNED ) + - col2 + - ( 61 ) * 53 * + col1 * + - ( + - 43 ), + col0 FROM tab0 AS cor0
----
-11260595
15
-139127
97
-2919418
87

skipif mysql # not compatible
query II rowsort label-4368
SELECT ALL - CAST ( + 9 AS INTEGER ) + - col2 + - ( 61 ) * 53 * + col1 * + - ( + - 43 ), + col0 FROM tab0 AS cor0
----
-11260595
15
-139127
97
-2919418
87

query I rowsort
SELECT + + col0 + + - col1 AS col2 FROM tab0 AS cor0
----
-66
66
96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN - col0 AND ( + - col0 )
----

query I rowsort
SELECT ALL + + 31 * - col1 * + 18 FROM tab2 AS cor0
----
-28458
-37386
-42966

query III rowsort
SELECT * FROM tab1 WHERE + 95 * - col2 IS NULL
----

query I rowsort
SELECT - ( 9 ) FROM tab1
----
-9
-9
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4374
SELECT ALL COUNT( * ) + + - 45 FROM tab2
----
-42

skipif mysql # not compatible
query I rowsort label-4374
SELECT ALL COUNT ( * ) + + - 45 FROM tab2
----
-42

query I rowsort
SELECT - 30 * col1 * - - col0 * - - col2 + 80 + col2 FROM tab1 WHERE ( NOT col2 NOT IN ( - 88 + - 44, 19 + + col0 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4376
SELECT - - MAX( - - 69 ) col1 FROM tab2 AS cor0
----
69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4376
SELECT - - MAX ( - - 69 ) col1 FROM tab2 AS cor0
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4377
SELECT ALL * FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) * 17 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4377
SELECT ALL * FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) * 17 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4378
SELECT DISTINCT - COUNT( * ) - - 5 / - MIN( + - col1 ) AS col2 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4378
SELECT DISTINCT - COUNT ( * ) - - 5 / - MIN ( + - col1 ) AS col2 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4379
SELECT DISTINCT - + 27 * + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-243

skipif mysql # not compatible
query I rowsort label-4379
SELECT DISTINCT - + 27 * + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-243

onlyif mysql # aggregate syntax: 
query I rowsort label-4380
SELECT MAX( DISTINCT + - col2 ) AS col2 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-4380
SELECT MAX ( DISTINCT + - col2 ) AS col2 FROM tab0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-4381
SELECT ALL - - ( + - COUNT( * ) ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4381
SELECT ALL - - ( + - COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
-3

query II rowsort
SELECT DISTINCT + + 39 AS col2, - col1 FROM tab0 AS cor0
----
39
-1
39
-21
39
-81

query I rowsort
SELECT DISTINCT + 90 * + col1 AS col1 FROM tab0 AS cor0
----
1890
7290
90

query I rowsort
SELECT DISTINCT - 81 AS col0 FROM tab0 AS cor0 WHERE col1 / - - col0 + - - col1 IS NULL
----

query I rowsort
SELECT ALL - + ( - 33 ) * - 92 + 35 * col1 FROM tab2 AS cor0
----
-1251
-341
-691

query II rowsort
SELECT DISTINCT + col2 AS col1, 72 + - 73 FROM tab1 AS cor0
----
59
-1
68
-1
96
-1

query II rowsort
SELECT ALL - 4, - col1 AS col0 FROM tab1 AS cor0
----
-4
-14
-4
-47
-4
-5

query II rowsort
SELECT ALL col2 AS col0, - col2 AS col0 FROM tab0 WHERE + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4389
SELECT MIN( DISTINCT - col0 ) * - COUNT( * ) FROM tab0
----
291

skipif mysql # not compatible
query I rowsort label-4389
SELECT MIN ( DISTINCT - col0 ) * - COUNT ( * ) FROM tab0
----
291

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4390
SELECT DISTINCT - 83 col0 FROM tab1 AS cor0 WHERE ( - ( - ( + + 32 ) ) * - CAST( + col1 AS SIGNED ) ) NOT IN ( + col0 )
----
-83

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4390
SELECT DISTINCT - 83 col0 FROM tab1 AS cor0 WHERE ( - ( - ( + + 32 ) ) * - CAST ( + col1 AS INTEGER ) ) NOT IN ( + col0 )
----
-83

query I rowsort
SELECT ALL + col0 * + + col2 AS col2 FROM tab1 AS cor0
----
4896
5015
6188

query I rowsort
SELECT + col2 + + 80 + - - col1 + - + col0 * - - col2 FROM tab2 AS cor0
----
-2363
-4145
-904

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4393
SELECT CAST( NULL AS SIGNED ) + + 81 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4393
SELECT CAST ( NULL AS INTEGER ) + + 81 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4394
SELECT MIN( 28 ) AS col1 FROM ( tab1 cor0 CROSS JOIN tab1 cor1 )
----
28

skipif mysql # not compatible
query I rowsort label-4394
SELECT MIN ( 28 ) AS col1 FROM ( tab1 cor0 CROSS JOIN tab1 cor1 )
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4395
SELECT DISTINCT + + COUNT( * ) AS col1 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-4395
SELECT DISTINCT + + COUNT ( * ) AS col1 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-4396
SELECT DISTINCT ( - - col2 ) + + + col0 DIV + - col1 FROM tab0
----
2
47
6

skipif mysql # not compatible
query I rowsort label-4396
SELECT DISTINCT ( - - col2 ) + + + col0 / + - col1 FROM tab0
----
2
47
6

query I rowsort
SELECT col2 + col2 + + 86 FROM tab1
----
204
222
278

query I rowsort
SELECT DISTINCT + - 69 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-69

query I rowsort
SELECT ALL - 27 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 90b76caf54a4e48ee4a9784f52997a6a

query I rowsort
SELECT DISTINCT + col1 FROM tab0 WHERE NOT ( - col2 + - - col1 = NULL )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4401
SELECT ALL CAST( NULL AS DECIMAL ) * - + 96 + + + col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4401
SELECT ALL CAST ( NULL AS REAL ) * - + 96 + + + col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4402
SELECT + + 23 * + COUNT( * ) FROM tab1 cor0
----
69

skipif mysql # not compatible
query I rowsort label-4402
SELECT + + 23 * + COUNT ( * ) FROM tab1 cor0
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4403
SELECT DISTINCT + CAST( - + 28 AS SIGNED ) * + + col0 AS col1 FROM tab1 AS cor0
----
-1428
-2380
-2548

skipif mysql # not compatible
query I rowsort label-4403
SELECT DISTINCT + CAST ( - + 28 AS INTEGER ) * + + col0 AS col1 FROM tab1 AS cor0
----
-1428
-2380
-2548

onlyif mysql # DIV for integer division: 
query I rowsort label-4404
SELECT - col0 * col0 DIV + 65 + - col1 AS col0 FROM tab0 AS cor0
----
-137
-145
-84

skipif mysql # not compatible
query I rowsort label-4404
SELECT - col0 * col0 / + 65 + - col1 AS col0 FROM tab0 AS cor0
----
-137
-145
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-4405
SELECT + SUM( + ( + - col2 ) ) FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-4405
SELECT + SUM ( + ( + - col2 ) ) FROM tab0 AS cor0
----
-156

query I rowsort
SELECT ALL - - col1 + + col1 - col0 * - col0 + - col0 FROM tab2 AS cor0
----
2172
4186
5684

onlyif mysql # DIV for integer division: 
query I rowsort label-4407
SELECT + col0 DIV - + col2 - - col2 AS col2 FROM tab2
----
21
39
57

skipif mysql # not compatible
query I rowsort label-4407
SELECT + col0 / - + col2 - - col2 AS col2 FROM tab2
----
21
39
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4408
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - col0 / + col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4408
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - col0 / + col2 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT + 21 * col0 AS col0 FROM tab1
----
1071
1785
1911

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4410
SELECT DISTINCT - + COUNT( * ) AS col0, 11 DIV + - ( + + 84 ) FROM tab2 AS cor0
----
-3
0

skipif mysql # not compatible
query II rowsort label-4410
SELECT DISTINCT - + COUNT ( * ) AS col0, 11 / + - ( + + 84 ) FROM tab2 AS cor0
----
-3
0

query II rowsort
SELECT - - col1, col0 AS col0 FROM tab0 AS cor0
----
1
97
21
87
81
15

query II rowsort
SELECT + + 86, - 31 AS col0 FROM tab2 AS cor0
----
86
-31
86
-31
86
-31

query I rowsort
SELECT - 56 * - col1 FROM tab2 cor0
----
2856
3752
4312

onlyif mysql # aggregate syntax: 
query I rowsort label-4414
SELECT ALL - MAX( ( - - col0 ) ) AS col1 FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-4414
SELECT ALL - MAX ( ( - - col0 ) ) AS col1 FROM tab1
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4415
SELECT * FROM tab1 WHERE NOT CAST( col0 AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4415
SELECT * FROM tab1 WHERE NOT CAST ( col0 AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 <= col1 + + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - + 50 * + col2 AS col1 FROM tab2 AS cor0
----
-1150
-2000
-2900

query I rowsort
SELECT - col0 * + 82 * - + col0 FROM tab2 AS cor0
----
173512
335872
461250

query III rowsort
SELECT col1 * - 79 AS col1, + col2, 3 FROM tab2 AS cor0
----
9 values hashing to 26902e2b23a11c25afdd788f0f59ab20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4420
SELECT + MAX( - CAST( - col1 AS SIGNED ) ) FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-4420
SELECT + MAX ( - CAST ( - col1 AS INTEGER ) ) FROM tab2
----
77

query II rowsort
SELECT DISTINCT 2, + col0 FROM tab0
----
2
15
2
87
2
97

query I rowsort
SELECT ALL 22 + - + col0 AS col0 FROM tab0
----
-65
-75
7

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 AS cor0 WHERE NOT NULL <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + - 23 + + 80 * - + col1 col0 FROM tab2
----
-5138
-7085
-7632

query I rowsort
SELECT 38 + - col1 AS col1 FROM tab0
----
-43
17
37

onlyif mysql # DIV for integer division: 
query I rowsort label-4426
SELECT DISTINCT + + col2 DIV + col2 AS col0 FROM tab2 WHERE NOT + + 35 IS NULL
----
1

skipif mysql # not compatible
query I rowsort label-4426
SELECT DISTINCT + + col2 / + col2 AS col0 FROM tab2 WHERE NOT + + 35 IS NULL
----
1

query I rowsort
SELECT 60 + - + ( - col1 ) AS col0 FROM tab1 AS cor0
----
107
65
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4428
SELECT - - COUNT( * ) + + 52 AS col2 FROM tab0 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-4428
SELECT - - COUNT ( * ) + + 52 AS col2 FROM tab0 AS cor0
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4429
SELECT ALL COUNT( * ), CAST( NULL AS DECIMAL ) * - CAST( 80 AS SIGNED ) * - 79 + + ( COUNT( - col1 ) ) - SUM( - - col1 ) AS col0 FROM tab2 AS cor0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-4429
SELECT ALL COUNT ( * ), CAST ( NULL AS REAL ) * - CAST ( 80 AS INTEGER ) * - 79 + + ( COUNT ( - col1 ) ) - SUM ( - - col1 ) AS col0 FROM tab2 AS cor0
----
3
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4430
SELECT * FROM tab1 AS cor0 WHERE ( - 74 ) IN ( CAST( - 28 AS SIGNED ), col0 / - - col0, - col2 )
----

skipif mysql # not compatible
query III rowsort label-4430
SELECT * FROM tab1 AS cor0 WHERE ( - 74 ) IN ( CAST ( - 28 AS INTEGER ), col0 / - - col0, - col2 )
----

query I rowsort
SELECT ALL - - ( col0 ) FROM tab0 cor0 WHERE NOT col2 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4432
SELECT DISTINCT 31 * ( - + MAX( + 13 ) ) AS col1 FROM tab2 AS cor0
----
-403

skipif mysql # not compatible
query I rowsort label-4432
SELECT DISTINCT 31 * ( - + MAX ( + 13 ) ) AS col1 FROM tab2 AS cor0
----
-403

query I rowsort
SELECT ALL + col0 * - 23 + - col2 FROM tab1 AS cor0
----
-1269
-2014
-2161

query I rowsort
SELECT DISTINCT - 50 + - col1 FROM tab0 AS cor0
----
-131
-51
-71

query I rowsort
SELECT + - ( + 28 ) FROM tab2 cor0
----
-28
-28
-28

query I rowsort
SELECT + 62 - + 71 AS col0 FROM tab2
----
-9
-9
-9

query II rowsort
SELECT ALL + col0 - - - col1 AS col2, + col0 + + col1 FROM tab2 AS cor0
----
-13
141
-5
97
8
142

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 >= - 11
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 92 - 97 + - - col1 FROM tab0 AS cor0 WHERE NOT col1 <> - 57
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4440
SELECT + - COUNT( * ) + - 97 col0 FROM tab1 AS cor0
----
-100

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4440
SELECT + - COUNT ( * ) + - 97 col0 FROM tab1 AS cor0
----
-100

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4441
SELECT * FROM tab1 AS cor0 WHERE 85 * + CAST( + + col2 AS SIGNED ) - + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4441
SELECT * FROM tab1 AS cor0 WHERE 85 * + CAST ( + + col2 AS INTEGER ) - + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 col1 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND - - col1
----

query II rowsort
SELECT + 89 + - + col1 AS col0, col2 FROM tab2 AS cor0
----
12
40
22
58
38
23

query I rowsort
SELECT ALL + col1 + 15 * + 8 FROM tab1 AS cor0
----
125
134
167

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 65 col1 FROM tab2 AS cor0
----
65

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col0 / + ( + - col1 ) IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL = + col2 / + - col1 * - 63 * 26
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4448
SELECT ALL COUNT( * ) * + 82 AS col1 FROM tab0
----
246

skipif mysql # not compatible
query I rowsort label-4448
SELECT ALL COUNT ( * ) * + 82 AS col1 FROM tab0
----
246

query I rowsort
SELECT ALL - 60 * + + 38 AS col1 FROM tab1
----
-2280
-2280
-2280

onlyif mysql # DIV for integer division: 
query II rowsort label-4450
SELECT ALL col2, - col2 DIV 19 + 52 FROM tab2
----
23
51
40
50
58
49

skipif mysql # not compatible
query II rowsort label-4450
SELECT ALL col2, - col2 / 19 + 52 FROM tab2
----
23
51
40
50
58
49

query II rowsort
SELECT DISTINCT - - col0, col2 AS col0 FROM tab1 AS cor0
----
51
96
85
59
91
68

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4452
SELECT DISTINCT - + CAST( NULL AS DECIMAL ) col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4452
SELECT DISTINCT - + CAST ( NULL AS REAL ) col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4453
SELECT CAST( NULL AS DECIMAL ) * 44 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4453
SELECT CAST ( NULL AS REAL ) * 44 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4454
SELECT ALL - CAST( NULL AS SIGNED ) FROM tab1 WHERE col1 + + col2 > NULL
----

skipif mysql # not compatible
query I rowsort label-4454
SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab1 WHERE col1 + + col2 > NULL
----

query II rowsort
SELECT DISTINCT + col1, col0 * 58 AS col2 FROM tab1
----
14
2958
47
5278
5
4930

query I rowsort
SELECT - - col1 + - 53 FROM tab1 cor0
----
-39
-48
-6

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT + 48 <= ( NULL )
----

query I rowsort
SELECT DISTINCT col1 + 8 FROM tab0 AS cor0
----
29
89
9

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE col0 * - - col1 = - + col2
----

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - + 33 * col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 76 col0 FROM tab0 WHERE + 17 <= - col2
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 23 * col1 * - col1 BETWEEN NULL AND + 43
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4463
SELECT ALL COUNT( * ) + + 71 AS col2 FROM tab0
----
74

skipif mysql # not compatible
query I rowsort label-4463
SELECT ALL COUNT ( * ) + + 71 AS col2 FROM tab0
----
74

query I rowsort
SELECT DISTINCT ( + + 54 ) AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4465
SELECT - + COUNT( - 32 ) + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-4465
SELECT - + COUNT ( - 32 ) + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-6

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + col1, col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4467
SELECT - MAX( - col2 ) + + - 87 + MAX( DISTINCT col0 ) AS col0 FROM tab0 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-4467
SELECT - MAX ( - col2 ) + + - 87 + MAX ( DISTINCT col0 ) AS col0 FROM tab0 AS cor0
----
20

onlyif mysql # aggregate syntax: 
query II rowsort label-4468
SELECT - + COUNT( * ) + + 80 AS col1, 1 AS col0 FROM tab2 cor0
----
77
1

skipif mysql # not compatible
query II rowsort label-4468
SELECT - + COUNT ( * ) + + 80 AS col1, 1 AS col0 FROM tab2 cor0
----
77
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4469
SELECT col2 + - + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4469
SELECT col2 + - + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4470
SELECT ALL 86 DIV + col0 + + ( col2 ) AS col0 FROM tab2
----
24
41
59

skipif mysql # not compatible
query I rowsort label-4470
SELECT ALL 86 / + col0 + + ( col2 ) AS col0 FROM tab2
----
24
41
59

query I rowsort
SELECT ALL 72 - 71 * + col1 FROM tab0 AS cor0
----
-1419
-5679
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4472
SELECT DISTINCT - ( - 13 ) - MIN( col0 ) FROM tab2 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-4472
SELECT DISTINCT - ( - 13 ) - MIN ( col0 ) FROM tab2 AS cor0
----
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-4473
SELECT DISTINCT + 71, COUNT( * ) AS col1 FROM tab1 cor0
----
71
3

skipif mysql # not compatible
query II rowsort label-4473
SELECT DISTINCT + 71, COUNT ( * ) AS col1 FROM tab1 cor0
----
71
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4474
SELECT DISTINCT col1 + ( - CAST( col2 AS SIGNED ) ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
28
37
9

skipif mysql # not compatible
query I rowsort label-4474
SELECT DISTINCT col1 + ( - CAST ( col2 AS INTEGER ) ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
28
37
9

query I rowsort
SELECT DISTINCT - 79 * - col2 * - 14 + + col2 FROM tab2 AS cor0
----
-25415
-44200
-64090

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 NOT BETWEEN 87 AND NULL
----

query II rowsort
SELECT + col2 AS col1, col1 FROM tab0 AS cor0
----
10
21
47
81
99
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4478
SELECT DISTINCT - COUNT( ALL 68 ) * + - COUNT( * ) FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-4478
SELECT DISTINCT - COUNT ( ALL 68 ) * + - COUNT ( * ) FROM tab1
----
9

query I rowsort
SELECT 98 * - col2 FROM tab1
----
-5782
-6664
-9408

query II rowsort
SELECT ( - col0 ) * - - ( + col1 ), - 46 AS col0 FROM tab0
----
-1215
-46
-1827
-46
-97
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4481
SELECT - + col2 + + + 93 AS col1 FROM tab1 WHERE NOT CAST( - - 72 AS SIGNED ) * - - col2 - + col2 IS NULL
----
-3
25
34

skipif mysql # not compatible
query I rowsort label-4481
SELECT - + col2 + + + 93 AS col1 FROM tab1 WHERE NOT CAST ( - - 72 AS INTEGER ) * - - col2 - + col2 IS NULL
----
-3
25
34

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 * 89 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4483
SELECT - COUNT( * ) AS col1 FROM tab0 cor0 WHERE NOT col1 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4483
SELECT - COUNT ( * ) AS col1 FROM tab0 cor0 WHERE NOT col1 IS NULL
----
-3

query I rowsort
SELECT DISTINCT + col1 FROM tab1 AS cor0 WHERE - 34 * - - 8 IS NOT NULL
----
14
47
5

query II rowsort
SELECT + ( col2 ) AS col1, col2 AS col0 FROM tab2 AS cor0
----
23
23
40
40
58
58

query I rowsort
SELECT DISTINCT - col2 * - + col1 + - col1 FROM tab0 AS cor0
----
189
3726
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4487
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE NOT + col2 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-4487
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT + col2 > NULL
----
0

query II rowsort
SELECT ALL + 75, col2 AS col0 FROM tab2 WHERE NOT ( + col2 ) IS NULL
----
75
23
75
40
75
58

query II rowsort
SELECT + col1, col1 AS col0 FROM tab2 cor0
----
51
51
67
67
77
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4490
SELECT - + AVG ( + CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4490
SELECT - + AVG ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT col1 AS col1 FROM tab2 AS cor0 WHERE ( NOT ( - - 94 ) >= NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4492
SELECT DISTINCT - ( ( MIN( ALL - 22 ) ) ) FROM tab1 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-4492
SELECT DISTINCT - ( ( MIN ( ALL - 22 ) ) ) FROM tab1 AS cor0
----
22

query I rowsort
SELECT + + col2 * + 58 AS col0 FROM tab2 AS cor0
----
1334
2320
3364

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <> ( - col0 )
----

query I rowsort
SELECT ALL 15 * + col2 AS col0 FROM tab2 cor0 WHERE + col1 IS NOT NULL
----
345
600
870

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL BETWEEN ( NULL ) AND + + 70 * - col2
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + ( + 79 ) = + ( - col0 ) + - 27 * + ( - col2 ) + + - col1 + col1 + - + col1 * col2
----

query I rowsort
SELECT ALL - - col1 FROM tab0 WHERE NULL >= - 68
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4499
SELECT SUM( - col1 ) + - 93 + + MAX( - + col2 ) AS col0 FROM tab2
----
-311

skipif mysql # not compatible
query I rowsort label-4499
SELECT SUM ( - col1 ) + - 93 + + MAX ( - + col2 ) AS col0 FROM tab2
----
-311

query I rowsort
SELECT ALL 9 + - col2 AS col0 FROM tab2
----
-14
-31
-49

query I rowsort
SELECT ALL - - col0 FROM tab1 WHERE NOT - + col2 NOT BETWEEN NULL AND - col1
----

query I rowsort
SELECT - 81 + - 53 * 11 AS col2 FROM tab1
----
-664
-664
-664

onlyif mysql # aggregate syntax: 
query I rowsort label-4503
SELECT 45 + + - MAX( ALL + 77 ) FROM tab2
----
-32

skipif mysql # not compatible
query I rowsort label-4503
SELECT 45 + + - MAX ( ALL + 77 ) FROM tab2
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4504
SELECT DISTINCT + 30 - + - ( - CAST( NULL AS SIGNED ) ) + COUNT( * ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4504
SELECT DISTINCT + 30 - + - ( - CAST ( NULL AS INTEGER ) ) + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT - col1, - col2 + - + col2 * - col2 AS col0 FROM tab1 AS cor0
----
-14
9120
-47
4556
-5
3422

query I rowsort
SELECT ALL col2 AS col1 FROM tab2 AS cor0 WHERE NOT - col2 IN ( 26 * + - col0 )
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4507
SELECT CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4507
SELECT CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query II rowsort
SELECT ALL col2, col0 * + - col2 AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
23
-1058
40
-2560
58
-4350

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4509
SELECT ALL - 51 * 4 DIV - COUNT( * ) AS col2 FROM tab1 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-4509
SELECT ALL - 51 * 4 / - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
68

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 73 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4511
SELECT - COUNT( DISTINCT CAST( NULL AS SIGNED ) ) + - COUNT( * ) AS col2 FROM tab2 WHERE NOT + col1 * + - col1 BETWEEN 2 AND col0
----
-3

skipif mysql # not compatible
query I rowsort label-4511
SELECT - COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) + - COUNT ( * ) AS col2 FROM tab2 WHERE NOT + col1 * + - col1 BETWEEN 2 AND col0
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4512
SELECT * FROM tab0 WHERE NOT + + col0 + - col1 * - 16 / CAST( NULL AS DECIMAL ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4512
SELECT * FROM tab0 WHERE NOT + + col0 + - col1 * - 16 / CAST ( NULL AS REAL ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4513
SELECT DISTINCT COUNT( * ) * MIN( - col2 ) AS col1 FROM tab2
----
-174

skipif mysql # not compatible
query I rowsort label-4513
SELECT DISTINCT COUNT ( * ) * MIN ( - col2 ) AS col1 FROM tab2
----
-174

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - ( - 8 ) * + ( + col1 ) <= ( + col0 * + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4515
SELECT + col2 AS col1 FROM tab2 WHERE NOT col1 * CAST( + - col0 AS SIGNED ) NOT IN ( - 18, + col2, - 37 + 23 )
----

skipif mysql # not compatible
query I rowsort label-4515
SELECT + col2 AS col1 FROM tab2 WHERE NOT col1 * CAST ( + - col0 AS INTEGER ) NOT IN ( - 18, + col2, - 37 + 23 )
----

query II rowsort
SELECT col0 * 57 * + col2, - col1 + - col1 AS col0 FROM tab0
----
40185
-162
49590
-42
547371
-2

query I rowsort
SELECT DISTINCT - ( - col0 ) * + + 87 FROM tab1 AS cor0
----
4437
7395
7917

query II rowsort
SELECT DISTINCT + col1, + 53 * + + col1 + + - 89 FROM tab0 AS cor0
----
1
-36
21
1024
81
4204

query II rowsort
SELECT 60, + col0 FROM tab1 AS cor0
----
60
51
60
85
60
91

query I rowsort
SELECT ALL - + 24 FROM tab2 AS cor0 WHERE - col2 >= - 57 + - + col1
----
-24
-24
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-4521
SELECT SUM( DISTINCT - col1 ) * - - COUNT( + 46 ) AS col2 FROM tab2
----
-585

skipif mysql # not compatible
query I rowsort label-4521
SELECT SUM ( DISTINCT - col1 ) * - - COUNT ( + 46 ) AS col2 FROM tab2
----
-585

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4522
SELECT CAST( NULL AS SIGNED ) * + + ( + ( - ( - 57 ) ) ) / + - col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4522
SELECT CAST ( NULL AS INTEGER ) * + + ( + ( - ( - 57 ) ) ) / + - col0 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 < col1 / + + col1 + + + col0
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4524
SELECT 96 * + CAST( - col1 AS SIGNED ) + + col1 / - col0 + CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4524
SELECT 96 * + CAST ( - col1 AS INTEGER ) + + col1 / - col0 + CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col1 * + + col1 FROM tab2 AS cor0
----
-2601
-4489
-5929

query I rowsort
SELECT DISTINCT + col1 * + - col0 + + col1 + - col1 AS col2 FROM tab2 AS cor0
----
-2346
-4928
-5025

query I rowsort
SELECT ALL - - col2 * col2 * 7 FROM tab1 AS cor0
----
24367
32368
64512

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4528
SELECT DISTINCT + - 33 + SUM( ALL - CAST( - - col0 AS SIGNED ) ) FROM tab0 AS cor0
----
-232

skipif mysql # not compatible
query I rowsort label-4528
SELECT DISTINCT + - 33 + SUM ( ALL - CAST ( - - col0 AS INTEGER ) ) FROM tab0 AS cor0
----
-232

query I rowsort
SELECT ALL + 57 AS col2 FROM tab0 AS cor0 WHERE NOT + col1 + 46 + - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4530
SELECT - CAST( - 19 AS DECIMAL ) * + col0 + - - 72 AS col0 FROM tab2 AS cor0 WHERE - CAST( col2 AS DECIMAL ) IN ( - - 70 + col0 + - - col0 * col0, + 92 * - col2, - col1 )
----

skipif mysql # not compatible
query I rowsort label-4530
SELECT - CAST ( - 19 AS REAL ) * + col0 + - - 72 AS col0 FROM tab2 AS cor0 WHERE - CAST ( col2 AS REAL ) IN ( - - 70 + col0 + - - col0 * col0, + 92 * - col2, - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4531
SELECT DISTINCT - COUNT( * ) * - 44 AS col1 FROM tab2
----
132

skipif mysql # not compatible
query I rowsort label-4531
SELECT DISTINCT - COUNT ( * ) * - 44 AS col1 FROM tab2
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-4532
SELECT ALL 40 + - - 13 + - - COUNT( * ) AS col2 FROM tab1
----
56

skipif mysql # not compatible
query I rowsort label-4532
SELECT ALL 40 + - - 13 + - - COUNT ( * ) AS col2 FROM tab1
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4533
SELECT CAST( NULL AS SIGNED ) * - - 31 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4533
SELECT CAST ( NULL AS INTEGER ) * - - 31 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4534
SELECT DISTINCT + COUNT( + 87 ) - - COUNT( * ) FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-4534
SELECT DISTINCT + COUNT ( + 87 ) - - COUNT ( * ) FROM tab2
----
6

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 * + - col1 * - 28 / - + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 39 - - col1 FROM tab0
----
-18
-38
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4537
SELECT col0 * - 91 - + col2 + - col0 + col2 + CAST( + 53 AS SIGNED ) * - col2 - 17 FROM tab2
----
-5468
-8025
-9991

skipif mysql # not compatible
query I rowsort label-4537
SELECT col0 * - 91 - + col2 + - col0 + col2 + CAST ( + 53 AS INTEGER ) * - col2 - 17 FROM tab2
----
-5468
-8025
-9991

query I rowsort
SELECT - + ( col2 ) * col0 + + + col0 AS col1 FROM tab0 AS cor0
----
-690
-783
-9506

query II rowsort
SELECT ALL + + 54 AS col2, + col0 * + - col0 FROM tab0 AS cor0
----
54
-225
54
-7569
54
-9409

query I rowsort
SELECT + 53 * 2 + - col2 - - col0 + - col0 / - col2 AS col0 FROM tab0 WHERE NOT NULL <> - 37 * ( + + ( 25 ) ) - col1
----

query II rowsort
SELECT 12 AS col0, col2 FROM tab2 cor0
----
12
23
12
40
12
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0, ( - col0 ) col1 FROM tab1 AS cor0
----
51
-51
85
-85
91
-91

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN 7 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 80 col2 FROM tab2 AS cor0
----
-80
-80
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-4545
SELECT - MIN( + - 23 ) * - COUNT( * ) FROM tab1 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-4545
SELECT - MIN ( + - 23 ) * - COUNT ( * ) FROM tab1 AS cor0
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-4546
SELECT ALL + MAX( ALL ( - col1 ) ) FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-4546
SELECT ALL + MAX ( ALL ( - col1 ) ) FROM tab1 AS cor0
----
-5

query I rowsort
SELECT + 7 * + + col2 * + 82 FROM tab2 AS cor0
----
13202
22960
33292

onlyif mysql # aggregate syntax: 
query I rowsort label-4548
SELECT - MAX( DISTINCT 77 ) * - MAX( ALL - - 19 ) col2 FROM tab1
----
1463

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4548
SELECT - MAX ( DISTINCT 77 ) * - MAX ( ALL - - 19 ) col2 FROM tab1
----
1463

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + ( col0 ) col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4550
SELECT - 70 + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-73

skipif mysql # not compatible
query I rowsort label-4550
SELECT - 70 + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-73

query I rowsort
SELECT - 41 + col1 + - col1 FROM tab2 cor0
----
-41
-41
-41

query I rowsort
SELECT - 51 * 20 * - col0 + - col2 FROM tab0 AS cor0
----
15253
88730
98841

onlyif mysql # DIV for integer division: 
query I rowsort label-4553
SELECT ALL - col0 + - col2 DIV + 62 AS col2 FROM tab1 AS cor0
----
-52
-85
-92

skipif mysql # not compatible
query I rowsort label-4553
SELECT ALL - col0 + - col2 / + 62 AS col2 FROM tab1 AS cor0
----
-52
-85
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-4554
SELECT DISTINCT - 39 DIV - + 86 * - 19 * - col0 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4554
SELECT DISTINCT - 39 / - + 86 * - 19 * - col0 AS col0 FROM tab2 AS cor0
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL = + col0 / + col1
----

query I rowsort
SELECT DISTINCT 89 * + - col2 * + ( + col2 ) * + - col2 FROM tab2 AS cor0
----
1082863
17364968
5696000

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4557
SELECT CAST( NULL AS SIGNED ) + - 25 * - + AVG ( ALL - col0 ) * - 97 col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4557
SELECT CAST ( NULL AS INTEGER ) + - 25 * - + AVG ( ALL - col0 ) * - 97 col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT 36 * + 23 FROM tab1 WHERE ( - - 41 ) IS NULL
----

query I rowsort
SELECT DISTINCT - col0 + 23 + + 53 * - col2 * + 89 + + 66 * + col2 * col0 AS col0 FROM tab2
----
-19761
-38686
13462

query I rowsort
SELECT DISTINCT - col2 * col0 - - 35 AS col0 FROM tab0
----
-670
-835
-9568

onlyif mysql # DIV for integer division: 
query I rowsort label-4561
SELECT ALL + col0 DIV + 51 + + - col2 FROM tab1
----
-58
-67
-95

skipif mysql # not compatible
query I rowsort label-4561
SELECT ALL + col0 / + 51 + + - col2 FROM tab1
----
-58
-67
-95

query I rowsort
SELECT DISTINCT col0 FROM tab0 WHERE + col0 IS NOT NULL
----
15
87
97

query I rowsort
SELECT ALL 22 - 1 FROM tab2
----
21
21
21

query I rowsort
SELECT DISTINCT - col0 * + - 48 AS col2 FROM tab1
----
2448
4080
4368

query I rowsort
SELECT DISTINCT - 75 - + + 98 * + col0 + + + 84 FROM tab1 AS cor0
----
-4989
-8321
-8909

query I rowsort
SELECT - + col2 * + col2 + - + 27 + - 1 FROM tab0 AS cor0 WHERE ( col0 + - - 77 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4567
SELECT ALL + SUM( + + 85 ) col1 FROM tab0 AS cor0
----
255

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4567
SELECT ALL + SUM ( + + 85 ) col1 FROM tab0 AS cor0
----
255

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 44 * col0 col1 FROM tab0 AS cor0
----
3828
4268
660

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 + + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col0 * + col0 * - + col2 FROM tab2
----
-163840
-326250
-48668

onlyif mysql # aggregate syntax: 
query I rowsort label-4571
SELECT ALL - MIN( + 28 ) AS col1 FROM tab0
----
-28

skipif mysql # not compatible
query I rowsort label-4571
SELECT ALL - MIN ( + 28 ) AS col1 FROM tab0
----
-28

onlyif mysql # DIV for integer division: 
query I rowsort label-4572
SELECT + 40 DIV col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4572
SELECT + 40 / col1 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT - ( - + 64 ) FROM tab2
----
64

query I rowsort
SELECT - col1 AS col0 FROM tab0 AS cor0 WHERE NOT - col0 >= + col2 - + - col0
----
-1
-21
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-4575
SELECT + + col0 DIV + ( - col1 ) FROM tab0 AS cor0
----
-4
-97
0

skipif mysql # not compatible
query I rowsort label-4575
SELECT + + col0 / + ( - col1 ) FROM tab0 AS cor0
----
-4
-97
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4576
SELECT DISTINCT + 51 DIV col1 AS col0 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-4576
SELECT DISTINCT + 51 / col1 AS col0 FROM tab2 AS cor0
----
0
1

query I rowsort
SELECT + 64 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
64
64
64

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL IS NULL AND NULL NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4579
SELECT + COUNT( * ) * + SUM( DISTINCT + ( + col2 ) ) AS col0 FROM tab2
----
363

skipif mysql # not compatible
query I rowsort label-4579
SELECT + COUNT ( * ) * + SUM ( DISTINCT + ( + col2 ) ) AS col0 FROM tab2
----
363

onlyif mysql # aggregate syntax: 
query I rowsort label-4580
SELECT MAX( ALL + 77 ) FROM tab1
----
77

skipif mysql # not compatible
query I rowsort label-4580
SELECT MAX ( ALL + 77 ) FROM tab1
----
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2, ( 37 ) col0 FROM tab2
----
23
37
40
37
58
37

query III rowsort
SELECT * FROM tab2 WHERE NOT + 64 < + 73
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 col0, col1 FROM tab1 AS cor0
----
59
5
68
47
96
14

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4584
SELECT DISTINCT - col1 AS col2, - CAST( NULL AS SIGNED ) + + - col1 AS col0 FROM tab2 AS cor0
----
-51
NULL
-67
NULL
-77
NULL

skipif mysql # not compatible
query II rowsort label-4584
SELECT DISTINCT - col1 AS col2, - CAST ( NULL AS INTEGER ) + + - col1 AS col0 FROM tab2 AS cor0
----
-51
NULL
-67
NULL
-77
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4585
SELECT - col0 * + col0 * - 58 + + + 64 * + - CAST( NULL AS SIGNED ) * - - 18 * - col2 col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4585
SELECT - col0 * + col0 * - 58 + + + 64 * + - CAST ( NULL AS INTEGER ) * - - 18 * - col2 col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4586
SELECT col1 + col1 AS col1, col0 DIV + - 30 AS col1 FROM tab0
----
162
0
2
-3
42
-2

skipif mysql # not compatible
query II rowsort label-4586
SELECT col1 + col1 AS col1, col0 / + - 30 AS col1 FROM tab0
----
162
0
2
-3
42
-2

query I rowsort
SELECT DISTINCT col1 * - col2 + + + 98 AS col1 FROM tab1
----
-1246
-197
-3098

query I rowsort
SELECT ALL col0 + col1 + ( - + 17 ) FROM tab1
----
121
48
73

query I rowsort
SELECT + 72 + + col2 FROM tab1 AS cor0
----
131
140
168

onlyif mysql # aggregate syntax: 
query I rowsort label-4590
SELECT ALL + + 69 - + - COUNT( * ) FROM tab2 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-4590
SELECT ALL + + 69 - + - COUNT ( * ) FROM tab2 AS cor0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-4591
SELECT ALL - MIN( DISTINCT + 34 ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) = + 47 - - 74
----
NULL

skipif mysql # not compatible
query I rowsort label-4591
SELECT ALL - MIN ( DISTINCT + 34 ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) = + 47 - - 74
----
NULL

query III rowsort
SELECT * FROM tab1 cor0 WHERE 19 / col2 + 85 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col2 + - ( + 64 ) + - - 15 FROM tab0 cor0
----
-2
-39
50

query II rowsort
SELECT ALL + ( + col2 ) AS col0, col2 AS col0 FROM tab0 AS cor0
----
10
10
47
47
99
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4595
SELECT DISTINCT + - COUNT( * ) - + + COUNT( DISTINCT - 93 ) col0 FROM tab1 AS cor0 WHERE + col2 IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4595
SELECT DISTINCT + - COUNT ( * ) - + + COUNT ( DISTINCT - 93 ) col0 FROM tab1 AS cor0 WHERE + col2 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4596
SELECT DISTINCT - - COUNT( DISTINCT + col1 ) + 78 FROM tab1 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-4596
SELECT DISTINCT - - COUNT ( DISTINCT + col1 ) + 78 FROM tab1 AS cor0
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4597
SELECT - col0 - - 97 + - CAST( + 8 AS SIGNED ) + + + col2 - col1 + + col1 col2 FROM tab0
----
12
121
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4597
SELECT - col0 - - 97 + - CAST ( + 8 AS INTEGER ) + + + col2 - col1 + + col1 col2 FROM tab0
----
12
121
91

query I rowsort
SELECT 58 - - 95 AS col0 FROM tab2
----
153
153
153

query II rowsort
SELECT ALL - col2 AS col1, col2 FROM tab0
----
-10
10
-47
47
-99
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4600
SELECT - COUNT( ( + + col2 ) ) * - + COUNT( * ) AS col0 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-4600
SELECT - COUNT ( ( + + col2 ) ) * - + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4601
SELECT CAST( NULL AS SIGNED ) * + 80, MIN( + + col2 ) AS col2 FROM tab0
----
NULL
10

skipif mysql # not compatible
query II rowsort label-4601
SELECT CAST ( NULL AS INTEGER ) * + 80, MIN ( + + col2 ) AS col2 FROM tab0
----
NULL
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 49 col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55

onlyif mysql # aggregate syntax: 
query I rowsort label-4603
SELECT + - MAX( ALL + 28 ) FROM tab0 AS cor0
----
-28

skipif mysql # not compatible
query I rowsort label-4603
SELECT + - MAX ( ALL + 28 ) FROM tab0 AS cor0
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4604
SELECT * FROM tab2 AS cor0 WHERE NOT col0 / - CAST( + + 34 AS SIGNED ) NOT IN ( - 10 * + col1 / + col2 )
----

skipif mysql # not compatible
query III rowsort label-4604
SELECT * FROM tab2 AS cor0 WHERE NOT col0 / - CAST ( + + 34 AS INTEGER ) NOT IN ( - 10 * + col1 / + col2 )
----

query I rowsort
SELECT ALL + ( - - 64 ) AS col1 FROM tab0 cor0
----
64
64
64

onlyif mysql # DIV for integer division: 
query I rowsort label-4606
SELECT ALL + 25 DIV + 68 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4606
SELECT ALL + 25 / + 68 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 29 col0 FROM tab1 AS cor0
----
29
29
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4608
SELECT - - COUNT( DISTINCT + + col1 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4608
SELECT - - COUNT ( DISTINCT + + col1 ) FROM tab1 AS cor0
----
3

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col1 * + 90 <> + col1
----

query I rowsort
SELECT DISTINCT + col2 * - 55 FROM tab2
----
-1265
-2200
-3190

query I rowsort
SELECT DISTINCT col0 + - + col0 AS col1 FROM tab1 WHERE NOT + 40 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4612
SELECT DISTINCT col2 + - ( - - CAST( NULL AS SIGNED ) ) AS col1, - col0 - + col1 AS col2 FROM tab2
----
NULL
-141
NULL
-142
NULL
-97

skipif mysql # not compatible
query II rowsort label-4612
SELECT DISTINCT col2 + - ( - - CAST ( NULL AS INTEGER ) ) AS col1, - col0 - + col1 AS col2 FROM tab2
----
NULL
-141
NULL
-142
NULL
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4613
SELECT ALL COUNT( * ) DIV - MIN( DISTINCT col2 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4613
SELECT ALL COUNT ( * ) / - MIN ( DISTINCT col2 ) FROM tab1
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL < - col0
----

query III rowsort
SELECT * FROM tab1 WHERE - ( + + col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4616
SELECT MIN( + - 75 ) AS col1 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-4616
SELECT MIN ( + - 75 ) AS col1 FROM tab2 AS cor0
----
-75

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col1 <= - 42
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4618
SELECT DISTINCT col0 DIV + - col1 + - - col2 * col2 * col0 AS col1 FROM tab2
----
102400
24334
252299

skipif mysql # not compatible
query I rowsort label-4618
SELECT DISTINCT col0 / + - col1 + - - col2 * col2 * col0 AS col1 FROM tab2
----
102400
24334
252299

onlyif mysql # aggregate syntax: 
query I rowsort label-4619
SELECT DISTINCT + 58 - COUNT( * ) AS col1 FROM tab1
----
55

skipif mysql # not compatible
query I rowsort label-4619
SELECT DISTINCT + 58 - COUNT ( * ) AS col1 FROM tab1
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4620
SELECT DISTINCT COUNT( DISTINCT - CAST( + col2 AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4620
SELECT DISTINCT COUNT ( DISTINCT - CAST ( + col2 AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
3

query II rowsort
SELECT ALL + 18 AS col2, + col0 FROM tab2 AS cor0
----
18
46
18
64
18
75

query I rowsort
SELECT + 60 + + - col2 + + ( 22 ) * - col1 AS col1 FROM tab2 cor0
----
-1085
-1472
-1674

query I rowsort
SELECT - 54 * - col2 FROM tab1 WHERE 95 <= col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4624
SELECT ALL COUNT( ALL + col0 ) + COUNT( * ) AS col0 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-4624
SELECT ALL COUNT ( ALL + col0 ) + COUNT ( * ) AS col0 FROM tab1
----
6

query I rowsort
SELECT DISTINCT ( + + 79 ) * + 22 * ( col0 ) FROM tab0
----
151206
168586
26070

query I rowsort
SELECT DISTINCT 8 * + 43 AS col2 FROM tab0
----
344

onlyif mysql # aggregate syntax: 
query I rowsort label-4627
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab2 WHERE col0 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4627
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab2 WHERE col0 IS NOT NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL ( + 51 ) col2, ( + + col0 ) FROM tab2
----
51
46
51
64
51
75

onlyif mysql # aggregate syntax: 
query II rowsort label-4629
SELECT + COUNT( 38 ) AS col0, COUNT( * ) AS col2 FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-4629
SELECT + COUNT ( 38 ) AS col0, COUNT ( * ) AS col2 FROM tab0
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4630
SELECT ALL COUNT( * ) * + + SUM( 70 ) FROM tab0 AS cor0
----
630

skipif mysql # not compatible
query I rowsort label-4630
SELECT ALL COUNT ( * ) * + + SUM ( 70 ) FROM tab0 AS cor0
----
630

query I rowsort
SELECT DISTINCT - col1 FROM tab0 AS cor0 WHERE NOT - 76 NOT BETWEEN + ( col0 ) + - 60 * + - 9 AND - + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4632
SELECT ALL + ( + col1 ) * + + col0 AS col2, 22 * + CAST( + 85 AS SIGNED ) * + - col1 - col2 FROM tab2
----
2346
-95393
4928
-144030
5025
-125348

skipif mysql # not compatible
query II rowsort label-4632
SELECT ALL + ( + col1 ) * + + col0 AS col2, 22 * + CAST ( + 85 AS INTEGER ) * + - col1 - col2 FROM tab2
----
2346
-95393
4928
-144030
5025
-125348

query I rowsort
SELECT + 35 * col1 FROM tab2
----
1785
2345
2695

onlyif mysql # DIV for integer division: 
query I rowsort label-4634
SELECT DISTINCT col2 DIV + - col1 * - - col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4634
SELECT DISTINCT col2 / + - col1 * - - col2 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4635
SELECT DISTINCT 31 + + COUNT( * ) * + COUNT( - 49 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
112

skipif mysql # not compatible
query I rowsort label-4635
SELECT DISTINCT 31 + + COUNT ( * ) * + COUNT ( - 49 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
112

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col0 FROM tab2 WHERE NOT + 37 + + col1 + - 55 + 22 * col2 / - 78 * + + col0 IS NOT NULL
----

query II rowsort
SELECT + col2 AS col1, col1 AS col0 FROM tab0 AS cor0
----
10
21
47
81
99
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4638
SELECT - - COUNT( - col0 ) * + COUNT( * ) + + 67 * + 17 AS col2 FROM tab1 AS cor0
----
1148

skipif mysql # not compatible
query I rowsort label-4638
SELECT - - COUNT ( - col0 ) * + COUNT ( * ) + + 67 * + 17 AS col2 FROM tab1 AS cor0
----
1148

query II rowsort
SELECT DISTINCT col2 AS col1, - col1 FROM tab1 AS cor0
----
59
-5
68
-47
96
-14

query I rowsort
SELECT + + 57 + + 40 FROM tab0 AS cor0
----
97
97
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 * + + col1 + - - col0 col2, col0 AS col0 FROM tab1 cor0
----
4368
91
510
85
765
51

query I rowsort
SELECT DISTINCT 37 * - col2 FROM tab2 AS cor0
----
-1480
-2146
-851

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 94 + - 64 col2 FROM tab1 AS cor0
----
30
30
30

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4644
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - CAST( NULL AS DECIMAL ) / + col0 ) < NULL
----

skipif mysql # not compatible
query III rowsort label-4644
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - CAST ( NULL AS REAL ) / + col0 ) < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4645
SELECT col1 * - col0, CAST( NULL AS SIGNED ) - + 21 + - col1 AS col2 FROM tab2
----
-2346
NULL
-4928
NULL
-5025
NULL

skipif mysql # not compatible
query II rowsort label-4645
SELECT col1 * - col0, CAST ( NULL AS INTEGER ) - + 21 + - col1 AS col2 FROM tab2
----
-2346
NULL
-4928
NULL
-5025
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4646
SELECT DISTINCT - MAX( DISTINCT - + col1 ) + - + COUNT( * ) AS col0 FROM tab1
----
2

skipif mysql # not compatible
query I rowsort label-4646
SELECT DISTINCT - MAX ( DISTINCT - + col1 ) + - + COUNT ( * ) AS col0 FROM tab1
----
2

query II rowsort
SELECT ALL col0 * + col1, col2 * col1 AS col2 FROM tab1
----
425
295
4277
3196
714
1344

query I rowsort
SELECT DISTINCT ( - - 1 ) FROM tab0
----
1

query I rowsort
SELECT DISTINCT - col1 + + - 26 AS col1 FROM tab1
----
-31
-40
-73

query I rowsort
SELECT 41 * + 91 AS col1 FROM tab1
----
3731
3731
3731

query II rowsort
SELECT 59 * + 13 AS col0, col0 - 61 AS col0 FROM tab2
----
767
-15
767
14
767
3

query II rowsort
SELECT DISTINCT - 58 + 19, 94 AS col2 FROM tab1
----
-39
94

query I rowsort
SELECT DISTINCT + 99 AS col2 FROM tab0 cor0
----
99

query I rowsort
SELECT ALL 68 * - col2 * - - 59 AS col0 FROM tab1 AS cor0
----
-236708
-272816
-385152

onlyif mysql # aggregate syntax: 
query I rowsort label-4655
SELECT + COUNT( * ) + - MAX( - 10 ) FROM tab1 cor0
----
13

skipif mysql # not compatible
query I rowsort label-4655
SELECT + COUNT ( * ) + - MAX ( - 10 ) FROM tab1 cor0
----
13

onlyif mysql # DIV for integer division: 
query I rowsort label-4656
SELECT DISTINCT - 61 * + col1 - - - 22 DIV + + ( + col0 ) + col0 FROM tab2 AS cor0
----
-3065
-4012
-4633

skipif mysql # not compatible
query I rowsort label-4656
SELECT DISTINCT - 61 * + col1 - - - 22 / + + ( + col0 ) + col0 FROM tab2 AS cor0
----
-3065
-4012
-4633

onlyif mysql # aggregate syntax: 
query I rowsort label-4657
SELECT - COUNT( + 46 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-4657
SELECT - COUNT ( + 46 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 * - 77 <= col1 / ( + col1 )
----

query I rowsort
SELECT ALL - 13 - + col1 FROM tab1 AS cor0
----
-18
-27
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4660
SELECT ALL - + 26 - 86 + + COUNT( * ) DIV + - 20 FROM tab0 AS cor0
----
-112

skipif mysql # not compatible
query I rowsort label-4660
SELECT ALL - + 26 - 86 + + COUNT ( * ) / + - 20 FROM tab0 AS cor0
----
-112

query I rowsort
SELECT ALL - col2 * + 34 FROM tab2 AS cor0
----
-1360
-1972
-782

query II rowsort
SELECT col1 AS col2, 68 FROM tab2 AS cor0
----
51
68
67
68
77
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4663
SELECT + + MIN( ALL col1 ) * - COUNT( * ) AS col2 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4663
SELECT + + MIN ( ALL col1 ) * - COUNT ( * ) AS col2 FROM tab0 cor0
----
-3

query I rowsort
SELECT - 19 * + col2 * + 73 AS col2 FROM tab1
----
-133152
-81833
-94316

query II rowsort
SELECT 6 AS col1, 67 + + col1 AS col0 FROM tab2
----
6
118
6
134
6
144

onlyif mysql # DIV for integer division: 
query II rowsort label-4666
SELECT DISTINCT 77, + 42 DIV - col0 AS col0 FROM tab0
----
77
-2
77
0

skipif mysql # not compatible
query II rowsort label-4666
SELECT DISTINCT 77, + 42 / - col0 AS col0 FROM tab0
----
77
-2
77
0

query I rowsort
SELECT + - col1 FROM tab0 WHERE NOT + 43 * col1 NOT IN ( - - 69 + + col2 + + 79, - col0, + col2 - + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4668
SELECT CAST( - col2 AS SIGNED ) DIV CAST( col0 AS SIGNED ) FROM tab0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-4668
SELECT CAST ( - col2 AS INTEGER ) / CAST ( col0 AS INTEGER ) FROM tab0
----
-1
-3
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4669
SELECT - COUNT( * ) * + 24 AS col0 FROM tab1
----
-72

skipif mysql # not compatible
query I rowsort label-4669
SELECT - COUNT ( * ) * + 24 AS col0 FROM tab1
----
-72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 51, col1 + col2 col2 FROM tab0
----
-51
100
-51
128
-51
31

query II rowsort
SELECT ALL - 80, + 19 AS col1 FROM tab2 cor0
----
-80
19
-80
19
-80
19

query II rowsort
SELECT DISTINCT 88 AS col2, - col1 * + 77 FROM tab1 cor0
----
88
-1078
88
-3619
88
-385

query II rowsort
SELECT + col2, 89 AS col0 FROM tab0 AS cor0
----
10
89
47
89
99
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 64 ) col2 FROM tab0 AS cor0
----
-64
-64
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-4675
SELECT ALL MAX( ALL - col2 ) col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4675
SELECT ALL MAX ( ALL - col2 ) col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 * - ( + col1 ) BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - ( 10 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4678
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 84 <= - col1 + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4678
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 84 <= - col1 + - CAST ( NULL AS INTEGER )
----

query II rowsort
SELECT ALL col0 + + 68 AS col2, - col2 - - col0 * - 63 FROM tab1 AS cor0
----
119
-3309
153
-5414
159
-5801

onlyif mysql # aggregate syntax: 
query I rowsort label-4680
SELECT DISTINCT 4 - COUNT( * ) * - COUNT( - 68 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
4

skipif mysql # not compatible
query I rowsort label-4680
SELECT DISTINCT 4 - COUNT ( * ) * - COUNT ( - 68 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4681
SELECT ALL + MIN( DISTINCT - CAST( col2 AS SIGNED ) ) + COUNT( ALL + col0 ) AS col1 FROM tab2 AS cor0
----
-55

skipif mysql # not compatible
query I rowsort label-4681
SELECT ALL + MIN ( DISTINCT - CAST ( col2 AS INTEGER ) ) + COUNT ( ALL + col0 ) AS col1 FROM tab2 AS cor0
----
-55

query I rowsort
SELECT - col2 + - + col0 AS col1 FROM tab1
----
-144
-147
-159

query I rowsort
SELECT DISTINCT - ( 54 ) * + + ( 78 ) FROM tab1
----
-4212

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4684
SELECT CAST( NULL AS SIGNED ) + + ( 96 ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4684
SELECT CAST ( NULL AS INTEGER ) + + ( 96 ) FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4685
SELECT DISTINCT + 75 * - COUNT( * ) FROM tab1 AS cor0
----
-225

skipif mysql # not compatible
query I rowsort label-4685
SELECT DISTINCT + 75 * - COUNT ( * ) FROM tab1 AS cor0
----
-225

query I rowsort
SELECT DISTINCT + 67 * - col0 FROM tab2 AS cor0
----
-3082
-4288
-5025

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 * + - col2 = col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4688
SELECT DISTINCT + 89 * + COUNT( DISTINCT col2 ) AS col2 FROM tab0
----
267

skipif mysql # not compatible
query I rowsort label-4688
SELECT DISTINCT + 89 * + COUNT ( DISTINCT col2 ) AS col2 FROM tab0
----
267

onlyif mysql # DIV for integer division: 
query I rowsort label-4689
SELECT DISTINCT 58 DIV + 38 - - col0 FROM tab0
----
16
88
98

skipif mysql # not compatible
query I rowsort label-4689
SELECT DISTINCT 58 / + 38 - - col0 FROM tab0
----
16
88
98

onlyif mysql # DIV for integer division: 
query I rowsort label-4690
SELECT - 25 DIV col2 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4690
SELECT - 25 / col2 AS col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4691
SELECT + MIN( + 56 ) DIV MIN( ALL col1 + col2 ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-4691
SELECT + MIN ( + 56 ) / MIN ( ALL col1 + col2 ) AS col0 FROM tab0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4692
SELECT - 15 DIV + 34 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4692
SELECT - 15 / + 34 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT + 62 * - col1 - col2 FROM tab1
----
-2982
-369
-964

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4694
SELECT DISTINCT - 15 / CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4694
SELECT DISTINCT - 15 / CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT col0 AS col2 FROM tab1 WHERE NOT + col1 BETWEEN ( 66 * col2 + col0 ) AND NULL
----
51
85
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4696
SELECT DISTINCT 70 * SUM( CAST( 14 AS SIGNED ) ) + COUNT( * ) AS col2 FROM tab2
----
2943

skipif mysql # not compatible
query I rowsort label-4696
SELECT DISTINCT 70 * SUM ( CAST ( 14 AS INTEGER ) ) + COUNT ( * ) AS col2 FROM tab2
----
2943

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4697
SELECT DISTINCT + CAST( + 46 AS SIGNED ) + - 37 * col1 AS col2 FROM tab2 WHERE ( - 85 + 42 ) NOT BETWEEN - 37 AND NULL
----
-1841
-2433
-2803

skipif mysql # not compatible
query I rowsort label-4697
SELECT DISTINCT + CAST ( + 46 AS INTEGER ) + - 37 * col1 AS col2 FROM tab2 WHERE ( - 85 + 42 ) NOT BETWEEN - 37 AND NULL
----
-1841
-2433
-2803

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4698
SELECT 91 * - MAX( col0 DIV 41 ) FROM tab2
----
-91

skipif mysql # not compatible
query I rowsort label-4698
SELECT 91 * - MAX ( col0 / 41 ) FROM tab2
----
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-4699
SELECT - 39 + ( 4 + 28 DIV + 62 ) AS col2 FROM tab2
----
-35
-35
-35

skipif mysql # not compatible
query I rowsort label-4699
SELECT - 39 + ( 4 + 28 / + 62 ) AS col2 FROM tab2
----
-35
-35
-35

query I rowsort
SELECT col2 * col1 FROM tab2 WHERE col2 * col1 IS NULL
----

query I rowsort
SELECT DISTINCT - 63 + - col2 * ( + ( col1 ) ) AS col2 FROM tab1
----
-1407
-3259
-358

onlyif mysql # aggregate syntax: 
query I rowsort label-4702
SELECT + COUNT( * ) AS col2 FROM tab2 WHERE NOT ( + col2 + col1 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4702
SELECT + COUNT ( * ) AS col2 FROM tab2 WHERE NOT ( + col2 + col1 ) IS NULL
----
3

query I rowsort
SELECT - 10 * col0 FROM tab1 WHERE NOT ( 96 ) IS NULL
----
-510
-850
-910

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IN ( 59 )
----

query I rowsort
SELECT col1 * - col2 + - 87 FROM tab1
----
-1431
-3283
-382

onlyif mysql # aggregate syntax: 
query I rowsort label-4706
SELECT 58 + - 28 * - COUNT( * ) AS col2 FROM tab2
----
142

skipif mysql # not compatible
query I rowsort label-4706
SELECT 58 + - 28 * - COUNT ( * ) AS col2 FROM tab2
----
142

onlyif mysql # aggregate syntax: 
query I rowsort label-4707
SELECT DISTINCT + 33 * + ( + COUNT( * ) ) AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
99

skipif mysql # not compatible
query I rowsort label-4707
SELECT DISTINCT + 33 * + ( + COUNT ( * ) ) AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
99

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4708
SELECT * FROM tab1 WHERE NOT ( + 30 * ( CAST( NULL AS DECIMAL ) ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-4708
SELECT * FROM tab1 WHERE NOT ( + 30 * ( CAST ( NULL AS REAL ) ) ) IS NULL
----

query I rowsort
SELECT col1 + + 40 AS col0 FROM tab2 WHERE NOT col2 IS NULL
----
107
117
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4710
SELECT + MAX( ALL ( - 73 ) ) AS col1 FROM tab1
----
-73

skipif mysql # not compatible
query I rowsort label-4710
SELECT + MAX ( ALL ( - 73 ) ) AS col1 FROM tab1
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-4711
SELECT SUM( 2 ) + COUNT( * ) FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-4711
SELECT SUM ( 2 ) + COUNT ( * ) FROM tab1
----
9

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 >= col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + col2 * col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 - - col1 <> col2
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 48 IN ( - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL >= col0 * + col1
----

query I rowsort
SELECT ALL col1 + - col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - col1 ) NOT BETWEEN NULL AND col0 / + col1
----

query I rowsort
SELECT DISTINCT + 30 * col1 FROM tab1 cor0
----
1410
150
420

query I rowsort
SELECT DISTINCT + 87 + col0 FROM tab2 WHERE NOT ( NULL ) BETWEEN 65 AND col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 91 col0 FROM tab0 AS cor0 CROSS JOIN tab0
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4722
SELECT + col1 FROM tab0 WHERE NOT ( col1 ) >= - CAST( - 94 AS SIGNED ) + col2
----
1
21
81

skipif mysql # not compatible
query I rowsort label-4722
SELECT + col1 FROM tab0 WHERE NOT ( col1 ) >= - CAST ( - 94 AS INTEGER ) + col2
----
1
21
81

query I rowsort
SELECT - 9 + - 95 FROM tab2
----
-104
-104
-104

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 6 + - col0 col1 FROM tab2 AS cor0
----
-40
-58
-69

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN col0 AND col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4726
SELECT ALL 73 * + col1 + CAST( - col0 AS SIGNED ) FROM tab1 cor0
----
280
3340
971

skipif mysql # not compatible
query I rowsort label-4726
SELECT ALL 73 * + col1 + CAST ( - col0 AS INTEGER ) FROM tab1 cor0
----
280
3340
971

onlyif mysql # aggregate syntax: 
query I rowsort label-4727
SELECT ALL - COUNT( * ) * + 4 AS col2 FROM tab1 cor0
----
-12

skipif mysql # not compatible
query I rowsort label-4727
SELECT ALL - COUNT ( * ) * + 4 AS col2 FROM tab1 cor0
----
-12

query I rowsort
SELECT DISTINCT + + 76 + 28 AS col0 FROM tab0 AS cor0
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-4729
SELECT ALL COUNT( * ) + + COUNT( * ) FROM tab0 AS cor0 WHERE col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4729
SELECT ALL COUNT ( * ) + + COUNT ( * ) FROM tab0 AS cor0 WHERE col0 IS NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4730
SELECT ALL col2 + col0 DIV col0 AS col2 FROM tab1 AS cor0
----
60
69
97

skipif mysql # not compatible
query I rowsort label-4730
SELECT ALL col2 + col0 / col0 AS col2 FROM tab1 AS cor0
----
60
69
97

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 IS NOT NULL OR NOT NULL IS NULL
----

query I rowsort
SELECT - 8 * - + col2 FROM tab2
----
184
320
464

query I rowsort
SELECT DISTINCT - 51 * 34 FROM tab0
----
-1734

query I rowsort
SELECT ALL col0 * + col0 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4735
SELECT - COUNT( * ) - + CAST( NULL AS DECIMAL ) + + ( 7 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4735
SELECT - COUNT ( * ) - + CAST ( NULL AS REAL ) + + ( 7 ) FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT 94 * - - col1 AS col1 FROM tab0
----
1974
7614
94

query I rowsort
SELECT + col2 - col2 * - 46 FROM tab1
----
2773
3196
4512

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 29 IS NULL AND NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4739
SELECT DISTINCT col0 DIV + col2 AS col2 FROM tab1 cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-4739
SELECT DISTINCT col0 / + col2 AS col2 FROM tab1 cor0
----
0
1

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 94 IS NOT NULL AND NOT col2 IS NOT NULL
----

query I rowsort
SELECT - col2 + 56 FROM tab2
----
-2
16
33

query II rowsort
SELECT + col1, col0 + - col0 AS col2 FROM tab2
----
51
0
67
0
77
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN col2 + + col1 / + col2 AND NULL
----

query I rowsort
SELECT - col2 + - col0 AS col1 FROM tab0 WHERE NOT ( NULL IN ( col1 + col1 ) )
----

query I rowsort
SELECT + ( + + col1 ) * - 50 FROM tab2 AS cor0
----
-2550
-3350
-3850

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( col0 / - ( col2 ) ) NOT BETWEEN ( NULL ) AND NULL
----

query II rowsort
SELECT ALL + - col2 AS col1, col0 FROM tab2 cor0
----
-23
46
-40
64
-58
75

onlyif mysql # DIV for integer division: 
query I rowsort label-4748
SELECT DISTINCT - col0 DIV - 60 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-4748
SELECT DISTINCT - col0 / - 60 FROM tab2 AS cor0
----
0
1

query I rowsort
SELECT col0 * + - 70 AS col2 FROM tab2 AS cor0
----
-3220
-4480
-5250

query I rowsort
SELECT + col1 * col0 AS col0 FROM tab0 AS cor0 WHERE NOT + 22 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4751
SELECT ALL - + 32 DIV - col2 + col1 * + col0 AS col2 FROM tab1 AS cor0
----
425
4277
714

skipif mysql # not compatible
query I rowsort label-4751
SELECT ALL - + 32 / - col2 + col1 * + col0 AS col2 FROM tab1 AS cor0
----
425
4277
714

query I rowsort
SELECT DISTINCT col1 * col0 AS col2 FROM tab0 AS cor0 WHERE NOT - col0 + col1 NOT BETWEEN 51 * + 19 AND - 98
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4753
SELECT DISTINCT + - COUNT( * ) AS col2, - 30 FROM tab1 AS cor0
----
-3
-30

skipif mysql # not compatible
query II rowsort label-4753
SELECT DISTINCT + - COUNT ( * ) AS col2, - 30 FROM tab1 AS cor0
----
-3
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-4754
SELECT SUM( ALL + + col0 ) * + COUNT( * ) FROM tab1
----
681

skipif mysql # not compatible
query I rowsort label-4754
SELECT SUM ( ALL + + col0 ) * + COUNT ( * ) FROM tab1
----
681

query I rowsort
SELECT DISTINCT + 73 - + 19 AS col2 FROM tab0 WHERE + 18 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - + 32 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col2 * + 13 - + col2 FROM tab1 WHERE NOT + + col0 <= ( + 25 * col2 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4758
SELECT COUNT( ALL + col1 ) AS col1, - 68 AS col1 FROM tab2
----
3
-68

skipif mysql # not compatible
query II rowsort label-4758
SELECT COUNT ( ALL + col1 ) AS col1, - 68 AS col1 FROM tab2
----
3
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-4759
SELECT DISTINCT - 23 * COUNT( * ) AS col2 FROM tab0
----
-69

skipif mysql # not compatible
query I rowsort label-4759
SELECT DISTINCT - 23 * COUNT ( * ) AS col2 FROM tab0
----
-69

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 97 + 75 - 29 NOT BETWEEN - 72 AND + 92 * - 96
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - col0 ) BETWEEN NULL AND - col1
----
15
81
47

query I rowsort
SELECT col1 * + 8 * + 72 FROM tab0
----
12096
46656
576

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - col2 ) NOT BETWEEN - col2 * + col0 AND - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col2 AS col1 FROM tab1 WHERE + col0 IN ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4765
SELECT ALL + MIN( ALL - + 34 ) FROM tab1 AS cor0
----
-34

skipif mysql # not compatible
query I rowsort label-4765
SELECT ALL + MIN ( ALL - + 34 ) FROM tab1 AS cor0
----
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4766
SELECT + - 90 + col2 * - CAST( + - 37 AS SIGNED ) FROM tab0 cor0
----
1649
280
3573

skipif mysql # not compatible
query I rowsort label-4766
SELECT + - 90 + col2 * - CAST ( + - 37 AS INTEGER ) FROM tab0 cor0
----
1649
280
3573

query I rowsort
SELECT DISTINCT + col0 + + col2 + - - col0 * - - col1 FROM tab1 AS cor0
----
4436
569
861

onlyif mysql # aggregate syntax: 
query I rowsort label-4768
SELECT 21 * - 2 + - - COUNT( - + col1 ) AS col2 FROM tab0 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-4768
SELECT 21 * - 2 + - - COUNT ( - + col1 ) AS col2 FROM tab0 AS cor0
----
-39

query I rowsort
SELECT col1 / - col1 AS col2 FROM tab2 AS cor0 WHERE NOT + ( + - 55 ) IS NOT NULL
----

query I rowsort
SELECT col2 + 15 AS col1 FROM tab2 AS cor0 WHERE NOT NULL <> 53 * + - col2 + - col1 - col2
----

query I rowsort
SELECT - 29 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 0cc9ddad93fc783055518ae4b6be054b

query I rowsort
SELECT 58 * col0 FROM tab1 AS cor0 WHERE col2 BETWEEN + - 2 * + - col2 AND NULL
----

query I rowsort
SELECT - 75 * + col1 * + + col1 FROM tab0 AS cor0
----
-33075
-492075
-75

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4774
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col1 * + CAST( NULL AS DECIMAL ) AND ( + col0 * - col1 )
----

skipif mysql # not compatible
query III rowsort label-4774
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col1 * + CAST ( NULL AS REAL ) AND ( + col0 * - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + col2 AS col2, + col0 col0 FROM tab2 AS cor0
----
23
46
40
64
58
75

query I rowsort
SELECT + + 72 + - - col0 * + col2 AS col0 FROM tab1 AS cor0
----
4968
5087
6260

query I rowsort
SELECT DISTINCT - col0 + - + 75 FROM tab2 AS cor0
----
-121
-139
-150

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 < + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-4779
SELECT DISTINCT + col1 - + col1 DIV - col0 FROM tab2
----
52
67
78

skipif mysql # not compatible
query I rowsort label-4779
SELECT DISTINCT + col1 - + col1 / - col0 FROM tab2
----
52
67
78

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4780
SELECT * FROM tab1 WHERE + col1 * - CAST( 17 AS SIGNED ) * + col0 NOT IN ( 46 * + ( col1 * - col1 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4780
SELECT * FROM tab1 WHERE + col1 * - CAST ( 17 AS INTEGER ) * + col0 NOT IN ( 46 * + ( col1 * - col1 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 WHERE + 57 BETWEEN NULL AND ( + 60 + + 14 )
----

query II rowsort
SELECT col0 AS col2, - col1 + + - col0 AS col1 FROM tab2 AS cor0
----
46
-97
64
-141
75
-142

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4783
SELECT col0 col1, + 57 FROM tab1 AS cor0 WHERE ( + CAST( NULL AS SIGNED ) * col0 ) > NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4783
SELECT col0 col1, + 57 FROM tab1 AS cor0 WHERE ( + CAST ( NULL AS INTEGER ) * col0 ) > NULL
----

query I rowsort
SELECT DISTINCT col0 * - - 18 AS col1 FROM tab1
----
1530
1638
918

onlyif mysql # aggregate syntax: 
query I rowsort label-4785
SELECT DISTINCT + + COUNT( * ) - - - 74 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-65

skipif mysql # not compatible
query I rowsort label-4785
SELECT DISTINCT + + COUNT ( * ) - - - 74 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-65

query I rowsort
SELECT - - 62 AS col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0

onlyif mysql # aggregate syntax: 
query I rowsort label-4787
SELECT - ( + MIN( col0 ) ) AS col0 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-4787
SELECT - ( + MIN ( col0 ) ) AS col0 FROM tab0 AS cor0
----
-15

query I rowsort
SELECT DISTINCT + - ( + col0 ) AS col2 FROM tab2 AS cor0 WHERE + 92 IS NULL
----

query I rowsort
SELECT ALL col1 * + col1 * + col0 * - 35 AS col0 FROM tab2 AS cor0
----
-11783625
-13280960
-4187610

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4790
SELECT DISTINCT CAST( + - col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-4790
SELECT DISTINCT CAST ( + - col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT ALL 61 FROM tab0 WHERE NOT 20 < - + 69
----
61
61
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4792
SELECT + COUNT( * ) AS col2 FROM tab2 WHERE NOT ( - col1 ) / - + 45 - - col1 + - 61 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-4792
SELECT + COUNT ( * ) AS col2 FROM tab2 WHERE NOT ( - col1 ) / - + 45 - - col1 + - 61 > NULL
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4793
SELECT ALL - col1 * + 53 * - CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4793
SELECT ALL - col1 * + 53 * - CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT 58 NOT BETWEEN + - col0 AND NULL
----

query I rowsort
SELECT 32 * - 78 AS col1 FROM tab2
----
-2496
-2496
-2496

onlyif mysql # aggregate syntax: 
query I rowsort label-4796
SELECT DISTINCT MAX( DISTINCT + col0 ) * - 62 FROM tab2
----
-4650

skipif mysql # not compatible
query I rowsort label-4796
SELECT DISTINCT MAX ( DISTINCT + col0 ) * - 62 FROM tab2
----
-4650

query I rowsort
SELECT ALL - col1 FROM tab2 WHERE NOT ( + 37 * - 78 * + 36 - + col1 ) <= ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4798
SELECT 93 DIV col1 FROM tab1
----
1
18
6

skipif mysql # not compatible
query I rowsort label-4798
SELECT 93 / col1 FROM tab1
----
1
18
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4799
SELECT ALL 98 DIV - COUNT( * ) AS col0 FROM tab1
----
-32

skipif mysql # not compatible
query I rowsort label-4799
SELECT ALL 98 / - COUNT ( * ) AS col0 FROM tab1
----
-32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4800
SELECT DISTINCT COUNT( * ) DIV - 70 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4800
SELECT DISTINCT COUNT ( * ) / - 70 AS col1 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4801
SELECT COUNT( * ) * + - 88 AS col1 FROM tab2
----
-264

skipif mysql # not compatible
query I rowsort label-4801
SELECT COUNT ( * ) * + - 88 AS col1 FROM tab2
----
-264

query II rowsort
SELECT ALL - col0, + 49 AS col0 FROM tab0
----
-15
49
-87
49
-97
49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col1, + col2 FROM tab1
----
14
96
47
68
5
59

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4804
SELECT DISTINCT 6 AS col0, CAST( NULL AS DECIMAL ) FROM tab0
----
6
NULL

skipif mysql # not compatible
query II rowsort label-4804
SELECT DISTINCT 6 AS col0, CAST ( NULL AS REAL ) FROM tab0
----
6
NULL

query II rowsort
SELECT DISTINCT - - col0, - col2 AS col2 FROM tab2 AS cor0
----
46
-23
64
-40
75
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4806
SELECT - - SUM( DISTINCT 20 ) FROM tab1 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-4806
SELECT - - SUM ( DISTINCT 20 ) FROM tab1 AS cor0
----
20

query I rowsort
SELECT DISTINCT + col2 * - + col1 + + + col0 * + col0 + 52 AS col2 FROM tab2 AS cor0
----
1068
1791
995

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 * - 81 + + 1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-4809
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE - CAST( NULL AS SIGNED ) IS NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

skipif mysql # not compatible
query IIIIII rowsort label-4809
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE - CAST ( NULL AS INTEGER ) IS NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

query I rowsort
SELECT ALL - col1 * - col2 + - col0 + col2 FROM tab1
----
1389
269
3173

query I rowsort
SELECT - col1 + - 63 AS col0 FROM tab2 AS cor0
----
-114
-130
-140

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 * - 85 * - col0 * + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4813
SELECT DISTINCT SUM( DISTINCT - col0 ) AS col1 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-4813
SELECT DISTINCT SUM ( DISTINCT - col0 ) AS col1 FROM tab1 AS cor0
----
-227

onlyif mysql # aggregate syntax: 
query I rowsort label-4814
SELECT MIN( ALL + + col0 ) AS col0 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-4814
SELECT MIN ( ALL + + col0 ) AS col0 FROM tab2
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4815
SELECT DISTINCT - 62 + + CAST( + - col1 AS SIGNED ) col0, - col1 + - + col1 FROM tab2
----
-113
-102
-129
-134
-139
-154

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4815
SELECT DISTINCT - 62 + + CAST ( + - col1 AS INTEGER ) col0, - col1 + - + col1 FROM tab2
----
-113
-102
-129
-134
-139
-154

query I rowsort
SELECT - 67 * + col1 + + - col2 AS col0 FROM tab1 WHERE + col1 >= - col2 + + col0
----
-1034
-3217

query I rowsort
SELECT ALL - 80 + - - col1 FROM tab1
----
-33
-66
-75

query I rowsort
SELECT DISTINCT + 36 + + col2 + col1 + + col0 AS col2 FROM tab1
----
185
197
242

query I rowsort
SELECT 71 - - - col2 * + col0 + - col0 FROM tab0
----
-649
-886
-9629

query I rowsort
SELECT DISTINCT + 9 - - - col0 - + col1 * - + col2 AS col2 FROM tab1 AS cor0
----
1302
219
3114

query II rowsort
SELECT ALL + col2, col2 + - ( + col0 ) FROM tab0 cor0
----
10
-77
47
32
99
2

query I rowsort
SELECT ALL + 57 * + 11 AS col0 FROM tab1
----
627
627
627

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 96 + - col0 IS NULL
----

query I rowsort
SELECT ALL - + col2 * - col1 * - - col2 * - 44 AS col0 FROM tab0 cor0
----
-431244
-7872876
-92400

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN - ( - col0 ) AND - col0
----

query I rowsort
SELECT DISTINCT - col1 * col2 * + + col2 AS col2 FROM tab2 AS cor0
----
-123200
-225388
-26979

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - + 95 * + 42 / + 60 * col2 * + 98 * - 19 < NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + + col0 + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + - col2 * + 34 * + + col0 + + - 46 + col1 * + col2 FROM tab1 AS cor0
----
-165166
-170261
-207242

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( col0 + - + col2 / + 20 * - col2 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 + 76 AS col0 FROM tab0 AS cor0
----
163
173
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 40 + - - col2 * + 3 col0 FROM tab0 AS cor0
----
181
337
70

query I rowsort
SELECT ALL - - col1 * ( + col2 ) FROM tab1 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
1344
295
3196

onlyif mysql # DIV for integer division: 
query I rowsort label-4834
SELECT DISTINCT col1 DIV + col1 + - 50 FROM tab0 AS cor0
----
-49

skipif mysql # not compatible
query I rowsort label-4834
SELECT DISTINCT col1 / + col1 + - 50 FROM tab0 AS cor0
----
-49

query III rowsort
SELECT * FROM tab2 WHERE + col0 - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - ( - 75 ) + - ( - 56 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2a1963143aee0d56f95aea0f030bc48f

onlyif mysql # aggregate syntax: 
query I rowsort label-4837
SELECT - + ( COUNT( DISTINCT + + 93 ) ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-1

skipif mysql # not compatible
query I rowsort label-4837
SELECT - + ( COUNT ( DISTINCT + + 93 ) ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4838
SELECT - 12 - - - COUNT( * ) FROM tab2 cor0
----
-15

skipif mysql # not compatible
query I rowsort label-4838
SELECT - 12 - - - COUNT ( * ) FROM tab2 cor0
----
-15

query I rowsort
SELECT - - col2 + + - col1 AS col0 FROM tab1 AS cor0
----
21
54
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4840
SELECT + ( MAX( - col0 ) ) + + COUNT( * ) FROM tab2 cor0
----
-43

skipif mysql # not compatible
query I rowsort label-4840
SELECT + ( MAX ( - col0 ) ) + + COUNT ( * ) FROM tab2 cor0
----
-43

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( 38 ) NOT BETWEEN NULL AND 64 / - - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col2 * + + col2 + + 82 AS col1 FROM tab2 AS cor0
----
1682
3446
611

query I rowsort
SELECT ALL col0 + + col2 * - + ( - + 62 ) + + col0 FROM tab1 AS cor0
----
3828
4398
6054

onlyif mysql # aggregate syntax: 
query I rowsort label-4844
SELECT ALL ( + + 51 ) * SUM( + 6 ) * - 75 AS col1 FROM tab2 AS cor0
----
-68850

skipif mysql # not compatible
query I rowsort label-4844
SELECT ALL ( + + 51 ) * SUM ( + 6 ) * - 75 AS col1 FROM tab2 AS cor0
----
-68850

onlyif mysql # aggregate syntax: 
query I rowsort label-4845
SELECT COUNT( * ) + + + 13 FROM tab1 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-4845
SELECT COUNT ( * ) + + + 13 FROM tab1 AS cor0
----
16

query II rowsort
SELECT DISTINCT col2 AS col0, 22 / + 44 * - 35 * + 98 FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT + ( - - 96 ) AS col1 FROM tab1 AS cor0
----
96
96
96

query I rowsort
SELECT ALL - + 71 AS col1 FROM tab1 AS cor0
----
-71
-71
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4849
SELECT DISTINCT - - col0 * - CAST( - + 40 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
3480
3880
600

skipif mysql # not compatible
query I rowsort label-4849
SELECT DISTINCT - - col0 * - CAST ( - + 40 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
3480
3880
600

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 57 col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 31 col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4852
SELECT ALL COUNT( * ) AS col0 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-4852
SELECT ALL COUNT ( * ) AS col0 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT ALL - 17 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 490d008f3fb5b70d3971cfc6d84503f4

query I rowsort
SELECT - 7 * + 31 AS col2 FROM tab2 AS cor0
----
-217
-217
-217

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + ( col0 ) NOT BETWEEN - col0 * - - col1 AND - col1
----

query I rowsort
SELECT ( - col2 ) + + 7 AS col2 FROM tab1 cor0
----
-52
-61
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-4857
SELECT ALL - MIN( - col0 ) col0 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4857
SELECT ALL - MIN ( - col0 ) col0 FROM tab2 AS cor0
----
75

query I rowsort
SELECT DISTINCT + 51 * + col2 + + col0 AS col1 FROM tab2 AS cor0 WHERE + col2 / + ( + col0 ) BETWEEN NULL AND NULL OR - col1 * + + col1 > - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col1, + 57 * + 35 + - col2 FROM tab2
----
46
1972
64
1955
75
1937

query II rowsort
SELECT + 49 AS col0, + col0 AS col2 FROM tab0
----
49
15
49
87
49
97

query I rowsort
SELECT ALL 84 * col0 + - col1 AS col1 FROM tab1
----
4270
7135
7597

onlyif mysql # aggregate syntax: 
query I rowsort label-4862
SELECT DISTINCT + COUNT( ALL + 55 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4862
SELECT DISTINCT + COUNT ( ALL + 55 ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4863
SELECT + 83 * 12 * MIN( - - col1 ) AS col2 FROM tab2
----
50796

skipif mysql # not compatible
query I rowsort label-4863
SELECT + 83 * 12 * MIN ( - - col1 ) AS col2 FROM tab2
----
50796

onlyif mysql # aggregate syntax: 
query I rowsort label-4864
SELECT DISTINCT + + 47 * - - COUNT( * ) FROM tab1 AS cor0
----
141

skipif mysql # not compatible
query I rowsort label-4864
SELECT DISTINCT + + 47 * - - COUNT ( * ) FROM tab1 AS cor0
----
141

query III rowsort
SELECT * FROM tab2 WHERE - 61 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + + col0 + + + 40 - - col0 col0 FROM tab2
----
155
208
248

query I rowsort
SELECT col0 + + col2 * + - col2 AS col0 FROM tab2
----
-1536
-3289
-483

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab0 cor0 WHERE + col2 * + col0 = col2
----

query I rowsort
SELECT DISTINCT + 86 AS col0 FROM tab2 AS cor0 WHERE NOT NULL < - 9
----

query I rowsort
SELECT ALL + 9 - + col2 FROM tab0 AS cor0
----
-1
-38
-90

query II rowsort
SELECT col2 * - col0 AS col0, col2 + - - col0 FROM tab1 cor0
----
-4896
147
-5015
144
-6188
159

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4872
SELECT ALL - + CAST( NULL AS SIGNED ) - + - MAX( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4872
SELECT ALL - + CAST ( NULL AS INTEGER ) - + - MAX ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4873
SELECT DISTINCT - col1 DIV - 26 + + 50 AS col0 FROM tab0 AS cor0
----
50
53

skipif mysql # not compatible
query I rowsort label-4873
SELECT DISTINCT - col1 / - 26 + + 50 AS col0 FROM tab0 AS cor0
----
50
53

query I rowsort
SELECT col1 * - col2 * + - ( + col2 ) + - + col0 - - + 2 AS col2 FROM tab2 AS cor0 WHERE - col2 IS NOT NULL
----
123138
225315
26935

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4875
SELECT COUNT( * ) * - CAST( NULL AS SIGNED ) FROM tab1, tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4875
SELECT COUNT ( * ) * - CAST ( NULL AS INTEGER ) FROM tab1, tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 53 + - col1 col2 FROM tab1
----
39
48
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4877
SELECT ALL ( + - COUNT( DISTINCT + col0 ) ) * ( + 38 ) FROM tab2
----
-114

skipif mysql # not compatible
query I rowsort label-4877
SELECT ALL ( + - COUNT ( DISTINCT + col0 ) ) * ( + 38 ) FROM tab2
----
-114

onlyif mysql # aggregate syntax: 
query II rowsort label-4878
SELECT ALL - MIN( DISTINCT - col2 ) * 50 AS col2, 36 AS col2 FROM tab2
----
2900
36

skipif mysql # not compatible
query II rowsort label-4878
SELECT ALL - MIN ( DISTINCT - col2 ) * 50 AS col2, 36 AS col2 FROM tab2
----
2900
36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0, 73 + col0 * + col2 col1 FROM tab1
----
51
4969
85
5088
91
6261

query II rowsort
SELECT DISTINCT + - 30 AS col0, col1 * + + col1 AS col2 FROM tab0 AS cor0
----
-30
1
-30
441
-30
6561

query I rowsort
SELECT + ( + - ( - 46 ) ) FROM tab2 AS cor0 WHERE NOT - 46 + 96 <= col0
----
46

query I rowsort
SELECT ALL - ( - 27 ) FROM tab1 cor0
----
27
27
27

onlyif mysql # aggregate syntax: 
query I rowsort label-4883
SELECT ALL + + SUM( + 24 ) FROM tab2 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-4883
SELECT ALL + + SUM ( + 24 ) FROM tab2 AS cor0
----
72

query I rowsort
SELECT ALL - ( 64 ) FROM tab0 AS cor0
----
-64
-64
-64

query I rowsort
SELECT - + 77 AS col2 FROM tab1 AS cor0 WHERE NOT - col1 IS NULL
----
-77
-77
-77

query I rowsort
SELECT ALL col2 + col1 * + - col0 FROM tab1 WHERE NULL < + col1
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4887
SELECT - - COUNT( - + 58 ) AS col2 FROM tab2 AS cor0 WHERE NOT - 67 / col2 <= - col1 / - + 2 * - + CAST( NULL AS DECIMAL )
----
0

skipif mysql # not compatible
query I rowsort label-4887
SELECT - - COUNT ( - + 58 ) AS col2 FROM tab2 AS cor0 WHERE NOT - 67 / col2 <= - col1 / - + 2 * - + CAST ( NULL AS REAL )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4888
SELECT - + MIN( ALL - - CAST( - col0 AS SIGNED ) ) col0 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4888
SELECT - + MIN ( ALL - - CAST ( - col0 AS INTEGER ) ) col0 FROM tab0 AS cor0
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4889
SELECT DISTINCT - ( CAST( col2 AS SIGNED ) ) * col0 + + col1 FROM tab0 AS cor0
----
-624
-849
-9602

skipif mysql # not compatible
query I rowsort label-4889
SELECT DISTINCT - ( CAST ( col2 AS INTEGER ) ) * col0 + + col1 FROM tab0 AS cor0
----
-624
-849
-9602

query I rowsort
SELECT col0 * - col0 + - col1 AS col0 FROM tab2 cor0
----
-2167
-4173
-5692

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NULL < + col2 / + ( 36 ) - 99
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4892
SELECT DISTINCT - - ( + COUNT( * ) ) + + 56 AS col1 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-4892
SELECT DISTINCT - - ( + COUNT ( * ) ) + + 56 AS col1 FROM tab1 AS cor0
----
59

query I rowsort
SELECT - 4 AS col0 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
-4
-4
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-4894
SELECT ALL + + MAX( - 90 ) FROM tab2 WHERE NOT - col0 IS NULL
----
-90

skipif mysql # not compatible
query I rowsort label-4894
SELECT ALL + + MAX ( - 90 ) FROM tab2 WHERE NOT - col0 IS NULL
----
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + 48 col1 FROM tab2
----
112
123
94

query I rowsort
SELECT ALL - 32 AS col2 FROM tab0 WHERE NOT 99 * + ( - col1 ) - + col2 + + 45 <= NULL
----

query I rowsort
SELECT - col0 + + 33 * col2 * + 18 AS col2 FROM tab2
----
13616
23696
34377

query II rowsort
SELECT DISTINCT + - 76 * col1 + col2, col0 FROM tab0 AS cor0
----
-1586
87
-6109
15
23
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + + col1 col1 FROM tab2 AS cor0
----
2346
4928
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-4900
SELECT DISTINCT - 58 + COUNT( * ) FROM tab2 AS cor0
----
-55

skipif mysql # not compatible
query I rowsort label-4900
SELECT DISTINCT - 58 + COUNT ( * ) FROM tab2 AS cor0
----
-55

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 57 IS NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4902
SELECT ALL COUNT( * ) + - 70 AS col2, - MAX( ALL CAST( - 69 AS SIGNED ) ) AS col1 FROM tab1
----
-67
69

skipif mysql # not compatible
query II rowsort label-4902
SELECT ALL COUNT ( * ) + - 70 AS col2, - MAX ( ALL CAST ( - 69 AS INTEGER ) ) AS col1 FROM tab1
----
-67
69

query I rowsort
SELECT ALL col2 FROM tab0 WHERE NULL IN ( - + 6 * + 14 )
----

query I rowsort
SELECT DISTINCT + 48 + 6 FROM ( tab0 cor0 CROSS JOIN tab1 cor1 ) WHERE ( NULL IS NULL )
----
54

query I rowsort
SELECT + col0 + + 26 AS col0 FROM tab0 AS cor0
----
113
123
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4906
SELECT 96 + COUNT( * ) AS col0 FROM tab1 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-4906
SELECT 96 + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
99

query I rowsort
SELECT ALL - col1 * col1 + + 29 - + + 5 AS col1 FROM tab1 AS cor0
----
-1
-172
-2185

query II rowsort
SELECT DISTINCT - - 81 AS col1, 42 FROM tab2 AS cor0
----
81
42

query I rowsort
SELECT DISTINCT + col2 FROM tab2 AS cor0 WHERE NOT - ( - - col0 ) IS NULL
----
23
40
58

query I rowsort
SELECT + + ( - 65 ) + + col1 AS col2 FROM tab0 AS cor0
----
-44
-64
16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * col0 + col0 col1 FROM tab2 AS cor0
----
-1012
-2496
-4275

query I rowsort
SELECT DISTINCT + 61 FROM tab1 AS cor0 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT DISTINCT col0 * + - ( col2 ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-705
-870
-9603

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4914
SELECT DISTINCT + CAST( + col1 AS SIGNED ), ( + col1 ) FROM tab2
----
51
51
67
67
77
77

skipif mysql # not compatible
query II rowsort label-4914
SELECT DISTINCT + CAST ( + col1 AS INTEGER ), ( + col1 ) FROM tab2
----
51
51
67
67
77
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4915
SELECT DISTINCT - - CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-4915
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - 6 * - 38 FROM tab1
----
228
228
228

query II rowsort
SELECT ALL col0 * - col0 AS col1, - col2 AS col2 FROM tab1
----
-2601
-96
-7225
-59
-8281
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-4918
SELECT ALL + COUNT( * ) AS col1 FROM tab0 WHERE + 4 * - 11 + + col0 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-4918
SELECT ALL + COUNT ( * ) AS col1 FROM tab0 WHERE + 4 * - 11 + + col0 < NULL
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 * + - 6 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4920
SELECT ALL * FROM tab1 AS cor0 WHERE + 90 <= - CAST( NULL AS DECIMAL ) * + 35
----

skipif mysql # not compatible
query III rowsort label-4920
SELECT ALL * FROM tab1 AS cor0 WHERE + 90 <= - CAST ( NULL AS REAL ) * + 35
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4921
SELECT ALL + + col2 DIV - col0 FROM tab0 cor0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-4921
SELECT ALL + + col2 / - col0 FROM tab0 cor0
----
-1
-3
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4922
SELECT DISTINCT - + COUNT( 58 ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4922
SELECT DISTINCT - + COUNT ( 58 ) AS col0 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4923
SELECT DISTINCT 27 * 15 + - COUNT( * ) FROM tab0
----
402

skipif mysql # not compatible
query I rowsort label-4923
SELECT DISTINCT 27 * 15 + - COUNT ( * ) FROM tab0
----
402

query I rowsort
SELECT col2 * - + col1 * + col2 AS col0 FROM tab2
----
-123200
-225388
-26979

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4925
SELECT CAST( NULL AS SIGNED ) + + col0 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4925
SELECT CAST ( NULL AS INTEGER ) + + col0 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT col1 + - 27 AS col0 FROM tab0
----
-26
-6
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4927
SELECT ALL CAST( 85 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
85
85
85

skipif mysql # not compatible
query I rowsort label-4927
SELECT ALL CAST ( 85 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
85
85
85

query I rowsort
SELECT DISTINCT 96 - - + ( + 72 ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4929
SELECT ALL - ( SUM( DISTINCT - 67 ) ) AS col0 FROM tab2 cor0
----
67

skipif mysql # not compatible
query I rowsort label-4929
SELECT ALL - ( SUM ( DISTINCT - 67 ) ) AS col0 FROM tab2 cor0
----
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 col2, - 87 FROM tab1 AS cor0
----
14
-87
47
-87
5
-87

query II rowsort
SELECT ALL col1 AS col0, col2 FROM tab2 AS cor0
----
51
23
67
58
77
40

query I rowsort
SELECT ALL + - col0 * - col1 + col0 FROM tab1 cor0
----
4368
510
765

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 87 <> + 91
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 66 = NULL
----

query I rowsort
SELECT ALL col0 * - col1 + + + 4 + col0 * - col1 AS col0 FROM tab2
----
-10046
-4688
-9852

onlyif mysql # DIV for integer division: 
query I rowsort label-4936
SELECT DISTINCT + 76 DIV + 52 + + 59 FROM tab2
----
60

skipif mysql # not compatible
query I rowsort label-4936
SELECT DISTINCT + 76 / + 52 + + 59 FROM tab2
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4937
SELECT ALL + 91 + CAST( NULL AS SIGNED ) + - ( - col0 ) + + col0 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4937
SELECT ALL + 91 + CAST ( NULL AS INTEGER ) + - ( - col0 ) + + col0 AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4938
SELECT CAST( + col0 AS SIGNED ) AS col2, + col2 AS col0 FROM tab0
----
15
47
87
10
97
99

skipif mysql # not compatible
query II rowsort label-4938
SELECT CAST ( + col0 AS INTEGER ) AS col2, + col2 AS col0 FROM tab0
----
15
47
87
10
97
99

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL <> - - 58 - + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4940
SELECT DISTINCT + CAST( ( + col2 ) AS SIGNED ) AS col0 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-4940
SELECT DISTINCT + CAST ( ( + col2 ) AS INTEGER ) AS col0 FROM tab1
----
59
68
96

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + 19 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col0 + + 86 FROM tab2
----
132
150
161

query I rowsort
SELECT - ( - col0 ) / + 47 FROM tab0 WHERE - col2 + + col0 - col2 + 21 >= NULL
----

query I rowsort
SELECT ALL + 18 + - 46 FROM tab1
----
-28
-28
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-4945
SELECT DISTINCT + MIN( DISTINCT + 18 ) * ( - 11 ) FROM tab2 AS cor0
----
-198

skipif mysql # not compatible
query I rowsort label-4945
SELECT DISTINCT + MIN ( DISTINCT + 18 ) * ( - 11 ) FROM tab2 AS cor0
----
-198

onlyif mysql # aggregate syntax: 
query I rowsort label-4946
SELECT - - MAX( 13 ) AS col0 FROM tab0 cor0 WHERE NOT + col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4946
SELECT - - MAX ( 13 ) AS col0 FROM tab0 cor0 WHERE NOT + col2 IS NOT NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NOT ( 99 > ( NULL ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4948
SELECT ALL 28 * - COUNT( - 54 ) FROM tab0
----
-84

skipif mysql # not compatible
query I rowsort label-4948
SELECT ALL 28 * - COUNT ( - 54 ) FROM tab0
----
-84

query I rowsort
SELECT - 15 * + col0 * 11 AS col2 FROM tab2
----
-10560
-12375
-7590

onlyif mysql # aggregate syntax: 
query I rowsort label-4950
SELECT ALL + 8 * - COUNT( * ) FROM tab2
----
-24

skipif mysql # not compatible
query I rowsort label-4950
SELECT ALL + 8 * - COUNT ( * ) FROM tab2
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-4951
SELECT ALL + COUNT( ALL 44 ) * 41 FROM tab0
----
123

skipif mysql # not compatible
query I rowsort label-4951
SELECT ALL + COUNT ( ALL 44 ) * 41 FROM tab0
----
123

query II rowsort
SELECT + col0 AS col0, - col2 FROM tab0 AS cor0
----
15
-47
87
-10
97
-99

query I rowsort
SELECT DISTINCT + col2 * 64 + col2 AS col1 FROM tab1 AS cor0
----
3835
4420
6240

onlyif mysql # aggregate syntax: 
query I rowsort label-4954
SELECT ALL - - ( - COUNT( * ) ) + + + SUM( col2 ) FROM tab0 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-4954
SELECT ALL - - ( - COUNT ( * ) ) + + + SUM ( col2 ) FROM tab0 AS cor0
----
153

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4955
SELECT - CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) / + 51 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4955
SELECT - CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) / + 51 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query II rowsort
SELECT - col1 AS col1, col2 AS col1 FROM tab0 cor0 WHERE NULL IS NULL
----
-1
99
-21
10
-81
47

query I rowsort
SELECT + col1 AS col2 FROM tab1 AS cor0 WHERE col2 + col1 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4958
SELECT + + MAX( - + col1 ) AS col1, + CAST( NULL AS SIGNED ) / COUNT( * ) + SUM( DISTINCT + 73 ) AS col2 FROM tab0 AS cor0
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-4958
SELECT + + MAX ( - + col1 ) AS col1, + CAST ( NULL AS INTEGER ) / COUNT ( * ) + SUM ( DISTINCT + 73 ) AS col2 FROM tab0 AS cor0
----
-1
NULL

query I rowsort
SELECT ( - + 16 ) FROM tab0 AS cor0
----
-16
-16
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-4960
SELECT DISTINCT + - MAX( DISTINCT 56 ) FROM tab2 AS cor0
----
-56

skipif mysql # not compatible
query I rowsort label-4960
SELECT DISTINCT + - MAX ( DISTINCT 56 ) FROM tab2 AS cor0
----
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-4961
SELECT - - col2 + - 49 DIV col0 FROM tab0 AS cor0
----
10
44
99

skipif mysql # not compatible
query I rowsort label-4961
SELECT - - col2 + - 49 / col0 FROM tab0 AS cor0
----
10
44
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4962
SELECT DISTINCT - + 85 + + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-82

skipif mysql # not compatible
query I rowsort label-4962
SELECT DISTINCT - + 85 + + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-82

query I rowsort
SELECT + col1 + - - col1 + - + col2 * 37 * - + 35 * + - col0 AS col0 FROM tab0 AS cor0
----
-1126608
-12435883
-912813

onlyif mysql # aggregate syntax: 
query I rowsort label-4964
SELECT - COUNT( * ) + + 23 - - 35 AS col2 FROM tab0
----
55

skipif mysql # not compatible
query I rowsort label-4964
SELECT - COUNT ( * ) + + 23 - - 35 AS col2 FROM tab0
----
55

query III rowsort
SELECT * FROM tab1 WHERE col2 / col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4966
SELECT - MAX( - - col2 ) + + - MAX( + 27 ) AS col1 FROM tab2
----
-85

skipif mysql # not compatible
query I rowsort label-4966
SELECT - MAX ( - - col2 ) + + - MAX ( + 27 ) AS col1 FROM tab2
----
-85

query I rowsort
SELECT + col0 AS col0 FROM tab0 WHERE 7 * + col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4968
SELECT * FROM tab0 WHERE - CAST( NULL AS SIGNED ) * + col0 IN ( + 58, col0 )
----

skipif mysql # not compatible
query III rowsort label-4968
SELECT * FROM tab0 WHERE - CAST ( NULL AS INTEGER ) * + col0 IN ( + 58, col0 )
----

query I rowsort
SELECT col2 * - col2 + - 31 * + 82 FROM tab2
----
-3071
-4142
-5906

onlyif mysql # aggregate syntax: 
query I rowsort label-4970
SELECT DISTINCT - SUM( - - col1 ) + - COUNT( - 1 ) * - + 57 AS col0 FROM tab0
----
68

skipif mysql # not compatible
query I rowsort label-4970
SELECT DISTINCT - SUM ( - - col1 ) + - COUNT ( - 1 ) * - + 57 AS col0 FROM tab0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4971
SELECT + + COUNT( + 35 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4971
SELECT + + COUNT ( + 35 ) FROM tab0 AS cor0
----
3

query II rowsort
SELECT + 34 AS col2, col2 AS col2 FROM tab2 cor0
----
34
23
34
40
34
58

query I rowsort
SELECT + + 58 FROM ( tab2 AS cor0 CROSS JOIN tab1 cor1 )
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

query I rowsort
SELECT - ( - - col1 ) AS col1 FROM tab2
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4975
SELECT + CAST( + - 92 AS SIGNED ) FROM tab1 AS cor0
----
-92
-92
-92

skipif mysql # not compatible
query I rowsort label-4975
SELECT + CAST ( + - 92 AS INTEGER ) FROM tab1 AS cor0
----
-92
-92
-92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 9 col2 FROM tab0 AS cor0
----
-9
-9
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4977
SELECT + - COUNT( DISTINCT + - 87 ) AS col0 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4977
SELECT + - COUNT ( DISTINCT + - 87 ) AS col0 FROM tab1 AS cor0
----
-1

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 89 NOT BETWEEN col2 * + 0 AND col1
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + col2 * + ( + - col2 ) * - - col1 * - 45 * - col2 > + + col2 - + + col0 / + - ( 84 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 97 col0 FROM tab0 AS cor0 WHERE - col2 * - 45 + + 13 + col1 * + col2 - - - 7 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ( + 2 ) * - col1 FROM tab1
----
-10
-28
-94

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL > - 3
----

query II rowsort
SELECT col0 AS col0, - 63 AS col1 FROM tab0
----
15
-63
87
-63
97
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-4984
SELECT DISTINCT col0 DIV 94 AS col2 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-4984
SELECT DISTINCT col0 / 94 AS col2 FROM tab0
----
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col1 FROM tab2 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - + 61 ) * + - 52 col1 FROM tab2
----
3172
3172
3172

query I rowsort
SELECT DISTINCT + - 12 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-12

query I rowsort
SELECT + col2 AS col1 FROM tab0 AS cor0 WHERE NOT - col0 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4989
SELECT ALL - + ( - - ( + 36 ) ) * + COUNT( * ) AS col2 FROM tab1 cor0
----
-108

skipif mysql # not compatible
query I rowsort label-4989
SELECT ALL - + ( - - ( + 36 ) ) * + COUNT ( * ) AS col2 FROM tab1 cor0
----
-108

query I rowsort
SELECT DISTINCT 79 * 15 + + + 95 FROM tab2
----
1280

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4991
SELECT CAST( + - col2 AS SIGNED ) + 45 + - 90 FROM tab0
----
-144
-55
-92

skipif mysql # not compatible
query I rowsort label-4991
SELECT CAST ( + - col2 AS INTEGER ) + 45 + - 90 FROM tab0
----
-144
-55
-92

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col0 > NULL
----

query II rowsort
SELECT DISTINCT - col2, - col0 * + 10 AS col2 FROM tab1 AS cor0
----
-59
-850
-68
-910
-96
-510

query I rowsort
SELECT - - col2 AS col1 FROM tab0 AS cor0 WHERE col1 NOT BETWEEN NULL AND + 96 + ( col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( ( NOT ( NULL ) IN ( + 32 * + col0, col0, + col0 ) ) )
----

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE ( col2 * - col1 <= ( NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4997
SELECT - COUNT( ( + 70 ) ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4997
SELECT - COUNT ( ( + 70 ) ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT ALL - 44 AS col1 FROM tab1 AS cor0 WHERE NULL < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 9 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5000
SELECT ALL 98 + - COUNT( * ) + - 41 FROM tab1
----
54

skipif mysql # not compatible
query I rowsort label-5000
SELECT ALL 98 + - COUNT ( * ) + - 41 FROM tab1
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5001
SELECT DISTINCT 16 + - CAST( + col2 AS SIGNED ) - col2 FROM tab0
----
-182
-4
-78

skipif mysql # not compatible
query I rowsort label-5001
SELECT DISTINCT 16 + - CAST ( + col2 AS INTEGER ) - col2 FROM tab0
----
-182
-4
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - + + ( + + col0 ) col2 FROM tab2
----
-8
13
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5003
SELECT ( + - 64 ) - COUNT( * ) FROM tab0
----
-67

skipif mysql # not compatible
query I rowsort label-5003
SELECT ( + - 64 ) - COUNT ( * ) FROM tab0
----
-67

query II rowsort
SELECT 62 - 58 AS col0, col0 FROM tab1
----
4
51
4
85
4
91

query I rowsort
SELECT + col0 * - 0 AS col1 FROM tab0 WHERE col2 + + + 57 + - - col1 > ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 - - 37 * + + 75 col0 FROM tab0 cor0
----
2776
2796
2856

onlyif mysql # aggregate syntax: 
query I rowsort label-5007
SELECT - COUNT( * ) * + 8 + + COUNT( * ) FROM tab1 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-5007
SELECT - COUNT ( * ) * + 8 + + COUNT ( * ) FROM tab1 AS cor0
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5008
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 - CAST( - col1 AS SIGNED ) <> 53
----

skipif mysql # not compatible
query III rowsort label-5008
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 - CAST ( - col1 AS INTEGER ) <> 53
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5009
SELECT ALL + + col2 DIV + 21 col1 FROM tab0 AS cor0
----
0
2
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5009
SELECT ALL + + col2 / + 21 col1 FROM tab0 AS cor0
----
0
2
4

onlyif mysql # DIV for integer division: 
query I rowsort label-5010
SELECT DISTINCT col2 DIV + col1 * - 13 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5010
SELECT DISTINCT col2 / + col1 * - 13 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5011
SELECT 59 * + - COUNT( * ) FROM tab0
----
-177

skipif mysql # not compatible
query I rowsort label-5011
SELECT 59 * + - COUNT ( * ) FROM tab0
----
-177

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( NULL ) <= 57
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5013
SELECT ALL - SUM( + col0 ) AS col0 FROM tab1 cor0
----
-227

skipif mysql # not compatible
query I rowsort label-5013
SELECT ALL - SUM ( + col0 ) AS col0 FROM tab1 cor0
----
-227

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5014
SELECT * FROM tab1 AS cor0 WHERE NOT + 38 - - + col1 + + col1 * col0 BETWEEN col0 AND - 9 * - - CAST( NULL AS SIGNED ) * col1
----

skipif mysql # not compatible
query III rowsort label-5014
SELECT * FROM tab1 AS cor0 WHERE NOT + 38 - - + col1 + + col1 * col0 BETWEEN col0 AND - 9 * - - CAST ( NULL AS INTEGER ) * col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5015
SELECT + - col2 AS col2, + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
-10
NULL
-47
NULL
-99
NULL

skipif mysql # not compatible
query II rowsort label-5015
SELECT + - col2 AS col2, + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
-10
NULL
-47
NULL
-99
NULL

query II rowsort
SELECT - col1 AS col2, 62 AS col0 FROM tab1 cor0
----
-14
62
-47
62
-5
62

query I rowsort
SELECT DISTINCT col1 * + - 28 FROM tab1
----
-1316
-140
-392

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + 17 ) col2 FROM tab2
----
17
17
17

onlyif mysql # aggregate syntax: 
query I rowsort label-5019
SELECT 35 * MAX( col0 ) AS col2 FROM tab0
----
3395

skipif mysql # not compatible
query I rowsort label-5019
SELECT 35 * MAX ( col0 ) AS col2 FROM tab0
----
3395

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL > 52
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5021
SELECT * FROM tab2 WHERE NOT + - ( + col2 ) + - CAST( + 82 AS SIGNED ) <> + + ( col0 ) * col0 * 12
----

skipif mysql # not compatible
query III rowsort label-5021
SELECT * FROM tab2 WHERE NOT + - ( + col2 ) + - CAST ( + 82 AS INTEGER ) <> + + ( col0 ) * col0 * 12
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5022
SELECT 61 / - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) * 52 + + + col1 + - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5022
SELECT 61 / - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) * 52 + + + col1 + - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 13 * + 85 * col0 col0 FROM tab2
----
50830
70720
82875

onlyif mysql # aggregate syntax: 
query I rowsort label-5024
SELECT + 72 * - + COUNT( * ) col1 FROM tab0 AS cor0
----
-216

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5024
SELECT + 72 * - + COUNT ( * ) col1 FROM tab0 AS cor0
----
-216

onlyif mysql # aggregate syntax: 
query I rowsort label-5025
SELECT + 77 - COUNT( * ) AS col0 FROM tab0 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-5025
SELECT + 77 - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 24 + - col0 col0 FROM tab1 AS cor0
----
-109
-115
-75

query I rowsort
SELECT - 62 + - col0 AS col0 FROM tab1 AS cor0
----
-113
-147
-153

onlyif mysql # DIV for integer division: 
query I rowsort label-5028
SELECT + 66 + - col2 DIV + ( - 12 ) AS col1 FROM tab2 AS cor0
----
67
69
70

skipif mysql # not compatible
query I rowsort label-5028
SELECT + 66 + - col2 / + ( - 12 ) AS col1 FROM tab2 AS cor0
----
67
69
70

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5029
SELECT - + 24 + + col2 / - CAST( NULL AS SIGNED ) * col2 * - col2 AS col1, ( - 11 ) FROM tab1 cor0
----
NULL
-11
NULL
-11
NULL
-11

skipif mysql # not compatible
query II rowsort label-5029
SELECT - + 24 + + col2 / - CAST ( NULL AS INTEGER ) * col2 * - col2 AS col1, ( - 11 ) FROM tab1 cor0
----
NULL
-11
NULL
-11
NULL
-11

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5030
SELECT - - col1 DIV col1 + 81 * CAST( - - col1 AS SIGNED ) FROM tab0 AS cor0
----
1702
6562
82

skipif mysql # not compatible
query I rowsort label-5030
SELECT - - col1 / col1 + 81 * CAST ( - - col1 AS INTEGER ) FROM tab0 AS cor0
----
1702
6562
82

query II rowsort
SELECT DISTINCT + 87 + + + 53 AS col1, 29 * - col2 FROM tab2
----
140
-1160
140
-1682
140
-667

onlyif mysql # DIV for integer division: 
query I rowsort label-5032
SELECT DISTINCT col2 DIV - col2 + - 14 AS col1 FROM tab1
----
-15

skipif mysql # not compatible
query I rowsort label-5032
SELECT DISTINCT col2 / - col2 + - 14 AS col1 FROM tab1
----
-15

query III rowsort
SELECT * FROM tab0 WHERE ( col2 ) <> - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL >= + + col0
----

query II rowsort
SELECT col2, + 12 FROM tab0
----
10
12
47
12
99
12

onlyif mysql # aggregate syntax: 
query I rowsort label-5036
SELECT + - 38 * - COUNT( * ) + + - COUNT( * ) + ( - MAX( DISTINCT - col2 ) ) - 95 FROM tab2 cor0
----
39

skipif mysql # not compatible
query I rowsort label-5036
SELECT + - 38 * - COUNT ( * ) + + - COUNT ( * ) + ( - MAX ( DISTINCT - col2 ) ) - 95 FROM tab2 cor0
----
39

query I rowsort
SELECT ALL + - 19 - - col2 FROM tab1 AS cor0
----
40
49
77

query II rowsort
SELECT col2, + 34 AS col2 FROM tab0 AS cor0
----
10
34
47
34
99
34

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 6 BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 = + col2 * - col2 + col2 + - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-5041
SELECT ALL - col1 DIV + col1, + col0 * - col1 - - ( + 28 ) col0 FROM tab2 AS cor0
----
-1
-2318
-1
-4900
-1
-4997

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5041
SELECT ALL - col1 / + col1, + col0 * - col1 - - ( + 28 ) col0 FROM tab2 AS cor0
----
-1
-2318
-1
-4900
-1
-4997

onlyif mysql # aggregate syntax: 
query II rowsort label-5042
SELECT ALL + + ( COUNT( * ) ), - 36 AS col2 FROM tab0 cor0
----
3
-36

skipif mysql # not compatible
query II rowsort label-5042
SELECT ALL + + ( COUNT ( * ) ), - 36 AS col2 FROM tab0 cor0
----
3
-36

query I rowsort
SELECT - 86 * - col1 FROM tab1
----
1204
4042
430

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5044
SELECT DISTINCT * FROM tab0 WHERE NOT + col0 / + CAST( NULL AS DECIMAL ) * col2 IS NULL OR NOT NULL IS NULL
----

skipif mysql # not compatible
query III rowsort label-5044
SELECT DISTINCT * FROM tab0 WHERE NOT + col0 / + CAST ( NULL AS REAL ) * col2 IS NULL OR NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL < 37
----

query I rowsort
SELECT 66 * - col2 AS col2 FROM tab0
----
-3102
-6534
-660

query I rowsort
SELECT DISTINCT - + 51 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - 14 * + - col2 * - 71 FROM tab0 AS cor0
----
-46718
-98406
-9940

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col2, - col2 + + col2 FROM tab0 AS cor0
----
-10
0
-47
0
-99
0

query III rowsort
SELECT ALL * FROM tab2 WHERE col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + + col0 FROM tab2 WHERE 44 >= + - col1
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5052
SELECT DISTINCT - col1 * - col0 * + CAST( + + col1 AS SIGNED ) + + 95 AS col2 FROM tab1 AS cor0
----
10091
201114
2220

skipif mysql # not compatible
query I rowsort label-5052
SELECT DISTINCT - col1 * - col0 * + CAST ( + + col1 AS INTEGER ) + + 95 AS col2 FROM tab1 AS cor0
----
10091
201114
2220

query I rowsort
SELECT DISTINCT - + 50 + + col1 FROM tab2 AS cor0
----
1
17
27

onlyif mysql # aggregate syntax: 
query II rowsort label-5054
SELECT ALL + ( 55 ), + COUNT( * ) col1 FROM tab2 AS cor0
----
55
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5054
SELECT ALL + ( 55 ), + COUNT ( * ) col1 FROM tab2 AS cor0
----
55
3

query I rowsort
SELECT + 57 AS col0 FROM tab2 cor0
----
57
57
57

query I rowsort
SELECT ALL + ( - col2 ) + + + col0 FROM tab0 AS cor0
----
-2
-32
77

query I rowsort
SELECT + 45 - + - col2 + - 67 + col1 * ( - 95 ) AS col2 FROM tab2 AS cor0
----
-4844
-6329
-7297

onlyif mysql # aggregate syntax: 
query I rowsort label-5058
SELECT DISTINCT COUNT( * ) + MIN( DISTINCT - + col1 ) * - SUM( col1 ) FROM tab2
----
15018

skipif mysql # not compatible
query I rowsort label-5058
SELECT DISTINCT COUNT ( * ) + MIN ( DISTINCT - + col1 ) * - SUM ( col1 ) FROM tab2
----
15018

query I rowsort
SELECT + col1 - + 99 AS col0 FROM tab2
----
-22
-32
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-5060
SELECT ALL - col1 + - - col1 DIV - 76 FROM tab2
----
-51
-67
-78

skipif mysql # not compatible
query I rowsort label-5060
SELECT ALL - col1 + - - col1 / - 76 FROM tab2
----
-51
-67
-78

query I rowsort
SELECT ALL + col0 - - - ( col2 ) AS col0 FROM tab1
----
-45
23
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 75 col2 FROM tab1 WHERE NULL > + - 3
----

query I rowsort
SELECT - 23 + - - col2 AS col2 FROM tab2
----
0
17
35

onlyif mysql # DIV for integer division: 
query I rowsort label-5064
SELECT DISTINCT + col2 DIV - + col1 AS col0 FROM tab0
----
-99
0

skipif mysql # not compatible
query I rowsort label-5064
SELECT DISTINCT + col2 / - + col1 AS col0 FROM tab0
----
-99
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5065
SELECT ALL CAST( NULL AS SIGNED ) * - col0 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5065
SELECT ALL CAST ( NULL AS INTEGER ) * - col0 AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5066
SELECT DISTINCT CAST( NULL AS SIGNED ) / - - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5066
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5067
SELECT + 87 * - COUNT( + col2 ) - + + 78 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-339

skipif mysql # not compatible
query I rowsort label-5067
SELECT + 87 * - COUNT ( + col2 ) - + + 78 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-339

query I rowsort
SELECT DISTINCT + col0 * - 72 AS col0 FROM tab1 AS cor0
----
-3672
-6120
-6552

onlyif mysql # aggregate syntax: 
query I rowsort label-5069
SELECT ALL + ( MAX( + 32 ) ) AS col2 FROM tab1 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-5069
SELECT ALL + ( MAX ( + 32 ) ) AS col2 FROM tab1 AS cor0
----
32

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 + + - 85 NOT IN ( - col0, - col0, + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - - col2 * 8 * + col1 * - + col0 FROM tab1 AS cor0
----
-200600
-2326688
-548352

query I rowsort
SELECT + ( col1 ) * + - 56 * - - col2 - - - col2 AS col2 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5073
SELECT - - MIN( ALL - - col2 ) AS col0, - 40 AS col2 FROM tab1 AS cor0
----
59
-40

skipif mysql # not compatible
query II rowsort label-5073
SELECT - - MIN ( ALL - - col2 ) AS col0, - 40 AS col2 FROM tab1 AS cor0
----
59
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-5074
SELECT - SUM( DISTINCT + ( - 38 ) ) FROM tab2 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-5074
SELECT - SUM ( DISTINCT + ( - 38 ) ) FROM tab2 AS cor0
----
38

query II rowsort
SELECT col1, + col2 AS col1 FROM tab0 AS cor0
----
1
99
21
10
81
47

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 >= + - col1 * + + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - + col0, + 12 + - 33 AS col0 FROM tab0 AS cor0
----
-15
-21
-87
-21
-97
-21

query I rowsort
SELECT + + col1 * + - ( - ( - + col2 ) ) FROM tab2 AS cor0
----
-1173
-3080
-3886

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 74 + ( + - col0 ) col1 FROM tab0 AS cor0
----
-161
-171
-89

query I rowsort
SELECT ALL - - col2 * + - col2 * + col0 * col2 FROM tab2 AS cor0
----
-14633400
-4096000
-559682

onlyif mysql # aggregate syntax: 
query I rowsort label-5081
SELECT DISTINCT 81 + + ( - + 37 ) + - - MAX( ALL - col1 ) col2 FROM tab2
----
-7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5081
SELECT DISTINCT 81 + + ( - + 37 ) + - - MAX ( ALL - col1 ) col2 FROM tab2
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-5082
SELECT ALL MIN( ALL 61 ) + + 63 FROM tab2
----
124

skipif mysql # not compatible
query I rowsort label-5082
SELECT ALL MIN ( ALL 61 ) + + 63 FROM tab2
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-5083
SELECT ALL COUNT( * ) AS col0 FROM tab0 WHERE NOT + col0 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5083
SELECT ALL COUNT ( * ) AS col0 FROM tab0 WHERE NOT + col0 IS NULL
----
3

query I rowsort
SELECT + - col0 - - + col1 + col1 * col2 AS col0 FROM tab0 WHERE ( NOT ( NULL ) IS NOT NULL )
----
144
3
3873

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( col0 * 29 * + 93 * - + 21 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT ( - - 73 IS NOT NULL ) ) OR NULL IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 79 = - ( + 18 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5088
SELECT - COUNT( * ) DIV - - COUNT( * ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5088
SELECT - COUNT ( * ) / - - COUNT ( * ) FROM tab0 AS cor0
----
-1

query III rowsort
SELECT * FROM tab0 WHERE + col2 / - col2 + 52 <> + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-5090
SELECT - col1 * col1 + + col1 DIV - col0 AS col1 FROM tab1 AS cor0
----
-196
-2209
-25

skipif mysql # not compatible
query I rowsort label-5090
SELECT - col1 * col1 + + col1 / - col0 AS col1 FROM tab1 AS cor0
----
-196
-2209
-25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 91 col1 FROM tab2 AS cor0
----
91

query I rowsort
SELECT + col0 + - 87 FROM tab0 cor0
----
-72
0
10

onlyif mysql # aggregate syntax: 
query I rowsort label-5093
SELECT DISTINCT + - MIN( ALL col0 ) FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-5093
SELECT DISTINCT + - MIN ( ALL col0 ) FROM tab1 AS cor0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-5094
SELECT - 23 + + COUNT( col1 ) AS col2 FROM tab0 cor0
----
-20

skipif mysql # not compatible
query I rowsort label-5094
SELECT - 23 + + COUNT ( col1 ) AS col2 FROM tab0 cor0
----
-20

query II rowsort
SELECT ALL + 98 AS col2, + 85 - - col2 FROM tab0 AS cor0
----
98
132
98
184
98
95

query I rowsort
SELECT ALL - 84 - col2 AS col2 FROM tab1 AS cor0
----
-143
-152
-180

query I rowsort
SELECT ALL col0 FROM tab0 cor0 WHERE NOT + 4 * + + col1 * - + col2 * - - col0 >= - + 17
----
15
87
97

query II rowsort
SELECT ALL - + col0 AS col2, 78 - + + 95 AS col0 FROM tab0 AS cor0
----
-15
-17
-87
-17
-97
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-5099
SELECT - - col2 + col2 + ( col2 ) DIV col1 AS col2 FROM tab0 cor0
----
20
297
94

skipif mysql # not compatible
query I rowsort label-5099
SELECT - - col2 + col2 + ( col2 ) / col1 AS col2 FROM tab0 cor0
----
20
297
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 42 * col2 col0, 42 * - 70 FROM tab0
----
1974
-2940
4158
-2940
420
-2940

onlyif mysql # aggregate syntax: 
query I rowsort label-5101
SELECT COUNT( * ) * - 61 * + 3 FROM tab1
----
-549

skipif mysql # not compatible
query I rowsort label-5101
SELECT COUNT ( * ) * - 61 * + 3 FROM tab1
----
-549

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5102
SELECT - SUM( - 24 ) DIV - COUNT( * ) AS col1 FROM tab1
----
-24

skipif mysql # not compatible
query I rowsort label-5102
SELECT - SUM ( - 24 ) / - COUNT ( * ) AS col1 FROM tab1
----
-24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 41 col2 FROM tab1
----
41
41
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 62 * - col1 col2, - col2 col0 FROM tab0 cor0
----
-1302
-10
-5022
-47
-62
-99

query I rowsort
SELECT - + 7 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ba940cd66e21e94e95aada5f28e1faf5

onlyif mysql # aggregate syntax: 
query I rowsort label-5106
SELECT COUNT( * ) * COUNT( * ) + + + ( - COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-5106
SELECT COUNT ( * ) * COUNT ( * ) + + + ( - COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
6

query I rowsort
SELECT 6 + - + col0 - + - col0 FROM tab2 AS cor0 WHERE NOT - col0 - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5108
SELECT ALL - 20 * - COUNT( * ) FROM tab1 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-5108
SELECT ALL - 20 * - COUNT ( * ) FROM tab1 AS cor0
----
60

query II rowsort
SELECT DISTINCT + col0 AS col1, 56 + + col1 * - col0 + col2 FROM tab1 AS cor0
----
51
-562
85
-310
91
-4153

onlyif mysql # DIV for integer division: 
query I rowsort label-5110
SELECT - col2 DIV - col2 + - col0 FROM tab2 AS cor0
----
-45
-63
-74

skipif mysql # not compatible
query I rowsort label-5110
SELECT - col2 / - col2 + - col0 FROM tab2 AS cor0
----
-45
-63
-74

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND ( + - 32 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5112
SELECT - 22 + + CAST( 40 AS SIGNED ) + - COUNT( * ) FROM tab2 cor0
----
15

skipif mysql # not compatible
query I rowsort label-5112
SELECT - 22 + + CAST ( 40 AS INTEGER ) + - COUNT ( * ) FROM tab2 cor0
----
15

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL > - col0 * - - 89
----

query I rowsort
SELECT DISTINCT col0 + - + 96 * - + ( - col2 ) AS col0 FROM tab1
----
-5579
-6437
-9165

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5115
SELECT * FROM tab0 WHERE 4 * col2 + CAST( NULL AS SIGNED ) + + col2 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5115
SELECT * FROM tab0 WHERE 4 * col2 + CAST ( NULL AS INTEGER ) + + col2 IS NOT NULL
----

query II rowsort
SELECT col2 AS col0, + ( - + 61 ) * - col2 AS col1 FROM tab0
----
10
610
47
2867
99
6039

query II rowsort
SELECT 72 AS col2, col0 FROM tab0
----
72
15
72
87
72
97

query I rowsort
SELECT DISTINCT col0 + 27 FROM tab2
----
102
73
91

query I rowsort
SELECT - col2 * 40 * - - col0 AS col2 FROM tab1
----
-195840
-200600
-247520

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 AS col0, col2 col0 FROM tab2
----
23
23
40
40
58
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5121
SELECT COUNT( * ) + + - 49 FROM tab0 cor0
----
-46

skipif mysql # not compatible
query I rowsort label-5121
SELECT COUNT ( * ) + + - 49 FROM tab0 cor0
----
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-5122
SELECT DISTINCT - + ( + col2 ) + - 97 + - - 85 DIV + + col0 FROM tab0 AS cor0
----
-107
-139
-196

skipif mysql # not compatible
query I rowsort label-5122
SELECT DISTINCT - + ( + col2 ) + - 97 + - - 85 / + + col0 FROM tab0 AS cor0
----
-107
-139
-196

query I rowsort
SELECT DISTINCT - 47 * - col2 + + + ( - + ( - 50 ) ) + 95 FROM tab2
----
1226
2025
2871

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5124
SELECT ALL * FROM tab0 WHERE col2 <> ( + CAST( NULL AS SIGNED ) ) * - col2 * + col1
----

skipif mysql # not compatible
query III rowsort label-5124
SELECT ALL * FROM tab0 WHERE col2 <> ( + CAST ( NULL AS INTEGER ) ) * - col2 * + col1
----

query I rowsort
SELECT ALL + col1 FROM tab2 WHERE + col0 IS NOT NULL
----
51
67
77

query II rowsort
SELECT - 10 * - col1 AS col2, - 43 AS col2 FROM tab1
----
140
-43
470
-43
50
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5127
SELECT ALL - COUNT( DISTINCT - 91 ) DIV + COUNT( * ) - COUNT( * ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5127
SELECT ALL - COUNT ( DISTINCT - 91 ) / + COUNT ( * ) - COUNT ( * ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT DISTINCT + col1 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN 43 + + col2 AND + ( + 91 )
----

query I rowsort
SELECT ALL + 43 * - col1 FROM tab0 AS cor0 WHERE - col0 * - + col2 IS NULL
----

query I rowsort
SELECT + - col2 - + col2 + col0 AS col2 FROM tab1 AS cor0
----
-141
-33
-45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col1 FROM tab2 AS cor0 WHERE - col2 IS NULL
----

query I rowsort
SELECT col0 * - + 36 FROM tab2 AS cor0
----
-1656
-2304
-2700

onlyif mysql # aggregate syntax: 
query I rowsort label-5133
SELECT - MIN( ALL - + col2 ) FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-5133
SELECT - MIN ( ALL - + col2 ) FROM tab0
----
99

query I rowsort
SELECT DISTINCT col0 * ( + + ( + - col1 ) ) AS col1 FROM tab2
----
-2346
-4928
-5025

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5135
SELECT - COUNT( * ) * - + CAST( NULL AS SIGNED ) + - 13 + + MIN( col2 ) FROM tab1 WHERE NOT 99 - col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5135
SELECT - COUNT ( * ) * - + CAST ( NULL AS INTEGER ) + - 13 + + MIN ( col2 ) FROM tab1 WHERE NOT 99 - col0 IS NULL
----
NULL

query I rowsort
SELECT ALL + ( - + ( + 34 ) ) FROM tab1
----
-34
-34
-34

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + - 22 * + - col2 <= - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 97 * + 80 FROM tab2
----
7760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * ( col0 ) * + col1 col0 FROM tab1
----
36125
36414
389207

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5140
SELECT + col1, CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-5140
SELECT + col1, CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
51
NULL
67
NULL
77
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5141
SELECT 28 DIV COUNT( * ) AS col2 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-5141
SELECT 28 / COUNT ( * ) AS col2 FROM tab0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5142
SELECT - COUNT( ALL - - col2 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5142
SELECT - COUNT ( ALL - - col2 ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT DISTINCT col2 FROM tab0 AS cor0 WHERE 68 * - 17 * + - col0 / 43 IS NULL
----

query I rowsort
SELECT ALL - 53 * + + col2 AS col1 FROM tab2 AS cor0
----
-1219
-2120
-3074

query I rowsort
SELECT DISTINCT - + 58 * 61 AS col0 FROM tab2 AS cor0
----
-3538

query I rowsort
SELECT ALL 49 * + ( + - 36 ) AS col1 FROM tab1 cor0
----
-1764
-1764
-1764

query II rowsort
SELECT + col1, + ( col1 ) FROM tab1 AS cor0
----
14
14
47
47
5
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5148
SELECT + 91 DIV + COUNT( * ) AS col1 FROM tab0 WHERE col2 NOT IN ( + 61 * + 78 )
----
30

skipif mysql # not compatible
query I rowsort label-5148
SELECT + 91 / + COUNT ( * ) AS col1 FROM tab0 WHERE col2 NOT IN ( + 61 * + 78 )
----
30

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 25 <= ( col1 * col0 + + 36 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 57 + + ( - col0 ) AS col1 FROM tab2
----
-18
-7
11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 65 col2 FROM tab1
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-5152
SELECT ALL - COUNT( ALL 30 ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-5152
SELECT ALL - COUNT ( ALL 30 ) AS col0 FROM tab0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 > - 13
----

query I rowsort
SELECT 69 AS col1 FROM tab2 WHERE NOT ( - col0 ) + 56 * + 78 <> - col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5155
SELECT DISTINCT COUNT( * ) FROM tab1 WHERE NOT 93 > 71 * + CAST( NULL AS SIGNED ) + col1
----
0

skipif mysql # not compatible
query I rowsort label-5155
SELECT DISTINCT COUNT ( * ) FROM tab1 WHERE NOT 93 > 71 * + CAST ( NULL AS INTEGER ) + col1
----
0

query III rowsort
SELECT * FROM tab1 WHERE col0 BETWEEN - ( 64 ) AND - 61 + col1 * col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 - col2 AS col0 FROM tab0 WHERE NOT NULL <= col1 + + 54
----

query I rowsort
SELECT + 94 * - col2 AS col0 FROM tab1
----
-5546
-6392
-9024

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5159
SELECT CAST( - 76 AS SIGNED ) + + 44 * COUNT( * ) col2 FROM tab1
----
56

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5159
SELECT CAST ( - 76 AS INTEGER ) + + 44 * COUNT ( * ) col2 FROM tab1
----
56

query I rowsort
SELECT col2 * ( col1 * col1 ) FROM tab2
----
237160
260362
59823

query III rowsort
SELECT ALL * FROM tab0 WHERE col0 / 40 <> - ( + 44 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col1 * col1 AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - 76 + + 1 FROM tab0
----
-75

query I rowsort
SELECT + AVG ( + col2 ) AS col2 FROM tab0 WHERE ( col0 ) IN ( col1 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5165
SELECT + COUNT( * ) + - COUNT( * ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5165
SELECT + COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab0
----
0

query I rowsort
SELECT - ( + col2 ) * + col1 FROM tab2
----
-1173
-3080
-3886

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5167
SELECT ALL SUM( + col1 ) DIV - COUNT( * ) FROM tab2
----
-65

skipif mysql # not compatible
query I rowsort label-5167
SELECT ALL SUM ( + col1 ) / - COUNT ( * ) FROM tab2
----
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5168
SELECT - MAX( ALL + CAST( NULL AS SIGNED ) ) + SUM( col1 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5168
SELECT - MAX ( ALL + CAST ( NULL AS INTEGER ) ) + SUM ( col1 ) FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5169
SELECT ALL CAST( NULL AS SIGNED ) + + CAST( - ( + 2 ) AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5169
SELECT ALL CAST ( NULL AS INTEGER ) + + CAST ( - ( + 2 ) AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 48 * + ( + col1 ) FROM tab1 AS cor0
----
2256
240
672

onlyif mysql # DIV for integer division: 
query I rowsort label-5171
SELECT + col2 DIV - 26 FROM tab0 cor0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-5171
SELECT + col2 / - 26 FROM tab0 cor0
----
-1
-3
0

query I rowsort
SELECT - 49 - + col1 / col2 FROM tab1 AS cor0 WHERE ( NULL ) IN ( col2 )
----

query I rowsort
SELECT 73 * + 12 - - 65 AS col1 FROM tab0
----
941
941
941

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab0 WHERE 98 NOT IN ( - 56 )
----
15
87
97

query I rowsort
SELECT ALL - 38 - col0 AS col0 FROM tab2
----
-102
-113
-84

query I rowsort
SELECT 32 * - col1 + 73 AS col2 FROM tab1
----
-1431
-375
-87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 37 col0 FROM tab1
----
37
37
37

query I rowsort
SELECT ALL - - 63 * + 16 AS col1 FROM tab1 AS cor0
----
1008
1008
1008

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL = + col0
----

query I rowsort
SELECT DISTINCT 41 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5181
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT + col1 <> - col1
----
0

skipif mysql # not compatible
query I rowsort label-5181
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT + col1 <> - col1
----
0

query I rowsort
SELECT DISTINCT + ( - 57 ) AS col1 FROM tab0 AS cor0
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-5183
SELECT DISTINCT - MAX( + 31 ) AS col2 FROM tab2 AS cor0
----
-31

skipif mysql # not compatible
query I rowsort label-5183
SELECT DISTINCT - MAX ( + 31 ) AS col2 FROM tab2 AS cor0
----
-31

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE NOT + ( + col1 ) IS NULL
----
59
68
96

query I rowsort
SELECT col0 / col1 FROM tab0 AS cor0 WHERE NOT ( col0 ) NOT IN ( 68 )
----

query I rowsort
SELECT - col0 FROM tab2 WHERE NOT ( col2 ) IS NULL
----
-46
-64
-75

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN - col1 * 69 AND - 97
----

query I rowsort
SELECT DISTINCT col0 FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN ( col2 ) AND ( - col1 - 44 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - + col2 ) col2 FROM tab2
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5190
SELECT DISTINCT + SUM( + col1 ) AS col1 FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-5190
SELECT DISTINCT + SUM ( + col1 ) AS col1 FROM tab2
----
195

query I rowsort
SELECT + col0 FROM tab2 WHERE NOT + col1 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5192
SELECT COUNT( * ) * - - 83 AS col2 FROM tab1
----
249

skipif mysql # not compatible
query I rowsort label-5192
SELECT COUNT ( * ) * - - 83 AS col2 FROM tab1
----
249

query I rowsort
SELECT DISTINCT + ( col1 ) * 36 - col2 FROM tab2 AS cor0 WHERE - 16 > ( col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5194
SELECT + CAST( + 48 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
48
48
48

skipif mysql # not compatible
query I rowsort label-5194
SELECT + CAST ( + 48 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
48
48
48

query I rowsort
SELECT DISTINCT col0 * ( + 2 ) * - col0 AS col1 FROM tab1 AS cor0
----
-14450
-16562
-5202

query I rowsort
SELECT 41 FROM tab0 AS cor0 WHERE NOT col1 IN ( + col1 )
----

query II rowsort
SELECT col2 AS col0, 27 FROM tab0
----
10
27
47
27
99
27

query I rowsort
SELECT 90 * col0 + col2 FROM tab0
----
1397
7840
8829

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5199
SELECT CAST( col2 AS SIGNED ) FROM tab2 WHERE NOT NULL <= + col1
----

skipif mysql # not compatible
query I rowsort label-5199
SELECT CAST ( col2 AS INTEGER ) FROM tab2 WHERE NOT NULL <= + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + + col2 ) + + - 77 col2 FROM tab1
----
-18
-9
19

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) <= 73
----

query I rowsort
SELECT - 98 + - - col1 AS col1 FROM tab2
----
-21
-31
-47

query I rowsort
SELECT - col0 + 2 FROM tab1 cor0
----
-49
-83
-89

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 BETWEEN 91 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5205
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 56 > - col0 * CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5205
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 56 > - col0 * CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5206
SELECT DISTINCT + 88 FROM tab0 cor0 WHERE NULL > - CAST( col2 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-5206
SELECT DISTINCT + 88 FROM tab0 cor0 WHERE NULL > - CAST ( col2 AS INTEGER )
----

query I rowsort
SELECT 81 + + + 33 AS col1 FROM tab1 AS cor0
----
114
114
114

query I rowsort
SELECT col1 / - col2 AS col0 FROM tab0 AS cor0 WHERE NULL IN ( 23 + - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5209
SELECT DISTINCT col1 FROM tab2 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) IN ( col1 )
----

skipif mysql # not compatible
query I rowsort label-5209
SELECT DISTINCT col1 FROM tab2 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) IN ( col1 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 46 + - 0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 95 >= - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + + ( - 39 ) + + 89 + 28 * + 36 FROM tab1 AS cor0
----
1058

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5213
SELECT ALL * FROM tab1 AS cor0 WHERE col1 * CAST( col2 AS SIGNED ) + col1 IS NULL
----

skipif mysql # not compatible
query III rowsort label-5213
SELECT ALL * FROM tab1 AS cor0 WHERE col1 * CAST ( col2 AS INTEGER ) + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5214
SELECT ALL + MAX( + + col2 ) + + 35 AS col1 FROM tab1 cor0
----
131

skipif mysql # not compatible
query I rowsort label-5214
SELECT ALL + MAX ( + + col2 ) + + 35 AS col1 FROM tab1 cor0
----
131

query I rowsort
SELECT DISTINCT - 2 * col1 FROM tab1 cor0
----
-10
-28
-94

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5216
SELECT * FROM tab2 AS cor0 WHERE ( - col1 ) IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5216
SELECT * FROM tab2 AS cor0 WHERE ( - col1 ) IN ( CAST ( NULL AS INTEGER ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5217
SELECT ALL col2 * + col1 + - - 23 + + - 38 DIV - col2 FROM tab0
----
122
236
3830

skipif mysql # not compatible
query I rowsort label-5217
SELECT ALL col2 * + col1 + - - 23 + + - 38 / - col2 FROM tab0
----
122
236
3830

query I rowsort
SELECT DISTINCT col0 - - + col0 FROM tab1
----
102
170
182

onlyif mysql # aggregate syntax: 
query I rowsort label-5219
SELECT ALL + 14 + - - COUNT( DISTINCT + ( + col1 ) ) * - COUNT( * ) AS col2 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-5219
SELECT ALL + 14 + - - COUNT ( DISTINCT + ( + col1 ) ) * - COUNT ( * ) AS col2 FROM tab1
----
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - + col0 * + - col2 col0 FROM tab0
----
624
849
9602

query I rowsort
SELECT ALL 86 - - + col2 FROM tab0
----
133
185
96

onlyif mysql # DIV for integer division: 
query I rowsort label-5222
SELECT 96 - ( - col2 ) DIV + + col2 FROM tab2
----
97
97
97

skipif mysql # not compatible
query I rowsort label-5222
SELECT 96 - ( - col2 ) / + + col2 FROM tab2
----
97
97
97

query II rowsort
SELECT DISTINCT col2 - col2, ( - col2 ) AS col1 FROM tab2
----
0
-23
0
-40
0
-58

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NOT - col1 + 64 = 65 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5225
SELECT DISTINCT - COUNT( * ) DIV + COUNT( * ) AS col2, - COUNT( * ) * + COUNT( * ) + 4 col1 FROM tab1 AS cor0
----
-1
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5225
SELECT DISTINCT - COUNT ( * ) / + COUNT ( * ) AS col2, - COUNT ( * ) * + COUNT ( * ) + 4 col1 FROM tab1 AS cor0
----
-1
-5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5226
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + CAST( + + 39 AS SIGNED ) * col2 + + ( col0 + 58 ) > 83
----

skipif mysql # not compatible
query III rowsort label-5226
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + CAST ( + + 39 AS INTEGER ) * col2 + + ( col0 + 58 ) > 83
----

query I rowsort
SELECT 72 * col1 + - + col1 + 86 * col1 FROM tab0 AS cor0
----
12717
157
3297

query I rowsort
SELECT - ( - 44 ) + col0 FROM tab2 AS cor0
----
108
119
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5229
SELECT ALL + MIN( ALL - 36 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-36

skipif mysql # not compatible
query I rowsort label-5229
SELECT ALL + MIN ( ALL - 36 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-36

query IIIIII rowsort
SELECT ALL * FROM tab1 cor0 JOIN tab1 AS cor1 ON NOT NULL IS NOT NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

query I rowsort
SELECT - - 9 + col2 - + col2 FROM tab1 AS cor0 WHERE NOT col0 + + col2 = NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5232
SELECT + COUNT( * ), 94 AS col1 FROM tab0 cor0
----
3
94

skipif mysql # not compatible
query II rowsort label-5232
SELECT + COUNT ( * ), 94 AS col1 FROM tab0 cor0
----
3
94

query I rowsort
SELECT + + col0 * - - col1 AS col1 FROM tab1 AS cor0
----
425
4277
714

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL IS NOT NULL AND NOT NULL <> + 20
----

query I rowsort
SELECT ALL - - 41 AS col1 FROM tab0 AS cor0
----
41
41
41

query I rowsort
SELECT ALL + + col1 * + col2 AS col2 FROM tab2 AS cor0
----
1173
3080
3886

query I rowsort
SELECT ALL col0 FROM tab2 WHERE ( - col0 + + - 59 - 11 + - - col2 * ( + col2 * col0 ) ) IN ( + col0 * - ( col1 ) + - col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5238
SELECT + col1 DIV 1 * + - col0 col2 FROM tab2
----
-2346
-4928
-5025

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5238
SELECT + col1 / 1 * + - col0 col2 FROM tab2
----
-2346
-4928
-5025

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col1 col1 FROM tab0 WHERE NOT ( NOT 71 * + - col0 >= ( - col1 * - col2 ) )
----

query I rowsort
SELECT DISTINCT + 81 * + + col2 AS col0 FROM tab1
----
4779
5508
7776

onlyif mysql # aggregate syntax: 
query II rowsort label-5241
SELECT COUNT( * ), + MAX( - col1 ) AS col1 FROM tab1
----
3
-5

skipif mysql # not compatible
query II rowsort label-5241
SELECT COUNT ( * ), + MAX ( - col1 ) AS col1 FROM tab1
----
3
-5

query I rowsort
SELECT + col2 AS col1 FROM tab1 WHERE NOT NULL < ( - 98 + col0 )
----

query I rowsort
SELECT + 69 * - col1 FROM tab0
----
-1449
-5589
-69

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN - 49 AND ( col0 * col2 )
----

query I rowsort
SELECT - col2 / - col1 FROM tab2 WHERE NOT NULL NOT IN ( - 77 )
----

query I rowsort
SELECT DISTINCT - 72 FROM tab1 AS cor0 WHERE NULL NOT IN ( 95 / 50 - ( - ( + 19 ) ) )
----

query I rowsort
SELECT ALL - - ( - 72 ) FROM tab2 cor0
----
-72
-72
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5248
SELECT DISTINCT + + COUNT( * ) DIV + COUNT( * ) AS col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5248
SELECT DISTINCT + + COUNT ( * ) / + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 + + 98 + - col1 - 23 * + - 8 + + col2 + - col1 col0 FROM tab1 AS cor0
----
209
326
336

query I rowsort
SELECT DISTINCT - ( + + col0 ) AS col0 FROM tab1 AS cor0
----
-51
-85
-91

query III rowsort
SELECT * FROM tab2 WHERE NOT + ( + - col0 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - - 53 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to fede6033dee346dbd272085c05724fda

query I rowsort
SELECT ALL col0 + - + 71 AS col2 FROM tab1
----
-20
14
20

onlyif mysql # aggregate syntax: 
query I rowsort label-5254
SELECT - MIN( 2 ) + + + MAX( DISTINCT + + 32 ) * - + COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-290

skipif mysql # not compatible
query I rowsort label-5254
SELECT - MIN ( 2 ) + + + MAX ( DISTINCT + + 32 ) * - + COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-290

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5255
SELECT ALL + CAST( NULL AS SIGNED ) - - 38 FROM tab2 AS cor0 WHERE NOT ( NOT ( NOT ( + col2 ) <> + CAST( + col0 AS SIGNED ) ) )
----

skipif mysql # not compatible
query I rowsort label-5255
SELECT ALL + CAST ( NULL AS INTEGER ) - - 38 FROM tab2 AS cor0 WHERE NOT ( NOT ( NOT ( + col2 ) <> + CAST ( + col0 AS INTEGER ) ) )
----

query II rowsort
SELECT + col2 * + col1 AS col2, col2 AS col2 FROM tab2 AS cor0
----
1173
23
3080
40
3886
58

query I rowsort
SELECT ALL + - 55 * - col0 AS col1 FROM tab1 AS cor0
----
2805
4675
5005

onlyif mysql # aggregate syntax: 
query II rowsort label-5258
SELECT - - 74 + - COUNT( * ), + 98 AS col1 FROM tab1 AS cor0
----
71
98

skipif mysql # not compatible
query II rowsort label-5258
SELECT - - 74 + - COUNT ( * ), + 98 AS col1 FROM tab1 AS cor0
----
71
98

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 64 + 27 > - 32 * + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5260
SELECT ALL + - ( + MIN( + 40 ) ) * + COUNT( * ) + + COUNT( * ) FROM tab2 AS cor0
----
-117

skipif mysql # not compatible
query I rowsort label-5260
SELECT ALL + - ( + MIN ( + 40 ) ) * + COUNT ( * ) + + COUNT ( * ) FROM tab2 AS cor0
----
-117

query I rowsort
SELECT + 31 + + col1 FROM tab0 AS cor0
----
112
32
52

onlyif mysql # aggregate syntax: 
query I rowsort label-5262
SELECT DISTINCT MIN( DISTINCT - + col1 ) AS col2 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-5262
SELECT DISTINCT MIN ( DISTINCT - + col1 ) AS col2 FROM tab0 AS cor0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-5263
SELECT COUNT( * ) * - 91 + + COUNT( * ) FROM tab0 AS cor0
----
-270

skipif mysql # not compatible
query I rowsort label-5263
SELECT COUNT ( * ) * - 91 + + COUNT ( * ) FROM tab0 AS cor0
----
-270

query II rowsort
SELECT ALL + col0 + - col1, 57 * + col0 AS col0 FROM tab2 AS cor0
----
-13
3648
-5
2622
8
4275

query I rowsort
SELECT - ( + col2 ) * + 89 + + - col1 + + col1 + 18 * - ( 9 ) * + col0 * - 49 FROM tab2
----
363101
504472
590188

query I rowsort
SELECT DISTINCT ( - - 50 ) AS col0 FROM tab1
----
50

query I rowsort
SELECT DISTINCT + 48 + - + col2 FROM tab0
----
-51
1
38

query III rowsort
SELECT ALL * FROM tab2 WHERE 78 NOT IN ( + 34 * + col1 * + col2, col1 + - 62 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col1 + 12 + col0 FROM tab2
----
109
153
154

query I rowsort
SELECT DISTINCT col2 - col1 AS col2 FROM tab1 WHERE - 13 + - - 53 BETWEEN col0 + 72 AND ( col0 / - + 37 * - col1 )
----

query II rowsort
SELECT ALL + col0 AS col0, ( + + col1 ) AS col0 FROM tab2
----
46
51
64
77
75
67

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5272
SELECT MIN( - + CAST( NULL AS DECIMAL ) ) * - - COUNT( * ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5272
SELECT MIN ( - + CAST ( NULL AS REAL ) ) * - - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - col0 + - 89 AS col0 FROM tab2 AS cor0 WHERE col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5274
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( CAST( NULL AS SIGNED ), 25 * col2 + + 11 * - 87 )
----

skipif mysql # not compatible
query III rowsort label-5274
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( CAST ( NULL AS INTEGER ), 25 * col2 + + 11 * - 87 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5275
SELECT + COUNT( * ) - - + COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
18

skipif mysql # not compatible
query I rowsort label-5275
SELECT + COUNT ( * ) - - + COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-5276
SELECT ALL ( - COUNT( * ) ) AS col2 FROM tab2, tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-5276
SELECT ALL ( - COUNT ( * ) ) AS col2 FROM tab2, tab2 AS cor0
----
-9

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 BETWEEN + col1 AND col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5278
SELECT - + 73 + ( col2 ) FROM tab2 WHERE NOT NULL < + col0 / CAST( - - col0 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-5278
SELECT - + 73 + ( col2 ) FROM tab2 WHERE NOT NULL < + col0 / CAST ( - - col0 AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5279
SELECT - col2 DIV - + 43 FROM tab0 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-5279
SELECT - col2 / - + 43 FROM tab0 AS cor0
----
0
1
2

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col1 + - ( - 62 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 61 * - - 84 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5283
SELECT + + COUNT( DISTINCT + col0 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5283
SELECT + + COUNT ( DISTINCT + col0 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT - 67 * + col0 * + - 85 AS col1 FROM tab0 AS cor0
----
495465
552415
85425

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5285
SELECT + col1 * + 31 * + + CAST( NULL AS DECIMAL ) col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5285
SELECT + col1 * + 31 * + + CAST ( NULL AS REAL ) col1 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( 28 - - 30 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5287
SELECT ALL - SUM( DISTINCT - col0 ) AS col1 FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-5287
SELECT ALL - SUM ( DISTINCT - col0 ) AS col1 FROM tab1
----
227

query II rowsort
SELECT ALL + col0, - ( + + col2 ) FROM tab0
----
15
-47
87
-10
97
-99

query I rowsort
SELECT - col0 * + - 68 AS col1 FROM tab1
----
3468
5780
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-5290
SELECT COUNT( - 81 ) FROM tab1 WHERE NOT col1 * - - col0 * + - 16 * - col0 * + col0 + - col1 * col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5290
SELECT COUNT ( - 81 ) FROM tab1 WHERE NOT col1 * - - col0 * + - 16 * - col0 * + col0 + - col1 * col2 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5291
SELECT ALL + 23 * + - MIN( - col1 ) + MAX( + + 56 ) AS col1 FROM tab0 AS cor0 WHERE 61 IS NOT NULL
----
1919

skipif mysql # not compatible
query I rowsort label-5291
SELECT ALL + 23 * + - MIN ( - col1 ) + MAX ( + + 56 ) AS col1 FROM tab0 AS cor0 WHERE 61 IS NOT NULL
----
1919

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5292
SELECT - CAST( NULL AS SIGNED ) + + col1 AS col1 FROM tab0 AS cor0 WHERE ( - 79 ) * col2 + - col2 + - + 66 + + - col0 / + col0 * + col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-5292
SELECT - CAST ( NULL AS INTEGER ) + + col1 AS col1 FROM tab0 AS cor0 WHERE ( - 79 ) * col2 + - col2 + - + 66 + + - col0 / + col0 * + col0 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col2 * - col1 >= - col2 * + + 37 + col2 * + col0 / - 13
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 65 FROM tab0 AS cor0 WHERE 45 + col0 > NULL
----

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE 38 * col0 - + col2 = 42 + - + col2
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5296
SELECT + - 86 * - COUNT( * ) / - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-5296
SELECT + - 86 * - COUNT ( * ) / - CAST ( NULL AS REAL ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

query I rowsort
SELECT 84 + + + ( + col2 ) AS col0 FROM tab1
----
143
152
180

query I rowsort
SELECT - col0 + - - 83 * + 97 FROM tab1
----
7960
7966
8000

query I rowsort
SELECT - 87 * + col0 * col2 + - - col2 * - col0 AS col2 FROM tab0
----
-62040
-76560
-845064

onlyif mysql # aggregate syntax: 
query I rowsort label-5300
SELECT ALL + + SUM( DISTINCT - ( - + col1 ) ) FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-5300
SELECT ALL + + SUM ( DISTINCT - ( - + col1 ) ) FROM tab2 AS cor0
----
195

query III rowsort
SELECT * FROM tab2 cor0 WHERE col2 * - col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5302
SELECT DISTINCT - 72 DIV - 50 - - - col1 AS col2 FROM tab0 AS cor0
----
-20
-80
0

skipif mysql # not compatible
query I rowsort label-5302
SELECT DISTINCT - 72 / - 50 - - - col1 AS col2 FROM tab0 AS cor0
----
-20
-80
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5303
SELECT ALL + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5303
SELECT ALL + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5304
SELECT DISTINCT + + COUNT( DISTINCT + col1 ) + + + CAST( NULL AS SIGNED ) * - COUNT( * ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5304
SELECT DISTINCT + + COUNT ( DISTINCT + col1 ) + + + CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5305
SELECT ALL + + 47 * - col1 AS col2 FROM tab1 AS cor0 WHERE NOT + 78 - col0 + col0 - - col1 - - CAST( NULL AS SIGNED ) <= NULL
----

skipif mysql # not compatible
query I rowsort label-5305
SELECT ALL + + 47 * - col1 AS col2 FROM tab1 AS cor0 WHERE NOT + 78 - col0 + col0 - - col1 - - CAST ( NULL AS INTEGER ) <= NULL
----

query I rowsort
SELECT DISTINCT - 60 AS col2 FROM tab0 AS cor0 WHERE NOT - col2 * - + col2 + - + 82 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5307
SELECT DISTINCT + col0 + + - CAST( + - col1 AS SIGNED ) FROM tab2 AS cor0
----
141
142
97

skipif mysql # not compatible
query I rowsort label-5307
SELECT DISTINCT + col0 + + - CAST ( + - col1 AS INTEGER ) FROM tab2 AS cor0
----
141
142
97

query I rowsort
SELECT + col1 * + 68 - 61 FROM tab1
----
279
3135
891

query I rowsort
SELECT + col2 - - col0 AS col1 FROM tab1
----
144
147
159

query III rowsort
SELECT * FROM tab1 WHERE 74 IS NULL
----

query I rowsort
SELECT ALL 38 + + col0 AS col1 FROM tab1
----
123
129
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5312
SELECT - col1 + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) * col2 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5312
SELECT - col1 + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) * col2 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 78 - - col0 * - 40 FROM tab2
----
-1762
-2482
-2922

query I rowsort
SELECT DISTINCT 6 - col0 FROM tab1
----
-45
-79
-85

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 46 + 83 IS NULL
----

query I rowsort
SELECT ( ( - + col1 ) ) * col2 AS col0 FROM tab1 AS cor0
----
-1344
-295
-3196

query II rowsort
SELECT ALL - + col0 AS col1, col1 AS col2 FROM tab0 WHERE NOT + + col2 + + 64 + + 41 IS NULL
----
-15
81
-87
21
-97
1

query I rowsort
SELECT col1 * 21 AS col2 FROM tab2
----
1071
1407
1617

query I rowsort
SELECT DISTINCT + 82 * col2 FROM tab1
----
4838
5576
7872

onlyif mysql # aggregate syntax: 
query I rowsort label-5320
SELECT DISTINCT - - COUNT( 73 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5320
SELECT DISTINCT - - COUNT ( 73 ) AS col0 FROM tab2 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - col0 col1, col2 AS col0 FROM tab1 AS cor0
----
-51
96
-85
59
-91
68

query I rowsort
SELECT + ( - + ( col0 ) ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL = col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5323
SELECT DISTINCT col2 * 21 DIV + 92 FROM tab2
----
13
5
9

skipif mysql # not compatible
query I rowsort label-5323
SELECT DISTINCT col2 * 21 / + 92 FROM tab2
----
13
5
9

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL <= + + 78 * - col0 * + + 73 * + 23 + - + col2 + 98
----

query II rowsort
SELECT ALL + 92 * + col1 AS col1, col0 FROM tab2
----
4692
46
6164
75
7084
64

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 + - col0 + - + 49 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5327
SELECT DISTINCT 30 * + + 13 col2 FROM tab2 WHERE - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5327
SELECT DISTINCT 30 * + + 13 col2 FROM tab2 WHERE - CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT + + col2 + - col2 + + col0 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT DISTINCT col1 * ( + col0 ) AS col0 FROM tab2 AS cor0
----
2346
4928
5025

query I rowsort
SELECT DISTINCT - 52 FROM tab2 AS cor0 WHERE NOT + 38 * - - col2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL BETWEEN ( NULL ) AND - 50 - + col0
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 51 * + - col1 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5333
SELECT + 7 + + MAX( ALL col2 ) DIV - + ( - 86 ) AS col2 FROM tab1 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-5333
SELECT + 7 + + MAX ( ALL col2 ) / - + ( - 86 ) AS col2 FROM tab1 AS cor0
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5334
SELECT - COUNT( ALL 67 ) + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5334
SELECT - COUNT ( ALL 67 ) + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5335
SELECT + + 34 + - COUNT( * ) col1 FROM tab2 cor0
----
31

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5335
SELECT + + 34 + - COUNT ( * ) col1 FROM tab2 cor0
----
31

query I rowsort
SELECT ALL col1 * + col2 * - + 16 * col1 FROM tab2 AS cor0
----
-3794560
-4165792
-957168

query I rowsort
SELECT + col0 + - - 14 + - + col2 - - col2 AS col0 FROM tab1 AS cor0
----
105
65
99

query I rowsort
SELECT col1 + + + col2 AS col0 FROM tab1 AS cor0
----
110
115
64

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL <> col1 + + col1
----

query I rowsort
SELECT - - ( + col2 ) + + col2 * + col2 * + 58 FROM tab0 cor0
----
128169
568557
5810

onlyif mysql # aggregate syntax: 
query I rowsort label-5341
SELECT DISTINCT + MIN( - - col2 ) + + 58 FROM tab2
----
81

skipif mysql # not compatible
query I rowsort label-5341
SELECT DISTINCT + MIN ( - - col2 ) + + 58 FROM tab2
----
81

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5342
SELECT ALL CAST( NULL AS DECIMAL ) AS col1 FROM tab2 WHERE NOT 36 IN ( col2 )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5342
SELECT ALL CAST ( NULL AS REAL ) AS col1 FROM tab2 WHERE NOT 36 IN ( col2 )
----
NULL
NULL
NULL

query I rowsort
SELECT - 89 * 92 * - 64 AS col1 FROM tab2
----
524032
524032
524032

query II rowsort
SELECT - 41, - ( - col0 ) AS col1 FROM tab0 AS cor0
----
-41
15
-41
87
-41
97

query II rowsort
SELECT ALL col2, - 45 FROM tab2 AS cor0
----
23
-45
40
-45
58
-45

query I rowsort
SELECT col0 * - + 64 FROM tab2
----
-2944
-4096
-4800

query I rowsort
SELECT - - ( + + col0 ) + + + 9 FROM tab1 AS cor0
----
100
60
94

query I rowsort
SELECT DISTINCT + 81 FROM tab2 cor0 WHERE ( NULL ) IS NULL
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5349
SELECT ALL - col2 * CAST( NULL AS SIGNED ) / - ( + 34 ) + ( - col1 ) FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5349
SELECT ALL - col2 * CAST ( NULL AS INTEGER ) / - ( + 34 ) + ( - col1 ) FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5350
SELECT ALL - COUNT( + col0 ) FROM tab0 AS cor0 WHERE - col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5350
SELECT ALL - COUNT ( + col0 ) FROM tab0 AS cor0 WHERE - col2 IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5351
SELECT DISTINCT + col0 + - col0 - CAST( NULL AS SIGNED ) / - col0 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5351
SELECT DISTINCT + col0 + - col0 - CAST ( NULL AS INTEGER ) / - col0 FROM tab0 cor0
----
NULL

query II rowsort
SELECT DISTINCT col2 AS col1, - col0 AS col0 FROM tab1
----
59
-85
68
-91
96
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 37 col2 FROM tab1
----
37
37
37

query I rowsort
SELECT + ( - col2 ) * - - 93 AS col1 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5355
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + 82 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5355
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + 82 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5356
SELECT ALL - 49 + + COUNT( * ) AS col1 FROM tab0
----
-46

skipif mysql # not compatible
query I rowsort label-5356
SELECT ALL - 49 + + COUNT ( * ) AS col1 FROM tab0
----
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-5357
SELECT 49 * col2 DIV - - 34 FROM tab1
----
138
85
98

skipif mysql # not compatible
query I rowsort label-5357
SELECT 49 * col2 / - - 34 FROM tab1
----
138
85
98

query I rowsort
SELECT DISTINCT - col2 * + + 51 FROM tab2 cor0
----
-1173
-2040
-2958

query I rowsort
SELECT ALL + 2 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

query I rowsort
SELECT ALL ( - 5 ) - - ( + + 20 ) AS col2 FROM tab0
----
15
15
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 54 col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 87 IS NOT NULL
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5362
SELECT ALL - ( - CAST( NULL AS SIGNED ) ) / col2 + - ( + col2 ) - + col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5362
SELECT ALL - ( - CAST ( NULL AS INTEGER ) ) / col2 + - ( + col2 ) - + col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 * - - 22 FROM tab2 AS cor0
----
1276
506
880

query I rowsort
SELECT DISTINCT - + 65 AS col2 FROM tab0 cor0
----
-65

query I rowsort
SELECT - - col2 - + col1 + - col1 FROM tab0 cor0
----
-115
-32
97

onlyif mysql # DIV for integer division: 
query I rowsort label-5366
SELECT ALL col0 DIV + 57 AS col1 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-5366
SELECT ALL col0 / + 57 AS col1 FROM tab2
----
0
1
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5367
SELECT DISTINCT 62 AS col1, + COUNT( DISTINCT + - ( - col2 ) ) * - 99 FROM tab1 WHERE NOT NULL IS NULL
----
62
0

skipif mysql # not compatible
query II rowsort label-5367
SELECT DISTINCT 62 AS col1, + COUNT ( DISTINCT + - ( - col2 ) ) * - 99 FROM tab1 WHERE NOT NULL IS NULL
----
62
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2, + 15 col1 FROM tab1
----
-59
15
-68
15
-96
15

query I rowsort
SELECT DISTINCT - + 1 - + ( + col2 ) + + col1 * col2 FROM tab0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5370
SELECT DISTINCT CAST( + 26 AS SIGNED ) col2 FROM tab2
----
26

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5370
SELECT DISTINCT CAST ( + 26 AS INTEGER ) col2 FROM tab2
----
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 col1, col0 FROM tab1
----
51
51
85
85
91
91

onlyif mysql # aggregate syntax: 
query II rowsort label-5372
SELECT DISTINCT 2, - COUNT( DISTINCT 15 ) col1 FROM tab0 cor0
----
2
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5372
SELECT DISTINCT 2, - COUNT ( DISTINCT 15 ) col1 FROM tab0 cor0
----
2
-1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 + + 77 / col2 NOT BETWEEN + - col0 * - - 6 AND - 5 * col0
----

query I rowsort
SELECT + - col1 AS col2 FROM tab0 WHERE NOT + 90 IS NULL
----
-1
-21
-81

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL IN ( col2, 27 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5376
SELECT ALL + + 52 DIV - 30 + 89 AS col0 FROM tab2 AS cor0
----
88
88
88

skipif mysql # not compatible
query I rowsort label-5376
SELECT ALL + + 52 / - 30 + 89 AS col0 FROM tab2 AS cor0
----
88
88
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5377
SELECT DISTINCT col0 * 7 * - - CAST( NULL AS SIGNED ) / - col1 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5377
SELECT DISTINCT col0 * 7 * - - CAST ( NULL AS INTEGER ) / - col1 AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5378
SELECT + - SUM( DISTINCT col0 ) FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-5378
SELECT + - SUM ( DISTINCT col0 ) FROM tab2 AS cor0
----
-185

onlyif mysql # aggregate syntax: 
query I rowsort label-5379
SELECT ALL - - SUM( - 11 ) + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-5379
SELECT ALL - - SUM ( - 11 ) + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-36

query I rowsort
SELECT col1 AS col0 FROM tab1 AS cor0 WHERE col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5381
SELECT DISTINCT col2 DIV 96 + + - col0 col0 FROM tab1 AS cor0
----
-50
-85
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5381
SELECT DISTINCT col2 / 96 + + - col0 col0 FROM tab1 AS cor0
----
-50
-85
-91

query I rowsort
SELECT col0 + - + 7 AS col0 FROM tab0
----
8
80
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5383
SELECT COUNT( * ) + + SUM( + col1 ) FROM tab0
----
106

skipif mysql # not compatible
query I rowsort label-5383
SELECT COUNT ( * ) + + SUM ( + col1 ) FROM tab0
----
106

query I rowsort
SELECT ALL - col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-51
-85
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - ( - + 96 ) * + col1 + - - col1 * - - col2 col2, 44 FROM tab0 cor0
----
11583
44
195
44
2226
44

query III rowsort
SELECT * FROM tab1 WHERE + 63 - + col1 BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5387
SELECT ALL - col2 DIV - + col1 FROM tab0 AS cor0
----
0
0
99

skipif mysql # not compatible
query I rowsort label-5387
SELECT ALL - col2 / - + col1 FROM tab0 AS cor0
----
0
0
99

onlyif mysql # DIV for integer division: 
query II rowsort label-5388
SELECT - + col0 + - 64 DIV col0 col0, col0 * 43 - - 94 AS col2 FROM tab2 AS cor0
----
-47
2072
-65
2846
-75
3319

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5388
SELECT - + col0 + - 64 / col0 col0, col0 * 43 - - 94 AS col2 FROM tab2 AS cor0
----
-47
2072
-65
2846
-75
3319

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL IN ( - col0 + - 47, col1, + + col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5390
SELECT + 44 + - COUNT( * ) * CAST( NULL AS SIGNED ) * - 2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5390
SELECT + 44 + - COUNT ( * ) * CAST ( NULL AS INTEGER ) * - 2 FROM tab0 cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5391
SELECT ALL + col2 DIV - - col1 + + + 16 - - ( + 8 ) AS col1 FROM tab0 AS cor0
----
123
24
24

skipif mysql # not compatible
query I rowsort label-5391
SELECT ALL + col2 / - - col1 + + + 16 - - ( + 8 ) AS col1 FROM tab0 AS cor0
----
123
24
24

query I rowsort
SELECT col2 * - - 52 FROM tab0 AS cor0
----
2444
5148
520

query II rowsort
SELECT ALL col2 AS col0, - col0 FROM tab0 AS cor0
----
10
-87
47
-15
99
-97

query I rowsort
SELECT ALL + - 37 AS col2 FROM tab1 AS cor0
----
-37
-37
-37

query I rowsort
SELECT ( - - 16 ) * - + col1 FROM tab0
----
-1296
-16
-336

query I rowsort
SELECT 1 * col2 * - col2 AS col2 FROM tab0
----
-100
-2209
-9801

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 - + col2 + - - 75 IN ( + - col0, col1 * - col1 + - ( - ( + col0 ) ) + - col2, - - 39 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5398
SELECT MAX( - + col2 ) AS col0 FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-5398
SELECT MAX ( - + col2 ) AS col0 FROM tab2
----
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-5399
SELECT DISTINCT + 95 DIV - - col2 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-5399
SELECT DISTINCT + 95 / - - col2 FROM tab1 AS cor0
----
0
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 + + - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-5401
SELECT DISTINCT - col0 DIV + 15 AS col1 FROM tab0 cor0
----
-1
-5
-6

skipif mysql # not compatible
query I rowsort label-5401
SELECT DISTINCT - col0 / + 15 AS col1 FROM tab0 cor0
----
-1
-5
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-5402
SELECT ALL + 40 * - - COUNT( DISTINCT + ( - ( col0 ) ) ) AS col0 FROM tab2 WHERE NOT - ( + 19 ) IS NULL
----
120

skipif mysql # not compatible
query I rowsort label-5402
SELECT ALL + 40 * - - COUNT ( DISTINCT + ( - ( col0 ) ) ) AS col0 FROM tab2 WHERE NOT - ( + 19 ) IS NULL
----
120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5403
SELECT - 60 * - 82 + + col2 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5403
SELECT - 60 * - 82 + + col2 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5404
SELECT AVG ( DISTINCT - CAST( CAST( NULL AS DECIMAL ) AS SIGNED ) ) + + MAX( DISTINCT - col2 ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5404
SELECT AVG ( DISTINCT - CAST ( CAST ( NULL AS REAL ) AS INTEGER ) ) + + MAX ( DISTINCT - col2 ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5405
SELECT DISTINCT + + CAST( - col0 AS SIGNED ) * + 5 FROM tab1 AS cor0
----
-255
-425
-455

skipif mysql # not compatible
query I rowsort label-5405
SELECT DISTINCT + + CAST ( - col0 AS INTEGER ) * + 5 FROM tab1 AS cor0
----
-255
-425
-455

query I rowsort
SELECT DISTINCT - 17 + - 42 * + col0 FROM tab0 AS cor0
----
-3671
-4091
-647

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + ( + col1 ) < NULL
----

query I rowsort
SELECT ALL col2 + - 46 FROM tab0
----
-36
1
53

query I rowsort
SELECT DISTINCT ( - 59 ) AS col2 FROM tab1
----
-59

query I rowsort
SELECT + col0 * - + col0 + + - col0 FROM tab0 AS cor0
----
-240
-7656
-9506

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5411
SELECT DISTINCT - CAST( + 56 AS SIGNED ) FROM tab1 cor0
----
-56

skipif mysql # not compatible
query I rowsort label-5411
SELECT DISTINCT - CAST ( + 56 AS INTEGER ) FROM tab1 cor0
----
-56

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NOT col1 * - - col1 * col2 IS NOT NULL )
----

query I rowsort
SELECT DISTINCT 40 * - + 81 + - ( + 53 ) FROM tab2 cor0
----
-3293

query I rowsort
SELECT ALL - + ( - 78 ) FROM tab2 AS cor0 WHERE ( - - 46 ) BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5415
SELECT ALL - 73 DIV + 98 * - col2 + - 48 FROM tab1 AS cor0
----
-48
-48
-48

skipif mysql # not compatible
query I rowsort label-5415
SELECT ALL - 73 / + 98 * - col2 + - 48 FROM tab1 AS cor0
----
-48
-48
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-5416
SELECT - MAX( - 87 ) AS col1 FROM tab0 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-5416
SELECT - MAX ( - 87 ) AS col1 FROM tab0 AS cor0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-5417
SELECT ALL COUNT( * ) FROM tab1 AS cor0 WHERE NOT 82 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5417
SELECT ALL COUNT ( * ) FROM tab1 AS cor0 WHERE NOT 82 IS NULL
----
3

query I rowsort
SELECT ( - col0 ) * - col0 + - 34 AS col1 FROM tab1 AS cor0
----
2567
7191
8247

query I rowsort
SELECT - 37 * - - col0 FROM tab2
----
-1702
-2368
-2775

onlyif mysql # DIV for integer division: 
query I rowsort label-5420
SELECT ( + - col2 ) DIV col0 FROM tab0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-5420
SELECT ( + - col2 ) / col0 FROM tab0
----
-1
-3
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5421
SELECT DISTINCT - 60 + - COUNT( * ) FROM tab0 WHERE NOT - CAST( NULL AS DECIMAL ) IS NOT NULL
----
-63

skipif mysql # not compatible
query I rowsort label-5421
SELECT DISTINCT - 60 + - COUNT ( * ) FROM tab0 WHERE NOT - CAST ( NULL AS REAL ) IS NOT NULL
----
-63

query I rowsort
SELECT DISTINCT col0 * - ( + 97 ) FROM tab2
----
-4462
-6208
-7275

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 53 * - - col1 col0 FROM tab1
----
2491
265
742

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND + col1 + + 36
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5425
SELECT DISTINCT - CAST( + ( - + AVG ( - col1 ) ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-22

skipif mysql # not compatible
query I rowsort label-5425
SELECT DISTINCT - CAST ( + ( - + AVG ( - col1 ) ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-22

onlyif mysql # DIV for integer division: 
query I rowsort label-5426
SELECT ALL + 35 DIV - - 94 + + - col2 FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-5426
SELECT ALL + 35 / - - 94 + + - col2 FROM tab0
----
-10
-47
-99

query I rowsort
SELECT 8 * + + col2 FROM tab2
----
184
320
464

query I rowsort
SELECT col0 * + - 31 AS col0 FROM tab2 AS cor0
----
-1426
-1984
-2325

query I rowsort
SELECT + 97 + col2 * - 80 FROM tab1 cor0
----
-4623
-5343
-7583

query I rowsort
SELECT + + 26 + - + col2 FROM tab2 AS cor0
----
-14
-32
3

query I rowsort
SELECT col2 + - ( + 42 ) FROM tab0 AS cor0
----
-32
5
57

query I rowsort
SELECT col0 * - col2 * 43 * + col1 + + col1 + - - 58 - - + 4 AS col1 FROM tab1 AS cor0
----
-1078158
-12505839
-2947316

query I rowsort
SELECT - col1 + 84 FROM tab0 AS cor0
----
3
63
83

onlyif mysql # aggregate syntax: 
query I rowsort label-5434
SELECT + COUNT( * ) + - 53 * + 70 FROM tab1 cor0
----
-3707

skipif mysql # not compatible
query I rowsort label-5434
SELECT + COUNT ( * ) + - 53 * + 70 FROM tab1 cor0
----
-3707

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5435
SELECT - COUNT( * ) + 64 * - + MIN( ALL + - CAST( NULL AS DECIMAL ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5435
SELECT - COUNT ( * ) + 64 * - + MIN ( ALL + - CAST ( NULL AS REAL ) ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5436
SELECT - COUNT( * ) + - - SUM( DISTINCT + - 20 ) AS col1 FROM tab0
----
-23

skipif mysql # not compatible
query I rowsort label-5436
SELECT - COUNT ( * ) + - - SUM ( DISTINCT + - 20 ) AS col1 FROM tab0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-5437
SELECT ALL - COUNT( * ) - COUNT( * ) AS col1 FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-5437
SELECT ALL - COUNT ( * ) - COUNT ( * ) AS col1 FROM tab0
----
-6

query II rowsort
SELECT DISTINCT - col2 * col2 + - - col1, - col1 + + col2 AS col2 FROM tab1
----
-3476
54
-4577
21
-9202
82

onlyif mysql # aggregate syntax: 
query I rowsort label-5439
SELECT DISTINCT COUNT( * ) * - COUNT( * ) AS col1 FROM tab2, tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-5439
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab2, tab0 AS cor0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-5440
SELECT + MAX( - 59 ) FROM tab0
----
-59

skipif mysql # not compatible
query I rowsort label-5440
SELECT + MAX ( - 59 ) FROM tab0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-5441
SELECT - + ( + COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5441
SELECT - + ( + COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5442
SELECT ALL - 35 - - COUNT( * ) FROM tab1 AS cor0
----
-32

skipif mysql # not compatible
query I rowsort label-5442
SELECT ALL - 35 - - COUNT ( * ) FROM tab1 AS cor0
----
-32

query I rowsort
SELECT + col2 * + 49 AS col0 FROM tab0 AS cor0
----
2303
4851
490

query III rowsort
SELECT * FROM tab2 WHERE NOT - 90 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5445
SELECT - 71 AS col1, + col1 * - col0 - CAST( - col1 AS SIGNED ) FROM tab1
----
-71
-420
-71
-4230
-71
-700

skipif mysql # not compatible
query II rowsort label-5445
SELECT - 71 AS col1, + col1 * - col0 - CAST ( - col1 AS INTEGER ) FROM tab1
----
-71
-420
-71
-4230
-71
-700

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col1, + col2 col0 FROM tab1 AS cor0
----
-14
96
-47
68
-5
59

query II rowsort
SELECT ALL col0 AS col0, - col1 FROM tab1 AS cor0
----
51
-14
85
-5
91
-47

query II rowsort
SELECT DISTINCT + - 70 AS col2, col2 AS col2 FROM tab0 cor0
----
-70
10
-70
47
-70
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5449
SELECT DISTINCT 78 * - - COUNT( * ) AS col2 FROM tab2 AS cor0
----
234

skipif mysql # not compatible
query I rowsort label-5449
SELECT DISTINCT 78 * - - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
234

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL IN ( + 44 * + col0 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <> - col1 + - col0 * - col0 + + 3
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5452
SELECT col0 * + - col0 * + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5452
SELECT col0 * + - col0 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT 87 AS col0 FROM tab1 AS cor0 WHERE NOT ( col2 / - 84 ) = NULL
----

query I rowsort
SELECT DISTINCT + col1 * 96 + - 53 FROM tab2 cor0
----
4843
6379
7339

onlyif mysql # aggregate syntax: 
query I rowsort label-5455
SELECT DISTINCT + 83 * ( - 58 ) * + ( + ( - - COUNT( * ) ) ) col0 FROM tab2 AS cor0
----
-14442

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5455
SELECT DISTINCT + 83 * ( - 58 ) * + ( + ( - - COUNT ( * ) ) ) col0 FROM tab2 AS cor0
----
-14442

query I rowsort
SELECT DISTINCT + - col0 AS col1 FROM tab0 AS cor0 WHERE col2 NOT BETWEEN NULL AND col0
----
-15
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5457
SELECT + 25 + ( + + COUNT( * ) ) AS col0 FROM tab2, tab1 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-5457
SELECT + 25 + ( + + COUNT ( * ) ) AS col0 FROM tab2, tab1 AS cor0
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-5458
SELECT COUNT( * ) * - 87 + 11 AS col0 FROM tab1
----
-250

skipif mysql # not compatible
query I rowsort label-5458
SELECT COUNT ( * ) * - 87 + 11 AS col0 FROM tab1
----
-250

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 JOIN tab1 cor1 ON NULL <> NULL
----

query I rowsort
SELECT + 11 * - - 98 FROM tab1, tab2 AS cor0
----
9 values hashing to 8366f36498fe276a4fad3bb9a5622f01

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5461
SELECT DISTINCT + MAX( - CAST( NULL AS SIGNED ) ) * + 9 FROM tab1 AS cor0 WHERE NOT 86 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5461
SELECT DISTINCT + MAX ( - CAST ( NULL AS INTEGER ) ) * + 9 FROM tab1 AS cor0 WHERE NOT 86 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5462
SELECT ALL + + SUM( DISTINCT col1 ) AS col1 FROM tab2 cor0
----
195

skipif mysql # not compatible
query I rowsort label-5462
SELECT ALL + + SUM ( DISTINCT col1 ) AS col1 FROM tab2 cor0
----
195

query I rowsort
SELECT + 82 FROM tab2 AS cor0 WHERE + ( + 78 ) IS NOT NULL
----
82
82
82

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 55 > + + col0
----
51
14
96

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col2 NOT BETWEEN + + 19 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5466
SELECT ALL + COUNT( * ) + + + 78 AS col1 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-5466
SELECT ALL + COUNT ( * ) + + + 78 AS col1 FROM tab0
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5467
SELECT CAST( NULL AS SIGNED ) - - ( + col2 ) / col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5467
SELECT CAST ( NULL AS INTEGER ) - - ( + col2 ) / col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT 23 - + col2 AS col1 FROM tab0
----
-24
-76
13

query I rowsort
SELECT - 7 - - col2 - + 43 * - ( - - 43 ) FROM tab2
----
1865
1882
1900

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab1 WHERE NOT + ( + 14 ) + - col1 IS NOT NULL AND NULL IS NOT NULL
----

query I rowsort
SELECT + 74 * col1 * - col1 + col0 FROM tab0
----
-32547
-485499
23

onlyif mysql # aggregate syntax: 
query II rowsort label-5472
SELECT DISTINCT - MAX( DISTINCT - - col1 ) * - 65 + COUNT( * ), COUNT( * ) AS col2 FROM tab1
----
3058
3

skipif mysql # not compatible
query II rowsort label-5472
SELECT DISTINCT - MAX ( DISTINCT - - col1 ) * - 65 + COUNT ( * ), COUNT ( * ) AS col2 FROM tab1
----
3058
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5473
SELECT DISTINCT - - MAX( + + 39 ) - COUNT( * ) - - - COUNT( * ) + SUM( ALL + col2 ) AS col2 FROM tab2 cor0
----
154

skipif mysql # not compatible
query I rowsort label-5473
SELECT DISTINCT - - MAX ( + + 39 ) - COUNT ( * ) - - - COUNT ( * ) + SUM ( ALL + col2 ) AS col2 FROM tab2 cor0
----
154

query I rowsort
SELECT DISTINCT - col2 - + col0 * + col0 + - col0 FROM tab2 AS cor0
----
-2185
-4200
-5758

query II rowsort
SELECT - 79 * ( + col1 ) AS col0, - col0 FROM tab1
----
-1106
-51
-3713
-91
-395
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-5476
SELECT - MAX( + - 54 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
54

skipif mysql # not compatible
query I rowsort label-5476
SELECT - MAX ( + - 54 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-5477
SELECT ALL + COUNT( * ) * + - COUNT( * ) * - 11 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND - col1
----
0

skipif mysql # not compatible
query I rowsort label-5477
SELECT ALL + COUNT ( * ) * + - COUNT ( * ) * - 11 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND - col1
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 34 BETWEEN NULL AND ( col1 * - col0 + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5479
SELECT + - col2 * + - col0 + - - CAST( + + col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
752
880
9702

skipif mysql # not compatible
query I rowsort label-5479
SELECT + - col2 * + - col0 + - - CAST ( + + col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
752
880
9702

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5480
SELECT ALL + ( - 14 ) * - col2 AS col2, - CAST( + col0 AS DECIMAL ) FROM tab1 AS cor0 WHERE - 81 IS NULL
----

skipif mysql # not compatible
query II rowsort label-5480
SELECT ALL + ( - 14 ) * - col2 AS col2, - CAST ( + col0 AS REAL ) FROM tab1 AS cor0 WHERE - 81 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5481
SELECT + COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( 35 ) > NULL
----
0

skipif mysql # not compatible
query I rowsort label-5481
SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( 35 ) > NULL
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 70 - col0 NOT IN ( + 44 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5483
SELECT DISTINCT + 95 * - ( - 82 ) * + - COUNT( * ) * + COUNT( * ) * - + 26 * - COUNT( * ) col2 FROM tab1 AS cor0
----
-5468580

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5483
SELECT DISTINCT + 95 * - ( - 82 ) * + - COUNT ( * ) * + COUNT ( * ) * - + 26 * - COUNT ( * ) col2 FROM tab1 AS cor0
----
-5468580

onlyif mysql # aggregate syntax: 
query I rowsort label-5484
SELECT MAX( 84 ) * MIN( ALL - 84 ) AS col2 FROM tab1 cor0
----
-7056

skipif mysql # not compatible
query I rowsort label-5484
SELECT MAX ( 84 ) * MIN ( ALL - 84 ) AS col2 FROM tab1 cor0
----
-7056

query I rowsort
SELECT DISTINCT 42 * 12 + - 48 FROM tab1 AS cor0
----
456

query I rowsort
SELECT DISTINCT - ( - 11 ) AS col0 FROM tab0 AS cor0
----
11

query I rowsort
SELECT - ( + 47 ) * + col1 AS col1 FROM tab1
----
-2209
-235
-658

query II rowsort
SELECT - col0 * 38, + col2 FROM tab1
----
-1938
96
-3230
59
-3458
68

query I rowsort
SELECT DISTINCT col0 * - 74 + 78 FROM tab2
----
-3326
-4658
-5472

onlyif mysql # aggregate syntax: 
query I rowsort label-5490
SELECT DISTINCT - SUM( ALL 13 ) AS col1 FROM tab2 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-5490
SELECT DISTINCT - SUM ( ALL 13 ) AS col1 FROM tab2 AS cor0
----
-39

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 61 < NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5492
SELECT COUNT( * ) AS col2, - 63 col0 FROM tab2 AS cor0
----
3
-63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5492
SELECT COUNT ( * ) AS col2, - 63 col0 FROM tab2 AS cor0
----
3
-63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5493
SELECT ALL 22 * - 18 * + COUNT( * ) + 23 DIV - ( + - COUNT( DISTINCT 23 ) ) FROM tab2 AS cor0
----
-1165

skipif mysql # not compatible
query I rowsort label-5493
SELECT ALL 22 * - 18 * + COUNT ( * ) + 23 / - ( + - COUNT ( DISTINCT 23 ) ) FROM tab2 AS cor0
----
-1165

onlyif mysql # DIV for integer division: 
query I rowsort label-5494
SELECT DISTINCT + col0 + - + 88 DIV + + col2 FROM tab1 AS cor0
----
51
84
90

skipif mysql # not compatible
query I rowsort label-5494
SELECT DISTINCT + col0 + - + 88 / + + col2 FROM tab1 AS cor0
----
51
84
90

query II rowsort
SELECT DISTINCT 99 + + 95, col2 FROM tab2
----
194
23
194
40
194
58

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 83 IS NULL
----

query I rowsort
SELECT - 73 + col2 AS col1 FROM tab2 cor0
----
-15
-33
-50

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <> + col1 / 30
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5499
SELECT - col1 * col1 * + + col2 FROM tab1 AS cor0 WHERE CAST( NULL AS DECIMAL ) > NULL
----

skipif mysql # not compatible
query I rowsort label-5499
SELECT - col1 * col1 * + + col2 FROM tab1 AS cor0 WHERE CAST ( NULL AS REAL ) > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5500
SELECT + col2 * + CAST( NULL AS SIGNED ) * + col2 + col0 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5500
SELECT + col2 * + CAST ( NULL AS INTEGER ) * + col2 + col0 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT + col1 * - + col1, + col1 FROM tab2 AS cor0 WHERE ( NOT NULL > NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5502
SELECT - COUNT( * ) + + 73 - 39 AS col2 FROM tab1 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-5502
SELECT - COUNT ( * ) + + 73 - 39 AS col2 FROM tab1 AS cor0
----
31

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5503
SELECT ALL + col0 DIV - ( CAST( - ( + 69 ) AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-5503
SELECT ALL + col0 / - ( CAST ( - ( + 69 ) AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
0
1
1

query I rowsort
SELECT + col2 + 87 + + - col1 AS col0 FROM tab2 AS cor0
----
50
59
78

query I rowsort
SELECT - + col2 + - col0 AS col2 FROM tab2 WHERE NULL IS NULL
----
-104
-133
-69

query I rowsort
SELECT ALL col2 + - - 86 AS col2 FROM tab1
----
145
154
182

query II rowsort
SELECT DISTINCT + 77 + + + 23 + - - col2 AS col2, 32 * + col2 AS col0 FROM tab1
----
159
1888
168
2176
196
3072

query III rowsort
SELECT ALL * FROM tab0 WHERE - - ( col1 ) + - col0 IS NULL
----

query II rowsort
SELECT ALL - col1 + + col2 * - 84, col1 AS col1 FROM tab0
----
-4029
81
-8317
1
-861
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5510
SELECT + 24 DIV + COUNT( * ) col1 FROM tab2
----
8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5510
SELECT + 24 / + COUNT ( * ) col1 FROM tab2
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-5511
SELECT ALL + - COUNT( * ) FROM tab2 WHERE NULL NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-5511
SELECT ALL + - COUNT ( * ) FROM tab2 WHERE NULL NOT BETWEEN NULL AND NULL
----
0

query III rowsort
SELECT * FROM tab0 WHERE - + col0 NOT BETWEEN - + 50 AND - col0
----
87
21
10
97
1
99

onlyif mysql # DIV for integer division: 
query I rowsort label-5513
SELECT DISTINCT + 56 DIV + col2 FROM tab2 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-5513
SELECT DISTINCT + 56 / + col2 FROM tab2 AS cor0
----
0
1
2

query I rowsort
SELECT 6 * col2 + - col2 FROM tab2 AS cor0
----
115
200
290

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5515
SELECT ALL - CAST( NULL AS SIGNED ) * col2 * - col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5515
SELECT ALL - CAST ( NULL AS INTEGER ) * col2 * - col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5516
SELECT ALL SUM( ALL ( col2 ) ) DIV - 12 AS col2 FROM tab1 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-5516
SELECT ALL SUM ( ALL ( col2 ) ) / - 12 AS col2 FROM tab1 AS cor0
----
-18

query I rowsort
SELECT - 77 * + + 38 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL AND NOT + col0 IS NULL
----
-2926
-2926
-2926

onlyif mysql # aggregate syntax: 
query I rowsort label-5518
SELECT DISTINCT - SUM( + 60 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-540

skipif mysql # not compatible
query I rowsort label-5518
SELECT DISTINCT - SUM ( + 60 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-540

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL NOT BETWEEN - 9 AND NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 cor1 WHERE NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT - 9 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to caf28657beb43049740febe1fa9ded5a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 72 * col1, + col1 col0 FROM tab1 AS cor0
----
1008
14
3384
47
360
5

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 > - + 85
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5524
SELECT + CAST( - - col0 AS SIGNED ) * - + ( col0 ) AS col1 FROM tab1 AS cor0
----
-2601
-7225
-8281

skipif mysql # not compatible
query I rowsort label-5524
SELECT + CAST ( - - col0 AS INTEGER ) * - + ( col0 ) AS col1 FROM tab1 AS cor0
----
-2601
-7225
-8281

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 * + - 79 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + - col1 FROM tab1 AS cor0 WHERE NOT + 99 IS NULL
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5527
SELECT + - COUNT( * ) - - 45 AS col1 FROM tab0 WHERE NOT - col1 - col1 / - ( 13 ) IS NOT NULL
----
45

skipif mysql # not compatible
query I rowsort label-5527
SELECT + - COUNT ( * ) - - 45 AS col1 FROM tab0 WHERE NOT - col1 - col1 / - ( 13 ) IS NOT NULL
----
45

query II rowsort
SELECT + 62 * + col1 * - 61 AS col1, col0 * + col2 AS col2 FROM tab2
----
-192882
1058
-253394
4350
-291214
2560

onlyif mysql # aggregate syntax: 
query I rowsort label-5529
SELECT + MIN( ALL - + col2 ) col1 FROM tab2 WHERE NOT + col0 IS NULL
----
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5529
SELECT + MIN ( ALL - + col2 ) col1 FROM tab2 WHERE NOT + col0 IS NULL
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5530
SELECT ALL ( - SUM( ALL - - col0 ) ) FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-5530
SELECT ALL ( - SUM ( ALL - - col0 ) ) FROM tab1
----
-227

onlyif mysql # aggregate syntax: 
query I rowsort label-5531
SELECT - MIN( - - col2 ) col1 FROM tab1
----
-59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5531
SELECT - MIN ( - - col2 ) col1 FROM tab1
----
-59

query I rowsort
SELECT DISTINCT - ( col1 ) * + - 33 FROM tab1
----
1551
165
462

query I rowsort
SELECT ALL 8 * - col2 FROM tab0
----
-376
-792
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-5534
SELECT - ( COUNT( * ) ) * - - MIN( 59 ) AS col1 FROM tab0
----
-177

skipif mysql # not compatible
query I rowsort label-5534
SELECT - ( COUNT ( * ) ) * - - MIN ( 59 ) AS col1 FROM tab0
----
-177

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - 47 col2 FROM tab1
----
-2773
-3196
-4512

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5536
SELECT DISTINCT + 14 + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5536
SELECT DISTINCT + 14 + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + 86 + col2 + - ( - - col0 ) FROM tab0 AS cor0
----
118
88
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5538
SELECT col1 + - + 56 + - - col1 * - CAST( + col1 AS SIGNED ) AS col0 FROM tab1
----
-2218
-238
-76

skipif mysql # not compatible
query I rowsort label-5538
SELECT col1 + - + 56 + - - col1 * - CAST ( + col1 AS INTEGER ) AS col0 FROM tab1
----
-2218
-238
-76

query I rowsort
SELECT + ( + + col2 ) + - col2 FROM tab0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5540
SELECT * FROM tab0 WHERE NULL < - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5540
SELECT * FROM tab0 WHERE NULL < - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT + - col0 * - 31 AS col0 FROM tab0 AS cor0
----
2697
3007
465

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 BETWEEN NULL AND + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5543
SELECT ALL - COUNT( * ) * + 56 * - 77 FROM tab2 AS cor0
----
12936

skipif mysql # not compatible
query I rowsort label-5543
SELECT ALL - COUNT ( * ) * + 56 * - 77 FROM tab2 AS cor0
----
12936

query I rowsort
SELECT DISTINCT - ( + - col0 ) FROM tab1 cor0
----
51
85
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - col2, col2 col1 FROM tab1 AS cor0
----
59
59
68
68
96
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5546
SELECT + MAX( DISTINCT 64 ) - - COUNT( * ) col1 FROM tab2
----
67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5546
SELECT + MAX ( DISTINCT 64 ) - - COUNT ( * ) col1 FROM tab2
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-5547
SELECT COUNT( * ) - + + COUNT( * ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5547
SELECT COUNT ( * ) - + + COUNT ( * ) FROM tab0
----
0

query I rowsort
SELECT + 67 - - 24 FROM tab2
----
91
91
91

onlyif mysql # aggregate syntax: 
query II rowsort label-5549
SELECT DISTINCT - 28 * - COUNT( * ) AS col0, 79 + - - 23 AS col1 FROM tab1
----
84
102

skipif mysql # not compatible
query II rowsort label-5549
SELECT DISTINCT - 28 * - COUNT ( * ) AS col0, 79 + - - 23 AS col1 FROM tab1
----
84
102

onlyif mysql # DIV for integer division: 
query I rowsort label-5550
SELECT ALL - ( + ( 55 ) ) DIV - col0 + - col1 - col2 FROM tab0
----
-100
-125
-31

skipif mysql # not compatible
query I rowsort label-5550
SELECT ALL - ( + ( 55 ) ) / - col0 + - col1 - col2 FROM tab0
----
-100
-125
-31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col2 FROM tab0 WHERE + - col2 + + - col0 + + col2 + - col2 * - col2 IS NOT NULL
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-5552
SELECT DISTINCT + SUM( - col1 ) * + COUNT( * ) FROM tab2 cor0
----
-585

skipif mysql # not compatible
query I rowsort label-5552
SELECT DISTINCT + SUM ( - col1 ) * + COUNT ( * ) FROM tab2 cor0
----
-585

query I rowsort
SELECT ( + 46 ) * col2 AS col0 FROM tab2 cor0
----
1058
1840
2668

onlyif mysql # DIV for integer division: 
query I rowsort label-5554
SELECT DISTINCT + 50 * + col2 DIV - col2 AS col1 FROM tab2 AS cor0
----
-50

skipif mysql # not compatible
query I rowsort label-5554
SELECT DISTINCT + 50 * + col2 / - col2 AS col1 FROM tab2 AS cor0
----
-50

query III rowsort
SELECT * FROM tab1 WHERE NOT - 49 + + 90 IS NOT NULL AND NOT + col0 IS NOT NULL
----

query I rowsort
SELECT + ( + - 94 ) FROM tab0
----
-94
-94
-94

query I rowsort
SELECT DISTINCT 65 AS col1 FROM tab1 WHERE NOT - 53 IS NULL
----
65

query I rowsort
SELECT DISTINCT ( + 40 ) FROM tab2 AS cor0
----
40

query II rowsort
SELECT - + col2, col1 AS col1 FROM tab2 AS cor0
----
-23
51
-40
77
-58
67

onlyif mysql # DIV for integer division: 
query I rowsort label-5560
SELECT DISTINCT 26 DIV + col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5560
SELECT DISTINCT 26 / + col0 FROM tab2 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5561
SELECT ALL - - col2 DIV + + 52 + + + col0 * - + 10 + - + ( col2 ) AS col1 FROM tab0 AS cor0
----
-1068
-197
-880

skipif mysql # not compatible
query I rowsort label-5561
SELECT ALL - - col2 / + + 52 + + + col0 * - + 10 + - + ( col2 ) AS col1 FROM tab0 AS cor0
----
-1068
-197
-880

query II rowsort
SELECT + - col1 AS col1, - col1 + - 86 - - col1 FROM tab1 AS cor0
----
-14
-86
-47
-86
-5
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-5563
SELECT - MIN( 78 ) FROM tab2 cor0
----
-78

skipif mysql # not compatible
query I rowsort label-5563
SELECT - MIN ( 78 ) FROM tab2 cor0
----
-78

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL < - 39
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + - 38 col2 FROM tab2
----
-61
-78
-96

query I rowsort
SELECT col1 FROM tab2 WHERE NULL NOT BETWEEN + + 81 * - 91 AND 12
----

query I rowsort
SELECT DISTINCT + + col0 FROM tab0 WHERE NOT ( - + 3 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 10 > - - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 45 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5570
SELECT DISTINCT + 64 + - - col2 FROM tab0 AS cor0 WHERE NOT + col0 * + 96 + ( - CAST( 21 AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5570
SELECT DISTINCT + 64 + - - col2 FROM tab0 AS cor0 WHERE NOT + col0 * + 96 + ( - CAST ( 21 AS INTEGER ) ) IS NOT NULL
----

query II rowsort
SELECT DISTINCT + - col2 * + col2 - - col1 + + col0 + - + ( + 64 ) * + + col0 AS col1, col1 FROM tab2 AS cor0
----
-3376
51
-5555
77
-8022
67

query II rowsort
SELECT ALL - 37 + - col2, + col2 AS col1 FROM tab0 AS cor0
----
-136
99
-47
10
-84
47

query I rowsort
SELECT + - col2 AS col2 FROM tab0 WHERE NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5574
SELECT 85 + + MAX( 29 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
114

skipif mysql # not compatible
query I rowsort label-5574
SELECT 85 + + MAX ( 29 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
114

query I rowsort
SELECT - 77 + col2 AS col2 FROM tab1
----
-18
-9
19

onlyif mysql # aggregate syntax: 
query I rowsort label-5576
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE - 52 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5576
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE - 52 IS NOT NULL
----
-3

query I rowsort
SELECT col1 + - - 59 FROM tab0 cor0
----
140
60
80

query I rowsort
SELECT + + col0 * - + ( - 1 ) + - col0 AS col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5579
SELECT DISTINCT + - col0 + + col1 + CAST( - 89 AS SIGNED ) * - col1 FROM tab1 AS cor0
----
1209
365
4139

skipif mysql # not compatible
query I rowsort label-5579
SELECT DISTINCT + - col0 + + col1 + CAST ( - 89 AS INTEGER ) * - col1 FROM tab1 AS cor0
----
1209
365
4139

query II rowsort
SELECT DISTINCT col2 AS col1, ( - - 27 ) AS col2 FROM tab1
----
59
27
68
27
96
27

onlyif mysql # aggregate syntax: 
query I rowsort label-5581
SELECT ALL 9 * - COUNT( * ) AS col2 FROM tab0
----
-27

skipif mysql # not compatible
query I rowsort label-5581
SELECT ALL 9 * - COUNT ( * ) AS col2 FROM tab0
----
-27

query I rowsort
SELECT ALL + 0 * - + col2 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5583
SELECT + col2 AS col0, col1 - + col1 * - 7 + col1 + CAST( NULL AS SIGNED ) FROM tab2
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-5583
SELECT + col2 AS col0, col1 - + col1 * - 7 + col1 + CAST ( NULL AS INTEGER ) FROM tab2
----
23
NULL
40
NULL
58
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5584
SELECT + SUM( DISTINCT + 98 ) * 70 AS col2 FROM tab0
----
6860

skipif mysql # not compatible
query I rowsort label-5584
SELECT + SUM ( DISTINCT + 98 ) * 70 AS col2 FROM tab0
----
6860

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5585
SELECT - + MAX( ALL - ( CAST( NULL AS SIGNED ) ) ) col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5585
SELECT - + MAX ( ALL - ( CAST ( NULL AS INTEGER ) ) ) col2 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( 83 / ( - 99 ) ) >= NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5588
SELECT CAST( NULL AS SIGNED ) * + col1 + + - 98 * + - 63 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5588
SELECT CAST ( NULL AS INTEGER ) * + col1 + + - 98 * + - 63 AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5589
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 + - + 68 + + - CAST( 41 AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5589
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 + - + 68 + + - CAST ( 41 AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) > col2 - 9
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5591
SELECT + col0 DIV + col2, - col0 * 79 AS col0 FROM tab0 AS cor0
----
0
-1185
0
-7663
8
-6873

skipif mysql # not compatible
query II rowsort label-5591
SELECT + col0 / + col2, - col0 * 79 AS col0 FROM tab0 AS cor0
----
0
-1185
0
-7663
8
-6873

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) <> col0 - - col0 * 32
----

query I rowsort
SELECT ALL + 59 FROM tab1 AS cor0 WHERE ( col2 ) * col2 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5594
SELECT ALL - 25 / CAST( + col0 AS DECIMAL ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5594
SELECT ALL - 25 / CAST ( + col0 AS REAL ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + col2 + - col1 - + + col2 AS col1 FROM tab0 cor0
----
-1
-21
-81

query I rowsort
SELECT ALL + ( + col0 ) + - col2 AS col2 FROM tab0 WHERE col1 + + + col0 IS NULL
----

query I rowsort
SELECT 73 * - - col1 FROM tab2
----
3723
4891
5621

onlyif mysql # aggregate syntax: 
query II rowsort label-5598
SELECT DISTINCT + COUNT( * ) AS col2, COUNT( - 68 ) FROM tab1
----
3
3

skipif mysql # not compatible
query II rowsort label-5598
SELECT DISTINCT + COUNT ( * ) AS col2, COUNT ( - 68 ) FROM tab1
----
3
3

query I rowsort
SELECT ( - - col2 ) * - col1 AS col2 FROM tab0
----
-210
-3807
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-5600
SELECT - col0 DIV 75 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5600
SELECT - col0 / 75 FROM tab2
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5601
SELECT + SUM( DISTINCT + - col2 ) FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-5601
SELECT + SUM ( DISTINCT + - col2 ) FROM tab1
----
-223

onlyif mysql # DIV for integer division: 
query I rowsort label-5602
SELECT + + col1 + - col2 + col0 DIV ( col2 ) - - - col1 + + 1 FROM tab0 AS cor0
----
-1
-46
-98

skipif mysql # not compatible
query I rowsort label-5602
SELECT + + col1 + - col2 + col0 / ( col2 ) - - - col1 + + 1 FROM tab0 AS cor0
----
-1
-46
-98

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) >= - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5604
SELECT ALL + 67 DIV + col2 FROM tab0
----
0
1
6

skipif mysql # not compatible
query I rowsort label-5604
SELECT ALL + 67 / + col2 FROM tab0
----
0
1
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5605
SELECT MIN( ALL 88 ) AS col2 FROM tab0
----
88

skipif mysql # not compatible
query I rowsort label-5605
SELECT MIN ( ALL 88 ) AS col2 FROM tab0
----
88

query I rowsort
SELECT col2 * - col0 - - 52 AS col0 FROM tab1
----
-4844
-4963
-6136

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5607
SELECT ALL + 85 DIV + SUM( col2 * 64 ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5607
SELECT ALL + 85 / + SUM ( col2 * 64 ) AS col1 FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5608
SELECT DISTINCT col1 DIV 85 col0 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5608
SELECT DISTINCT col1 / 85 col0 FROM tab1
----
0

query III rowsort
SELECT * FROM tab1 WHERE - 13 IN ( 23 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5610
SELECT DISTINCT col2 DIV + ( ( - 72 ) ) AS col1 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-5610
SELECT DISTINCT col2 / + ( ( - 72 ) ) AS col1 FROM tab1
----
-1
0

query I rowsort
SELECT col2 * 40 + + 82 FROM tab1
----
2442
2802
3922

onlyif mysql # DIV for integer division: 
query I rowsort label-5612
SELECT 1 DIV 49 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5612
SELECT 1 / 49 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5613
SELECT col2 DIV 91 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5613
SELECT col2 / 91 AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT - ( + col2 ) AS col1 FROM tab0 WHERE col1 IN ( col0 * col1 )
----

skipif postgresql # PostgreSQL requires AS when renami