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 renaming output columns
query I rowsort
SELECT DISTINCT col2 * - 67 + col0 * + col1 col2 FROM tab1
----
-279
-3528
-5718

onlyif mysql # DIV for integer division: 
query I rowsort label-5616
SELECT - 48 DIV 98 + - 15 AS col0 FROM tab0
----
-15
-15
-15

skipif mysql # not compatible
query I rowsort label-5616
SELECT - 48 / 98 + - 15 AS col0 FROM tab0
----
-15
-15
-15

query I rowsort
SELECT ALL - col1 AS col1 FROM tab2 WHERE + 33 * col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5618
SELECT 97 * + col0 + + 87 DIV 35 AS col0 FROM tab1
----
4949
8247
8829

skipif mysql # not compatible
query I rowsort label-5618
SELECT 97 * + col0 + + 87 / 35 AS col0 FROM tab1
----
4949
8247
8829

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN + col1 * - 89 AND NULL
----

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

skipif mysql # not compatible
query I rowsort label-5620
SELECT DISTINCT - 46 + COUNT ( * ) FROM tab1
----
-43

query I rowsort
SELECT + col0 + 0 FROM tab1
----
51
85
91

query I rowsort
SELECT ( 28 ) FROM tab1 AS cor0
----
28
28
28

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5624
SELECT * FROM tab1 AS cor0 WHERE NOT ( col1 ) NOT BETWEEN + col1 AND ( + ( col0 ) / CAST( - col1 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5624
SELECT * FROM tab1 AS cor0 WHERE NOT ( col1 ) NOT BETWEEN + col1 AND ( + ( col0 ) / CAST ( - col1 AS INTEGER ) )
----

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

query I rowsort
SELECT ALL col0 AS col2 FROM tab0 AS cor0 WHERE NOT NULL = - 68
----

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

query I rowsort
SELECT DISTINCT + + ( + 67 ) AS col2 FROM tab1 AS cor0
----
67

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5629
SELECT - - CAST( NULL AS DECIMAL ) * col1 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-5629
SELECT - - CAST ( NULL AS REAL ) * col1 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5631
SELECT DISTINCT + col0 + - col2 DIV 66 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-5631
SELECT DISTINCT + col0 + - col2 / 66 FROM tab2 AS cor0
----
46
64
75

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

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

query I rowsort
SELECT DISTINCT col2 + - col1 + + col2 * 89 FROM tab1
----
5305
6073
8626

query I rowsort
SELECT ALL col2 AS col0 FROM tab0 WHERE NULL IS NULL
----
10
47
99

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

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

query I rowsort
SELECT - 4 / 15 AS col1 FROM tab2 WHERE - col1 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL < + 91
----

query I rowsort
SELECT + - 75 * + 75 + + col2 AS col2 FROM tab1 cor0
----
-5529
-5557
-5566

query I rowsort
SELECT 18 FROM tab2 AS cor0 WHERE NULL <> col1
----

query I rowsort
SELECT DISTINCT ( + 69 ) * + col0 AS col1 FROM tab2 AS cor0
----
3174
4416
5175

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5644
SELECT COUNT( * ) * ( 42 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5644
SELECT COUNT ( * ) * ( 42 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NOT NULL
----
0

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + 66, - 77 + 51 col1 FROM tab0 AS cor0
----
-66
-26
-66
-26
-66
-26

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 42 < col1 * col2
----

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5651
SELECT ALL - COUNT( * ) * + - MAX( ALL + + 84 ) * - COUNT( * ) FROM tab1 AS cor0
----
-756

skipif mysql # not compatible
query I rowsort label-5651
SELECT ALL - COUNT ( * ) * + - MAX ( ALL + + 84 ) * - COUNT ( * ) FROM tab1 AS cor0
----
-756

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5652
SELECT DISTINCT 70 FROM tab0 AS cor0 WHERE NOT col0 NOT BETWEEN + col0 / + 8 AND ( + CAST( NULL AS SIGNED ) * ( col1 ) )
----

skipif mysql # not compatible
query I rowsort label-5652
SELECT DISTINCT 70 FROM tab0 AS cor0 WHERE NOT col0 NOT BETWEEN + col0 / + 8 AND ( + CAST ( NULL AS INTEGER ) * ( col1 ) )
----

query I rowsort
SELECT - col1 FROM tab2 WHERE + col0 <> NULL AND + col0 IS NOT NULL
----

query I rowsort
SELECT - AVG ( ALL col0 ) FROM tab0 WHERE NOT col1 NOT IN ( + 12 )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-5655
SELECT - COUNT ( * ) / + 27 AS col0 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5656
SELECT + MIN( + col0 ) * - 12 AS col0 FROM tab2
----
-552

skipif mysql # not compatible
query I rowsort label-5656
SELECT + MIN ( + col0 ) * - 12 AS col0 FROM tab2
----
-552

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 * + col2 BETWEEN - ( + 28 ) * 38 + + col0 AND col2 AND + 9 NOT IN ( - 96 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL < - col1 * + col1 / ( col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 19 col0 FROM tab0 AS cor0 WHERE NOT NULL >= 78 / + col1
----

query I rowsort
SELECT ALL 97 + - col2 AS col0 FROM tab1 AS cor0 WHERE 16 IN ( col2 )
----

query I rowsort
SELECT col1 AS col2 FROM tab0 AS cor0 WHERE NOT ( - 44 + + ( + - col1 ) ) NOT IN ( + col2 + - col1 * col0 )
----

query I rowsort
SELECT 1 + + - col2 AS col0 FROM tab2
----
-22
-39
-57

query I rowsort
SELECT + 59 * col0 + + col1 AS col1 FROM tab0
----
5154
5724
966

query I rowsort
SELECT 71 + + + 78 AS col0 FROM tab0
----
149
149
149

query I rowsort
SELECT 50 + - + col0 + + + col1 * + 82 FROM tab0
----
1685
35
6677

query III rowsort
SELECT * FROM tab1 WHERE NULL <= ( - col1 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col0 ) <> - 17
----

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

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

query I rowsort
SELECT DISTINCT + + ( - col1 ) FROM tab2 AS cor0 WHERE + col0 < - 6
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5670
SELECT ALL - + COUNT( * ) + MIN( - - 87 ) AS col0 FROM tab1 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-5670
SELECT ALL - + COUNT ( * ) + MIN ( - - 87 ) AS col0 FROM tab1 AS cor0
----
84

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5673
SELECT - COUNT( DISTINCT 5 ) AS col2 FROM tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5673
SELECT - COUNT ( DISTINCT 5 ) AS col2 FROM tab0 cor0
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5674
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( col1 ) NOT BETWEEN - CAST( NULL AS DECIMAL ) AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-5674
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( col1 ) NOT BETWEEN - CAST ( NULL AS REAL ) AND ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL <= ( + 51 / - 87 )
----

query I rowsort
SELECT DISTINCT - col2 * - - ( - col1 ) FROM tab2 WHERE NULL IS NULL
----
1173
3080
3886

query I rowsort
SELECT + col0 * - - col0 * - + col0 * col0 - + - 85 * + col0 * col0 FROM tab1
----
-51586500
-6544116
-67871076

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5678
SELECT COUNT( - + col1 ) DIV 90 - - ( + COUNT( * ) ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5678
SELECT COUNT ( - + col1 ) / 90 - - ( + COUNT ( * ) ) AS col0 FROM tab0
----
3

query I rowsort
SELECT DISTINCT - col2 + + col1 * + - col1 FROM tab1
----
-2277
-292
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-5680
SELECT DISTINCT ( - COUNT( * ) ) * 19 FROM tab0
----
-57

skipif mysql # not compatible
query I rowsort label-5680
SELECT DISTINCT ( - COUNT ( * ) ) * 19 FROM tab0
----
-57

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5682
SELECT - ( col1 ) - - 47 DIV - col1 - + col0 FROM tab2
----
-141
-142
-97

skipif mysql # not compatible
query I rowsort label-5682
SELECT - ( col1 ) - - 47 / - col1 - + col0 FROM tab2
----
-141
-142
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 62 - - - 11 AS col2, - col2 col1 FROM tab0
----
51
-10
51
-47
51
-99

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

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

query I rowsort
SELECT ALL - - 53 * - col0 + + col1 AS col1 FROM tab0 cor0
----
-4590
-5140
-714

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5686
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col2 <> ( + 35 ) OR NOT - CAST( + col0 AS SIGNED ) NOT BETWEEN ( + col1 * + 15 ) AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-5686
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col2 <> ( + 35 ) OR NOT - CAST ( + col0 AS INTEGER ) NOT BETWEEN ( + col1 * + 15 ) AND ( NULL )
----

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5688
SELECT DISTINCT + - COUNT( * ) DIV + 70 * + + COUNT( * ) * SUM( + 78 ) col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5688
SELECT DISTINCT + - COUNT ( * ) / + 70 * + + COUNT ( * ) * SUM ( + 78 ) col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
0

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

query II rowsort
SELECT ( - - 94 ) AS col0, - ( + 59 ) AS col1 FROM tab0 AS cor0
----
94
-59
94
-59
94
-59

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( 58 / 71 * + 45 + - col1 ) NOT IN ( 85 * + col2 * col0 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 <> - 9
----

query I rowsort
SELECT - 32 * - 90 AS col2 FROM tab0 AS cor0
----
2880
2880
2880

query I rowsort
SELECT ALL - + col0 AS col1 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND 9
----

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5696
SELECT DISTINCT COUNT( * ) AS col2, + ( + COUNT( * ) ) * - MAX( - - col1 ) FROM tab1
----
3
-141

skipif mysql # not compatible
query II rowsort label-5696
SELECT DISTINCT COUNT ( * ) AS col2, + ( + COUNT ( * ) ) * - MAX ( - - col1 ) FROM tab1
----
3
-141

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NOT col2 <> + col1 ) OR NOT ( ( col2 ) BETWEEN + col0 AND + col0 - + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5698
SELECT ALL - SUM( ALL - - 10 ) FROM tab0
----
-30

skipif mysql # not compatible
query I rowsort label-5698
SELECT ALL - SUM ( ALL - - 10 ) FROM tab0
----
-30

query I rowsort
SELECT + ( 21 ) FROM tab2
----
21
21
21

onlyif mysql # DIV for integer division: 
query II rowsort label-5700
SELECT ALL + col2 AS col0, + 52 DIV + - col0 FROM tab1
----
59
0
68
0
96
-1

skipif mysql # not compatible
query II rowsort label-5700
SELECT ALL + col2 AS col0, + 52 / + - col0 FROM tab1
----
59
0
68
0
96
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5701
SELECT ALL COUNT( * ) AS col1, CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
3
NULL

skipif mysql # not compatible
query II rowsort label-5701
SELECT ALL COUNT ( * ) AS col1, CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
3
NULL

query I rowsort
SELECT ALL col0 * + 11 FROM tab2
----
506
704
825

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 BETWEEN - + col1 AND + 17
----
15
81
47
97
1
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5704
SELECT - MAX( ALL CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5704
SELECT - MAX ( ALL CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

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

query I rowsort
SELECT ALL col0 * 56 * col2 + + col1 + + col2 + + 46 * - ( col2 ) * - col0 FROM tab1 AS cor0
----
499502
511594
631291

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

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

query II rowsort
SELECT DISTINCT - col1 * col2, + col2 FROM tab1 AS cor0
----
-1344
96
-295
59
-3196
68

query I rowsort
SELECT - 47 + - - col1 + + col1 AS col2 FROM tab1 AS cor0
----
-19
-37
47

query I rowsort
SELECT DISTINCT 14 * - col2 * + col1 AS col2 FROM tab1 AS cor0
----
-18816
-4130
-44744

query II rowsort
SELECT ALL col0 AS col1, - col1 + - col2 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5713
SELECT 47 * - ( - COUNT( - col0 ) ) + + 16 * + + COUNT( * ) * - COUNT( + + 93 ) + + MAX( col1 ) FROM tab1 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-5713
SELECT 47 * - ( - COUNT ( - col0 ) ) + + 16 * + + COUNT ( * ) * - COUNT ( + + 93 ) + + MAX ( col1 ) FROM tab1 AS cor0
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5714
SELECT - 99 + + - COUNT( * ) + - + 36 + + 97 * + COUNT( * ) - CAST( - - COUNT( * ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
150

skipif mysql # not compatible
query I rowsort label-5714
SELECT - 99 + + - COUNT ( * ) + - + 36 + + 97 * + COUNT ( * ) - CAST ( - - COUNT ( * ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
150

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

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

query I rowsort
SELECT ALL - col0 + ( 30 ) * 91 AS col0 FROM tab1 AS cor0
----
2639
2645
2679

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5718
SELECT ALL col2 + + col0 DIV + + ( - - 7 ) FROM tab1
----
103
71
81

skipif mysql # not compatible
query I rowsort label-5718
SELECT ALL col2 + + col0 / + + ( - - 7 ) FROM tab1
----
103
71
81

onlyif mysql # DIV for integer division: 
query I rowsort label-5719
SELECT col0 DIV col0 * - col2 DIV 28 + 91 + - + 13 + - 97 FROM tab1
----
-21
-21
-22

skipif mysql # not compatible
query I rowsort label-5719
SELECT col0 / col0 * - col2 / 28 + 91 + - + 13 + - 97 FROM tab1
----
-21
-21
-22

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

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

query III rowsort
SELECT * FROM tab1 WHERE - + 2 * - 81 * + - col1 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5722
SELECT DISTINCT 14 * + COUNT( * ) - 55 FROM tab1
----
-13

skipif mysql # not compatible
query I rowsort label-5722
SELECT DISTINCT 14 * + COUNT ( * ) - 55 FROM tab1
----
-13

query III rowsort
SELECT ALL * FROM tab2 WHERE - 53 + + 95 IS NULL
----

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5725
SELECT DISTINCT + col1 - - - col2 + + CAST( NULL AS DECIMAL ) AS col2, col2 AS col0 FROM tab1 WHERE NULL BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query II rowsort label-5725
SELECT DISTINCT + col1 - - - col2 + + CAST ( NULL AS REAL ) AS col2, col2 AS col0 FROM tab1 WHERE NULL BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE - + ( + col1 ) = + + col1 - + 41
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5727
SELECT MAX( 79 ) AS col0 FROM tab2
----
79

skipif mysql # not compatible
query I rowsort label-5727
SELECT MAX ( 79 ) AS col0 FROM tab2
----
79

query I rowsort
SELECT DISTINCT 2 * - ( + col1 ) FROM tab0 WHERE NULL IS NULL
----
-162
-2
-42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col2, col0 + + + col2 FROM tab1
----
-51
147
-85
144
-91
159

query I rowsort
SELECT DISTINCT + col2 FROM tab0 WHERE ( - col1 * - col0 + - + 34 + + col0 ) IN ( - col2, 89 )
----

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

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE col1 * - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5733
SELECT ALL + 52 - MAX( col0 ), COUNT( * ) AS col2 FROM tab1 AS cor0
----
-39
3

skipif mysql # not compatible
query II rowsort label-5733
SELECT ALL + 52 - MAX ( col0 ), COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-39
3

query I rowsort
SELECT ALL 6 * + - col2 AS col2 FROM tab0
----
-282
-594
-60

query I rowsort
SELECT DISTINCT - + 90 AS col2 FROM tab0 WHERE NOT NULL > - - col0
----

query I rowsort
SELECT - 92 * + 52 FROM tab0
----
-4784
-4784
-4784

query II rowsort
SELECT DISTINCT - 57, + col0 FROM tab1 AS cor0
----
-57
51
-57
85
-57
91

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

query II rowsort
SELECT DISTINCT - 97, - 6 AS col1 FROM tab1 AS cor0
----
-97
-6

query I rowsort
SELECT ALL - 69 * - 90 * + col0 AS col0 FROM tab0 AS cor0
----
540270
602370
93150

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

query I rowsort
SELECT DISTINCT + col1 * - - 93 * - - ( - - col2 ) * + + col0 AS col2 FROM tab0 AS cor0
----
1699110
5310765
893079

query IIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0 WHERE NULL BETWEEN + 62 AND NULL
----

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab0 WHERE NOT ( col2 + 28 IS NULL )
----
15
87
97

query II rowsort
SELECT 25 * - col1 AS col1, - col1 AS col1 FROM tab2
----
-1275
-51
-1675
-67
-1925
-77

query I rowsort
SELECT + + 76 * + col1 AS col1 FROM tab0 WHERE NOT ( NULL = + ( 77 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5747
SELECT 48 DIV + 35 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5747
SELECT 48 / + 35 FROM tab1
----
1
1
1

query I rowsort
SELECT DISTINCT - col2 + - col0 AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-196
-62
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5749
SELECT DISTINCT + 82 * - + CAST( + 44 AS SIGNED ) + col0 FROM tab1 AS cor0
----
-3517
-3523
-3557

skipif mysql # not compatible
query I rowsort label-5749
SELECT DISTINCT + 82 * - + CAST ( + 44 AS INTEGER ) + col0 FROM tab1 AS cor0
----
-3517
-3523
-3557

query I rowsort
SELECT ALL + 73 + - col0 AS col0 FROM tab2
----
-2
27
9

query I rowsort
SELECT - col2 * + - 60 + - + 71 + - col0 * col1 AS col2 FROM tab0
----
-1298
1534
5772

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 94 > - col2
----

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5757
SELECT - ( CAST( - COUNT( * ) AS SIGNED ) ) + - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE + 90 < - col1 * - col0 - - + ( + col1 ) * - - col2 + + - col2
----
0

skipif mysql # not compatible
query I rowsort label-5757
SELECT - ( CAST ( - COUNT ( * ) AS INTEGER ) ) + - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE + 90 < - col1 * - col0 - - + ( + col1 ) * - - col2 + + - col2
----
0

query I rowsort
SELECT col1 - 54 + - col0 + + 94 FROM tab1 AS cor0
----
-4
-40
3

query I rowsort
SELECT ALL + 63 + col0 FROM tab1
----
114
148
154

query I rowsort
SELECT DISTINCT ( + - ( 77 ) ) - - - col2 * 33 FROM tab0
----
-1628
-3344
-407

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 69 - + + 39 col1 FROM tab2
----
-108
-108
-108

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5762
SELECT ALL - col2, - CAST( - col1 AS SIGNED ) * - col0 + - - col2 + - col0 + col2 AS col1 FROM tab1 WHERE NOT NULL < - 97
----

skipif mysql # not compatible
query II rowsort label-5762
SELECT ALL - col2, - CAST ( - col1 AS INTEGER ) * - col0 + - - col2 + - col0 + col2 AS col1 FROM tab1 WHERE NOT NULL < - 97
----

query I rowsort
SELECT ALL 31 * + - col2 AS col0 FROM tab0 WHERE + + col1 <> col0
----
-1457
-3069
-310

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

query I rowsort
SELECT DISTINCT - col2 - + 15 AS col2 FROM tab2
----
-38
-55
-73

query I rowsort
SELECT col2 * + 85 - + col1 * - 38 + - + 97 AS col2 FROM tab0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE ( - 98 ) IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5769
SELECT ALL + 25 * SUM( ALL - 1 ) FROM tab1 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-5769
SELECT ALL + 25 * SUM ( ALL - 1 ) FROM tab1 AS cor0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-5770
SELECT ALL - MIN( DISTINCT col1 ) FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-5770
SELECT ALL - MIN ( DISTINCT col1 ) FROM tab1 AS cor0
----
-5

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5773
SELECT + COUNT( * ) - + 16 FROM tab2 AS cor0 WHERE NOT ( col0 ) <> NULL
----
-16

skipif mysql # not compatible
query I rowsort label-5773
SELECT + COUNT ( * ) - + 16 FROM tab2 AS cor0 WHERE NOT ( col0 ) <> NULL
----
-16

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-5776
SELECT - 40 AS col2, 72 + + - 54 DIV + col2 FROM tab0 AS cor0
----
-40
67
-40
71
-40
72

skipif mysql # not compatible
query II rowsort label-5776
SELECT - 40 AS col2, 72 + + - 54 / + col2 FROM tab0 AS cor0
----
-40
67
-40
71
-40
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col1 ) * - - col2 col1 FROM tab1 AS cor0 WHERE NOT 77 > - col2
----

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

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

query II rowsort
SELECT ALL - 91, + 93 AS col1 FROM tab0 cor0 WHERE NOT + col2 * - 99 IN ( + 7 )
----
-91
93
-91
93
-91
93

query III rowsort
SELECT col1, col1, + + 98 FROM tab2
----
9 values hashing to 52cda33a9cd06804c6aff22f5c5d740c

query I rowsort
SELECT col1 + + col1 + + col0 AS col1 FROM tab2
----
148
209
218

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

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

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab2 WHERE NOT + + col2 = + col1
----
46
64
75

query III rowsort
SELECT * FROM tab0 WHERE - col2 IS NULL AND 3 * + col0 IS NOT NULL
----

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5788
SELECT ALL 95 + - + CAST( + col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
10
4
44

skipif mysql # not compatible
query I rowsort label-5788
SELECT ALL 95 + - + CAST ( + col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
10
4
44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + col2 + + + col1 col0 FROM tab2 WHERE + 15 IS NULL
----

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

query II rowsort
SELECT col2 + 80, + col0 + + + col1 AS col0 FROM tab0 cor0
----
127
96
179
98
90
108

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 19 - + col1 col2 FROM tab0 AS cor0
----
-2
-62
18

query I rowsort
SELECT - 84 + + - col1 FROM tab2 AS cor0
----
-135
-151
-161

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT + 28 + - col2 * col2 * - + col1 <> NULL AND NOT NULL NOT IN ( col1, - col1 * + col1, col1 )
----

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

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

query II rowsort
SELECT 8 + + col0, - 73 AS col0 FROM tab2 AS cor0
----
54
-73
72
-73
83
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5797
SELECT DISTINCT col2 + - + CAST( + - col1 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
100
128
31

skipif mysql # not compatible
query I rowsort label-5797
SELECT DISTINCT col2 + - + CAST ( + - col1 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
100
128
31

onlyif mysql # aggregate syntax: 
query I rowsort label-5798
SELECT COUNT( * ) * + 18 * + 6 AS col0 FROM tab2 WHERE NULL IS NULL
----
324

skipif mysql # not compatible
query I rowsort label-5798
SELECT COUNT ( * ) * + 18 * + 6 AS col0 FROM tab2 WHERE NULL IS NULL
----
324

onlyif mysql # aggregate syntax: 
query II rowsort label-5799
SELECT DISTINCT COUNT( * ) AS col2, + 45 FROM tab0
----
3
45

skipif mysql # not compatible
query II rowsort label-5799
SELECT DISTINCT COUNT ( * ) AS col2, + 45 FROM tab0
----
3
45

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 6 col2, 48 AS col2 FROM tab1
----
-6
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5802
SELECT ALL + CAST( - MAX( ALL col0 ) AS SIGNED ), 59 + - - 3 - - - 44 AS col2 FROM tab1 AS cor0 WHERE + 67 < col1
----
NULL
18

skipif mysql # not compatible
query II rowsort label-5802
SELECT ALL + CAST ( - MAX ( ALL col0 ) AS INTEGER ), 59 + - - 3 - - - 44 AS col2 FROM tab1 AS cor0 WHERE + 67 < col1
----
NULL
18

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col1, 26 + - col1 AS col0 FROM tab0 AS cor0
----
1
25
21
5
81
-55

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NULL BETWEEN ( NULL ) AND ( - col0 )
----

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 + + col2 BETWEEN NULL AND + + col0
----
51
14
96
91
47
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5808
SELECT ALL - COUNT( DISTINCT col1 ) + + + ( COUNT( * ) ) col1 FROM tab0 cor0
----
0

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

query I rowsort
SELECT + col2 FROM tab1 WHERE NOT NULL IN ( + + col2 )
----

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5813
SELECT ALL + 74, - ( + COUNT( * ) ) col2 FROM tab0
----
74
-3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5814
SELECT + COUNT( * ) * 28 * ( + 72 ) AS col1 FROM tab2
----
6048

skipif mysql # not compatible
query I rowsort label-5814
SELECT + COUNT ( * ) * 28 * ( + 72 ) AS col1 FROM tab2
----
6048

onlyif mysql # aggregate syntax: 
query I rowsort label-5815
SELECT COUNT( * ) * - 0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5815
SELECT COUNT ( * ) * - 0 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5816
SELECT ALL - COUNT( * ) + + SUM( col1 ) * ( - - COUNT( ALL - 23 ) ) FROM tab0
----
306

skipif mysql # not compatible
query I rowsort label-5816
SELECT ALL - COUNT ( * ) + + SUM ( col1 ) * ( - - COUNT ( ALL - 23 ) ) FROM tab0
----
306

onlyif mysql # aggregate syntax: 
query I rowsort label-5817
SELECT - COUNT( * ) * - - 47 FROM tab2
----
-141

skipif mysql # not compatible
query I rowsort label-5817
SELECT - COUNT ( * ) * - - 47 FROM tab2
----
-141

query I rowsort
SELECT DISTINCT col2 + - - col0 + - col2 AS col2 FROM tab2
----
46
64
75

query I rowsort
SELECT col2 * 45 AS col0 FROM tab0
----
2115
4455
450

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

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

query I rowsort
SELECT ALL 7 + + - col2 FROM tab1 AS cor0
----
-52
-61
-89

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

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

query I rowsort
SELECT ALL - - col0 FROM tab0 AS cor0 WHERE ( - - col1 ) - - 40 IS NOT NULL
----
15
87
97

query I rowsort
SELECT DISTINCT col0 - - col2 * col0 FROM tab1
----
4947
5100
6279

onlyif mysql # aggregate syntax: 
query I rowsort label-5825
SELECT - COUNT( * ) AS col1 FROM tab2 WHERE - 7 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5825
SELECT - COUNT ( * ) AS col1 FROM tab2 WHERE - 7 IS NULL
----
0

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

query I rowsort
SELECT DISTINCT - col0 - + 25 AS col1 FROM tab2 AS cor0
----
-100
-71
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - - col1 ) col0 FROM tab0 cor0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5829
SELECT - COUNT( * ) - - MIN( ALL - col1 ) AS col0 FROM tab2 AS cor0
----
-80

skipif mysql # not compatible
query I rowsort label-5829
SELECT - COUNT ( * ) - - MIN ( ALL - col1 ) AS col0 FROM tab2 AS cor0
----
-80

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

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

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

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

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

query I rowsort
SELECT + col1 * 95 * + ( + + 99 ) FROM tab1
----
131670
442035
47025

onlyif mysql # aggregate syntax: 
query I rowsort label-5834
SELECT 77 * + MIN( + col2 ) AS col2 FROM tab0
----
770

skipif mysql # not compatible
query I rowsort label-5834
SELECT 77 * + MIN ( + col2 ) AS col2 FROM tab0
----
770

onlyif mysql # aggregate syntax: 
query I rowsort label-5835
SELECT - MAX( DISTINCT 85 ) FROM tab2
----
-85

skipif mysql # not compatible
query I rowsort label-5835
SELECT - MAX ( DISTINCT 85 ) FROM tab2
----
-85

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5836
SELECT * FROM tab1 WHERE NOT + col2 * + - CAST( NULL AS SIGNED ) >= + col0
----

skipif mysql # not compatible
query III rowsort label-5836
SELECT * FROM tab1 WHERE NOT + col2 * + - CAST ( NULL AS INTEGER ) >= + col0
----

query II rowsort
SELECT + ( col2 ) AS col0, col1 FROM tab0
----
10
21
47
81
99
1

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

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

query I rowsort
SELECT DISTINCT - - col0 AS col1 FROM tab2 AS cor0 WHERE 85 NOT IN ( + - col0 * col1, 87, - 27 + ( - col0 ) - - col1 )
----
46
64
75

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5841
SELECT - CAST( - - CAST( - + 11 AS SIGNED ) AS SIGNED ), + ( + 32 ) - + - col2 DIV + col2 AS col0 FROM tab2
----
11
33
11
33
11
33

skipif mysql # not compatible
query II rowsort label-5841
SELECT - CAST ( - - CAST ( - + 11 AS INTEGER ) AS INTEGER ), + ( + 32 ) - + - col2 / + col2 AS col0 FROM tab2
----
11
33
11
33
11
33

query I rowsort
SELECT col2 * - 75 AS col0 FROM tab1
----
-4425
-5100
-7200

query I rowsort
SELECT - 43 * - + col1 FROM tab1 AS cor0
----
2021
215
602

query I rowsort
SELECT 59 * col0 AS col0 FROM tab1 AS cor0
----
3009
5015
5369

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

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

query I rowsort
SELECT ALL - + 13 * - col1 AS col2 FROM tab0 AS cor0
----
1053
13
273

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

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

query I rowsort
SELECT DISTINCT 28 * - + 60 + - ( + - col0 ) FROM tab2 AS cor0
----
-1605
-1616
-1634

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5850
SELECT + 98 AS col2, COUNT( * ) FROM tab1 AS cor0
----
98
3

skipif mysql # not compatible
query II rowsort label-5850
SELECT + 98 AS col2, COUNT ( * ) FROM tab1 AS cor0
----
98
3

query I rowsort
SELECT ALL + col0 + - 89 + col0 AS col1 FROM tab1 AS cor0
----
13
81
93

query I rowsort
SELECT col0 + + 80 FROM tab2 AS cor0
----
126
144
155

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5854
SELECT + + SUM( - - col2 ) + - + COUNT( * ) FROM tab2 AS cor0
----
118

skipif mysql # not compatible
query I rowsort label-5854
SELECT + + SUM ( - - col2 ) + - + COUNT ( * ) FROM tab2 AS cor0
----
118

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

query I rowsort
SELECT col1 * - - col1 + 2 FROM tab1 AS cor0
----
198
2211
27

query I rowsort
SELECT DISTINCT + 97 * + 34 * - 57 + - + col1 + - col1 + - col0 - - ( + + col0 ) * col1 FROM tab0
----
-186288
-186948
-187988

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

query I rowsort
SELECT + col0 * + 97 * col0 * + + 34 + + - col2 AS col1 FROM tab2
----
13508568
18551192
6978545

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

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

skipif mysql # not compatible
query I rowsort label-5861
SELECT ALL + COUNT ( * ) FROM tab2 WHERE NOT ( 46 * - col0 + + 76 IS NULL )
----
3

query I rowsort
SELECT DISTINCT col0 + - col1 / 58 FROM tab1 AS cor0 WHERE NOT col2 * col2 < NULL
----

query I rowsort
SELECT ALL + - col2 * + 62 AS col0 FROM tab1 AS cor0
----
-3658
-4216
-5952

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

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

query I rowsort
SELECT - col2 * - 99 * - - col0 FROM tab1 AS cor0
----
484704
496485
612612

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5868
SELECT ALL 75 + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
84

skipif mysql # not compatible
query I rowsort label-5868
SELECT ALL 75 + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-5869
SELECT ALL 14 + - MAX( + + col2 ) AS col1 FROM tab2
----
-44

skipif mysql # not compatible
query I rowsort label-5869
SELECT ALL 14 + - MAX ( + + col2 ) AS col1 FROM tab2
----
-44

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 15 + - + col0 < col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5871
SELECT DISTINCT - COUNT( * ) - + MAX( + + 42 ) AS col1 FROM tab2 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-5871
SELECT DISTINCT - COUNT ( * ) - + MAX ( + + 42 ) AS col1 FROM tab2 AS cor0
----
-45

query I rowsort
SELECT - ( - ( 27 ) ) FROM tab2 AS cor0
----
27
27
27

query I rowsort
SELECT - col2 * - ( col2 ) AS col1 FROM tab1 AS cor0
----
3481
4624
9216

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

query II rowsort
SELECT DISTINCT - ( + col0 ) AS col0, - 75 * - + ( - + col2 ) FROM tab2
----
-46
-1725
-64
-3000
-75
-4350

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5878
SELECT DISTINCT 70 AS col2 FROM tab0 AS cor0 WHERE NOT ( + col1 + + col1 + + CAST( + 71 AS SIGNED ) - col0 + - 81 * + - col0 / + + col2 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5878
SELECT DISTINCT 70 AS col2 FROM tab0 AS cor0 WHERE NOT ( + col1 + + col1 + + CAST ( + 71 AS INTEGER ) - col0 + - 81 * + - col0 / + + col2 ) IS NOT NULL
----

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

query I rowsort
SELECT + col1 + 55 * col1 AS col2 FROM tab0
----
1176
4536
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 13 col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e95f5f4bd0f480397cced5f5e8a23792

query I rowsort
SELECT DISTINCT 5 + - col2 AS col0 FROM tab0 WHERE NOT 10 IS NULL
----
-42
-5
-94

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5883
SELECT SUM ( ALL - - CAST ( NULL AS INTEGER ) ) + ( COUNT ( * ) ) col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5884
SELECT ALL - 9 * col1 DIV - col2 AS col1 FROM tab2 AS cor0
----
10
17
19

skipif mysql # not compatible
query I rowsort label-5884
SELECT ALL - 9 * col1 / - col2 AS col1 FROM tab2 AS cor0
----
10
17
19

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL >= 68 / - 10
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5888
SELECT + MAX( DISTINCT - col0 ) col0 FROM tab0
----
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5888
SELECT + MAX ( DISTINCT - col0 ) col0 FROM tab0
----
-15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + col2 ) * + + col1 * + col2 + + + 90 * - col1 + - 49 + + + col1 * - col0 * col2 col2 FROM tab2
----
-31618
-72141
-80899

query I rowsort
SELECT ALL col1 + - col2 * + - col0 AS col1 FROM tab0 WHERE ( NULL ) IS NULL AND NULL NOT BETWEEN NULL AND NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5892
SELECT ALL - 81 * - SUM( - 37 ) FROM tab0 AS cor0
----
-8991

skipif mysql # not compatible
query I rowsort label-5892
SELECT ALL - 81 * - SUM ( - 37 ) FROM tab0 AS cor0
----
-8991

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

query I rowsort
SELECT 75 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
75
75
75

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

query I rowsort
SELECT ALL 96 * - ( + col2 ) * col2 FROM tab0
----
-212064
-940896
-9600

onlyif mysql # aggregate syntax: 
query I rowsort label-5897
SELECT DISTINCT 44 * + + COUNT( * ) FROM tab0
----
132

skipif mysql # not compatible
query I rowsort label-5897
SELECT DISTINCT 44 * + + COUNT ( * ) FROM tab0
----
132

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5899
SELECT DISTINCT - 22 * - - COUNT( * ) AS col1 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-5899
SELECT DISTINCT - 22 * - - COUNT ( * ) AS col1 FROM tab1
----
-66

query I rowsort
SELECT + 63 * - 87 AS col2 FROM tab1
----
-5481
-5481
-5481

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5902
SELECT ALL COUNT( col0 ) DIV 64 + - COUNT( * ) * - + 69 AS col1 FROM tab2 WHERE ( NULL IS NULL )
----
207

skipif mysql # not compatible
query I rowsort label-5902
SELECT ALL COUNT ( col0 ) / 64 + - COUNT ( * ) * - + 69 AS col1 FROM tab2 WHERE ( NULL IS NULL )
----
207

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5903
SELECT DISTINCT 2 DIV - 62 * + + COUNT( * ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5903
SELECT DISTINCT 2 / - 62 * + + COUNT ( * ) FROM tab0
----
0

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5904
SELECT DISTINCT + col2 / + 91 col0 FROM tab1 AS cor0
----
0
1

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

query I rowsort
SELECT DISTINCT 83 + col0 FROM tab2 cor0
----
129
147
158

query I rowsort
SELECT - + col1 * - col1 + 97 + - - 20 AS col0 FROM tab2 AS cor0
----
2718
4606
6046

onlyif mysql # aggregate syntax: 
query I rowsort label-5908
SELECT + + 68 + + + COUNT( - 76 ) AS col0 FROM tab1 cor0
----
71

skipif mysql # not compatible
query I rowsort label-5908
SELECT + + 68 + + + COUNT ( - 76 ) AS col0 FROM tab1 cor0
----
71

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 + - - 54 / + col1 + ( - + 77 ) < - - 17 * - col1
----
97
1
99

query I rowsort
SELECT ALL + 88 + - - col2 AS col1 FROM tab1 AS cor0
----
147
156
184

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + col0 + + col0 col1 FROM tab0 AS cor0
----
-17
164
95

query I rowsort
SELECT - col2 * + + ( + 67 ) + - - col0 FROM tab1 AS cor0
----
-3868
-4465
-6381

query I rowsort
SELECT DISTINCT col2 + + - 19 FROM tab0 AS cor0
----
-9
28
80

onlyif mysql # aggregate syntax: 
query I rowsort label-5914
SELECT DISTINCT COUNT( * ) + + - 47 AS col2 FROM tab2 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-5914
SELECT DISTINCT COUNT ( * ) + + - 47 AS col2 FROM tab2 AS cor0
----
-44

query II rowsort
SELECT + 95, col1 AS col1 FROM tab1 AS cor0 WHERE NULL >= ( + col0 )
----

query I rowsort
SELECT ALL - 48 * ( + 82 ) + + col2 + - col2 FROM tab2
----
-3936
-3936
-3936

onlyif mysql # aggregate syntax: 
query I rowsort label-5917
SELECT - COUNT( * ) + + + 23 * - - 80 FROM tab1
----
1837

skipif mysql # not compatible
query I rowsort label-5917
SELECT - COUNT ( * ) + + + 23 * - - 80 FROM tab1
----
1837

query I rowsort
SELECT - 59 * - col0 FROM tab2 WHERE + 26 + - 23 BETWEEN NULL AND - col1
----

query I rowsort
SELECT ALL - col2 + - - col1 - + col1 FROM tab1
----
-59
-68
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 87 - + col0 * - col1 col2 FROM tab2
----
2433
5015
5112

query I rowsort
SELECT DISTINCT - 53 * + col2 + + col2 AS col2 FROM tab2
----
-1196
-2080
-3016

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + 11 - 66 col0, col1 * - col2 AS col0 FROM tab1 AS cor0
----
-55
-1344
-55
-295
-55
-3196

query I rowsort
SELECT + col2 - - col1 + + col1 FROM tab2 AS cor0
----
125
192
194

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

query III rowsort
SELECT * FROM tab1 WHERE NOT - 27 BETWEEN NULL AND - 12
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + - 27 * col1 >= + col1 * - col2
----

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5929
SELECT ALL + COUNT( * ) AS col2, - MIN( ALL - col0 ) col2 FROM tab2 AS cor0
----
3
75

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

onlyif mysql # DIV for integer division: 
query II rowsort label-5930
SELECT + + col1 col1, col1 + + - 54 DIV 11 AS col1 FROM tab2 cor0
----
51
47
67
63
77
73

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5930
SELECT + + col1 col1, col1 + + - 54 / 11 AS col1 FROM tab2 cor0
----
51
47
67
63
77
73

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5932
SELECT DISTINCT - MAX( DISTINCT - + col0 ) FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5932
SELECT DISTINCT - MAX ( DISTINCT - + col0 ) FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5934
SELECT ALL + 35 * + + MIN( - + 93 ) + + 85 FROM tab1 AS cor0
----
-3170

skipif mysql # not compatible
query I rowsort label-5934
SELECT ALL + 35 * + + MIN ( - + 93 ) + + 85 FROM tab1 AS cor0
----
-3170

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

query II rowsort
SELECT 90 * col0, + col0 + - + col2 + 64 AS col1 FROM tab1
----
4590
19
7650
90
8190
87

query III rowsort
SELECT * FROM tab0 WHERE NOT - ( + - 90 ) IS NOT NULL
----

query I rowsort
SELECT ALL - col2 * - ( - col1 ) AS col0 FROM tab2
----
-1173
-3080
-3886

onlyif mysql # DIV for integer division: 
query I rowsort label-5939
SELECT col2 * + col0 DIV - - col0 AS col0 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-5939
SELECT col2 * + col0 / - - col0 AS col0 FROM tab2
----
23
40
58

query II rowsort
SELECT + col2, + col2 + - ( 80 ) * - + col0 FROM tab2 WHERE NOT + + col1 IS NOT NULL
----

query I rowsort
SELECT ( - 50 ) AS col2 FROM tab2 AS cor0
----
-50
-50
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-5942
SELECT DISTINCT col1 DIV - 88 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5942
SELECT DISTINCT col1 / - 88 AS col1 FROM tab2
----
0

query I rowsort
SELECT ALL col2 * + col0 + + - col2 * col1 + col2 AS col1 FROM tab2
----
-480
-92
522

onlyif mysql # aggregate syntax: 
query I rowsort label-5944
SELECT + 65 + + - COUNT( * ) col1 FROM tab0
----
62

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

query I rowsort
SELECT + col1 + + 64 + + - col2 * + - 81 FROM tab0
----
3952
8084
895

query I rowsort
SELECT - col0 + + 99 FROM tab1
----
14
48
8

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5948
SELECT DISTINCT COUNT( * ) + COUNT( * ) * COUNT( * ) AS col0 FROM tab0
----
12

skipif mysql # not compatible
query I rowsort label-5948
SELECT DISTINCT COUNT ( * ) + COUNT ( * ) * COUNT ( * ) AS col0 FROM tab0
----
12

query I rowsort
SELECT ALL - col1 + - - col1 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) <> + + 2 - - - col2 * - - ( 15 )
----

query I rowsort
SELECT + - col1 * - + 99 FROM tab0 AS cor0
----
2079
8019
99

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5952
SELECT DISTINCT 7 * - MAX( + + 66 ) + + 51 - 40 AS col2 FROM tab0
----
-451

skipif mysql # not compatible
query I rowsort label-5952
SELECT DISTINCT 7 * - MAX ( + + 66 ) + + 51 - 40 AS col2 FROM tab0
----
-451

onlyif mysql # DIV for integer division: 
query I rowsort label-5953
SELECT 22 - - + 2 DIV + 82 FROM tab1
----
22
22
22

skipif mysql # not compatible
query I rowsort label-5953
SELECT 22 - - + 2 / + 82 FROM tab1
----
22
22
22

query I rowsort
SELECT DISTINCT - ( ( - + col1 ) ) + + ( + - col1 ) + + - ( col2 ) + + + col0 - - col0 FROM tab2
----
69
88
92

query I rowsort
SELECT DISTINCT - col1 - 43 + + col2 * + - col2 FROM tab1
----
-3529
-4714
-9273

query I rowsort
SELECT - col2 * - 16 - + col2 * + - col1 AS col1 FROM tab2
----
1541
3720
4814

query I rowsort
SELECT ALL + 65 * - + col2 + + + col2 - - col2 FROM tab2
----
-1449
-2520
-3654

query III rowsort
SELECT ALL * FROM tab0 WHERE - - col2 = - 42 / col1
----

query I rowsort
SELECT ALL 18 - - 83 * 34 FROM tab0
----
2840
2840
2840

onlyif mysql # aggregate syntax: 
query I rowsort label-5960
SELECT + COUNT( * ) * + + 18 + - 21 AS col2 FROM tab2
----
33

skipif mysql # not compatible
query I rowsort label-5960
SELECT + COUNT ( * ) * + + 18 + - 21 AS col2 FROM tab2
----
33

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

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

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

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

query I rowsort
SELECT DISTINCT + ( - + col0 ) * - 76 AS col0 FROM tab1
----
3876
6460
6916

query I rowsort
SELECT 7 + + 86 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5966
SELECT COUNT ( * ) / - + 90 col0 FROM tab2
----
0

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

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

query I rowsort
SELECT DISTINCT + col2 * ( + - 44 ) + - - col1 * - 86 + - col1 AS col0 FROM tab1 AS cor0
----
-3031
-5442
-7081

query I rowsort
SELECT ALL 67 * - + 95 * - col1 FROM tab0 AS cor0
----
133665
515565
6365

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5975
SELECT CAST( + - col2 AS SIGNED ) * - CAST( - 26 AS SIGNED ) AS col0, - col1 FROM tab0
----
-1222
-81
-2574
-1
-260
-21

skipif mysql # not compatible
query II rowsort label-5975
SELECT CAST ( + - col2 AS INTEGER ) * - CAST ( - 26 AS INTEGER ) AS col0, - col1 FROM tab0
----
-1222
-81
-2574
-1
-260
-21

query I rowsort
SELECT ALL 37 * + + col2 AS col1 FROM tab2
----
1480
2146
851

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5977
SELECT DISTINCT - col1 + + col2 + + 24 * - 9, col2 * - 51 * + - CAST( - 0 AS SIGNED ) AS col2 FROM tab2
----
-225
0
-244
0
-253
0

skipif mysql # not compatible
query II rowsort label-5977
SELECT DISTINCT - col1 + + col2 + + 24 * - 9, col2 * - 51 * + - CAST ( - 0 AS INTEGER ) AS col2 FROM tab2
----
-225
0
-244
0
-253
0

query I rowsort
SELECT - col2 * col2 * - col2 + - + col0 FROM tab1
----
205294
314341
884685

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

skipif mysql # not compatible
query I rowsort label-5979
SELECT ALL - SUM ( - - col2 ) AS col0 FROM tab1
----
-223

query II rowsort
SELECT DISTINCT 50, - 98 * + col0 AS col1 FROM tab0
----
50
-1470
50
-8526
50
-9506

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5981
SELECT CAST( NULL AS SIGNED ) + - - 48 + + MAX( - col1 ) FROM tab1
----
NULL

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

query II rowsort
SELECT ALL col0 AS col2, - 42 AS col2 FROM tab0
----
15
-42
87
-42
97
-42

query I rowsort
SELECT ALL 36 * + + col1 AS col2 FROM tab2
----
1836
2412
2772

onlyif mysql # aggregate syntax: 
query II rowsort label-5984
SELECT DISTINCT COUNT( * ) AS col1, 81 * + COUNT( * ) FROM tab1 AS cor0
----
3
243

skipif mysql # not compatible
query II rowsort label-5984
SELECT DISTINCT COUNT ( * ) AS col1, 81 * + COUNT ( * ) FROM tab1 AS cor0
----
3
243

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

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 >= + + col0
----
15
81
47
97
1
99

onlyif mysql # aggregate syntax: 
query II rowsort label-5988
SELECT - - 99 AS col1, + 92 - + ( 67 ) + 2 + + COUNT( * ) * - 56 FROM tab2 WHERE - col1 * - col0 + + 33 + + 34 IS NOT NULL
----
99
-141

skipif mysql # not compatible
query II rowsort label-5988
SELECT - - 99 AS col1, + 92 - + ( 67 ) + 2 + + COUNT ( * ) * - 56 FROM tab2 WHERE - col1 * - col0 + + 33 + + 34 IS NOT NULL
----
99
-141

onlyif mysql # DIV for integer division: 
query I rowsort label-5989
SELECT ALL + 1 DIV - - 53 * + 85 - + - ( - - col2 ) * col1 - ( col0 ) FROM tab0
----
123
2
3792

skipif mysql # not compatible
query I rowsort label-5989
SELECT ALL + 1 / - - 53 * + 85 - + - ( - - col2 ) * col1 - ( col0 ) FROM tab0
----
123
2
3792

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

query II rowsort
SELECT ALL - + col1 * col2 AS col2, + 7 * + col1 FROM tab1 AS cor0
----
-1344
98
-295
35
-3196
329

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

query I rowsort
SELECT ALL - - 59 * 42 AS col2 FROM tab2 AS cor0
----
2478
2478
2478

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5994
SELECT COUNT( ALL 76 ) + 68 * + COUNT( - + 62 ) col0, CAST( NULL AS SIGNED ) / - COUNT( * ) * 80 + + - COUNT( DISTINCT - col1 ) AS col0 FROM tab1 cor0
----
207
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5994
SELECT COUNT ( ALL 76 ) + 68 * + COUNT ( - + 62 ) col0, CAST ( NULL AS INTEGER ) / - COUNT ( * ) * 80 + + - COUNT ( DISTINCT - col1 ) AS col0 FROM tab1 cor0
----
207
NULL

query I rowsort
SELECT + col2 + + ( + 69 ) AS col1 FROM tab0 AS cor0
----
116
168
79

query II rowsort
SELECT col0 + + + 12 AS col1, col0 AS col2 FROM tab2 AS cor0
----
58
46
76
64
87
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5997
SELECT DISTINCT - ( COUNT( * ) ) AS col2 FROM tab2 AS cor0 WHERE NOT col2 + + col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5997
SELECT DISTINCT - ( COUNT ( * ) ) AS col2 FROM tab2 AS cor0 WHERE NOT col2 + + col1 IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5998
SELECT DISTINCT 14 DIV - + ( - - 43 ) AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5998
SELECT DISTINCT 14 / - + ( - - 43 ) AS col2 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5999
SELECT DISTINCT + COUNT( - + col0 ) * 5 + + - 75 AS col0 FROM tab0
----
-60

skipif mysql # not compatible
query I rowsort label-5999
SELECT DISTINCT + COUNT ( - + col0 ) * 5 + + - 75 AS col0 FROM tab0
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-6000
SELECT ALL 82 - - COUNT( * ) FROM tab2
----
85

skipif mysql # not compatible
query I rowsort label-6000
SELECT ALL 82 - - COUNT ( * ) FROM tab2
----
85

query I rowsort
SELECT - 28 * - col1 AS col0 FROM tab0
----
2268
28
588

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

query I rowsort
SELECT DISTINCT col1 FROM tab1 cor0 WHERE + 2 IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6005
SELECT SUM( 61 ) FROM tab0 cor0
----
183

skipif mysql # not compatible
query I rowsort label-6005
SELECT SUM ( 61 ) FROM tab0 cor0
----
183

query I rowsort
SELECT + ( + + 87 ) AS col2 FROM tab2 cor0
----
87
87
87

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6008
SELECT MIN( - col1 ) AS col0 FROM tab2 AS cor0 WHERE NOT - col2 IS NOT NULL AND NOT ( col2 ) NOT BETWEEN NULL AND + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6008
SELECT MIN ( - col1 ) AS col0 FROM tab2 AS cor0 WHERE NOT - col2 IS NOT NULL AND NOT ( col2 ) NOT BETWEEN NULL AND + col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6009
SELECT + COUNT( ALL + CAST( NULL AS DECIMAL ) ) col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6009
SELECT + COUNT ( ALL + CAST ( NULL AS REAL ) ) col2 FROM tab0 AS cor0
----
0

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

query I rowsort
SELECT ALL - + col2 * + - col0 + col2 AS col0 FROM tab2 AS cor0 WHERE + 46 > - col2
----
1081
2600
4408

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6013
SELECT ALL COUNT( * ) FROM tab0 AS cor0 WHERE NOT CAST( - ( - - CAST( NULL AS SIGNED ) ) AS SIGNED ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-6013
SELECT ALL COUNT ( * ) FROM tab0 AS cor0 WHERE NOT CAST ( - ( - - CAST ( NULL AS INTEGER ) ) AS INTEGER ) IS NOT NULL
----
3

query I rowsort
SELECT - 22 + - col0 AS col1 FROM tab0 cor0 WHERE NOT col1 * col0 IS NULL
----
-109
-119
-37

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT - + 18 * + col0 + - col2 - + - col0 <> + col1
----

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

query I rowsort
SELECT ALL - ( + col0 ) * + 43 AS col0 FROM tab1 AS cor0
----
-2193
-3655
-3913

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 45 * - + col1 col0 FROM tab2 AS cor0
----
2295
3015
3465

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 / + col1 * 71 * col2 <> - col0 / + col0
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6021
SELECT + - MAX( ALL + CAST( NULL AS DECIMAL ) ) + - 64 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6021
SELECT + - MAX ( ALL + CAST ( NULL AS REAL ) ) + - 64 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + + 88 + + + col1 FROM tab2 cor0
----
139
155
165

query I rowsort
SELECT + - col0 AS col2 FROM tab0 WHERE - col2 < + col1
----
-15
-87
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6024
SELECT DISTINCT + 27 + + 27 - - + col0 AS col2 FROM tab0 WHERE NULL BETWEEN - 56 + col0 / - CAST( NULL AS SIGNED ) AND - + col1 * ( + - 99 ) * - col0 + + col1 * col2 / col1
----

skipif mysql # not compatible
query I rowsort label-6024
SELECT DISTINCT + 27 + + 27 - - + col0 AS col2 FROM tab0 WHERE NULL BETWEEN - 56 + col0 / - CAST ( NULL AS INTEGER ) AND - + col1 * ( + - 99 ) * - col0 + + col1 * col2 / col1
----

query I rowsort
SELECT DISTINCT - col1 - - + ( 95 ) + + - ( - + col2 ) AS col1 FROM tab2
----
58
67
86

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6026
SELECT + COUNT ( * ) col0 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9

query I rowsort
SELECT DISTINCT - + col0 AS col2 FROM tab0 WHERE NOT NULL >= + col0
----

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL IN ( col1, - 23 * + col2, + col0 * col0 + - col0, + col0, + col2 / 53 + - 1 )
----

query I rowsort
SELECT ALL - 42 * + 43 FROM tab2 AS cor0
----
-1806
-1806
-1806

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6031
SELECT + SUM( + - 65 ) DIV 9 * - - MIN( DISTINCT + + col1 ) - - SUM( 19 ) AS col1 FROM tab1 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-6031
SELECT + SUM ( + - 65 ) / 9 * - - MIN ( DISTINCT + + col1 ) - - SUM ( 19 ) AS col1 FROM tab1 AS cor0
----
-48

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6033
SELECT - MIN( DISTINCT - col0 ) - 56 FROM tab2
----
19

skipif mysql # not compatible
query I rowsort label-6033
SELECT - MIN ( DISTINCT - col0 ) - 56 FROM tab2
----
19

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6035
SELECT + COUNT( * ) FROM tab2 WHERE NOT CAST( NULL AS DECIMAL ) <> + ( 42 )
----
0

skipif mysql # not compatible
query I rowsort label-6035
SELECT + COUNT ( * ) FROM tab2 WHERE NOT CAST ( NULL AS REAL ) <> + ( 42 )
----
0

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

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

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

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

query I rowsort
SELECT col1 * + - 4 FROM tab1
----
-188
-20
-56

query I rowsort
SELECT ( 22 ) AS col0 FROM tab2
----
22
22
22

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

query I rowsort
SELECT DISTINCT 53 * col0 FROM tab0
----
4611
5141
795

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6042
SELECT DISTINCT 10 * + + CAST( + col2 AS SIGNED ) * + + col2 + + + col2 FROM tab0
----
1010
22137
98109

skipif mysql # not compatible
query I rowsort label-6042
SELECT DISTINCT 10 * + + CAST ( + col2 AS INTEGER ) * + + col2 + + + col2 FROM tab0
----
1010
22137
98109

query I rowsort
SELECT ALL 37 * 18 FROM tab2
----
666
666
666

onlyif mysql # aggregate syntax: 
query I rowsort label-6044
SELECT DISTINCT SUM( DISTINCT + 70 ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6044
SELECT DISTINCT SUM ( DISTINCT + 70 ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6045
SELECT DISTINCT MIN( ALL 99 ) FROM tab1 AS cor0 WHERE NOT ( col2 + - col2 - + col2 ) IS NULL
----
99

skipif mysql # not compatible
query I rowsort label-6045
SELECT DISTINCT MIN ( ALL 99 ) FROM tab1 AS cor0 WHERE NOT ( col2 + - col2 - + col2 ) IS NULL
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6046
SELECT DISTINCT - MAX( ALL + 29 ) FROM tab1 AS cor0
----
-29

skipif mysql # not compatible
query I rowsort label-6046
SELECT DISTINCT - MAX ( ALL + 29 ) FROM tab1 AS cor0
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-6047
SELECT COUNT( * ) * 31 AS col0 FROM tab0
----
93

skipif mysql # not compatible
query I rowsort label-6047
SELECT COUNT ( * ) * 31 AS col0 FROM tab0
----
93

query II rowsort
SELECT col0 AS col0, col2 FROM tab2 WHERE NOT ( ( NULL ) IS NULL )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-6049
SELECT + col0 DIV + col2 + - ( col0 ) * 16 * + + col0, + col1 FROM tab2 AS cor0
----
-33854
51
-65535
77
-89999
67

skipif mysql # not compatible
query II rowsort label-6049
SELECT + col0 / + col2 + - ( col0 ) * 16 * + + col0, + col1 FROM tab2 AS cor0
----
-33854
51
-65535
77
-89999
67

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

skipif mysql # not compatible
query I rowsort label-6050
SELECT ALL MIN ( ALL + CAST ( NULL AS INTEGER ) ) * + + 55 FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT ALL + 45, + col1 + - - col0 AS col0 FROM tab2 AS cor0
----
45
141
45
142
45
97

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

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

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

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

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

query I rowsort
SELECT - ( - 48 ) AS col2 FROM tab2 cor0
----
48
48
48

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6056
SELECT + - col2 AS col2, col1 + - - CAST( + + col1 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-23
102
-40
154
-58
134

skipif mysql # not compatible
query II rowsort label-6056
SELECT + - col2 AS col2, col1 + - - CAST ( + + col1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-23
102
-40
154
-58
134

query II rowsort
SELECT - 9 + + + 4, + ( + 82 ) AS col0 FROM tab1
----
-5
82
-5
82
-5
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 83 + + 95 col0 FROM tab2
----
178
178
178

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6060
SELECT COUNT( * ) + - MAX( - - col2 ) AS col1 FROM tab0
----
-96

skipif mysql # not compatible
query I rowsort label-6060
SELECT COUNT ( * ) + - MAX ( - - col2 ) AS col1 FROM tab0
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6061
SELECT DISTINCT - - CAST( + 75 AS SIGNED ) FROM tab0 WHERE NOT + col1 + - + ( 3 ) IS NULL
----
75

skipif mysql # not compatible
query I rowsort label-6061
SELECT DISTINCT - - CAST ( + 75 AS INTEGER ) FROM tab0 WHERE NOT + col1 + - + ( 3 ) IS NULL
----
75

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

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

query I rowsort
SELECT DISTINCT + - 69 + col0 AS col1 FROM tab0 AS cor0
----
-54
18
28

query I rowsort
SELECT DISTINCT col0 / - col1 * col1 AS col2 FROM tab1 WHERE col2 < NULL
----

query III rowsort
SELECT * FROM tab1 WHERE 80 = - 39 / col2 * - - col2
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6069
SELECT CAST( NULL AS SIGNED ) * + 63 + - + 40 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6069
SELECT CAST ( NULL AS INTEGER ) * + 63 + - + 40 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

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

query I rowsort
SELECT ALL 95 - - col1 + - col2 * - 11 AS col2 FROM tab0 AS cor0
----
1185
226
693

onlyif mysql # aggregate syntax: 
query I rowsort label-6072
SELECT + + 55 * - + COUNT( * ) + 78 FROM tab1 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-6072
SELECT + + 55 * - + COUNT ( * ) + 78 FROM tab1 AS cor0
----
-87

query I rowsort
SELECT - ( - - 97 ) AS col0 FROM tab0 AS cor0
----
-97
-97
-97

query II rowsort
SELECT ALL - + col2 * + 22 + 15 - col0 + + 13 AS col1, col1 AS col0 FROM tab1 AS cor0
----
-1355
5
-1559
47
-2135
14

query II rowsort
SELECT ALL + col1, - 40 + 96 AS col0 FROM tab1
----
14
56
47
56
5
56

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6076
SELECT col2 AS col2, + CAST( + col0 AS SIGNED ) + 8 AS col2, + col1 AS col2 FROM tab0
----
9 values hashing to fe3b5c02a824e9abf82dbeaf51c3cf9b

skipif mysql # not compatible
query III rowsort label-6076
SELECT col2 AS col2, + CAST ( + col0 AS INTEGER ) + 8 AS col2, + col1 AS col2 FROM tab0
----
9 values hashing to fe3b5c02a824e9abf82dbeaf51c3cf9b

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6078
SELECT + CAST( NULL AS SIGNED ), 42 * + 65 * MAX( ALL CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6078
SELECT + CAST ( NULL AS INTEGER ), 42 * + 65 * MAX ( ALL CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6079
SELECT ALL - CAST( - COUNT( * ) AS SIGNED ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6079
SELECT ALL - CAST ( - COUNT ( * ) AS INTEGER ) AS col2 FROM tab2
----
3

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

query I rowsort
SELECT ALL - - col2 * col0 * 95 AS col1 FROM tab1 AS cor0
----
465120
476425
587860

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 47 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + col1 - - 11 FROM tab0
----
12
32
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6085
SELECT - CAST( AVG ( + ( col1 ) ) AS SIGNED ) * COUNT( * ) FROM tab0
----
-102

skipif mysql # not compatible
query I rowsort label-6085
SELECT - CAST ( AVG ( + ( col1 ) ) AS INTEGER ) * COUNT ( * ) FROM tab0
----
-102

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 0 + - col1 * + col2 < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6087
SELECT DISTINCT SUM( col2 ) - 98 AS col1 FROM tab1
----
125

skipif mysql # not compatible
query I rowsort label-6087
SELECT DISTINCT SUM ( col2 ) - 98 AS col1 FROM tab1
----
125

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6089
SELECT CAST( - ( 64 ) AS SIGNED ) * - col0 col2 FROM tab2
----
2944
4096
4800

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6089
SELECT CAST ( - ( 64 ) AS INTEGER ) * - col0 col2 FROM tab2
----
2944
4096
4800

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

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

query I rowsort
SELECT DISTINCT - 39 FROM tab1 WHERE NULL <> ( + col1 )
----

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

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

query I rowsort
SELECT DISTINCT 5 + ( - 45 ) AS col1 FROM tab2 WHERE NOT col1 IS NOT NULL
----

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

query I rowsort
SELECT DISTINCT 43 AS col0 FROM tab1 WHERE NOT NULL = col1
----

query I rowsort
SELECT col0 AS col0 FROM tab1 WHERE col2 + - 7 NOT IN ( col1 / + 78 )
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6098
SELECT ALL 79 + COUNT( * ) AS col2 FROM tab0
----
82

skipif mysql # not compatible
query I rowsort label-6098
SELECT ALL 79 + COUNT ( * ) AS col2 FROM tab0
----
82

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

query I rowsort
SELECT DISTINCT col1 + + col1 * + col2 FROM tab1
----
1358
300
3243

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 53 ) + 41 * col2 col2 FROM tab1
----
2472
2841
3989

query I rowsort
SELECT DISTINCT 69 * - 84 AS col1 FROM tab0
----
-5796

onlyif mysql # aggregate syntax: 
query I rowsort label-6103
SELECT DISTINCT - MIN( DISTINCT + col2 ) * MAX( ALL - ( - col2 ) ) AS col2 FROM tab2
----
-1334

skipif mysql # not compatible
query I rowsort label-6103
SELECT DISTINCT - MIN ( DISTINCT + col2 ) * MAX ( ALL - ( - col2 ) ) AS col2 FROM tab2
----
-1334

query I rowsort
SELECT - ( col2 ) * + 31 FROM tab2 WHERE NOT 51 * + 98 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col0 FROM tab1 WHERE NOT - col2 NOT IN ( col0 * + 19 )
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6107
SELECT DISTINCT - 71 DIV ( + 36 ) FROM tab0 WHERE NOT - ( 5 ) >= ( 93 * 58 )
----
-1

skipif mysql # not compatible
query I rowsort label-6107
SELECT DISTINCT - 71 / ( + 36 ) FROM tab0 WHERE NOT - ( 5 ) >= ( 93 * 58 )
----
-1

query I rowsort
SELECT - col2 * 51 + + col2 AS col0 FROM tab1
----
-2950
-3400
-4800

onlyif mysql # aggregate syntax: 
query I rowsort label-6109
SELECT + MAX( DISTINCT 42 ) * + COUNT( * ) FROM tab2
----
126

skipif mysql # not compatible
query I rowsort label-6109
SELECT + MAX ( DISTINCT 42 ) * + COUNT ( * ) FROM tab2
----
126

query I rowsort
SELECT + col0 * - 60 AS col0 FROM tab0
----
-5220
-5820
-900

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6111
SELECT CAST( + col0 AS SIGNED ) + col2 * - col1 FROM tab1 AS cor0
----
-1293
-210
-3105

skipif mysql # not compatible
query I rowsort label-6111
SELECT CAST ( + col0 AS INTEGER ) + col2 * - col1 FROM tab1 AS cor0
----
-1293
-210
-3105

query I rowsort
SELECT - col1 * 41 + + ( - col0 ) AS col0 FROM tab0 AS cor0
----
-138
-3336
-948

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

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

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

query I rowsort
SELECT DISTINCT 26 FROM tab2 WHERE ( col2 ) IS NOT NULL
----
26

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

query I rowsort
SELECT + 92 * - col0 FROM tab2
----
-4232
-5888
-6900

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

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

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

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

query I rowsort
SELECT 73 AS col0 FROM tab2 AS cor0 WHERE NOT col1 = NULL
----

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

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

query I rowsort
SELECT 11 * col1 AS col2 FROM tab2 AS cor0
----
561
737
847

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6124
SELECT CAST( - MAX( + col0 ) AS SIGNED ) DIV + COUNT( * ) FROM tab1
----
-30

skipif mysql # not compatible
query I rowsort label-6124
SELECT CAST ( - MAX ( + col0 ) AS INTEGER ) / + COUNT ( * ) FROM tab1
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6125
SELECT 12 * + AVG ( 76 ) * CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6125
SELECT 12 * + AVG ( 76 ) * CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT IN ( - 0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6127
SELECT ALL SUM( CAST( NULL AS SIGNED ) ) * + 12 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6127
SELECT ALL SUM ( CAST ( NULL AS INTEGER ) ) * + 12 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6128
SELECT COUNT( * ) * + ( 78 ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
234

skipif mysql # not compatible
query I rowsort label-6128
SELECT COUNT ( * ) * + ( 78 ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
234

query I rowsort
SELECT col2 * - 17 AS col1 FROM tab0
----
-1683
-170
-799

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 50 NOT IN ( 92 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

skipif mysql # not compatible
query I rowsort label-6131
SELECT 60 * COUNT ( * ) AS col1 FROM tab1
----
180

onlyif mysql # aggregate syntax: 
query I rowsort label-6132
SELECT ALL 99 * COUNT( * ) * COUNT( * ) FROM tab2
----
891

skipif mysql # not compatible
query I rowsort label-6132
SELECT ALL 99 * COUNT ( * ) * COUNT ( * ) FROM tab2
----
891

onlyif mysql # aggregate syntax: 
query I rowsort label-6133
SELECT ALL - - MAX( DISTINCT - 70 ) FROM tab1 AS cor0
----
-70

skipif mysql # not compatible
query I rowsort label-6133
SELECT ALL - - MAX ( DISTINCT - 70 ) FROM tab1 AS cor0
----
-70

query I rowsort
SELECT DISTINCT 13 * - + col1 FROM tab1 AS cor0
----
-182
-611
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-6135
SELECT ALL + MIN( DISTINCT + col2 ) + 10 AS col0 FROM tab0 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-6135
SELECT ALL + MIN ( DISTINCT + col2 ) + 10 AS col0 FROM tab0 AS cor0
----
20

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6138
SELECT COUNT( * ) * 95 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NOT NULL
----
855

skipif mysql # not compatible
query I rowsort label-6138
SELECT COUNT ( * ) * 95 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NOT NULL
----
855

query I rowsort
SELECT ( 51 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6140
SELECT ALL * FROM tab2 WHERE NOT - CAST( - 19 AS DECIMAL ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6140
SELECT ALL * FROM tab2 WHERE NOT - CAST ( - 19 AS REAL ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-6141
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE CAST( NULL AS SIGNED ) IS NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

skipif mysql # not compatible
query IIIIII rowsort label-6141
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE CAST ( NULL AS INTEGER ) IS NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

onlyif mysql # aggregate syntax: 
query I rowsort label-6142
SELECT - - COUNT( * ) * + 8 AS col2 FROM tab2 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-6142
SELECT - - COUNT ( * ) * + 8 AS col2 FROM tab2 AS cor0
----
24

query I rowsort
SELECT ALL - 63 * - col2 * col0 AS col0 FROM tab0 AS cor0
----
44415
54810
604989

query I rowsort
SELECT + 54 + - + col1 * col0 + 44 AS col2 FROM tab2 AS cor0
----
-2248
-4830
-4927

query II rowsort
SELECT DISTINCT 53 AS col1, col2 FROM tab1 cor0
----
53
59
53
68
53
96

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

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

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

query I rowsort
SELECT DISTINCT - - 7 + col2 AS col1 FROM tab2 AS cor0
----
30
47
65

query I rowsort
SELECT - 8 * + col2 + - 11 FROM tab2 AS cor0
----
-195
-331
-475

query I rowsort
SELECT - 37 AS col0 FROM tab2 AS cor0 WHERE col0 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6151
SELECT COUNT( * ) + - - 53 AS col0 FROM tab1 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-6151
SELECT COUNT ( * ) + - - 53 AS col0 FROM tab1 AS cor0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-6152
SELECT COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN + col1 AND col1
----
0

skipif mysql # not compatible
query I rowsort label-6152
SELECT COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN + col1 AND col1
----
0

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

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

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

query I rowsort
SELECT DISTINCT - col1 + - + col1 + col1 - col0 * + col0 AS col0 FROM tab0
----
-306
-7590
-9410

onlyif mysql # aggregate syntax: 
query I rowsort label-6156
SELECT ALL - MIN( 56 ) FROM tab1
----
-56

skipif mysql # not compatible
query I rowsort label-6156
SELECT ALL - MIN ( 56 ) FROM tab1
----
-56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 94 col1 FROM tab1 WHERE NOT NULL < + col1 + + + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6158
SELECT - - 69 * col1 DIV - col0 FROM tab0 AS cor0
----
-16
-372
0

skipif mysql # not compatible
query I rowsort label-6158
SELECT - - 69 * col1 / - col0 FROM tab0 AS cor0
----
-16
-372
0

query I rowsort
SELECT DISTINCT - 29 * + 51 FROM tab1 AS cor0
----
-1479

query I rowsort
SELECT ALL + col2 * - col2 + + col0 AS col2 FROM tab1 AS cor0
----
-3396
-4533
-9165

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

query I rowsort
SELECT + - col0 - + - 29 AS col1 FROM tab1 AS cor0
----
-22
-56
-62

query I rowsort
SELECT ( col2 ) FROM tab1 AS cor0 WHERE ( col1 ) = col0
----

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

skipif mysql # not compatible
query I rowsort label-6164
SELECT + + CAST ( NULL AS INTEGER ) + col2 AS col1 FROM tab0 WHERE + - col2 * + - col0 IS NULL
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6167
SELECT MAX( - 71 ) * - - 53 col0 FROM tab1 AS cor0
----
-3763

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6167
SELECT MAX ( - 71 ) * - - 53 col0 FROM tab1 AS cor0
----
-3763

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6168
SELECT DISTINCT - col0 AS col2 FROM tab1 AS cor0 WHERE NOT + col0 * - - col1 * + - col2 * + - CAST( NULL AS SIGNED ) * + 98 IS NOT NULL
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-6168
SELECT DISTINCT - col0 AS col2 FROM tab1 AS cor0 WHERE NOT + col0 * - - col1 * + - col2 * + - CAST ( NULL AS INTEGER ) * + 98 IS NOT NULL
----
-51
-85
-91

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 NOT BETWEEN + - col2 + - 64 AND 90
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query I rowsort
SELECT - + ( - 15 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( 1, 90 )
----

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

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - ( + col0 ) * - col0 + + 24 + col0 * 23 <= ( - 49 * - 0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 * col1 * 57 + + col1 FROM tab1 WHERE NOT ( - 44 <= NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + col2 * + col1 * + - col2 ) = 95 + - 65
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - + col0 AS col1 FROM tab1 WHERE NOT ( NULL ) >= ( NULL )
----

query I rowsort
SELECT + col2 FROM tab1 WHERE NOT - col1 * - 58 >= + col2 * + 30
----
59
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6179
SELECT 29 * - CAST( NULL AS SIGNED ) / - 75 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6179
SELECT 29 * - CAST ( NULL AS INTEGER ) / - 75 FROM tab1
----
NULL
NULL
NULL

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

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

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

query I rowsort
SELECT + + col2 * col1 + col0 AS col0 FROM tab0 AS cor0
----
196
297
3822

query I rowsort
SELECT DISTINCT 28 / col2 + + col1 AS col0 FROM tab0 cor0 WHERE NULL NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT + ( - + col2 ) + + - col0 FROM tab2
----
-104
-133
-69

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 66 * + - col1 IN ( + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

skipif mysql # not compatible
query I rowsort label-6186
SELECT + MIN ( ALL + 45 ) AS col1 FROM tab0
----
45

query I rowsort
SELECT DISTINCT 46 * - col1 AS col0 FROM tab0 AS cor0
----
-3726
-46
-966

onlyif mysql # DIV for integer division: 
query II rowsort label-6188
SELECT - col2 DIV + + col1 col1, - col1 AS col1 FROM tab1 AS cor0
----
-1
-47
-11
-5
-6
-14

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6188
SELECT - col2 / + + col1 col1, - col1 AS col1 FROM tab1 AS cor0
----
-1
-47
-11
-5
-6
-14

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6189
SELECT * FROM tab2 AS cor0 WHERE - 15 * + + 61 NOT IN ( + 58 * + CAST( 12 AS SIGNED ) * col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6189
SELECT * FROM tab2 AS cor0 WHERE - 15 * + + 61 NOT IN ( + 58 * + CAST ( 12 AS INTEGER ) * col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6190
SELECT - MAX( col2 ) * - 30 AS col2 FROM tab2 cor0
----
1740

skipif mysql # not compatible
query I rowsort label-6190
SELECT - MAX ( col2 ) * - 30 AS col2 FROM tab2 cor0
----
1740

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6191
SELECT * FROM tab2 AS cor0 WHERE ( NULL = CAST( - col0 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-6191
SELECT * FROM tab2 AS cor0 WHERE ( NULL = CAST ( - col0 AS INTEGER ) )
----

query I rowsort
SELECT ALL + 97 + + col1 FROM tab2
----
148
164
174

query I rowsort
SELECT DISTINCT col2 + - col2 * 77 * 51 AS col1 FROM tab1
----
-231634
-266968
-376896

onlyif mysql # aggregate syntax: 
query I rowsort label-6194
SELECT ALL + COUNT( * ) + 68 AS col2 FROM tab1
----
71

skipif mysql # not compatible
query I rowsort label-6194
SELECT ALL + COUNT ( * ) + 68 AS col2 FROM tab1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-6195
SELECT ALL COUNT( * ) FROM tab0 WHERE - col2 * + 64 + + col1 + - 57 BETWEEN - + ( - - col0 ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-6195
SELECT ALL COUNT ( * ) FROM tab0 WHERE - col2 * + 64 + + col1 + - 57 BETWEEN - + ( - - col0 ) AND NULL
----
0

query I rowsort
SELECT - 14 - + 89 FROM tab2
----
-103
-103
-103

query I rowsort
SELECT col0 + + 27 AS col0 FROM tab1
----
112
118
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6198
SELECT 40 DIV + COUNT( + col0 ) + ( - - COUNT( * ) ) AS col2 FROM tab2
----
16

skipif mysql # not compatible
query I rowsort label-6198
SELECT 40 / + COUNT ( + col0 ) + ( - - COUNT ( * ) ) AS col2 FROM tab2
----
16

query II rowsort
SELECT ALL - 35 + - - ( - col1 ), col2 FROM tab2
----
-102
58
-112
40
-86
23

query III rowsort
SELECT * FROM tab1 WHERE ( col1 ) < 2
----

query I rowsort
SELECT - + 86 + - 27 AS col1 FROM tab0 AS cor0
----
-113
-113
-113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6202
SELECT ( + - CAST( - SUM( ALL + - col2 ) AS SIGNED ) ) FROM tab2 AS cor0 WHERE NULL <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6202
SELECT ( + - CAST ( - SUM ( ALL + - col2 ) AS INTEGER ) ) FROM tab2 AS cor0 WHERE NULL <> NULL
----
NULL

query I rowsort
SELECT + + col1 * + + col0 + col0 AS col1 FROM tab1 cor0
----
4368
510
765

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN - - col1 AND NULL
----

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

query I rowsort
SELECT + ( 88 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT + 5 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6208
SELECT DISTINCT - + ( - col1 ) DIV - col2 - + - 5 FROM tab0 cor0
----
3
4
5

skipif mysql # not compatible
query I rowsort label-6208
SELECT DISTINCT - + ( - col1 ) / - col2 - + - 5 FROM tab0 cor0
----
3
4
5

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

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

query I rowsort
SELECT col0 * + col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
2601
7225
8281

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

skipif mysql # not compatible
query I rowsort label-6212
SELECT ALL + - ( COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) ) FROM tab1 AS cor0 WHERE NOT - 78 * + col2 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6213
SELECT + 53 DIV COUNT( * ) FROM tab2
----
17

skipif mysql # not compatible
query I rowsort label-6213
SELECT + 53 / COUNT ( * ) FROM tab2
----
17

query I rowsort
SELECT DISTINCT + 65 / + col1 AS col1 FROM tab1 WHERE NULL <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6215
SELECT ALL MIN( 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-6215
SELECT ALL MIN ( CAST ( NULL AS INTEGER ) ) col0 FROM tab1
----
NULL

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

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

query I rowsort
SELECT - ( + 39 ) AS col1 FROM tab2
----
-39
-39
-39

query II rowsort
SELECT + col0 AS col1, - col0 * + col0 FROM tab0
----
15
-225
87
-7569
97
-9409

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 * + - col2 * col1 col0, + col2 FROM tab2 WHERE - col0 > + 67
----

query I rowsort
SELECT DISTINCT - 97 + + col2 AS col1 FROM tab1
----
-1
-29
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6223
SELECT DISTINCT + ( - 36 ) * - - CAST( 73 AS SIGNED ) + col2 * - 41 FROM tab0 WHERE NOT - 94 + 10 NOT BETWEEN - ( + col1 ) AND 90 * 22
----

skipif mysql # not compatible
query I rowsort label-6223
SELECT DISTINCT + ( - 36 ) * - - CAST ( 73 AS INTEGER ) + col2 * - 41 FROM tab0 WHERE NOT - 94 + 10 NOT BETWEEN - ( + col1 ) AND 90 * 22
----

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

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

query I rowsort
SELECT - 93 * - - col2 + - col0 FROM tab2 AS cor0
----
-2185
-3784
-5469

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6227
SELECT DISTINCT - - col1 * + CAST( + - 71 AS SIGNED ) FROM tab0 AS cor0
----
-1491
-5751
-71

skipif mysql # not compatible
query I rowsort label-6227
SELECT DISTINCT - - col1 * + CAST ( + - 71 AS INTEGER ) FROM tab0 AS cor0
----
-1491
-5751
-71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * 78 + + col1 col1 FROM tab0 AS cor0
----
-1617
-6237
-77

query I rowsort
SELECT ALL - col1 * + - col0 * - + col0 + + + 33 + + col0 FROM tab1 AS cor0
----
-36007
-36330
-389083

query I rowsort
SELECT + - col2 * col2 + - 5 FROM tab0 AS cor0
----
-105
-2214
-9806

query II rowsort
SELECT DISTINCT + 62 AS col1, col0 * + col0 + col0 FROM tab1 AS cor0
----
62
2652
62
7310
62
8372

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col2 NOT BETWEEN + - col1 AND col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6235
SELECT CAST( - 18 AS SIGNED ), 85 AS col0 FROM tab2
----
-18
85
-18
85
-18
85

skipif mysql # not compatible
query II rowsort label-6235
SELECT CAST ( - 18 AS INTEGER ), 85 AS col0 FROM tab2
----
-18
85
-18
85
-18
85

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 + col2 AS col1, col2 + + col1 col0 FROM tab0
----
198
100
20
31
94
128

query I rowsort
SELECT - col1 - + col2 * col0 * + - col0 AS col0 FROM tab0 AS cor0
----
10494
75669
931490

onlyif mysql # aggregate syntax: 
query I rowsort label-6239
SELECT - COUNT( * ) - - 94 col2 FROM tab1 cor0
----
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6239
SELECT - COUNT ( * ) - - 94 col2 FROM tab1 cor0
----
91

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6243
SELECT ALL + 61 DIV col1 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6243
SELECT ALL + 61 / col1 FROM tab2 AS cor0
----
0
0
1

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + + 65 col1 FROM tab2
----
105
123
88

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

skipif mysql # not compatible
query I rowsort label-6246
SELECT ALL ( + COUNT ( DISTINCT col2 ) ) * + + COUNT ( * ) FROM tab1
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-6247
SELECT - col0 DIV - - 49 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-6247
SELECT - col0 / - - 49 FROM tab2
----
-1
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6248
SELECT DISTINCT + col2 AS col0, + col1 AS col1 FROM tab0 WHERE NOT + CAST( NULL AS SIGNED ) NOT BETWEEN - CAST( NULL AS SIGNED ) / - col0 + 33 AND - 7 * + col1
----

skipif mysql # not compatible
query II rowsort label-6248
SELECT DISTINCT + col2 AS col0, + col1 AS col1 FROM tab0 WHERE NOT + CAST ( NULL AS INTEGER ) NOT BETWEEN - CAST ( NULL AS INTEGER ) / - col0 + 33 AND - 7 * + col1
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6250
SELECT ALL 16 DIV col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6250
SELECT ALL 16 / col0 FROM tab2
----
0
0
0

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 14 * + + col0 col2, col2 + - 19 * - ( - - col1 ) FROM tab2
----
1050
1331
644
992
896
1503

onlyif mysql # aggregate syntax: 
query I rowsort label-6253
SELECT + 35 * - + MIN( 7 ) FROM tab1
----
-245

skipif mysql # not compatible
query I rowsort label-6253
SELECT + 35 * - + MIN ( 7 ) FROM tab1
----
-245

query III rowsort
SELECT * FROM tab0 WHERE NULL > - col0 OR + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query I rowsort
SELECT - 74 * - 97 AS col0 FROM tab0
----
7178
7178
7178

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6258
SELECT ALL ( - CAST( NULL AS DECIMAL ) ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6258
SELECT ALL ( - CAST ( NULL AS REAL ) ) AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6259
SELECT ALL - + MAX( DISTINCT + col0 ) FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
-91

skipif mysql # not compatible
query I rowsort label-6259
SELECT ALL - + MAX ( DISTINCT + col0 ) FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-6260
SELECT + COUNT( * ) FROM tab0 cor0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-6260
SELECT + COUNT ( * ) FROM tab0 cor0 WHERE NULL IS NULL
----
3

query I rowsort
SELECT - - col0 - + col2 * + 82 * - 72 FROM tab1 AS cor0
----
348421
401563
566835

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - - col2 col2 FROM tab2
----
116
46
80

onlyif mysql # DIV for integer division: 
query I rowsort label-6263
SELECT ALL 53 + - col0 + col1 + - col1 DIV col2 FROM tab0
----
-15
-43
118

skipif mysql # not compatible
query I rowsort label-6263
SELECT ALL 53 + - col0 + col1 + - col1 / col2 FROM tab0
----
-15
-43
118

query I rowsort
SELECT DISTINCT - 52 + 77 * + ( + - 65 ) FROM tab0
----
-5057

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6265
SELECT * FROM tab1 WHERE - + CAST( NULL AS SIGNED ) <= col0 - ( - + 53 )
----

skipif mysql # not compatible
query III rowsort label-6265
SELECT * FROM tab1 WHERE - + CAST ( NULL AS INTEGER ) <= col0 - ( - + 53 )
----

query I rowsort
SELECT 95 + - col2 FROM tab2
----
37
55
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 25 * + - col2 col2 FROM tab1
----
-1475
-1700
-2400

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 86 col2, - col0 * - col0 FROM tab0
----
86
225
86
7569
86
9409

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6270
SELECT DISTINCT + col1 * ( + + col1 ) - + 89 DIV - - 46 AS col1 FROM tab2 AS cor0
----
2600
4488
5928

skipif mysql # not compatible
query I rowsort label-6270
SELECT DISTINCT + col1 * ( + + col1 ) - + 89 / - - 46 AS col1 FROM tab2 AS cor0
----
2600
4488
5928

query I rowsort
SELECT - col0 * - 39 AS col1 FROM tab0
----
3393
3783
585

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

query I rowsort
SELECT - + ( ( + + col2 ) ) AS col1 FROM tab1 AS cor0
----
-59
-68
-96

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

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

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

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

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

query I rowsort
SELECT 75 * + col0 + - 77 AS col0 FROM tab1
----
3748
6298
6748

onlyif mysql # aggregate syntax: 
query I rowsort label-6279
SELECT - - COUNT( * ) + - 8 * - + COUNT( * ) col2 FROM tab0 cor0
----
27

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

query I rowsort
SELECT 24 + + col0 * + ( - col0 ) AS col0 FROM tab0 AS cor0
----
-201
-7545
-9385

onlyif mysql # aggregate syntax: 
query I rowsort label-6281
SELECT ALL SUM( col2 ) AS col1 FROM tab2 AS cor0 WHERE NOT 75 IS NULL
----
121

skipif mysql # not compatible
query I rowsort label-6281
SELECT ALL SUM ( col2 ) AS col1 FROM tab2 AS cor0 WHERE NOT 75 IS NULL
----
121

query I rowsort
SELECT 5 + + 17 + - col1 FROM tab0 AS cor0
----
-59
1
21

query I rowsort
SELECT - col2 + - - col2 + - 64 FROM tab2 AS cor0
----
-64
-64
-64

query I rowsort
SELECT ALL + col0 * + ( + + col2 ) + - 9 FROM tab1 AS cor0 WHERE NOT NULL > col1
----

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

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

query I rowsort
SELECT - col0 * - + ( + - ( - - col2 ) ) AS col2 FROM tab0 AS cor0
----
-705
-870
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-6287
SELECT ALL - SUM( ALL - 11 ) FROM tab0 AS cor0 WHERE NOT + col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6287
SELECT ALL - SUM ( ALL - 11 ) FROM tab0 AS cor0 WHERE NOT + col2 IS NOT NULL
----
NULL

query I rowsort
SELECT - - 92 * col1 FROM tab0 AS cor0
----
1932
7452
92

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

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

query I rowsort
SELECT DISTINCT col0 * + 11 AS col1 FROM tab0
----
1067
165
957

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6292
SELECT MAX ( 51 ) col1 FROM tab2 AS cor0
----
51

query I rowsort
SELECT DISTINCT - 37 AS col0 FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-6294
SELECT - col2 DIV - 81 AS col1 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6294
SELECT - col2 / - 81 AS col1 FROM tab2 cor0
----
0
0
0

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

query I rowsort
SELECT ALL + col1 AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6297
SELECT + COUNT( * ) + 18 AS col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
27

skipif mysql # not compatible
query I rowsort label-6297
SELECT + COUNT ( * ) + 18 AS col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
27

query II rowsort
SELECT ALL col0, 19 FROM tab0
----
15
19
87
19
97
19

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6301
SELECT DISTINCT - 6 * - - MAX( - - col2 ) FROM tab1 AS cor0
----
-576

skipif mysql # not compatible
query I rowsort label-6301
SELECT DISTINCT - 6 * - - MAX ( - - col2 ) FROM tab1 AS cor0
----
-576

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6302
SELECT ALL - CAST( NULL AS SIGNED ) * - + 97 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6304
SELECT * FROM tab0 WHERE col0 * - CAST( + - 53 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-6304
SELECT * FROM tab0 WHERE col0 * - CAST ( + - 53 AS INTEGER ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 51 * - col0 * + + col0 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6306
SELECT DISTINCT + 63 + - - COUNT( * ) * 11 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-6306
SELECT DISTINCT + 63 + - - COUNT ( * ) * 11 FROM tab1
----
96

query II rowsort
SELECT DISTINCT + ( col1 ) AS col1, col2 FROM tab0
----
1
99
21
10
81
47

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

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

skipif mysql # not compatible
query I rowsort label-6309
SELECT ALL - SUM ( - col2 ) + SUM ( - + col0 ) FROM tab1
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-6310
SELECT DISTINCT + 32 DIV + col1 + - col1 + col0 AS col0 FROM tab0
----
-66
128
67

skipif mysql # not compatible
query I rowsort label-6310
SELECT DISTINCT + 32 / + col1 + - col1 + col0 AS col0 FROM tab0
----
-66
128
67

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6312
SELECT COUNT( * ) - + COUNT( * ) * + - 90 * - + 35 * + 75 + - CAST( NULL AS SIGNED ) * + 46 * + 45 - COUNT( * ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6312
SELECT COUNT ( * ) - + COUNT ( * ) * + - 90 * - + 35 * + 75 + - CAST ( NULL AS INTEGER ) * + 46 * + 45 - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
NULL

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

query I rowsort
SELECT 38 * col2 FROM tab1
----
2242
2584
3648

query I rowsort
SELECT col0 * + 82 AS col2 FROM tab2
----
3772
5248
6150

query I rowsort
SELECT + 33 * + col2 FROM tab1
----
1947
2244
3168

onlyif mysql # aggregate syntax: 
query I rowsort label-6317
SELECT DISTINCT COUNT( DISTINCT 25 ) col0 FROM tab2
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6317
SELECT DISTINCT COUNT ( DISTINCT 25 ) col0 FROM tab2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6318
SELECT DISTINCT - COUNT( * ) FROM tab0 WHERE NULL NOT IN ( - - col0 + - + col2, col2, col1 - col0 - + col2, col0, + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-6318
SELECT DISTINCT - COUNT ( * ) FROM tab0 WHERE NULL NOT IN ( - - col0 + - + col2, col2, col1 - col0 - + col2, col0, + col2 )
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT + + col2 < 91
----
97
1
99

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 - - col2 < NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col2 < ( NULL ) OR NOT 44 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6322
SELECT + SUM( ALL 78 ) AS col1 FROM tab0
----
234

skipif mysql # not compatible
query I rowsort label-6322
SELECT + SUM ( ALL 78 ) AS col1 FROM tab0
----
234

query I rowsort
SELECT ALL 86 * - + col2 FROM tab1
----
-5074
-5848
-8256

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6326
SELECT ALL * FROM tab1 AS cor0 WHERE 1 / CAST( + 89 AS SIGNED ) * - + col1 BETWEEN - col1 AND 5 - col1 - + - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-6326
SELECT ALL * FROM tab1 AS cor0 WHERE 1 / CAST ( + 89 AS INTEGER ) * - + col1 BETWEEN - col1 AND 5 - col1 - + - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6327
SELECT DISTINCT - CAST( col2 AS SIGNED ) AS col1 FROM tab2 cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-6327
SELECT DISTINCT - CAST ( col2 AS INTEGER ) AS col1 FROM tab2 cor0
----
-23
-40
-58

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

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

query I rowsort
SELECT - ( + + ( + + 98 ) ) + + 83 - col1 * col1 FROM tab0 AS cor0
----
-16
-456
-6576

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6330
SELECT - 27 DIV COUNT( * ) FROM tab2 cor0 WHERE NULL IS NULL
----
-9

skipif mysql # not compatible
query I rowsort label-6330
SELECT - 27 / COUNT ( * ) FROM tab2 cor0 WHERE NULL IS NULL
----
-9

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6331
SELECT - CAST( NULL AS DECIMAL ) * + - 28 + + 7, + col1 AS col2 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-6331
SELECT - CAST ( NULL AS REAL ) * + - 28 + + 7, + col1 AS col2 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

query I rowsort
SELECT ( + + col2 ) + col2 AS col2 FROM tab2
----
116
46
80

query I rowsort
SELECT DISTINCT + col0 + + + 82 AS col1 FROM tab2
----
128
146
157

query II rowsort
SELECT 16 + - 98 AS col0, 48 * - - 75 * - - col1 - - - col1 AS col2 FROM tab0
----
-82
291519
-82
3599
-82
75579

query I rowsort
SELECT ALL ( + 21 ) + + col2 AS col2 FROM tab1
----
117
80
89

query I rowsort
SELECT 85 + - - ( + - 30 ) * 63 * + ( + + 79 ) AS col1 FROM tab1
----
-149225
-149225
-149225

query I rowsort
SELECT ALL col0 + + 8 * - col1 AS col1 FROM tab1
----
-285
-61
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 col2, - 1 * + + ( 69 ) FROM tab0
----
1
-69
21
-69
81
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6339
SELECT DISTINCT + MAX( ALL + + 71 ) - + SUM( DISTINCT - + col0 ) * CAST( - 92 AS SIGNED ) FROM tab2 AS cor0
----
-16949

skipif mysql # not compatible
query I rowsort label-6339
SELECT DISTINCT + MAX ( ALL + + 71 ) - + SUM ( DISTINCT - + col0 ) * CAST ( - 92 AS INTEGER ) FROM tab2 AS cor0
----
-16949

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

skipif mysql # not compatible
query I rowsort label-6340
SELECT ( - COUNT ( * ) ) / 63 AS col1 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6341
SELECT - 55 - + + col2 - - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6341
SELECT - 55 - + + col2 - - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

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

skipif mysql # not compatible
query I rowsort label-6342
SELECT DISTINCT + COUNT ( + col2 ) - MIN ( + CAST ( NULL AS INTEGER ) ) + 27 AS col2 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT - col2 * + + 89 AS col1 FROM tab2 AS cor0
----
-2047
-3560
-5162

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 - - col2 BETWEEN col1 + col1 AND NULL
----
15
81
47
87
21
10

query I rowsort
SELECT ALL - 30 * + - col0 AS col1 FROM tab2 AS cor0
----
1380
1920
2250

onlyif mysql # DIV for integer division: 
query I rowsort label-6346
SELECT ALL - ( + 45 ) DIV - + 91 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6346
SELECT ALL - ( + 45 ) / - + 91 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col2 >= - + col0 + - 12
----
85
5
59
91
47
68

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL <> 65
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6349
SELECT ALL + col0 DIV - 37 + - - ( col1 ) * - col0 FROM tab0 AS cor0
----
-1215
-1829
-99

skipif mysql # not compatible
query I rowsort label-6349
SELECT ALL + col0 / - 37 + - - ( col1 ) * - col0 FROM tab0 AS cor0
----
-1215
-1829
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-6350
SELECT COUNT( - 99 ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-6350
SELECT COUNT ( - 99 ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN ( NULL ) AND 48
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL > + col1 / + 96
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6354
SELECT * FROM tab1 WHERE NOT - 71 BETWEEN + ( + col0 ) * col0 + 60 AND ( - + CAST( NULL AS SIGNED ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-6354
SELECT * FROM tab1 WHERE NOT - 71 BETWEEN + ( + col0 ) * col0 + 60 AND ( - + CAST ( NULL AS INTEGER ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + - 67 AS col2 FROM tab2 WHERE NULL NOT BETWEEN + col2 AND - col2
----

query I rowsort
SELECT DISTINCT 97 * + 83 AS col0 FROM tab2
----
8051

query III rowsort
SELECT ALL * FROM tab1 WHERE - col0 > 87
----

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6359
SELECT 55, - COUNT( * ) AS col2 FROM tab1
----
55
-3

skipif mysql # not compatible
query II rowsort label-6359
SELECT 55, - COUNT ( * ) AS col2 FROM tab1
----
55
-3

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6361
SELECT ALL + - 37 col1, + COUNT( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
-37
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6361
SELECT ALL + - 37 col1, + COUNT ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
-37
0

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

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

query I rowsort
SELECT DISTINCT + col1 FROM tab0 AS cor0 WHERE + col2 * ( - col2 ) / + 79 + - 23 <> NULL
----

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

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

query I rowsort
SELECT ALL col1 FROM tab1 AS cor0 WHERE NOT NULL <> NULL
----

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6368
SELECT DISTINCT + - AVG ( - col2 ) AS col0, + COUNT( * ) FROM tab2 AS cor0 WHERE NULL <= ( NULL )
----
NULL
0

skipif mysql # not compatible
query II rowsort label-6368
SELECT DISTINCT + - AVG ( - col2 ) AS col0, + COUNT ( * ) FROM tab2 AS cor0 WHERE NULL <= ( NULL )
----
NULL
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6370
SELECT DISTINCT 76 + + - COUNT( * ) FROM tab1 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-6370
SELECT DISTINCT 76 + + - COUNT ( * ) FROM tab1 AS cor0
----
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 - - ( ( + col2 ) ) + - col0 col2, - col1 FROM tab1
----
-21
-5
24
-47
59
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6372
SELECT DISTINCT 3 + + 37 DIV - ( + COUNT( * ) ) FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-6372
SELECT DISTINCT 3 + + 37 / - ( + COUNT ( * ) ) FROM tab2
----
-9

query I rowsort
SELECT + 82 - col1 * + + col1 - + 60 + - 76 FROM tab2
----
-2655
-4543
-5983

query I rowsort
SELECT DISTINCT 70 + - - 18 * + - col2 FROM tab2
----
-344
-650
-974

query I rowsort
SELECT + col2 + 28 + + - 36 AS col0 FROM tab1
----
51
60
88

onlyif mysql # aggregate syntax: 
query I rowsort label-6376
SELECT - + COUNT( * ) * + 74 + + 88 FROM tab1 AS cor0
----
-134

skipif mysql # not compatible
query I rowsort label-6376
SELECT - + COUNT ( * ) * + 74 + + 88 FROM tab1 AS cor0
----
-134

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

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

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

query I rowsort
SELECT ALL col0 * - - ( - + 45 ) FROM tab1 AS cor0
----
-2295
-3825
-4095

query I rowsort
SELECT DISTINCT - col2 * 35 AS col1 FROM tab0 AS cor0
----
-1645
-3465
-350

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6382
SELECT 53 * + + SUM( DISTINCT + + col2 ) AS col1 FROM tab0 AS cor0
----
8268

skipif mysql # not compatible
query I rowsort label-6382
SELECT 53 * + + SUM ( DISTINCT + + col2 ) AS col1 FROM tab0 AS cor0
----
8268

query I rowsort
SELECT + + col1 * 79 + + col0 FROM tab1 AS cor0
----
1157
3804
480

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

query I rowsort
SELECT ALL + 85 * col0 FROM tab0 AS cor0
----
1275
7395
8245

query I rowsort
SELECT col1 * ( + + ( + + ( - - col1 ) ) ) FROM tab0 cor0
----
1
441
6561

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6388
SELECT - COUNT( * ) * + - SUM( DISTINCT + col0 ) + COUNT( * ) FROM tab1 AS cor0
----
684

skipif mysql # not compatible
query I rowsort label-6388
SELECT - COUNT ( * ) * + - SUM ( DISTINCT + col0 ) + COUNT ( * ) FROM tab1 AS cor0
----
684

query III rowsort
SELECT * FROM tab0 WHERE NOT 36 = - - 75
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col0 NOT IN ( col2 - - 99 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6391
SELECT + CAST( col2 AS SIGNED ) * + - col0 AS col1 FROM tab2
----
-1058
-2560
-4350

skipif mysql # not compatible
query I rowsort label-6391
SELECT + CAST ( col2 AS INTEGER ) * + - col0 AS col1 FROM tab2
----
-1058
-2560
-4350

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

skipif mysql # not compatible
query I rowsort label-6392
SELECT MIN ( + ( 82 ) ) AS col0 FROM tab1
----
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col0 FROM tab1 WHERE NOT - 92 IS NULL
----
14
47
5

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

skipif mysql # not compatible
query I rowsort label-6394
SELECT MAX ( DISTINCT 12 ) AS col2 FROM tab1
----
12

query I rowsort
SELECT DISTINCT - col0 FROM tab2 WHERE - col1 IS NOT NULL
----
-46
-64
-75

query I rowsort
SELECT - 16 + col2 FROM tab2 WHERE NOT + - col0 + - 11 IN ( + col2, - col2, 58, col2, - col1 )
----
24
42
7

onlyif mysql # aggregate syntax: 
query I rowsort label-6397
SELECT - COUNT( DISTINCT - col1 ) * 66 * + - 95 FROM tab1 AS cor0
----
18810

skipif mysql # not compatible
query I rowsort label-6397
SELECT - COUNT ( DISTINCT - col1 ) * 66 * + - 95 FROM tab1 AS cor0
----
18810

query I rowsort
SELECT ALL col1 + 62 + - col2 FROM tab2 AS cor0
----
71
90
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6399
SELECT ALL - COUNT( * ), + COUNT( * ) DIV + 18 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9
0

skipif mysql # not compatible
query II rowsort label-6399
SELECT ALL - COUNT ( * ), + COUNT ( * ) / + 18 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9
0

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-6400
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT + CAST( NULL AS SIGNED ) IS NOT NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

skipif mysql # not compatible
query IIIIII rowsort label-6400
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT + CAST ( NULL AS INTEGER ) IS NOT NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

query I rowsort
SELECT - - ( 28 ) * 34 + + 52 AS col1 FROM tab0 AS cor0
----
1004
1004
1004

onlyif mysql # aggregate syntax: 
query II rowsort label-6402
SELECT ALL - 32, + COUNT( + 69 ) AS col1 FROM tab2 AS cor0
----
-32
3

skipif mysql # not compatible
query II rowsort label-6402
SELECT ALL - 32, + COUNT ( + 69 ) AS col1 FROM tab2 AS cor0
----
-32
3

query I rowsort
SELECT + 60 + + col2 FROM tab0 cor0
----
107
159
70

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

query I rowsort
SELECT ALL - - 49 + col1 FROM tab1 AS cor0
----
54
63
96

query II rowsort
SELECT col1 + - - col0 AS col2, + col1 FROM tab1
----
138
47
65
14
90
5

query I rowsort
SELECT ALL col2 - - - 88 AS col0 FROM tab0
----
-41
-78
11

query I rowsort
SELECT DISTINCT col1 + + + 66 * - - 41 * col1 FROM tab0
----
219267
2707
56847

query III rowsort
SELECT * FROM tab1 WHERE col1 <> col2 * - col0 * + - 78 * + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 79 - - col2 AS col0 FROM tab2
----
102
119
137

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

query I rowsort
SELECT ALL + 60 - + 80 * - 2 AS col0 FROM tab2
----
220
220
220

query I rowsort
SELECT DISTINCT - ( col2 ) - col0 AS col1 FROM tab1
----
-144
-147
-159

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

query I rowsort
SELECT ALL 0 - - col1 AS col1 FROM tab1 AS cor0
----
14
47
5

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL > 70 + - 34
----

query I rowsort
SELECT DISTINCT + + col1 - - 43 FROM tab0 AS cor0
----
124
44
64

query II rowsort
SELECT 1 - col1 * - col2 - col2 AS col0, - col2 AS col0 FROM tab1 AS cor0
----
1249
-96
237
-59
3129
-68

query I rowsort
SELECT ALL - col0 FROM tab2 AS cor0 WHERE col1 = + - 42
----

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

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

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

query II rowsort
SELECT ALL + 71 AS col0, col2 AS col1 FROM tab1
----
71
59
71
68
71
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6423
SELECT + SUM( ALL + + 89 ) FROM tab1
----
267

skipif mysql # not compatible
query I rowsort label-6423
SELECT + SUM ( ALL + + 89 ) FROM tab1
----
267

query I rowsort
SELECT - 71 * - - ( + + col0 ) * + + col1 AS col0 FROM tab0
----
-129717
-6887
-86265

query I rowsort
SELECT ALL + col0 * + + 43 FROM tab0 AS cor0
----
3741
4171
645

onlyif mysql # DIV for integer division: 
query I rowsort label-6426
SELECT + ( - 21 ) DIV - 50 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6426
SELECT + ( - 21 ) / - 50 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT 83 + col1 + + ( col2 ) + + - 22 + col2 FROM tab0 cor0
----
102
236
260

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

query II rowsort
SELECT + col2 * - 50 AS col2, col0 FROM tab1 cor0
----
-2950
85
-3400
91
-4800
51

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

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

query I rowsort
SELECT + - 99 - col0 AS col0 FROM tab2 cor0
----
-145
-163
-174

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

query I rowsort
SELECT DISTINCT + ( col0 ) + + + 55 - + - col0 - 6 * 62 * - 30 AS col0 FROM tab2
----
11307
11343
11365

query I rowsort
SELECT col1 + + 61 AS col1 FROM tab1 WHERE - + col0 IS NOT NULL
----
108
66
75

onlyif mysql # DIV for integer division: 
query I rowsort label-6435
SELECT ALL + + 56 - + 96 DIV - + col1 + - col1 FROM tab1 cor0
----
11
48
70

skipif mysql # not compatible
query I rowsort label-6435
SELECT ALL + + 56 - + 96 / - + col1 + - col1 FROM tab1 cor0
----
11
48
70

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

query II rowsort
SELECT DISTINCT - col0, 6 AS col1 FROM tab2 AS cor0
----
-46
6
-64
6
-75
6

query II rowsort
SELECT DISTINCT - + 84, - ( col2 ) AS col1 FROM tab0 AS cor0
----
-84
-10
-84
-47
-84
-99

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

skipif mysql # not compatible
query I rowsort label-6439
SELECT MAX ( DISTINCT + ( - - col1 ) ) * COUNT ( * ) * - 19 FROM tab1 AS cor0
----
-2679

onlyif mysql # aggregate syntax: 
query I rowsort label-6440
SELECT + MAX( DISTINCT col2 ) * - COUNT( * ) + MAX( + - col0 ) AS col1 FROM tab2 AS cor0
----
-220

skipif mysql # not compatible
query I rowsort label-6440
SELECT + MAX ( DISTINCT col2 ) * - COUNT ( * ) + MAX ( + - col0 ) AS col1 FROM tab2 AS cor0
----
-220

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

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

skipif mysql # not compatible
query I rowsort label-6442
SELECT DISTINCT + ( - COUNT ( * ) ) / + + 87 - - - ( + 77 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-77

query I rowsort
SELECT ALL + - col1 * - 33 - + + col2 + + col1 - - - col2 FROM tab2 cor0
----
1688
2162
2538

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

query I rowsort
SELECT - col0 * + 90 AS col1 FROM tab1 AS cor0
----
-4590
-7650
-8190

onlyif mysql # aggregate syntax: 
query II rowsort label-6446
SELECT DISTINCT MAX( + + col1 ) AS col0, SUM( + 90 ) FROM tab0 AS cor0
----
81
270

skipif mysql # not compatible
query II rowsort label-6446
SELECT DISTINCT MAX ( + + col1 ) AS col0, SUM ( + 90 ) FROM tab0 AS cor0
----
81
270

query I rowsort
SELECT DISTINCT - 76 * 43 + - col0 * - col0 AS col2 FROM tab2 AS cor0
----
-1152
2357
828

query I rowsort
SELECT 51 * + - 86 AS col1 FROM tab2
----
-4386
-4386
-4386

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - - 99 - + col1 col1 FROM tab0
----
197
65
88

query I rowsort
SELECT col0 * + col0 + - ( - col0 ) - + 41 - - col1 * - - col0 FROM tab1
----
12608
3325
7694

query II rowsort
SELECT + + col2 * + col0, 61 AS col2 FROM tab0 WHERE NOT - 55 + - col2 IS NULL
----
705
61
870
61
9603
61

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

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

query I rowsort
SELECT col1 * + ( + col2 ) + col1 AS col2 FROM tab0
----
100
231
3888

query II rowsort
SELECT ALL + 43 AS col0, - 83 AS col0 FROM tab2
----
43
-83
43
-83
43
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-6455
SELECT - COUNT( * ) + - - 83 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
80

skipif mysql # not compatible
query I rowsort label-6455
SELECT - COUNT ( * ) + - - 83 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
80

query I rowsort
SELECT DISTINCT - col2 * + 74 * - + 45 AS col1 FROM tab1 WHERE NOT - - col1 >= - 88
----

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6459
SELECT SUM( - col0 ) FROM tab2 AS cor0 WHERE + 31 BETWEEN - col2 AND - col1 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6459
SELECT SUM ( - col0 ) FROM tab2 AS cor0 WHERE + 31 BETWEEN - col2 AND - col1 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6460
SELECT DISTINCT COUNT( * ) * CAST( COUNT( * ) AS SIGNED ) FROM tab2 cor0
----
9

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + - - 55 col1 FROM tab1 AS cor0
----
-13
-4
-41

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6464
SELECT + MAX( ALL - 12 ) + + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-6464
SELECT + MAX ( ALL - 12 ) + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

query II rowsort
SELECT col0, - col0 * - - col1 * - ( + 37 ) AS col0 FROM tab2
----
46
86802
64
182336
75
185925

query II rowsort
SELECT DISTINCT col1 AS col1, + 14 FROM tab0
----
1
14
21
14
81
14

query I rowsort
SELECT DISTINCT + ( - 25 ) - 69 FROM tab0
----
-94

query I rowsort
SELECT - col1 + + col0 + + 69 FROM tab0 AS cor0
----
135
165
3

query I rowsort
SELECT - col2 + 96 - + 83 AS col1 FROM tab2 cor0
----
-10
-27
-45

query I rowsort
SELECT + ( + col2 ) + + + col0 AS col2 FROM tab2 AS cor0
----
104
133
69

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

skipif mysql # not compatible
query I rowsort label-6471
SELECT DISTINCT - 71 * - 36 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

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

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

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

query I rowsort
SELECT ALL 56 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa

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

query I rowsort
SELECT DISTINCT col2 * - - 56 AS col0 FROM tab1
----
3304
3808
5376

query III rowsort
SELECT ALL * FROM tab2 WHERE ( 6 ) < NULL
----

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

query I rowsort
SELECT - ( col2 ) * + 14 AS col0 FROM tab1 AS cor0
----
-1344
-826
-952

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

query I rowsort
SELECT 52 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6484
SELECT MIN( + 53 ) AS col2 FROM tab1
----
53

skipif mysql # not compatible
query I rowsort label-6484
SELECT MIN ( + 53 ) AS col2 FROM tab1
----
53

query II rowsort
SELECT DISTINCT col0 * 65 AS col1, + 67 FROM tab2
----
2990
67
4160
67
4875
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 92 + + - col2 col2 FROM tab0 AS cor0
----
-7
45
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6487
SELECT DISTINCT - + 73 DIV COUNT( * ) + + 11 AS col0 FROM tab0 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-6487
SELECT DISTINCT - + 73 / COUNT ( * ) + + 11 AS col0 FROM tab0 AS cor0
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-6488
SELECT + ( 34 ) + + COUNT( * ) * - + COUNT( * ) * - COUNT( * ) AS col2 FROM tab2
----
61

skipif mysql # not compatible
query I rowsort label-6488
SELECT + ( 34 ) + + COUNT ( * ) * - + COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab2
----
61

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6490
SELECT ALL CAST( + CAST( - col1 AS SIGNED ) AS SIGNED ) DIV + 11 * 28 DIV + - 28 - - ( + ( + col1 ) ) AS col1 FROM tab0 AS cor0
----
1
22
88

skipif mysql # not compatible
query I rowsort label-6490
SELECT ALL CAST ( + CAST ( - col1 AS INTEGER ) AS INTEGER ) / + 11 * 28 / + - 28 - - ( + ( + col1 ) ) AS col1 FROM tab0 AS cor0
----
1
22
88

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

skipif mysql # not compatible
query I rowsort label-6491
SELECT DISTINCT SUM ( + col2 ) - + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-6492
SELECT DISTINCT + MIN( - + col0 ) FROM tab2 cor0
----
-75

skipif mysql # not compatible
query I rowsort label-6492
SELECT DISTINCT + MIN ( - + col0 ) FROM tab2 cor0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-6493
SELECT DISTINCT + - COUNT( * ) * - + 59 AS col0 FROM tab1 AS cor0
----
177

skipif mysql # not compatible
query I rowsort label-6493
SELECT DISTINCT + - COUNT ( * ) * - + 59 AS col0 FROM tab1 AS cor0
----
177

query I rowsort
SELECT col1 + + 14 + col2 * + col0 FROM tab1 cor0
----
4924
5034
6249

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

query I rowsort
SELECT 36 * - + 59 AS col2 FROM tab1
----
-2124
-2124
-2124

onlyif mysql # aggregate syntax: 
query I rowsort label-6497
SELECT ALL - SUM( ALL + 99 ) FROM tab1
----
-297

skipif mysql # not compatible
query I rowsort label-6497
SELECT ALL - SUM ( ALL + 99 ) FROM tab1
----
-297

query I rowsort
SELECT ALL - 4 FROM tab0 WHERE ( + col2 ) <= + col2
----
-4
-4
-4

onlyif mysql # DIV for integer division: 
query II rowsort label-6499
SELECT - col0 AS col2, 54 DIV - col2 AS col2 FROM tab1
----
-51
0
-85
0
-91
0

skipif mysql # not compatible
query II rowsort label-6499
SELECT - col0 AS col2, 54 / - col2 AS col2 FROM tab1
----
-51
0
-85
0
-91
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6500
SELECT DISTINCT COUNT( * ), - COUNT( * ) AS col2 FROM tab1
----
3
-3

skipif mysql # not compatible
query II rowsort label-6500
SELECT DISTINCT COUNT ( * ), - COUNT ( * ) AS col2 FROM tab1
----
3
-3

query I rowsort
SELECT ALL col0 * + 97 FROM tab0
----
1455
8439
9409

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

query I rowsort
SELECT + 94 * - 53 FROM tab0
----
-4982
-4982
-4982

query II rowsort
SELECT 74, col2 AS col0 FROM tab2
----
74
23
74
40
74
58

onlyif mysql # DIV for integer division: 
query I rowsort label-6505
SELECT DISTINCT + 49 DIV - 62 col0 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6505
SELECT DISTINCT + 49 / - 62 col0 FROM tab1
----
0

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6509
SELECT + ( - col2 ) DIV + - 46 FROM tab0 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-6509
SELECT + ( - col2 ) / + - 46 FROM tab0 AS cor0
----
0
1
2

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

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

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

query I rowsort
SELECT DISTINCT 55 AS col1 FROM tab2 cor0
----
55

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 35 <= NULL
----

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

skipif mysql # not compatible
query II rowsort label-6514
SELECT DISTINCT + + MAX ( + col0 ) + - COUNT ( * ) * - + MIN ( ALL - - col2 ) AS col1, + COUNT ( * ) FROM tab2 cor0
----
144
3

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

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

query II rowsort
SELECT - - col1 + 29 AS col0, 8 + - + col2 * 95 FROM tab1 AS cor0
----
34
-5597
43
-9112
76
-6452

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

query I rowsort
SELECT 76 + + - col0 AS col1 FROM tab0
----
-11
-21
61

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

query III rowsort
SELECT * FROM tab0 WHERE - 45 * + col2 + + - col0 + - col1 > - col0
----

query I rowsort
SELECT DISTINCT + 95 FROM tab2 WHERE + 46 * 69 BETWEEN + - col0 AND col2
----

query I rowsort
SELECT DISTINCT + 21 + + col2 AS col2 FROM tab2
----
44
61
79

query II rowsort
SELECT + + col2 AS col0, 18 + + col0 + + 58 - + 9 FROM tab0 AS cor0
----
10
154
47
82
99
164

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

skipif mysql # not compatible
query I rowsort label-6524
SELECT + - col1 / - + col0 FROM tab1 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6525
SELECT - ( - - SUM( + col2 ) ) - + + 72 FROM tab1 AS cor0
----
-295

skipif mysql # not compatible
query I rowsort label-6525
SELECT - ( - - SUM ( + col2 ) ) - + + 72 FROM tab1 AS cor0
----
-295

query I rowsort
SELECT - - 7 - + + col2 AS col1 FROM tab2 AS cor0
----
-16
-33
-51

query I rowsort
SELECT ALL - 80 * - col0 + + col0 * + col0 FROM tab2
----
11625
5796
9216

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6528
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab1 WHERE NULL <= ( NULL )
----

skipif mysql # not compatible
query I rowsort label-6528
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab1 WHERE NULL <= ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( col1 ) >= NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE 0 + - 4 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

skipif mysql # not compatible
query III rowsort label-6531
SELECT * FROM tab1 WHERE NOT 81 NOT IN ( + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6532
SELECT + 79 FROM tab0 WHERE NOT CAST( NULL AS SIGNED ) - + 37 NOT IN ( - 9 )
----

skipif mysql # not compatible
query I rowsort label-6532
SELECT + 79 FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) - + 37 NOT IN ( - 9 )
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + ( col1 ) col0 FROM tab2
----
117
125
74

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

query I rowsort
SELECT - 5 * col2 + + col1 * + col0 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6537
SELECT ALL + COUNT( * ) DIV - 82 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6537
SELECT ALL + COUNT ( * ) / - 82 FROM tab1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6538
SELECT DISTINCT COUNT( * ) DIV + MIN( ALL col0 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6538
SELECT DISTINCT COUNT ( * ) / + MIN ( ALL col0 ) FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6539
SELECT ALL MAX( ALL col1 ) * 52 + - 52 AS col2 FROM tab1
----
2392

skipif mysql # not compatible
query I rowsort label-6539
SELECT ALL MAX ( ALL col1 ) * 52 + - 52 AS col2 FROM tab1
----
2392

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6541
SELECT * FROM tab1 WHERE NOT ( + 19 + col2 * + CAST( - col1 AS DECIMAL ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-6541
SELECT * FROM tab1 WHERE NOT ( + 19 + col2 * + CAST ( - col1 AS REAL ) ) IS NOT NULL
----

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

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

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

query I rowsort
SELECT DISTINCT col0 + 38 FROM tab0
----
125
135
53

query III rowsort
SELECT ALL * FROM tab2 WHERE 64 * - 79 <= + 14
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 71 AS col0 FROM tab2 WHERE col0 IS NULL
----

query I rowsort
SELECT ALL + 87 - col1 * col0 FROM tab0 WHERE ( - 65 ) BETWEEN ( col2 ) AND 81 + - 21
----

query III rowsort
SELECT * FROM tab0 WHERE - col2 + 12 > NULL
----

query I rowsort
SELECT col2 FROM tab2 WHERE NULL = NULL
----

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

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

query I rowsort
SELECT ALL col0 * + 97 FROM tab2 AS cor0
----
4462
6208
7275

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6553
SELECT - 83 + MAX( + 10 ) FROM tab0
----
-73

skipif mysql # not compatible
query I rowsort label-6553
SELECT - 83 + MAX ( + 10 ) FROM tab0
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-6554
SELECT 43 + - SUM( - col1 ) AS col2 FROM tab2
----
238

skipif mysql # not compatible
query I rowsort label-6554
SELECT 43 + - SUM ( - col1 ) AS col2 FROM tab2
----
238

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6557
SELECT - ( 24 ) DIV 36 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6557
SELECT - ( 24 ) / 36 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + col1 AS col1 FROM tab2 WHERE 62 < ( + col0 )
----
67
77

onlyif mysql # DIV for integer division: 
query I rowsort label-6559
SELECT DISTINCT - ( + 99 ) + ( ( + 42 ) ) DIV 87 AS col2 FROM tab2
----
-99

skipif mysql # not compatible
query I rowsort label-6559
SELECT DISTINCT - ( + 99 ) + ( ( + 42 ) ) / 87 AS col2 FROM tab2
----
-99

query I rowsort
SELECT ALL col0 * - - col2 + + col2 * 78 FROM tab1
----
11492
12384
9617

query I rowsort
SELECT col1 + + 39 FROM tab2
----
106
116
90

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6562
SELECT ALL * FROM tab0 WHERE + CAST( 67 AS SIGNED ) + col0 * ( - col0 ) <> - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6562
SELECT ALL * FROM tab0 WHERE + CAST ( 67 AS INTEGER ) + col0 * ( - col0 ) <> - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col2 + + 41 FROM tab1
----
100
109
137

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

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

query I rowsort
SELECT 30 + + + col2 AS col1 FROM tab2
----
53
70
88

query I rowsort
SELECT + col1 * ( + col2 ) * + col2 + col0 FROM tab2
----
123264
225463
27025

query I rowsort
SELECT + col1 + + col0 + col0 * 79 FROM tab1
----
4094
6805
7327

onlyif mysql # aggregate syntax: 
query I rowsort label-6568
SELECT DISTINCT COUNT( 80 ) FROM tab0 AS cor0 WHERE NOT + col1 * + col1 NOT BETWEEN + col0 + - 83 AND + col1
----
0

skipif mysql # not compatible
query I rowsort label-6568
SELECT DISTINCT COUNT ( 80 ) FROM tab0 AS cor0 WHERE NOT + col1 * + col1 NOT BETWEEN + col0 + - 83 AND + col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6569
SELECT ALL - MIN( col2 ) AS col0 FROM tab2 cor0
----
-23

skipif mysql # not compatible
query I rowsort label-6569
SELECT ALL - MIN ( col2 ) AS col0 FROM tab2 cor0
----
-23

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 + 58 * 87 NOT BETWEEN ( 36 ) AND + col0
----

query I rowsort
SELECT ALL col0 * - col2 + - - col1 FROM tab1
----
-4882
-5010
-6141

onlyif mysql # aggregate syntax: 
query I rowsort label-6572
SELECT DISTINCT - MAX( - 79 ) * 15 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
1185

skipif mysql # not compatible
query I rowsort label-6572
SELECT DISTINCT - MAX ( - 79 ) * 15 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
1185

query I rowsort
SELECT DISTINCT - 76 - 54 AS col0 FROM tab0
----
-130

query I rowsort
SELECT ALL col1 * - - 68 + - col0 * col0 AS col1 FROM tab1
----
-1649
-5085
-6885

query II rowsort
SELECT col1, 41 + + col0 FROM tab1 AS cor0
----
14
92
47
132
5
126

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6578
SELECT ALL - MIN( DISTINCT col1 ) * + CAST( NULL AS DECIMAL ) - - AVG ( ALL 38 + 74 ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6578
SELECT ALL - MIN ( DISTINCT col1 ) * + CAST ( NULL AS REAL ) - - AVG ( ALL 38 + 74 ) AS col1 FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT ALL + - 29, 18 + - 99 AS col2 FROM tab1 AS cor0
----
-29
-81
-29
-81
-29
-81

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6581
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 * col0 + + col0 NOT IN ( + col2 * - CAST( - CAST( col1 AS SIGNED ) AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-6581
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 * col0 + + col0 NOT IN ( + col2 * - CAST ( - CAST ( col1 AS INTEGER ) AS INTEGER ) )
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6583
SELECT - 56, - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-56
NULL
-56
NULL
-56
NULL

skipif mysql # not compatible
query II rowsort label-6583
SELECT - 56, - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-56
NULL
-56
NULL
-56
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6585
SELECT DISTINCT 27 FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-6585
SELECT DISTINCT 27 FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT ( - 28 ) AS col2 FROM tab1 AS cor0
----
-28
-28
-28

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6589
SELECT 27 AS col0 FROM tab2 WHERE NOT - 35 NOT BETWEEN - CAST( - 69 AS SIGNED ) * + col1 AND 71 / col2
----

skipif mysql # not compatible
query I rowsort label-6589
SELECT 27 AS col0 FROM tab2 WHERE NOT - 35 NOT BETWEEN - CAST ( - 69 AS INTEGER ) * + col1 AND 71 / col2
----

query I rowsort
SELECT DISTINCT col0 * - 14 * - col2 FROM tab0
----
12180
134442
9870

query I rowsort
SELECT ALL + col1 * + + 24 AS col0 FROM tab0
----
1944
24
504

onlyif mysql # DIV for integer division: 
query II rowsort label-6592
SELECT - col0 * - col0 AS col0, 8 DIV + 33 + 88 FROM tab2
----
2116
88
4096
88
5625
88

skipif mysql # not compatible
query II rowsort label-6592
SELECT - col0 * - col0 AS col0, 8 / + 33 + 88 FROM tab2
----
2116
88
4096
88
5625
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6593
SELECT - COUNT( * ) DIV 3, - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-6593
SELECT - COUNT ( * ) / 3, - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
-1
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6594
SELECT ALL CAST( - - 43 AS SIGNED ) * - 27 FROM tab2
----
-1161
-1161
-1161

skipif mysql # not compatible
query I rowsort label-6594
SELECT ALL CAST ( - - 43 AS INTEGER ) * - 27 FROM tab2
----
-1161
-1161
-1161

query I rowsort
SELECT + ( + - 87 ) FROM tab1
----
-87
-87
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6596
SELECT DISTINCT COUNT( * ) DIV - CAST( 73 AS SIGNED ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6596
SELECT DISTINCT COUNT ( * ) / - CAST ( 73 AS INTEGER ) AS col0 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6597
SELECT col0 AS col0 FROM tab1 WHERE - col1 IS NULL AND NOT col0 * - CAST( - 76 * - col0 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-6597
SELECT col0 AS col0 FROM tab1 WHERE - col1 IS NULL AND NOT col0 * - CAST ( - 76 * - col0 AS INTEGER ) IS NULL
----

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

query I rowsort
SELECT - col1 * + 17 AS col0 FROM tab0 cor0
----
-1377
-17
-357

onlyif mysql # aggregate syntax: 
query I rowsort label-6600
SELECT ALL - + 20 + - COUNT( * ) AS col1 FROM tab0 cor0
----
-23

skipif mysql # not compatible
query I rowsort label-6600
SELECT ALL - + 20 + - COUNT ( * ) AS col1 FROM tab0 cor0
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6601
SELECT DISTINCT COUNT( * ) * + 31 FROM tab1 AS cor0 WHERE - 31 IN ( 18 * CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-6601
SELECT DISTINCT COUNT ( * ) * + 31 FROM tab1 AS cor0 WHERE - 31 IN ( 18 * CAST ( NULL AS INTEGER ) )
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6603
SELECT ALL SUM( ALL - - 51 ) col2 FROM tab0 AS cor0
----
153

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6603
SELECT ALL SUM ( ALL - - 51 ) col2 FROM tab0 AS cor0
----
153

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6605
SELECT + COUNT( * ) + - MAX( + 54 ) * + 16 FROM tab1 AS cor0
----
-861

skipif mysql # not compatible
query I rowsort label-6605
SELECT + COUNT ( * ) + - MAX ( + 54 ) * + 16 FROM tab1 AS cor0
----
-861

onlyif mysql # aggregate syntax: 
query I rowsort label-6606
SELECT 33 + - COUNT( ALL - 12 ) * + COUNT( * ) + + 46 FROM tab1 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-6606
SELECT 33 + - COUNT ( ALL - 12 ) * + COUNT ( * ) + + 46 FROM tab1 AS cor0
----
70

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <= - 53
----

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

skipif mysql # not compatible
query I rowsort label-6609
SELECT - 27 + + col0 * + CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6610
SELECT ALL + col0 + 70 + + - col2 DIV - - col0 AS col2 FROM tab2
----
116
134
145

skipif mysql # not compatible
query I rowsort label-6610
SELECT ALL + col0 + 70 + + - col2 / - - col0 AS col2 FROM tab2
----
116
134
145

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6612
SELECT DISTINCT - 95 + + - col0 * - col1 * - CAST( NULL AS SIGNED ) / - 36 * + 54 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6612
SELECT DISTINCT - 95 + + - col0 * - col1 * - CAST ( NULL AS INTEGER ) / - 36 * + 54 AS col0 FROM tab2
----
NULL

query II rowsort
SELECT ALL col2, ( + - 71 ) + + col2 AS col0 FROM tab1
----
59
-12
68
-3
96
25

query III rowsort
SELECT * FROM tab1 WHERE ( - col2 ) NOT IN ( - 80 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL <> + col1 + - col1 * ( - col1 ) * + - 46
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6617
SELECT + MIN( + - 30 ) col0 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6617
SELECT + MIN ( + - 30 ) col0 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-30

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

query I rowsort
SELECT + + 43 FROM tab2 cor0
----
43
43
43

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6623
SELECT - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND col1 * 14
----
0

skipif mysql # not compatible
query I rowsort label-6623
SELECT - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND col1 * 14
----
0

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

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

query I rowsort
SELECT DISTINCT 18 * - col0 AS col2 FROM tab0
----
-1566
-1746
-270

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

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

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE - col2 IN ( - - col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6630
SELECT ALL SUM( - CAST( NULL AS DECIMAL ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6630
SELECT ALL SUM ( - CAST ( NULL AS REAL ) ) FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6631
SELECT + CAST( + col0 AS SIGNED ) DIV + - col0 AS col2 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6631
SELECT + CAST ( + col0 AS INTEGER ) / + - col0 AS col2 FROM tab2
----
-1
-1
-1

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col1 * + 46 * + + col2 = col0 + - - 26 * - + col2
----

query I rowsort
SELECT DISTINCT ( + ( col0 ) ) + + - 76 FROM tab1 AS cor0
----
-25
15
9

query I rowsort
SELECT - col0 * - col1 + 34 FROM tab1
----
4311
459
748

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

query III rowsort
SELECT * FROM tab1 WHERE ( NOT ( NOT - col0 - 39 + 60 > col1 / col2 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6637
SELECT - col0 DIV 26 AS col0 FROM tab2
----
-1
-2
-2

skipif mysql # not compatible
query I rowsort label-6637
SELECT - col0 / 26 AS col0 FROM tab2
----
-1
-2
-2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 91 * col1 col2 FROM tab2
----
4641
6097
7007

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( 41 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6641
SELECT - 92 * COUNT( * ) + + + COUNT( * ) col1 FROM tab1 cor0
----
-273

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6642
SELECT DISTINCT MAX( ALL - - 79 ) * + - 64 FROM tab1 cor0
----
-5056

skipif mysql # not compatible
query I rowsort label-6642
SELECT DISTINCT MAX ( ALL - - 79 ) * + - 64 FROM tab1 cor0
----
-5056

onlyif mysql # DIV for integer division: 
query I rowsort label-6643
SELECT DISTINCT + 64 + + 81 DIV + - col2 FROM tab0 AS cor0
----
56
63
64

skipif mysql # not compatible
query I rowsort label-6643
SELECT DISTINCT + 64 + + 81 / + - col2 FROM tab0 AS cor0
----
56
63
64

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6645
SELECT DISTINCT 12 DIV MIN( + col1 ) AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6645
SELECT DISTINCT 12 / MIN ( + col1 ) AS col1 FROM tab2 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col0 <> col0 * + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6648
SELECT DISTINCT 20 * - - COUNT( DISTINCT col0 ) + - COUNT( * ) FROM tab1
----
57

skipif mysql # not compatible
query I rowsort label-6648
SELECT DISTINCT 20 * - - COUNT ( DISTINCT col0 ) + - COUNT ( * ) FROM tab1
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-6649
SELECT 34 DIV + - col2 - + 80 FROM tab1
----
-80
-80
-80

skipif mysql # not compatible
query I rowsort label-6649
SELECT 34 / + - col2 - + 80 FROM tab1
----
-80
-80
-80

query I rowsort
SELECT DISTINCT 77 - + col2 FROM tab2
----
19
37
54

onlyif mysql # aggregate syntax: 
query I rowsort label-6651
SELECT DISTINCT 4 * + - MAX( ALL - + 21 ) FROM tab1
----
84

skipif mysql # not compatible
query I rowsort label-6651
SELECT DISTINCT 4 * + - MAX ( ALL - + 21 ) FROM tab1
----
84

query II rowsort
SELECT col1 * + col0 + - - col1, + 90 * col1 AS col2 FROM tab0
----
1296
7290
1848
1890
98
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6653
SELECT - col0 / - col2 / 35 * - + 60 * + CAST( NULL AS SIGNED ) * - col0 + col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6653
SELECT - col0 / - col2 / 35 * - + 60 * + CAST ( NULL AS INTEGER ) * - col0 + col1 FROM tab1
----
NULL
NULL
NULL

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col1 ) + + 18 col0 FROM tab0
----
19
39
99

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

skipif mysql # not compatible
query I rowsort label-6656
SELECT - 62 + + + col1 - + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

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

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

query I rowsort
SELECT - col0 * + + 96 * - col2 FROM tab0 AS cor0
----
67680
83520
921888

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6661
SELECT col1 DIV 50 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6661
SELECT col1 / 50 FROM tab2
----
1
1
1

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

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

query I rowsort
SELECT ALL 5 AS col1 FROM tab2 WHERE NULL <= NULL
----

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6668
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN col0 - - 43 + - col1 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-6668
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN col0 - - 43 + - col1 AND NULL
----
0

query II rowsort
SELECT DISTINCT 50 AS col1, - ( + col1 ) AS col1 FROM tab0 AS cor0
----
50
-1
50
-21
50
-81

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6675
SELECT - COUNT( * ) col0, - 66 FROM tab2, tab0 AS cor0
----
-9
-66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6675
SELECT - COUNT ( * ) col0, - 66 FROM tab2, tab0 AS cor0
----
-9
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-6676
SELECT ALL COUNT( * ) + + 62 AS col1 FROM tab2, tab0 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-6676
SELECT ALL COUNT ( * ) + + 62 AS col1 FROM tab2, tab0 AS cor0
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6677
SELECT CAST( NULL AS SIGNED ) * - - col0 + + 13 * - + 66 col1 FROM tab0
----
NULL
NULL
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-6678
SELECT ALL COUNT( * ) * + COUNT( * ) AS col2, + CAST( MAX( + col2 ) AS SIGNED ) AS col2, + - 13 FROM tab1 AS cor0
----
9
96
-13

skipif mysql # not compatible
query III rowsort label-6678
SELECT ALL COUNT ( * ) * + COUNT ( * ) AS col2, + CAST ( MAX ( + col2 ) AS INTEGER ) AS col2, + - 13 FROM tab1 AS cor0
----
9
96
-13

query I rowsort
SELECT col1 * + col2 + ( col0 ) + + col2 AS col2 FROM tab1 AS cor0
----
1491
3355
439

query I rowsort
SELECT DISTINCT 16 + - col2 FROM tab1
----
-43
-52
-80

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6683
SELECT ALL COUNT ( * ) + COUNT ( * ) * - COUNT ( * ) FROM tab0
----
-6

query I rowsort
SELECT ALL - col1 + - + 51 AS col2 FROM tab0
----
-132
-52
-72

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

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

query I rowsort
SELECT - col1 + - 75 + + ( col0 ) FROM tab2 AS cor0
----
-67
-80
-88

query I rowsort
SELECT ALL col2 * - 63 AS col2 FROM tab2 AS cor0
----
-1449
-2520
-3654

onlyif mysql # aggregate syntax: 
query I rowsort label-6688
SELECT + SUM( + ( col2 ) ) + + + 60 FROM tab2 AS cor0
----
181

skipif mysql # not compatible
query I rowsort label-6688
SELECT + SUM ( + ( col2 ) ) + + + 60 FROM tab2 AS cor0
----
181

query I rowsort
SELECT DISTINCT - col2 * - 22 + + - col0 * - - 29 FROM tab0 AS cor0
----
-2303
-635
599

onlyif mysql # aggregate syntax: 
query I rowsort label-6690
SELECT DISTINCT - - 18 + + MIN( DISTINCT + 9 ) AS col2 FROM tab1 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-6690
SELECT DISTINCT - - 18 + + MIN ( DISTINCT + 9 ) AS col2 FROM tab1 AS cor0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-6691
SELECT ALL + + 19 * + MIN( - col0 ) - - COUNT( * ) FROM tab2 AS cor0
----
-1422

skipif mysql # not compatible
query I rowsort label-6691
SELECT ALL + + 19 * + MIN ( - col0 ) - - COUNT ( * ) FROM tab2 AS cor0
----
-1422

query I rowsort
SELECT ALL 99 + ( + col2 ) + - - col1 AS col1 FROM tab1 AS cor0
----
163
209
214

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6694
SELECT + + col0, + col1 DIV - 29 FROM tab0 AS cor0
----
15
-2
87
0
97
0

skipif mysql # not compatible
query II rowsort label-6694
SELECT + + col0, + col1 / - 29 FROM tab0 AS cor0
----
15
-2
87
0
97
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 BETWEEN NULL AND - 52
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 - 42 col2 FROM tab1
----
43
49
9

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

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

skipif mysql # not compatible
query I rowsort label-6698
SELECT DISTINCT - 11 / col2 AS col0 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6699
SELECT 81 - CAST( NULL AS DECIMAL ) AS col1, - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6699
SELECT 81 - CAST ( NULL AS REAL ) AS col1, - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6700
SELECT - MAX( - + CAST( + col1 AS SIGNED ) ) FROM tab2 AS cor0
----
51

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

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col2 / - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6702
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST( - col1 AS SIGNED ) > - - 61
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-6702
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST ( - col1 AS INTEGER ) > - - 61
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6703
SELECT DISTINCT + - COUNT( * ) + COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-6703
SELECT DISTINCT + - COUNT ( * ) + COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6705
SELECT ALL + MIN( - - col2 ) AS col2 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-6705
SELECT ALL + MIN ( - - col2 ) AS col2 FROM tab2 AS cor0
----
23

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

query I rowsort
SELECT + - 17 FROM tab2 cor0
----
-17
-17
-17

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

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

query I rowsort
SELECT DISTINCT + 99 + + + col2 FROM tab1
----
158
167
195

onlyif mysql # DIV for integer division: 
query I rowsort label-6710
SELECT ALL 38 + - + 1 DIV - col0 AS col0 FROM tab1
----
38
38
38

skipif mysql # not compatible
query I rowsort label-6710
SELECT ALL 38 + - + 1 / - col0 AS col0 FROM tab1
----
38
38
38

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

query I rowsort
SELECT DISTINCT + ( - - 70 ) AS col2 FROM tab0
----
70

query II rowsort
SELECT - 41 AS col2, 43 * - col0 FROM tab1
----
-41
-2193
-41
-3655
-41
-3913

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6714
SELECT + MAX( col0 ) * + - SUM( + CAST( NULL AS SIGNED ) ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6714
SELECT + MAX ( col0 ) * + - SUM ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6715
SELECT col1, 1 / + - CAST( NULL AS DECIMAL ) FROM tab1
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-6715
SELECT col1, 1 / + - CAST ( NULL AS REAL ) FROM tab1
----
14
NULL
47
NULL
5
NULL

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

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

query I rowsort
SELECT - col1 + - + col2 - + 8 + col2 FROM tab2 AS cor0
----
-59
-75
-85

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

query I rowsort
SELECT DISTINCT + col0 * col1 * + + col2 + 18 FROM tab1 AS cor0
----
25093
290854
68562

onlyif mysql # aggregate syntax: 
query II rowsort label-6720
SELECT 15 - COUNT( * ) col0, 23 - - 81 FROM tab0 cor0
----
12
104

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6720
SELECT 15 - COUNT ( * ) col0, 23 - - 81 FROM tab0 cor0
----
12
104

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

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

query I rowsort
SELECT - col2 + col0 + - 63 FROM tab2 WHERE + col2 <= NULL
----

query I rowsort
SELECT + col1 + - col1 + - - col0 + 92 * - - col0 AS col1 FROM tab2
----
4278
5952
6975

query I rowsort
SELECT ALL + col1 * + col0 + - - ( + 43 ) AS col1 FROM tab2
----
2389
4971
5068

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

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

query I rowsort
SELECT DISTINCT 83 * + col2 FROM tab1
----
4897
5644
7968

query I rowsort
SELECT ALL 32 * - 68 AS col2 FROM tab1
----
-2176
-2176
-2176

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6728
SELECT ALL CAST( NULL AS SIGNED ) AS col0, - 10 * - col0 FROM tab0
----
NULL
150
NULL
870
NULL
970

skipif mysql # not compatible
query II rowsort label-6728
SELECT ALL CAST ( NULL AS INTEGER ) AS col0, - 10 * - col0 FROM tab0
----
NULL
150
NULL
870
NULL
970

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6730
SELECT - 72, - MAX( DISTINCT - + col2 ) + + SUM( ALL + - col0 ) AS col1 FROM tab0
----
-72
-189

skipif mysql # not compatible
query II rowsort label-6730
SELECT - 72, - MAX ( DISTINCT - + col2 ) + + SUM ( ALL + - col0 ) AS col1 FROM tab0
----
-72
-189

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

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

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

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

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

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

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

query I rowsort
SELECT 40 + - - col0 FROM tab0 AS cor0
----
127
137
55

onlyif mysql # aggregate syntax: 
query I rowsort label-6736
SELECT DISTINCT COUNT( * ) + 64 FROM tab2
----
67

skipif mysql # not compatible
query I rowsort label-6736
SELECT DISTINCT COUNT ( * ) + 64 FROM tab2
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6737
SELECT DISTINCT - COUNT( + col1 ) FROM tab0 WHERE NOT CAST( NULL AS SIGNED ) >= col2 + CAST( NULL AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-6737
SELECT DISTINCT - COUNT ( + col1 ) FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) >= col2 + CAST ( NULL AS INTEGER )
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6738
SELECT ALL MAX( ALL - CAST( NULL AS DECIMAL ) ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6738
SELECT ALL MAX ( ALL - CAST ( NULL AS REAL ) ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT ALL + 10 - - col1 AS col1 FROM tab0 WHERE NOT NULL BETWEEN NULL AND ( - + 99 )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6740
SELECT + ( + col1 ) + + 73 DIV 22 * col0 col1 FROM tab2 WHERE + + CAST( + col0 AS SIGNED ) + col2 * + col0 * + - 49 IS NOT NULL
----
189
269
292

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6740
SELECT + ( + col1 ) + + 73 / 22 * col0 col1 FROM tab2 WHERE + + CAST ( + col0 AS INTEGER ) + col2 * + col0 * + - 49 IS NOT NULL
----
189
269
292

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6741
SELECT * FROM tab0 WHERE ( CAST( + col2 AS SIGNED ) ) NOT IN ( + col0, 44 - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6741
SELECT * FROM tab0 WHERE ( CAST ( + col2 AS INTEGER ) ) NOT IN ( + col0, 44 - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 38 * 1 + + 80 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6743
SELECT ALL * FROM tab1 AS cor0 WHERE col1 * CAST( NULL AS SIGNED ) <> NULL
----

skipif mysql # not compatible
query III rowsort label-6743
SELECT ALL * FROM tab1 AS cor0 WHERE col1 * CAST ( NULL AS INTEGER ) <> NULL
----

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

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

query II rowsort
SELECT + + col1 AS col2, 64 AS col0 FROM tab0 AS cor0
----
1
64
21
64
81
64

onlyif mysql # aggregate syntax: 
query I rowsort label-6747
SELECT + - 22 + - COUNT( * ) + - 73 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-104

skipif mysql # not compatible
query I rowsort label-6747
SELECT + - 22 + - COUNT ( * ) + - 73 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-104

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * - col0 + - 21 col2 FROM tab0 AS cor0
----
1194
1806
76

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

query I rowsort
SELECT col1 AS col2 FROM tab0 AS cor0 WHERE NULL <= ( NULL )
----

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

query I rowsort
SELECT + - col0 * + 82 AS col1 FROM tab2 cor0
----
-3772
-5248
-6150

query I rowsort
SELECT ALL - ( - - col2 ) AS col2 FROM tab2 AS cor0
----
-23
-40
-58

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6756
SELECT ALL + MIN( + 97 ) AS col1 FROM tab1
----
97

skipif mysql # not compatible
query I rowsort label-6756
SELECT ALL + MIN ( + 97 ) AS col1 FROM tab1
----
97

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( + col2 - - 62 / + + 90 * + - 35 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL ( - 81 ) * col0 FROM tab1 AS cor0
----
-4131
-6885
-7371

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6762
SELECT + - 74 + + - COUNT( * ) FROM tab2 AS cor0 WHERE NOT 68 IS NOT NULL
----
-74

skipif mysql # not compatible
query I rowsort label-6762
SELECT + - 74 + + - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT 68 IS NOT NULL
----
-74

query I rowsort
SELECT + 51 * 50 AS col1 FROM tab0 AS cor0
----
2550
2550
2550

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

query I rowsort
SELECT + - col1 FROM tab1 AS cor0 WHERE NOT - col0 * col1 < col0 * + ( 38 )
----

query I rowsort
SELECT ALL + col0 + + 48 AS col2 FROM tab1 AS cor0
----
133
139
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6767
SELECT ALL ( - - COUNT( * ) ) + - 28 FROM tab0
----
-25

skipif mysql # not compatible
query I rowsort label-6767
SELECT ALL ( - - COUNT ( * ) ) + - 28 FROM tab0
----
-25

query III rowsort
SELECT * FROM tab1 WHERE NULL IN ( - col2, 89 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6769
SELECT + SUM( + 58 ) + + - 68 FROM tab0 WHERE 47 * - ( - - col0 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6769
SELECT + SUM ( + 58 ) + + - 68 FROM tab0 WHERE 47 * - ( - - col0 ) IS NULL
----
NULL

query IIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0 WHERE 44 IS NULL OR NOT NULL NOT BETWEEN NULL AND + ( - 52 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6771
SELECT DISTINCT - ( - col0 ) * - - col1 + 45 DIV - 62 AS col1 FROM tab2 AS cor0
----
2346
4928
5025

skipif mysql # not compatible
query I rowsort label-6771
SELECT DISTINCT - ( - col0 ) * - - col1 + 45 / - 62 AS col1 FROM tab2 AS cor0
----
2346
4928
5025

query I rowsort
SELECT DISTINCT + + ( - - 47 ) * - + 38 + + - col0 FROM tab1 AS cor0
----
-1837
-1871
-1877

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6773
SELECT ALL + + 36 DIV MAX( - 47 ) * + + COUNT( * ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6773
SELECT ALL + + 36 / MAX ( - 47 ) * + + COUNT ( * ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT - - col1 - - 1 AS col1 FROM tab0 AS cor0
----
2
22
82

query I rowsort
SELECT DISTINCT + + ( 72 ) AS col2 FROM tab1 AS cor0
----
72

onlyif mysql # aggregate syntax: 
query II rowsort label-6776
SELECT - COUNT( * ) col0, 76 FROM tab1
----
-3
76

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6776
SELECT - COUNT ( * ) col0, 76 FROM tab1
----
-3
76

onlyif mysql # aggregate syntax: 
query II rowsort label-6777
SELECT DISTINCT COUNT( * ), - 51 AS col2 FROM tab0
----
3
-51

skipif mysql # not compatible
query II rowsort label-6777
SELECT DISTINCT COUNT ( * ), - 51 AS col2 FROM tab0
----
3
-51

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

query II rowsort
SELECT + - 46 * - col0 + + col0 + col1, col0 AS col1 FROM tab2 WHERE NOT 91 * + col2 * - + col0 IS NOT NULL
----

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

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

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

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

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

query I rowsort
SELECT ALL + 86 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 63 > - - 72
----
54 values hashing to 375f372843089b03f23b00160007527a

onlyif mysql # aggregate syntax: 
query I rowsort label-6786
SELECT - - COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-6786
SELECT - - COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL IS NULL )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6787
SELECT DISTINCT CAST( - - 19 AS SIGNED ) FROM tab2 AS cor0 WHERE col1 BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-6787
SELECT DISTINCT CAST ( - - 19 AS INTEGER ) FROM tab2 AS cor0 WHERE col1 BETWEEN NULL AND NULL
----

query II rowsort
SELECT ALL col1 AS col0, 83 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
51
83
67
83
77
83

query II rowsort
SELECT + 87 + + col0, col2 AS col0 FROM tab2 AS cor0
----
133
23
151
40
162
58

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

query I rowsort
SELECT - + 42 + col1 FROM tab2 AS cor0
----
25
35
9

query I rowsort
SELECT - + 28 + - col0 + - col2 AS col0 FROM tab1 AS cor0
----
-172
-175
-187

query II rowsort
SELECT - col1 + - 15, col1 FROM tab1 cor0
----
-20
5
-29
14
-62
47

query II rowsort
SELECT DISTINCT + col0 + + col0, col2 AS col1 FROM tab0 AS cor0
----
174
10
194
99
30
47

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

query I rowsort
SELECT - 80 + 11 FROM tab1 AS cor0
----
-69
-69
-69

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - - 72 col1 FROM tab1
----
-13
-19
21

onlyif mysql # DIV for integer division: 
query I rowsort label-6799
SELECT DISTINCT col0 DIV + + 57 + col0 FROM tab1
----
51
86
92

skipif mysql # not compatible
query I rowsort label-6799
SELECT DISTINCT col0 / + + 57 + col0 FROM tab1
----
51
86
92

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 47 < + col2
----

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

query I rowsort
SELECT ALL + col2 + - 88 FROM tab0
----
-41
-78
11

query I rowsort
SELECT ALL - col2 * + + 52 * + col2 AS col1 FROM tab1 WHERE NOT NULL = + col1
----

query I rowsort
SELECT col0 * - + 45 AS col2 FROM tab1 AS cor0
----
-2295
-3825
-4095

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

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

query I rowsort
SELECT ( - col1 ) - - ( col2 ) + - - 56 AS col1 FROM tab1 AS cor0
----
110
138
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6807
SELECT ALL - + 63 * - SUM( col1 ) FROM tab2 AS cor0
----
12285

skipif mysql # not compatible
query I rowsort label-6807
SELECT ALL - + 63 * - SUM ( col1 ) FROM tab2 AS cor0
----
12285

query I rowsort
SELECT col2 - + 65 FROM tab2 AS cor0
----
-25
-42
-7

query I rowsort
SELECT + + col1 - + - ( col2 ) + 31 FROM tab0 AS cor0
----
131
159
62

query I rowsort
SELECT DISTINCT + 14 * + 28 AS col2 FROM tab1 AS cor0
----
392

query I rowsort
SELECT + col0 - + col0 + col2 FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT ALL col2 + col0 * - + 42 AS col1 FROM tab0
----
-3644
-3975
-583

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

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

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

query I rowsort
SELECT + 91 * 7 FROM tab1 AS cor0
----
637
637
637

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

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

query I rowsort
SELECT col0 AS col2 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND 45
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6819
SELECT + COUNT( * ) * 58 * + 4 FROM tab2 AS cor0
----
696

skipif mysql # not compatible
query I rowsort label-6819
SELECT + COUNT ( * ) * 58 * + 4 FROM tab2 AS cor0
----
696

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

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

query I rowsort
SELECT - col0 * + + 43 AS col0 FROM tab2
----
-1978
-2752
-3225

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 6 col0, 79 FROM tab0
----
6
79

onlyif mysql # aggregate syntax: 
query I rowsort label-6824
SELECT ALL - + 89 + - + COUNT( * ) AS col0 FROM tab1 WHERE + 87 <> NULL
----
-89

skipif mysql # not compatible
query I rowsort label-6824
SELECT ALL - + 89 + - + COUNT ( * ) AS col0 FROM tab1 WHERE + 87 <> NULL
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-6825
SELECT - SUM( - 53 ) AS col2 FROM tab1 WHERE NOT - + col2 = + - col1
----
159

skipif mysql # not compatible
query I rowsort label-6825
SELECT - SUM ( - 53 ) AS col2 FROM tab1 WHERE NOT - + col2 = + - col1
----
159

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

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

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

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

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

query I rowsort
SELECT - 87 * + col1 FROM tab0
----
-1827
-7047
-87

onlyif mysql # aggregate syntax: 
query II rowsort label-6830
SELECT + - 79 * 4 AS col0, COUNT( * ) AS col2 FROM tab0 cor0
----
-316
3

skipif mysql # not compatible
query II rowsort label-6830
SELECT + - 79 * 4 AS col0, COUNT ( * ) AS col2 FROM tab0 cor0
----
-316
3

query I rowsort
SELECT ALL - + 25 * + - col0 AS col0 FROM tab0 AS cor0
----
2175
2425
375

query III rowsort
SELECT col2 AS col2, + col1, - 23 * - col0 AS col2 FROM tab2 AS cor0
----
9 values hashing to 342a9ab0cbca497deda8401ca052ca84

query II rowsort
SELECT - + col1, col2 + - + col1 AS col1 FROM tab2 AS cor0
----
-51
-28
-67
-9
-77
-37

query I rowsort
SELECT ALL 39 + - ( - col1 ) - + 30 FROM tab1 AS cor0
----
14
23
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6835
SELECT + COUNT( * ) AS col2 FROM tab2 cor0 WHERE + CAST( - 67 AS SIGNED ) + + + 67 / - - 75 * + col1 / + col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-6835
SELECT + COUNT ( * ) AS col2 FROM tab2 cor0 WHERE + CAST ( - 67 AS INTEGER ) + + + 67 / - - 75 * + col1 / + col2 IS NOT NULL
----
3

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

skipif mysql # not compatible
query I rowsort label-6836
SELECT col2 * - col2 + + CAST ( NULL AS INTEGER ) FROM tab0 WHERE + + 76 IS NOT NULL
----
NULL
NULL
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6838
SELECT CAST( + col0 AS SIGNED ) + col1 FROM tab1
----
138
65
90

skipif mysql # not compatible
query I rowsort label-6838
SELECT CAST ( + col0 AS INTEGER ) + col1 FROM tab1
----
138
65
90

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6840
SELECT DISTINCT - ( - COUNT( * ) ) + - 57 col0 FROM tab0
----
-54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6840
SELECT DISTINCT - ( - COUNT ( * ) ) + - 57 col0 FROM tab0
----
-54

query I rowsort
SELECT DISTINCT - 46 * col0 * + 88 FROM tab2
----
-186208
-259072
-303600

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 + - 68 = + 13
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col0 + + col2 col2, col1 - + 51 FROM tab0 AS cor0
----
196
-50
62
30
97
-30

query I rowsort
SELECT DISTINCT - col0 * col2 + + col2 * col1 AS col2 FROM tab2 AS cor0
----
-464
115
520

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 cor1 WHERE 14 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6847
SELECT ALL COUNT( * ) + 30 + - COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
30

skipif mysql # not compatible
query I rowsort label-6847
SELECT ALL COUNT ( * ) + 30 + - COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
30

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

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

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

query II rowsort
SELECT DISTINCT 61, - col1 AS col0 FROM tab0 AS cor0
----
61
-1
61
-21
61
-81

query II rowsort
SELECT ALL col2 * + col2, 5 + + 55 + - - col0 AS col2 FROM tab1
----
3481
145
4624
151
9216
111

query I rowsort
SELECT + 65 * col1 AS col1 FROM tab2
----
3315
4355
5005

onlyif mysql # aggregate syntax: 
query I rowsort label-6853
SELECT + 31 * COUNT( * ) col2 FROM tab0
----
93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6853
SELECT + 31 * COUNT ( * ) col2 FROM tab0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-6854
SELECT DISTINCT SUM( DISTINCT + + ( 28 ) ) FROM tab2
----
28

skipif mysql # not compatible
query I rowsort label-6854
SELECT DISTINCT SUM ( DISTINCT + + ( 28 ) ) FROM tab2
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-6855
SELECT DISTINCT col2 DIV - 85 AS col1 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-6855
SELECT DISTINCT col2 / - 85 AS col1 FROM tab1
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6856
SELECT ALL + - 88 * COUNT( * ) + - ( - COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
-261

skipif mysql # not compatible
query I rowsort label-6856
SELECT ALL + - 88 * COUNT ( * ) + - ( - COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
-261

onlyif mysql # aggregate syntax: 
query I rowsort label-6857
SELECT - + MIN( ALL 87 ) AS col0 FROM tab2 cor0
----
-87

skipif mysql # not compatible
query I rowsort label-6857
SELECT - + MIN ( ALL 87 ) AS col0 FROM tab2 cor0
----
-87

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6859
SELECT + MIN( ALL - col2 ) * - - ( - - COUNT( * ) ) AS col0 FROM tab0
----
-297

skipif mysql # not compatible
query I rowsort label-6859
SELECT + MIN ( ALL - col2 ) * - - ( - - COUNT ( * ) ) AS col0 FROM tab0
----
-297

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

query I rowsort
SELECT - 14 / col2 AS col0 FROM tab1 WHERE + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6862
SELECT + col0 + CAST( col2 AS SIGNED ) FROM tab2 AS cor0
----
104
133
69

skipif mysql # not compatible
query I rowsort label-6862
SELECT + col0 + CAST ( col2 AS INTEGER ) FROM tab2 AS cor0
----
104
133
69

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

query I rowsort
SELECT + + 3 + + 75 FROM tab0 AS cor0
----
78
78
78

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 <> + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query III rowsort
SELECT * FROM tab1 WHERE + - 65 NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 + + - col2, + 96 * 37 * col0 * - - col2 + - 55 col1 FROM tab0
----
-196
34109801
-62
2504105
-97
3090185

query I rowsort
SELECT - col2 FROM tab2 WHERE + + col2 NOT IN ( + col2 )
----

query I rowsort
SELECT 63 - + col2 AS col2 FROM tab2 AS cor0
----
23
40
5

query I rowsort
SELECT 58 * - 15 - 57 AS col2 FROM tab2 cor0
----
-927
-927
-927

query I rowsort
SELECT + - 29 - + col2 FROM tab0 AS cor0
----
-128
-39
-76

query II rowsort
SELECT ALL col2, + 17 FROM tab1 AS cor0
----
59
17
68
17
96
17

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6875
SELECT + CAST( NULL AS SIGNED ) col0, COUNT( * ) FROM tab0 cor0
----
NULL
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6875
SELECT + CAST ( NULL AS INTEGER ) col0, COUNT ( * ) FROM tab0 cor0
----
NULL
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - - ( + - col1 ) + col1 * + + 35 col0 FROM tab2 AS cor0
----
-2144
-3234
-816

onlyif mysql # aggregate syntax: 
query II rowsort label-6877
SELECT DISTINCT - SUM( - + col2 ) AS col2, 82 FROM tab2
----
121
82

skipif mysql # not compatible
query II rowsort label-6877
SELECT DISTINCT - SUM ( - + col2 ) AS col2, 82 FROM tab2
----
121
82

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6879
SELECT DISTINCT + ( MAX( ALL + col2 ) ) / - + 71 FROM tab2 cor0 WHERE ( + col1 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6879
SELECT DISTINCT + ( MAX ( ALL + col2 ) ) / - + 71 FROM tab2 cor0 WHERE ( + col1 ) IS NULL
----
NULL

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

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

query I rowsort
SELECT ALL col2 FROM tab2 AS cor0 WHERE - 83 * 76 * - 83 IS NOT NULL
----
23
40
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 42 - + 11 AS col1, - 34 col1 FROM tab0 cor0 WHERE NOT NULL < NULL
----

query I rowsort
SELECT ALL 13 * + - col1 + 68 + 47 - + col0 FROM tab1 AS cor0
----
-118
-35
-587

onlyif mysql # DIV for integer division: 
query I rowsort label-6884
SELECT DISTINCT + col1 * - + col2 DIV col2 * + col1 FROM tab0 AS cor0
----
-1
-441
-6561

skipif mysql # not compatible
query I rowsort label-6884
SELECT DISTINCT + col1 * - + col2 / col2 * + col1 FROM tab0 AS cor0
----
-1
-441
-6561

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6885
SELECT ALL - ( + 58 ) * COUNT( * ) * - COUNT( * ), - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
522
NULL

skipif mysql # not compatible
query II rowsort label-6885
SELECT ALL - ( + 58 ) * COUNT ( * ) * - COUNT ( * ), - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
522
NULL

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

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

skipif mysql # not compatible
query I rowsort label-6887
SELECT ALL COUNT ( * ) / 68 AS col1 FROM tab0
----
0

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

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

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

query I rowsort
SELECT ALL 57 FROM tab2 cor0 WHERE col1 BETWEEN - + col2 AND + - col2 + + - 26
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6891
SELECT + CAST( NULL AS SIGNED ) AS col0, + col2 AS col1 FROM tab1 AS cor0 WHERE NOT - col0 IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-6891
SELECT + CAST ( NULL AS INTEGER ) AS col0, + col2 AS col1 FROM tab1 AS cor0 WHERE NOT - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6892
SELECT DISTINCT + CAST( - col2 AS SIGNED ) + col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6892
SELECT DISTINCT + CAST ( - col2 AS INTEGER ) + col2 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6893
SELECT DISTINCT - - 76 * CAST( NULL AS DECIMAL ) + col0 + - 7 + 43 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6893
SELECT DISTINCT - - 76 * CAST ( NULL AS REAL ) + col0 + - 7 + 43 FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6894
SELECT ALL 41 DIV - 83 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6894
SELECT ALL 41 / - 83 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT 81 + + 96 AS col0 FROM tab1
----
177

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) = NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6897
SELECT DISTINCT 26 DIV COUNT( * ) AS col0 FROM tab2
----
8

skipif mysql # not compatible
query I rowsort label-6897
SELECT DISTINCT 26 / COUNT ( * ) AS col0 FROM tab2
----
8

query II rowsort
SELECT + ( + col2 ) AS col1, col1 FROM tab0
----
10
21
47
81
99
1

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

skipif mysql # not compatible
query I rowsort label-6899
SELECT + MAX ( 88 ) FROM tab0 AS cor0
----
88

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6902
SELECT ALL - + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND 63 - col0
----
0

skipif mysql # not compatible
query I rowsort label-6902
SELECT ALL - + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND 63 - col0
----
0

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

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

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

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

query I rowsort
SELECT DISTINCT - 46 - + - col0 AS col2 FROM tab1
----
39
45
5

query I rowsort
SELECT ( - col0 ) AS col2 FROM tab2 WHERE col2 <> - + 41 * - 45
----
-46
-64
-75

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

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

query I rowsort
SELECT - col0 + col1 * + + 18 * - col1 FROM tab2
----
-106786
-46864
-80877

onlyif mysql # aggregate syntax: 
query I rowsort label-6910
SELECT DISTINCT - COUNT( * ) - SUM( - + 34 ) FROM tab2
----
99

skipif mysql # not compatible
query I rowsort label-6910
SELECT DISTINCT - COUNT ( * ) - SUM ( - + 34 ) FROM tab2
----
99

query I rowsort
SELECT ALL - col1 - - 2 + col1 FROM tab2
----
2
2
2

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6913
SELECT - col2 AS col0, 31 DIV - 67 * 87 AS col1 FROM tab0
----
-10
0
-47
0
-99
0

skipif mysql # not compatible
query II rowsort label-6913
SELECT - col2 AS col0, 31 / - 67 * 87 AS col1 FROM tab0
----
-10
0
-47
0
-99
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6915
SELECT ALL * FROM tab2 AS cor0 WHERE 66 IN ( + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-6915
SELECT ALL * FROM tab2 AS cor0 WHERE 66 IN ( + CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT col1 FROM tab1 cor0 WHERE NOT 93 < col0
----
14
47
5

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

query I rowsort
SELECT ALL - + 0 * - 38 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col2 + + + 21 FROM tab2 AS cor0
----
-19
-2
-37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 24 + + 8, - col1 col1 FROM tab1
----
-16
-14
-16
-47
-16
-5

query I rowsort
SELECT ALL 41 * col0 * col0 + - + col0 FROM tab0
----
310242
385672
9210

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 12 * + + col2 col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
276
480
696

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6925
SELECT ALL + col2 + + - col2, CAST( col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
0
51
0
85
0
91

skipif mysql # not compatible
query II rowsort label-6925
SELECT ALL + col2 + + - col2, CAST ( col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
0
51
0
85
0
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6926
SELECT MAX( + col2 ) * - + 5 FROM tab1 AS cor0
----
-480

skipif mysql # not compatible
query I rowsort label-6926
SELECT MAX ( + col2 ) * - + 5 FROM tab1 AS cor0
----
-480

query I rowsort
SELECT DISTINCT col0 + 28 AS col2 FROM tab2
----
103
74
92

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 IS NULL AND NOT 48 * + - 31 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + ( col1 ) - 32 FROM tab2
----
19
35
45

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6930
SELECT ALL + 65 AS col2, CAST( NULL AS SIGNED ) AS col1 FROM tab1 cor0
----
65
NULL
65
NULL
65
NULL

skipif mysql # not compatible
query II rowsort label-6930
SELECT ALL + 65 AS col2, CAST ( NULL AS INTEGER ) AS col1 FROM tab1 cor0
----
65
NULL
65
NULL
65
NULL

query I rowsort
SELECT col1 + + - ( + + 65 ) FROM tab1 AS cor0
----
-18
-51
-60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 - - 92 col1 FROM tab1 AS cor0
----
106
139
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6933
SELECT ALL + ( 80 ) + + COUNT( ALL + - 75 ) AS col0 FROM tab2 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-6933
SELECT ALL + ( 80 ) + + COUNT ( ALL + - 75 ) AS col0 FROM tab2 AS cor0
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6934
SELECT DISTINCT CAST( NULL AS SIGNED ) * - MIN( DISTINCT - col2 ) + + - COUNT( * ) * COUNT( DISTINCT - + col0 ) / + 70 + - COUNT( * ) FROM tab2 AS cor0 WHERE NOT + col0 NOT BETWEEN + col1 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6934
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - MIN ( DISTINCT - col2 ) + + - COUNT ( * ) * COUNT ( DISTINCT - + col0 ) / + 70 + - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT + col0 NOT BETWEEN + col1 AND NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6935
SELECT - SUM( DISTINCT + 49 ) AS col0 FROM tab0 AS cor0
----
-49

skipif mysql # not compatible
query I rowsort label-6935
SELECT - SUM ( DISTINCT + 49 ) AS col0 FROM tab0 AS cor0
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6936
SELECT + + CAST( NULL AS SIGNED ) AS col0, - col0 AS col1 FROM tab2 AS cor0
----
NULL
-46
NULL
-64
NULL
-75

skipif mysql # not compatible
query II rowsort label-6936
SELECT + + CAST ( NULL AS INTEGER ) AS col0, - col0 AS col1 FROM tab2 AS cor0
----
NULL
-46
NULL
-64
NULL
-75

query II rowsort
SELECT DISTINCT - 35 + col0 AS col0, - col1 AS col1 FROM tab0
----
-20
-81
52
-21
62
-1

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 25 + + + 18 + + - col2 * - col2 > col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT ( - 17 ) AS col1, - col1 AS col0 FROM tab2 AS cor0
----
-17
-51
-17
-67
-17
-77

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

query I rowsort
SELECT ALL - 97 * - col0 FROM tab1 WHERE NOT NULL BETWEEN + 26 + - 60 / + + col0 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 40, - col0 col0 FROM tab0
----
40
-15
40
-87
40
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-6943
SELECT + COUNT( * ) * 85 AS col0 FROM tab2
----
255

skipif mysql # not compatible
query I rowsort label-6943
SELECT + COUNT ( * ) * 85 AS col0 FROM tab2
----
255

onlyif mysql # aggregate syntax: 
query I rowsort label-6944
SELECT - + COUNT( * ) * 86 * + - 90 FROM tab1 AS cor0
----
23220

skipif mysql # not compatible
query I rowsort label-6944
SELECT - + COUNT ( * ) * 86 * + - 90 FROM tab1 AS cor0
----
23220

query II rowsort
SELECT 3, - 8 AS col2 FROM tab0 AS cor0
----
3
-8
3
-8
3
-8

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

query I rowsort
SELECT ALL + 81 * + col2 AS col0 FROM tab1 AS cor0
----
4779
5508
7776

query I rowsort
SELECT DISTINCT - col2 FROM tab2 WHERE - col0 IS NOT NULL
----
-23
-40
-58

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

query II rowsort
SELECT ALL - col2 AS col0, col2 * col0 - col2 FROM tab0
----
-10
860
-47
658
-99
9504

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

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

query I rowsort
SELECT DISTINCT - 7 * - col1 FROM tab2
----
357
469
539

query I rowsort
SELECT + 54 + + 99 FROM tab1
----
153
153
153

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 87 + + + col2 col1, + 77 FROM tab0
----
134
77
186
77
97
77

query I rowsort
SELECT ALL + col2 - + + 0 + + - col1 + + - col0 * - 34 FROM tab0
----
2947
3396
476

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6957
SELECT DISTINCT + + CAST( + ( col0 ) AS SIGNED ) - + - col2 DIV col0 FROM tab2 cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-6957
SELECT DISTINCT + + CAST ( + ( col0 ) AS INTEGER ) - + - col2 / col0 FROM tab2 cor0
----
46
64
75

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6959
SELECT - - col2 + + col0 DIV + col0 AS col1 FROM tab0 AS cor0
----
100
11
48

skipif mysql # not compatible
query I rowsort label-6959
SELECT - - col2 + + col0 / + col0 AS col1 FROM tab0 AS cor0
----
100
11
48

query II rowsort
SELECT ALL + 2 AS col0, + col2 + - ( + col0 ) FROM tab2
----
2
-17
2
-23
2
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-6961
SELECT DISTINCT + SUM( 2 ) AS col1 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-6961
SELECT DISTINCT + SUM ( 2 ) AS col1 FROM tab1
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 1 * + col0 col2 FROM tab0
----
-15
-87
-97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6963
SELECT DISTINCT * FROM tab2 WHERE + CAST( + 79 AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6963
SELECT DISTINCT * FROM tab2 WHERE + CAST ( + 79 AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query I rowsort
SELECT DISTINCT - 89 AS col1 FROM tab1 WHERE col0 NOT BETWEEN ( col2 ) AND 40 * + col2
----
-89

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

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

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

query III rowsort
SELECT * FROM tab2 WHERE ( ( 47 ) * col1 ) IS NULL
----

query I rowsort
SELECT ALL + col1 FROM tab2 WHERE NOT - col2 IS NULL
----
51
67
77

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN ( - 86 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6972
SELECT CAST( NULL AS SIGNED ) AS col2 FROM tab0 WHERE ( - CAST( NULL AS DECIMAL ) ) <> NULL
----

skipif mysql # not compatible
query I rowsort label-6972
SELECT CAST ( NULL AS INTEGER ) AS col2 FROM tab0 WHERE ( - CAST ( NULL AS REAL ) ) <> NULL
----

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6974
SELECT + SUM( ( ( - col0 ) ) ) * ( - COUNT( * ) DIV + SUM( ALL 65 * - col2 ) ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6974
SELECT + SUM ( ( ( - col0 ) ) ) * ( - COUNT ( * ) / + SUM ( ALL 65 * - col2 ) ) AS col2 FROM tab0
----
0

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

skipif mysql # not compatible
query I rowsort label-6975
SELECT DISTINCT + COUNT ( * ) + 87 FROM tab1 WHERE NULL IS NOT NULL
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6976
SELECT DISTINCT * FROM tab1 WHERE col2 / - CAST( NULL AS SIGNED ) + - col0 <= - 45
----

skipif mysql # not compatible
query III rowsort label-6976
SELECT DISTINCT * FROM tab1 WHERE col2 / - CAST ( NULL AS INTEGER ) + - col0 <= - 45
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6977
SELECT DISTINCT - COUNT( * ) * - MAX( ALL col1 * col0 ) AS col0 FROM tab1
----
12831

skipif mysql # not compatible
query I rowsort label-6977
SELECT DISTINCT - COUNT ( * ) * - MAX ( ALL col1 * col0 ) AS col0 FROM tab1
----
12831

onlyif mysql # aggregate syntax: 
query I rowsort label-6978
SELECT COUNT( * ) FROM tab1 WHERE NOT NULL IN ( col0 - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-6978
SELECT COUNT ( * ) FROM tab1 WHERE NOT NULL IN ( col0 - col0 )
----
0

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

query I rowsort
SELECT col2 * 62 AS col1 FROM tab0
----
2914
6138
620

query I rowsort
SELECT DISTINCT - col1 * + col0 + + col0 * col0 FROM tab2
----
-230
-832
600

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6982
SELECT - CAST( col0 AS SIGNED ) * col2 + col1 FROM tab1
----
-4882
-5010
-6141

skipif mysql # not compatible
query I rowsort label-6982
SELECT - CAST ( col0 AS INTEGER ) * col2 + col1 FROM tab1
----
-4882
-5010
-6141

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

query I rowsort
SELECT col1 + 46 AS col2 FROM tab1
----
51
60
93

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

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

query III rowsort
SELECT * FROM tab1 WHERE 81 + + 91 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6987
SELECT ALL SUM ( ALL - col1 ) col2 FROM tab2 AS cor0
----
-195

query I rowsort
SELECT DISTINCT col1 FROM tab1 AS cor0 WHERE col1 + + col2 / 51 > ( - col0 * 71 - col2 )
----
14
47
5

query I rowsort
SELECT col0 * - col2 - 44 FROM tab2 AS cor0
----
-1102
-2604
-4394

query I rowsort
SELECT ( col2 ) AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
10
47
99

query I rowsort
SELECT ALL + col2 + + col2 AS col0 FROM tab1 AS cor0 WHERE ( - col2 ) IS NOT NULL
----
118
136
192

query I rowsort
SELECT + 77 - 60 * - col0 AS col2 FROM tab2 AS cor0
----
2837
3917
4577

query III rowsort
SELECT * FROM tab0 WHERE - col0 <> ( + 56 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6995
SELECT ALL + 50 + + 57 * CAST( - 59 / + 55 AS SIGNED ) AS col0 FROM tab0
----
-7
-7
-7

skipif mysql # not compatible
query I rowsort label-6995
SELECT ALL + 50 + + 57 * CAST ( - 59 / + 55 AS INTEGER ) AS col0 FROM tab0
----
-7
-7
-7

query I rowsort
SELECT DISTINCT col0 * col2 - col2 * col0 AS col1 FROM tab2
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6998
SELECT + 53 * + COUNT( DISTINCT - 48 ) AS col1 FROM tab2 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-6998
SELECT + 53 * + COUNT ( DISTINCT - 48 ) AS col1 FROM tab2 AS cor0
----
53

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + 86 * 48 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7000
SELECT + 60 DIV col2 AS col2 FROM tab0 AS cor0
----
0
1
6

skipif mysql # not compatible
query I rowsort label-7000
SELECT + 60 / col2 AS col2 FROM tab0 AS cor0
----
0
1
6

query I rowsort
SELECT 10 * col2 FROM tab1 AS cor0
----
590
680
960

query I rowsort
SELECT + + col1 * + 56 FROM tab1 cor0
----
2632
280
784

query I rowsort
SELECT col2 AS col2 FROM tab0 AS cor0 WHERE NOT col0 - col2 <> + 4 * + 83 + - col0
----

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 81 * 76 NOT BETWEEN col1 AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7006
SELECT 7 DIV COUNT( * ) FROM tab0
----
2

skipif mysql # not compatible
query I rowsort label-7006
SELECT 7 / COUNT ( * ) FROM tab0
----
2

query III rowsort
SELECT * FROM tab0 WHERE NOT + ( + col2 ) IN ( - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

skipif mysql # not compatible
query I rowsort label-7008
SELECT ALL + 13 / - col1 FROM tab0
----
-13
0
0

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

query I rowsort
SELECT ALL 35 * 49 + + col1 AS col0 FROM tab1 WHERE ( - 83 * - 65 ) NOT IN ( - ( 28 ) )
----
1720
1729
1762

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 * + 43 = 11 * col0 + + col0 * - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7015
SELECT + MIN( ALL - 60 ) * SUM( - col2 ) col2 FROM tab1 AS cor0
----
13380

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7015
SELECT + MIN ( ALL - 60 ) * SUM ( - col2 ) col2 FROM tab1 AS cor0
----
13380

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

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

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( col2 / - ( 80 ) - col2 ) >= - 70 + - 65
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7019
SELECT DISTINCT MIN( DISTINCT + col1 ) col1 FROM tab0 WHERE NOT + + col0 NOT BETWEEN ( NULL ) AND ( NULL )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7019
SELECT DISTINCT MIN ( DISTINCT + col1 ) col1 FROM tab0 WHERE NOT + + col0 NOT BETWEEN ( NULL ) AND ( NULL )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7020
SELECT - 89 + - col2 + - + col0 - col2 DIV 84 AS col0 FROM tab0
----
-151
-186
-286

skipif mysql # not compatible
query I rowsort label-7020
SELECT - 89 + - col2 + - + col0 - col2 / 84 AS col0 FROM tab0
----
-151
-186
-286

query I rowsort
SELECT 82 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

query I rowsort
SELECT ALL + 75 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7028
SELECT - COUNT( * ) * + 62 AS col2 FROM tab0 cor0
----
-186

skipif mysql # not compatible
query I rowsort label-7028
SELECT - COUNT ( * ) * + 62 AS col2 FROM tab0 cor0
----
-186

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

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

query I rowsort
SELECT DISTINCT + - col2 * - ( - + 47 ) + - col0 FROM tab2 cor0
----
-1127
-1944
-2801

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

query I rowsort
SELECT DISTINCT col0 + + 52 - - 63 AS col2 FROM tab1
----
166
200
206

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

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

query I rowsort
SELECT DISTINCT + 80 * col0 FROM tab0
----
1200
6960
7760

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7036
SELECT - col1 + + CAST( + col1 AS SIGNED ) * col1 FROM tab0
----
0
420
6480

skipif mysql # not compatible
query I rowsort label-7036
SELECT - col1 + + CAST ( + col1 AS INTEGER ) * col1 FROM tab0
----
0
420
6480

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

query I rowsort
SELECT + 70 - 42 FROM tab1 WHERE + col1 IN ( - - 25 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7039
SELECT ALL 94 + - CAST( NULL AS SIGNED ) * col0 AS col2 FROM tab2 WHERE col0 + 77 IS NOT NULL AND ( NULL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7039
SELECT ALL 94 + - CAST ( NULL AS INTEGER ) * col0 AS col2 FROM tab2 WHERE col0 + 77 IS NOT NULL AND ( NULL ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7040
SELECT + col2 + + + col0 + + col2 DIV - - 9 FROM tab1
----
150
157
166

skipif mysql # not compatible
query I rowsort label-7040
SELECT + col2 + + + col0 + + col2 / - - 9 FROM tab1
----
150
157
166

onlyif mysql # aggregate syntax: 
query I rowsort label-7041
SELECT DISTINCT - 45 - + - ( SUM( + + 19 ) ) FROM tab2
----
12

skipif mysql # not compatible
query I rowsort label-7041
SELECT DISTINCT - 45 - + - ( SUM ( + + 19 ) ) FROM tab2
----
12

query I rowsort
SELECT + 3 FROM tab2 WHERE ( - 4 ) IS NULL
----

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7046
SELECT DISTINCT + + ( MIN( + 31 ) ) col2 FROM tab2 cor0
----
31

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7046
SELECT DISTINCT + + ( MIN ( + 31 ) ) col2 FROM tab2 cor0
----
31

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

query I rowsort
SELECT ALL col0 + - 43 AS col0 FROM tab0 AS cor0
----
-28
44
54

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( - ( - - col1 ) ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7051
SELECT MIN( ALL + 25 ) - + COUNT( ALL col2 ) FROM tab2
----
22

skipif mysql # not compatible
query I rowsort label-7051
SELECT MIN ( ALL + 25 ) - + COUNT ( ALL col2 ) FROM tab2
----
22

query III rowsort
SELECT ALL * FROM tab2 WHERE + 29 NOT BETWEEN col2 AND col2 * - 51 + + col2 * + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7053
SELECT ALL + ( + - 84 ) * MAX( 23 ) FROM tab2 AS cor0
----
-1932

skipif mysql # not compatible
query I rowsort label-7053
SELECT ALL + ( + - 84 ) * MAX ( 23 ) FROM tab2 AS cor0
----
-1932

query I rowsort
SELECT ALL col0 FROM tab0 AS cor0 WHERE NOT + col0 BETWEEN NULL AND ( col1 ) * col1
----
97

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - 52 col0, 50 col0 FROM tab2 AS cor0
----
52
50
52
50
52
50

query I rowsort
SELECT ALL - col1 * - + col1 FROM tab1 AS cor0
----
196
2209
25

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

query I rowsort
SELECT - 28 * + + col0 * + - col0 FROM tab2
----
114688
157500
59248

onlyif mysql # aggregate syntax: 
query I rowsort label-7063
SELECT ALL + COUNT( DISTINCT + + col0 ) * - COUNT( * ) col2 FROM tab0
----
-9

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7064
SELECT col2 DIV col2 AS col2, CAST( col1 AS SIGNED ) DIV col1 FROM tab2
----
1
1
1
1
1
1

skipif mysql # not compatible
query II rowsort label-7064
SELECT col2 / col2 AS col2, CAST ( col1 AS INTEGER ) / col1 FROM tab2
----
1
1
1
1
1
1

query I rowsort
SELECT DISTINCT col2 * - 87 FROM tab0
----
-4089
-8613
-870

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN NULL AND + 56
----

query I rowsort
SELECT - col1 * - col0 AS col0 FROM tab1 WHERE NOT ( - 30 NOT IN ( + col1 + + col1 ) )
----

query I rowsort
SELECT ALL col0 AS col2 FROM tab2 WHERE NOT ( NOT col0 NOT BETWEEN - col0 AND NULL )
----

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

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

query I rowsort
SELECT ALL + - 80 AS col2 FROM tab0 WHERE col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-7071
SELECT DISTINCT 77, col0 DIV - col1 AS col2 FROM tab0
----
77
-4
77
-97
77
0

skipif mysql # not compatible
query II rowsort label-7071
SELECT DISTINCT 77, col0 / - col1 AS col2 FROM tab0
----
77
-4
77
-97
77
0

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

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

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

query II rowsort
SELECT ALL + ( - col0 ) AS col2, - 66 FROM tab2
----
-46
-66
-64
-66
-75
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-7076
SELECT + - MIN( DISTINCT + - ( + - 98 ) ) * 2 + SUM( col0 ) AS col1 FROM tab2 AS cor0
----
-11

skipif mysql # not compatible
query I rowsort label-7076
SELECT + - MIN ( DISTINCT + - ( + - 98 ) ) * 2 + SUM ( col0 ) AS col1 FROM tab2 AS cor0
----
-11

query II rowsort
SELECT ALL + col1 * - col1 + col2, 58 AS col1 FROM tab0 AS cor0 WHERE NOT ( - col2 ) IS NULL
----
-431
58
-6514
58
98
58

query I rowsort
SELECT ALL - 44 + + - ( + col1 ) AS col2 FROM tab1 AS cor0
----
-49
-58
-91

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

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

query I rowsort
SELECT + ( - col1 ) + + + 4 FROM tab2 cor0
----
-47
-63
-73

query I rowsort
SELECT - col2 + 81 * col1 * + - col2 FROM tab0 AS cor0
----
-17020
-308414
-8118

query I rowsort
SELECT DISTINCT + 35 + - - 15 * - col2 AS col0 FROM tab0 AS cor0
----
-115
-1450
-670

query II rowsort
SELECT col2, col2 * + + 20 FROM tab2
----
23
460
40
800
58
1160

query I rowsort
SELECT DISTINCT 5 - - + 40 FROM tab1
----
45

query I rowsort
SELECT + 82 AS col1 FROM tab0 WHERE - 40 - ( - col1 ) NOT IN ( + col1 )
----
82
82
82

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 - + col0 col1 FROM tab2
----
0

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

query I rowsort
SELECT + ( col2 ) * - col1 * + + 28 AS col0 FROM tab0 AS cor0
----
-106596
-2772
-5880

query I rowsort
SELECT DISTINCT + - ( - 77 ) AS col0 FROM tab0 AS cor0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7092
SELECT DISTINCT ( - MIN( + 62 ) ) FROM tab2 AS cor0
----
-62

skipif mysql # not compatible
query I rowsort label-7092
SELECT DISTINCT ( - MIN ( + 62 ) ) FROM tab2 AS cor0
----
-62

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7095
SELECT + 6 DIV + 75 col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7095
SELECT + 6 / + 75 col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - + col0 AS col0 FROM tab1 AS cor0 WHERE NOT ( - col1 ) IN ( col2, col1 )
----
-51
-85
-91

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

query I rowsort
SELECT ALL - col2 + + col0 AS col2 FROM tab0 cor0 WHERE NULL IS NULL
----
-2
-32
77

query II rowsort
SELECT col2 AS col2, - col2 + 39 FROM tab0
----
10
29
47
-8
99
-60

query I rowsort
SELECT ALL 17 * + col0 FROM tab1 WHERE NOT - 89 + + col2 > ( + 76 )
----
1445
1547
867

onlyif mysql # aggregate syntax: 
query II rowsort label-7101
SELECT ALL - COUNT( ALL - - 15 ) * - COUNT( * ), + COUNT( * ) AS col2 FROM tab0
----
9
3

skipif mysql # not compatible
query II rowsort label-7101
SELECT ALL - COUNT ( ALL - - 15 ) * - COUNT ( * ), + COUNT ( * ) AS col2 FROM tab0
----
9
3

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7102
SELECT ALL + + SUM ( ALL + + CAST ( NULL AS INTEGER ) ) col2 FROM tab0 WHERE NULL IS NULL
----
NULL

query I rowsort
SELECT ALL 28 + - col1 * + 56 FROM tab2
----
-2828
-3724
-4284

onlyif mysql # DIV for integer division: 
query I rowsort label-7104
SELECT col0 DIV - ( + 28 ) FROM tab0
----
-3
-3
0

skipif mysql # not compatible
query I rowsort label-7104
SELECT col0 / - ( + 28 ) FROM tab0
----
-3
-3
0

query I rowsort
SELECT ALL - 72 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ad521144c976ff25e77cdf10a84d1dc6

query III rowsort
SELECT * FROM tab1 WHERE 4 / 12 > NULL
----

query I rowsort
SELECT ALL 14 * + - col0 AS col1 FROM tab2
----
-1050
-644
-896

query I rowsort
SELECT DISTINCT + col2 * - col1 * + + 58 AS col0 FROM tab1 AS cor0
----
-17110
-185368
-77952

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

query I rowsort
SELECT + col2 * + col1 + - col2 + + - 4 * + 7 AS col2 FROM tab0 AS cor0
----
-28
172
3732

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7112
SELECT + 93 * COUNT( ALL + ( + 44 ) ) FROM tab2 cor0
----
279

skipif mysql # not compatible
query I rowsort label-7112
SELECT + 93 * COUNT ( ALL + ( + 44 ) ) FROM tab2 cor0
----
279

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 92 >= 87
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - ( + col0 ) * + col0 FROM tab0 AS cor0
----
-225
-7569
-9409

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

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

query II rowsort
SELECT - col2 * + - col2 AS col2, - col2 - - col2 * 58 FROM tab0 AS cor0 WHERE + 47 / col1 / col1 * col2 IS NULL
----

query I rowsort
SELECT DISTINCT 53 FROM tab1 WHERE + col0 BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT DISTINCT - 12 + + 93 + + ( - 92 ) * - 70 FROM tab0
----
6521

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

query I rowsort
SELECT + col1 + - 31 AS col1 FROM tab1
----
-17
-26
16

query I rowsort
SELECT ALL - 18 + + col0 AS col0 FROM tab2
----
28
46
57

query I rowsort
SELECT col1 + + - 68 - + ( col0 ) * - - col1 + + 6 FROM tab0
----
-1196
-158
-1868

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

skipif mysql # not compatible
query I rowsort label-7123
SELECT DISTINCT + 35 - ( COUNT ( * ) ) * MIN ( - CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

query I rowsort
SELECT + col1 + 35 * + col2 FROM tab0
----
1726
3466
371

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7126
SELECT * FROM tab0 AS cor0 WHERE - col1 IN ( - CAST( + 97 AS SIGNED ) / + - col1 )
----

skipif mysql # not compatible
query III rowsort label-7126
SELECT * FROM tab0 AS cor0 WHERE - col1 IN ( - CAST ( + 97 AS INTEGER ) / + - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7127
SELECT ALL - col0 * - 13 AS col1, col1 + 52 AS col1 FROM tab0 WHERE NOT ( + + ( - CAST( NULL AS SIGNED ) ) ) IS NULL
----

skipif mysql # not compatible
query II rowsort label-7127
SELECT ALL - col0 * - 13 AS col1, col1 + 52 AS col1 FROM tab0 WHERE NOT ( + + ( - CAST ( NULL AS INTEGER ) ) ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7128
SELECT * FROM tab1 AS cor0 WHERE NOT NULL >= CAST( + - 47 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7128
SELECT * FROM tab1 AS cor0 WHERE NOT NULL >= CAST ( + - 47 AS INTEGER )
----

query I rowsort
SELECT ALL + + col2 AS col2 FROM tab0 AS cor0 WHERE + col2 * - - 38 * - 61 NOT IN ( + 89, + ( 32 ) * - 8 + + col2 * - 99 + - - 91 )
----
10
47
99

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7131
SELECT SUM( CAST( - 50 AS SIGNED ) ) FROM tab1 AS cor0
----
-150

skipif mysql # not compatible
query I rowsort label-7131
SELECT SUM ( CAST ( - 50 AS INTEGER ) ) FROM tab1 AS cor0
----
-150

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7133
SELECT DISTINCT - MIN( + - col0 ) FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-7133
SELECT DISTINCT - MIN ( + - col0 ) FROM tab0 AS cor0
----
97

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL > - 70
----

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7136
SELECT - ( - 11 ) DIV + - COUNT( * ) AS col0 FROM tab2
----
-3

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

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN col0 + - 57 AND - col0 / - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7138
SELECT SUM( DISTINCT ( + 59 ) ) AS col0 FROM tab0 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-7138
SELECT SUM ( DISTINCT ( + 59 ) ) AS col0 FROM tab0 AS cor0
----
59

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

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

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7143
SELECT ALL 82 * + 34 - COUNT( * ) + MIN( - CAST( NULL AS SIGNED ) ) * - COUNT( * ) - + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7143
SELECT ALL 82 * + 34 - COUNT ( * ) + MIN ( - CAST ( NULL AS INTEGER ) ) * - COUNT ( * ) - + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7144
SELECT ALL + 79 * - + MIN( DISTINCT - - col0 ) FROM tab2 AS cor0
----
-3634

skipif mysql # not compatible
query I rowsort label-7144
SELECT ALL + 79 * - + MIN ( DISTINCT - - col0 ) FROM tab2 AS cor0
----
-3634

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col0 / + 3 <> + col0
----

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE + col2 BETWEEN + 10 AND NULL
----

query I rowsort
SELECT col1 + - - col1 AS col0 FROM tab2 cor0
----
102
134
154

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

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

query I rowsort
SELECT + - ( + col2 ) * col0 + col0 * - + ( + col0 ) + col0 FROM tab1 AS cor0
----
-12155
-14378
-7446

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7150
SELECT ALL + + COUNT( * ) * - 78 DIV - - 35 FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-7150
SELECT ALL + + COUNT ( * ) * - 78 / - - 35 FROM tab1 AS cor0
----
-6

query I rowsort
SELECT ALL + 46 + - 9 FROM tab0 AS cor0
----
37
37
37

query I rowsort
SELECT ALL col2 * - - 96 + + col2 AS col1 FROM tab2
----
2231
3880
5626

query I rowsort
SELECT 57 * + col2 FROM tab1
----
3363
3876
5472

onlyif mysql # aggregate syntax: 
query I rowsort label-7154
SELECT ALL - MIN( + col1 ) AS col1 FROM tab1 WHERE NULL IS NULL
----
-5

skipif mysql # not compatible
query I rowsort label-7154
SELECT ALL - MIN ( + col1 ) AS col1 FROM tab1 WHERE NULL IS NULL
----
-5

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - - 53 * - col2 * - 60 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7156
SELECT DISTINCT - COUNT( * ) - 81 + + - COUNT( * ) AS col2 FROM tab0
----
-87

skipif mysql # not compatible
query I rowsort label-7156
SELECT DISTINCT - COUNT ( * ) - 81 + + - COUNT ( * ) AS col2 FROM tab0
----
-87

query I rowsort
SELECT ALL col2 + 6 * - col1 + - 82 FROM tab0
----
-198
-521
11

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

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

query I rowsort
SELECT - col2 - + - col1 - - 14 - + 32 + - col1 * - - col1 AS col0 FROM tab2
----
-2591
-4498
-5910

query I rowsort
SELECT + + 45 * col2 + + col2 AS col1 FROM tab0 AS cor0
----
2162
4554
460

onlyif mysql # aggregate syntax: 
query I rowsort label-7161
SELECT - 65 - + - 9 + ( - ( 62 ) ) * + SUM( ALL - - col2 ) FROM tab1 AS cor0 WHERE NOT col1 * + - 56 * 97 * + + col0 + - col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7161
SELECT - 65 - + - 9 + ( - ( 62 ) ) * + SUM ( ALL - - col2 ) FROM tab1 AS cor0 WHERE NOT col1 * + - 56 * 97 * + + col0 + - col2 IS NOT NULL
----
NULL

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

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

query I rowsort
SELECT 81 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NULL
----

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

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

query II rowsort
SELECT - ( + 55 ), - 2 AS col2 FROM tab0 AS cor0
----
-55
-2
-55
-2
-55
-2

query I rowsort
SELECT DISTINCT ( + - col1 ) AS col1 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7167
SELECT DISTINCT col0 FROM tab2 AS cor0 WHERE NULL IN ( 27 + + col0 + CAST( NULL AS SIGNED ) + - 57 * + col2 * 9 )
----

skipif mysql # not compatible
query I rowsort label-7167
SELECT DISTINCT col0 FROM tab2 AS cor0 WHERE NULL IN ( 27 + + col0 + CAST ( NULL AS INTEGER ) + - 57 * + col2 * 9 )
----

query I rowsort
SELECT DISTINCT - col2 + + + col1 + + + col1 + + col2 FROM tab1 AS cor0
----
10
28
94

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

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 I rowsort label-7171
SELECT - col0 DIV - + col0 AS col2 FROM tab0
----
1
1
1

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7173
SELECT + 37 DIV + - COUNT( DISTINCT 7 ) AS col0 FROM tab2
----
-37

skipif mysql # not compatible
query I rowsort label-7173
SELECT + 37 / + - COUNT ( DISTINCT 7 ) AS col0 FROM tab2
----
-37

query I rowsort
SELECT DISTINCT - col1 / - 87 / - col2 AS col1 FROM tab2 WHERE NOT NULL < + col1
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7176
SELECT - 3 DIV - - 97 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7176
SELECT - 3 / - - 97 FROM tab0
----
0
0
0

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

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( + 28 ) < NULL
----

query I rowsort
SELECT ALL col2 + + 94 FROM tab1
----
153
162
190

query I rowsort
SELECT ALL col0 * 27 * - col2 AS col1 FROM tab1 AS cor0
----
-132192
-135405
-167076

query I rowsort
SELECT DISTINCT - 55 + - col2 FROM tab0 AS cor0 WHERE NOT col0 + - + col2 > NULL
----

query I rowsort
SELECT - col1 * - 25 + - col2 + col0 FROM tab1 cor0 WHERE + col1 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NOT + 36 > + col1 * - + col1 * + + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - - col2 FROM tab0 cor0 WHERE NULL >= ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7185
SELECT - col1 DIV + col2 + - 46 FROM tab2
----
-47
-47
-48

skipif mysql # not compatible
query I rowsort label-7185
SELECT - col1 / + col2 + - 46 FROM tab2
----
-47
-47
-48

query I rowsort
SELECT + ( + 71 ) + + 5 AS col0 FROM tab2 WHERE - 36 * col1 + - + 68 <> + col1
----
76
76
76

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7188
SELECT ALL col2 DIV + + 63 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-7188
SELECT ALL col2 / + + 63 FROM tab1
----
0
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7189
SELECT + COUNT( * ) FROM tab0 WHERE NOT - col0 + - 88 NOT BETWEEN ( + + col0 ) AND 96 / + col1
----
0

skipif mysql # not compatible
query I rowsort label-7189
SELECT + COUNT ( * ) FROM tab0 WHERE NOT - col0 + - 88 NOT BETWEEN ( + + col0 ) AND 96 / + col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7190
SELECT col2 DIV ( + + col1 ) FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7190
SELECT col2 / ( + + col1 ) FROM tab2
----
0
0
0

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 40 * + col1 col0 FROM tab0
----
3240
40
840

onlyif mysql # aggregate syntax: 
query I rowsort label-7193
SELECT SUM( - - 70 ) FROM tab1
----
210

skipif mysql # not compatible
query I rowsort label-7193
SELECT SUM ( - - 70 ) FROM tab1
----
210

query I rowsort
SELECT DISTINCT + 27 * + col2 FROM tab2 AS cor0
----
1080
1566
621

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-7196
SELECT ALL - 30 DIV 45, 94 col2 FROM tab2
----
0
94
0
94
0
94

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7196
SELECT ALL - 30 / 45, 94 col2 FROM tab2
----
0
94
0
94
0
94

onlyif mysql # DIV for integer division: 
query I rowsort label-7197
SELECT ALL + col2 DIV + 54 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7197
SELECT ALL + col2 / + 54 FROM tab1
----
1
1
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7199
SELECT ALL - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE - col2 + + + 41 + - - 2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7199
SELECT ALL - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE - col2 + + + 41 + - - 2 IS NULL
----
0

query II rowsort
SELECT + + 69 AS col2, col0 * + col1 + - - 54 + - col1 FROM tab2 AS cor0
----
69
2349
69
4905
69
5012

onlyif mysql # DIV for integer division: 
query I rowsort label-7201
SELECT + col0 DIV 25 + + col2 FROM tab1 AS cor0
----
62
71
98

skipif mysql # not compatible
query I rowsort label-7201
SELECT + col0 / 25 + + col2 FROM tab1 AS cor0
----
62
71
98

query I rowsort
SELECT + 15 + - 34 - col1 FROM tab1 AS cor0
----
-24
-33
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-7203
SELECT ALL - - col0 DIV - 90 + + 90 FROM tab2 AS cor0
----
90
90
90

skipif mysql # not compatible
query I rowsort label-7203
SELECT ALL - - col0 / - 90 + + 90 FROM tab2 AS cor0
----
90
90
90

query I rowsort
SELECT ALL + ( + 2 ) AS col0 FROM tab1
----
2
2
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7205
SELECT ALL + COUNT( * ) col1 FROM tab1 WHERE NOT + + col1 >= NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7205
SELECT ALL + COUNT ( * ) col1 FROM tab1 WHERE NOT + + col1 >= NULL
----
0

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

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

query I rowsort
SELECT - + col1 / col1 AS col1 FROM tab0 WHERE NULL BETWEEN - col2 * - - 86 AND - 67
----

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

skipif mysql # not compatible
query I rowsort label-7208
SELECT DISTINCT - COUNT ( * ) / - 77 * + + 85 AS col1 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7209
SELECT DISTINCT - MIN( ALL - col1 ) col0, COUNT( * ) col1 FROM tab0 AS cor0
----
81
3

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

query I rowsort
SELECT ALL - 85 + + col2 * + col0 + - - ( + - col2 ) FROM tab1
----
4715
4871
6035

query II rowsort
SELECT DISTINCT + col1 * + 57 + - 52, col2 FROM tab0
----
1145
10
4565
47
5
99

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

query II rowsort
SELECT - + col1 AS col2, - 79 * + col0 AS col2 FROM tab1 AS cor0
----
-14
-4029
-47
-7189
-5
-6715

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7214
SELECT ALL - ( - ( - + CAST( + COUNT( * ) AS SIGNED ) ) ) + - 54 FROM tab1 cor0 WHERE NOT - col0 - 43 + + 1 BETWEEN - + 11 + - + col0 / - ( - col2 ) AND - ( + 72 ) * - 26 * - 56
----
-57

skipif mysql # not compatible
query I rowsort label-7214
SELECT ALL - ( - ( - + CAST ( + COUNT ( * ) AS INTEGER ) ) ) + - 54 FROM tab1 cor0 WHERE NOT - col0 - 43 + + 1 BETWEEN - + 11 + - + col0 / - ( - col2 ) AND - ( + 72 ) * - 26 * - 56
----
-57

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7216
SELECT ALL - + COUNT( * ) * - - 36 FROM tab1 AS cor0
----
-108

skipif mysql # not compatible
query I rowsort label-7216
SELECT ALL - + COUNT ( * ) * - - 36 FROM tab1 AS cor0
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-7217
SELECT ALL COUNT( * ) * + + 77 * 50 AS col1 FROM tab1
----
11550

skipif mysql # not compatible
query I rowsort label-7217
SELECT ALL COUNT ( * ) * + + 77 * 50 AS col1 FROM tab1
----
11550

query I rowsort
SELECT - 0 * + col2 AS col0 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7219
SELECT - MIN( + col1 ) FROM tab2 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7219
SELECT - MIN ( + col1 ) FROM tab2 WHERE NOT NULL IS NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL <> - 77 + + col2 + + col0 * col2 * - - 98
----

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

query II rowsort
SELECT ALL - col2 + + 92 + - ( + 75 ) * - col0, col0 FROM tab1 AS cor0
----
3821
51
6408
85
6849
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * ( 68 ) col2 FROM tab2 WHERE + + 27 IS NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7225
SELECT ALL CAST( + 95 AS SIGNED ) + + + col2 FROM tab2
----
118
135
153

skipif mysql # not compatible
query I rowsort label-7225
SELECT ALL CAST ( + 95 AS INTEGER ) + + + col2 FROM tab2
----
118
135
153

query I rowsort
SELECT ( 64 ) + - - col1 AS col0 FROM tab0
----
145
65
85

query I rowsort
SELECT col0 * + 29 + 20 FROM tab0
----
2543
2833
455

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 * - col1 + ( - col0 ) col0 FROM tab0 AS cor0
----
-528
-6576
-98

query I rowsort
SELECT DISTINCT - 93 * ( + + col0 ) * col2 AS col1 FROM tab0 AS cor0
----
-65565
-80910
-893079

query I rowsort
SELECT ALL ( col0 ) - - - col1 + + - 66 FROM tab2
----
-58
-71
-79

query I rowsort
SELECT DISTINCT + 69 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
69

query I rowsort
SELECT 98 FROM tab2 WHERE - 88 * - 13 + - + col1 IS NULL
----

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

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

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

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

query I rowsort
SELECT col1 * + 42 AS col0 FROM tab1 AS cor0
----
1974
210
588

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 2 NOT BETWEEN col2 AND - - col0 + + 36 * - ( - - 25 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7240
SELECT MAX( DISTINCT + + col0 ) * + - ( - 20 ) AS col2 FROM tab2
----
1500

skipif mysql # not compatible
query I rowsort label-7240
SELECT MAX ( DISTINCT + + col0 ) * + - ( - 20 ) AS col2 FROM tab2
----
1500

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7243
SELECT ALL - SUM( DISTINCT + 38 ) AS col0 FROM tab2
----
-38

skipif mysql # not compatible
query I rowsort label-7243
SELECT ALL - SUM ( DISTINCT + 38 ) AS col0 FROM tab2
----
-38

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL <= 21
----

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

skipif mysql # not compatible
query I rowsort label-7245
SELECT + - 95 * COUNT ( * ) FROM tab1 AS cor0
----
-285

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

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

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

query I rowsort
SELECT + 49 * + + col0 FROM tab2
----
2254
3136
3675

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7249
SELECT ALL + COUNT( * ) DIV - 78 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-7249
SELECT ALL + COUNT ( * ) / - 78 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7251
SELECT DISTINCT + SUM( - col1 ) * - 66 AS col0 FROM tab1 AS cor0
----
4356

skipif mysql # not compatible
query I rowsort label-7251
SELECT DISTINCT + SUM ( - col1 ) * - 66 AS col0 FROM tab1 AS cor0
----
4356

query I rowsort
SELECT DISTINCT + 71 * - - 6 + + - col0 + col1 + + - 41 * - 71 + col0 FROM tab0 cor0
----
3338
3358
3418

query I rowsort
SELECT + - col2 * - col2 * + col0 + + ( 42 ) + - col1 FROM tab0 AS cor0
----
33096
8721
950738

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7254
SELECT + 52 + SUM( DISTINCT + + col1 ) * 65 DIV + COUNT( 87 ) FROM tab0 AS cor0
----
2283

skipif mysql # not compatible
query I rowsort label-7254
SELECT + 52 + SUM ( DISTINCT + + col1 ) * 65 / + COUNT ( 87 ) FROM tab0 AS cor0
----
2283

onlyif mysql # aggregate syntax: 
query II rowsort label-7255
SELECT COUNT( * ) AS col0, 90 FROM tab0
----
3
90

skipif mysql # not compatible
query II rowsort label-7255
SELECT COUNT ( * ) AS col0, 90 FROM tab0
----
3
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - + 89 col2 FROM tab1
----
-21
-30
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7257
SELECT DISTINCT - CAST( COUNT( * ) AS SIGNED ) FROM tab2
----
-3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7258
SELECT DISTINCT COUNT( * ) FROM tab0, tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 30 >= NULL
----

query I rowsort
SELECT DISTINCT 33 AS col0 FROM tab1, tab2 AS cor0
----
33

query I rowsort
SELECT + 40 * + 88 AS col0 FROM tab2
----
3520
3520
3520

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

query I rowsort
SELECT - - 5 - - + col1 FROM tab2 AS cor0
----
56
72
82

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7264
SELECT * FROM tab2 cor0 WHERE ( - - CAST( - col1 AS SIGNED ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7264
SELECT * FROM tab2 cor0 WHERE ( - - CAST ( - col1 AS INTEGER ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - + col1 - 27 FROM tab2 AS cor0
----
-104
-78
-94

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

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

query I rowsort
SELECT ALL col2 * col2 * + col2 + col2 AS col0 FROM tab2
----
12190
195170
64040

query I rowsort
SELECT DISTINCT col2 - + - 29 AS col1 FROM tab0
----
128
39
76

onlyif mysql # aggregate syntax: 
query II rowsort label-7269
SELECT ALL - COUNT( * ) * COUNT( * ), - ( 53 ) AS col1 FROM tab2
----
-9
-53

skipif mysql # not compatible
query II rowsort label-7269
SELECT ALL - COUNT ( * ) * COUNT ( * ), - ( 53 ) AS col1 FROM tab2
----
-9
-53

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL = - 9
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7271
SELECT + col0, - col2 AS col2 FROM tab1 cor0 WHERE NOT ( NULL ) <> + + col0 * - + 77 * - - CAST( NULL AS DECIMAL ) * col0 + + 96 + + + col0
----

skipif mysql # not compatible
query II rowsort label-7271
SELECT + col0, - col2 AS col2 FROM tab1 cor0 WHERE NOT ( NULL ) <> + + col0 * - + 77 * - - CAST ( NULL AS REAL ) * col0 + + 96 + + + col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7272
SELECT - COUNT( * ) AS col1, COUNT( * ) - - 37 AS col2 FROM tab1 AS cor0
----
-3
40

skipif mysql # not compatible
query II rowsort label-7272
SELECT - COUNT ( * ) AS col1, COUNT ( * ) - - 37 AS col2 FROM tab1 AS cor0
----
-3
40

query II rowsort
SELECT + 63 * + + col0 AS col0, col1 AS col0 FROM tab2 AS cor0
----
2898
51
4032
77
4725
67

query II rowsort
SELECT ALL col2, 29 FROM tab0 cor0
----
10
29
47
29
99
29

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7277
SELECT ALL CAST( COUNT( * ) AS SIGNED ) DIV 85 col2 FROM tab1 cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7277
SELECT ALL CAST ( COUNT ( * ) AS INTEGER ) / 85 col2 FROM tab1 cor0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7278
SELECT ALL 73 col0, COUNT( * ) col0 FROM tab0 AS cor0
----
73
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7278
SELECT ALL 73 col0, COUNT ( * ) col0 FROM tab0 AS cor0
----
73
3

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7281
SELECT - 26 DIV + - 25 AS col2 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7281
SELECT - 26 / + - 25 AS col2 FROM tab0
----
1
1
1

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7287
SELECT ( + 38 ) * 70, MAX( ALL ( + col1 ) ) * MAX( + col1 ) AS col2 FROM tab2
----
2660
5929

skipif mysql # not compatible
query II rowsort label-7287
SELECT ( + 38 ) * 70, MAX ( ALL ( + col1 ) ) * MAX ( + col1 ) AS col2 FROM tab2
----
2660
5929

query I rowsort
SELECT 97 * + - 19 FROM tab0
----
-1843
-1843
-1843

query I rowsort
SELECT + col0 * + + ( + + col1 ) FROM tab0 cor0
----
1215
1827
97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN - col0 / + 36 AND 90 * col1
----

query II rowsort
SELECT DISTINCT col0 * + col1 - + + col2, col0 FROM tab2 AS cor0
----
2323
46
4888
64
4967
75

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 NOT IN ( col2, 34 * + - 60, + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 85 - + col1 col2 FROM tab0 AS cor0 WHERE NOT ( + col2 ) > NULL
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7294
SELECT + col0 col0 FROM tab2 WHERE + CAST ( col1 AS INTEGER ) IS NOT NULL
----
46
64
75

query II rowsort
SELECT ALL - 42 + 44 AS col1, - 18 * + + col1 + - + 43 AS col1 FROM tab1
----
2
-133
2
-295
2
-889

query I rowsort
SELECT ALL col0 - 91 FROM tab0
----
-4
-76
6

query I rowsort
SELECT col1 + + col2 + ( + ( - + col0 ) ) * - 17 FROM tab0
----
1510
1749
383

onlyif mysql # DIV for integer division: 
query I rowsort label-7298
SELECT ALL - col2 DIV + 39 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-7298
SELECT ALL - col2 / + 39 FROM tab2
----
-1
-1
0

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

skipif mysql # not compatible
query I rowsort label-7299
SELECT COUNT ( * ) + - 0 FROM tab1
----
3

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT IN ( + - 51 / + col2 )
----

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT ( + col2 ) * 12 col0, + col1 * - col0 FROM tab1
----
1152
-714
708
-425
816
-4277

query I rowsort
SELECT - 97 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to e4a6bd848a69226cbb7ad3d154be321b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 AS col2, + col1 col0 FROM tab0 AS cor0
----
15
81
87
21
97
1

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

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

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

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

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

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

query I rowsort
SELECT + - col0 * + 92 FROM tab0 AS cor0
----
-1380
-8004
-8924

onlyif mysql # DIV for integer division: 
query I rowsort label-7311
SELECT col1 DIV + 18 AS col2 FROM tab0 AS cor0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-7311
SELECT col1 / + 18 AS col2 FROM tab0 AS cor0
----
0
1
4

query II rowsort
SELECT DISTINCT + col1 AS col2, 51 AS col1 FROM tab0
----
1
51
21
51
81
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7313
SELECT DISTINCT MAX( DISTINCT + 6 ) AS col0 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-7313
SELECT DISTINCT MAX ( DISTINCT + 6 ) AS col0 FROM tab0
----
6

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 31, - ( col0 ) * + - 12 col2 FROM tab1 cor0
----
31
1020
31
1092
31
612

query I rowsort
SELECT - ( + 46 ) AS col2 FROM tab1 AS cor0
----
-46
-46
-46

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

query II rowsort
SELECT ALL col0 + - + col1, col0 + + + col1 + + - 6 AS col2 FROM tab0
----
-66
90
66
102
96
92

query I rowsort
SELECT DISTINCT + + col1 AS col0 FROM tab2 WHERE NULL <> ( - col2 ) / - - 44
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7320
SELECT DISTINCT MAX( DISTINCT + 93 ) + + 95 FROM tab1
----
188

skipif mysql # not compatible
query I rowsort label-7320
SELECT DISTINCT MAX ( DISTINCT + 93 ) + + 95 FROM tab1
----
188

query I rowsort
SELECT + 90 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

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

skipif mysql # not compatible
query II rowsort label-7322
SELECT - - COUNT ( * ) + - COUNT ( * ), + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE ( - col2 ) BETWEEN col2 AND + col0 * + 81 * - col2
----
0
0

query I rowsort
SELECT - col1 * + 54 * col0 + + 57 * - col0 FROM tab0 cor0
----
-103617
-10767
-66465

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7324
SELECT + COUNT( DISTINCT - col0 ) + 28 + + 20 + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7324
SELECT + COUNT ( DISTINCT - col0 ) + 28 + + 20 + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7326
SELECT DISTINCT + SUM( - - col2 ) + COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7326
SELECT DISTINCT + SUM ( - - col2 ) + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7327
SELECT + COUNT( * ) * - COUNT( col1 ) FROM tab2 WHERE NULL < - + col2 - + col0 * - 44 - + col2
----
0

skipif mysql # not compatible
query I rowsort label-7327
SELECT + COUNT ( * ) * - COUNT ( col1 ) FROM tab2 WHERE NULL < - + col2 - + col0 * - 44 - + col2
----
0

query I rowsort
SELECT ALL 80 - + - col2 FROM tab2
----
103
120
138

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 78 * 83 col0 FROM tab0 AS cor0
----
6474
6474
6474

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

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

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NOT NULL IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7332
SELECT DISTINCT - ( + 33 ) * + CAST( NULL AS SIGNED ) / - 67 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7332
SELECT DISTINCT - ( + 33 ) * + CAST ( NULL AS INTEGER ) / - 67 FROM tab0
----
NULL

query I rowsort
SELECT + 17 AS col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 43298e43365fccb5146ea32003753c92

query I rowsort
SELECT DISTINCT + 56 * + 77 - col1 AS col0 FROM tab1 AS cor0
----
4265
4298
4307

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

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

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

query I rowsort
SELECT + + col2 AS col1 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
10
47
99

query I rowsort
SELECT + + 92 AS col0 FROM tab1 cor0 WHERE NOT NULL <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7339
SELECT DISTINCT MIN( + 61 ) * - ( + COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
-183

skipif mysql # not compatible
query I rowsort label-7339
SELECT DISTINCT MIN ( + 61 ) * - ( + COUNT ( * ) ) AS col0 FROM tab0 AS cor0
----
-183

onlyif mysql # aggregate syntax: 
query II rowsort label-7340
SELECT + MIN( + col0 ), + 36 AS col1 FROM tab0 AS cor0 WHERE NOT NULL < col2
----
NULL
36

skipif mysql # not compatible
query II rowsort label-7340
SELECT + MIN ( + col0 ), + 36 AS col1 FROM tab0 AS cor0 WHERE NOT NULL < col2
----
NULL
36

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7341
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( - 19 + - 51 + - - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-7341
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( - 19 + - 51 + - - CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 44 = + 54
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 18 * - col0 col1 FROM tab0
----
-1566
-1746
-270

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7345
SELECT DISTINCT + 41 DIV - + 6 FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-7345
SELECT DISTINCT + 41 / - + 6 FROM tab0
----
-6

query III rowsort
SELECT * FROM tab0 WHERE NOT + 26 NOT IN ( + col2 )
----

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

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

query I rowsort
SELECT DISTINCT col1 * + col1 + + 33 + + 1 * - - 28 AS col0 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN + col2 + - col1 AND - col2
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7350
SELECT + - CAST( NULL AS SIGNED ) / - 95 + 78 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7350
SELECT + - CAST ( NULL AS INTEGER ) / - 95 + 78 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

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

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

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

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

query II rowsort
SELECT ALL - col1 AS col0, col1 AS col2 FROM tab0 cor0
----
-1
1
-21
21
-81
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7356
SELECT DISTINCT - + COUNT( * ) + - 40 AS col2 FROM tab0 AS cor0 WHERE NULL >= NULL AND NOT col1 <= - col0
----
-40

skipif mysql # not compatible
query I rowsort label-7356
SELECT DISTINCT - + COUNT ( * ) + - 40 AS col2 FROM tab0 AS cor0 WHERE NULL >= NULL AND NOT col1 <= - col0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-7357
SELECT - SUM( + col2 ) + + ( - ( ( + 60 ) ) ) FROM tab0
----
-216

skipif mysql # not compatible
query I rowsort label-7357
SELECT - SUM ( + col2 ) + + ( - ( ( + 60 ) ) ) FROM tab0
----
-216

onlyif mysql # DIV for integer division: 
query I rowsort label-7358
SELECT DISTINCT col0 DIV + col2 - + col2 AS col2 FROM tab0
----
-2
-47
-99

skipif mysql # not compatible
query I rowsort label-7358
SELECT DISTINCT col0 / + col2 - + col2 AS col2 FROM tab0
----
-2
-47
-99

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7361
SELECT COUNT( DISTINCT + 44 ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
1

skipif mysql # not compatible
query I rowsort label-7361
SELECT COUNT ( DISTINCT + 44 ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
1

query I rowsort
SELECT 47 * + 83 * - col2 FROM tab2
----
-156040
-226258
-89723

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7364
SELECT + ( + MIN( DISTINCT col0 ) ) FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-7364
SELECT + ( + MIN ( DISTINCT col0 ) ) FROM tab1
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-7365
SELECT DISTINCT - 10 DIV - col1 AS col0 FROM tab1
----
0
2

skipif mysql # not compatible
query I rowsort label-7365
SELECT DISTINCT - 10 / - col1 AS col0 FROM tab1
----
0
2

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7367
SELECT ALL - + 61 * COUNT( * ) FROM tab2 AS cor0 WHERE - 4 + - + col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7367
SELECT ALL - + 61 * COUNT ( * ) FROM tab2 AS cor0 WHERE - 4 + - + col1 IS NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7368
SELECT - COUNT( - + col1 ) * - 45 + MIN( DISTINCT + - col0 ) * + - CAST( + - AVG ( - col2 ) AS SIGNED ) FROM tab0 AS cor0
----
5179

skipif mysql # not compatible
query I rowsort label-7368
SELECT - COUNT ( - + col1 ) * - 45 + MIN ( DISTINCT + - col0 ) * + - CAST ( + - AVG ( - col2 ) AS INTEGER ) FROM tab0 AS cor0
----
5179

query I rowsort
SELECT DISTINCT 82 * col0 + + col2 FROM tab2 AS cor0
----
3795
5288
6208

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7371
SELECT DISTINCT + MAX( ALL - col1 ) * - COUNT( * ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7371
SELECT DISTINCT + MAX ( ALL - col1 ) * - COUNT ( * ) FROM tab0
----
3

query I rowsort
SELECT - col0 + + 18 * - col0 AS col2 FROM tab1
----
-1615
-1729
-969

query I rowsort
SELECT DISTINCT - col0 * col0 + + col0 FROM tab0
----
-210
-7482
-9312

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

skipif mysql # not compatible
query I rowsort label-7374
SELECT + COUNT ( col0 ) * COUNT ( * ) FROM tab2
----
9

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7377
SELECT * FROM tab1 AS cor0 WHERE - ( - col1 ) NOT BETWEEN - CAST( - + 82 AS SIGNED ) + + + 85 * col1 * + + col1 AND - - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7377
SELECT * FROM tab1 AS cor0 WHERE - ( - col1 ) NOT BETWEEN - CAST ( - + 82 AS INTEGER ) + + + 85 * col1 * + + col1 AND - - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7378
SELECT CAST( NULL AS SIGNED ) / - COUNT( * ) FROM tab1 cor0 WHERE ( - - col0 ) * + 84 / - col1 < NULL
----
NULL

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7380
SELECT ALL 26 * + + col0 * col2 + + 71 DIV - col1 col1 FROM tab2 AS cor0
----
113099
27507
66560

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7380
SELECT ALL 26 * + + col0 * col2 + + 71 / - col1 col1 FROM tab2 AS cor0
----
113099
27507
66560

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

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

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

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

query II rowsort
SELECT DISTINCT - 76 * - col2 * + - 28 AS col1, + 53 AS col2 FROM tab0 AS cor0
----
-100016
53
-210672
53
-21280
53

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

skipif mysql # not compatible
query I rowsort label-7384
SELECT - + MIN ( + + 72 ) FROM tab0 AS cor0
----
-72

query I rowsort
SELECT - + 2 * - - col2 FROM tab2 AS cor0
----
-116
-46
-80

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7388
SELECT 14 DIV - 31 * - 11 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7388
SELECT 14 / - 31 * - 11 AS col2 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7389
SELECT ALL - 25 + + COUNT( * ) AS col2 FROM tab2
----
-22

skipif mysql # not compatible
query I rowsort label-7389
SELECT ALL - 25 + + COUNT ( * ) AS col2 FROM tab2
----
-22

query I rowsort
SELECT - + col0 FROM tab2 WHERE NOT + ( + 21 ) IS NULL
----
-46
-64
-75

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7393
SELECT DISTINCT CAST( + - MIN( + col1 ) AS SIGNED ) col2 FROM tab2
----
-51

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

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE + 9 > 71
----

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7398
SELECT + COUNT( * ) * + 82 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE + 47 >= + 34
----
738

skipif mysql # not compatible
query I rowsort label-7398
SELECT + COUNT ( * ) * + 82 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE + 47 >= + 34
----
738

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7400
SELECT ALL + MIN( DISTINCT + 28 ) AS col2 FROM tab1
----
28

skipif mysql # not compatible
query I rowsort label-7400
SELECT ALL + MIN ( DISTINCT + 28 ) AS col2 FROM tab1
----
28

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7403
SELECT ALL 59 * + COUNT( DISTINCT - + col2 ) FROM tab1 AS cor0
----
177

skipif mysql # not compatible
query I rowsort label-7403
SELECT ALL 59 * + COUNT ( DISTINCT - + col2 ) FROM tab1 AS cor0
----
177

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

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

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

query I rowsort
SELECT ALL + 69 * 33 FROM tab2 AS cor0
----
2277
2277
2277

query I rowsort
SELECT DISTINCT - ( - col1 ) * + col2 AS col1 FROM tab2
----
1173
3080
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-7408
SELECT DISTINCT 47 * ( - COUNT( * ) ) FROM tab2
----
-141

skipif mysql # not compatible
query I rowsort label-7408
SELECT DISTINCT 47 * ( - COUNT ( * ) ) FROM tab2
----
-141

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

skipif mysql # not compatible
query I rowsort label-7409
SELECT DISTINCT - 97 / col0 AS col2 FROM tab1
----
-1

query III rowsort
SELECT * FROM tab0 WHERE 73 BETWEEN ( NULL ) AND ( col0 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7411
SELECT 78 DIV + COUNT( * ) AS col1 FROM tab2
----
26

skipif mysql # not compatible
query I rowsort label-7411
SELECT 78 / + COUNT ( * ) AS col1 FROM tab2
----
26

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7413
SELECT 84 DIV 98 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7413
SELECT 84 / 98 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7414
SELECT COUNT( * ) DIV - 85 col2 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7414
SELECT COUNT ( * ) / - 85 col2 FROM tab2
----
0

query I rowsort
SELECT DISTINCT - col1 * 24 FROM tab0
----
-1944
-24
-504

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * 85 + col0 col0 FROM tab1 WHERE ( NULL ) IS NULL
----
-4284
-7140
-7644

query I rowsort
SELECT + 76 * col2 FROM tab2 WHERE 52 + 64 / + col0 IS NULL
----

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

skipif mysql # not compatible
query I rowsort label-7418
SELECT + MIN ( ALL col1 ) AS col1 FROM tab1
----
5

query I rowsort
SELECT ALL - col0 FROM tab0 WHERE NOT 82 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7420
SELECT - COUNT( * ) + 67 FROM tab0
----
64

skipif mysql # not compatible
query I rowsort label-7420
SELECT - COUNT ( * ) + 67 FROM tab0
----
64

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7422
SELECT - CAST( - 66 AS SIGNED ) + + MAX( - col1 ) FROM tab2
----
15

skipif mysql # not compatible
query I rowsort label-7422
SELECT - CAST ( - 66 AS INTEGER ) + + MAX ( - col1 ) FROM tab2
----
15

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

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

query I rowsort
SELECT + col1 + + col0 * - col2 FROM tab1
----
-4882
-5010
-6141

onlyif mysql # DIV for integer division: 
query I rowsort label-7425
SELECT + 98 + 98 DIV col2 AS col2 FROM tab2
----
100
102
99

skipif mysql # not compatible
query I rowsort label-7425
SELECT + 98 + 98 / col2 AS col2 FROM tab2
----
100
102
99

query III rowsort
SELECT * FROM tab1 WHERE ( - 18 ) <> + col1 + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query I rowsort
SELECT ALL col0 * 76 FROM tab0 cor0
----
1140
6612
7372

onlyif mysql # DIV for integer division: 
query I rowsort label-7429
SELECT ALL 83 DIV - 2 AS col2 FROM tab2 AS cor0
----
-41
-41
-41

skipif mysql # not compatible
query I rowsort label-7429
SELECT ALL 83 / - 2 AS col2 FROM tab2 AS cor0
----
-41
-41
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-7430
SELECT - COUNT( * ) * - 83 AS col2 FROM tab0 AS cor0
----
249

skipif mysql # not compatible
query I rowsort label-7430
SELECT - COUNT ( * ) * - 83 AS col2 FROM tab0 AS cor0
----
249

query I rowsort
SELECT ALL - ( col0 ) AS col1 FROM tab0 AS cor0 WHERE NOT - 26 * - 63 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 41 + col2 FROM tab2
----
64
81
99

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

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

query I rowsort
SELECT 67 + 73 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
140
140
140

query I rowsort
SELECT + 61 + 59 * 59 AS col1 FROM tab2 AS cor0
----
3542
3542
3542

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( 75 + 55 ) >= ( 57 )
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 41 + - 59 col1 FROM tab1 AS cor0
----
-18

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) < ( - col1 ) * + col0
----

query I rowsort
SELECT + col1 + 52 AS col1 FROM tab0 AS cor0
----
133
53
73

query I rowsort
SELECT - 16 + col1 FROM tab2
----
35
51
61

query I rowsort
SELECT col2 * - col2 * - 44 AS col2 FROM tab1
----
153164
203456
405504

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 52 col2 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + col0 * - 19 FROM tab1
----
-1615
-1729
-969

query I rowsort
SELECT DISTINCT - 4 + + - col2 * 12 FROM tab2
----
-280
-484
-700

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

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

query I rowsort
SELECT ALL 88 * - + ( - col2 ) FROM tab1
----
5192
5984
8448

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

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

query I rowsort
SELECT - col2 AS col1 FROM tab1 AS cor0 WHERE 5 IN ( col0 )
----

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

query I rowsort
SELECT ALL + col0 * - 61 + col2 FROM tab1 AS cor0
----
-3015
-5126
-5483

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7455
SELECT + - CAST( + - col0 AS SIGNED ) - + col1 AS col1 FROM tab2 AS cor0
----
-13
-5
8

skipif mysql # not compatible
query I rowsort label-7455
SELECT + - CAST ( + - col0 AS INTEGER ) - + col1 AS col1 FROM tab2 AS cor0
----
-13
-5
8

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7457
SELECT DISTINCT + 17 * - 51 + + col2 DIV - ( - col0 + col2 ) AS col2 FROM tab2 AS cor0
----
-864
-866

skipif mysql # not compatible
query I rowsort label-7457
SELECT DISTINCT + 17 * - 51 + + col2 / - ( - col0 + col2 ) AS col2 FROM tab2 AS cor0
----
-864
-866

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - 51 col0 FROM tab2 cor0
----
-1173
-2040
-2958

query I rowsort
SELECT DISTINCT col0 + col2 FROM tab0 cor0 WHERE NOT col0 NOT IN ( - col2 + + col2 )
----

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7463
SELECT + CAST( col2 AS SIGNED ) DIV + - col1 FROM tab2
----
0
0
0

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7465
SELECT + CAST( - COUNT( * ) AS SIGNED ) * + + 40 AS col0 FROM tab2
----
-120

skipif mysql # not compatible
query I rowsort label-7465
SELECT + CAST ( - COUNT ( * ) AS INTEGER ) * + + 40 AS col0 FROM tab2
----
-120

query I rowsort
SELECT DISTINCT + 3 * 47 AS col0 FROM tab2
----
141

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7467
SELECT + CAST( NULL AS SIGNED ) * - + col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7467
SELECT + CAST ( NULL AS INTEGER ) * - + col2 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - col1 ) <= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7469
SELECT ALL + CAST( + col2 AS SIGNED ) * + + col2 - + + CAST( col1 AS SIGNED ) FROM tab2
----
1523
3297
478

skipif mysql # not compatible
query I rowsort label-7469
SELECT ALL + CAST ( + col2 AS INTEGER ) * + + col2 - + + CAST ( col1 AS INTEGER ) FROM tab2
----
1523
3297
478

onlyif mysql # DIV for integer division: 
query I rowsort label-7470
SELECT + 47 DIV + 75 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7470
SELECT + 47 / + 75 AS col2 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7471
SELECT - col2 AS col1 FROM tab0 WHERE NOT - col1 NOT BETWEEN NULL AND + CAST( NULL AS SIGNED ) + col2
----

skipif mysql # not compatible
query I rowsort label-7471
SELECT - col2 AS col1 FROM tab0 WHERE NOT - col1 NOT BETWEEN NULL AND + CAST ( NULL AS INTEGER ) + col2
----

query III rowsort
SELECT * FROM tab0 WHERE NOT 36 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7473
SELECT CAST( col2 AS SIGNED ) AS col2, + col2 + + - col0 FROM tab1
----
59
-26
68
-23
96
45

skipif mysql # not compatible
query II rowsort label-7473
SELECT CAST ( col2 AS INTEGER ) AS col2, + col2 + + - col0 FROM tab1
----
59
-26
68
-23
96
45

onlyif mysql # aggregate syntax: 
query I rowsort label-7474
SELECT SUM( ALL + 39 ) AS col2 FROM tab2 AS cor0 WHERE NOT col2 + 35 NOT BETWEEN ( NULL ) AND - 74
----
NULL

skipif mysql # not compatible
query I rowsort label-7474
SELECT SUM ( ALL + 39 ) AS col2 FROM tab2 AS cor0 WHERE NOT col2 + 35 NOT BETWEEN ( NULL ) AND - 74
----
NULL

query I rowsort
SELECT DISTINCT + col2 * - ( 1 ) AS col2 FROM tab0 AS cor0
----
-10
-47
-99

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 + - col1 * col1 <= ( col0 )
----

query I rowsort
SELECT ALL + 75 * - col0 FROM tab0
----
-1125
-6525
-7275

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7478
SELECT ALL - SUM( DISTINCT 34 ) DIV - + COUNT( ALL 64 ) FROM tab2 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-7478
SELECT ALL - SUM ( DISTINCT 34 ) / - + COUNT ( ALL 64 ) FROM tab2 AS cor0
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7479
SELECT - + AVG ( + CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7479
SELECT - + AVG ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT col1 + 70 FROM tab2 cor0 WHERE NULL IS NULL
----
121
137
147

query I rowsort
SELECT - ( ( + - col2 ) ) * col0 AS col2 FROM tab1 cor0
----
4896
5015
6188

query I rowsort
SELECT DISTINCT col1 + + 86 * - 77 + col1 * + 4 AS col1 FROM tab2 cor0
----
-6237
-6287
-6367

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + ( - col1 ) * + + ( + 71 ) = ( col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7484
SELECT DISTINCT * FROM tab1 WHERE ( CAST( NULL AS SIGNED ) + - col2 / col2 ) IN ( - col0 )
----

skipif mysql # not compatible
query III rowsort label-7484
SELECT DISTINCT * FROM tab1 WHERE ( CAST ( NULL AS INTEGER ) + - col2 / col2 ) IN ( - col0 )
----

query I rowsort
SELECT DISTINCT 28 * col2 + 47 + - 85 AS col0 FROM tab1
----
1614
1866
2650

onlyif mysql # aggregate syntax: 
query I rowsort label-7486
SELECT ALL + COUNT( * ) FROM tab0 WHERE ( ( NULL ) > NULL )
----
0

skipif mysql # not compatible
query I rowsort label-7486
SELECT ALL + COUNT ( * ) FROM tab0 WHERE ( ( NULL ) > NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7487
SELECT ALL + ( COUNT( * ) ) + + 17 FROM tab1
----
20

skipif mysql # not compatible
query I rowsort label-7487
SELECT ALL + ( COUNT ( * ) ) + + 17 FROM tab1
----
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - 74 col1 FROM tab0
----
-59
13
23

onlyif mysql # aggregate syntax: 
query II rowsort label-7489
SELECT DISTINCT 57 AS col1, COUNT( * ) AS col1 FROM tab2
----
57
3

skipif mysql # not compatible
query II rowsort label-7489
SELECT DISTINCT 57 AS col1, COUNT ( * ) AS col1 FROM tab2
----
57
3

query I rowsort
SELECT + - AVG ( DISTINCT + - col2 ) AS col1 FROM tab0 WHERE NULL < + 43
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE + + col1 NOT BETWEEN + 33 AND NULL
----

query I rowsort
SELECT DISTINCT col0 - - - 2 AS col1 FROM tab1
----
49
83
89

query I rowsort
SELECT ALL - col1 * + - 35 - - 42 FROM tab1
----
1687
217
532

query II rowsort
SELECT DISTINCT - + col2, col1 * - - 9 AS col2 FROM tab2 AS cor0
----
-23
459
-40
693
-58
603

query I rowsort
SELECT 74 * - col0 AS col2 FROM tab0 AS cor0
----
-1110
-6438
-7178

query IIIIII rowsort
SELECT DISTINCT * FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 ) WHERE + 15 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7497
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT 44 + - + CAST( - - col0 AS SIGNED ) < - col2 / + 13 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7497
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT 44 + - + CAST ( - - col0 AS INTEGER ) < - col2 / + 13 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col2 FROM tab0 AS cor0 WHERE + col1 IS NULL
----

query I rowsort
SELECT ALL col0 AS col2 FROM tab2 AS cor0 WHERE NOT NULL <= col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7500
SELECT + + COUNT( * ) DIV + 22 col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7500
SELECT + + COUNT ( * ) / + 22 col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL 5 * + col2 * - 88 FROM tab2
----
-10120
-17600
-25520

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 83 * + - col1 col2 FROM tab1
----
-1162
-3901
-415

query I rowsort
SELECT DISTINCT - col2 * col2 * - - 83 * - ( - + ( col0 ) ) * - + 17 FROM tab1
----
417493735
593726224
663192576

query III rowsort
SELECT * FROM tab1 WHERE NOT - - col2 + - + col2 * col1 * 99 * col0 NOT BETWEEN - 75 AND - 62 - col2 * col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7505
SELECT DISTINCT + col1 FROM tab1 WHERE NOT 9 + ( + + CAST( NULL AS SIGNED ) ) NOT IN ( + + col1 )
----

skipif mysql # not compatible
query I rowsort label-7505
SELECT DISTINCT + col1 FROM tab1 WHERE NOT 9 + ( + + CAST ( NULL AS INTEGER ) ) NOT IN ( + + col1 )
----

query I rowsort
SELECT 76 * 8 * ( + col0 ) FROM tab2
----
27968
38912
45600

onlyif mysql # aggregate syntax: 
query I rowsort label-7507
SELECT ALL - MIN( col2 ) AS col2 FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-7507
SELECT ALL - MIN ( col2 ) AS col2 FROM tab1
----
-59

query I rowsort
SELECT DISTINCT 90 * - col1 FROM tab1
----
-1260
-4230
-450

query I rowsort
SELECT 83 FROM tab0 WHERE NOT + col0 * - 78 * + + col0 NOT IN ( - col2 * - - 28 + - col0 * col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7510
SELECT - CAST( + MIN( 83 ) AS SIGNED ) FROM tab1
----
-83

skipif mysql # not compatible
query I rowsort label-7510
SELECT - CAST ( + MIN ( 83 ) AS INTEGER ) FROM tab1
----
-83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7511
SELECT ALL COUNT( * ) DIV + 47 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7511
SELECT ALL COUNT ( * ) / + 47 FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-7512
SELECT + col2 * - col2 DIV + col2 AS col0, col1 AS col1 FROM tab2
----
-23
51
-40
77
-58
67

skipif mysql # not compatible
query II rowsort label-7512
SELECT + col2 * - col2 / + col2 AS col0, col1 AS col1 FROM tab2
----
-23
51
-40
77
-58
67

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7513
SELECT - CAST( NULL AS SIGNED ) AS col2, 12 AS col0 FROM tab2
----
NULL
12
NULL
12
NULL
12

skipif mysql # not compatible
query II rowsort label-7513
SELECT - CAST ( NULL AS INTEGER ) AS col2, 12 AS col0 FROM tab2
----
NULL
12
NULL
12
NULL
12

query I rowsort
SELECT ALL - col2 + + col1 + + + 93 + + + col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7515
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) NOT BETWEEN ( 37 ) AND + col0
----

skipif mysql # not compatible
query III rowsort label-7515
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) NOT BETWEEN ( 37 ) AND + col0
----

query II rowsort
SELECT + + col1 AS col2, col0 FROM tab1 AS cor0
----
14
51
47
91
5
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7517
SELECT DISTINCT col1 + - col0 + - ( CAST( NULL AS SIGNED ) ) * col0 AS col1 FROM tab0 AS cor0 WHERE 38 BETWEEN - - 65 + + - col1 / col2 * - - col1 AND NULL
----

skipif mysql # not compatible
query I rowsort label-7517
SELECT DISTINCT col1 + - col0 + - ( CAST ( NULL AS INTEGER ) ) * col0 AS col1 FROM tab0 AS cor0 WHERE 38 BETWEEN - - 65 + + - col1 / col2 * - - col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7518
SELECT + COUNT( * ) * + COUNT( DISTINCT + 35 ) FROM tab2 WHERE NOT NULL = + 41
----
0

skipif mysql # not compatible
query I rowsort label-7518
SELECT + COUNT ( * ) * + COUNT ( DISTINCT + 35 ) FROM tab2 WHERE NOT NULL = + 41
----
0

query I rowsort
SELECT - - 83 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

onlyif mysql # aggregate syntax: 
query I rowsort label-7520
SELECT MIN( DISTINCT + - ( + 51 ) ) AS col1 FROM tab0
----
-51

skipif mysql # not compatible
query I rowsort label-7520
SELECT MIN ( DISTINCT + - ( + 51 ) ) AS col1 FROM tab0
----
-51

query I rowsort
SELECT ( + + ( + - 66 ) ) * + + col2 AS col2 FROM tab1
----
-3894
-4488
-6336

onlyif mysql # aggregate syntax: 
query I rowsort label-7522
SELECT ALL + COUNT( * ) * - - COUNT( * ) col0 FROM tab1, tab1 cor0
----
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7522
SELECT ALL + COUNT ( * ) * - - COUNT ( * ) col0 FROM tab1, tab1 cor0
----
81

query I rowsort
SELECT - 2 + + 81 FROM tab0 AS cor0
----
79
79
79

onlyif mysql # aggregate syntax: 
query I rowsort label-7524
SELECT DISTINCT + 67 + - - COUNT( * ) col0 FROM tab1 AS cor0
----
70

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7524
SELECT DISTINCT + 67 + - - COUNT ( * ) col0 FROM tab1 AS cor0
----
70

query I rowsort
SELECT ALL + + col0 - - 68 FROM tab0 AS cor0 WHERE NOT + col2 + + + col0 IS NULL
----
155
165
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 39 col0 FROM tab2 cor0 WHERE - col2 IN ( + - ( - col2 ) )
----

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab0 AS cor0 WHERE 25 IS NULL
----

query I rowsort
SELECT ALL - 36 + col2 FROM tab2
----
-13
22
4

query I rowsort
SELECT DISTINCT - ( col0 ) FROM tab2 WHERE - 51 NOT BETWEEN + col2 / - col1 AND + col1 * col2
----
-46
-64
-75

query I rowsort
SELECT DISTINCT ( col1 ) + + - 44 AS col1 FROM tab2
----
23
33
7

query I rowsort
SELECT DISTINCT - col1 - - col0 AS col1 FROM tab0
----
-66
66
96

query I rowsort
SELECT ALL + 9 + + col0 + + - 63 FROM tab1
----
-3
31
37

query II rowsort
SELECT DISTINCT 18 + - col0 + col2 / col2 * - col0 AS col1, col1 FROM tab1 WHERE NULL <= - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7534
SELECT DISTINCT 81 + - COUNT( * ) AS col2 FROM tab0
----
78

skipif mysql # not compatible
query I rowsort label-7534
SELECT DISTINCT 81 + - COUNT ( * ) AS col2 FROM tab0
----
78

query I rowsort
SELECT - col2 AS col1 FROM tab1 WHERE NULL NOT IN ( + col0 * - col0 )
----

query I rowsort
SELECT DISTINCT - col1 * - col1 - - - col0 FROM tab2
----
2555
4414
5865

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - 11 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7538
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7538
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE col0 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7539
SELECT - + COUNT( * ) AS col1, + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-7539
SELECT - + COUNT ( * ) AS col1, + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-3
3

query II rowsort
SELECT + col0 + + col0 + - 73 * + col1 AS col1, - 2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL > col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col0, + col2 + - + col0 AS col2 FROM tab1 AS cor0
----
-14
45
-47
-23
-5
-26

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7542
SELECT 69 AS col1, COUNT( * ) DIV + - 66 AS col0 FROM tab0 AS cor0
----
69
0

skipif mysql # not compatible
query II rowsort label-7542
SELECT 69 AS col1, COUNT ( * ) / + - 66 AS col0 FROM tab0 AS cor0
----
69
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 80 col2 FROM tab0 cor0
----
-80
-80
-80

query I rowsort
SELECT DISTINCT + 94 * - - col0 AS col0 FROM tab2 AS cor0
----
4324
6016
7050

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab2 cor0 WHERE NOT NULL BETWEEN ( col1 ) AND + 17
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7546
SELECT SUM( DISTINCT + + col1 ) DIV + MIN( DISTINCT + + 65 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-7546
SELECT SUM ( DISTINCT + + col1 ) / + MIN ( DISTINCT + + 65 ) FROM tab1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7547
SELECT col1 AS col1 FROM tab0 WHERE NOT - CAST( NULL AS SIGNED ) - 32 IS NOT NULL
----
1
21
81

skipif mysql # not compatible
query I rowsort label-7547
SELECT col1 AS col1 FROM tab0 WHERE NOT - CAST ( NULL AS INTEGER ) - 32 IS NOT NULL
----
1
21
81

query II rowsort
SELECT DISTINCT + 76 * - col1, col1 - col0 * + - 93 * - 23 AS col1 FROM tab0
----
-1596
-186072
-6156
-32004
-76
-207482

query II rowsort
SELECT 45 * + + 18, - 38 AS col2 FROM tab0
----
810
-38
810
-38
810
-38

query I rowsort
SELECT DISTINCT - 79 + - 29 + - col1 FROM tab0 cor0
----
-109
-129
-189

query I rowsort
SELECT ALL ( - - 38 ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

onlyif mysql # aggregate syntax: 
query II rowsort label-7552
SELECT - 25, + COUNT( * ) AS col0 FROM tab1
----
-25
3

skipif mysql # not compatible
query II rowsort label-7552
SELECT - 25, + COUNT ( * ) AS col0 FROM tab1
----
-25
3

onlyif mysql # DIV for integer division: 
query I rowsort label-7553
SELECT - - col0 DIV 41 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7553
SELECT - - col0 / 41 FROM tab2 AS cor0
----
1
1
1

query II rowsort
SELECT + col1 * - col0 * col0 AS col2, col1 FROM tab0 AS cor0
----
-158949
21
-18225
81
-9409
1

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( col0 ) >= NULL
----

query I rowsort
SELECT DISTINCT - 19 FROM tab0 AS cor0 WHERE NOT ( - 48 ) NOT BETWEEN ( NULL ) AND - col1 * + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7557
SELECT ALL - COUNT( * ) * - MAX( DISTINCT 31 ) col2 FROM tab0 AS cor0
----
93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7557
SELECT ALL - COUNT ( * ) * - MAX ( DISTINCT 31 ) col2 FROM tab0 AS cor0
----
93

query I rowsort
SELECT + col0 - - + col0 FROM tab1 AS cor0
----
102
170
182

query I rowsort
SELECT ALL - col1 AS col1 FROM tab1 AS cor0 WHERE ( NOT NULL >= + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7560
SELECT ALL + 66 + - col1 DIV col1 * + - col1 FROM tab0 AS cor0
----
147
67
87

skipif mysql # not compatible
query I rowsort label-7560
SELECT ALL + 66 + - col1 / col1 * + - col1 FROM tab0 AS cor0
----
147
67
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7561
SELECT ALL col2 * + col2 - + CAST( + 97 AS SIGNED ) FROM tab1 AS cor0
----
3384
4527
9119

skipif mysql # not compatible
query I rowsort label-7561
SELECT ALL col2 * + col2 - + CAST ( + 97 AS INTEGER ) FROM tab1 AS cor0
----
3384
4527
9119

query III rowsort
SELECT * FROM tab0 WHERE - 33 / - col2 IS NULL
----

query I rowsort
SELECT DISTINCT col0 + col0 + + col2 AS col0 FROM tab1
----
198
229
250

onlyif mysql # aggregate syntax: 
query II rowsort label-7564
SELECT COUNT( * ) * - COUNT( * ) AS col0, SUM( + col2 ) FROM tab1 WHERE NULL IS NULL
----
-9
223

skipif mysql # not compatible
query II rowsort label-7564
SELECT COUNT ( * ) * - COUNT ( * ) AS col0, SUM ( + col2 ) FROM tab1 WHERE NULL IS NULL
----
-9
223

onlyif mysql # aggregate syntax: 
query I rowsort label-7565
SELECT 18 + - COUNT( * ) * - 82 AS col2 FROM tab2
----
264

skipif mysql # not compatible
query I rowsort label-7565
SELECT 18 + - COUNT ( * ) * - 82 AS col2 FROM tab2
----
264

query I rowsort
SELECT 66 + + 62 * - 71 FROM tab0
----
-4336
-4336
-4336

onlyif mysql # aggregate syntax: 
query I rowsort label-7567
SELECT DISTINCT + SUM( ALL + - col0 ) AS col1 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-7567
SELECT DISTINCT + SUM ( ALL + - col0 ) AS col1 FROM tab2 AS cor0
----
-185

query I rowsort
SELECT DISTINCT 55 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-7569
SELECT DISTINCT - SUM( + 32 ) AS col2 FROM tab2
----
-96

skipif mysql # not compatible
query I rowsort label-7569
SELECT DISTINCT - SUM ( + 32 ) AS col2 FROM tab2
----
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-7570
SELECT DISTINCT 15 AS col2, - COUNT( + 13 ) * - - 69 AS col0 FROM tab2
----
15
-207

skipif mysql # not compatible
query II rowsort label-7570
SELECT DISTINCT 15 AS col2, - COUNT ( + 13 ) * - - 69 AS col0 FROM tab2
----
15
-207

onlyif mysql # aggregate syntax: 
query II rowsort label-7571
SELECT ALL + COUNT( * ), - 9 AS col1 FROM tab0 AS cor0
----
3
-9

skipif mysql # not compatible
query II rowsort label-7571
SELECT ALL + COUNT ( * ), - 9 AS col1 FROM tab0 AS cor0
----
3
-9

onlyif mysql # DIV for integer division: 
query II rowsort label-7572
SELECT - ( - ( 48 ) ), col1 DIV + col2 + - col2 col1 FROM tab0 AS cor0
----
48
-46
48
-8
48
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7572
SELECT - ( - ( 48 ) ), col1 / + col2 + - col2 col1 FROM tab0 AS cor0
----
48
-46
48
-8
48
-99

query I rowsort
SELECT col0 * - col0 * col2 + + - 13 AS col0 FROM tab2 cor0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT - col2 * - + 9 FROM tab0 cor0
----
423
891
90

query I rowsort
SELECT + 60 * - col0 - col1 + + col2 FROM tab1 AS cor0
----
-2978
-5046
-5439

onlyif mysql # aggregate syntax: 
query II rowsort label-7576
SELECT ALL + 83, ( - ( + ( - COUNT( DISTINCT + + col2 ) ) ) ) col1 FROM tab2
----
83
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7576
SELECT ALL + 83, ( - ( + ( - COUNT ( DISTINCT + + col2 ) ) ) ) col1 FROM tab2
----
83
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7577
SELECT DISTINCT - SUM( ALL + col1 ) FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-7577
SELECT DISTINCT - SUM ( ALL + col1 ) FROM tab0
----
-103

query II rowsort
SELECT ALL col0 AS col2, col2 * + - 63 FROM tab1
----
51
-6048
85
-3717
91
-4284

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 / - col1 <> + + 5
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL > - 20
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7581
SELECT ALL col2 + CAST( NULL AS DECIMAL ) - + col2 AS col2, col0 col2 FROM tab2 WHERE NOT ( + + col2 ) * - + 30 <= + col0
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7581
SELECT ALL col2 + CAST ( NULL AS REAL ) - + col2 AS col2, col0 col2 FROM tab2 WHERE NOT ( + + col2 ) * - + 30 <= + col0
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - col0 + 24 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7583
SELECT 21 * - MIN( DISTINCT + col0 ) + 51 col1 FROM tab1 AS cor0
----
-1020

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7583
SELECT 21 * - MIN ( DISTINCT + col0 ) + 51 col1 FROM tab1 AS cor0
----
-1020

onlyif mysql # aggregate syntax: 
query I rowsort label-7584
SELECT DISTINCT - - 57 * - ( - COUNT( DISTINCT - col0 ) ) col0 FROM tab2 AS cor0
----
171

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7584
SELECT DISTINCT - - 57 * - ( - COUNT ( DISTINCT - col0 ) ) col0 FROM tab2 AS cor0
----
171

onlyif mysql # aggregate syntax: 
query I rowsort label-7585
SELECT ALL COUNT( - + col1 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7585
SELECT ALL COUNT ( - + col1 ) AS col1 FROM tab2
----
3

query I rowsort
SELECT DISTINCT col2 + - 48 AS col2 FROM tab1
----
11
20
48

query I rowsort
SELECT ALL 3 - - 2 * + + ( - col0 ) * col2 - + - col2 AS col0 FROM tab0
----
-1360
-1727
-19104

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7588
SELECT col1 + + CAST( NULL AS DECIMAL ) + col2 + col2 * - col0 + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7588
SELECT col1 + + CAST ( NULL AS REAL ) + col2 + col2 * - col0 + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7589
SELECT * FROM tab1 AS cor0 WHERE NULL > - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7589
SELECT * FROM tab1 AS cor0 WHERE NULL > - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT - + col0 * + col0 + + ( + col2 ) AS col2 FROM tab1 AS cor0
----
-2505
-7166
-8213

onlyif mysql # aggregate syntax: 
query I rowsort label-7591
SELECT ALL - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE ( + col1 + + + 37 ) <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-7591
SELECT ALL - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE ( + col1 + + + 37 ) <> NULL
----
0

query II rowsort
SELECT col0 * + 68 AS col1, + 67 AS col2 FROM tab1 AS cor0
----
3468
67
5780
67
6188
67

query I rowsort
SELECT DISTINCT + col0 + + 27 + + 0 FROM tab2 AS cor0
----
102
73
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7594
SELECT ALL - - 19 * + MAX( ALL + col1 ) FROM tab2 cor0 WHERE 3 * - col0 IS NOT NULL
----
1463

skipif mysql # not compatible
query I rowsort label-7594
SELECT ALL - - 19 * + MAX ( ALL + col1 ) FROM tab2 cor0 WHERE 3 * - col0 IS NOT NULL
----
1463

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( 20 / + col2 * + + col2 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col0 + + - ( - 95 ) + - + col2 FROM tab1 AS cor0
----
118
121
50

query I rowsort
SELECT ALL col0 + - 2 FROM tab1
----
49
83
89

query II rowsort
SELECT DISTINCT 79 * - + col1 - 45, - 28 + - + col1 AS col0 FROM tab0
----
-124
-29
-1704
-49
-6444
-109

query III rowsort
SELECT ALL * FROM tab0 WHERE + 51 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE col1 * - 94 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7601
SELECT ALL * FROM tab1 cor0 WHERE ( NOT 10 BETWEEN NULL AND ( + - CAST( + 54 AS SIGNED ) ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7601
SELECT ALL * FROM tab1 cor0 WHERE ( NOT 10 BETWEEN NULL AND ( + - CAST ( + 54 AS INTEGER ) ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7602
SELECT ALL 59 DIV + COUNT( - 34 ) AS col0 FROM tab1 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-7602
SELECT ALL 59 / + COUNT ( - 34 ) AS col0 FROM tab1 AS cor0
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-7603
SELECT DISTINCT + col1 DIV - + col2 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-7603
SELECT DISTINCT + col1 / - + col2 FROM tab0 AS cor0
----
-1
-2
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7604
SELECT - - COUNT( CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7604
SELECT - - COUNT ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7605
SELECT - - AVG ( ALL + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7605
SELECT - - AVG ( ALL + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - + col2 + + 46 + + - col1 AS col2 FROM tab2 AS cor0
----
-28
-71
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-7607
SELECT DISTINCT + + SUM( DISTINCT - 58 ) AS col0 FROM tab1 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-7607
SELECT DISTINCT + + SUM ( DISTINCT - 58 ) AS col0 FROM tab1 AS cor0
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7608
SELECT ALL + col0 + CAST( col0 AS SIGNED ) FROM tab1 cor0
----
102
170
182

skipif mysql # not compatible
query I rowsort label-7608
SELECT ALL + col0 + CAST ( col0 AS INTEGER ) FROM tab1 cor0
----
102
170
182

query II rowsort
SELECT DISTINCT col2, + 53 * + col0 AS col0 FROM tab2
----
23
2438
40
3392
58
3975

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7610
SELECT ALL * FROM tab1 WHERE NOT - col1 * CAST( + col2 AS SIGNED ) + - col2 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7610
SELECT ALL * FROM tab1 WHERE NOT - col1 * CAST ( + col2 AS INTEGER ) + - col2 IS NOT NULL
----

query I rowsort
SELECT 45 + + ( + - col1 ) + - 22 * + col2 * - - col0 * - col1 * + ( - + col2 ) AS col1 FROM tab1
----
-144764897
-32547310
-435090658

query I rowsort
SELECT col1 + + ( - - 66 ) FROM tab1
----
113
71
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7613
SELECT ALL MAX( - CAST( - col1 AS SIGNED ) ) AS col2 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-7613
SELECT ALL MAX ( - CAST ( - col1 AS INTEGER ) ) AS col2 FROM tab2
----
77

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL >= ( NULL )
----

query II rowsort
SELECT + 85 AS col2, - 9 FROM tab2, tab2 AS cor0
----
18 values hashing to 8b910a450c0f744f7a7d99c4ba7e9fe9

query I rowsort
SELECT 57 FROM tab1 WHERE col2 + + col0 BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 - col1 col0 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7618
SELECT ALL 13 - - ( COUNT( ALL + + col0 ) ) FROM tab1 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-7618
SELECT ALL 13 - - ( COUNT ( ALL + + col0 ) ) FROM tab1 AS cor0
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7619
SELECT ALL + 20 * + CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7619
SELECT ALL + 20 * + CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7620
SELECT 84 - - - COUNT( * ) * + COUNT( * ) AS col0 FROM tab2 cor0
----
75

skipif mysql # not compatible
query I rowsort label-7620
SELECT 84 - - - COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab2 cor0
----
75

query I rowsort
SELECT ALL + col0 + - col1 + 64 AS col2 FROM tab2
----
51
59
72

onlyif mysql # aggregate syntax: 
query II rowsort label-7622
SELECT + 32 + - COUNT( * ) AS col2, ( + COUNT( * ) ) AS col2 FROM tab1
----
29
3

skipif mysql # not compatible
query II rowsort label-7622
SELECT + 32 + - COUNT ( * ) AS col2, ( + COUNT ( * ) ) AS col2 FROM tab1
----
29
3

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN - col1 AND + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7624
SELECT DISTINCT ( + 9 ) * + + COUNT( * ) * - 30 FROM tab2
----
-810

skipif mysql # not compatible
query I rowsort label-7624
SELECT DISTINCT ( + 9 ) * + + COUNT ( * ) * - 30 FROM tab2
----
-810

query I rowsort
SELECT ( - + 39 ) FROM tab0
----
-39
-39
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7626
SELECT ALL CAST( NULL AS SIGNED ) * + COUNT( * ), 9 AS col2 FROM tab2
----
NULL
9

skipif mysql # not compatible
query II rowsort label-7626
SELECT ALL CAST ( NULL AS INTEGER ) * + COUNT ( * ), 9 AS col2 FROM tab2
----
NULL
9

query I rowsort
SELECT DISTINCT - col0 - + + 57 FROM tab1 AS cor0 WHERE ( NOT + col0 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7628
SELECT COUNT( * ) * + COUNT( + 96 ) * + 98 FROM tab1
----
882

skipif mysql # not compatible
query I rowsort label-7628
SELECT COUNT ( * ) * + COUNT ( + 96 ) * + 98 FROM tab1
----
882

onlyif mysql # DIV for integer division: 
query I rowsort label-7629
SELECT + col1 DIV + ( - 14 ) col0 FROM tab2
----
-3
-4
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7629
SELECT + col1 / + ( - 14 ) col0 FROM tab2
----
-3
-4
-5

query I rowsort
SELECT + 13 * + + 38 FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col1 * 80 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL col2, + 83 FROM tab1 AS cor0
----
59
83
68
83
96
83

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7633
SELECT * FROM tab1 AS cor0 WHERE NOT col1 <> - col0 / col1 + 51 - - + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7633
SELECT * FROM tab1 AS cor0 WHERE NOT col1 <> - col0 / col1 + 51 - - + CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7634
SELECT - CAST( NULL AS SIGNED ) + 67 + - 6 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7634
SELECT - CAST ( NULL AS INTEGER ) + 67 + - 6 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - ( + col1 ) + - - 81 FROM tab0 AS cor0
----
0
60
80

query I rowsort
SELECT DISTINCT col2 + - + col0 + col2 FROM tab2
----
0
16
41

query I rowsort
SELECT ALL col0 + col2 + - - col1 FROM tab1
----
149
161
206

query I rowsort
SELECT ALL - 70 + - col0 AS col0 FROM tab1
----
-121
-155
-161

query I rowsort
SELECT DISTINCT col0 + - col0 * + 71 AS col2 FROM tab0
----
-1050
-6090
-6790

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + col2 * - col2 <> col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7641
SELECT * FROM tab0 WHERE + 77 * + col1 BETWEEN NULL AND - ( 19 ) - + 21 * - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7641
SELECT * FROM tab0 WHERE + 77 * + col1 BETWEEN NULL AND - ( 19 ) - + 21 * - - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7642
SELECT + COUNT( * ) * - 82 * - - 51 FROM tab0 cor0
----
-12546

skipif mysql # not compatible
query I rowsort label-7642
SELECT + COUNT ( * ) * - 82 * - - 51 FROM tab0 cor0
----
-12546

query I rowsort
SELECT - + col1 * + 1 AS col2 FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7644
SELECT ALL COUNT( * ) - - + 30 AS col2 FROM tab0
----
33

skipif mysql # not compatible
query I rowsort label-7644
SELECT ALL COUNT ( * ) - - + 30 AS col2 FROM tab0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-7645
SELECT - + 93 * + COUNT( * ) FROM tab2 AS cor0
----
-279

skipif mysql # not compatible
query I rowsort label-7645
SELECT - + 93 * + COUNT ( * ) FROM tab2 AS cor0
----
-279

onlyif mysql # DIV for integer division: 
query I rowsort label-7646
SELECT - col0 DIV - - col1 AS col1 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7646
SELECT - col0 / - - col1 AS col1 FROM tab2 AS cor0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7647
SELECT + + SUM( - 56 ) AS col2 FROM tab0 AS cor0
----
-168

skipif mysql # not compatible
query I rowsort label-7647
SELECT + + SUM ( - 56 ) AS col2 FROM tab0 AS cor0
----
-168

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col0 - 98 / - 29 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col0 * - + col0 FROM tab1 cor0
----
2601
7225
8281

query III rowsort
SELECT * FROM tab2 WHERE NOT 71 + - col1 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7651
SELECT SUM( 53 ) AS col1 FROM tab0
----
159

skipif mysql # not compatible
query I rowsort label-7651
SELECT SUM ( 53 ) AS col1 FROM tab0
----
159

onlyif mysql # aggregate syntax: 
query I rowsort label-7652
SELECT DISTINCT - MIN( DISTINCT + - col1 ) FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-7652
SELECT DISTINCT - MIN ( DISTINCT + - col1 ) FROM tab0
----
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - col1 col0 FROM tab2
----
-2601
-4489
-5929

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7654
SELECT - SUM( ALL + col0 ), - CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0
----
-227
NULL

skipif mysql # not compatible
query II rowsort label-7654
SELECT - SUM ( ALL + col0 ), - CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0
----
-227
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7655
SELECT MIN( - 79 ) AS col0, 65 col1 FROM tab1 AS cor0
----
-79
65

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7655
SELECT MIN ( - 79 ) AS col0, 65 col1 FROM tab1 AS cor0
----
-79
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7656
SELECT DISTINCT + COUNT( * ) DIV - - MAX( DISTINCT + col1 ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7656
SELECT DISTINCT + COUNT ( * ) / - - MAX ( DISTINCT + col1 ) AS col0 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7657
SELECT COUNT( * ) * 0 * - 15 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7657
SELECT COUNT ( * ) * 0 * - 15 AS col1 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7658
SELECT COUNT( * ) * 63 FROM tab2
----
189

skipif mysql # not compatible
query I rowsort label-7658
SELECT COUNT ( * ) * 63 FROM tab2
----
189

query I rowsort
SELECT ALL - - col0 * 23 + + col1 - col0 AS col1 FROM tab2 WHERE NOT - - col1 IN ( + col2, 52 + - col1 + + col2, + 42 )
----
1063
1485
1717

query I rowsort
SELECT col2 * + col0 * - col2 FROM tab2
----
-102400
-24334
-252300

onlyif mysql # aggregate syntax: 
query I rowsort label-7661
SELECT + MAX( ALL + 87 ) FROM tab0 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-7661
SELECT + MAX ( ALL + 87 ) FROM tab0 AS cor0
----
87

query I rowsort
SELECT ALL + 41 FROM tab0 AS cor0 WHERE col1 * + col0 IS NOT NULL
----
41
41
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7663
SELECT ALL - CAST( COUNT( * ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7663
SELECT ALL - CAST ( COUNT ( * ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT ALL col1 AS col1 FROM tab0 AS cor0 WHERE NOT + col0 * - col2 + + col1 + - + col0 < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7665
SELECT DISTINCT 0 * ( - COUNT( * ) ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7665
SELECT DISTINCT 0 * ( - COUNT ( * ) ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT + - col2 + col1 + - 83 AS col0 FROM tab0 AS cor0
----
-181
-49
-72

query I rowsort
SELECT - col2 + col0 + + 19 + - 38 * col2 FROM tab2
----
-1477
-2168
-832

onlyif mysql # aggregate syntax: 
query I rowsort label-7668
SELECT ALL - COUNT( * ) + - - COUNT( * ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7668
SELECT ALL - COUNT ( * ) + - - COUNT ( * ) FROM tab1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7669
SELECT ALL + 94 + - 17 DIV + COUNT( * ) FROM tab1
----
89

skipif mysql # not compatible
query I rowsort label-7669
SELECT ALL + 94 + - 17 / + COUNT ( * ) FROM tab1
----
89

query I rowsort
SELECT col2 * col2 * + + 89 + + - col2 FROM tab2
----
142360
299338
47058

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7671
SELECT col0 + + col1 + - - CAST( + col0 AS SIGNED ) FROM tab0 AS cor0
----
111
195
195

skipif mysql # not compatible
query I rowsort label-7671
SELECT col0 + + col1 + - - CAST ( + col0 AS INTEGER ) FROM tab0 AS cor0
----
111
195
195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7672
SELECT ALL - - 6 * - CAST( NULL AS SIGNED ) + 92 * - col0 col0 FROM tab0 AS cor0 WHERE NOT col1 NOT BETWEEN + col0 AND + col1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7672
SELECT ALL - - 6 * - CAST ( NULL AS INTEGER ) + 92 * - col0 col0 FROM tab0 AS cor0 WHERE NOT col1 NOT BETWEEN + col0 AND + col1
----
NULL

query I rowsort
SELECT - + col1 FROM tab2 AS cor0 WHERE - col0 IN ( + ( col1 ) / - col0 * 36 + - ( - col0 ) + - 5 * + + 38, - 49 * - col0 * col0 * + - col0, - 39 + + - col2 - + col2 + + ( + - 32 ) - - 87 )
----
-77

query I rowsort
SELECT 72 - + + col1 FROM tab2
----
-5
21
5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7675
SELECT DISTINCT CAST( NULL AS SIGNED ) - + - col2 + + 33 * col1 * 60 AS col0, 78 * - ( + ( + col1 ) ) FROM tab1
----
NULL
-1092
NULL
-3666
NULL
-390

skipif mysql # not compatible
query II rowsort label-7675
SELECT DISTINCT CAST ( NULL AS INTEGER ) - + - col2 + + 33 * col1 * 60 AS col0, 78 * - ( + ( + col1 ) ) FROM tab1
----
NULL
-1092
NULL
-3666
NULL
-390

query III rowsort
SELECT * FROM tab0 WHERE + col1 + + col0 + 79 + + + col1 + + col2 * + - 48 * + col2 * col0 / + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - - 96 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

query I rowsort
SELECT ALL + + col2 + + - 32 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT - - col0 * + + col1 FROM tab2 AS cor0
----
2346
4928
5025

query I rowsort
SELECT + - col1 * - + col2 FROM tab0 AS cor0
----
210
3807
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 53 * 99 col2, + 95 * + 10 * col0 + + + col1 + col2 * col0 FROM tab2 AS cor0
----
5247
44809
5247
63437
5247
75667

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab1 WHERE NOT + col0 / + col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - - 77 ) * - - 82 * + + col2 col2 FROM tab0
----
296758
625086
63140

onlyif mysql # aggregate syntax: 
query I rowsort label-7684
SELECT DISTINCT + COUNT( DISTINCT - col0 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7684
SELECT DISTINCT + COUNT ( DISTINCT - col0 ) FROM tab1
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 65 col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
65
65
65

query I rowsort
SELECT + 78 FROM tab2 cor0 WHERE NOT + col2 * col1 + + 19 + + + ( + col0 ) NOT BETWEEN - + col0 AND - 48
----

query I rowsort
SELECT ALL - + col0 AS col2 FROM tab2 WHERE NOT + col1 - - 88 + + col2 NOT BETWEEN 25 / - + col2 * - 82 + - col1 AND NULL
----

query I rowsort
SELECT - + 21 + + col2 AS col1 FROM tab1 AS cor0 WHERE ( NOT NULL IS NULL )
----

query I rowsort
SELECT + col2 + - col2 + + col2 FROM tab0 cor0
----
10
47
99

query I rowsort
SELECT - - col1 AS col2 FROM tab2 cor0 WHERE NULL BETWEEN 1 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 7 col1, + col2 + + col0 FROM tab0 AS cor0
----
-7
196
-7
62
-7
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7692
SELECT DISTINCT - COUNT( 94 ) * - ( - COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-7692
SELECT DISTINCT - COUNT ( 94 ) * - ( - COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
-9

query I rowsort
SELECT ALL + ( - col2 ) + - col2 AS col2 FROM tab1
----
-118
-136
-192

query I rowsort
SELECT DISTINCT + 28 - - col0 AS col0 FROM tab2
----
103
74
92

onlyif mysql # DIV for integer division: 
query I rowsort label-7695
SELECT DISTINCT col0 DIV - col2 + 92 * - - col2 FROM tab2
----
2114
3679
5335

skipif mysql # not compatible
query I rowsort label-7695
SELECT DISTINCT col0 / - col2 + 92 * - - col2 FROM tab2
----
2114
3679
5335

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - - 18 * col2 col2 FROM tab0
----
1879
267
861

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7697
SELECT col2 - - + col2 AS col0, CAST( + ( - ( - col1 ) ) AS SIGNED ) FROM tab0 AS cor0
----
198
1
20
21
94
81

skipif mysql # not compatible
query II rowsort label-7697
SELECT col2 - - + col2 AS col0, CAST ( + ( - ( - col1 ) ) AS INTEGER ) FROM tab0 AS cor0
----
198
1
20
21
94
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7698
SELECT ALL + col2 * - CAST( + - 62 AS SIGNED ) FROM tab2 AS cor0
----
1426
2480
3596

skipif mysql # not compatible
query I rowsort label-7698
SELECT ALL + col2 * - CAST ( + - 62 AS INTEGER ) FROM tab2 AS cor0
----
1426
2480
3596

onlyif mysql # aggregate syntax: 
query I rowsort label-7699
SELECT + + 29 + - COUNT( * ) AS col2 FROM tab1 cor0
----
26

skipif mysql # not compatible
query I rowsort label-7699
SELECT + + 29 + - COUNT ( * ) AS col2 FROM tab1 cor0
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-7700
SELECT + col0 * col1 + + + 24 DIV 4 FROM tab0 AS cor0
----
103
1221
1833

skipif mysql # not compatible
query I rowsort label-7700
SELECT + col0 * col1 + + + 24 / 4 FROM tab0 AS cor0
----
103
1221
1833

query I rowsort
SELECT col0 + - col0 + + col0 AS col1 FROM tab1
----
51
85
91

onlyif mysql # aggregate syntax: 
query II rowsort label-7702
SELECT DISTINCT 76 AS col0, - COUNT( * ) FROM tab0 AS cor0
----
76
-3

skipif mysql # not compatible
query II rowsort label-7702
SELECT DISTINCT 76 AS col0, - COUNT ( * ) FROM tab0 AS cor0
----
76
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-7703
SELECT ALL - 54 * + + 98 * + + col2 * - col0 DIV - - col0 + + + col0 FROM tab0 AS cor0
----
248739
524005
53007

skipif mysql # not compatible
query I rowsort label-7703
SELECT ALL - 54 * + + 98 * + + col2 * - col0 / - - col0 + + + col0 FROM tab0 AS cor0
----
248739
524005
53007

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + + 17 ) = + + 61 * + 91 + - col0 - - col1 * - + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7705
SELECT - SUM( ( - + col0 ) ) AS col0 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-7705
SELECT - SUM ( ( - + col0 ) ) AS col0 FROM tab2 AS cor0
----
185

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7706
SELECT + CAST( + ( MIN( - 72 ) ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-7706
SELECT + CAST ( + ( MIN ( - 72 ) ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-7707
SELECT ALL ( - - ( - MAX( DISTINCT - col1 ) ) ) AS col2 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-7707
SELECT ALL ( - - ( - MAX ( DISTINCT - col1 ) ) ) AS col2 FROM tab2 AS cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7708
SELECT DISTINCT COUNT( col1 ) col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7708
SELECT DISTINCT COUNT ( col1 ) col0 FROM tab0 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + + col1 ) col0 FROM tab0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7710
SELECT ALL SUM( - 51 ) FROM tab1
----
-153

skipif mysql # not compatible
query I rowsort label-7710
SELECT ALL SUM ( - 51 ) FROM tab1
----
-153

query I rowsort
SELECT - col1 AS col2 FROM tab0 WHERE + 69 BETWEEN - 24 + col2 AND 4
----

onlyif mysql # DIV for integer division: 
query II rowsort label-7712
SELECT col0 AS col1, + col0 * - + col0 * col1 DIV + - col0 AS col1 FROM tab1
----
51
714
85
425
91
4277

skipif mysql # not compatible
query II rowsort label-7712
SELECT col0 AS col1, + col0 * - + col0 * col1 / + - col0 AS col1 FROM tab1
----
51
714
85
425
91
4277

onlyif mysql # aggregate syntax: 
query I rowsort label-7713
SELECT ALL + - 11 + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-7713
SELECT ALL + - 11 + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-8

query I rowsort
SELECT - 55 * 87 FROM tab0 AS cor0
----
-4785
-4785
-4785

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 + - - 91 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-7716
SELECT - col1 DIV - col0 AS col1 FROM tab2 AS cor0 WHERE - col1 IS NOT NULL
----
0
1
1

skipif mysql # not compatible
query I rowsort label-7716
SELECT - col1 / - col0 AS col1 FROM tab2 AS cor0 WHERE - col1 IS NOT NULL
----
0
1
1

query I rowsort
SELECT col1 AS col0 FROM tab0 cor0 WHERE NULL IS NULL
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7718
SELECT DISTINCT col1 * - CAST( - - col0 AS SIGNED ) AS col0 FROM tab1 cor0
----
-425
-4277
-714

skipif mysql # not compatible
query I rowsort label-7718
SELECT DISTINCT col1 * - CAST ( - - col0 AS INTEGER ) AS col0 FROM tab1 cor0
----
-425
-4277
-714

query I rowsort
SELECT + - 76 - + 54 FROM tab2 cor0
----
-130
-130
-130

onlyif mysql # aggregate syntax: 
query I rowsort label-7720
SELECT COUNT( * ) + COUNT( - col1 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7720
SELECT COUNT ( * ) + COUNT ( - col1 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 74 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col2 + + ( col1 ) AS col1 FROM tab1
----
110
115
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7723
SELECT ALL - 67 + CAST( + COUNT( * ) AS SIGNED ) col2 FROM tab1
----
-64

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7723
SELECT ALL - 67 + CAST ( + COUNT ( * ) AS INTEGER ) col2 FROM tab1
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7724
SELECT + 27 + col0 * CAST( - + col2 AS SIGNED ) FROM tab2
----
-1031
-2533
-4323

skipif mysql # not compatible
query I rowsort label-7724
SELECT + 27 + col0 * CAST ( - + col2 AS INTEGER ) FROM tab2
----
-1031
-2533
-4323

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7725
SELECT ALL col0 - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7725
SELECT ALL col0 - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7726
SELECT + 54 + + + col2 DIV col1 AS col0 FROM tab0
----
153
54
54

skipif mysql # not compatible
query I rowsort label-7726
SELECT + 54 + + + col2 / col1 AS col0 FROM tab0
----
153
54
54

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN - col1 AND col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7728
SELECT - col0 * ( + - col1 ) DIV - - col0 AS col2 FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-7728
SELECT - col0 * ( + - col1 ) / - - col0 AS col2 FROM tab0
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7729
SELECT DISTINCT - + 13 / - CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7729
SELECT DISTINCT - + 13 / - CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7730
SELECT DISTINCT - + ( + col2 ) DIV col1 * + CAST( col0 AS SIGNED ) AS col0 FROM tab0 cor0
----
-9603
0

skipif mysql # not compatible
query I rowsort label-7730
SELECT DISTINCT - + ( + col2 ) / col1 * + CAST ( col0 AS INTEGER ) AS col0 FROM tab0 cor0
----
-9603
0

query IIIIII rowsort
SELECT ALL * FROM ( tab1 AS cor0 CROSS JOIN tab0 cor1 ) WHERE - 23 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7732
SELECT ALL + 76 * + MAX( DISTINCT col1 ) FROM tab2 AS cor0
----
5852

skipif mysql # not compatible
query I rowsort label-7732
SELECT ALL + 76 * + MAX ( DISTINCT col1 ) FROM tab2 AS cor0
----
5852

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - col1 * + 30 + - + col0 IS NOT NULL
----

query I rowsort
SELECT - col1 AS col0 FROM tab1 AS cor0 WHERE NOT 31 IS NULL
----
-14
-47
-5

query I rowsort
SELECT 32 FROM tab1 AS cor0 WHERE NOT + ( + + col0 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - 12 FROM tab2 cor0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-7737
SELECT + MIN( DISTINCT + col1 ) AS col0 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-7737
SELECT + MIN ( DISTINCT + col1 ) AS col0 FROM tab2
----
51

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 40 + + + 65 * col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7739
SELECT CAST( NULL AS SIGNED ) * - ( - - col2 ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7739
SELECT CAST ( NULL AS INTEGER ) * - ( - - col2 ) AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 * + + col1 AS col1 FROM tab0
----
1215
1827
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 80 col1 FROM tab2 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7742
SELECT MIN( DISTINCT + 17 ) col2 FROM tab0
----
17

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7742
SELECT MIN ( DISTINCT + 17 ) col2 FROM tab0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-7743
SELECT MAX( DISTINCT + 69 ) AS col0 FROM tab0
----
69

skipif mysql # not compatible
query I rowsort label-7743
SELECT MAX ( DISTINCT + 69 ) AS col0 FROM tab0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-7744
SELECT MIN( + + 80 ) col0 FROM tab0
----
80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7744
SELECT MIN ( + + 80 ) col0 FROM tab0
----
80

query II rowsort
SELECT - - col0, - col2 AS col1 FROM tab0 AS cor0
----
15
-47
87
-10
97
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-7746
SELECT - MIN( ALL - - col0 ) FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-7746
SELECT - MIN ( ALL - - col0 ) FROM tab0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-7747
SELECT COUNT( DISTINCT + - col0 ) col2 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7747
SELECT COUNT ( DISTINCT + - col0 ) col2 FROM tab1
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7748
SELECT DISTINCT CAST( + SUM( DISTINCT + + col0 ) AS SIGNED ) FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-7748
SELECT DISTINCT CAST ( + SUM ( DISTINCT + + col0 ) AS INTEGER ) FROM tab0
----
199

onlyif mysql # aggregate syntax: 
query I rowsort label-7749
SELECT ALL + 29 * - COUNT( * ) * 94 * - COUNT( DISTINCT - col1 ) * + 97 col0 FROM tab2
----
2379798

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7749
SELECT ALL + 29 * - COUNT ( * ) * 94 * - COUNT ( DISTINCT - col1 ) * + 97 col0 FROM tab2
----
2379798

query I rowsort
SELECT DISTINCT + ( + col2 ) + - col0 AS col1 FROM tab1 AS cor0
----
-23
-26
45

onlyif mysql # aggregate syntax: 
query I rowsort label-7751
SELECT ALL - ( + COUNT( ALL - col1 ) ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7751
SELECT ALL - ( + COUNT ( ALL - col1 ) ) AS col2 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-7752
SELECT - SUM( DISTINCT - 63 ), 99 AS col0 FROM tab1 AS cor0
----
63
99

skipif mysql # not compatible
query II rowsort label-7752
SELECT - SUM ( DISTINCT - 63 ), 99 AS col0 FROM tab1 AS cor0
----
63
99

onlyif mysql # aggregate syntax: 
query II rowsort label-7753
SELECT 65 col0, COUNT( * ) FROM tab2
----
65
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7753
SELECT 65 col0, COUNT ( * ) FROM tab2
----
65
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 82 * - + col2 - + col1 * 12 + - col0 * - col1 + 50 col1 FROM tab0
----
2445
4147
8253

query I rowsort
SELECT - col2 * - 46 AS col1 FROM tab0 AS cor0
----
2162
4554
460

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7756
SELECT - - MAX( CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7756
SELECT - - MAX ( CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7757
SELECT DISTINCT + ( + ( - + COUNT( * ) ) ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7757
SELECT DISTINCT + ( + ( - + COUNT ( * ) ) ) AS col2 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT DISTINCT 36 * - 97 AS col1 FROM tab0
----
-3492

query I rowsort
SELECT DISTINCT - 94 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-94

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7760
SELECT DISTINCT - col0 AS col0, - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
-51
NULL
-85
NULL
-91
NULL

skipif mysql # not compatible
query II rowsort label-7760
SELECT DISTINCT - col0 AS col0, - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
-51
NULL
-85
NULL
-91
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7761
SELECT ALL COUNT( * ) * + 68 FROM tab0 AS cor0
----
204

skipif mysql # not compatible
query I rowsort label-7761
SELECT ALL COUNT ( * ) * + 68 FROM tab0 AS cor0
----
204

query II rowsort
SELECT - col1 AS col1, + col1 * - - 91 * + 44 FROM tab0 AS cor0
----
-1
4004
-21
84084
-81
324324

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 * - col1 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7764
SELECT - - MIN( col1 ) AS col1 FROM tab2 cor0
----
51

skipif mysql # not compatible
query I rowsort label-7764
SELECT - - MIN ( col1 ) AS col1 FROM tab2 cor0
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7765
SELECT DISTINCT + 99 DIV + COUNT( * ) FROM tab0
----
33

skipif mysql # not compatible
query I rowsort label-7765
SELECT DISTINCT + 99 / + COUNT ( * ) FROM tab0
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7766
SELECT ALL - col2 / - - CAST( NULL AS SIGNED ) col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7766
SELECT ALL - col2 / - - CAST ( NULL AS INTEGER ) col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7767
SELECT CAST( NULL AS SIGNED ) * + + CAST( + col0 AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7767
SELECT CAST ( NULL AS INTEGER ) * + + CAST ( + col0 AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7768
SELECT + ( + COUNT( + + col1 ) ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7768
SELECT + ( + COUNT ( + + col1 ) ) AS col1 FROM tab1
----
3

query I rowsort
SELECT ( col0 ) + + 6 AS col1 FROM tab0 AS cor0
----
103
21
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 + 51 * + col1 col1 FROM tab2 AS cor0
----
2652
3484
4004

onlyif mysql # aggregate syntax: 
query II rowsort label-7771
SELECT ALL + - AVG ( DISTINCT + col2 ) AS col2, + COUNT( * ) FROM tab2 cor0 WHERE 29 / - 3 IS NULL
----
NULL
0

skipif mysql # not compatible
query II rowsort label-7771
SELECT ALL + - AVG ( DISTINCT + col2 ) AS col2, + COUNT ( * ) FROM tab2 cor0 WHERE 29 / - 3 IS NULL
----
NULL
0

query I rowsort
SELECT + + 82 + col2 - - col0 AS col2 FROM tab1 AS cor0
----
226
229
241

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col1, col1 col1 FROM tab2
----
51
51
67
67
77
77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7774
SELECT 88 * - col0, CAST( NULL AS SIGNED ) col0 FROM tab0 WHERE NULL IS NULL
----
-1320
NULL
-7656
NULL
-8536
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7774
SELECT 88 * - col0, CAST ( NULL AS INTEGER ) col0 FROM tab0 WHERE NULL IS NULL
----
-1320
NULL
-7656
NULL
-8536
NULL

query I rowsort
SELECT + 99 - + 19 AS col1 FROM tab2 AS cor0
----
80
80
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7776
SELECT - CAST( col2 AS SIGNED ) - + 11 FROM tab0 AS cor0 WHERE 20 + - + col1 >= NULL
----

skipif mysql # not compatible
query I rowsort label-7776
SELECT - CAST ( col2 AS INTEGER ) - + 11 FROM tab0 AS cor0 WHERE 20 + - + col1 >= NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL <> + col2 )
----

query I rowsort
SELECT + 71 + 61 AS col2 FROM tab2 AS cor0
----
132
132
132

onlyif mysql # aggregate syntax: 
query I rowsort label-7779
SELECT DISTINCT - - COUNT( * ) + + + 88 col0 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7779
SELECT DISTINCT - - COUNT ( * ) + + + 88 col0 FROM tab1 AS cor0
----
91

query I rowsort
SELECT 3 AS col0 FROM tab2 WHERE - 57 * + 67 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * col0 + col0 col0 FROM tab1
----
4947
5100
6279

query III rowsort
SELECT * FROM tab0 WHERE col0 NOT IN ( + 9 + ( + 10 ) * - 93, - 37 * - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7783
SELECT + ( 24 ) + CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7783
SELECT + ( 24 ) + CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7784
SELECT ALL 1 + + 28 DIV - col1 AS col1 FROM tab0
----
-27
0
1

skipif mysql # not compatible
query I rowsort label-7784
SELECT ALL 1 + + 28 / - col1 AS col1 FROM tab0
----
-27
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7785
SELECT DISTINCT - 72 + - - MIN( ALL + 31 ) FROM tab0
----
-41

skipif mysql # not compatible
query I rowsort label-7785
SELECT DISTINCT - 72 + - - MIN ( ALL + 31 ) FROM tab0
----
-41

query I rowsort
SELECT - col2 + - + col0 * + col0 AS col2 FROM tab1
----
-2697
-7284
-8349

query I rowsort
SELECT ALL col2 + - col0 * col0 FROM tab0
----
-178
-7559
-9310

onlyif mysql # aggregate syntax: 
query I rowsort label-7788
SELECT + COUNT( DISTINCT + col0 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7788
SELECT + COUNT ( DISTINCT + col0 ) AS col1 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7789
SELECT + COUNT( - + ( - + col0 ) ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7789
SELECT + COUNT ( - + ( - + col0 ) ) AS col1 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7790
SELECT COUNT( * ) DIV + + SUM( 72 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7790
SELECT COUNT ( * ) / + + SUM ( 72 ) FROM tab0
----
0

query I rowsort
SELECT ALL - 97 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e4a6bd848a69226cbb7ad3d154be321b

query I rowsort
SELECT ALL col0 FROM tab1 AS cor0 WHERE 71 IS NULL
----

query I rowsort
SELECT ALL + 63 AS col1 FROM tab1 cor0
----
63
63
63

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7794
SELECT * FROM tab2 AS cor0 WHERE NOT 29 <> + - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-7794
SELECT * FROM tab2 AS cor0 WHERE NOT 29 <> + - CAST ( NULL AS REAL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7795
SELECT + 69 + - SUM( col1 ) col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7795
SELECT + 69 + - SUM ( col1 ) col0 FROM tab1 AS cor0
----
3

query I rowsort
SELECT + + 23 + col0 AS col2 FROM tab2 AS cor0
----
69
87
98

query I rowsort
SELECT + 78 + + + 53 FROM tab2 AS cor0
----
131
131
131

query I rowsort
SELECT DISTINCT + - col2 + - 72 * - 11 * + 20 + - + 63 AS col1 FROM tab1 AS cor0
----
15681
15709
15718

query I rowsort
SELECT ALL col2 * - + col2 * col2 * - col1 FROM tab0
----
21000
8409663
970299

onlyif mysql # DIV for integer division: 
query I rowsort label-7800
SELECT ALL + col2 DIV col2 * + col2 AS col1 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-7800
SELECT ALL + col2 / col2 * + col2 AS col1 FROM tab2
----
23
40
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7801
SELECT + SUM( + - col1 ) * - + ( 89 ) AS col1, - CAST( NULL AS SIGNED ) * - + COUNT( * ) FROM tab1
----
5874
NULL

skipif mysql # not compatible
query II rowsort label-7801
SELECT + SUM ( + - col1 ) * - + ( 89 ) AS col1, - CAST ( NULL AS INTEGER ) * - + COUNT ( * ) FROM tab1
----
5874
NULL

query II rowsort
SELECT ALL + 67, col2 FROM tab2 AS cor0
----
67
23
67
40
67
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7803
SELECT - + ( + ( - COUNT( * ) ) ) - + - 10 + COUNT( * ) AS col2 FROM tab0 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-7803
SELECT - + ( + ( - COUNT ( * ) ) ) - + - 10 + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-7804
SELECT - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NULL >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-7804
SELECT - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NULL >= NULL
----
0

query I rowsort
SELECT ALL 63 + 11 FROM tab2 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

onlyif mysql # aggregate syntax: 
query I rowsort label-7806
SELECT + COUNT( * ) * - SUM( ALL + + 90 ) AS col0 FROM tab0 AS cor0
----
-810

skipif mysql # not compatible
query I rowsort label-7806
SELECT + COUNT ( * ) * - SUM ( ALL + + 90 ) AS col0 FROM tab0 AS cor0
----
-810

onlyif mysql # aggregate syntax: 
query II rowsort label-7807
SELECT - - ( - - 48 ), 71 * - - COUNT( * ) AS col0 FROM tab2 AS cor0
----
48
213

skipif mysql # not compatible
query II rowsort label-7807
SELECT - - ( - - 48 ), 71 * - - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
48
213

query I rowsort
SELECT ALL ( + ( - ( - + col1 ) ) ) * + col1 * + 80 FROM tab2 AS cor0
----
208080
359120
474320

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN + ( - - col1 ) AND col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7810
SELECT + COUNT( * ) DIV - 17 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7810
SELECT + COUNT ( * ) / - 17 FROM tab0 AS cor0
----
0

query II rowsort
SELECT DISTINCT - col2 * - col1 AS col1, 16 FROM tab1 AS cor0
----
1344
16
295
16
3196
16

onlyif mysql # DIV for integer division: 
query I rowsort label-7812
SELECT + + ( - 14 ) DIV + - col2 * + 75 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-7812
SELECT + + ( - 14 ) / + - col2 * + 75 col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - - 35 AS col0 FROM tab1 AS cor0 WHERE + col0 BETWEEN col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7814
SELECT DISTINCT + 27 * 39 * - - CAST( NULL AS SIGNED ) + + col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7814
SELECT DISTINCT + 27 * 39 * - - CAST ( NULL AS INTEGER ) + + col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7815
SELECT + 5 * - COUNT( * ) AS col2 FROM tab2
----
-15

skipif mysql # not compatible
query I rowsort label-7815
SELECT + 5 * - COUNT ( * ) AS col2 FROM tab2
----
-15

query II rowsort
SELECT ALL + col1, - col2 AS col2 FROM tab0
----
1
-99
21
-10
81
-47

onlyif mysql # DIV for integer division: 
query II rowsort label-7817
SELECT ALL col0 * col0 DIV col1 AS col2, col1 col0 FROM tab2
----
41
51
53
77
83
67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7817
SELECT ALL col0 * col0 / col1 AS col2, col1 col0 FROM tab2
----
41
51
53
77
83
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7818
SELECT + CAST( + 25 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
25
25
25

skipif mysql # not compatible
query I rowsort label-7818
SELECT + CAST ( + 25 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
25
25
25

query I rowsort
SELECT DISTINCT col1 FROM tab0 cor0 WHERE NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7820
SELECT DISTINCT - + COUNT( DISTINCT - - ( - col0 ) ) AS col0, COUNT( * ) FROM tab2 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-7820
SELECT DISTINCT - + COUNT ( DISTINCT - - ( - col0 ) ) AS col0, COUNT ( * ) FROM tab2 AS cor0
----
-3
3

query II rowsort
SELECT - col2 AS col1, - col0 FROM tab2 AS cor0
----
-23
-46
-40
-64
-58
-75

query I rowsort
SELECT ALL 91 * + col2 * + col2 * - col2 AS col0 FROM tab2 AS cor0
----
-1107197
-17755192
-5824000

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + 3, + 76 col2 FROM tab0 AS cor0
----
-3
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7824
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab0 WHERE NOT col1 * CAST( 7 AS SIGNED ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-7824
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab0 WHERE NOT col1 * CAST ( 7 AS INTEGER ) IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7825
SELECT + MIN( + col1 ) col0 FROM tab1
----
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7825
SELECT + MIN ( + col1 ) col0 FROM tab1
----
5

query I rowsort
SELECT + col2 * + col0 AS col2 FROM tab1 WHERE NOT - ( 20 ) / + col0 + - col0 IS NULL
----
4896
5015
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-7827
SELECT DISTINCT 95 + COUNT( * ) col1 FROM tab1
----
98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7827
SELECT DISTINCT 95 + COUNT ( * ) col1 FROM tab1
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-7828
SELECT + SUM( - 87 ) col1 FROM tab1
----
-261

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7828
SELECT + SUM ( - 87 ) col1 FROM tab1
----
-261

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL IN ( col2 / - col2 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) = col0 + + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col0 FROM tab2 WHERE 20 * + 43 + - 86 IS NULL
----

query I rowsort
SELECT - col1 * col2 + 38 FROM tab0
----
-172
-3769
-61

query I rowsort
SELECT ALL + 27 FROM tab1 WHERE ( + col2 ) NOT BETWEEN col0 + - 75 / - col0 AND - col2 + 16
----
27
27
27

query I rowsort
SELECT ALL - 74 * col0 FROM tab1
----
-3774
-6290
-6734

query I rowsort
SELECT DISTINCT - 5 * col1 AS col0 FROM tab1
----
-235
-25
-70

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN ( col0 ) + col2 AND col1 + + col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7837
SELECT CAST( NULL AS DECIMAL ) + 49 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7837
SELECT CAST ( NULL AS REAL ) + 49 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + ( - col0 ) * - col1 FROM tab1
----
425
4277
714

onlyif mysql # aggregate syntax: 
query I rowsort label-7839
SELECT DISTINCT - COUNT( * ) * 83 FROM tab1
----
-249

skipif mysql # not compatible
query I rowsort label-7839
SELECT DISTINCT - COUNT ( * ) * 83 FROM tab1
----
-249

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 / - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7841
SELECT ALL MIN( ALL col2 ) FROM tab1 WHERE NOT NULL NOT BETWEEN - ( + 21 ) AND ( + ( ( - 26 ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7841
SELECT ALL MIN ( ALL col2 ) FROM tab1 WHERE NOT NULL NOT BETWEEN - ( + 21 ) AND ( + ( ( - 26 ) ) )
----
NULL

query I rowsort
SELECT DISTINCT col0 * ( 21 * 53 ) AS col1 FROM tab1
----
101283
56763
94605

onlyif mysql # aggregate syntax: 
query I rowsort label-7843
SELECT - COUNT( * ) * - 61 AS col1 FROM tab0
----
183

skipif mysql # not compatible
query I rowsort label-7843
SELECT - COUNT ( * ) * - 61 AS col1 FROM tab0
----
183

query I rowsort
SELECT + col1 + 54 FROM tab2
----
105
121
131

query I rowsort
SELECT - col2 * + 82 FROM tab1
----
-4838
-5576
-7872

onlyif mysql # aggregate syntax: 
query I rowsort label-7846
SELECT ALL COUNT( * ) + + COUNT( ALL col0 ) FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-7846
SELECT ALL COUNT ( * ) + + COUNT ( ALL col0 ) FROM tab2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7847
SELECT - COUNT( * ) + + ( - ( - ( 42 ) ) ) AS col0 FROM tab0
----
39

skipif mysql # not compatible
query I rowsort label-7847
SELECT - COUNT ( * ) + + ( - ( - ( 42 ) ) ) AS col0 FROM tab0
----
39

query I rowsort
SELECT - col1 * 61 FROM tab2
----
-3111
-4087
-4697

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7849
SELECT ALL + CAST( + COUNT( * ) AS SIGNED ) + + COUNT( ALL - col1 ) AS col2 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-7849
SELECT ALL + CAST ( + COUNT ( * ) AS INTEGER ) + + COUNT ( ALL - col1 ) AS col2 FROM tab0
----
6

query I rowsort
SELECT col1 + ( + col1 + - 81 ) FROM tab1 AS cor0 WHERE + col1 BETWEEN col0 * col1 AND - col1 + + 57
----

query I rowsort
SELECT ALL + 95 * col1 AS col0 FROM tab2 AS cor0
----
4845
6365
7315

onlyif mysql # DIV for integer division: 
query I rowsort label-7852
SELECT col1 DIV - 21 FROM tab2 AS cor0
----
-2
-3
-3

skipif mysql # not compatible
query I rowsort label-7852
SELECT col1 / - 21 FROM tab2 AS cor0
----
-2
-3
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7853
SELECT ALL col2 + CAST( - col1 - - col2 * + col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
1426
3217
349

skipif mysql # not compatible
query I rowsort label-7853
SELECT ALL col2 + CAST ( - col1 - - col2 * + col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
1426
3217
349

query I rowsort
SELECT col1 * ( 46 ) AS col1 FROM tab2 AS cor0 WHERE NULL NOT IN ( 19 * 39 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7855
SELECT DISTINCT + MIN( ALL 20 ) FROM tab0 AS cor0 CROSS JOIN tab2
----
20

skipif mysql # not compatible
query I rowsort label-7855
SELECT DISTINCT + MIN ( ALL 20 ) FROM tab0 AS cor0 CROSS JOIN tab2
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7856
SELECT DISTINCT - 94 - + ( CAST( col1 AS SIGNED ) ) * 50 FROM tab1
----
-2444
-344
-794

skipif mysql # not compatible
query I rowsort label-7856
SELECT DISTINCT - 94 - + ( CAST ( col1 AS INTEGER ) ) * 50 FROM tab1
----
-2444
-344
-794

query I rowsort
SELECT DISTINCT + 0 - + col2 * 65 FROM tab0
----
-3055
-6435
-650

query I rowsort
SELECT + + col1 * + col1 - 64 FROM tab1 AS cor0
----
-39
132
2145

query I rowsort
SELECT ALL + 47 * + col1 AS col0 FROM tab0 cor0
----
3807
47
987

onlyif mysql # aggregate syntax: 
query I rowsort label-7860
SELECT COUNT( DISTINCT - 83 ) AS col2 FROM tab2 AS cor0 WHERE ( NULL ) > + ( col0 ) - col1
----
0

skipif mysql # not compatible
query I rowsort label-7860
SELECT COUNT ( DISTINCT - 83 ) AS col2 FROM tab2 AS cor0 WHERE ( NULL ) > + ( col0 ) - col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7861
SELECT * FROM tab0 cor0 WHERE ( col2 ) <= ( + col2 * + ( + col1 ) + - CAST( 19 AS SIGNED ) )
----
15
81
47
87
21
10

skipif mysql # not compatible
query III rowsort label-7861
SELECT * FROM tab0 cor0 WHERE ( col2 ) <= ( + col2 * + ( + col1 ) + - CAST ( 19 AS INTEGER ) )
----
15
81
47
87
21
10

onlyif mysql # DIV for integer division: 
query I rowsort label-7862
SELECT DISTINCT + 17 DIV + ( col2 * - 75 ) AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7862
SELECT DISTINCT + 17 / + ( col2 * - 75 ) AS col1 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7863
SELECT ALL + SUM( - 87 ) * COUNT( * ) AS col0 FROM tab0 AS cor0
----
-783

skipif mysql # not compatible
query I rowsort label-7863
SELECT ALL + SUM ( - 87 ) * COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-783

query I rowsort
SELECT ALL - 54 FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 NOT IN ( 3 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7866
SELECT DISTINCT + - COUNT( ALL 41 ) DIV 34 AS col0 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-7866
SELECT DISTINCT + - COUNT ( ALL 41 ) / 34 AS col0 FROM tab0 cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7867
SELECT col0 / 9 * CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7867
SELECT col0 / 9 * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ( - 69 ) * + col0 FROM tab0
----
-1035
-6003
-6693

onlyif mysql # DIV for integer division: 
query I rowsort label-7869
SELECT 93 DIV + 2 FROM tab0
----
46
46
46

skipif mysql # not compatible
query I rowsort label-7869
SELECT 93 / + 2 FROM tab0
----
46
46
46

query I rowsort
SELECT ( - - col0 ) * 96 AS col0 FROM tab2
----
4416
6144
7200

query I rowsort
SELECT ALL + 21 * + col2 AS col1 FROM tab0
----
2079
210
987

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7872
SELECT ALL - CAST( - col2 AS SIGNED ) * col1 AS col2 FROM tab1
----
1344
295
3196

skipif mysql # not compatible
query I rowsort label-7872
SELECT ALL - CAST ( - col2 AS INTEGER ) * col1 AS col2 FROM tab1
----
1344
295
3196

onlyif mysql # DIV for integer division: 
query I rowsort label-7873
SELECT DISTINCT - 88 DIV + col1 col0 FROM tab0
----
-1
-4
-88

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7873
SELECT DISTINCT - 88 / + col1 col0 FROM tab0
----
-1
-4
-88

query I rowsort
SELECT ALL + 84 FROM tab2 AS cor0 WHERE + 42 * col0 + ( + col2 ) * + col2 <> NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col0 + 53 = - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7876
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col0 * CAST( NULL AS SIGNED ) <= NULL
----

skipif mysql # not compatible
query III rowsort label-7876
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col0 * CAST ( NULL AS INTEGER ) <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7877
SELECT DISTINCT CAST( - 97 AS SIGNED ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-97

skipif mysql # not compatible
query I rowsort label-7877
SELECT DISTINCT CAST ( - 97 AS INTEGER ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-7878
SELECT ALL 91, - COUNT( * ) AS col1 FROM tab1
----
91
-3

skipif mysql # not compatible
query II rowsort label-7878
SELECT ALL 91, - COUNT ( * ) AS col1 FROM tab1
----
91
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7879
SELECT - COUNT( * ) DIV 52 * MAX( col0 ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7879
SELECT - COUNT ( * ) / 52 * MAX ( col0 ) AS col0 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7880
SELECT - COUNT( * ) * 7 + + 72 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-7880
SELECT - COUNT ( * ) * 7 + + 72 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + col1 * col0 + 58 NOT BETWEEN + col2 AND ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 85 <> col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - + 52 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 9500afe5646d620d5e8943351a29d082

onlyif mysql # aggregate syntax: 
query II rowsort label-7884
SELECT ALL COUNT( * ), MIN( ALL - col2 ) * - COUNT( * ) + - 65 col1 FROM tab2
----
3
109

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7884
SELECT ALL COUNT ( * ), MIN ( ALL - col2 ) * - COUNT ( * ) + - 65 col1 FROM tab2
----
3
109

onlyif mysql # aggregate syntax: 
query I rowsort label-7885
SELECT COUNT( * ) + 25 FROM tab2, tab0 cor0
----
34

skipif mysql # not compatible
query I rowsort label-7885
SELECT COUNT ( * ) + 25 FROM tab2, tab0 cor0
----
34

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE NOT + col1 - + + 62 * - 69 IS NULL
----
15
87
97

query I rowsort
SELECT col2 FROM tab0 cor0 WHERE NULL BETWEEN + 81 AND NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN - col2 AND col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 72 + + 52 col0 FROM tab1 AS cor0
----
124
124
124

onlyif mysql # aggregate syntax: 
query I rowsort label-7890
SELECT - SUM( - col0 ) + - - COUNT( * ) FROM tab0 AS cor0
----
202

skipif mysql # not compatible
query I rowsort label-7890
SELECT - SUM ( - col0 ) + - - COUNT ( * ) FROM tab0 AS cor0
----
202

onlyif mysql # DIV for integer division: 
query I rowsort label-7891
SELECT - col1 * 2 + - - col1 DIV + 5 FROM tab0 cor0
----
-146
-2
-38

skipif mysql # not compatible
query I rowsort label-7891
SELECT - col1 * 2 + - - col1 / + 5 FROM tab0 cor0
----
-146
-2
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-7892
SELECT ( COUNT( * ) ) FROM tab2 AS cor0 WHERE ( 42 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-7892
SELECT ( COUNT ( * ) ) FROM tab2 AS cor0 WHERE ( 42 ) IS NOT NULL
----
3

query I rowsort
SELECT DISTINCT ( + + col0 ) + + col2 FROM tab2 AS cor0
----
104
133
69

query II rowsort
SELECT 74 * col0, - col1 AS col2 FROM tab0
----
1110
-81
6438
-21
7178
-1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + 31 ) NOT BETWEEN + 12 / + col2 - col0 AND 18
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7896
SELECT DISTINCT CAST( NULL AS SIGNED ) + - ( + + col1 ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7896
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - ( + + col1 ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT 1 * - 90 FROM tab0 WHERE NOT ( - col2 ) BETWEEN 85 - - 40 AND ( NULL )
----
-90

query I rowsort
SELECT ALL + 94 + - + col1 + - ( col2 ) * + col0 AS col0 FROM tab1
----
-4816
-4926
-6141

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7899
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col0 FROM tab2 WHERE NOT col1 + - + 75 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7899
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 WHERE NOT col1 + - + 75 IS NULL
----
NULL

query I rowsort
SELECT + col1 - + 70 AS col2 FROM tab2 cor0
----
-19
-3
7

onlyif mysql # DIV for integer division: 
query I rowsort label-7901
SELECT DISTINCT + 91 DIV - - 3 + - col2 + + col2 FROM tab0 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-7901
SELECT DISTINCT + 91 / - - 3 + - col2 + + col2 FROM tab0 AS cor0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-7902
SELECT DISTINCT 12 * + COUNT( * ) AS col1 FROM tab0
----
36

skipif mysql # not compatible
query I rowsort label-7902
SELECT DISTINCT 12 * + COUNT ( * ) AS col1 FROM tab0
----
36

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE NOT col1 + - ( - col0 ) * + col1 BETWEEN col2 * + 21 AND ( NULL )
----
-97

query II rowsort
SELECT col1 AS col2, - col1 FROM tab1 AS cor0
----
14
-14
47
-47
5
-5

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col1 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7906
SELECT MIN( - + col2 ) AS col1 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-7906
SELECT MIN ( - + col2 ) AS col1 FROM tab1 AS cor0
----
-96

query I rowsort
SELECT + col0 * + + col2 AS col1 FROM tab0 AS cor0
----
705
870
9603

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + 52 ) NOT BETWEEN + col1 AND - col2
----

query I rowsort
SELECT - + ( + + col0 ) * 22 + - col0 + - col2 - + col1 AS col0 FROM tab0 AS cor0
----
-2032
-2331
-473

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7910
SELECT col1 + - col2 + + CAST( + 82 AS SIGNED ) * + 33 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-7910
SELECT col1 + - col2 + + CAST ( + 82 AS INTEGER ) * + 33 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL - col0 * + + col0 + col0 AS col0 FROM tab2 AS cor0
----
-2070
-4032
-5550

onlyif mysql # DIV for integer division: 
query I rowsort label-7912
SELECT col0 DIV - + col1 FROM tab0 AS cor0
----
-4
-97
0

skipif mysql # not compatible
query I rowsort label-7912
SELECT col0 / - + col1 FROM tab0 AS cor0
----
-4
-97
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7913
SELECT - + COUNT( + col2 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7913
SELECT - + COUNT ( + col2 ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT DISTINCT + col1 * + 49 AS col0 FROM tab1
----
2303
245
686

query I rowsort
SELECT ALL - col1 AS col0 FROM tab2 WHERE NOT + col0 IN ( - + col0, + col0 )
----

query I rowsort
SELECT DISTINCT col0 FROM tab0 WHERE ( NOT NULL IS NOT NULL )
----
15
87
97

onlyif mysql # DIV for integer division: 
query I rowsort label-7917
SELECT ( - - col2 ) DIV - col0 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7917
SELECT ( - - col2 ) / - col0 AS col2 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7918
SELECT COUNT( * ) * + ( + - 45 ) AS col2 FROM tab1
----
-135

skipif mysql # not compatible
query I rowsort label-7918
SELECT COUNT ( * ) * + ( + - 45 ) AS col2 FROM tab1
----
-135

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + col0 col1 FROM tab0 WHERE NOT + - 17 NOT BETWEEN + + 91 * - - 99 AND + - 13
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - 99 NOT BETWEEN - - col1 AND - col0 * + 19
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 37 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7922
SELECT ALL - 96 DIV - col2 FROM tab2 AS cor0
----
1
2
4

skipif mysql # not compatible
query I rowsort label-7922
SELECT ALL - 96 / - col2 FROM tab2 AS cor0
----
1
2
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7923
SELECT ALL + COUNT( * ) FROM tab1 WHERE NOT ( - - ( - - 42 ) * ( - ( - col2 ) ) + - col1 ) IN ( + 64 )
----
3

skipif mysql # not compatible
query I rowsort label-7923
SELECT ALL + COUNT ( * ) FROM tab1 WHERE NOT ( - - ( - - 42 ) * ( - ( - col2 ) ) + - col1 ) IN ( + 64 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7924
SELECT DISTINCT + MIN( - col2 ) FROM tab1 WHERE NOT - col2 BETWEEN ( - ( - col2 ) ) AND + col0 * col1 + + 0
----
-96

skipif mysql # not compatible
query I rowsort label-7924
SELECT DISTINCT + MIN ( - col2 ) FROM tab1 WHERE NOT - col2 BETWEEN ( - ( - col2 ) ) AND + col0 * col1 + + 0
----
-96

query I rowsort
SELECT col2 / 10 FROM tab0 AS cor0 WHERE ( col1 ) BETWEEN NULL AND 49
----

query I rowsort
SELECT 39 + - + 81 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7927
SELECT COUNT( * ) * + 89 - - 69 AS col1 FROM tab2 AS cor0
----
336

skipif mysql # not compatible
query I rowsort label-7927
SELECT COUNT ( * ) * + 89 - - 69 AS col1 FROM tab2 AS cor0
----
336

query I rowsort
SELECT + - col2 + - - 22 FROM tab0 cor0 WHERE + 75 + - col1 IS NOT NULL
----
-25
-77
12

query I rowsort
SELECT ALL - - ( col2 ) + ( 40 ) FROM tab2 AS cor0
----
63
80
98

query II rowsort
SELECT DISTINCT - col0 + + 56 AS col1, col2 FROM tab1 AS cor0
----
-29
59
-35
68
5
96

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 7 * - - col2 >= 87
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7933
SELECT ALL - CAST( NULL AS SIGNED ) + + ( + + MAX( ALL + col2 ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7933
SELECT ALL - CAST ( NULL AS INTEGER ) + + ( + + MAX ( ALL + col2 ) ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7934
SELECT ALL + 21 - - + MAX( ALL + + col1 ) FROM tab0
----
102

skipif mysql # not compatible
query I rowsort label-7934
SELECT ALL + 21 - - + MAX ( ALL + + col1 ) FROM tab0
----
102

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7935
SELECT ALL 47 * COUNT( * ) + 40 DIV - 20 AS col2 FROM tab0
----
139

skipif mysql # not compatible
query I rowsort label-7935
SELECT ALL 47 * COUNT ( * ) + 40 / - 20 AS col2 FROM tab0
----
139

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT IN ( col2, - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + 82 col0 FROM tab0
----
1
61
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7938
SELECT COUNT( * ) + 94 FROM tab2
----
97

skipif mysql # not compatible
query I rowsort label-7938
SELECT COUNT ( * ) + 94 FROM tab2
----
97

query I rowsort
SELECT - + col2 - - + 93 AS col1 FROM tab2 AS cor0
----
35
53
70

query I rowsort
SELECT col1 AS col0 FROM tab1 WHERE col1 < + - 88
----

query I rowsort
SELECT ALL - 5 * - 64 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b15d423d56103fcaf51686c067f7a50b

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL BETWEEN NULL AND 45
----

query I rowsort
SELECT + + 40 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

query I rowsort
SELECT + + 99 AS col1 FROM tab2 AS cor0 WHERE NOT ( + 64 ) * + col1 - + + col1 + 70 IS NOT NULL
----

query I rowsort
SELECT ALL col1 * - + 10 - col2 FROM tab0 AS cor0
----
-109
-220
-857

onlyif mysql # aggregate syntax: 
query I rowsort label-7946
SELECT COUNT( * ) * - + 30 FROM tab0 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-7946
SELECT COUNT ( * ) * - + 30 FROM tab0 AS cor0
----
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7947
SELECT ALL COUNT( * ) DIV COUNT( * ) AS col2, - 57 AS col0 FROM tab1 AS cor0 WHERE NOT + col0 IS NULL
----
1
-57

skipif mysql # not compatible
query II rowsort label-7947
SELECT ALL COUNT ( * ) / COUNT ( * ) AS col2, - 57 AS col0 FROM tab1 AS cor0 WHERE NOT + col0 IS NULL
----
1
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-7948
SELECT - + MIN( + col1 ) AS col2 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7948
SELECT - + MIN ( + col1 ) AS col2 FROM tab0 AS cor0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7949
SELECT - + 84 DIV 96 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7949
SELECT - + 84 / 96 AS col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7950
SELECT 6 * + MAX( - col0 ) + + 62 AS col2 FROM tab0 AS cor0 WHERE NOT + 40 >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7950
SELECT 6 * + MAX ( - col0 ) + + 62 AS col2 FROM tab0 AS cor0 WHERE NOT + 40 >= NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7951
SELECT + COUNT( * ) * SUM( + 4 ) FROM tab2
----
36

skipif mysql # not compatible
query I rowsort label-7951
SELECT + COUNT ( * ) * SUM ( + 4 ) FROM tab2
----
36

query I rowsort
SELECT ALL 15 * + 81 AS col0 FROM tab2
----
1215
1215
1215

onlyif mysql # aggregate syntax: 
query I rowsort label-7953
SELECT + 94 * + ( - COUNT( * ) ) AS col0 FROM tab0
----
-282

skipif mysql # not compatible
query I rowsort label-7953
SELECT + 94 * + ( - COUNT ( * ) ) AS col0 FROM tab0
----
-282

query I rowsort
SELECT DISTINCT - 0 * - col0 FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7955
SELECT ALL col1 DIV + + col0 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7955
SELECT ALL col1 / + + col0 AS col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7956
SELECT - COUNT( * ) * + - 58 AS col2 FROM tab0
----
174

skipif mysql # not compatible
query I rowsort label-7956
SELECT - COUNT ( * ) * + - 58 AS col2 FROM tab0
----
174

onlyif mysql # aggregate syntax: 
query I rowsort label-7957
SELECT DISTINCT + SUM( - + 84 ) AS col2 FROM tab0
----
-252

skipif mysql # not compatible
query I rowsort label-7957
SELECT DISTINCT + SUM ( - + 84 ) AS col2 FROM tab0
----
-252

query III rowsort
SELECT * FROM tab1 WHERE NOT - 60 - - ( col2 ) + + + col0 * + col1 BETWEEN NULL AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7959
SELECT - col0 * col0 * + CAST( NULL AS SIGNED ) * + col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7959
SELECT - col0 * col0 * + CAST ( NULL AS INTEGER ) * + col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7960
SELECT ALL col2 DIV - 3 col0 FROM tab0
----
-15
-3
-33

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7960
SELECT ALL col2 / - 3 col0 FROM tab0
----
-15
-3
-33

query I rowsort
SELECT ALL + AVG ( - 37 ) AS col1 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7962
SELECT DISTINCT 99 AS col1, - COUNT( * ) AS col1 FROM tab2
----
99
-3

skipif mysql # not compatible
query II rowsort label-7962
SELECT DISTINCT 99 AS col1, - COUNT ( * ) AS col1 FROM tab2
----
99
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7963
SELECT + + MAX( DISTINCT + col1 ) AS col0 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-7963
SELECT + + MAX ( DISTINCT + col1 ) AS col0 FROM tab2 AS cor0
----
77

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7964
SELECT * FROM tab1 AS cor0 WHERE NOT - 21 <= + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-7964
SELECT * FROM tab1 AS cor0 WHERE NOT - 21 <= + CAST ( NULL AS REAL )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <> - col2 / col2 * + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - + 27 ) + + col2 col2 FROM tab2
----
-4
13
31

onlyif mysql # DIV for integer division: 
query I rowsort label-7967
SELECT + + 35 DIV col0 + - col1 FROM tab0 AS cor0
----
-1
-21
-79

skipif mysql # not compatible
query I rowsort label-7967
SELECT + + 35 / col0 + - col1 FROM tab0 AS cor0
----
-1
-21
-79

query II rowsort
SELECT DISTINCT - 65 AS col2, - col2 AS col1 FROM tab1 AS cor0
----
-65
-59
-65
-68
-65
-96

query I rowsort
SELECT DISTINCT + 25 + + + 23 FROM tab2 AS cor0
----
48

query I rowsort
SELECT - + 10 * + + col2 FROM tab2 AS cor0
----
-230
-400
-580

onlyif mysql # DIV for integer division: 
query I rowsort label-7971
SELECT col2 * + 3 + + - 14 DIV 8 DIV 98 FROM tab1 AS cor0
----
177
204
288

skipif mysql # not compatible
query I rowsort label-7971
SELECT col2 * + 3 + + - 14 / 8 / 98 FROM tab1 AS cor0
----
177
204
288

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE - 23 BETWEEN + col2 + col0 AND - + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7973
SELECT * FROM tab1 WHERE + + CAST( - 51 AS SIGNED ) > ( 63 ) * col0 * - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7973
SELECT * FROM tab1 WHERE + + CAST ( - 51 AS INTEGER ) > ( 63 ) * col0 * - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-7974
SELECT DISTINCT + COUNT( * ) + COUNT( * ), - 17 AS col1 FROM tab2
----
6
-17

skipif mysql # not compatible
query II rowsort label-7974
SELECT DISTINCT + COUNT ( * ) + COUNT ( * ), - 17 AS col1 FROM tab2
----
6
-17

query I rowsort
SELECT DISTINCT 46 * + col0 * - + 17 + + col0 AS col1 FROM tab0
----
-11715
-67947
-75757

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + 92 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7977
SELECT COUNT( 30 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7977
SELECT COUNT ( 30 ) FROM tab1
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7978
SELECT - - COUNT( * ) AS col0 FROM tab0 WHERE + CAST( NULL AS SIGNED ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7978
SELECT - - COUNT ( * ) AS col0 FROM tab0 WHERE + CAST ( NULL AS INTEGER ) IS NOT NULL
----
0

query I rowsort
SELECT ALL - - col1 + + + col1 + + 75 * col0 * 43 FROM tab2 AS cor0
----
148452
206554
242009

query I rowsort
SELECT ( + + 3 ) + col0 * + col2 * + - 54 + - col2 FROM tab0 AS cor0
----
-38114
-46987
-518658

query I rowsort
SELECT ALL + col2 * - - col2 AS col0 FROM tab0
----
100
2209
9801

onlyif mysql # aggregate syntax: 
query I rowsort label-7982
SELECT ALL + COUNT( DISTINCT + col0 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7982
SELECT ALL + COUNT ( DISTINCT + col0 ) AS col0 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-7983
SELECT DISTINCT - COUNT( * ) AS col1, MAX( - - col1 ) AS col2 FROM tab0
----
-3
81

skipif mysql # not compatible
query II rowsort label-7983
SELECT DISTINCT - COUNT ( * ) AS col1, MAX ( - - col1 ) AS col2 FROM tab0
----
-3
81

query II rowsort
SELECT + 84 AS col0, - 98 AS col1 FROM tab0
----
84
-98
84
-98
84
-98

query I rowsort
SELECT ALL - - ( - 55 ) FROM tab2 AS cor0
----
-55
-55
-55

query II rowsort
SELECT + 96, col0 AS col0 FROM tab1 AS cor0
----
96
51
96
85
96
91

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( NULL ) <= + + col1
----

query I rowsort
SELECT + col1 * + col2 + - - 50 + - - ( - 59 ) FROM tab0 AS cor0
----
201
3798
90

onlyif mysql # aggregate syntax: 
query II rowsort label-7989
SELECT COUNT( * ) AS col0, COUNT( * ) AS col1 FROM tab1 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-7989
SELECT COUNT ( * ) AS col0, COUNT ( * ) AS col1 FROM tab1 AS cor0
----
3
3

query I rowsort
SELECT DISTINCT - 82 * - col2 AS col0 FROM tab0 AS cor0
----
3854
8118
820

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 7 + + + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7992
SELECT DISTINCT + col0 * CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7992
SELECT DISTINCT + col0 * CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 IN ( - ( ( - - col2 ) ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-7994
SELECT + 12 DIV - ( col0 ) AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7994
SELECT + 12 / - ( col0 ) AS col1 FROM tab0
----
0
0
0

onlyif mysql # DIV for integer division: 
query II rowsort label-7995
SELECT - 78 DIV - 74 AS col2, - 87 AS col2 FROM tab0
----
1
-87
1
-87
1
-87

skipif mysql # not compatible
query II rowsort label-7995
SELECT - 78 / - 74 AS col2, - 87 AS col2 FROM tab0
----
1
-87
1
-87
1
-87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 5 col2 FROM tab2 AS cor0
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-7997
SELECT ALL - col1 + + + 94 + col1 * + - col2 + + col1 * + 71 + - 13 DIV - col0 * + + 8 AS col0 FROM tab0 AS cor0
----
1354
1957
65

skipif mysql # not compatible
query I rowsort label-7997
SELECT ALL - col1 + + + 94 + col1 * + - col2 + + col1 * + 71 + - 13 / - col0 * + + 8 AS col0 FROM tab0 AS cor0
----
1354
1957
65

query I rowsort
SELECT DISTINCT col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
1
21
81

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col2 <> + - col2 * - col2 + + + col2 + ( + col2 ) - col2 * - col2
----

query I rowsort
SELECT + col2 * - col1 AS col2 FROM tab2 WHERE ( NULL BETWEEN NULL AND col2 )
----

query I rowsort
SELECT - 43 * + 88 FROM tab2
----
-3784
-3784
-3784

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 * + 68 / + col1 + - + col2 >= + + ( + + col2 ) * - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8003
SELECT + col0 * 51 DIV - + ( - col2 ) FROM tab0 AS cor0
----
16
443
49

skipif mysql # not compatible
query I rowsort label-8003
SELECT + col0 * 51 / - + ( - col2 ) FROM tab0 AS cor0
----
16
443
49

onlyif mysql # aggregate syntax: 
query I rowsort label-8004
SELECT ALL + COUNT( DISTINCT + - 90 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8004
SELECT ALL + COUNT ( DISTINCT + - 90 ) FROM tab0 AS cor0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8005
SELECT - 56 - - col0 DIV + 50 + - col0 - - col1 AS col1 FROM tab1 AS cor0
----
-135
-92
-99

skipif mysql # not compatible
query I rowsort label-8005
SELECT - 56 - - col0 / + 50 + - col0 - - col1 AS col1 FROM tab1 AS cor0
----
-135
-92
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8006
SELECT MIN( - + col1 ) DIV + 97 - - 72 - - 24 FROM tab0 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-8006
SELECT MIN ( - + col1 ) / + 97 - - 72 - - 24 FROM tab0 AS cor0
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8007
SELECT + + col1 - - + col2 * + - col1 / - - col2 * - CAST( NULL AS SIGNED ) * + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8007
SELECT + + col1 - - + col2 * + - col1 / - - col2 * - CAST ( NULL AS INTEGER ) * + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - 57 * + 70 AS col2 FROM tab2 AS cor0
----
3990
3990
3990

query I rowsort
SELECT DISTINCT col1 + + - col0 AS col0 FROM tab1 AS cor0
----
-37
-44
-80

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 + 97 NOT IN ( - col2 * 83 * + col2 / + col2 + + + 21, col0 * - col1, - 51 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8011
SELECT - COUNT( * ) + - - CAST( - 22 AS SIGNED ) AS col0 FROM tab1
----
-25

skipif mysql # not compatible
query I rowsort label-8011
SELECT - COUNT ( * ) + - - CAST ( - 22 AS INTEGER ) AS col0 FROM tab1
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8012
SELECT ALL + + CAST( NULL AS SIGNED ) + - COUNT( * ) FROM tab0 WHERE NOT + col0 - + 49 NOT BETWEEN col1 AND col0 + + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8012
SELECT ALL + + CAST ( NULL AS INTEGER ) + - COUNT ( * ) FROM tab0 WHERE NOT + col0 - + 49 NOT BETWEEN col1 AND col0 + + col2
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT IN ( col2 * col2 * - col0 * 28 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8014
SELECT ALL + COUNT( DISTINCT col1 ) * COUNT( * ) - - COUNT( * ) AS col0 FROM tab2
----
12

skipif mysql # not compatible
query I rowsort label-8014
SELECT ALL + COUNT ( DISTINCT col1 ) * COUNT ( * ) - - COUNT ( * ) AS col0 FROM tab2
----
12

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8015
SELECT 38 * col1 + + CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8015
SELECT 38 * col1 + + CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col2 + - 88 > - - 49
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8017
SELECT DISTINCT + MAX( - col0 ) - - COUNT( * ) AS col0 FROM tab0
----
-12

skipif mysql # not compatible
query I rowsort label-8017
SELECT DISTINCT + MAX ( - col0 ) - - COUNT ( * ) AS col0 FROM tab0
----
-12

query II rowsort
SELECT - col0 AS col1, + col2 - 60 FROM tab1
----
-51
36
-85
-1
-91
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8019
SELECT DISTINCT CAST( col1 AS SIGNED ) * col2 * - col0 * col2 * - + 1 AS col2 FROM tab2
----
1241034
16904100
7884800

skipif mysql # not compatible
query I rowsort label-8019
SELECT DISTINCT CAST ( col1 AS INTEGER ) * col2 * - col0 * col2 * - + 1 AS col2 FROM tab2
----
1241034
16904100
7884800

query III rowsort
SELECT ALL * FROM tab0 WHERE + col2 >= + 63 * - col2 + - 95
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8021
SELECT DISTINCT + - MAX( ALL - col2 ) AS col0 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-8021
SELECT DISTINCT + - MAX ( ALL - col2 ) AS col0 FROM tab2 AS cor0
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8022
SELECT - col1 AS col2 FROM tab1 AS cor0 WHERE NOT col0 BETWEEN + CAST( NULL AS SIGNED ) + CAST( NULL AS SIGNED ) AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-8022
SELECT - col1 AS col2 FROM tab1 AS cor0 WHERE NOT col0 BETWEEN + CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER ) AND ( NULL )
----

query II rowsort
SELECT ALL + + col0, - 3 FROM tab1 AS cor0
----
51
-3
85
-3
91
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8024
SELECT ALL ( + + COUNT( * ) ) * 59 col2 FROM tab2 AS cor0
----
177

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8024
SELECT ALL ( + + COUNT ( * ) ) * 59 col2 FROM tab2 AS cor0
----
177

onlyif mysql # aggregate syntax: 
query I rowsort label-8025
SELECT MAX( - - 1 ) * - 82 col0 FROM tab2
----
-82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8025
SELECT MAX ( - - 1 ) * - 82 col0 FROM tab2
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-8026
SELECT DISTINCT + - ( + SUM( DISTINCT + + col0 ) ) col2 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8026
SELECT DISTINCT + - ( + SUM ( DISTINCT + + col0 ) ) col2 FROM tab0 AS cor0
----
-199

query I rowsort
SELECT - 19 * - 97 FROM tab1 AS cor0 WHERE NOT NULL < - col0
----

query I rowsort
SELECT + ( - - 45 ) + + col1 FROM tab2 AS cor0 WHERE NOT 72 IS NOT NULL
----

query I rowsort
SELECT ALL 13 * - + 6 FROM tab0 AS cor0
----
-78
-78
-78

query II rowsort
SELECT - col1 AS col0, col1 FROM tab2
----
-51
51
-67
67
-77
77

query I rowsort
SELECT DISTINCT 78 * - col1 + + col0 + - 51 * - col2 AS col2 FROM tab2
----
-2193
-2759
-3902

query II rowsort
SELECT 74 AS col1, col1 - + col2 FROM tab2
----
74
28
74
37
74
9

query II rowsort
SELECT DISTINCT col1 AS col2, + col1 * + 91 + - ( + 13 ) * col0 - + col2 AS col0 FROM tab0
----
1
-1269
21
770
81
7129

onlyif mysql # DIV for integer division: 
query I rowsort label-8034
SELECT - col1 DIV - + 58 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-8034
SELECT - col1 / - + 58 FROM tab2
----
0
1
1

query II rowsort
SELECT ALL + 57, - ( + col2 ) AS col1 FROM tab2
----
57
-23
57
-40
57
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-8036
SELECT + MAX( - 37 ) FROM tab1 AS cor0
----
-37

skipif mysql # not compatible
query I rowsort label-8036
SELECT + MAX ( - 37 ) FROM tab1 AS cor0
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8037
SELECT ALL + - CAST( NULL AS SIGNED ) * + + ( - + COUNT( * ) ) AS col2, + COUNT( * ) - - COUNT( ALL - + 9 ) * 28 FROM tab2 AS cor0
----
NULL
87

skipif mysql # not compatible
query II rowsort label-8037
SELECT ALL + - CAST ( NULL AS INTEGER ) * + + ( - + COUNT ( * ) ) AS col2, + COUNT ( * ) - - COUNT ( ALL - + 9 ) * 28 FROM tab2 AS cor0
----
NULL
87

onlyif mysql # aggregate syntax: 
query I rowsort label-8038
SELECT ALL COUNT( + - col2 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8038
SELECT ALL COUNT ( + - col2 ) AS col2 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8039
SELECT 35 + - COUNT( * ) AS col0, COUNT( CAST( + + col0 AS SIGNED ) ) AS col2 FROM tab2
----
32
3

skipif mysql # not compatible
query II rowsort label-8039
SELECT 35 + - COUNT ( * ) AS col0, COUNT ( CAST ( + + col0 AS INTEGER ) ) AS col2 FROM tab2
----
32
3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col2 + - + col1 + + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8041
SELECT DISTINCT + MIN( - CAST( + col0 AS SIGNED ) ) FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-8041
SELECT DISTINCT + MIN ( - CAST ( + col0 AS INTEGER ) ) FROM tab2 AS cor0
----
-75

query I rowsort
SELECT ALL + 90 * - col0 AS col1 FROM tab1 AS cor0
----
-4590
-7650
-8190

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8043
SELECT - + CAST( NULL AS SIGNED ) * + col1 AS col2, + col0 AS col2 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-8043
SELECT - + CAST ( NULL AS INTEGER ) * + col1 AS col2, + col0 AS col2 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

query I rowsort
SELECT 33 FROM tab2 cor0 WHERE ( NULL ) = - - col0 * 20 * + + 72
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8045
SELECT SUM( - - col0 ) AS col0 FROM tab1 AS cor0 WHERE ( NULL IS NULL )
----
227

skipif mysql # not compatible
query I rowsort label-8045
SELECT SUM ( - - col0 ) AS col0 FROM tab1 AS cor0 WHERE ( NULL IS NULL )
----
227

query I rowsort
SELECT ALL + 60 * + col1 + - col2 + + ( - 84 ) AS col1 FROM tab0 AS cor0
----
-123
1166
4729

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8047
SELECT DISTINCT - + MAX( DISTINCT - - CAST( NULL AS SIGNED ) ) + COUNT( * ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8047
SELECT DISTINCT - + MAX ( DISTINCT - - CAST ( NULL AS INTEGER ) ) + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + - 71 * - - col0 * - 77 FROM tab0 cor0
----
475629
530299
82005

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8049
SELECT - CAST( NULL AS SIGNED ) / + - col1 / - ( - 24 ) * + 29 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8049
SELECT - CAST ( NULL AS INTEGER ) / + - col1 / - ( - 24 ) * + 29 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 20 FROM tab0 AS cor0 WHERE NOT ( NOT - + 39 < + + 52 + - col0 + + col0 + col1 )
----
20
20
20

onlyif mysql # DIV for integer division: 
query I rowsort label-8051
SELECT DISTINCT + col2 DIV - 36 + + - 83 + + 10 * + 36 FROM tab2 AS cor0
----
276
277

skipif mysql # not compatible
query I rowsort label-8051
SELECT DISTINCT + col2 / - 36 + + - 83 + + 10 * + 36 FROM tab2 AS cor0
----
276
277

onlyif mysql # DIV for integer division: 
query I rowsort label-8052
SELECT 74 DIV + col0 + - col2 FROM tab0 AS cor0
----
-10
-43
-99

skipif mysql # not compatible
query I rowsort label-8052
SELECT 74 / + col0 + - col2 FROM tab0 AS cor0
----
-10
-43
-99

query I rowsort
SELECT ALL 94 + col2 AS col1 FROM tab0
----
104
141
193

query I rowsort
SELECT ALL 62 FROM tab1 WHERE NOT + col0 IS NULL
----
62
62
62

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 / + col0 IS NULL OR - + col0 * - 38 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL BETWEEN + col0 / + 87 + + col2 AND - col0 * col2
----

query I rowsort
SELECT 27 * - - 48 * col2 * - col2 FROM tab2
----
-2073600
-4359744
-685584

onlyif mysql # aggregate syntax: 
query I rowsort label-8058
SELECT ALL 53 - MIN( - 12 ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
65

skipif mysql # not compatible
query I rowsort label-8058
SELECT ALL 53 - MIN ( - 12 ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
65

query III rowsort
SELECT * FROM tab0 cor0 WHERE col0 <= + - col2 OR NOT + + col2 * + col0 + + 22 > 15
----

query II rowsort
SELECT + 11 AS col0, - ( - col2 ) FROM tab2 cor0
----
11
23
11
40
11
58

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 + + + col1 IS NOT NULL
----

query I rowsort
SELECT 5 FROM tab1 AS cor0 WHERE NOT - 9 * + col1 IS NULL
----
5
5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8063
SELECT ALL - SUM( ALL 26 ) AS col1 FROM tab0 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-8063
SELECT ALL - SUM ( ALL 26 ) AS col1 FROM tab0 AS cor0
----
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-51
-67
-77

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8065
SELECT ALL + CAST( NULL AS DECIMAL ) AS col0, col1 * 82 FROM tab0 AS cor0
----
NULL
1722
NULL
6642
NULL
82

skipif mysql # not compatible
query II rowsort label-8065
SELECT ALL + CAST ( NULL AS REAL ) AS col0, col1 * 82 FROM tab0 AS cor0
----
NULL
1722
NULL
6642
NULL
82

query I rowsort
SELECT col2 + + 58 FROM tab0
----
105
157
68

query I rowsort
SELECT DISTINCT 32 + - col0 FROM tab1
----
-19
-53
-59

query I rowsort
SELECT col2 + - ( + 58 ) * col0 + 54 AS col0 FROM tab0
----
-4982
-5473
-769

onlyif mysql # aggregate syntax: 
query I rowsort label-8069
SELECT + ( 45 ) + - COUNT( * ) + + COUNT( * ) AS col0 FROM tab2
----
45

skipif mysql # not compatible
query I rowsort label-8069
SELECT + ( 45 ) + - COUNT ( * ) + + COUNT ( * ) AS col0 FROM tab2
----
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 67 + + col0 * - 91 col1 FROM tab0 AS cor0
----
-1432
-7984
-8894

query I rowsort
SELECT DISTINCT + 67 * col2 AS col1 FROM tab2 AS cor0
----
1541
2680
3886

query I rowsort
SELECT - col2 + - 96 FROM tab0 AS cor0
----
-106
-143
-195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8073
SELECT DISTINCT + CAST( + 56 AS SIGNED ) * col0 + col1 AS col0 FROM tab0 cor0
----
4893
5433
921

skipif mysql # not compatible
query I rowsort label-8073
SELECT DISTINCT + CAST ( + 56 AS INTEGER ) * col0 + col1 AS col0 FROM tab0 cor0
----
4893
5433
921

query I rowsort
SELECT - + col0 * - - 82 + + + col0 * - 95 + + 17 AS col0 FROM tab0 cor0
----
-15382
-17152
-2638

onlyif mysql # aggregate syntax: 
query I rowsort label-8075
SELECT - + MAX( 21 ) FROM tab0 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-8075
SELECT - + MAX ( 21 ) FROM tab0 AS cor0
----
-21

onlyif mysql # aggregate syntax: 
query II rowsort label-8076
SELECT COUNT( * ), 65 AS col1 FROM tab1
----
3
65

skipif mysql # not compatible
query II rowsort label-8076
SELECT COUNT ( * ), 65 AS col1 FROM tab1
----
3
65

onlyif mysql # aggregate syntax: 
query I rowsort label-8077
SELECT - MAX( - 25 ) AS col0 FROM tab2
----
25

skipif mysql # not compatible
query I rowsort label-8077
SELECT - MAX ( - 25 ) AS col0 FROM tab2
----
25

query I rowsort
SELECT ALL + + 86 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

query I rowsort
SELECT - col2 - + + col1 FROM tab2
----
-117
-125
-74

query I rowsort
SELECT + + col2 - 34 + + - col0 * + - col0 FROM tab0 AS cor0
----
238
7545
9474

onlyif mysql # aggregate syntax: 
query I rowsort label-8081
SELECT DISTINCT - - SUM( ALL - col1 ) FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-8081
SELECT DISTINCT - - SUM ( ALL - col1 ) FROM tab1 AS cor0
----
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-8082
SELECT col2 * - col1 + - 92 + + - ( - 98 ) DIV + - ( + col0 ) + - 0 FROM tab2 AS cor0
----
-1267
-3173
-3979

skipif mysql # not compatible
query I rowsort label-8082
SELECT col2 * - col1 + - 92 + + - ( - 98 ) / + - ( + col0 ) + - 0 FROM tab2 AS cor0
----
-1267
-3173
-3979

query I rowsort
SELECT + 75 + + + col0 FROM tab2 AS cor0 WHERE + col0 NOT BETWEEN + - col2 AND - col1 - col0 - col1
----
121
139
150

query I rowsort
SELECT ALL - - ( - + col1 ) AS col1 FROM tab0 AS cor0
----
-1
-21
-81

onlyif mysql # DIV for integer division: 
query II rowsort label-8085
SELECT - col1 * + col1 + + 77 AS col0, - col2 DIV + col0 * 21 + + col1 + - col2 FROM tab2 AS cor0
----
-2524
28
-4412
9
-5852
37

skipif mysql # not compatible
query II rowsort label-8085
SELECT - col1 * + col1 + + 77 AS col0, - col2 / + col0 * 21 + + col1 + - col2 FROM tab2 AS cor0
----
-2524
28
-4412
9
-5852
37

query II rowsort
SELECT ALL + - 87 AS col2, + col1 * col2 FROM tab0 AS cor0
----
-87
210
-87
3807
-87
99

query I rowsort
SELECT col2 * - + col1 * col0 AS col0 FROM tab0
----
-18270
-57105
-9603

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8088
SELECT ALL - ( + CAST( NULL AS SIGNED ) ), col1 AS col2 FROM tab1
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-8088
SELECT ALL - ( + CAST ( NULL AS INTEGER ) ), col1 AS col2 FROM tab1
----
NULL
14
NULL
47
NULL
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8089
SELECT ALL + col2 / - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8089
SELECT ALL + col2 / - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8090
SELECT 91 DIV ( + 62 ) AS col0 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8090
SELECT 91 / ( + 62 ) AS col0 FROM tab0
----
1
1
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8091
SELECT COUNT( * ) - - COUNT( DISTINCT 60 ) AS col0, + COUNT( * ) FROM tab0, tab0 cor0
----
10
9

skipif mysql # not compatible
query II rowsort label-8091
SELECT COUNT ( * ) - - COUNT ( DISTINCT 60 ) AS col0, + COUNT ( * ) FROM tab0, tab0 cor0
----
10
9

onlyif mysql # DIV for integer division: 
query II rowsort label-8092
SELECT DISTINCT + ( - ( - col0 ) ) DIV - col2 AS col0, + col1 AS col2 FROM tab1
----
-1
47
-1
5
0
14

skipif mysql # not compatible
query II rowsort label-8092
SELECT DISTINCT + ( - ( - col0 ) ) / - col2 AS col0, + col1 AS col2 FROM tab1
----
-1
47
-1
5
0
14

query I rowsort
SELECT ALL + 20 * + 22 * col0 FROM tab0 AS cor0
----
38280
42680
6600

query I rowsort
SELECT + + col1 * - 50 + col0 * col0 AS col0 FROM tab1 AS cor0
----
1901
5931
6975

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab1 WHERE NOT - col1 IS NULL
----
14
47
5

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( col2 ) > + 76
----
51
14
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 2, col0 col1 FROM tab2
----
-2
46
-2
64
-2
75

query I rowsort
SELECT + + col1 FROM tab2 WHERE NULL >= NULL
----

query I rowsort
SELECT + - col0 AS col0 FROM tab0 WHERE col0 BETWEEN col1 AND + col0 + + + 97
----
-87
-97

query I rowsort
SELECT col1 AS col2 FROM tab2 WHERE col2 BETWEEN NULL AND + 36
----

query II rowsort
SELECT DISTINCT col1 AS col0, col0 * - col0 AS col1 FROM tab2
----
51
-2116
67
-5625
77
-4096

query I rowsort
SELECT DISTINCT col2 + 2 + - col1 FROM tab2
----
-26
-35
-7

query I rowsort
SELECT 32 FROM tab0 WHERE + 53 * - col2 IS NULL
----

query I rowsort
SELECT DISTINCT - - 23 AS col1 FROM tab1 cor0
----
23

query III rowsort
SELECT * FROM tab1 WHERE NULL > - + col2 * col0
----

query I rowsort
SELECT ALL - 89 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 924a74d31360fa4301c953b423a4710e

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8107
SELECT + col2 - - col0 FROM tab0 WHERE NULL NOT IN ( + CAST( 6 AS SIGNED ), + 76 )
----

skipif mysql # not compatible
query I rowsort label-8107
SELECT + col2 - - col0 FROM tab0 WHERE NULL NOT IN ( + CAST ( 6 AS INTEGER ), + 76 )
----

query I rowsort
SELECT ALL 11 * - 68 - + col1 AS col1 FROM tab0
----
-749
-769
-829

query I rowsort
SELECT ( - col1 ) * + 17 * col2 FROM tab2 AS cor0
----
-19941
-52360
-66062

query I rowsort
SELECT - 89 * + col1 FROM tab0 AS cor0
----
-1869
-7209
-89

onlyif mysql # aggregate syntax: 
query II rowsort label-8111
SELECT DISTINCT + - MAX( + col1 ) col1, + MAX( + + 36 ) AS col2 FROM tab0 AS cor0
----
-81
36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8111
SELECT DISTINCT + - MAX ( + col1 ) col1, + MAX ( + + 36 ) AS col2 FROM tab0 AS cor0
----
-81
36

onlyif mysql # aggregate syntax: 
query I rowsort label-8112
SELECT ALL + SUM( + 90 ) AS col0 FROM tab2 AS cor0
----
270

skipif mysql # not compatible
query I rowsort label-8112
SELECT ALL + SUM ( + 90 ) AS col0 FROM tab2 AS cor0
----
270

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8113
SELECT col0 * + CAST( - col1 AS SIGNED ) FROM tab0 AS cor0
----
-1215
-1827
-97

skipif mysql # not compatible
query I rowsort label-8113
SELECT col0 * + CAST ( - col1 AS INTEGER ) FROM tab0 AS cor0
----
-1215
-1827
-97

query I rowsort
SELECT ( + col0 ) * - 92 AS col2 FROM tab0 AS cor0
----
-1380
-8004
-8924

query I rowsort
SELECT DISTINCT col1 + - col1 + col2 + + col2 * col2 AS col2 FROM tab2 AS cor0 WHERE NOT NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8116
SELECT COUNT( col0 ) * COUNT( * ) * 82 FROM tab2 cor0
----
738

skipif mysql # not compatible
query I rowsort label-8116
SELECT COUNT ( col0 ) * COUNT ( * ) * 82 FROM tab2 cor0
----
738

onlyif mysql # aggregate syntax: 
query I rowsort label-8117
SELECT DISTINCT 87 * - + COUNT( * ) FROM tab2
----
-261

skipif mysql # not compatible
query I rowsort label-8117
SELECT DISTINCT 87 * - + COUNT ( * ) FROM tab2
----
-261

onlyif mysql # aggregate syntax: 
query I rowsort label-8118
SELECT + COUNT( * ) AS col2 FROM tab0 WHERE NOT NULL > NULL
----
0

skipif mysql # not compatible
query I rowsort label-8118
SELECT + COUNT ( * ) AS col2 FROM tab0 WHERE NOT NULL > NULL
----
0

query I rowsort
SELECT ALL col0 * + col1 FROM tab2 WHERE NULL IS NULL
----
2346
4928
5025

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8120
SELECT ALL + COUNT( * ) DIV ( ( ( + 7 ) ) ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8120
SELECT ALL + COUNT ( * ) / ( ( ( + 7 ) ) ) AS col1 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8121
SELECT ALL MAX( + + col2 ) AS col1 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-8121
SELECT ALL MAX ( + + col2 ) AS col1 FROM tab2 AS cor0
----
58

query I rowsort
SELECT ALL col2 * + 80 FROM tab2 AS cor0
----
1840
3200
4640

onlyif mysql # aggregate syntax: 
query II rowsort label-8123
SELECT ALL COUNT( * ) AS col2, 94 AS col0 FROM tab0 AS cor0
----
3
94

skipif mysql # not compatible
query II rowsort label-8123
SELECT ALL COUNT ( * ) AS col2, 94 AS col0 FROM tab0 AS cor0
----
3
94

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8124
SELECT CAST( - col1 AS DECIMAL ), col2 / col2 FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) + - + col1 + col1 <> ( col0 )
----

skipif mysql # not compatible
query II rowsort label-8124
SELECT CAST ( - col1 AS REAL ), col2 / col2 FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) + - + col1 + col1 <> ( col0 )
----

query I rowsort
SELECT + - 83 * - col0 * + 46 * col2 + col2 AS col2 FROM tab0 AS cor0
----
2691737
3321670
36664353

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8126
SELECT ALL + 19 DIV + MIN( DISTINCT - + 85 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8126
SELECT ALL + 19 / + MIN ( DISTINCT - + 85 ) FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8127
SELECT ALL - col2 DIV + - col0 AS col1 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8127
SELECT ALL - col2 / + - col0 AS col1 FROM tab1 AS cor0
----
0
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8128
SELECT + AVG ( ALL + - CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8128
SELECT + AVG ( ALL + - CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 44 + - 91 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8130
SELECT DISTINCT - SUM( - col2 ) AS col1 FROM tab0 AS cor0 WHERE - col0 * + col1 + + + 3 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8130
SELECT DISTINCT - SUM ( - col2 ) AS col1 FROM tab0 AS cor0 WHERE - col0 * + col1 + + + 3 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8131
SELECT + MAX( 28 ) AS col1 FROM tab1 AS cor0
----
28

skipif mysql # not compatible
query I rowsort label-8131
SELECT + MAX ( 28 ) AS col1 FROM tab1 AS cor0
----
28

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL = col2 + + col0
----

query I rowsort
SELECT DISTINCT - + 53 + - - 15 AS col0 FROM tab0 AS cor0
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-8134
SELECT DISTINCT - - COUNT( * ) col2 FROM tab2, tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8134
SELECT DISTINCT - - COUNT ( * ) col2 FROM tab2, tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT - 24 + + ( 21 ) FROM tab0
----
-3
-3
-3

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL BETWEEN 83 * ( + - 72 ) AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8137
SELECT 2 DIV - - col1 + 37 + + + 3 + - col1 * - - col0 FROM tab2 AS cor0
----
-2306
-4888
-4985

skipif mysql # not compatible
query I rowsort label-8137
SELECT 2 / - - col1 + 37 + + + 3 + - col1 * - - col0 FROM tab2 AS cor0
----
-2306
-4888
-4985

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 + + col1 IS NULL
----

query I rowsort
SELECT + + col0 * + + col1 * + - col1 * - col1 FROM tab0 AS cor0
----
7971615
805707
97

query I rowsort
SELECT DISTINCT + col1 + - - ( - col1 ) AS col1 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8141
SELECT + CAST( NULL AS SIGNED ) - + - COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8141
SELECT + CAST ( NULL AS INTEGER ) - + - COUNT ( * ) FROM tab0
----
NULL

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8143
SELECT ALL 24 + CAST( NULL AS SIGNED ) * + - COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8143
SELECT ALL 24 + CAST ( NULL AS INTEGER ) * + - COUNT ( * ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8144
SELECT - MAX( + - col0 ) - 53 FROM tab1
----
-2

skipif mysql # not compatible
query I rowsort label-8144
SELECT - MAX ( + - col0 ) - 53 FROM tab1
----
-2

query I rowsort
SELECT DISTINCT + 74 * 0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8146
SELECT DISTINCT SUM( + ( col1 ) ) AS col0 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-8146
SELECT DISTINCT SUM ( + ( col1 ) ) AS col0 FROM tab1 AS cor0
----
66

query II rowsort
SELECT DISTINCT + + 62, 42 - 12 * + col2 AS col0 FROM tab2 AS cor0
----
62
-234
62
-438
62
-654

onlyif mysql # aggregate syntax: 
query I rowsort label-8148
SELECT ALL MIN( - col1 ) AS col2 FROM tab1 cor0
----
-47

skipif mysql # not compatible
query I rowsort label-8148
SELECT ALL MIN ( - col1 ) AS col2 FROM tab1 cor0
----
-47

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col1 >= 68 + - + col0
----
85
5
59

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col0 <= - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 AS col0 FROM tab2 AS cor0 WHERE NOT ( NOT - col1 IS NOT NULL )
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8152
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NOT NULL > - 11 + - 28 )
----
0

skipif mysql # not compatible
query I rowsort label-8152
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NOT NULL > - 11 + - 28 )
----
0

query I rowsort
SELECT 41 * - 53 FROM tab2 AS cor0
----
-2173
-2173
-2173

query I rowsort
SELECT ALL - 19 * 51 FROM tab0
----
-969
-969
-969

onlyif mysql # DIV for integer division: 
query II rowsort label-8155
SELECT col0 * 83, + col0 DIV 4 col0 FROM tab0
----
1245
3
7221
21
8051
24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8155
SELECT col0 * 83, + col0 / 4 col0 FROM tab0
----
1245
3
7221
21
8051
24

onlyif mysql # aggregate syntax: 
query I rowsort label-8156
SELECT ALL MAX( DISTINCT + col1 ) AS col1 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-8156
SELECT ALL MAX ( DISTINCT + col1 ) AS col1 FROM tab2
----
77

query I rowsort
SELECT col1 * 49 AS col1 FROM tab2
----
2499
3283
3773

query I rowsort
SELECT 77 FROM tab1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - col0 <= + + ( + col1 )
----

query I rowsort
SELECT + 50 * - 9 AS col0 FROM tab1
----
-450
-450
-450

query III rowsort
SELECT * FROM tab0 cor0 WHERE col1 <> NULL
----

query II rowsort
SELECT DISTINCT - col0, col0 + - col1 AS col2 FROM tab0 AS cor0
----
-15
-66
-87
66
-97
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8163
SELECT - - COUNT( * ) + - + 81 AS col2 FROM tab2 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-8163
SELECT - - COUNT ( * ) + - + 81 AS col2 FROM tab2 AS cor0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-8164
SELECT ALL + 50 + - MAX( DISTINCT - col0 ) * + + 43 AS col1 FROM tab2 AS cor0
----
2028

skipif mysql # not compatible
query I rowsort label-8164
SELECT ALL + 50 + - MAX ( DISTINCT - col0 ) * + + 43 AS col1 FROM tab2 AS cor0
----
2028

onlyif mysql # aggregate syntax: 
query I rowsort label-8165
SELECT ALL + 21 + + ( + - MAX( - 96 ) ) FROM tab1 cor0
----
117

skipif mysql # not compatible
query I rowsort label-8165
SELECT ALL + 21 + + ( + - MAX ( - 96 ) ) FROM tab1 cor0
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-8166
SELECT ALL - 81 * + - COUNT( * ) + COUNT( * ) AS col2 FROM tab2 AS cor0
----
246

skipif mysql # not compatible
query I rowsort label-8166
SELECT ALL - 81 * + - COUNT ( * ) + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
246

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( col0 ) BETWEEN ( NULL ) AND + - col0
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col2 * - - 78 AND col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8169
SELECT DISTINCT - COUNT( * ) * + COUNT( * ) AS col0, 99 AS col0 FROM tab0
----
-9
99

skipif mysql # not compatible
query II rowsort label-8169
SELECT DISTINCT - COUNT ( * ) * + COUNT ( * ) AS col0, 99 AS col0 FROM tab0
----
-9
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + col2 ) * + + 26 + col1 + + - 83 * + col2 col0 FROM tab0
----
-2598
-549
-5642

query I rowsort
SELECT + + col1 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) <= + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8172
SELECT - COUNT( * ) + MIN( + + col1 ) - + ( - 85 ) + + 78 FROM tab0 AS cor0
----
161

skipif mysql # not compatible
query I rowsort label-8172
SELECT - COUNT ( * ) + MIN ( + + col1 ) - + ( - 85 ) + + 78 FROM tab0 AS cor0
----
161

onlyif mysql # DIV for integer division: 
query I rowsort label-8173
SELECT - col2 * - 55 - + col0 DIV - col1 + + + col1 AS col2 FROM tab1 AS cor0
----
3267
3788
5297

skipif mysql # not compatible
query I rowsort label-8173
SELECT - col2 * - 55 - + col0 / - col1 + + + col1 AS col2 FROM tab1 AS cor0
----
3267
3788
5297

query I rowsort
SELECT + col2 + + 62 FROM tab1
----
121
130
158

query I rowsort
SELECT - ( + + col2 ) AS col0 FROM tab2
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-8176
SELECT ALL + COUNT( * ) AS col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-8176
SELECT ALL + COUNT ( * ) AS col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8177
SELECT DISTINCT col1, - CAST( + 2 AS SIGNED ) FROM tab2
----
51
-2
67
-2
77
-2

skipif mysql # not compatible
query II rowsort label-8177
SELECT DISTINCT col1, - CAST ( + 2 AS INTEGER ) FROM tab2
----
51
-2
67
-2
77
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8178
SELECT SUM( ALL 4 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
36

skipif mysql # not compatible
query I rowsort label-8178
SELECT SUM ( ALL 4 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
36

query I rowsort
SELECT + - 16 * col2 AS col1 FROM tab2 AS cor0
----
-368
-640
-928

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 AS col2, + col0 col1 FROM tab2 cor0
----
23
46
40
64
58
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8181
SELECT COUNT( DISTINCT + - col1 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8181
SELECT COUNT ( DISTINCT + - col1 ) AS col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT - ( - 52 ) FROM tab1 AS cor0
----
52
52
52

onlyif mysql # aggregate syntax: 
query I rowsort label-8183
SELECT ALL - MAX( ALL 58 ) FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-8183
SELECT ALL - MAX ( ALL 58 ) FROM tab2 AS cor0
----
-58

query I rowsort
SELECT ALL - 82 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
-82
-82
-82

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + 79 AND - - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8186
SELECT + 20 * COUNT( * ) AS col2 FROM tab1 cor0
----
60

skipif mysql # not compatible
query I rowsort label-8186
SELECT + 20 * COUNT ( * ) AS col2 FROM tab1 cor0
----
60

query I rowsort
SELECT DISTINCT - 58 * + 93 AS col2 FROM tab2
----
-5394

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8188
SELECT ALL - 96 AS col1, + CAST( NULL AS SIGNED ) FROM tab0
----
-96
NULL
-96
NULL
-96
NULL

skipif mysql # not compatible
query II rowsort label-8188
SELECT ALL - 96 AS col1, + CAST ( NULL AS INTEGER ) FROM tab0
----
-96
NULL
-96
NULL
-96
NULL

query I rowsort
SELECT - + 55 FROM tab0 WHERE NOT NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8190
SELECT DISTINCT COUNT( ALL ( col0 ) ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8190
SELECT DISTINCT COUNT ( ALL ( col0 ) ) AS col1 FROM tab2
----
3

query I rowsort
SELECT 98 + + 2 AS col0 FROM tab2 cor0
----
100
100
100

query I rowsort
SELECT ALL - col1 * ( + - col1 ) * - + 70 FROM tab1 AS cor0
----
-13720
-154630
-1750

query I rowsort
SELECT 49 * + 87 FROM tab1
----
4263
4263
4263

onlyif mysql # DIV for integer division: 
query I rowsort label-8194
SELECT 72 DIV 22 * 21 * - 26 AS col2 FROM tab0
----
-1638
-1638
-1638

skipif mysql # not compatible
query I rowsort label-8194
SELECT 72 / 22 * 21 * - 26 AS col2 FROM tab0
----
-1638
-1638
-1638

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8195
SELECT + + ( - MIN( ALL - 33 ) ) DIV - 19 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8195
SELECT + + ( - MIN ( ALL - 33 ) ) / - 19 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT DISTINCT 2 * + col0 + + col2 AS col0 FROM tab1 AS cor0
----
198
229
250

onlyif mysql # DIV for integer division: 
query II rowsort label-8197
SELECT DISTINCT - col1 + - 96 DIV 30, + col2 AS col2 FROM tab2 AS cor0
----
-54
23
-70
58
-80
40

skipif mysql # not compatible
query II rowsort label-8197
SELECT DISTINCT - col1 + - 96 / 30, + col2 AS col2 FROM tab2 AS cor0
----
-54
23
-70
58
-80
40

query I rowsort
SELECT ALL - 44 + 15 AS col1 FROM tab2 cor0
----
-29
-29
-29

query I rowsort
SELECT DISTINCT col0 + col1 + - - 29 AS col2 FROM tab1 AS cor0
----
119
167
94

onlyif mysql # aggregate syntax: 
query I rowsort label-8200
SELECT DISTINCT - COUNT( * ) + 76 AS col0 FROM tab0
----
73

skipif mysql # not compatible
query I rowsort label-8200
SELECT DISTINCT - COUNT ( * ) + 76 AS col0 FROM tab0
----
73

query I rowsort
SELECT col0 * - 27 + + + col0 FROM tab2
----
-1196
-1664
-1950

onlyif mysql # aggregate syntax: 
query I rowsort label-8202
SELECT DISTINCT - 57 + + COUNT( * ) * - MAX( DISTINCT + - 31 ) AS col0 FROM tab0
----
36

skipif mysql # not compatible
query I rowsort label-8202
SELECT DISTINCT - 57 + + COUNT ( * ) * - MAX ( DISTINCT + - 31 ) AS col0 FROM tab0
----
36

query II rowsort
SELECT ALL - col0 + + 70 * col1 AS col1, + col0 AS col2 FROM tab0
----
-27
97
1383
87
5655
15

query I rowsort
SELECT 26 + + 9 + - col0 FROM tab1
----
-16
-50
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-8205
SELECT DISTINCT COUNT( + 31 ) - COUNT( 66 ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8205
SELECT DISTINCT COUNT ( + 31 ) - COUNT ( 66 ) AS col0 FROM tab2
----
0

query II rowsort
SELECT ALL col0 - - col2 * + + col0 AS col0, col1 * + col2 AS col0 FROM tab1
----
4947
1344
5100
295
6279
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-8207
SELECT DISTINCT - 24 * + COUNT( * ) AS col0 FROM tab1
----
-72

skipif mysql # not compatible
query I rowsort label-8207
SELECT DISTINCT - 24 * + COUNT ( * ) AS col0 FROM tab1
----
-72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 78 col2 FROM tab1 AS cor0
----
4602
5304
7488

onlyif mysql # aggregate syntax: 
query I rowsort label-8209
SELECT ALL - SUM( - 83 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL < 38
----
NULL

skipif mysql # not compatible
query I rowsort label-8209
SELECT ALL - SUM ( - 83 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL < 38
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8210
SELECT ALL 34 DIV + + col0 * + col0 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8210
SELECT ALL 34 / + + col0 * + col0 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - 56 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-56

onlyif mysql # DIV for integer division: 
query II rowsort label-8212
SELECT ALL 71 * - col0 AS col0, - col2 * 10 DIV - - col0 + + - 15 FROM tab0
----
-1065
-46
-6177
-16
-6887
-25

skipif mysql # not compatible
query II rowsort label-8212
SELECT ALL 71 * - col0 AS col0, - col2 * 10 / - - col0 + + - 15 FROM tab0
----
-1065
-46
-6177
-16
-6887
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-8213
SELECT DISTINCT col0 DIV - 77 col1 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8213
SELECT DISTINCT col0 / - 77 col1 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8214
SELECT ALL - + SUM( + ( col0 ) ) col0 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8214
SELECT ALL - + SUM ( + ( col0 ) ) col0 FROM tab1 AS cor0
----
-227

query I rowsort
SELECT + AVG ( DISTINCT - - ( ( - + col1 ) ) ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8216
SELECT + col0 + + - ( col2 ) + + + col2 / CAST( NULL AS SIGNED ) + - col0 * + col0 * - col2 + 62 col0 FROM tab2 AS cor0 WHERE NOT 7 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8216
SELECT + col0 + + - ( col2 ) + + + col2 / CAST ( NULL AS INTEGER ) + - col0 * + col0 * - col2 + 62 col0 FROM tab2 AS cor0 WHERE NOT 7 IS NULL
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8217
SELECT col1 DIV + 38 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8217
SELECT col1 / + 38 FROM tab1
----
0
0
1

query I rowsort
SELECT 24 * - col2 FROM tab1
----
-1416
-1632
-2304

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN + col2 AND 34 * + + 60
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8220
SELECT DISTINCT + CAST( 39 AS SIGNED ) AS col0 FROM tab1
----
39

skipif mysql # not compatible
query I rowsort label-8220
SELECT DISTINCT + CAST ( 39 AS INTEGER ) AS col0 FROM tab1
----
39

query I rowsort
SELECT DISTINCT col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND + col0
----

query I rowsort
SELECT DISTINCT col2 * - 13 * col0 AS col2 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
-63648
-65195
-80444

query III rowsort
SELECT ALL * FROM tab0 WHERE 42 + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8224
SELECT DISTINCT CAST( NULL AS SIGNED ) - + col1 - + col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8224
SELECT DISTINCT CAST ( NULL AS INTEGER ) - + col1 - + col2 FROM tab2
----
NULL

query II rowsort
SELECT ALL - ( + col0 ) AS col0, col1 * + - 49 FROM tab1
----
-51
-686
-85
-245
-91
-2303

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8226
SELECT + - 87 AS col2, col2 AS col0 FROM tab0 AS cor0 WHERE col0 * + - CAST( NULL AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-8226
SELECT + - 87 AS col2, col2 AS col0 FROM tab0 AS cor0 WHERE col0 * + - CAST ( NULL AS REAL ) IS NOT NULL
----

query I rowsort
SELECT + - col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-51
-67
-77

onlyif mysql # DIV for integer division: 
query II rowsort label-8228
SELECT ALL + col2 AS col2, col0 * - col2 - 16 DIV - - 13 + 34 AS col1 FROM tab2 AS cor0
----
23
-1025
40
-2527
58
-4317

skipif mysql # not compatible
query II rowsort label-8228
SELECT ALL + col2 AS col2, col0 * - col2 - 16 / - - 13 + 34 AS col1 FROM tab2 AS cor0
----
23
-1025
40
-2527
58
-4317

query I rowsort
SELECT ALL 79 + - 67 + col0 FROM tab1 AS cor0
----
103
63
97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 <> - - ( - - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8231
SELECT DISTINCT + 57 - COUNT( * ) FROM tab1
----
54

skipif mysql # not compatible
query I rowsort label-8231
SELECT DISTINCT + 57 - COUNT ( * ) FROM tab1
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8232
SELECT DISTINCT - ( + - col0 ) AS col1 FROM tab0 WHERE + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8232
SELECT DISTINCT - ( + - col0 ) AS col1 FROM tab0 WHERE + CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8233
SELECT ALL + 8 - COUNT( * ) FROM tab0
----
5

skipif mysql # not compatible
query I rowsort label-8233
SELECT ALL + 8 - COUNT ( * ) FROM tab0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8234
SELECT ALL + 64 - + ( - SUM( - col2 ) ) AS col0 FROM tab0
----
-92

skipif mysql # not compatible
query I rowsort label-8234
SELECT ALL + 64 - + ( - SUM ( - col2 ) ) AS col0 FROM tab0
----
-92

query I rowsort
SELECT ALL - 64 * col1 AS col1 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8236
SELECT COUNT( DISTINCT col2 ) * 29 + - MIN( - col1 ) + - + COUNT( * ) col0 FROM tab2 AS cor0
----
161

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8236
SELECT COUNT ( DISTINCT col2 ) * 29 + - MIN ( - col1 ) + - + COUNT ( * ) col0 FROM tab2 AS cor0
----
161

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8237
SELECT DISTINCT - 47 DIV + - COUNT( * ) FROM tab2
----
15

skipif mysql # not compatible
query I rowsort label-8237
SELECT DISTINCT - 47 / + - COUNT ( * ) FROM tab2
----
15

query II rowsort
SELECT ALL + 53 AS col2, 33 AS col2 FROM tab0 AS cor0
----
53
33
53
33
53
33

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8239
SELECT DISTINCT - 88 col1, CAST( NULL AS SIGNED ) col1 FROM tab2 AS cor0
----
-88
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8239
SELECT DISTINCT - 88 col1, CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0
----
-88
NULL

query I rowsort
SELECT - col0 - - col0 + - + 97 + + col1 / + 89 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NULL NOT BETWEEN 97 * 78 AND - + col0
----

query II rowsort
SELECT col2 AS col1, - 5 FROM tab0 AS cor0
----
10
-5
47
-5
99
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col0 col0, - col1 FROM tab2 AS cor0
----
46
-51
64
-77
75
-67

query I rowsort
SELECT + 70 * - - col2 * - 54 + + 57 * - 31 FROM tab1 AS cor0
----
-224787
-258807
-364647

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col2 * + col0 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 40 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8247
SELECT DISTINCT - col0 * + CAST( NULL AS SIGNED ) AS col2 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8247
SELECT DISTINCT - col0 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8248
SELECT COUNT( * ) * - - MAX( DISTINCT + - 39 ) FROM tab1
----
-117

skipif mysql # not compatible
query I rowsort label-8248
SELECT COUNT ( * ) * - - MAX ( DISTINCT + - 39 ) FROM tab1
----
-117

onlyif mysql # DIV for integer division: 
query I rowsort label-8249
SELECT ALL - 57 DIV - - 36 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8249
SELECT ALL - 57 / - - 36 FROM tab1
----
-1
-1
-1

query II rowsort
SELECT DISTINCT + col0 + - - col0 + + ( - col1 ) AS col0, + col0 AS col0 FROM tab1
----
135
91
165
85
88
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8251
SELECT ALL SUM( 95 ) AS col1 FROM tab2
----
285

skipif mysql # not compatible
query I rowsort label-8251
SELECT ALL SUM ( 95 ) AS col1 FROM tab2
----
285

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col2 > - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 49 * + col2 + - col1 + + col2 * - 26 FROM tab2
----
1267
478
843

query I rowsort
SELECT 17 * + col0 + + col2 + + 1 FROM tab1 cor0
----
1505
1616
964

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 47 col1, 62 col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
47
62
47
62
47
62

onlyif mysql # DIV for integer division: 
query II rowsort label-8256
SELECT - col2 + + ( col2 ) + 67 DIV col1, 31 AS col0 FROM tab2 AS cor0
----
0
31
1
31
1
31

skipif mysql # not compatible
query II rowsort label-8256
SELECT - col2 + + ( col2 ) + 67 / col1, 31 AS col0 FROM tab2 AS cor0
----
0
31
1
31
1
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query II rowsort
SELECT DISTINCT + col0 + - col1 AS col1, + 3 AS col2 FROM tab0 AS cor0
----
-66
3
66
3
96
3

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE + 17 IS NULL
----

query I rowsort
SELECT DISTINCT col2 * 73 FROM tab2 AS cor0
----
1679
2920
4234

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8261
SELECT ALL - + 28 + - CAST( - - col2 AS SIGNED ), - 81 col1 FROM tab1 AS cor0
----
-124
-81
-87
-81
-96
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8261
SELECT ALL - + 28 + - CAST ( - - col2 AS INTEGER ), - 81 col1 FROM tab1 AS cor0
----
-124
-81
-87
-81
-96
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-8262
SELECT ALL - + 87 AS col2, - 44 * + + COUNT( * ) FROM tab1 AS cor0
----
-87
-132

skipif mysql # not compatible
query II rowsort label-8262
SELECT ALL - + 87 AS col2, - 44 * + + COUNT ( * ) FROM tab1 AS cor0
----
-87
-132

onlyif mysql # aggregate syntax: 
query I rowsort label-8263
SELECT DISTINCT COUNT( * ) + - COUNT( * ) FROM tab1 AS cor0 WHERE NOT + ( - ( + 82 ) ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8263
SELECT DISTINCT COUNT ( * ) + - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT + ( - ( + 82 ) ) IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT 63 AS col2 FROM tab0 cor0
----
63

query I rowsort
SELECT DISTINCT col0 + + 20 - + col0 AS col2 FROM tab2 AS cor0
----
20

query I rowsort
SELECT DISTINCT - - 98 + + + 13 AS col2 FROM tab2 cor0
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-8267
SELECT DISTINCT - COUNT( * ) + - + 57 col2 FROM tab1 AS cor0
----
-60

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8267
SELECT DISTINCT - COUNT ( * ) + - + 57 col2 FROM tab1 AS cor0
----
-60

query I rowsort
SELECT DISTINCT + + 50 AS col0 FROM tab0 WHERE NOT NULL NOT BETWEEN + col0 AND - - col0
----

query I rowsort
SELECT ALL ( + col1 ) * - 90 - - col2 + + 38 + + 30 AS col1 FROM tab0
----
-1812
-7175
77

query I rowsort
SELECT col2 FROM tab0 WHERE 53 - col0 BETWEEN NULL AND + + col1
----

query I rowsort
SELECT DISTINCT + col1 * - 24 FROM tab2
----
-1224
-1608
-1848

onlyif mysql # aggregate syntax: 
query I rowsort label-8272
SELECT - MAX( - 56 ) AS col0 FROM tab0 WHERE NOT 74 NOT BETWEEN - col0 * + col2 * + ( - col1 ) + - + ( + 9 ) * col2 + col2 * ( - col0 ) * + 62 + - col2 AND col2 + - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8272
SELECT - MAX ( - 56 ) AS col0 FROM tab0 WHERE NOT 74 NOT BETWEEN - col0 * + col2 * + ( - col1 ) + - + ( + 9 ) * col2 + col2 * ( - col0 ) * + 62 + - col2 AND col2 + - col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8273
SELECT ALL COUNT( * ) * - ( CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8273
SELECT ALL COUNT ( * ) * - ( CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8274
SELECT CAST( NULL AS SIGNED ) AS col0, col1 FROM tab1
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-8274
SELECT CAST ( NULL AS INTEGER ) AS col0, col1 FROM tab1
----
NULL
14
NULL
47
NULL
5

onlyif mysql # DIV for integer division: 
query II rowsort label-8275
SELECT DISTINCT col1 AS col2, + 9 * 8 DIV - col1 FROM tab0
----
1
-72
21
-3
81
0

skipif mysql # not compatible
query II rowsort label-8275
SELECT DISTINCT col1 AS col2, + 9 * 8 / - col1 FROM tab0
----
1
-72
21
-3
81
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8276
SELECT ALL + SUM( DISTINCT - col2 ) AS col2 FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-8276
SELECT ALL + SUM ( DISTINCT - col2 ) AS col2 FROM tab1
----
-223

query II rowsort
SELECT DISTINCT + col0 AS col2, col1 AS col1 FROM tab0
----
15
81
87
21
97
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8278
SELECT - MIN( - col0 ) * + + COUNT( DISTINCT - + col0 ) AS col2 FROM tab1 AS cor0
----
273

skipif mysql # not compatible
query I rowsort label-8278
SELECT - MIN ( - col0 ) * + + COUNT ( DISTINCT - + col0 ) AS col2 FROM tab1 AS cor0
----
273

onlyif mysql # aggregate syntax: 
query I rowsort label-8279
SELECT ALL - COUNT( col2 ) AS col0 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8279
SELECT ALL - COUNT ( col2 ) AS col0 FROM tab0 cor0
----
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-8280
SELECT + + col2 DIV + col2, col0 FROM tab2 AS cor0
----
1
46
1
64
1
75

skipif mysql # not compatible
query II rowsort label-8280
SELECT + + col2 / + col2, col0 FROM tab2 AS cor0
----
1
46
1
64
1
75

onlyif mysql # aggregate syntax: 
query II rowsort label-8281
SELECT DISTINCT - MIN( DISTINCT col0 ) AS col0, + COUNT( * ) AS col0 FROM tab1 cor0
----
-51
3

skipif mysql # not compatible
query II rowsort label-8281
SELECT DISTINCT - MIN ( DISTINCT col0 ) AS col0, + COUNT ( * ) AS col0 FROM tab1 cor0
----
-51
3

query I rowsort
SELECT col1 * + col0 + - 69 * + + 56 AS col0 FROM tab0 cor0
----
-2037
-2649
-3767

query I rowsort
SELECT ALL 75 AS col1 FROM tab2 cor0
----
75
75
75

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN NULL AND col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8285
SELECT ( + - CAST( NULL AS SIGNED ) ) * + SUM( - ( + + col2 ) ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8285
SELECT ( + - CAST ( NULL AS INTEGER ) ) * + SUM ( - ( + + col2 ) ) AS col2 FROM tab1
----
NULL

query I rowsort
SELECT 9 * 1 FROM tab2
----
9
9
9

query I rowsort
SELECT + 1 AS col0 FROM tab0 WHERE ( col1 ) * - - col0 + + + 34 NOT BETWEEN 12 + - - col0 AND + + ( + col2 ) - - + ( - 2 )
----
1
1
1

query I rowsort
SELECT DISTINCT - col2 * 5 AS col0 FROM tab1
----
-295
-340
-480

onlyif mysql # aggregate syntax: 
query I rowsort label-8289
SELECT DISTINCT - SUM( DISTINCT + - 54 ) AS col0 FROM tab1 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-8289
SELECT DISTINCT - SUM ( DISTINCT + - 54 ) AS col0 FROM tab1 AS cor0
----
54

query II rowsort
SELECT + - 86 - - ( 28 ) AS col1, - col2 FROM tab2 AS cor0
----
-58
-23
-58
-40
-58
-58

query II rowsort
SELECT DISTINCT + 16, - ( col0 ) AS col1 FROM tab0 AS cor0
----
16
-15
16
-87
16
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8292
SELECT - COUNT( * ) * + ( 30 ) FROM tab1
----
-90

skipif mysql # not compatible
query I rowsort label-8292
SELECT - COUNT ( * ) * + ( 30 ) FROM tab1
----
-90

query I rowsort
SELECT ALL col2 FROM tab0 WHERE ( - col0 ) > + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 59 * col0 col1 FROM tab0
----
5133
5723
885

query I rowsort
SELECT + 76 * + 62 AS col2 FROM tab2
----
4712
4712
4712

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8296
SELECT ALL col1 FROM tab2 WHERE NOT - CAST( NULL AS SIGNED ) >= ( NULL )
----

skipif mysql # not compatible
query I rowsort label-8296
SELECT ALL col1 FROM tab2 WHERE NOT - CAST ( NULL AS INTEGER ) >= ( NULL )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + ( - col1 ) <= NULL
----

query I rowsort
SELECT DISTINCT - col2 + col1 * - col0 FROM tab1
----
-4345
-484
-810

query III rowsort
SELECT * FROM tab2 WHERE + 57 + ( col1 ) / col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8300
SELECT DISTINCT SUM( 53 ) AS col1 FROM tab2
----
159

skipif mysql # not compatible
query I rowsort label-8300
SELECT DISTINCT SUM ( 53 ) AS col1 FROM tab2
----
159

query III rowsort
SELECT * FROM tab0 WHERE col0 / col1 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 72 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL = + col2 + + 83
----

query I rowsort
SELECT DISTINCT 69 - col0 * 81 FROM tab0
----
-1146
-6978
-7788

query III rowsort
SELECT * FROM tab0 WHERE NOT 25 / - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8306
SELECT MAX( - 78 ) FROM tab0
----
-78

skipif mysql # not compatible
query I rowsort label-8306
SELECT MAX ( - 78 ) FROM tab0
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8307
SELECT * FROM tab1 WHERE ( col2 * - col2 ) NOT BETWEEN NULL AND ( CAST( NULL AS SIGNED ) + + 52 )
----

skipif mysql # not compatible
query III rowsort label-8307
SELECT * FROM tab1 WHERE ( col2 * - col2 ) NOT BETWEEN NULL AND ( CAST ( NULL AS INTEGER ) + + 52 )
----

query I rowsort
SELECT DISTINCT - 25 * col1 + + col2 FROM tab1 WHERE + ( - 72 ) IS NOT NULL
----
-1107
-254
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-8309
SELECT + COUNT( * ) FROM tab2 WHERE NOT 7 < - col0
----
3

skipif mysql # not compatible
query I rowsort label-8309
SELECT + COUNT ( * ) FROM tab2 WHERE NOT 7 < - col0
----
3

query I rowsort
SELECT ALL ( - 79 ) AS col2 FROM tab0 WHERE 70 IS NULL
----

query I rowsort
SELECT ALL 85 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + col1 + - 15 FROM tab0
----
-14
6
66

onlyif mysql # aggregate syntax: 
query I rowsort label-8313
SELECT - 39 + MIN( ALL - col1 ) * COUNT( * ) FROM tab2
----
-270

skipif mysql # not compatible
query I rowsort label-8313
SELECT - 39 + MIN ( ALL - col1 ) * COUNT ( * ) FROM tab2
----
-270

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 39 IN ( + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8315
SELECT - COUNT( * ) * 75 FROM tab0 cor0
----
-225

skipif mysql # not compatible
query I rowsort label-8315
SELECT - COUNT ( * ) * 75 FROM tab0 cor0
----
-225

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 9 * + col0 - col1 / col2 NOT BETWEEN ( col2 + 7 ) AND ( NULL )
----

query I rowsort
SELECT + col2 * - 71 AS col0 FROM tab0 cor0
----
-3337
-7029
-710

query I rowsort
SELECT ALL + ( + 22 ) AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
22
22
22

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 / col0 IS NOT NULL
----

query I rowsort
SELECT + 88 AS col1 FROM tab0 cor0 CROSS JOIN tab1
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN col2 AND 45 + 64
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 2 / + col1 + + col1 <> 46
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8323
SELECT DISTINCT COUNT( * ) col1 FROM tab1 cor0 WHERE NOT - col1 / - 48 IN ( col1 + - 0 * + col1 )
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8323
SELECT DISTINCT COUNT ( * ) col1 FROM tab1 cor0 WHERE NOT - col1 / - 48 IN ( col1 + - 0 * + col1 )
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 28 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8325
SELECT + SUM( - 73 ) FROM tab0 AS cor0
----
-219

skipif mysql # not compatible
query I rowsort label-8325
SELECT + SUM ( - 73 ) FROM tab0 AS cor0
----
-219

onlyif mysql # aggregate syntax: 
query I rowsort label-8326
SELECT ALL - 14 + - SUM( 44 ) col1 FROM tab2 AS cor0
----
-146

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8326
SELECT ALL - 14 + - SUM ( 44 ) col1 FROM tab2 AS cor0
----
-146

query I rowsort
SELECT ALL col2 + 77 * - 33 AS col2 FROM tab1 AS cor0
----
-2445
-2473
-2482

query I rowsort
SELECT + ( 78 ) * - 65 FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN - 24 + - 4 AND col0
----

query I rowsort
SELECT + col2 AS col0 FROM tab2 cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT + 46 / - col1 FROM tab2 AS cor0 WHERE - col1 + - col2 * col2 IN ( + col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) BETWEEN ( col2 ) AND col2 * 33
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8332
SELECT ALL + MIN( ALL ( + 46 ) ) + CAST( NULL AS DECIMAL ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8332
SELECT ALL + MIN ( ALL ( + 46 ) ) + CAST ( NULL AS REAL ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT ALL 33 AS col2 FROM tab0 WHERE NOT + 87 * 11 IS NULL
----
33
33
33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col2 ) * col2 col0 FROM tab0 WHERE 95 IS NOT NULL
----
100
2209
9801

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8335
SELECT DISTINCT MIN( - + col2 ) DIV - SUM( DISTINCT col0 ) + 41 col1 FROM tab1
----
41

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8335
SELECT DISTINCT MIN ( - + col2 ) / - SUM ( DISTINCT col0 ) + 41 col1 FROM tab1
----
41

query I rowsort
SELECT - col1 * - ( 32 ) FROM tab1 WHERE NULL IN ( - 40 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8337
SELECT 74 * - SUM( col1 ) + + 46 FROM tab0
----
-7576

skipif mysql # not compatible
query I rowsort label-8337
SELECT 74 * - SUM ( col1 ) + + 46 FROM tab0
----
-7576

query I rowsort
SELECT DISTINCT + col1 * + 19 * + col0 AS col1 FROM tab0
----
1843
23085
34713

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - 82 ) IN ( ( + 38 ) + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - 56 + + col2 col2 FROM tab0 AS cor0
----
-2585
-5445
-550

query I rowsort
SELECT ALL 78 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

query I rowsort
SELECT - col2 AS col1 FROM tab0 WHERE + col1 IS NOT NULL
----
-10
-47
-99

query I rowsort
SELECT - 61 AS col1 FROM tab1 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 51f53697966a79d306a4570537cd91a1

query III rowsort
SELECT * FROM tab1 WHERE ( - - 71 / - col0 + + col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8345
SELECT 80 - - 2 * + MAX( ALL col0 ) AS col2 FROM tab2
----
230

skipif mysql # not compatible
query I rowsort label-8345
SELECT 80 - - 2 * + MAX ( ALL col0 ) AS col2 FROM tab2
----
230

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-8346
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL NOT IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query IIIIII rowsort label-8346
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL NOT IN ( CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8347
SELECT ALL col1 FROM tab1 cor0 WHERE NOT CAST( NULL AS DECIMAL ) * col0 + 8 = col0 * - col0 + - col1
----

skipif mysql # not compatible
query I rowsort label-8347
SELECT ALL col1 FROM tab1 cor0 WHERE NOT CAST ( NULL AS REAL ) * col0 + 8 = col0 * - col0 + - col1
----

query I rowsort
SELECT 6 + 23 * - col0 FROM tab1 AS cor0
----
-1167
-1949
-2087

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 72 <> 65 * col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8350
SELECT + ( - 11 ) * COUNT( * ) FROM tab0 cor0 WHERE NULL > + 70 + + 52
----
0

skipif mysql # not compatible
query I rowsort label-8350
SELECT + ( - 11 ) * COUNT ( * ) FROM tab0 cor0 WHERE NULL > + 70 + + 52
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8351
SELECT DISTINCT + - 31 * + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-8351
SELECT DISTINCT + - 31 * + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-8352
SELECT DISTINCT + col1 DIV ( + 56 ) FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-8352
SELECT DISTINCT + col1 / ( + 56 ) FROM tab0 AS cor0
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8353
SELECT - MAX( + col0 ) AS col2 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-8353
SELECT - MAX ( + col0 ) AS col2 FROM tab0 AS cor0
----
-97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 30 - + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 - + col1 NOT IN ( + 87 * + 62 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8356
SELECT DISTINCT + - MIN( + 97 ) AS col1 FROM tab1 cor0
----
-97

skipif mysql # not compatible
query I rowsort label-8356
SELECT DISTINCT + - MIN ( + 97 ) AS col1 FROM tab1 cor0
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8357
SELECT DISTINCT CAST( + ( + 6 ) AS SIGNED ) FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-8357
SELECT DISTINCT CAST ( + ( + 6 ) AS INTEGER ) FROM tab0 AS cor0
----
6

query I rowsort
SELECT DISTINCT 30 FROM tab2 WHERE 4 BETWEEN ( - col2 ) * - col2 AND - col2 + - col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8359
SELECT COUNT( + col2 ) DIV COUNT( * ) AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-8359
SELECT COUNT ( + col2 ) / COUNT ( * ) AS col1 FROM tab0
----
1

query I rowsort
SELECT + col1 * + - 79 AS col2 FROM tab0
----
-1659
-6399
-79

query I rowsort
SELECT - ( + - 78 ) FROM tab1
----
78
78
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( - - col2 ), - col2 * - 17 col1 FROM tab0
----
10
170
47
799
99
1683

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( + col1 = ( col0 ) )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NOT - + col0 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + - col1 * - col1 + - + col1 FROM tab1 AS cor0
----
182
20
2162

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8366
SELECT * FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) * + col2 * + + col0 * - 33 - 66 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8366
SELECT * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) * + col2 * + + col0 * - 33 - 66 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8367
SELECT + SUM( DISTINCT col1 ) * 91 FROM tab1 AS cor0 WHERE NOT 8 IN ( col0 )
----
6006

skipif mysql # not compatible
query I rowsort label-8367
SELECT + SUM ( DISTINCT col1 ) * 91 FROM tab1 AS cor0 WHERE NOT 8 IN ( col0 )
----
6006

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - ( + 22 ) NOT IN ( col2 - - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 27 * + ( ( + 63 ) ) - col2 FROM tab1 AS cor0
----
1605
1633
1642

query I rowsort
SELECT DISTINCT - col1 + + ( col2 ) FROM tab0 AS cor0
----
-11
-34
98

query II rowsort
SELECT col0 AS col0, - col0 FROM tab1 AS cor0
----
51
-51
85
-85
91
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8372
SELECT ALL - 73 + + + CAST( + col0 AS SIGNED ) * - col2 FROM tab2 AS cor0
----
-1131
-2633
-4423

skipif mysql # not compatible
query I rowsort label-8372
SELECT ALL - 73 + + + CAST ( + col0 AS INTEGER ) * - col2 FROM tab2 AS cor0
----
-1131
-2633
-4423

query II rowsort
SELECT ALL - 47, col2 AS col0 FROM tab1
----
-47
59
-47
68
-47
96

query I rowsort
SELECT DISTINCT - 69 / - + col0 FROM tab0 WHERE ( col2 ) IS NULL
----

query II rowsort
SELECT - 18 * - - 64, - col2 AS col2 FROM tab2
----
-1152
-23
-1152
-40
-1152
-58

query I rowsort
SELECT + ( 9 ) AS col1 FROM tab0
----
9
9
9

query I rowsort
SELECT ALL col0 * + 33 FROM tab1
----
1683
2805
3003

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 * - 94 BETWEEN NULL AND ( - - col2 + - - 24 )
----

query I rowsort
SELECT ALL 66 * col0 * - col2 * - - col2 + col2 FROM tab1 AS cor0
----
-19528351
-27771676
-31020960

query I rowsort
SELECT DISTINCT col1 FROM tab1 AS cor0 WHERE NOT - 8 IS NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8381
SELECT - COUNT( * ) - SUM( DISTINCT - ( + + col2 ) ) AS col0 FROM tab0 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-8381
SELECT - COUNT ( * ) - SUM ( DISTINCT - ( + + col2 ) ) AS col0 FROM tab0 AS cor0
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-8382
SELECT DISTINCT - COUNT( * ) + 77 + + + 26 * - ( - ( + 60 ) ) FROM tab2
----
1634

skipif mysql # not compatible
query I rowsort label-8382
SELECT DISTINCT - COUNT ( * ) + 77 + + + 26 * - ( - ( + 60 ) ) FROM tab2
----
1634

query I rowsort
SELECT ALL - - col1 AS col0 FROM tab2 AS cor0 WHERE ( NOT ( NOT NULL <> col2 ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8384
SELECT ( - MIN( DISTINCT + CAST( NULL AS SIGNED ) ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8384
SELECT ( - MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - ( - + col2 ) * - col2 AS col0 FROM tab2 AS cor0
----
-1600
-3364
-529

onlyif mysql # DIV for integer division: 
query I rowsort label-8386
SELECT DISTINCT - - 58 DIV - ( + + col1 ) AS col0 FROM tab1 AS cor0
----
-1
-11
-4

skipif mysql # not compatible
query I rowsort label-8386
SELECT DISTINCT - - 58 / - ( + + col1 ) AS col0 FROM tab1 AS cor0
----
-1
-11
-4

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( + col1 ) BETWEEN + col1 AND - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8388
SELECT - COUNT( col1 ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8388
SELECT - COUNT ( col1 ) AS col2 FROM tab1 AS cor0
----
-3

query II rowsort
SELECT col0 * col1 AS col1, - 90 * - 38 FROM tab2 AS cor0
----
2346
3420
4928
3420
5025
3420

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 * + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8391
SELECT - + ( ( + COUNT( ALL + col1 ) ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8391
SELECT - + ( ( + COUNT ( ALL + col1 ) ) ) FROM tab0 AS cor0
----
-3

query II rowsort
SELECT DISTINCT - col0, col0 + - 72 * 74 - - - col0 AS col0 FROM tab1
----
-51
-5328
-85
-5328
-91
-5328

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + 59 ) < - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE NOT + 0 + - col0 >= + col1 / col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8395
SELECT DISTINCT + 86 * - + COUNT( * ) AS col0 FROM tab0
----
-258

skipif mysql # not compatible
query I rowsort label-8395
SELECT DISTINCT + 86 * - + COUNT ( * ) AS col0 FROM tab0
----
-258

query I rowsort
SELECT + 28 * col1 AS col2 FROM tab0
----
2268
28
588

onlyif mysql # aggregate syntax: 
query I rowsort label-8397
SELECT + COUNT( ALL + + col2 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8397
SELECT + COUNT ( ALL + + col2 ) FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8398
SELECT + CAST( - 0 AS SIGNED ) FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8398
SELECT + CAST ( - 0 AS INTEGER ) FROM tab0 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 * + + 47 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 * - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-8401
SELECT DISTINCT ( + - ( + col1 ) ) DIV - col0 + 1 + + + col2 FROM tab2 AS cor0
----
25
42
59

skipif mysql # not compatible
query I rowsort label-8401
SELECT DISTINCT ( + - ( + col1 ) ) / - col0 + 1 + + + col2 FROM tab2 AS cor0
----
25
42
59

query II rowsort
SELECT 69 * + col1 + - 78, col0 AS col0 FROM tab2 cor0
----
3441
46
4545
75
5235
64

query II rowsort
SELECT ALL + + col0 AS col1, + col1 AS col2 FROM tab1 AS cor0
----
51
14
85
5
91
47

query II rowsort
SELECT - - col0, + 76 AS col0 FROM tab1 AS cor0
----
51
76
85
76
91
76

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - + 73 * 97 * 47 - + - 90 / - + col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + + col0 AS col0 FROM tab1 WHERE NOT ( NOT col0 + - col0 IS NOT NULL )
----
51
85
91

onlyif mysql # aggregate syntax: 
query II rowsort label-8407
SELECT DISTINCT MIN( - col0 ) col1, 30 + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-75
33

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8407
SELECT DISTINCT MIN ( - col0 ) col1, 30 + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-75
33

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT col1 * - + col0 IS NOT NULL
----

query I rowsort
SELECT + - col2 * - 17 * + col1 * col0 * + col0 * - 1 FROM tab2 AS cor0
----
-214466560
-371598750
-42195156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8410
SELECT + + col0 FROM tab2 AS cor0 WHERE + CAST( NULL AS SIGNED ) + col2 + + - col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8410
SELECT + + col0 FROM tab2 AS cor0 WHERE + CAST ( NULL AS INTEGER ) + col2 + + - col2 IS NOT NULL
----

query I rowsort
SELECT ALL - col1 * + - ( + + col2 ) * + - col1 + + 29 * + col1 FROM tab1 AS cor0 WHERE + ( + col0 ) + col1 + - 56 < NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + col1 <= + ( - - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8413
SELECT - COUNT( * ) AS col1 FROM tab1 WHERE col0 * + 74 + col1 * + 10 NOT BETWEEN + col0 AND - 19 + - + col1
----
-3

skipif mysql # not compatible
query I rowsort label-8413
SELECT - COUNT ( * ) AS col1 FROM tab1 WHERE col0 * + 74 + col1 * + 10 NOT BETWEEN + col0 AND - 19 + - + col1
----
-3

query I rowsort
SELECT DISTINCT col1 - col2 + + - ( + + col0 ) AS col2 FROM tab1 WHERE NOT + 29 IS NULL
----
-112
-133
-139

query I rowsort
SELECT - 11 + + 56 FROM tab0 WHERE NULL < NULL
----

query I rowsort
SELECT DISTINCT col1 - + 44 + - 57 FROM tab0
----
-100
-20
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-8417
SELECT ALL + COUNT( * ) * - - 44 col0 FROM tab0
----
132

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8417
SELECT ALL + COUNT ( * ) * - - 44 col0 FROM tab0
----
132

query I rowsort
SELECT + 33 + - col0 + - + col2 + - col2 FROM tab1
----
-170
-194
-210

query I rowsort
SELECT ALL col2 * 12 - - col2 AS col0 FROM tab0
----
1287
130
611

query II rowsort
SELECT DISTINCT + col1 AS col1, + col0 FROM tab2
----
51
46
67
75
77
64

onlyif mysql # aggregate syntax: 
query I rowsort label-8421
SELECT DISTINCT - COUNT( + col0 ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8421
SELECT DISTINCT - COUNT ( + col0 ) AS col1 FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8422
SELECT ALL + CAST( + + col1 AS SIGNED ) * col1 - - - col2 + + ( col1 ) * col0 FROM tab1 cor0
----
391
6418
814

skipif mysql # not compatible
query I rowsort label-8422
SELECT ALL + CAST ( + + col1 AS INTEGER ) * col1 - - - col2 + + ( col1 ) * col0 FROM tab1 cor0
----
391
6418
814

onlyif mysql # aggregate syntax: 
query I rowsort label-8423
SELECT DISTINCT ( - MIN( DISTINCT + ( col1 ) ) ) AS col2 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-8423
SELECT DISTINCT ( - MIN ( DISTINCT + ( col1 ) ) ) AS col2 FROM tab0
----
-1

query II rowsort
SELECT col0 AS col0, col1 + - + col0 - + 36 FROM tab1
----
51
-73
85
-116
91
-80

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN + + col1 + - col0 AND + col1
----

query I rowsort
SELECT ALL col1 * + 72 AS col0 FROM tab2
----
3672
4824
5544

query I rowsort
SELECT - + col2 * - col1 FROM tab0 WHERE NOT ( + - ( + - 1 ) ) + 64 + + 57 IS NULL
----
210
3807
99

onlyif mysql # DIV for integer division: 
query II rowsort label-8428
SELECT col2, - 47 DIV - ( + 23 ) FROM tab0 AS cor0
----
10
2
47
2
99
2

skipif mysql # not compatible
query II rowsort label-8428
SELECT col2, - 47 / - ( + 23 ) FROM tab0 AS cor0
----
10
2
47
2
99
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 94 col2, - col0 FROM tab1 AS cor0
----
94
-51
94
-85
94
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-8430
SELECT ALL COUNT( * ) * ( + MIN( - col0 ) ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-225

skipif mysql # not compatible
query I rowsort label-8430
SELECT ALL COUNT ( * ) * ( + MIN ( - col0 ) ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-225

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 95 + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8432
SELECT ALL col0, - CAST( NULL AS SIGNED ) * - 74 / + + col0 FROM tab1 cor0
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-8432
SELECT ALL col0, - CAST ( NULL AS INTEGER ) * - 74 / + + col0 FROM tab1 cor0
----
51
NULL
85
NULL
91
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8433
SELECT DISTINCT + 50 AS col0, - 48 + + 58 - - ( COUNT( * ) ) AS col2 FROM tab1 cor0
----
50
13

skipif mysql # not compatible
query II rowsort label-8433
SELECT DISTINCT + 50 AS col0, - 48 + + 58 - - ( COUNT ( * ) ) AS col2 FROM tab1 cor0
----
50
13

query I rowsort
SELECT + 37 * + col0 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab1 WHERE NOT ( NOT ( NULL ) IS NOT NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT NULL NOT IN ( - 93, - col0, col0 - + - col0 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8437
SELECT DISTINCT 34 * + CAST( + + 99 AS SIGNED ) * + + col0 FROM tab1
----
171666
286110
306306

skipif mysql # not compatible
query I rowsort label-8437
SELECT DISTINCT 34 * + CAST ( + + 99 AS INTEGER ) * + + col0 FROM tab1
----
171666
286110
306306

query I rowsort
SELECT 82 * + 10 FROM tab1
----
820
820
820

onlyif mysql # aggregate syntax: 
query I rowsort label-8439
SELECT ALL 73 * COUNT( * ) FROM tab2
----
219

skipif mysql # not compatible
query I rowsort label-8439
SELECT ALL 73 * COUNT ( * ) FROM tab2
----
219

onlyif mysql # DIV for integer division: 
query I rowsort label-8440
SELECT col2 * col0 DIV + col1 FROM tab2
----
20
33
64

skipif mysql # not compatible
query I rowsort label-8440
SELECT col2 * col0 / + col1 FROM tab2
----
20
33
64

query I rowsort
SELECT - 67 FROM tab2 WHERE NOT + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8442
SELECT ALL MAX( + ( 73 ) ) * - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8442
SELECT ALL MAX ( + ( 73 ) ) * - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 col2 FROM tab0 WHERE NOT ( NOT ( NULL ) <> NULL )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 IN ( - - col0 * - col2 * + + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8445
SELECT + - col2 AS col2, CAST( NULL AS SIGNED ) * - 85 / - col0 * + + col2 FROM tab2 cor0
----
-23
NULL
-40
NULL
-58
NULL

skipif mysql # not compatible
query II rowsort label-8445
SELECT + - col2 AS col2, CAST ( NULL AS INTEGER ) * - 85 / - col0 * + + col2 FROM tab2 cor0
----
-23
NULL
-40
NULL
-58
NULL

query I rowsort
SELECT DISTINCT + 48 + - col1 AS col2 FROM tab2 AS cor0
----
-19
-29
-3

query I rowsort
SELECT ALL - - 9 + + 31 AS col0 FROM tab2 cor0
----
40
40
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8448
SELECT ALL - + CAST( NULL AS SIGNED ) + MAX( DISTINCT - col1 ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8448
SELECT ALL - + CAST ( NULL AS INTEGER ) + MAX ( DISTINCT - col1 ) AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + 18 - + - 36 + - - 2 * + col1 AS col1 FROM tab1 AS cor0
----
148
64
82

query I rowsort
SELECT DISTINCT - - col2 AS col0 FROM tab1 WHERE NOT + col2 IS NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8451
SELECT - + COUNT( * ) AS col1 FROM tab1 WHERE - col2 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8451
SELECT - + COUNT ( * ) AS col1 FROM tab1 WHERE - col2 IS NOT NULL
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8452
SELECT DISTINCT col2 / ( - 7 ) - CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8452
SELECT DISTINCT col2 / ( - 7 ) - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 28 * 23 + col1 col0 FROM tab0 cor0
----
-563
-623
-643

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8454
SELECT DISTINCT - - 0 * - CAST( + + COUNT( ALL - col1 ) AS SIGNED ) AS col1 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-8454
SELECT DISTINCT - - 0 * - CAST ( + + COUNT ( ALL - col1 ) AS INTEGER ) AS col1 FROM tab0 cor0
----
0

query I rowsort
SELECT - - 8 FROM tab2 AS cor0 WHERE NOT col0 <= + 65
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-8456
SELECT - - ( MAX( DISTINCT + + ( - - col1 ) ) ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-8456
SELECT - - ( MAX ( DISTINCT + + ( - - col1 ) ) ) FROM tab2 AS cor0
----
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8457
SELECT + - 28 * SUM( - col1 ) DIV + - COUNT( * ) col1 FROM tab1 AS cor0
----
-616

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8457
SELECT + - 28 * SUM ( - col1 ) / + - COUNT ( * ) col1 FROM tab1 AS cor0
----
-616

query II rowsort
SELECT + 47, + col0 * + col1 + - 11 AS col2 FROM tab2 cor0
----
47
2335
47
4917
47
5014

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT 32 * - col0 BETWEEN NULL AND + 49
----

query II rowsort
SELECT DISTINCT 50 * - ( - + col1 ), + col0 FROM tab1 AS cor0
----
2350
91
250
85
700
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8461
SELECT - COUNT( * ) + + 56 FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( - ( + + col1 ) * 19 )
----
56

skipif mysql # not compatible
query I rowsort label-8461
SELECT - COUNT ( * ) + + 56 FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( - ( + + col1 ) * 19 )
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-8462
SELECT DISTINCT col0 DIV - - ( - + 72 ) FROM tab0
----
-1
0

skipif mysql # not compatible
query I rowsort label-8462
SELECT DISTINCT col0 / - - ( - + 72 ) FROM tab0
----
-1
0

query III rowsort
SELECT * FROM tab1 WHERE NOT + ( col2 ) * + 88 + 69 IN ( col0 * + 46 + col0, col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + 90 * - - col0 AS col1 FROM tab2
----
4140
5760
6750

onlyif mysql # aggregate syntax: 
query I rowsort label-8465
SELECT DISTINCT - MAX( - 21 ) FROM tab1 WHERE NOT col0 < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8465
SELECT DISTINCT - MAX ( - 21 ) FROM tab1 WHERE NOT col0 < NULL
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 / 96 IS NOT NULL
----

query I rowsort
SELECT ALL ( - ( 87 ) ) AS col1 FROM tab0
----
-87
-87
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8468
SELECT DISTINCT + col1 + + col0 * + CAST( + 7 AS SIGNED ) * + col2 AS col1 FROM tab2
----
17997
30517
7457

skipif mysql # not compatible
query I rowsort label-8468
SELECT DISTINCT + col1 + + col0 * + CAST ( + 7 AS INTEGER ) * + col2 AS col1 FROM tab2
----
17997
30517
7457

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 + 44 + - 29 + + + col1 * - 86 col0 FROM tab0 AS cor0
----
-170
-1801
-6998

query I rowsort
SELECT col1 * + - col1 * + 48 * - + col0 * - col0 * col2 * - + ( + col1 ) + - 40 * + + 74 FROM tab2 WHERE 51 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT ALL - col2 - + - col0 * - - col1 AS col1, + col2 * 41 col0, col2 + 40 + col1 + + col1 AS col2 FROM tab2
----
9 values hashing to a67bc1073445c96752a2023c6c210158

onlyif mysql # aggregate syntax: 
query I rowsort label-8472
SELECT DISTINCT + + COUNT( * ) FROM tab1 WHERE NOT NULL NOT IN ( - 98, col2 + + col2 - 55 )
----
0

skipif mysql # not compatible
query I rowsort label-8472
SELECT DISTINCT + + COUNT ( * ) FROM tab1 WHERE NOT NULL NOT IN ( - 98, col2 + + col2 - 55 )
----
0

query I rowsort
SELECT + 13 * + col1 - + col1 FROM tab1 cor0
----
168
564
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8474
SELECT - - COUNT( * ) - + - 41 FROM tab2 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-8474
SELECT - - COUNT ( * ) - + - 41 FROM tab2 AS cor0
----
44

query I rowsort
SELECT DISTINCT 58 * - 4 FROM tab2 AS cor0
----
-232

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 38 + + - col2 col2 FROM tab2 cor0
----
-61
-78
-96

query I rowsort
SELECT DISTINCT col2 * + + 87 + col1 - + col2 + - col1 * + 40 * 44 FROM tab2
----
-112865
-132003
-87731

query I rowsort
SELECT col0 + col1 * + - col2 AS col0 FROM tab2
----
-1127
-3016
-3811

query III rowsort
SELECT * FROM tab0 WHERE col2 / + col2 NOT IN ( + - col0, - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col0 + + col2 * - 31 * + col0 AS col0 FROM tab1
----
-151725
-155380
-191737

onlyif mysql # aggregate syntax: 
query I rowsort label-8481
SELECT ALL + COUNT( * ) - + - 29 AS col2 FROM tab0
----
32

skipif mysql # not compatible
query I rowsort label-8481
SELECT ALL + COUNT ( * ) - + - 29 AS col2 FROM tab0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-8482
SELECT - MIN( ALL 45 ) FROM tab2
----
-45

skipif mysql # not compatible
query I rowsort label-8482
SELECT - MIN ( ALL 45 ) FROM tab2
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-8483
SELECT DISTINCT + COUNT( * ) - 69 * + 92 col0 FROM tab2
----
-6345

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8483
SELECT DISTINCT + COUNT ( * ) - 69 * + 92 col0 FROM tab2
----
-6345

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND 86 * - ( - col2 )
----

query I rowsort
SELECT DISTINCT - ( - 79 ) FROM tab1 AS cor0
----
79

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 * 29 NOT IN ( + + ( + col1 ), + col1 - + 78 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 <= col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8488
SELECT ALL + COUNT( * ), + 22 AS col0 FROM tab1 AS cor0
----
3
22

skipif mysql # not compatible
query II rowsort label-8488
SELECT ALL + COUNT ( * ), + 22 AS col0 FROM tab1 AS cor0
----
3
22

onlyif mysql # DIV for integer division: 
query I rowsort label-8489
SELECT + ( 20 ) * - col2 DIV - - col2 AS col1 FROM tab1
----
-20
-20
-20

skipif mysql # not compatible
query I rowsort label-8489
SELECT + ( 20 ) * - col2 / - - col2 AS col1 FROM tab1
----
-20
-20
-20

query I rowsort
SELECT col1 * + + col0 * - 17 + col2 + - 89 AS col2 FROM tab1 AS cor0
----
-12131
-7255
-72730

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col2 * - 67 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT - - col2 * - + 96 AS col2, + col0 FROM tab0 AS cor0
----
-4512
15
-9504
97
-960
87

query II rowsort
SELECT - + col2 + col1, + col2 AS col0 FROM tab1 AS cor0 WHERE NOT 0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8494
SELECT DISTINCT SUM( + - 66 ) FROM tab1
----
-198

skipif mysql # not compatible
query I rowsort label-8494
SELECT DISTINCT SUM ( + - 66 ) FROM tab1
----
-198

query I rowsort
SELECT - col0 * - 64 FROM tab1
----
3264
5440
5824

onlyif mysql # aggregate syntax: 
query I rowsort label-8496
SELECT - + MAX( ( + 61 ) ) AS col1 FROM tab1 WHERE NOT + 58 * - ( 75 ) * - + col2 + - - col2 IS NULL
----
-61

skipif mysql # not compatible
query I rowsort label-8496
SELECT - + MAX ( ( + 61 ) ) AS col1 FROM tab1 WHERE NOT + 58 * - ( 75 ) * - + col2 + - - col2 IS NULL
----
-61

query I rowsort
SELECT - 26 * + + 85 AS col0 FROM tab2
----
-2210
-2210
-2210

query I rowsort
SELECT DISTINCT + 23 + 2 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8499
SELECT MAX( CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8499
SELECT MAX ( CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + 32 + + col1 AS col2 FROM tab1
----
37
46
79

onlyif mysql # DIV for integer division: 
query I rowsort label-8501
SELECT ALL col0 + - 22 DIV ( - + ( - 49 ) ) AS col0 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-8501
SELECT ALL col0 + - 22 / ( - + ( - 49 ) ) AS col0 FROM tab2
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8502
SELECT DISTINCT + MIN( + col1 ) + - 43 FROM tab1
----
-38

skipif mysql # not compatible
query I rowsort label-8502
SELECT DISTINCT + MIN ( + col1 ) + - 43 FROM tab1
----
-38

query I rowsort
SELECT + 7 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 63 col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-8505
SELECT DISTINCT COUNT( * ) - + + 30 FROM tab2
----
-27

skipif mysql # not compatible
query I rowsort label-8505
SELECT DISTINCT COUNT ( * ) - + + 30 FROM tab2
----
-27

query II rowsort
SELECT col1 * + + col2 AS col0, col1 AS col2 FROM tab1 cor0
----
1344
14
295
5
3196
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8507
SELECT ALL + 23 * COUNT( * ) AS col2 FROM tab1 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-8507
SELECT ALL + 23 * COUNT ( * ) AS col2 FROM tab1 AS cor0
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-8508
SELECT DISTINCT - - 45 DIV col0 FROM tab0 AS cor0
----
0
3

skipif mysql # not compatible
query I rowsort label-8508
SELECT DISTINCT - - 45 / col0 FROM tab0 AS cor0
----
0
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8509
SELECT ALL - COUNT( + col0 ) AS col1 FROM tab2 AS cor0 WHERE col2 NOT BETWEEN - col0 * - 6 AND + + col2
----
-3

skipif mysql # not compatible
query I rowsort label-8509
SELECT ALL - COUNT ( + col0 ) AS col1 FROM tab2 AS cor0 WHERE col2 NOT BETWEEN - col0 * - 6 AND + + col2
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8510
SELECT ALL - + 51 * CAST( + 10 AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE NOT + col2 <> NULL
----

skipif mysql # not compatible
query I rowsort label-8510
SELECT ALL - + 51 * CAST ( + 10 AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NOT + col2 <> NULL
----

query I rowsort
SELECT DISTINCT + ( 18 ) + col1 AS col0 FROM tab1 AS cor0
----
23
32
65

onlyif mysql # aggregate syntax: 
query I rowsort label-8512
SELECT + + COUNT( * ) - - 35 AS col2 FROM tab1 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-8512
SELECT + + COUNT ( * ) - - 35 AS col2 FROM tab1 AS cor0
----
38

query I rowsort
SELECT DISTINCT 18 - + 60 + ( 12 ) FROM tab2
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-8514
SELECT + SUM( + + col1 ) AS col2 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-8514
SELECT + SUM ( + + col1 ) AS col2 FROM tab1
----
66

query I rowsort
SELECT - ( 7 ) * - col1 FROM tab1 WHERE NOT + - col2 > + 63
----
329
35
98

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8516
SELECT ALL * FROM tab1 WHERE - - 60 * 56 * + ( + col1 ) * + col2 / - col0 IN ( - col2, ( - - CAST( NULL AS DECIMAL ) ) )
----

skipif mysql # not compatible
query III rowsort label-8516
SELECT ALL * FROM tab1 WHERE - - 60 * 56 * + ( + col1 ) * + col2 / - col0 IN ( - col2, ( - - CAST ( NULL AS REAL ) ) )
----

query I rowsort
SELECT - col0 AS col0 FROM tab1 WHERE NOT - - col0 * - col2 > - col1 / - 38 + + - 19
----
-51
-85
-91

query III rowsort
SELECT * FROM tab0 WHERE NOT + - 78 * + col2 + + col1 = + 20
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - - 84 AS col0 FROM tab1 AS cor0 WHERE NOT ( - ( - + col0 ) ) <= NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( ( - 17 + + col0 + col1 ) >= col2 )
----
51
14
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8521
SELECT ALL 52 DIV - - 3 + + 43 * - COUNT( DISTINCT 94 ) AS col0, 93 * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
-26
NULL

skipif mysql # not compatible
query II rowsort label-8521
SELECT ALL 52 / - - 3 + + 43 * - COUNT ( DISTINCT 94 ) AS col0, 93 * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
-26
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8522
SELECT DISTINCT + + COUNT( - - col0 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8522
SELECT DISTINCT + + COUNT ( - - col0 ) AS col0 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8523
SELECT CAST( NULL AS DECIMAL ) * + + col1 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8523
SELECT CAST ( NULL AS REAL ) * + + col1 AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8524
SELECT SUM( 83 ) FROM tab2 AS cor0
----
249

skipif mysql # not compatible
query I rowsort label-8524
SELECT SUM ( 83 ) FROM tab2 AS cor0
----
249

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) > - + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8526
SELECT DISTINCT + - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE ( + col2 ) * col2 > - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8526
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE ( + col2 ) * col2 > - col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8527
SELECT ALL + ( + COUNT( * ) ) AS col1 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8527
SELECT ALL + ( + COUNT ( * ) ) AS col1 FROM tab1 cor0
----
3

query I rowsort
SELECT DISTINCT - - col0 + 4 AS col2 FROM tab2 AS cor0
----
50
68
79

query I rowsort
SELECT DISTINCT - col2 * - 53 AS col0 FROM tab2 AS cor0
----
1219
2120
3074

query I rowsort
SELECT + 75 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 + + - col2 - + - col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 * col2 * - ( col1 ) + - 64 + - + 99 col0 FROM tab0 AS cor0
----
-262
-308530
-4573

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8533
SELECT ALL - col0 AS col1, ( - - col2 ) * + CAST( NULL AS SIGNED ) + + - col2 AS col0 FROM tab2 AS cor0
----
-46
NULL
-64
NULL
-75
NULL

skipif mysql # not compatible
query II rowsort label-8533
SELECT ALL - col0 AS col1, ( - - col2 ) * + CAST ( NULL AS INTEGER ) + + - col2 AS col0 FROM tab2 AS cor0
----
-46
NULL
-64
NULL
-75
NULL

query I rowsort
SELECT ALL + 21 * + col2 FROM tab2 WHERE NULL IS NULL
----
1218
483
840

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NOT + 5 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query IIIIII rowsort
SELECT ALL * FROM tab1, tab2 AS cor0 WHERE NULL = 17
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8537
SELECT + COUNT( * ) FROM tab0 WHERE + - col1 >= + + col2 * - 10 * + - 75
----
0

skipif mysql # not compatible
query I rowsort label-8537
SELECT + COUNT ( * ) FROM tab0 WHERE + - col1 >= + + col2 * - 10 * + - 75
----
0

query I rowsort
SELECT col0 + 77 * col0 AS col0 FROM tab1
----
3978
6630
7098

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8539
SELECT DISTINCT + + ( - + CAST( - + 10 AS SIGNED ) ) col0 FROM tab2 AS cor0
----
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8539
SELECT DISTINCT + + ( - + CAST ( - + 10 AS INTEGER ) ) col0 FROM tab2 AS cor0
----
10

query I rowsort
SELECT + 16 + 72 + 86 + col0 + col0 * 43 + - col0 AS col1 FROM tab1 AS cor0
----
2367
3829
4087

onlyif mysql # aggregate syntax: 
query I rowsort label-8541
SELECT DISTINCT + ( - COUNT( * ) ) * COUNT( * ) - + 81 FROM tab2 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-8541
SELECT DISTINCT + ( - COUNT ( * ) ) * COUNT ( * ) - + 81 FROM tab2 AS cor0
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-8542
SELECT COUNT( col1 ) FROM tab0 cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8542
SELECT COUNT ( col1 ) FROM tab0 cor0 WHERE NULL IS NOT NULL
----
0

query II rowsort
SELECT ALL 46, col2 AS col2 FROM tab1 AS cor0
----
46
59
46
68
46
96

query I rowsort
SELECT col2 + - - col2 FROM tab0 AS cor0
----
198
20
94

onlyif mysql # DIV for integer division: 
query I rowsort label-8545
SELECT ALL + + 74 DIV + col2 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-8545
SELECT ALL + + 74 / + col2 FROM tab1 AS cor0
----
0
1
1

query II rowsort
SELECT - 55 - - 72, - 72 AS col1 FROM tab0 cor0 WHERE NULL IS NULL
----
17
-72
17
-72
17
-72

query I rowsort
SELECT col1 - + - col1 FROM tab2 AS cor0 WHERE NOT col0 + - col0 IS NULL
----
102
134
154

onlyif mysql # aggregate syntax: 
query I rowsort label-8548
SELECT ALL - SUM( col2 ) AS col0 FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-8548
SELECT ALL - SUM ( col2 ) AS col0 FROM tab2
----
-121

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 16 col2, ( + - 13 ) AS col2 FROM tab2
----
16
-13

query I rowsort
SELECT DISTINCT + + AVG ( ALL col1 ) AS col2 FROM tab0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8551
SELECT MAX( - col2 ) AS col1, - 5 AS col1 FROM tab1
----
-59
-5

skipif mysql # not compatible
query II rowsort label-8551
SELECT MAX ( - col2 ) AS col1, - 5 AS col1 FROM tab1
----
-59
-5

query I rowsort
SELECT ALL + col0 * - - col1 AS col0 FROM tab0
----
1215
1827
97

query II rowsort
SELECT ( + 62 ) AS col0, - col1 FROM tab2
----
62
-51
62
-67
62
-77

query I rowsort
SELECT DISTINCT + 71 * - col2 FROM tab2
----
-1633
-2840
-4118

onlyif mysql # aggregate syntax: 
query I rowsort label-8555
SELECT ALL + COUNT( * ) * + 64 AS col0 FROM tab1
----
192

skipif mysql # not compatible
query I rowsort label-8555
SELECT ALL + COUNT ( * ) * + 64 AS col0 FROM tab1
----
192

query I rowsort
SELECT - + col0 + + col1 + + ( col1 ) + + 87 FROM tab1 AS cor0
----
12
64
90

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 / + 90 - + 35 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 64 + col2 + + 21 FROM tab0 cor0
----
132
184
95

onlyif mysql # DIV for integer division: 
query I rowsort label-8559
SELECT ALL col2 * 28 * - col2 * + col1 DIV + col1 + + col0 FROM tab2 cor0
----
-14766
-44736
-94117

skipif mysql # not compatible
query I rowsort label-8559
SELECT ALL col2 * 28 * - col2 * + col1 / + col1 + + col0 FROM tab2 cor0
----
-14766
-44736
-94117

onlyif mysql # aggregate syntax: 
query I rowsort label-8560
SELECT MAX( - col2 ) FROM tab1 AS cor0 WHERE col2 / - col0 + 65 IS NOT NULL
----
-59

skipif mysql # not compatible
query I rowsort label-8560
SELECT MAX ( - col2 ) FROM tab1 AS cor0 WHERE col2 / - col0 + 65 IS NOT NULL
----
-59

query III rowsort
SELECT * FROM tab0 WHERE + col2 BETWEEN NULL AND ( + col0 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8562
SELECT 68 AS col2, MAX( DISTINCT + col1 ) AS col1 FROM tab2
----
68
77

skipif mysql # not compatible
query II rowsort label-8562
SELECT 68 AS col2, MAX ( DISTINCT + col1 ) AS col1 FROM tab2
----
68
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8563
SELECT DISTINCT 72 + COUNT( * ) AS col0 FROM tab0
----
75

skipif mysql # not compatible
query I rowsort label-8563
SELECT DISTINCT 72 + COUNT ( * ) AS col0 FROM tab0
----
75

query I rowsort
SELECT - 34 * - - 37 AS col1 FROM tab1
----
-1258
-1258
-1258

onlyif mysql # aggregate syntax: 
query I rowsort label-8565
SELECT - 1 * + COUNT( * ) + COUNT( * ) + - COUNT( * ) col1 FROM tab2 AS cor0 WHERE ( NOT - + col1 IS NOT NULL )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8565
SELECT - 1 * + COUNT ( * ) + COUNT ( * ) + - COUNT ( * ) col1 FROM tab2 AS cor0 WHERE ( NOT - + col1 IS NOT NULL )
----
0

query I rowsort
SELECT 39 + - col1 + + col0 * + 34 FROM tab0 AS cor0
----
2976
3336
468

onlyif mysql # DIV for integer division: 
query I rowsort label-8567
SELECT + col0 DIV - 20 + + col1 - - col2 + + + 82 * + - col2 FROM tab2 AS cor0
----
-1814
-3166
-4634

skipif mysql # not compatible
query I rowsort label-8567
SELECT + col0 / - 20 + + col1 - - col2 + + + 82 * + - col2 FROM tab2 AS cor0
----
-1814
-3166
-4634

query I rowsort
SELECT + col1 * - 47 + + 13 AS col0 FROM tab1
----
-2196
-222
-645

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 31 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8570
SELECT col1 DIV col2 * col1 FROM tab0 AS cor0
----
0
42
81

skipif mysql # not compatible
query I rowsort label-8570
SELECT col1 / col2 * col1 FROM tab0 AS cor0
----
0
42
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8571
SELECT + COUNT( * ) * 6 FROM tab1 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-8571
SELECT + COUNT ( * ) * 6 FROM tab1 AS cor0
----
18

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8572
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - CAST( NULL AS DECIMAL ) + - ( col1 ) BETWEEN - 62 AND NULL
----

skipif mysql # not compatible
query III rowsort label-8572
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - CAST ( NULL AS REAL ) + - ( col1 ) BETWEEN - 62 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8573
SELECT DISTINCT + CAST( - 46 AS SIGNED ) * + SUM( DISTINCT col1 ) AS col0 FROM tab0 AS cor0
----
-4738

skipif mysql # not compatible
query I rowsort label-8573
SELECT DISTINCT + CAST ( - 46 AS INTEGER ) * + SUM ( DISTINCT col1 ) AS col0 FROM tab0 AS cor0
----
-4738

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + 91 col1 FROM tab2 AS cor0
----
4186
5824
6825

query I rowsort
SELECT + 57 * + col2 * - ( + 19 ) FROM tab0
----
-107217
-10830
-50901

query I rowsort
SELECT ALL 6 * - - col0 FROM tab2
----
276
384
450

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - - 59 > - 4
----

query I rowsort
SELECT + + col0 * - col0 * col2 AS col1 FROM tab0 WHERE NOT ( 57 IS NOT NULL )
----

query I rowsort
SELECT col1 * + + 95 AS col0 FROM tab2 AS cor0
----
4845
6365
7315

query I rowsort
SELECT - - 40 AS col2 FROM tab0 AS cor0
----
40
40
40

onlyif mysql # DIV for integer division: 
query I rowsort label-8581
SELECT + col2 DIV 9 FROM tab0 AS cor0
----
1
11
5

skipif mysql # not compatible
query I rowsort label-8581
SELECT + col2 / 9 FROM tab0 AS cor0
----
1
11
5

onlyif mysql # aggregate syntax: 
query II rowsort label-8582
SELECT ALL + 41 AS col1, - MAX( - 41 ) FROM tab2 AS cor0
----
41
41

skipif mysql # not compatible
query II rowsort label-8582
SELECT ALL + 41 AS col1, - MAX ( - 41 ) FROM tab2 AS cor0
----
41
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 11 + + col2 + + - col2 + - col1 + + col2 + + - 20 * col2 + col2 - + col0 * + col0 col0 FROM tab0 AS cor0
----
-11181
-1141
-7759

onlyif mysql # aggregate syntax: 
query I rowsort label-8584
SELECT DISTINCT - COUNT( * ) + - - 50 AS col2 FROM tab0 cor0
----
47

skipif mysql # not compatible
query I rowsort label-8584
SELECT DISTINCT - COUNT ( * ) + - - 50 AS col2 FROM tab0 cor0
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8585
SELECT + COUNT( * ) + - 2 + 64 * COUNT( * ) DIV + 43 FROM tab0 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-8585
SELECT + COUNT ( * ) + - 2 + 64 * COUNT ( * ) / + 43 FROM tab0 AS cor0
----
5

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 NOT BETWEEN col0 AND 77
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8587
SELECT ALL + 60 + - COUNT( * ) FROM tab2
----
57

skipif mysql # not compatible
query I rowsort label-8587
SELECT ALL + 60 + - COUNT ( * ) FROM tab2
----
57

query I rowsort
SELECT ALL - col1 * - - col2 + - - 22 AS col2 FROM tab1
----
-1322
-273
-3174

query I rowsort
SELECT col2 * + 38 + col1 + col1 FROM tab1
----
2252
2678
3676

query I rowsort
SELECT 43 + + col1 FROM tab2
----
110
120
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8591
SELECT ( 84 ) + + - CAST( col2 AS SIGNED ) FROM tab2
----
26
44
61

skipif mysql # not compatible
query I rowsort label-8591
SELECT ( 84 ) + + - CAST ( col2 AS INTEGER ) FROM tab2
----
26
44
61

query I rowsort
SELECT + ( col2 ) + - col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8593
SELECT DISTINCT COUNT( * ), + AVG ( ALL + col2 ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0
NULL

skipif mysql # not compatible
query II rowsort label-8593
SELECT DISTINCT COUNT ( * ), + AVG ( ALL + col2 ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0
NULL

query I rowsort
SELECT ALL + col2 AS col2 FROM tab2 cor0 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8595
SELECT ALL - CAST( NULL AS SIGNED ) / + 78 + + 69 - - ( + col0 ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8595
SELECT ALL - CAST ( NULL AS INTEGER ) / + 78 + + 69 - - ( + col0 ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8596
SELECT + COUNT( + - 25 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-8596
SELECT + COUNT ( + - 25 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8597
SELECT 19 * + MIN( - col2 ) AS col2 FROM tab0
----
-1881

skipif mysql # not compatible
query I rowsort label-8597
SELECT 19 * + MIN ( - col2 ) AS col2 FROM tab0
----
-1881

onlyif mysql # aggregate syntax: 
query I rowsort label-8598
SELECT + COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL > + col0
----
0

skipif mysql # not compatible
query I rowsort label-8598
SELECT + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL > + col0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 19 col1, col0 AS col2 FROM tab2 AS cor0
----
19
46
19
64
19
75

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 / + col0 * 65 * - col1 * - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab2 AS cor0 WHERE NOT + col2 IS NULL
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8602
SELECT + - 48 * - MAX( DISTINCT ( - col2 ) ) AS col1 FROM tab0 AS cor0
----
-480

skipif mysql # not compatible
query I rowsort label-8602
SELECT + - 48 * - MAX ( DISTINCT ( - col2 ) ) AS col1 FROM tab0 AS cor0
----
-480

query I rowsort
SELECT + col1 * - + 59 FROM tab0
----
-1239
-4779
-59

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8604
SELECT DISTINCT col2 * - CAST( NULL AS SIGNED ) + + - col1 - - col1 * - + col1 col1, ( - col2 ) * + col0 / - - ( - CAST( NULL AS SIGNED ) ) FROM tab1 WHERE NOT + - 95 NOT BETWEEN + 95 AND - col0
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8604
SELECT DISTINCT col2 * - CAST ( NULL AS INTEGER ) + + - col1 - - col1 * - + col1 col1, ( - col2 ) * + col0 / - - ( - CAST ( NULL AS INTEGER ) ) FROM tab1 WHERE NOT + - 95 NOT BETWEEN + 95 AND - col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8605
SELECT ALL CAST( NULL AS DECIMAL ) * + COUNT( * ) * - 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-8605
SELECT ALL CAST ( NULL AS REAL ) * + COUNT ( * ) * - CAST ( NULL AS INTEGER ) col0 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8606
SELECT - col0 * + - col0 * + 33 * - col0, CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
-20266125
NULL
-24867843
NULL
-4377483
NULL

skipif mysql # not compatible
query II rowsort label-8606
SELECT - col0 * + - col0 * + 33 * - col0, CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
-20266125
NULL
-24867843
NULL
-4377483
NULL

query I rowsort
SELECT + ( + + col0 ) * + col1 FROM tab0
----
1215
1827
97

query I rowsort
SELECT col2 AS col2 FROM tab1 WHERE NOT ( - col0 ) IS NULL
----
59
68
96

query III rowsort
SELECT * FROM tab0 WHERE NOT 2 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8610
SELECT DISTINCT 34 * COUNT( * ) * - COUNT( * ) * - + SUM( - CAST( NULL AS SIGNED ) ) * + 97 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8610
SELECT DISTINCT 34 * COUNT ( * ) * - COUNT ( * ) * - + SUM ( - CAST ( NULL AS INTEGER ) ) * + 97 FROM tab2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8611
SELECT - MIN( DISTINCT + + CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8611
SELECT - MIN ( DISTINCT + + CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

query I rowsort
SELECT - col0 * - + col1 AS col1 FROM tab2
----
2346
4928
5025

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL <> - 78
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * 65 + + 50 col0 FROM tab0 cor0
----
-3005
-600
-6385

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 * - col0 BETWEEN NULL AND + col0 * col0
----

query I rowsort
SELECT - 22 AS col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to fae46f8148b02964f7145eb6ed5819f9

onlyif mysql # aggregate syntax: 
query I rowsort label-8617
SELECT DISTINCT + + COUNT( col2 ) AS col0 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8617
SELECT DISTINCT + + COUNT ( col2 ) AS col0 FROM tab1 cor0
----
3

query I rowsort
SELECT ALL - 83 * col2 AS col0 FROM tab2 AS cor0
----
-1909
-3320
-4814

query I rowsort
SELECT DISTINCT + + 40 + - 83 + + col1 + + col0 FROM tab2 cor0
----
54
98
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 48 col0 FROM tab1 AS cor0
----
48
48
48

onlyif mysql # aggregate syntax: 
query I rowsort label-8621
SELECT DISTINCT - COUNT( - 92 ) FROM tab0 WHERE + - col1 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8621
SELECT DISTINCT - COUNT ( - 92 ) FROM tab0 WHERE + - col1 IS NOT NULL
----
-3

query I rowsort
SELECT DISTINCT 80 + + - col0 * col2 FROM tab0
----
-625
-790
-9523

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8623
SELECT DISTINCT - ( col0 ) + - + CAST( + - col1 AS SIGNED ) AS col1 FROM tab1
----
-37
-44
-80

skipif mysql # not compatible
query I rowsort label-8623
SELECT DISTINCT - ( col0 ) + - + CAST ( + - col1 AS INTEGER ) AS col1 FROM tab1
----
-37
-44
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col1 FROM tab2 AS cor0 WHERE NOT NULL > 49 * + 52 * col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8625
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 * + col2 <> - CAST( + 35 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8625
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 * + col2 <> - CAST ( + 35 AS INTEGER )
----

query I rowsort
SELECT DISTINCT + - col2 * - col0 * - col0 * + col1 AS col1 FROM tab0 AS cor0
----
-1589490
-856575
-931491

onlyif mysql # DIV for integer division: 
query I rowsort label-8627
SELECT - col1 + col1 DIV + col1 col2 FROM tab1 AS cor0
----
-13
-4
-46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8627
SELECT - col1 + col1 / + col1 col2 FROM tab1 AS cor0
----
-13
-4
-46

query I rowsort
SELECT + ( col1 ) + + - col1 AS col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8629
SELECT + + 61 DIV - col1 + - - ( - 50 ) FROM tab2 AS cor0 WHERE NOT col0 IN ( + - ( + 93 ), ( + col0 ) * + - col1 )
----
-50
-50
-51

skipif mysql # not compatible
query I rowsort label-8629
SELECT + + 61 / - col1 + - - ( - 50 ) FROM tab2 AS cor0 WHERE NOT col0 IN ( + - ( + 93 ), ( + col0 ) * + - col1 )
----
-50
-50
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8630
SELECT ALL + col0 + - CAST( NULL AS SIGNED ) * - + col2 * + col1 FROM tab2 cor0 WHERE NOT NULL > col2 / + - ( 83 ) * + 82 + + 51
----

skipif mysql # not compatible
query I rowsort label-8630
SELECT ALL + col0 + - CAST ( NULL AS INTEGER ) * - + col2 * + col1 FROM tab2 cor0 WHERE NOT NULL > col2 / + - ( 83 ) * + 82 + + 51
----

query I rowsort
SELECT DISTINCT + 38 + 16 + - + col0 AS col0 FROM tab1 WHERE NOT - col1 IS NULL
----
-31
-37
3

query I rowsort
SELECT ALL 30 + - 67 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ed4644af7729c2425ea6cc3d84c6504f

onlyif mysql # aggregate syntax: 
query I rowsort label-8633
SELECT DISTINCT + + COUNT( * ) AS col1 FROM tab1 WHERE 42 BETWEEN 9 AND + col2
----
3

skipif mysql # not compatible
query I rowsort label-8633
SELECT DISTINCT + + COUNT ( * ) AS col1 FROM tab1 WHERE 42 BETWEEN 9 AND + col2
----
3

query I rowsort
SELECT ALL - col1 AS col0 FROM tab2 AS cor0 WHERE - ( - 57 ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT col0 * col1 FROM tab2 AS cor0 WHERE NOT col2 <> col2 + - col1 + - 94
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 96 col0 FROM tab2 AS cor0
----
-96
-96
-96

query II rowsort
SELECT - col1 * + - 13, col0 AS col1 FROM tab1 AS cor0
----
182
51
611
91
65
85

query I rowsort
SELECT ALL col2 AS col0 FROM tab0 cor0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8639
SELECT 90 * - 76 * + COUNT( * ) FROM tab2 AS cor0
----
-20520

skipif mysql # not compatible
query I rowsort label-8639
SELECT 90 * - 76 * + COUNT ( * ) FROM tab2 AS cor0
----
-20520

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 NOT BETWEEN NULL AND + - col1 + + col1 + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8641
SELECT ALL - MIN( ALL - + 12 ) FROM tab1 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-8641
SELECT ALL - MIN ( ALL - + 12 ) FROM tab1 AS cor0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-8642
SELECT DISTINCT MIN( col1 ) col2 FROM tab0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8642
SELECT DISTINCT MIN ( col1 ) col2 FROM tab0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 77 col1 FROM tab0
----
77
77
77

onlyif mysql # aggregate syntax: 
query II rowsort label-8644
SELECT ALL - COUNT( * ) col0, 23 AS col0 FROM tab2
----
-3
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8644
SELECT ALL - COUNT ( * ) col0, 23 AS col0 FROM tab2
----
-3
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8645
SELECT + col2 + + + col2 * - col1 / CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8645
SELECT + col2 + + + col2 * - col1 / CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + 32 / + + ( + col1 ) >= - - col1
----
15
81
47
87
21
10

query I rowsort
SELECT - col0 + + 16 FROM tab0 AS cor0
----
-71
-81
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8648
SELECT + - SUM( ALL + 81 ) FROM tab2 cor0
----
-243

skipif mysql # not compatible
query I rowsort label-8648
SELECT + - SUM ( ALL + 81 ) FROM tab2 cor0
----
-243

query I rowsort
SELECT ALL - ( - ( + col0 ) ) AS col0 FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT DISTINCT + + 50 + - + 33 FROM tab1 AS cor0
----
17

query I rowsort
SELECT - col0 - 15 FROM tab2 AS cor0
----
-61
-79
-90

query I rowsort
SELECT + 93 - - col0 AS col0 FROM tab1 AS cor0
----
144
178
184

query I rowsort
SELECT - col1 + + - col2 FROM tab1 AS cor0 WHERE + 91 - + + 1 IS NOT NULL
----
-110
-115
-64

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8654
SELECT + 2 + AVG ( ALL - + CAST( NULL AS DECIMAL ) ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8654
SELECT + 2 + AVG ( ALL - + CAST ( NULL AS REAL ) ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8655
SELECT ALL + - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8655
SELECT ALL + - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
-3

query I rowsort
SELECT DISTINCT + 48 * 1 + + - col1 + + col1 FROM tab0
----
48

query I rowsort
SELECT DISTINCT + 82 + + - 4 AS col1 FROM tab0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-8658
SELECT - - COUNT( * ) AS col0 FROM tab1 WHERE NULL >= - 73 * - - 42 * col1
----
0

skipif mysql # not compatible
query I rowsort label-8658
SELECT - - COUNT ( * ) AS col0 FROM tab1 WHERE NULL >= - 73 * - - 42 * col1
----
0

query I rowsort
SELECT - 89 * + col2 AS col2 FROM tab2
----
-2047
-3560
-5162

query I rowsort
SELECT DISTINCT - 55 - - col2 AS col0 FROM tab1
----
13
4
41

onlyif mysql # aggregate syntax: 
query I rowsort label-8661
SELECT SUM( - + 77 ) AS col0 FROM tab1
----
-231

skipif mysql # not compatible
query I rowsort label-8661
SELECT SUM ( - + 77 ) AS col0 FROM tab1
----
-231

onlyif mysql # aggregate syntax: 
query I rowsort label-8662
SELECT MIN( col2 ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND 24
----
NULL

skipif mysql # not compatible
query I rowsort label-8662
SELECT MIN ( col2 ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND 24
----
NULL

query II rowsort
SELECT DISTINCT col2 AS col1, - 67 AS col2 FROM tab1
----
59
-67
68
-67
96
-67

query II rowsort
SELECT - col2 AS col0, col1 + + + 91 AS col1 FROM tab2 AS cor0
----
-23
142
-40
168
-58
158

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 63 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT DISTINCT - ( - - col2 ) AS col1 FROM tab0 cor0
----
-10
-47
-99

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE NOT ( 17 ) * + - col0 * col1 IS NULL
----
51
67
77

query II rowsort
SELECT col1 * - col2 AS col0, + col1 * - 40 AS col0 FROM tab2 AS cor0
----
-1173
-2040
-3080
-3080
-3886
-2680

query I rowsort
SELECT - col1 AS col2 FROM tab2 AS cor0 WHERE NOT - ( + ( - 51 ) ) + + 61 IN ( - ( col1 ) )
----
-51
-67
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 90, - 63 * 17 col1 FROM tab2 cor0
----
-90
-1071
-90
-1071
-90
-1071

query I rowsort
SELECT + 28 AS col1 FROM tab0 AS cor0 WHERE NOT 84 IS NULL
----
28
28
28

onlyif mysql # aggregate syntax: 
query I rowsort label-8673
SELECT + ( MIN( + - col1 ) ) AS col2 FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-8673
SELECT + ( MIN ( + - col1 ) ) AS col2 FROM tab2
----
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 * - 65 col1, col1 * - + 68 - + - col2 AS col1 FROM tab0
----
-1365
-1418
-5265
-5461
-65
31

query I rowsort
SELECT col2 * 43 AS col0 FROM tab1
----
2537
2924
4128

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 16 * + - col2 col0 FROM tab2
----
-368
-640
-928

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE NOT 39 / + - 32 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 30 col0 FROM tab1 AS cor0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-8679
SELECT - SUM( ALL + + col0 ) AS col0 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-8679
SELECT - SUM ( ALL + + col0 ) AS col0 FROM tab1 AS cor0
----
-227

query I rowsort
SELECT - col2 * - col2 + - 62 FROM tab0 AS cor0
----
2147
38
9739

query I rowsort
SELECT - 10 * col2 * + col2 + + col2 FROM tab2
----
-15960
-33582
-5267

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8682
SELECT * FROM tab0 WHERE NULL = CAST( + 61 AS SIGNED ) + - col1 * + col2
----

skipif mysql # not compatible
query III rowsort label-8682
SELECT * FROM tab0 WHERE NULL = CAST ( + 61 AS INTEGER ) + - col1 * + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8683
SELECT col0 DIV 93 + - 94 + + + ( - 89 ) FROM tab2
----
-183
-183
-183

skipif mysql # not compatible
query I rowsort label-8683
SELECT col0 / 93 + - 94 + + + ( - 89 ) FROM tab2
----
-183
-183
-183

query III rowsort
SELECT * FROM tab1 WHERE 66 * + + col2 = - col0 + + col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8685
SELECT * FROM tab2 WHERE 71 NOT IN ( + col0, + 78, CAST( NULL AS DECIMAL ), + - 2 * - + 47 )
----

skipif mysql # not compatible
query III rowsort label-8685
SELECT * FROM tab2 WHERE 71 NOT IN ( + col0, + 78, CAST ( NULL AS REAL ), + - 2 * - + 47 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8686
SELECT DISTINCT - ( - COUNT( * ) ) * - COUNT( * ) + + + 54 FROM tab2 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-8686
SELECT DISTINCT - ( - COUNT ( * ) ) * - COUNT ( * ) + + + 54 FROM tab2 AS cor0
----
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - + col0 col2 FROM tab0 cor0
----
-705
-870
-9603

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT ( NULL NOT BETWEEN col0 AND NULL ) )
----

query I rowsort
SELECT - 67 AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-67
-67
-67

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 * - col0 NOT IN ( - ( col1 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8691
SELECT ( + - MIN( ALL col2 ) ) AS col2 FROM tab0 AS cor0 WHERE 41 - + col2 - + + 30 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8691
SELECT ( + - MIN ( ALL col2 ) ) AS col2 FROM tab0 AS cor0 WHERE 41 - + col2 - + + 30 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8692
SELECT + MIN( + - col0 ) FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-8692
SELECT + MIN ( + - col0 ) FROM tab0 AS cor0
----
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + 38 ) col2 FROM tab2 AS cor0
----
38
38
38

query I rowsort
SELECT DISTINCT 86 + + ( - col1 ) FROM tab2
----
19
35
9

query I rowsort
SELECT DISTINCT - col0 * - 2 FROM tab1 WHERE - col2 IS NOT NULL
----
102
170
182

query II rowsort
SELECT ALL 32 - col0 + - - col0 * col1 AS col0, col2 * - col2 FROM tab0
----
1232
-2209
1772
-100
32
-9801

query I rowsort
SELECT ALL + col0 - + + ( col0 ) AS col1 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8698
SELECT ALL CAST( NULL AS SIGNED ) * - + col0 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8698
SELECT ALL CAST ( NULL AS INTEGER ) * - + col0 AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8699
SELECT + + MAX( - 14 ) * + CAST( NULL AS SIGNED ) col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8699
SELECT + + MAX ( - 14 ) * + CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 41 col2 FROM tab2 AS cor0
----
41
41
41

query I rowsort
SELECT + 72 AS col0 FROM tab2 WHERE NOT NULL > + ( + + 37 ) * - 25
----

query I rowsort
SELECT DISTINCT - 37 * - + col2 FROM tab1
----
2183
2516
3552

onlyif mysql # aggregate syntax: 
query I rowsort label-8703
SELECT ALL - MIN( ALL - 21 ) col1 FROM tab2 AS cor0
----
21

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8703
SELECT ALL - MIN ( ALL - 21 ) col1 FROM tab2 AS cor0
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8704
SELECT - + CAST( ( - COUNT( * ) ) AS SIGNED ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8704
SELECT - + CAST ( ( - COUNT ( * ) ) AS INTEGER ) FROM tab1 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8705
SELECT ALL - col1 DIV - - col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8705
SELECT ALL - col1 / - - col0 FROM tab1 AS cor0
----
0
0
0

query II rowsort
SELECT ALL - col1, - col2 * col1 AS col2 FROM tab0 AS cor0
----
-1
-99
-21
-210
-81
-3807

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8707
SELECT + + CAST( 64 AS SIGNED ) * - col2 AS col2 FROM tab2 AS cor0
----
-1472
-2560
-3712

skipif mysql # not compatible
query I rowsort label-8707
SELECT + + CAST ( 64 AS INTEGER ) * - col2 AS col2 FROM tab2 AS cor0
----
-1472
-2560
-3712

query I rowsort
SELECT ALL 48 + - col0 FROM tab2 AS cor0
----
-16
-27
2

query I rowsort
SELECT DISTINCT - 72 * 23 AS col2 FROM tab2 AS cor0
----
-1656

onlyif mysql # aggregate syntax: 
query I rowsort label-8710
SELECT DISTINCT - 88 + MIN( ALL 22 ) FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-8710
SELECT DISTINCT - 88 + MIN ( ALL 22 ) FROM tab1
----
-66

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8711
SELECT + 3 * + COUNT( * ), AVG ( + CAST( NULL AS DECIMAL ) ) * + + 80 + AVG ( - + 47 ) col0 FROM tab0
----
9
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8711
SELECT + 3 * + COUNT ( * ), AVG ( + CAST ( NULL AS REAL ) ) * + + 80 + AVG ( - + 47 ) col0 FROM tab0
----
9
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + 77 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 14 * + 69 AS col1 FROM tab2
----
-966
-966
-966

onlyif mysql # aggregate syntax: 
query I rowsort label-8714
SELECT + 5 * + + COUNT( * ) * + + 67 + + COUNT( * ) - + 68 AS col2 FROM tab0 WHERE + 30 IS NULL
----
-68

skipif mysql # not compatible
query I rowsort label-8714
SELECT + 5 * + + COUNT ( * ) * + + 67 + + COUNT ( * ) - + 68 AS col2 FROM tab0 WHERE + 30 IS NULL
----
-68

query I rowsort
SELECT ALL col2 * - + 8 * ( col1 ) FROM tab2
----
-24640
-31088
-9384

query I rowsort
SELECT + col0 * + 49 + + col0 + + 91 + 39 * ( + col0 ) AS col1 FROM tab1
----
4630
7656
8190

query III rowsort
SELECT * FROM tab2 WHERE col2 / - 35 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col1 + + col2 - + 73 * - - 9 + 48 AS col0 FROM tab0
----
-481
-509
-578

query I rowsort
SELECT col2 AS col0 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
23
40
58

query II rowsort
SELECT + - col0 AS col2, + col1 * - 59 AS col2 FROM tab1 AS cor0
----
-51
-826
-85
-295
-91
-2773

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * col0 + - col0 col2 FROM tab0 AS cor0
----
210
7482
9312

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 18 < NULL
----

query I rowsort
SELECT ALL - col0 + + 85 + - 32 FROM tab2
----
-11
-22
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8724
SELECT MAX( ALL - 18 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-18

skipif mysql # not compatible
query I rowsort label-8724
SELECT MAX ( ALL - 18 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-8725
SELECT + MAX( + col2 ) - + - 30 * + COUNT( * ) AS col0 FROM tab1
----
186

skipif mysql # not compatible
query I rowsort label-8725
SELECT + MAX ( + col2 ) - + - 30 * + COUNT ( * ) AS col0 FROM tab1
----
186

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8726
SELECT col2 - + col2 AS col0, + 55 * - CAST( NULL AS SIGNED ) * col1 + - - col2 - - col0 * - col1 + - col1 / + 4 * + col1 + - 58 AS col0 FROM tab0
----
0
NULL
0
NULL
0
NULL

skipif mysql # not compatible
query II rowsort label-8726
SELECT col2 - + col2 AS col0, + 55 * - CAST ( NULL AS INTEGER ) * col1 + - - col2 - - col0 * - col1 + - col1 / + 4 * + col1 + - 58 AS col0 FROM tab0
----
0
NULL
0
NULL
0
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8727
SELECT ALL ( + 40 ) - COUNT( * ) * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8727
SELECT ALL ( + 40 ) - COUNT ( * ) * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT 73 + - - col1 AS col0 FROM tab1 AS cor0
----
120
78
87

query I rowsort
SELECT DISTINCT - 5 * - 77 FROM tab0
----
385

query I rowsort
SELECT ALL + ( - + col2 ) AS col2 FROM tab2
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-8731
SELECT - COUNT( * ) FROM tab0 WHERE NOT + col0 NOT BETWEEN - col0 - col1 AND ( + - 90 )
----
0

skipif mysql # not compatible
query I rowsort label-8731
SELECT - COUNT ( * ) FROM tab0 WHERE NOT + col0 NOT BETWEEN - col0 - col1 AND ( + - 90 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8732
SELECT DISTINCT + CAST( NULL AS SIGNED ) * 3 * - CAST( col0 AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8732
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * 3 * - CAST ( col0 AS INTEGER ) FROM tab0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 / + + 5 NOT BETWEEN + 86 + ( col2 ) AND - 42 - ( col2 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 44 * + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col1 * - 24 NOT IN ( 57 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8736
SELECT - COUNT( * ) - - COUNT( * ) col0 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8736
SELECT - COUNT ( * ) - - COUNT ( * ) col0 FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8737
SELECT + col2 * col1 - col0 DIV + ( col0 * col0 + + col0 ) AS col1 FROM tab2
----
1173
3080
3886

skipif mysql # not compatible
query I rowsort label-8737
SELECT + col2 * col1 - col0 / + ( col0 * col0 + + col0 ) AS col1 FROM tab2
----
1173
3080
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-8738
SELECT ALL - COUNT( * ) FROM tab0 WHERE NOT NULL <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-8738
SELECT ALL - COUNT ( * ) FROM tab0 WHERE NOT NULL <= NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8739
SELECT DISTINCT - col1 FROM tab1 WHERE - col2 / - ( CAST( NULL AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8739
SELECT DISTINCT - col1 FROM tab1 WHERE - col2 / - ( CAST ( NULL AS INTEGER ) ) IS NOT NULL
----

query I rowsort
SELECT + col1 * - 99 AS col0 FROM tab0
----
-2079
-8019
-99

query I rowsort
SELECT DISTINCT col0 FROM tab0 WHERE 63 IS NULL
----

query I rowsort
SELECT - col0 * ( 44 ) AS col2 FROM tab0
----
-3828
-4268
-660

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8743
SELECT + 97 * col0 + 84 * col0 FROM tab0 WHERE NOT col0 - CAST( NULL AS SIGNED ) NOT IN ( - col2 * + col1 )
----

skipif mysql # not compatible
query I rowsort label-8743
SELECT + 97 * col0 + 84 * col0 FROM tab0 WHERE NOT col0 - CAST ( NULL AS INTEGER ) NOT IN ( - col2 * + col1 )
----

query III rowsort
SELECT * FROM tab0 WHERE 46 IN ( - col2 + + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8745
SELECT + COUNT( * ) AS col2 FROM tab2 WHERE NOT NULL NOT IN ( col0 )
----
0

skipif mysql # not compatible
query I rowsort label-8745
SELECT + COUNT ( * ) AS col2 FROM tab2 WHERE NOT NULL NOT IN ( col0 )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + 38 col2 FROM tab1
----
106
134
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8747
SELECT COUNT( * ) FROM tab0 WHERE NOT - 35 BETWEEN 82 + col1 AND NULL
----
3

skipif mysql # not compatible
query I rowsort label-8747
SELECT COUNT ( * ) FROM tab0 WHERE NOT - 35 BETWEEN 82 + col1 AND NULL
----
3

query I rowsort
SELECT ALL - 28 - col1 FROM tab2 WHERE NOT ( 45 ) < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8749
SELECT COUNT( * ) + AVG ( CAST( NULL AS SIGNED ) ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8749
SELECT COUNT ( * ) + AVG ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8750
SELECT ALL - 67 * COUNT( * ) FROM tab2
----
-201

skipif mysql # not compatible
query I rowsort label-8750
SELECT ALL - 67 * COUNT ( * ) FROM tab2
----
-201

onlyif mysql # DIV for integer division: 
query I rowsort label-8751
SELECT - ( + col1 ) + + ( 74 + 85 DIV col1 ) AS col1 FROM tab0
----
-6
158
57

skipif mysql # not compatible
query I rowsort label-8751
SELECT - ( + col1 ) + + ( 74 + 85 / col1 ) AS col1 FROM tab0
----
-6
158
57

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8752
SELECT ALL * FROM tab2 WHERE NOT CAST( NULL AS SIGNED ) NOT IN ( - col0 )
----

skipif mysql # not compatible
query III rowsort label-8752
SELECT ALL * FROM tab2 WHERE NOT CAST ( NULL AS INTEGER ) NOT IN ( - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8753
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE - 42 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8753
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE - 42 IS NULL
----
0

query I rowsort
SELECT ( - 55 ) + col0 * + ( 17 + col0 * + 1 ) AS col2 FROM tab1 AS cor0
----
3413
8615
9773

query I rowsort
SELECT col0 + 71 FROM tab2 AS cor0
----
117
135
146

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + col0 + col0 / - col0 ) NOT IN ( 75 - - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col0 * - col0 FROM tab0 WHERE - 44 + 1 IS NULL
----

query I rowsort
SELECT ALL + 49 - col2 * - col0 AS col1 FROM tab1 AS cor0
----
4945
5064
6237

onlyif mysql # aggregate syntax: 
query I rowsort label-8759
SELECT DISTINCT COUNT( * ) * - ( 2 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL > NULL
----
0

skipif mysql # not compatible
query I rowsort label-8759
SELECT DISTINCT COUNT ( * ) * - ( 2 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL > NULL
----
0

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE col0 >= NULL
----

query I rowsort
SELECT - - col0 - + col0 * + col1 AS col2 FROM tab2 AS cor0
----
-2300
-4864
-4950

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 > ( 62 + - col1 )
----
15
81
47
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8763
SELECT 82 - MIN( ALL - 76 ) AS col0 FROM tab1 AS cor0
----
158

skipif mysql # not compatible
query I rowsort label-8763
SELECT 82 - MIN ( ALL - 76 ) AS col0 FROM tab1 AS cor0
----
158

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8764
SELECT + 8 - COUNT( * ) DIV + COUNT( * ) FROM tab2 cor0
----
7

skipif mysql # not compatible
query I rowsort label-8764
SELECT + 8 - COUNT ( * ) / + COUNT ( * ) FROM tab2 cor0
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-8765
SELECT + 12 DIV - col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8765
SELECT + 12 / - col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + 98 + + col2 FROM tab1 AS cor0 WHERE + col0 NOT BETWEEN 26 + - 40 / col1 AND NULL
----

query I rowsort
SELECT ALL - 45 * - col1 AS col0 FROM tab2
----
2295
3015
3465

query III rowsort
SELECT * FROM tab1 WHERE NOT ( 94 / 48 ) NOT BETWEEN col0 + 11 AND NULL
----

query I rowsort
SELECT + 12 - - col2 FROM tab1 WHERE NOT col2 + col2 IS NULL
----
108
71
80

query I rowsort
SELECT 88 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
88
88
88

onlyif mysql # aggregate syntax: 
query I rowsort label-8771
SELECT ALL COUNT( 23 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8771
SELECT ALL COUNT ( 23 ) AS col0 FROM tab1
----
3

query I rowsort
SELECT col1 * + ( 24 ) FROM tab2
----
1224
1608
1848

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + - 45 col0 FROM tab0
----
-3915
-4365
-675

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT BETWEEN ( - 34 ) AND + col0 * col1
----

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab1 AS cor0 WHERE - 66 * col2 <> NULL
----

query I rowsort
SELECT DISTINCT - col0 * ( col1 * - col2 ) FROM tab0 AS cor0 WHERE NOT - col2 NOT BETWEEN ( NULL ) AND ( NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - 35 / - col2 NOT BETWEEN NULL AND col0 + col2
----

query I rowsort
SELECT DISTINCT col2 * - + col0 * col0 FROM tab2
----
-163840
-326250
-48668

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8779
SELECT ALL - CAST( - 59 AS SIGNED ) FROM tab0
----
59
59
59

skipif mysql # not compatible
query I rowsort label-8779
SELECT ALL - CAST ( - 59 AS INTEGER ) FROM tab0
----
59
59
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 75 col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

query I rowsort
SELECT - col0 AS col2 FROM tab2 WHERE NOT ( NOT col2 * col0 + col2 <> NULL )
----

query I rowsort
SELECT DISTINCT + - ( - - col1 ) + + 54 * - 36 FROM tab0 AS cor0
----
-1945
-1965
-2025

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8783
SELECT - - 25 AS col0, - 51 + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
25
NULL
25
NULL
25
NULL

skipif mysql # not compatible
query II rowsort label-8783
SELECT - - 25 AS col0, - 51 + CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
25
NULL
25
NULL
25
NULL

query II rowsort
SELECT ALL col0 AS col1, col2 FROM tab1 cor0
----
51
96
85
59
91
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8785
SELECT ALL - - 81 * - MIN( - 60 ) + 38 + COUNT( * ) FROM tab0 AS cor0
----
4901

skipif mysql # not compatible
query I rowsort label-8785
SELECT ALL - - 81 * - MIN ( - 60 ) + 38 + COUNT ( * ) FROM tab0 AS cor0
----
4901

query I rowsort
SELECT ALL - col1 * 98 - col2 FROM tab0 cor0 WHERE NULL > ( + col2 )
----

query II rowsort
SELECT 31 AS col1, 96 FROM tab0 AS cor0
----
31
96
31
96
31
96

onlyif mysql # DIV for integer division: 
query II rowsort label-8788
SELECT col2, + ( col1 ) DIV 11 AS col1 FROM tab0 AS cor0
----
10
1
47
7
99
0

skipif mysql # not compatible
query II rowsort label-8788
SELECT col2, + ( col1 ) / 11 AS col1 FROM tab0 AS cor0
----
10
1
47
7
99
0

query I rowsort
SELECT DISTINCT col1 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN 49 AND ( + 55 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8790
SELECT DISTINCT + MIN( DISTINCT + 30 ) + - - 56 AS col2 FROM tab2 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-8790
SELECT DISTINCT + MIN ( DISTINCT + 30 ) + - - 56 AS col2 FROM tab2 AS cor0
----
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 * - 58 + - 43 col2 FROM tab2 AS cor0
----
2915
3843
4423

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8792
SELECT ALL + MIN( col1 ) FROM tab0 AS cor0 WHERE NOT NULL BETWEEN CAST( NULL AS SIGNED ) * col2 * 94 AND - 58 + + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8792
SELECT ALL + MIN ( col1 ) FROM tab0 AS cor0 WHERE NOT NULL BETWEEN CAST ( NULL AS INTEGER ) * col2 * 94 AND - 58 + + col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8793
SELECT COUNT( * ) * ( - COUNT( * ) ) + + 28 AS col2 FROM tab2 AS cor0 WHERE ( col0 ) IN ( col0 + - col2 )
----
28

skipif mysql # not compatible
query I rowsort label-8793
SELECT COUNT ( * ) * ( - COUNT ( * ) ) + + 28 AS col2 FROM tab2 AS cor0 WHERE ( col0 ) IN ( col0 + - col2 )
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8794
SELECT ALL + CAST( NULL AS SIGNED ) + - + col0 + col1 + col0 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8794
SELECT ALL + CAST ( NULL AS INTEGER ) + - + col0 + col1 + col0 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 FROM tab1 WHERE NULL IN ( - col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 23 > NULL
----

query I rowsort
SELECT DISTINCT + 43 + + col1 FROM tab0
----
124
44
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8798
SELECT CAST( NULL AS SIGNED ) + + 78 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8798
SELECT CAST ( NULL AS INTEGER ) + + 78 AS col0 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT ALL 97 + + col0, col1 FROM tab2
----
143
51
161
77
172
67

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col1 + + col1 <> NULL
----

query I rowsort
SELECT col0 FROM tab0 WHERE ( - - ( + col1 ) ) + col2 * + col0 IS NOT NULL
----
15
87
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8802
SELECT + ( - - CAST( + COUNT( * ) AS SIGNED ) ) DIV + 89 + + MIN( 11 ) FROM tab2
----
11

skipif mysql # not compatible
query I rowsort label-8802
SELECT + ( - - CAST ( + COUNT ( * ) AS INTEGER ) ) / + 89 + + MIN ( 11 ) FROM tab2
----
11

query I rowsort
SELECT ALL 69 * + 67 * + + col0 FROM tab2
----
212658
295872
346725

query I rowsort
SELECT DISTINCT 73 + - - col0 + + col0 + 48 * + col1 AS col1 FROM tab1 AS cor0
----
2511
483
847

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT ( NOT + col2 IS NULL ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8806
SELECT - - AVG ( - 63 ) * CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8806
SELECT - - AVG ( - 63 ) * CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8807
SELECT ALL + col0 DIV 43 * - col1 + + col2 * col2 + col2 FROM tab0 AS cor0
----
2256
68
9898

skipif mysql # not compatible
query I rowsort label-8807
SELECT ALL + col0 / 43 * - col1 + + col2 * col2 + col2 FROM tab0 AS cor0
----
2256
68
9898

onlyif mysql # aggregate syntax: 
query I rowsort label-8808
SELECT ALL + COUNT( * ) + - 40 FROM tab0
----
-37

skipif mysql # not compatible
query I rowsort label-8808
SELECT ALL + COUNT ( * ) + - 40 FROM tab0
----
-37

query I rowsort
SELECT DISTINCT 4 - - col2 FROM tab0
----
103
14
51

query I rowsort
SELECT col0 * 40 + + - 46 + - col2 FROM tab1
----
1898
3295
3526

onlyif mysql # aggregate syntax: 
query I rowsort label-8811
SELECT ALL - COUNT( * ) * + 14 AS col2 FROM tab0
----
-42

skipif mysql # not compatible
query I rowsort label-8811
SELECT ALL - COUNT ( * ) * + 14 AS col2 FROM tab0
----
-42

query II rowsort
SELECT DISTINCT + + col1, 31 - + 13 AS col0 FROM tab0 AS cor0
----
1
18
21
18
81
18

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8813
SELECT + - col1 * col2 + - CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8813
SELECT + - col1 * col2 + - CAST ( NULL AS REAL ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 33 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( - col1 + - col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( 20 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8816
SELECT COUNT( * ) * + 51 AS col1 FROM tab0
----
153

skipif mysql # not compatible
query I rowsort label-8816
SELECT COUNT ( * ) * + 51 AS col1 FROM tab0
----
153

query II rowsort
SELECT - 12 AS col2, - col2 * - 77 AS col0 FROM tab1
----
-12
4543
-12
5236
-12
7392

onlyif mysql # aggregate syntax: 
query II rowsort label-8818
SELECT 70 AS col2, + COUNT( - - col1 ) * - ( 97 ) AS col2 FROM tab1
----
70
-291

skipif mysql # not compatible
query II rowsort label-8818
SELECT 70 AS col2, + COUNT ( - - col1 ) * - ( 97 ) AS col2 FROM tab1
----
70
-291

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8819
SELECT ALL col0, CAST( NULL AS DECIMAL ) + col1 FROM tab0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-8819
SELECT ALL col0, CAST ( NULL AS REAL ) + col1 FROM tab0
----
15
NULL
87
NULL
97
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8820
SELECT DISTINCT - COUNT( * ) * - MAX( DISTINCT - 77 ) FROM tab1
----
-231

skipif mysql # not compatible
query I rowsort label-8820
SELECT DISTINCT - COUNT ( * ) * - MAX ( DISTINCT - 77 ) FROM tab1
----
-231

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 * - + 36 + 46 <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col0 > - col0 * + + col2 + - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 24 col2 FROM tab2 AS cor0
----
-24

query I rowsort
SELECT DISTINCT 36 + col1 FROM tab1
----
41
50
83

query I rowsort
SELECT DISTINCT + 88 + - col2 FROM tab2 WHERE NOT - - col2 * - + col0 IS NOT NULL
----

query I rowsort
SELECT ALL 6 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 72 + + + ( + 67 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8828
SELECT DISTINCT - 57 + ( CAST( NULL AS DECIMAL ) ) col0 FROM tab0 AS cor0 WHERE 5 IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8828
SELECT DISTINCT - 57 + ( CAST ( NULL AS REAL ) ) col0 FROM tab0 AS cor0 WHERE 5 IS NULL
----

query I rowsort
SELECT DISTINCT + col1 + + col0 - 44 AS col0 FROM tab2 AS cor0
----
53
97
98

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col2 * col1 / + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query II rowsort label-8831
SELECT + col0, + col1 DIV + col2 FROM tab2
----
46
2
64
1
75
1

skipif mysql # not compatible
query II rowsort label-8831
SELECT + col0, + col1 / + col2 FROM tab2
----
46
2
64
1
75
1

query III rowsort
SELECT * FROM tab1 WHERE ( - col2 ) > 40 * + col1 + - col1
----

query I rowsort
SELECT ALL ( - 67 ) * - + col2 AS col1 FROM tab0
----
3149
6633
670

onlyif mysql # aggregate syntax: 
query I rowsort label-8834
SELECT 46 * + + SUM( ALL - col1 ) * - + 56 col0 FROM tab1
----
170016

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8834
SELECT 46 * + + SUM ( ALL - col1 ) * - + 56 col0 FROM tab1
----
170016

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8835
SELECT ALL COUNT( * ) * + + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8835
SELECT ALL COUNT ( * ) * + + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1 FROM tab2
----
NULL

query II rowsort
SELECT + col2, col1 AS col2 FROM tab0 WHERE NULL = ( NULL )
----

query I rowsort
SELECT ALL col1 - - col2 AS col2 FROM tab2
----
117
125
74

onlyif mysql # aggregate syntax: 
query I rowsort label-8838
SELECT ALL - COUNT( * ) * - COUNT( * ) AS col0 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-8838
SELECT ALL - COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab1
----
9

query II rowsort
SELECT - + col0 + ( - 82 ), col0 + - col2 * 92 + + col0 AS col0 FROM tab1 AS cor0
----
-133
-8730
-167
-5258
-173
-6074

onlyif mysql # DIV for integer division: 
query I rowsort label-8840
SELECT DISTINCT - 25 DIV 51 * 17 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-8840
SELECT DISTINCT - 25 / 51 * 17 FROM tab1 cor0
----
0

query I rowsort
SELECT + + col2 AS col2 FROM tab1 cor0 WHERE - 87 * + + col1 IS NOT NULL
----
59
68
96

query I rowsort
SELECT ALL - - 67 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

query I rowsort
SELECT DISTINCT - 98 - col1 FROM tab1
----
-103
-112
-145

query I rowsort
SELECT DISTINCT - col2 + + + 47 FROM tab2
----
-11
24
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8845
SELECT ALL - COUNT( * ) * 29 FROM tab0
----
-87

skipif mysql # not compatible
query I rowsort label-8845
SELECT ALL - COUNT ( * ) * 29 FROM tab0
----
-87

query I rowsort
SELECT - - ( + 90 ) - 23 AS col1 FROM tab2 AS cor0 WHERE - 63 / - col0 >= NULL OR NOT ( NULL <> - col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - ( - + 0 ) IN ( + - col1 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8848
SELECT ALL + col0 DIV - 43 col1, + col1 AS col0 FROM tab0 AS cor0
----
-2
1
-2
21
0
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8848
SELECT ALL + col0 / - 43 col1, + col1 AS col0 FROM tab0 AS cor0
----
-2
1
-2
21
0
81

query I rowsort
SELECT + col2 * + - col1 + - 16 FROM tab2 AS cor0
----
-1189
-3096
-3902

query II rowsort
SELECT - + 26 + - - col2 AS col0, 29 - + + col1 AS col0 FROM tab2 WHERE NOT NULL BETWEEN + - col2 AND + 42
----

query I rowsort
SELECT + col2 + + + col0 AS col0 FROM tab2 WHERE NOT + + col1 <> - - col2 + + - col1
----

query I rowsort
SELECT col1 AS col1 FROM tab1 WHERE NOT NULL BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE - col1 NOT BETWEEN col2 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-8854
SELECT - col0 + 27 DIV + col1 - + col1 + - col2 col0 FROM tab0 AS cor0
----
-117
-143
-170

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8854
SELECT - col0 + 27 / + col1 - + col1 + - col2 col0 FROM tab0 AS cor0
----
-117
-143
-170

query I rowsort
SELECT - col0 AS col1 FROM tab1 AS cor0 WHERE NOT - ( col0 ) IS NOT NULL
----

query I rowsort
SELECT ALL + - ( - 53 ) FROM tab2 AS cor0
----
53
53
53

query I rowsort
SELECT DISTINCT + col0 * - 11 FROM tab2 AS cor0
----
-506
-704
-825

query I rowsort
SELECT ALL col2 + + 18 FROM tab2
----
41
58
76

query II rowsort
SELECT ALL 77 AS col0, - 56 + + 23 FROM tab1
----
77
-33
77
-33
77
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-8860
SELECT - 12 AS col1, SUM( ALL - col1 ) FROM tab1 cor0
----
-12
-66

skipif mysql # not compatible
query II rowsort label-8860
SELECT - 12 AS col1, SUM ( ALL - col1 ) FROM tab1 cor0
----
-12
-66

query II rowsort
SELECT - 47 AS col2, 78 FROM tab1 AS cor0
----
-47
78
-47
78
-47
78

query I rowsort
SELECT col1 * + col1 + + col0 AS col1 FROM tab2 AS cor0
----
2647
4564
5993

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + 90 col0 FROM tab1 AS cor0
----
104
137
95

onlyif mysql # DIV for integer division: 
query I rowsort label-8864
SELECT DISTINCT col2 + + 49 + - + col1 DIV + col2 AS col2 FROM tab0 cor0
----
148
57
95

skipif mysql # not compatible
query I rowsort label-8864
SELECT DISTINCT col2 + + 49 + - + col1 / + col2 AS col2 FROM tab0 cor0
----
148
57
95

query II rowsort
SELECT ALL - col1, ( + col0 ) + + + col1 AS col0 FROM tab1 cor0
----
-14
65
-47
138
-5
90

query I rowsort
SELECT DISTINCT + col2 + + col0 + - - col0 * - + col2 FROM tab2 AS cor0
----
-2456
-4217
-989

query I rowsort
SELECT DISTINCT col1 * - ( - + col0 ) * + col0 + col2 * + 19 + + col2 - - + col2 FROM tab0
----
11488
159159
19212

query I rowsort
SELECT col2 + - ( + col0 ) AS col1 FROM tab1
----
-23
-26
45

query I rowsort
SELECT ALL col0 - + ( + 57 ) AS col1 FROM tab0
----
-42
30
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8870
SELECT SUM( DISTINCT - 85 ) AS col2 FROM tab0
----
-85

skipif mysql # not compatible
query I rowsort label-8870
SELECT SUM ( DISTINCT - 85 ) AS col2 FROM tab0
----
-85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 38 - + col2 col0 FROM tab0 AS cor0
----
-61
-9
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8872
SELECT ALL - CAST( + col0 AS SIGNED ) + + - col0 + 34 AS col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - ( + col1 ) AND col2
----

skipif mysql # not compatible
query I rowsort label-8872
SELECT ALL - CAST ( + col0 AS INTEGER ) + + - col0 + 34 AS col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - ( + col1 ) AND col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - + col2 > + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-8874
SELECT ALL - col2 DIV 75 AS col2 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8874
SELECT ALL - col2 / 75 AS col2 FROM tab0 AS cor0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8875
SELECT DISTINCT + - MAX( - col2 ) FROM tab0 AS cor0 WHERE ( NOT + 45 IS NOT NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8875
SELECT DISTINCT + - MAX ( - col2 ) FROM tab0 AS cor0 WHERE ( NOT + 45 IS NOT NULL )
----
NULL

query I rowsort
SELECT DISTINCT col1 FROM tab1 AS cor0 WHERE NOT ( - col0 + col2 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8877
SELECT DISTINCT + 63 * - ( CAST( NULL AS SIGNED ) ) AS col0, - col2 AS col0 FROM tab2 AS cor0
----
NULL
-23
NULL
-40
NULL
-58

skipif mysql # not compatible
query II rowsort label-8877
SELECT DISTINCT + 63 * - ( CAST ( NULL AS INTEGER ) ) AS col0, - col2 AS col0 FROM tab2 AS cor0
----
NULL
-23
NULL
-40
NULL
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 81 AS col0, col0 col0 FROM tab1 AS cor0
----
-81
51
-81
85
-81
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col2 FROM tab0 cor0 WHERE NOT col1 + + col2 + ( + col0 ) IS NULL
----
10
47
99

query I rowsort
SELECT ALL col1 * - + ( col2 ) AS col2 FROM tab2 AS cor0
----
-1173
-3080
-3886

query I rowsort
SELECT ALL + + col0 * + + col0 FROM tab2 AS cor0
----
2116
4096
5625

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + + col1 < + - 69 + - col1 * - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 9 * + col2 col0, ( - col1 ) col1 FROM tab0
----
423
-81
891
-1
90
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8884
SELECT ALL CAST( COUNT( DISTINCT + + col0 ) AS SIGNED ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8884
SELECT ALL CAST ( COUNT ( DISTINCT + + col0 ) AS INTEGER ) AS col0 FROM tab2
----
3

query I rowsort
SELECT ALL col2 * ( - col0 ) * + + ( - col2 ) * col1 + 97 AS col1 FROM tab0
----
182797
2684032
950794

onlyif mysql # aggregate syntax: 
query I rowsort label-8886
SELECT + 78 * + MAX( ALL - col1 ) FROM tab0
----
-78

skipif mysql # not compatible
query I rowsort label-8886
SELECT + 78 * + MAX ( ALL - col1 ) FROM tab0
----
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-8887
SELECT - col2 DIV - - col0 AS col1 FROM tab0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-8887
SELECT - col2 / - - col0 AS col1 FROM tab0
----
-1
-3
0

query I rowsort
SELECT + - col0 - col1 + 34 / + 25 * - col0 * + col0 / - col2 + - col0 AS col2 FROM tab1 WHERE NOT - - col2 * + col0 + + 58 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8889
SELECT DISTINCT ( 51 ) AS col0, 52 DIV - col2 FROM tab1
----
51
0

skipif mysql # not compatible
query II rowsort label-8889
SELECT DISTINCT ( 51 ) AS col0, 52 / - col2 FROM tab1
----
51
0

query I rowsort
SELECT ALL 23 * + + col2 FROM tab1 WHERE - 8 + - col2 + + - col2 + - + col1 BETWEEN + 63 * - - 47 AND + 71
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8891
SELECT MIN( DISTINCT - col0 ) FROM tab2 cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8891
SELECT MIN ( DISTINCT - col0 ) FROM tab2 cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8892
SELECT DISTINCT + CAST( - + MAX( - - CAST( 93 AS SIGNED ) ) AS SIGNED ) + 76 AS col2 FROM tab0 AS cor0 WHERE 88 IS NOT NULL
----
-17

skipif mysql # not compatible
query I rowsort label-8892
SELECT DISTINCT + CAST ( - + MAX ( - - CAST ( 93 AS INTEGER ) ) AS INTEGER ) + 76 AS col2 FROM tab0 AS cor0 WHERE 88 IS NOT NULL
----
-17

query I rowsort
SELECT ALL + 40 * - - 54 AS col1 FROM tab0 AS cor0
----
2160
2160
2160

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 68 col1 FROM tab2
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8895
SELECT - 69 + COUNT( * ) + + - 75 AS col0 FROM tab2
----
-141

skipif mysql # not compatible
query I rowsort label-8895
SELECT - 69 + COUNT ( * ) + + - 75 AS col0 FROM tab2
----
-141

query I rowsort
SELECT + - col1 AS col2 FROM tab0 AS cor0 WHERE - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8897
SELECT ALL + COUNT( - 28 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8897
SELECT ALL + COUNT ( - 28 ) FROM tab1 AS cor0
----
3

query II rowsort
SELECT col1 * - col2 AS col2, col0 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-210
87
-3807
15
-99
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8899
SELECT ALL + + CAST( - COUNT( + col2 ) AS SIGNED ) + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-8899
SELECT ALL + + CAST ( - COUNT ( + col2 ) AS INTEGER ) + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-8900
SELECT MAX( - 53 ) AS col1 FROM tab1 AS cor0
----
-53

skipif mysql # not compatible
query I rowsort label-8900
SELECT MAX ( - 53 ) AS col1 FROM tab1 AS cor0
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-8901
SELECT DISTINCT 1 - - MAX( + + col2 ) AS col0 FROM tab0
----
100

skipif mysql # not compatible
query I rowsort label-8901
SELECT DISTINCT 1 - - MAX ( + + col2 ) AS col0 FROM tab0
----
100

query I rowsort
SELECT ALL 15 - - - col1 * - + col2 + col2 FROM tab2
----
1211
3135
3959

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8903
SELECT 5 - COUNT( * ) DIV - COUNT( - col1 ), + COUNT( ALL + - ( - - col0 ) ) * + - 49 AS col1 FROM tab2
----
6
-147

skipif mysql # not compatible
query II rowsort label-8903
SELECT 5 - COUNT ( * ) / - COUNT ( - col1 ), + COUNT ( ALL + - ( - - col0 ) ) * + - 49 AS col1 FROM tab2
----
6
-147

query I rowsort
SELECT DISTINCT + 82 + - 45 * - + 70 FROM tab0
----
3232

query I rowsort
SELECT ( - col0 ) - 49 + + - 17 - + col0 + ( - 35 ) FROM tab0
----
-131
-275
-295

onlyif mysql # aggregate syntax: 
query I rowsort label-8906
SELECT + ( + - COUNT( * ) ) FROM tab1 WHERE 88 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8906
SELECT + ( + - COUNT ( * ) ) FROM tab1 WHERE 88 IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8907
SELECT ALL + - COUNT( * ) FROM tab0 AS cor0 WHERE ( NULL ) >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-8907
SELECT ALL + - COUNT ( * ) FROM tab0 AS cor0 WHERE ( NULL ) >= NULL
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-8908
SELECT DISTINCT - + col0, col1 DIV - + 7 AS col0 FROM tab2 AS cor0
----
-46
-7
-64
-11
-75
-9

skipif mysql # not compatible
query II rowsort label-8908
SELECT DISTINCT - + col0, col1 / - + 7 AS col0 FROM tab2 AS cor0
----
-46
-7
-64
-11
-75
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-8909
SELECT COUNT( * ) AS col1, 3 FROM tab1 cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-8909
SELECT COUNT ( * ) AS col1, 3 FROM tab1 cor0
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8910
SELECT DISTINCT - - MAX( + col1 ) AS col1 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-8910
SELECT DISTINCT - - MAX ( + col1 ) AS col1 FROM tab1 AS cor0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8911
SELECT ALL - COUNT( col2 ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8911
SELECT ALL - COUNT ( col2 ) AS col2 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8912
SELECT DISTINCT + COUNT( * ) * + 42 AS col1 FROM tab2 AS cor0
----
126

skipif mysql # not compatible
query I rowsort label-8912
SELECT DISTINCT + COUNT ( * ) * + 42 AS col1 FROM tab2 AS cor0
----
126

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 59 + - col0 <> - - col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8914
SELECT ALL COUNT( * ) * 57 AS col0, - 52 * + - 64 FROM tab1 AS cor0
----
171
3328

skipif mysql # not compatible
query II rowsort label-8914
SELECT ALL COUNT ( * ) * 57 AS col0, - 52 * + - 64 FROM tab1 AS cor0
----
171
3328

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8915
SELECT * FROM tab2 WHERE NOT ( NULL BETWEEN NULL AND CAST( NULL AS DECIMAL ) + - 96 )
----

skipif mysql # not compatible
query III rowsort label-8915
SELECT * FROM tab2 WHERE NOT ( NULL BETWEEN NULL AND CAST ( NULL AS REAL ) + - 96 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8916
SELECT ALL + COUNT( * ) * 20 col1 FROM tab2
----
60

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8916
SELECT ALL + COUNT ( * ) * 20 col1 FROM tab2
----
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 27 * - col0 + 52 * + - col0 col2 FROM tab0
----
-1185
-6873
-7663

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 col2, - 98 AS col2 FROM tab0
----
15
-98
87
-98
97
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - 80 * + - col2 col0 FROM tab1
----
4725
5487
7694

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT IN ( + col2 + - - col1 * - col0 )
----

query I rowsort
SELECT col2 AS col0 FROM tab2 WHERE NOT ( NULL IS NULL )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8922
SELECT + CAST( NULL AS DECIMAL ) + - 85 + - + col2 * + col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8922
SELECT + CAST ( NULL AS REAL ) + - 85 + - + col2 * + col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 + - + 33 AS col0 FROM tab1 WHERE + + 71 + + - 90 + + - 54 * - - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8924
SELECT DISTINCT - SUM( + 19 ) FROM tab2 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-8924
SELECT DISTINCT - SUM ( + 19 ) FROM tab2 AS cor0
----
-57

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col1 IN ( + - col1, col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL = 50
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8927
SELECT ALL + MAX( DISTINCT 82 ) AS col2 FROM tab0 AS cor0
----
82

skipif mysql # not compatible
query I rowsort label-8927
SELECT ALL + MAX ( DISTINCT 82 ) AS col2 FROM tab0 AS cor0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-8928
SELECT DISTINCT - MIN( ALL + col1 ) * - 66 + + 6 + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
3369

skipif mysql # not compatible
query I rowsort label-8928
SELECT DISTINCT - MIN ( ALL + col1 ) * - 66 + + 6 + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
3369

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 <> - + col2 / col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8930
SELECT ALL - col2 - 7 + - + 19 * + + col0 + + CAST( - - col0 AS SIGNED ) AS col1 FROM tab1
----
-1021
-1596
-1713

skipif mysql # not compatible
query I rowsort label-8930
SELECT ALL - col2 - 7 + - + 19 * + + col0 + + CAST ( - - col0 AS INTEGER ) AS col1 FROM tab1
----
-1021
-1596
-1713

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 67 + - col2 * - 7 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + - 67 + - col1 * - - 74 FROM tab0 AS cor0
----
-141
-1621
-6061

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 18 + col1 AS col0, - col1 col2 FROM tab0 AS cor0
----
19
-1
39
-21
99
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - col1 + + col1 - - - col0 * + col1 + - 66 col2 FROM tab2 AS cor0
----
-15
1
11

onlyif mysql # aggregate syntax: 
query I rowsort label-8935
SELECT - 67 + + COUNT( * ) col0 FROM tab0
----
-64

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8935
SELECT - 67 + + COUNT ( * ) col0 FROM tab0
----
-64

query I rowsort
SELECT DISTINCT + - 47 AS col2 FROM tab2 WHERE NOT - - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8937
SELECT DISTINCT COUNT( * ) - - - COUNT( * ) + + + SUM( - col2 ) DIV + COUNT( * ) FROM tab0
----
-52

skipif mysql # not compatible
query I rowsort label-8937
SELECT DISTINCT COUNT ( * ) - - - COUNT ( * ) + + + SUM ( - col2 ) / + COUNT ( * ) FROM tab0
----
-52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8938
SELECT ALL COUNT( * ) DIV 31 * + 4 - + + 85 FROM tab2
----
-85

skipif mysql # not compatible
query I rowsort label-8938
SELECT ALL COUNT ( * ) / 31 * + 4 - + + 85 FROM tab2
----
-85

query III rowsort
SELECT * FROM tab2 WHERE NOT - ( ( + - 33 ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8940
SELECT ALL + MAX( DISTINCT + 16 ) FROM tab1
----
16

skipif mysql # not compatible
query I rowsort label-8940
SELECT ALL + MAX ( DISTINCT + 16 ) FROM tab1
----
16

query I rowsort
SELECT DISTINCT 22 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
22

query I rowsort
SELECT ALL + 25 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

onlyif mysql # aggregate syntax: 
query I rowsort label-8943
SELECT + COUNT( DISTINCT + - col1 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8943
SELECT + COUNT ( DISTINCT + - col1 ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8944
SELECT ( MAX( col2 ) ) FROM tab2 cor0 WHERE NOT + col0 - - col2 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8944
SELECT ( MAX ( col2 ) ) FROM tab2 cor0 WHERE NOT + col0 - - col2 = NULL
----
NULL

query I rowsort
SELECT + - 82 * - ( - 92 ) FROM tab1 cor0 WHERE NOT ( - 25 ) >= col0 + + col0
----
-7544
-7544
-7544

query II rowsort
SELECT ALL + ( - 64 ) AS col2, + 54 FROM tab2 AS cor0 WHERE + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8947
SELECT CAST( - ( 55 ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-55
-55
-55

skipif mysql # not compatible
query I rowsort label-8947
SELECT CAST ( - ( 55 ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-55
-55
-55

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col0 < 81 * 38
----

query I rowsort
SELECT 58 * - col2 FROM tab0
----
-2726
-5742
-580

query I rowsort
SELECT col1 * - - 31 FROM tab1 WHERE NOT ( - col0 ) NOT IN ( + - col0 * col0 - + col2, 4, - col0 )
----
1457
155
434

query I rowsort
SELECT ( + col2 ) * - + col0 AS col0 FROM tab0
----
-705
-870
-9603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col2 ) col2 FROM tab2 WHERE NOT - 83 + + col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8953
SELECT col1 * + - col0 AS col1, col2 DIV col0 + - col2 AS col1 FROM tab1
----
-425
-59
-4277
-68
-714
-95

skipif mysql # not compatible
query II rowsort label-8953
SELECT col1 * + - col0 AS col1, col2 / col0 + - col2 AS col1 FROM tab1
----
-425
-59
-4277
-68
-714
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-8954
SELECT ALL + + ( + ( - 21 ) ) * 99 + COUNT( * ) FROM tab1 WHERE NOT NULL < NULL
----
-2079

skipif mysql # not compatible
query I rowsort label-8954
SELECT ALL + + ( + ( - 21 ) ) * 99 + COUNT ( * ) FROM tab1 WHERE NOT NULL < NULL
----
-2079

query I rowsort
SELECT 99 * 66 FROM tab0
----
6534
6534
6534

query II rowsort
SELECT - col2 + + col1 AS col0, 50 * 97 FROM tab2 AS cor0
----
28
4850
37
4850
9
4850

query I rowsort
SELECT DISTINCT + - col2 + + col0 + - col1 + - - col1 * + 49 + + col1 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8958
SELECT DISTINCT col0 * - CAST( NULL AS SIGNED ) * - - col1 col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8958
SELECT DISTINCT col0 * - CAST ( NULL AS INTEGER ) * - - col1 col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL - + ( + - col0 ) FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT + 5 FROM tab0 AS cor0 WHERE - 10 < + + col2 + - col2 + + - col0 * - col2 + - + ( col1 ) - + col0
----
5
5
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 * col1 * ( + 33 ) * - 84 + - + col0 col2 FROM tab2 AS cor0
----
-10772067
-3251602
-8537824

onlyif mysql # DIV for integer division: 
query I rowsort label-8962
SELECT ALL + - 73 + + + 82 + - ( - ( + col2 ) ) * col2 DIV + 52 FROM tab1 AS cor0
----
186
75
97

skipif mysql # not compatible
query I rowsort label-8962
SELECT ALL + - 73 + + + 82 + - ( - ( + col2 ) ) * col2 / + 52 FROM tab1 AS cor0
----
186
75
97

query I rowsort
SELECT + - col2 - + 35 * - col2 * - col0 FROM tab0 AS cor0
----
-24722
-30460
-336204

onlyif mysql # DIV for integer division: 
query I rowsort label-8964
SELECT ALL 86 DIV + col0 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-8964
SELECT ALL 86 / + col0 FROM tab1 AS cor0
----
0
1
1

query I rowsort
SELECT ALL - col0 + - 0 FROM tab0 AS cor0
----
-15
-87
-97

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN 50 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 93 col0 FROM tab1
----
93
93
93

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 BETWEEN NULL AND + col0 + + - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col0 AS col0 FROM tab0 WHERE NULL IN ( + col0 * - - col0, col0 )
----

query I rowsort
SELECT ( - col0 ) * - 46 FROM tab2 AS cor0 WHERE NOT - col2 * col0 NOT BETWEEN NULL AND col0 + - col0 + - - ( + col0 )
----

query I rowsort
SELECT + + 89 AS col0 FROM tab2 AS cor0
----
89
89
89

onlyif mysql # DIV for integer division: 
query I rowsort label-8972
SELECT 11 DIV - - col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8972
SELECT 11 / - - col0 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE - 40 IN ( 42 )
----

query I rowsort
SELECT ALL - col0 AS col0 FROM tab1 cor0 WHERE col0 / - 61 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + 75 ) col1 FROM tab2 AS cor0
----
75
75
75

query I rowsort
SELECT - - ( + - col2 ) AS col2 FROM tab2 AS cor0
----
-23
-40
-58

query II rowsort
SELECT ALL ( - 74 ) AS col2, - col0 AS col2 FROM tab2 AS cor0 WHERE NULL NOT IN ( + col2 * col2 )
----

query I rowsort
SELECT - col0 * + col2 + - + col0 AS col0 FROM tab1 WHERE - col0 IS NULL
----

query I rowsort
SELECT DISTINCT + 11 + - col2 FROM tab2
----
-12
-29
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8980
SELECT ALL - col0 AS col1 FROM tab1 WHERE NOT NULL <> col0 * - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-8980
SELECT ALL - col0 AS col1 FROM tab1 WHERE NOT NULL <> col0 * - CAST ( NULL AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8981
SELECT - col2 + - 39 DIV + 48 FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-8981
SELECT - col2 + - 39 / + 48 FROM tab0
----
-10
-47
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 57 col2, col2 AS col0 FROM tab2
----
-57
23
-57
40
-57
58

query II rowsort
SELECT col2 AS col1, col0 + + col2 + + col0 * + - col0 AS col2 FROM tab1 AS cor0
----
59
-7081
68
-8122
96
-2454

query I rowsort
SELECT - 48 * + 1 AS col0 FROM tab2 AS cor0
----
-48
-48
-48

query I rowsort
SELECT - col0 - - col1 AS col1 FROM tab0
----
-66
-96
66

onlyif mysql # DIV for integer division: 
query I rowsort label-8986
SELECT ALL col1 DIV + 47 - + col1 * - col0 * + + col1 + - + col1 * + col1 AS col0 FROM tab0
----
37926
91855
96

skipif mysql # not compatible
query I rowsort label-8986
SELECT ALL col1 / + 47 - + col1 * - col0 * + + col1 + - + col1 * + col1 AS col0 FROM tab0
----
37926
91855
96

query I rowsort
SELECT ( + 46 ) FROM tab2 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39

query I rowsort
SELECT 78 AS col2 FROM tab1, tab0 cor0
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

query I rowsort
SELECT - - ( + 70 ) + 53 - col2 FROM tab1 AS cor0
----
27
55
64

onlyif mysql # DIV for integer division: 
query I rowsort label-8990
SELECT + col2 + + col2 DIV col0 FROM tab0 AS cor0
----
10
100
50

skipif mysql # not compatible
query I rowsort label-8990
SELECT + col2 + + col2 / col0 FROM tab0 AS cor0
----
10
100
50

onlyif mysql # DIV for integer division: 
query I rowsort label-8991
SELECT DISTINCT col1 DIV + 69 AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8991
SELECT DISTINCT col1 / + 69 AS col0 FROM tab1 AS cor0
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 5 NOT IN ( + 60, col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 15 * col2 * + col2 AS col2 FROM tab1 cor0 WHERE NULL IS NULL
----
138240
52215
69360

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( + - col2 )
----

query II rowsort
SELECT - + col2 * - col1, - col1 AS col0 FROM tab2 AS cor0
----
1173
-51
3080
-77
3886
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-8996
SELECT ALL - col1 DIV col1 * - 10 FROM tab0 AS cor0
----
10
10
10

skipif mysql # not compatible
query I rowsort label-8996
SELECT ALL - col1 / col1 * - 10 FROM tab0 AS cor0
----
10
10
10

query I rowsort
SELECT DISTINCT - 36 AS col0 FROM tab2 cor0
----
-36

query I rowsort
SELECT DISTINCT - col0 + 67 FROM tab1 AS cor0 WHERE col2 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN + - col1 AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9000
SELECT DISTINCT + MIN( 88 ) FROM tab0
----
88

skipif mysql # not compatible
query I rowsort label-9000
SELECT DISTINCT + MIN ( 88 ) FROM tab0
----
88

query I rowsort
SELECT ALL col2 * 85 FROM tab1
----
5015
5780
8160

onlyif mysql # DIV for integer division: 
query II rowsort label-9002
SELECT DISTINCT - col2 * + + col1 DIV - col1, - col1 AS col1 FROM tab1
----
59
-5
68
-47
96
-14

skipif mysql # not compatible
query II rowsort label-9002
SELECT DISTINCT - col2 * + + col1 / - col1, - col1 AS col1 FROM tab1
----
59
-5
68
-47
96
-14

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9003
SELECT col2, + CAST( - + col1 AS SIGNED ) FROM tab2
----
23
-51
40
-77
58
-67

skipif mysql # not compatible
query II rowsort label-9003
SELECT col2, + CAST ( - + col1 AS INTEGER ) FROM tab2
----
23
-51
40
-77
58
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-9004
SELECT ALL - COUNT( * ) * - + 20 AS col1 FROM tab1
----
60

skipif mysql # not compatible
query I rowsort label-9004
SELECT ALL - COUNT ( * ) * - + 20 AS col1 FROM tab1
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9005
SELECT col2 * + CAST( - + col1 AS SIGNED ) AS col0, col1 AS col0 FROM tab1
----
-1344
14
-295
5
-3196
47

skipif mysql # not compatible
query II rowsort label-9005
SELECT col2 * + CAST ( - + col1 AS INTEGER ) AS col0, col1 AS col0 FROM tab1
----
-1344
14
-295
5
-3196
47

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9006
SELECT DISTINCT - 9 AS col2, + 5 * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
-9
NULL

skipif mysql # not compatible
query II rowsort label-9006
SELECT DISTINCT - 9 AS col2, + 5 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
-9
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 BETWEEN + - col2 AND + col1
----

query I rowsort
SELECT ALL - 0 * + - col2 AS col1 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9009
SELECT ALL + COUNT( * ) - COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-9009
SELECT ALL + COUNT ( * ) - COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 59 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 60 + - 31 * - col1 FROM tab2 AS cor0
----
1521
2017
2327

onlyif mysql # aggregate syntax: 
query I rowsort label-9012
SELECT ALL + COUNT( * ) + + - 57 FROM tab1 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-9012
SELECT ALL + COUNT ( * ) + + - 57 FROM tab1 AS cor0
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9013
SELECT ALL - col2 + + + 27 + CAST( - - 24 AS SIGNED ) + + col0 FROM tab2 AS cor0
----
68
74
75

skipif mysql # not compatible
query I rowsort label-9013
SELECT ALL - col2 + + + 27 + CAST ( - - 24 AS INTEGER ) + + col0 FROM tab2 AS cor0
----
68
74
75

query III rowsort
SELECT * FROM tab1 cor0 WHERE + col2 < + 86
----
85
5
59
91
47
68

onlyif mysql # aggregate syntax: 
query I rowsort label-9015
SELECT - COUNT( * ) * 91 AS col2 FROM tab0
----
-273

skipif mysql # not compatible
query I rowsort label-9015
SELECT - COUNT ( * ) * 91 AS col2 FROM tab0
----
-273

onlyif mysql # aggregate syntax: 
query I rowsort label-9016
SELECT + SUM( DISTINCT 15 ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-9016
SELECT + SUM ( DISTINCT 15 ) FROM tab0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-9017
SELECT - 24 * COUNT( * ) AS col0 FROM tab1
----
-72

skipif mysql # not compatible
query I rowsort label-9017
SELECT - 24 * COUNT ( * ) AS col0 FROM tab1
----
-72

query I rowsort
SELECT + + col0 + - + col1 AS col0 FROM tab1 AS cor0
----
37
44
80

query I rowsort
SELECT DISTINCT - col1 + - col1 + + 61 FROM tab2 AS cor0
----
-41
-73
-93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9020
SELECT + COUNT( * ) + COUNT( * ) DIV - 89 AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9020
SELECT + COUNT ( * ) + COUNT ( * ) / - 89 AS col2 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9021
SELECT ALL - - 6 * - COUNT( * ) AS col1 FROM tab0 cor0
----
-18

skipif mysql # not compatible
query I rowsort label-9021
SELECT ALL - - 6 * - COUNT ( * ) AS col1 FROM tab0 cor0
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-9022
SELECT ALL COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9022
SELECT ALL COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9023
SELECT DISTINCT - MAX( ALL + + col0 ) col1 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9023
SELECT DISTINCT - MAX ( ALL + + col0 ) col1 FROM tab2 AS cor0
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9024
SELECT - 54 AS col2 FROM tab1 AS cor0 WHERE NOT CAST( - 67 AS SIGNED ) IS NULL
----
-54
-54
-54

skipif mysql # not compatible
query I rowsort label-9024
SELECT - 54 AS col2 FROM tab1 AS cor0 WHERE NOT CAST ( - 67 AS INTEGER ) IS NULL
----
-54
-54
-54

query I rowsort
SELECT ALL 61 * 20 AS col2 FROM tab0 AS cor0
----
1220
1220
1220

onlyif mysql # aggregate syntax: 
query I rowsort label-9026
SELECT ALL - SUM( ALL col0 ) FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-9026
SELECT ALL - SUM ( ALL col0 ) FROM tab2 AS cor0
----
-185

onlyif mysql # aggregate syntax: 
query II rowsort label-9027
SELECT COUNT( * ) AS col0, MIN( DISTINCT + + col0 ) FROM tab2 AS cor0
----
3
46

skipif mysql # not compatible
query II rowsort label-9027
SELECT COUNT ( * ) AS col0, MIN ( DISTINCT + + col0 ) FROM tab2 AS cor0
----
3
46

onlyif mysql # aggregate syntax: 
query I rowsort label-9028
SELECT DISTINCT - 17 * 11 + + COUNT( * ) FROM tab0 AS cor0
----
-184

skipif mysql # not compatible
query I rowsort label-9028
SELECT DISTINCT - 17 * 11 + + COUNT ( * ) FROM tab0 AS cor0
----
-184

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9029
SELECT ALL + ( - CAST( NULL AS SIGNED ) ) * - col2 + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9029
SELECT ALL + ( - CAST ( NULL AS INTEGER ) ) * - col2 + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * - 99 FROM tab0 AS cor0
----
-2079
-8019
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9031
SELECT ALL - 68 * - COUNT( * ) col0 FROM tab2
----
204

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9031
SELECT ALL - 68 * - COUNT ( * ) col0 FROM tab2
----
204

onlyif mysql # DIV for integer division: 
query I rowsort label-9032
SELECT ALL - 63 DIV + - 53 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9032
SELECT ALL - 63 / + - 53 FROM tab1
----
1
1
1

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - - 14 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - ( + 51 ) FROM tab1 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9035
SELECT DISTINCT - COUNT( * ) * 16 DIV COUNT( DISTINCT + col1 ) FROM tab2
----
-16

skipif mysql # not compatible
query I rowsort label-9035
SELECT DISTINCT - COUNT ( * ) * 16 / COUNT ( DISTINCT + col1 ) FROM tab2
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-9036
SELECT + + 38 + + COUNT( * ) AS col1 FROM tab1 cor0 WHERE NOT ( NULL ) IS NULL
----
38

skipif mysql # not compatible
query I rowsort label-9036
SELECT + + 38 + + COUNT ( * ) AS col1 FROM tab1 cor0 WHERE NOT ( NULL ) IS NULL
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-9037
SELECT DISTINCT + 60 DIV + 46 + - col1 FROM tab2 AS cor0
----
-50
-66
-76

skipif mysql # not compatible
query I rowsort label-9037
SELECT DISTINCT + 60 / + 46 + - col1 FROM tab2 AS cor0
----
-50
-66
-76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 61 + + col2 col1 FROM tab2 AS cor0 WHERE NULL > col2
----

query I rowsort
SELECT 99 * + 39 + - col0 * + 83 AS col0 FROM tab1 cor0
----
-3194
-3692
-372

query I rowsort
SELECT DISTINCT 47 FROM tab2 AS cor0 WHERE NULL IS NULL
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9041
SELECT DISTINCT + COUNT( col0 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9041
SELECT DISTINCT + COUNT ( col0 ) AS col2 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9042
SELECT + 57 DIV CAST( col1 AS SIGNED ) + 7 + + + col1 + - + col2 * - - col2 AS col0 FROM tab1 AS cor0
----
-3458
-4569
-9191

skipif mysql # not compatible
query I rowsort label-9042
SELECT + 57 / CAST ( col1 AS INTEGER ) + 7 + + + col1 + - + col2 * - - col2 AS col0 FROM tab1 AS cor0
----
-3458
-4569
-9191

query II rowsort
SELECT + col2 * - - col0 * - + col1 AS col2, + col0 * - 82 FROM tab2 AS cor0
----
-197120
-5248
-291450
-6150
-53958
-3772

query I rowsort
SELECT - + 86 AS col2 FROM tab2 cor0
----
-86
-86
-86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 19 col2 FROM tab0 AS cor0
----
-19
-19
-19

query I rowsort
SELECT + - col1 * col2 + - + col2 AS col2 FROM tab2 AS cor0
----
-1196
-3120
-3944

query I rowsort
SELECT DISTINCT AVG ( ALL - 65 ) AS col0 FROM tab2 cor0 WHERE - col2 + - col2 >= NULL
----
NULL

query I rowsort
SELECT DISTINCT col0 * + + 72 + + 14 AS col1 FROM tab1
----
3686
6134
6566

query I rowsort
SELECT DISTINCT + 67 + + ( 4 ) * - 21 FROM tab0
----
-17

query III rowsort
SELECT * FROM tab0 WHERE - 48 NOT BETWEEN NULL AND + col2
----

query I rowsort
SELECT - - 26 AS col0 FROM tab0 WHERE NULL IS NULL
----
26
26
26

onlyif mysql # aggregate syntax: 
query I rowsort label-9052
SELECT + MAX( ALL + 88 ) * + 13 FROM tab2
----
1144

skipif mysql # not compatible
query I rowsort label-9052
SELECT + MAX ( ALL + 88 ) * + 13 FROM tab2
----
1144

onlyif mysql # aggregate syntax: 
query I rowsort label-9053
SELECT DISTINCT + MAX( + + ( col1 ) ) FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-9053
SELECT DISTINCT + MAX ( + + ( col1 ) ) FROM tab0
----
81

query II rowsort
SELECT - col0 AS col2, 51 + + 13 FROM tab2 WHERE col0 IS NULL
----

query II rowsort
SELECT DISTINCT + ( + 7 ) + col2, + col2 FROM tab2
----
30
23
47
40
65
58

query I rowsort
SELECT ALL + 79 * + col2 * + col0 FROM tab1
----
386784
396185
488852

query I rowsort
SELECT + 24 * + 70 AS col0 FROM tab1 AS cor0
----
1680
1680
1680

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9058
SELECT COUNT( * ) DIV - 59 + + COUNT( * ) col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9058
SELECT COUNT ( * ) / - 59 + + COUNT ( * ) col2 FROM tab1 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col1 + - - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-9060
SELECT ( + ( - col1 ) ) + + ( - + col1 ) + + 47 + - ( - 75 ) DIV col2 + + col0 AS col2 FROM tab2 AS cor0 WHERE NOT ( 71 ) > + col1 * - + ( - col1 ) + col1
----
-11
-42
-6

skipif mysql # not compatible
query I rowsort label-9060
SELECT ( + ( - col1 ) ) + + ( - + col1 ) + + 47 + - ( - 75 ) / col2 + + col0 AS col2 FROM tab2 AS cor0 WHERE NOT ( 71 ) > + col1 * - + ( - col1 ) + col1
----
-11
-42
-6

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN + col0 * - - col0 * - col1 AND 41
----

query I rowsort
SELECT ALL 78 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL <= col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9064
SELECT ALL - COUNT( * ) * + + MAX( ALL - + col2 ) FROM tab2 WHERE NOT ( - + col2 * - col1 * + 71 ) <= ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9064
SELECT ALL - COUNT ( * ) * + + MAX ( ALL - + col2 ) FROM tab2 WHERE NOT ( - + col2 * - col1 * + 71 ) <= ( NULL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9065
SELECT ALL + 33 * + + COUNT( * ) FROM tab2
----
99

skipif mysql # not compatible
query I rowsort label-9065
SELECT ALL + 33 * + + COUNT ( * ) FROM tab2
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9066
SELECT ALL + COUNT( DISTINCT 12 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-9066
SELECT ALL + COUNT ( DISTINCT 12 ) FROM tab1
----
1

query I rowsort
SELECT DISTINCT - col0 + - 70 FROM tab0 WHERE - + 70 * + col1 + - 51 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9068
SELECT + SUM( DISTINCT + - 4 ) col2 FROM tab1
----
-4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9068
SELECT + SUM ( DISTINCT + - 4 ) col2 FROM tab1
----
-4

query I rowsort
SELECT - ( - 57 ) AS col1 FROM tab0 AS cor0
----
57
57
57

onlyif mysql # aggregate syntax: 
query I rowsort label-9070
SELECT ALL - + MAX( DISTINCT + 42 ) + + SUM( DISTINCT + - col2 ) AS col2 FROM tab0 cor0
----
-198

skipif mysql # not compatible
query I rowsort label-9070
SELECT ALL - + MAX ( DISTINCT + 42 ) + + SUM ( DISTINCT + - col2 ) AS col2 FROM tab0 cor0
----
-198

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + 94 col2 FROM tab2
----
117
134
152

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + col0 col2 FROM tab1
----
-45
23
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 52 col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 7f4ae30893ab330784829711032ae599

onlyif mysql # aggregate syntax: 
query I rowsort label-9074
SELECT DISTINCT + SUM( + - 61 ) FROM tab2
----
-183

skipif mysql # not compatible
query I rowsort label-9074
SELECT DISTINCT + SUM ( + - 61 ) FROM tab2
----
-183

query I rowsort
SELECT ALL - 15 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1172c9a62bdad7db0def9205c06ee1f2

query I rowsort
SELECT - - col0 * + + col2 * + 19 + + col0 - col0 + - col0 FROM tab2 AS cor0
----
20056
48576
82575

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col2 + - 26 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 39 col2 FROM tab2 AS cor0 WHERE col2 * - 19 >= 56
----

query I rowsort
SELECT DISTINCT - col0 * + col1 + + 35 FROM tab1 AS cor0
----
-390
-4242
-679

query I rowsort
SELECT ALL + - 75 FROM tab2 AS cor0 WHERE ( NULL ) < + col1 * - ( col1 ) * - - col0 + + - 62
----

query I rowsort
SELECT DISTINCT + + 69 - col0 FROM tab2 AS cor0
----
-6
23
5

query II rowsort
SELECT col2, col1 + + + col2 AS col0 FROM tab2
----
23
74
40
117
58
125

query III rowsort
SELECT * FROM tab1 WHERE + - col0 * col0 IS NULL
----

query II rowsort
SELECT DISTINCT col0 * 53 + - - col0, col1 FROM tab2
----
2484
51
3456
77
4050
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9085
SELECT ALL + 0 - 1 - + - COUNT( * ) AS col1 FROM tab1
----
2

skipif mysql # not compatible
query I rowsort label-9085
SELECT ALL + 0 - 1 - + - COUNT ( * ) AS col1 FROM tab1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9086
SELECT ALL - SUM( - - ( - col0 ) ) AS col0 FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-9086
SELECT ALL - SUM ( - - ( - col0 ) ) AS col0 FROM tab0
----
199

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-9087
SELECT + CAST( col2 AS SIGNED ) - col0, col2 / + - CAST( NULL AS DECIMAL ) - - - CAST( NULL AS SIGNED ) + - col0 AS col2 FROM tab0
----
-77
NULL
2
NULL
32
NULL

skipif mysql # not compatible
query II rowsort label-9087
SELECT + CAST ( col2 AS INTEGER ) - col0, col2 / + - CAST ( NULL AS REAL ) - - - CAST ( NULL AS INTEGER ) + - col0 AS col2 FROM tab0
----
-77
NULL
2
NULL
32
NULL

query I rowsort
SELECT ALL + col0 * + + 49 AS col1 FROM tab1 cor0
----
2499
4165
4459

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab0 AS cor0 WHERE NOT col0 - + + col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 28 col2 FROM tab2 AS cor0
----
-28

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 * - col1 + col1 NOT BETWEEN 96 AND 33
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL <= ( - ( 87 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 7 * 28 col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 140c563b705c847a9763df60c43c8baa

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL <= - ( - col2 )
----

query I rowsort
SELECT + 93 * + col0 AS col2 FROM tab2 AS cor0
----
4278
5952
6975

query I rowsort
SELECT DISTINCT - col1 * - - col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + + 83 AS col2 FROM tab2 AS cor0
----
83
83
83

onlyif mysql # aggregate syntax: 
query I rowsort label-9098
SELECT - + SUM( DISTINCT + ( col1 ) ) * + + 41 FROM tab0 AS cor0
----
-4223

skipif mysql # not compatible
query I rowsort label-9098
SELECT - + SUM ( DISTINCT + ( col1 ) ) * + + 41 FROM tab0 AS cor0
----
-4223

query I rowsort
SELECT + col2 * - col2 * + col2 - - col1 + + + col2 AS col0 FROM tab1 AS cor0
----
-205315
-314317
-884626

query I rowsort
SELECT ALL - 73 * + - col1 AS col2 FROM tab1
----
1022
3431
365

onlyif mysql # aggregate syntax: 
query II rowsort label-9101
SELECT DISTINCT - 61 AS col2, - 81 * - + COUNT( * ) AS col0 FROM tab0
----
-61
243

skipif mysql # not compatible
query II rowsort label-9101
SELECT DISTINCT - 61 AS col2, - 81 * - + COUNT ( * ) AS col0 FROM tab0
----
-61
243

onlyif mysql # aggregate syntax: 
query I rowsort label-9102
SELECT DISTINCT ( - MAX( ALL + + col0 ) ) FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-9102
SELECT DISTINCT ( - MAX ( ALL + + col0 ) ) FROM tab2
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9103
SELECT ALL * FROM tab1 WHERE - col0 >= - + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9103
SELECT ALL * FROM tab1 WHERE - col0 >= - + CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9104
SELECT + CAST( - 64 AS SIGNED ) + - + COUNT( * ) + COUNT( * ) * 73 AS col1 FROM tab0 cor0
----
152

skipif mysql # not compatible
query I rowsort label-9104
SELECT + CAST ( - 64 AS INTEGER ) + - + COUNT ( * ) + COUNT ( * ) * 73 AS col1 FROM tab0 cor0
----
152

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 - + col1 + 47 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9106
SELECT DISTINCT + col0 + + - col0 * - - 11 + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9106
SELECT DISTINCT + col0 + + - col0 * - - 11 + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL col1 + + 78 FROM tab0
----
159
79
99

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + col2 * - col1 <> col0
----

query I rowsort
SELECT col2 + - col1 * - col1 AS col1 FROM tab1 AS cor0
----
2277
292
84

query I rowsort
SELECT + col2 FROM tab1 AS cor0 WHERE + 55 >= NULL
----

query I rowsort
SELECT ALL - + 23 + + col2 + + col2 * col0 FROM tab0 AS cor0
----
729
857
9679

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9112
SELECT - col0 * 88 + - CAST( + col2 AS SIGNED ) FROM tab0 AS cor0
----
-1367
-7666
-8635

skipif mysql # not compatible
query I rowsort label-9112
SELECT - col0 * 88 + - CAST ( + col2 AS INTEGER ) FROM tab0 AS cor0
----
-1367
-7666
-8635

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( col1 + col2 - col1 * col1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 * + + col2 + - + col0 + - col1 FROM tab1 AS cor0
----
1279
205
3058

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9115
SELECT ALL - - MIN( ALL col1 ) + CAST( COUNT( col2 ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-9115
SELECT ALL - - MIN ( ALL col1 ) + CAST ( COUNT ( col2 ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
8

query I rowsort
SELECT DISTINCT + 15 * + col2 AS col0 FROM tab2 AS cor0
----
345
600
870

query I rowsort
SELECT 14 AS col2 FROM tab1, tab2 AS cor0 WHERE NULL BETWEEN + 82 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9118
SELECT ALL COUNT( * ) * - + 61 FROM tab2, tab2 AS cor0
----
-549

skipif mysql # not compatible
query I rowsort label-9118
SELECT ALL COUNT ( * ) * - + 61 FROM tab2, tab2 AS cor0
----
-549

query I rowsort
SELECT DISTINCT + 13 + + col0 FROM tab2
----
59
77
88

onlyif mysql # aggregate syntax: 
query I rowsort label-9120
SELECT ALL - + COUNT( DISTINCT + col2 ) col2 FROM tab1 WHERE col1 * + - col1 - + - col0 IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9120
SELECT ALL - + COUNT ( DISTINCT + col2 ) col2 FROM tab1 WHERE col1 * + - col1 - + - col0 IS NULL
----
0

query I rowsort
SELECT ( col0 ) * - + ( col0 ) + - + col2 FROM tab1 AS cor0
----
-2697
-7284
-8349

query I rowsort
SELECT DISTINCT 76 * + - col1 - col0 + - 33 FROM tab0 AS cor0
----
-1716
-206
-6204

onlyif mysql # DIV for integer division: 
query II rowsort label-9123
SELECT ALL - col1 DIV - - 35 col0, 86 AS col1 FROM tab1 AS cor0
----
-1
86
0
86
0
86

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9123
SELECT ALL - col1 / - - 35 col0, 86 AS col1 FROM tab1 AS cor0
----
-1
86
0
86
0
86

query I rowsort
SELECT ALL + 85 + + 29 AS col0 FROM tab2 AS cor0 WHERE NOT + col1 * col1 IS NULL
----
114
114
114

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 97 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9126
SELECT DISTINCT - 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-9126
SELECT DISTINCT - CAST ( - + COUNT ( * ) AS INTEGER ) col2 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9127
SELECT ALL MAX( col2 ) FROM tab1 AS cor0 WHERE 10 IS NOT NULL
----
96

skipif mysql # not compatible
query I rowsort label-9127
SELECT ALL MAX ( col2 ) FROM tab1 AS cor0 WHERE 10 IS NOT NULL
----
96

query II rowsort
SELECT + col0, + 10 FROM tab0 AS cor0
----
15
10
87
10
97
10

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 * 1 BETWEEN ( col1 ) AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9130
SELECT ALL MIN( DISTINCT - - col0 ) + + 97 * COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL IS NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9130
SELECT ALL MIN ( DISTINCT - - col0 ) + + 97 * COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL IS NULL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9131
SELECT ALL - COUNT( + ( + ( col1 ) ) ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9131
SELECT ALL - COUNT ( + ( + ( col1 ) ) ) FROM tab2 cor0
----
-3

query I rowsort
SELECT - - col0 * + + col2 AS col0 FROM tab2 AS cor0 WHERE NOT 74 / + col0 IS NULL
----
1058
2560
4350

query II rowsort
SELECT ALL - 53 AS col2, + col0 * 69 AS col0 FROM tab1 AS cor0
----
-53
3519
-53
5865
-53
6279

query I rowsort
SELECT + + 16 * + ( 56 ) AS col0 FROM tab1 AS cor0
----
896
896
896

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * ( + col2 ) col1 FROM tab0
----
210
3807
99

query I rowsort
SELECT DISTINCT + col2 FROM tab0 WHERE NOT - col0 + + - col0 BETWEEN NULL AND + - col1 * - col1 + - col1
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 80 >= NULL
----

query I rowsort
SELECT 68 + - + col0 * - 12 AS col0 FROM tab2
----
620
836
968

query I rowsort
SELECT ALL ( - 72 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ad521144c976ff25e77cdf10a84d1dc6

onlyif mysql # aggregate syntax: 
query I rowsort label-9140
SELECT DISTINCT COUNT( * ) + - 12 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-9140
SELECT DISTINCT COUNT ( * ) + - 12 FROM tab0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9141
SELECT DISTINCT * FROM tab2 WHERE NOT NULL = col0 * ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-9141
SELECT DISTINCT * FROM tab2 WHERE NOT NULL = col0 * ( CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9142
SELECT ALL - - 59 * + - CAST( NULL AS DECIMAL ) + + + COUNT( DISTINCT + + col0 ) + - MIN( DISTINCT - col2 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9142
SELECT ALL - - 59 * + - CAST ( NULL AS REAL ) + + + COUNT ( DISTINCT + + col0 ) + - MIN ( DISTINCT - col2 ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - - ( + - col2 ) * - col0 + - col2 + - 20 + 60 FROM tab0 cor0
----
698
900
9544

onlyif mysql # aggregate syntax: 
query I rowsort label-9144
SELECT + ( - - MAX( DISTINCT col1 ) ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-9144
SELECT + ( - - MAX ( DISTINCT col1 ) ) FROM tab0 AS cor0
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9145
SELECT ALL + - 4 * + - CAST( - ( + ( - col2 ) ) AS SIGNED ) FROM tab1 cor0
----
236
272
384

skipif mysql # not compatible
query I rowsort label-9145
SELECT ALL + - 4 * + - CAST ( - ( + ( - col2 ) ) AS INTEGER ) FROM tab1 cor0
----
236
272
384

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9146
SELECT ALL - col1 * - CAST( - ( - - col2 ) AS SIGNED ) + + 4 FROM tab0 AS cor0
----
-206
-3803
-95

skipif mysql # not compatible
query I rowsort label-9146
SELECT ALL - col1 * - CAST ( - ( - - col2 ) AS INTEGER ) + + 4 FROM tab0 AS cor0
----
-206
-3803
-95

query I rowsort
SELECT ALL col1 + 26 AS col1 FROM tab0 AS cor0
----
107
27
47

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 * - ( - 73 ) IS NULL
----

query I rowsort
SELECT 55 - + + 7 FROM tab0
----
48
48
48

query I rowsort
SELECT col0 * col0 - - - 62 FROM tab2
----
2054
4034
5563

query I rowsort
SELECT col1 - - ( - col1 ) AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL + + 17 FROM tab2 WHERE NULL NOT BETWEEN + + 36 + + 97 AND + - 69
----

query I rowsort
SELECT ALL - 22 * + - col2 FROM tab2
----
1276
506
880

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9154
SELECT DISTINCT - 78 * - 89 / + col1 * CAST( NULL AS SIGNED ), col2 FROM tab2
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-9154
SELECT DISTINCT - 78 * - 89 / + col1 * CAST ( NULL AS INTEGER ), col2 FROM tab2
----
NULL
23
NULL
40
NULL
58

query I rowsort
SELECT DISTINCT col1 * + + col1 * + col0 AS col0 FROM tab1
----
201019
2125
9996

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9156
SELECT - ( + CAST( NULL AS DECIMAL ) ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9156
SELECT - ( + CAST ( NULL AS REAL ) ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9157
SELECT + col0 / - - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9157
SELECT + col0 / - - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + 4 * + col2 - + + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + + 69 + + + 1 FROM tab0 AS cor0 WHERE NULL NOT IN ( col0 * + + 85, - col0, - ( col1 ), + col1 * + col2 + 36 / - col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9160
SELECT DISTINCT + col1 DIV - + col2 + col1 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-9160
SELECT DISTINCT + col1 / - + col2 + col1 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT DISTINCT + col2 + + col1 * + 94 * - col2 FROM tab0 AS cor0
----
-19730
-357811
-9207

query I rowsort
SELECT ALL col0 + col2 * - col1 AS col0 FROM tab2 AS cor0
----
-1127
-3016
-3811

query I rowsort
SELECT - 94 AS col1 FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col2 + - + col2 * col2 * - - ( + ( + 37 ) ) AS col0 FROM tab2 AS cor0
----
-124526
-19596
-59240

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9165
SELECT - - CAST( + - col0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-9165
SELECT - - CAST ( + - col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT col2 FROM tab0 WHERE NOT ( col2 <> + - col2 )
----

query I rowsort
SELECT ALL 1 * - col2 * + - col0 AS col0 FROM tab0
----
705
870
9603

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9168
SELECT + COUNT( - + 67 ) + - - CAST( NULL AS SIGNED ) FROM tab0, tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9168
SELECT + COUNT ( - + 67 ) + - - CAST ( NULL AS INTEGER ) FROM tab0, tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9169
SELECT ALL col0 DIV + 72 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9169
SELECT ALL col0 / + 72 FROM tab2
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9170
SELECT ALL ( - + SUM( ALL - + col1 ) ) FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-9170
SELECT ALL ( - + SUM ( ALL - + col1 ) ) FROM tab1
----
66

query I rowsort
SELECT 51 * + col1 + - col1 * - 1 * + 0 FROM tab2
----
2601
3417
3927

query I rowsort
SELECT col0 + + 79 FROM tab2
----
125
143
154

onlyif mysql # aggregate syntax: 
query I rowsort label-9173
SELECT ALL - + ( + ( COUNT( * ) ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9173
SELECT ALL - + ( + ( COUNT ( * ) ) ) FROM tab2 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-9174
SELECT + - col2 DIV 21 AS col0 FROM tab0 AS cor0
----
-2
-4
0

skipif mysql # not compatible
query I rowsort label-9174
SELECT + - col2 / 21 AS col0 FROM tab0 AS cor0
----
-2
-4
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9175
SELECT - + COUNT( * ) * - - COUNT( * ) col0 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9175
SELECT - + COUNT ( * ) * - - COUNT ( * ) col0 FROM tab0 AS cor0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9176
SELECT + + CAST( NULL AS SIGNED ) AS col0, - 93 * - col1 FROM tab1 AS cor0
----
NULL
1302
NULL
4371
NULL
465

skipif mysql # not compatible
query II rowsort label-9176
SELECT + + CAST ( NULL AS INTEGER ) AS col0, - 93 * - col1 FROM tab1 AS cor0
----
NULL
1302
NULL
4371
NULL
465

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9177
SELECT ALL + 15 AS col1 FROM tab2 WHERE NOT - CAST( NULL AS SIGNED ) NOT IN ( col0 + - col1 * - 79 )
----

skipif mysql # not compatible
query I rowsort label-9177
SELECT ALL + 15 AS col1 FROM tab2 WHERE NOT - CAST ( NULL AS INTEGER ) NOT IN ( col0 + - col1 * - 79 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9178
SELECT ALL + AVG ( ALL - col2 ) / CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9178
SELECT ALL + AVG ( ALL - col2 ) / CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT 99 - col0 AS col2 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND ( col1 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + col2 + - col1 ) IN ( 41 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE NOT 21 / - 25 + col0 * - col1 NOT IN ( + col2 )
----

query I rowsort
SELECT DISTINCT - 45 * + 39 AS col2 FROM tab0
----
-1755

query I rowsort
SELECT 61 - col2 FROM tab2
----
21
3
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9184
SELECT - 0 DIV COUNT( * ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9184
SELECT - 0 / COUNT ( * ) AS col2 FROM tab2
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + col0 ) >= ( NULL )
----

query I rowsort
SELECT + col1 AS col2 FROM tab2 WHERE NOT ( + ( - col1 ) / - 70 - + col0 ) IS NOT NULL
----

query I rowsort
SELECT ALL ( 91 ) AS col0 FROM tab1
----
91
91
91

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT IN ( 85 - + col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9189
SELECT ALL 19 + + CAST( SUM( DISTINCT col2 ) AS SIGNED ) FROM tab0
----
175

skipif mysql # not compatible
query I rowsort label-9189
SELECT ALL 19 + + CAST ( SUM ( DISTINCT col2 ) AS INTEGER ) FROM tab0
----
175

query I rowsort
SELECT - col0 * - col2 AS col2 FROM tab0 WHERE NOT 29 IS NULL
----
705
870
9603

query I rowsort
SELECT + col1 * col1 FROM tab1 WHERE NOT 32 IS NULL
----
196
2209
25

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col1 + col1 * col1 NOT IN ( 28 * - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 8 * + col0 FROM tab1
----
408
680
728

onlyif mysql # aggregate syntax: 
query I rowsort label-9194
SELECT ALL - SUM( DISTINCT col1 ) * 79 FROM tab1
----
-5214

skipif mysql # not compatible
query I rowsort label-9194
SELECT ALL - SUM ( DISTINCT col1 ) * 79 FROM tab1
----
-5214

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9195
SELECT + CAST( - 69 AS SIGNED ) * + ( + MIN( DISTINCT - col2 ) ) AS col2 FROM tab2
----
4002

skipif mysql # not compatible
query I rowsort label-9195
SELECT + CAST ( - 69 AS INTEGER ) * + ( + MIN ( DISTINCT - col2 ) ) AS col2 FROM tab2
----
4002

onlyif mysql # aggregate syntax: 
query I rowsort label-9196
SELECT DISTINCT 75 * + COUNT( * ) AS col0 FROM tab1 WHERE NOT + 33 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9196
SELECT DISTINCT 75 * + COUNT ( * ) AS col0 FROM tab1 WHERE NOT + 33 IS NOT NULL
----
0

query I rowsort
SELECT + col1 - - 84 * col1 FROM tab2
----
4335
5695
6545

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - col1 ) + + col1 < ( col0 * 48 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - col1 col0 FROM tab1
----
-10
-28
-94

query I rowsort
SELECT DISTINCT 5 * + col0 + col0 AS col1 FROM tab0 WHERE NOT - col2 BETWEEN NULL AND col1 * - col2
----
522
90

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN + ( - col1 ) AND + 92 + + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9202
SELECT DISTINCT + col2 + 70 FROM tab0 WHERE ( CAST( col0 AS SIGNED ) ) IS NOT NULL
----
117
169
80

skipif mysql # not compatible
query I rowsort label-9202
SELECT DISTINCT + col2 + 70 FROM tab0 WHERE ( CAST ( col0 AS INTEGER ) ) IS NOT NULL
----
117
169
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9203
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + COUNT( * ) col0 FROM tab0 WHERE col1 * 92 IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9203
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + COUNT ( * ) col0 FROM tab0 WHERE col1 * 92 IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT - col1 * - 89 FROM tab2 WHERE + col1 * col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9205
SELECT - 46 + + COUNT( ALL col2 ) AS col0 FROM tab1
----
-43

skipif mysql # not compatible
query I rowsort label-9205
SELECT - 46 + + COUNT ( ALL col2 ) AS col0 FROM tab1
----
-43

query I rowsort
SELECT DISTINCT - ( + 85 ) * col1 + - col0 AS col2 FROM tab1 AS cor0 WHERE col2 * - col1 IS NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - 91 * - col2 - col0 IS NOT NULL
----

query I rowsort
SELECT col2 - col1 FROM tab0 AS cor0 WHERE NOT - col0 <> NULL
----

query I rowsort
SELECT ALL + 34 * + col0 AS col0 FROM tab1 cor0
----
1734
2890
3094

onlyif mysql # aggregate syntax: 
query I rowsort label-9210
SELECT DISTINCT + COUNT( * ) * 51 FROM tab0
----
153

skipif mysql # not compatible
query I rowsort label-9210
SELECT DISTINCT + COUNT ( * ) * 51 FROM tab0
----
153

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 / col0 < ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9212
SELECT - col2 DIV 30 AS col0 FROM tab1
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-9212
SELECT - col2 / 30 AS col0 FROM tab1
----
-1
-2
-3

query I rowsort
SELECT - 77 AS col0 FROM tab1 WHERE NOT NULL >= + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9214
SELECT + MAX( col1 ) AS col1 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-9214
SELECT + MAX ( col1 ) AS col1 FROM tab0
----
81

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 * + col2 - col1 * col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-9216
SELECT DISTINCT - + col2 DIV - 66 FROM tab0 cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-9216
SELECT DISTINCT - + col2 / - 66 FROM tab0 cor0
----
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9217
SELECT - + 96 DIV 63 + col2 FROM tab1 AS cor0
----
58
67
95

skipif mysql # not compatible
query I rowsort label-9217
SELECT - + 96 / 63 + col2 FROM tab1 AS cor0
----
58
67
95

query I rowsort
SELECT col1 AS col2 FROM tab2 cor0 WHERE NOT NULL <> + ( 20 ) * - col2
----

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE + 39 + + col1 * - 14 NOT BETWEEN ( - col2 ) AND - 34
----
14
47
5

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 + 36 < col0 * col0 + - 99
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9221
SELECT DISTINCT COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT + col2 IN ( col1 )
----
3

skipif mysql # not compatible
query I rowsort label-9221
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT + col2 IN ( col1 )
----
3

query I rowsort
SELECT DISTINCT + col1 + col1 + - 88 * + col2 AS col2 FROM tab2
----
-1922
-3366
-4970

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL >= 45 + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9224
SELECT ALL 92 DIV col1 * - col0 AS col0 FROM tab1
----
-1530
-306
-91

skipif mysql # not compatible
query I rowsort label-9224
SELECT ALL 92 / col1 * - col0 AS col0 FROM tab1
----
-1530
-306
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-9225
SELECT 23 * - + SUM( col1 ) AS col2 FROM tab1
----
-1518

skipif mysql # not compatible
query I rowsort label-9225
SELECT 23 * - + SUM ( col1 ) AS col2 FROM tab1
----
-1518

onlyif mysql # aggregate syntax: 
query I rowsort label-9226
SELECT COUNT( * ) * 68 FROM tab2
----
204

skipif mysql # not compatible
query I rowsort label-9226
SELECT COUNT ( * ) * 68 FROM tab2
----
204

query III rowsort
SELECT * FROM tab0 WHERE + col2 + + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9228
SELECT DISTINCT - 29 / + - col2 * - CAST( NULL AS SIGNED ) col1 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9228
SELECT DISTINCT - 29 / + - col2 * - CAST ( NULL AS INTEGER ) col1 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 63 * col1 col2 FROM tab1
----
2961
315
882

query I rowsort
SELECT - col2 AS col0 FROM tab1 WHERE ( NULL ) IN ( + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9231
SELECT ALL + col0 + CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT NULL <> + col0 / col1
----

skipif mysql # not compatible
query I rowsort label-9231
SELECT ALL + col0 + CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT NULL <> + col0 / col1
----

query I rowsort
SELECT + ( ( - col2 ) ) AS col2 FROM tab2
----
-23
-40
-58

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT IN ( + col2 * col1 ) AND NOT ( col2 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9234
SELECT col1 DIV - CAST( + col0 AS SIGNED ) + 63 AS col1 FROM tab0 AS cor0
----
58
63
63

skipif mysql # not compatible
query I rowsort label-9234
SELECT col1 / - CAST ( + col0 AS INTEGER ) + 63 AS col1 FROM tab0 AS cor0
----
58
63
63

onlyif mysql # aggregate syntax: 
query I rowsort label-9235
SELECT DISTINCT + COUNT( * ) FROM tab0 WHERE - 35 * + col1 <> ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-9235
SELECT DISTINCT + COUNT ( * ) FROM tab0 WHERE - 35 * + col1 <> ( NULL )
----
0

query I rowsort
SELECT + col2 * + col2 + col0 FROM tab1
----
3566
4715
9267

query I rowsort
SELECT ALL + col2 - - 22 FROM tab2 AS cor0
----
45
62
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9238
SELECT DISTINCT - + 44 - + - 57 * - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-215

skipif mysql # not compatible
query I rowsort label-9238
SELECT DISTINCT - + 44 - + - 57 * - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-215

onlyif mysql # aggregate syntax: 
query I rowsort label-9239
SELECT ALL + 52 - SUM( col0 ) FROM tab1 AS cor0
----
-175

skipif mysql # not compatible
query I rowsort label-9239
SELECT ALL + 52 - SUM ( col0 ) FROM tab1 AS cor0
----
-175

onlyif mysql # aggregate syntax: 
query I rowsort label-9240
SELECT + 58 + SUM( ALL - col0 ) FROM tab2 AS cor0 WHERE ( + + 37 ) < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9240
SELECT + 58 + SUM ( ALL - col0 ) FROM tab2 AS cor0 WHERE ( + + 37 ) < NULL
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9241
SELECT SUM( ALL + + 93 ) DIV + COUNT( * ) AS col0 FROM tab1 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-9241
SELECT SUM ( ALL + + 93 ) / + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9242
SELECT DISTINCT SUM( + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9242
SELECT DISTINCT SUM ( + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT ALL + col0 AS col1, + 90 * + col0 * + col2 FROM tab0 AS cor0
----
15
63450
87
78300
97
864270

query I rowsort
SELECT - - col2 * + 14 FROM tab1 AS cor0
----
1344
826
952

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9245
SELECT - CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9245
SELECT - CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) IS NULL OR NOT - col1 IN ( - 86 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + col0 ) IN ( - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 97 * - 55 * + + col1 FROM tab1
----
-250745
-26675
-74690

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 BETWEEN ( NULL ) AND + col2
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 NOT IN ( + + col2 + - ( col0 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9251
SELECT ALL COUNT( * ) * + 43 * COUNT( * ) col1 FROM tab0
----
387

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9251
SELECT ALL COUNT ( * ) * + 43 * COUNT ( * ) col1 FROM tab0
----
387

query I rowsort
SELECT - 84 * + + 97 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
-8148
-8148
-8148

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + + 32 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + AVG ( col1 ) * + 7 FROM tab1 WHERE - - col0 IN ( + 60 * 11 )
----
NULL

query II rowsort
SELECT DISTINCT + 31, col0 FROM tab1
----
31
51
31
85
31
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9256
SELECT ALL - 58 + - ( + COUNT( * ) ) FROM tab0 AS cor0
----
-61

skipif mysql # not compatible
query I rowsort label-9256
SELECT ALL - 58 + - ( + COUNT ( * ) ) FROM tab0 AS cor0
----
-61

query I rowsort
SELECT + ( - 48 ) AS col0 FROM tab1 cor0
----
-48
-48
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9258
SELECT ALL - - CAST( NULL AS SIGNED ) * 90 + - 40 * - 19 * col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9258
SELECT ALL - - CAST ( NULL AS INTEGER ) * 90 + - 40 * - 19 * col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9259
SELECT + col1 DIV 49 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9259
SELECT + col1 / 49 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT DISTINCT 99 + + + col0 AS col1 FROM tab2 AS cor0
----
145
163
174

query II rowsort
SELECT - + 39 AS col0, col2 * + + 4 * + + col1 FROM tab2 AS cor0
----
-39
12320
-39
15544
-39
4692

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9262
SELECT + col0, col0 / CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-9262
SELECT + col0, col0 / CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
51
NULL
85
NULL
91
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9263
SELECT + COUNT( * ) AS col2, 22 FROM tab1 AS cor0
----
3
22

skipif mysql # not compatible
query II rowsort label-9263
SELECT + COUNT ( * ) AS col2, 22 FROM tab1 AS cor0
----
3
22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - + ( - ( + col2 ) ) + - col1 + 4 + - col2 col1 FROM tab2 AS cor0
----
1487
3243
459

query I rowsort
SELECT - - col0 + - 88 FROM tab1 AS cor0
----
-3
-37
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9266
SELECT * FROM tab1 AS cor0 WHERE + col1 + + col2 BETWEEN - CAST( NULL AS SIGNED ) * 88 + + ( - col0 ) * col0 AND NULL
----

skipif mysql # not compatible
query III rowsort label-9266
SELECT * FROM tab1 AS cor0 WHERE + col1 + + col2 BETWEEN - CAST ( NULL AS INTEGER ) * 88 + + ( - col0 ) * col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9267
SELECT DISTINCT + MIN( DISTINCT + + col0 ) col0, + 88 FROM tab2
----
46
88

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9267
SELECT DISTINCT + MIN ( DISTINCT + + col0 ) col0, + 88 FROM tab2
----
46
88

query I rowsort
SELECT - col2 + - 63 + ( + ( - 43 ) ) FROM tab0
----
-116
-153
-205

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col1 * + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT + col0, + 8 FROM tab0
----
15
8
87
8
97
8

query II rowsort
SELECT + 78 AS col2, col0 * col1 * + col2 + col1 FROM tab1
----
78
25080
78
290883
78
68558

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9272
SELECT * FROM tab0 WHERE - + col0 + - + 78 <> col1 / + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9272
SELECT * FROM tab0 WHERE - + col0 + - + 78 <> col1 / + - CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9273
SELECT - 36 * CAST( NULL AS SIGNED ) * - 94 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9273
SELECT - 36 * CAST ( NULL AS INTEGER ) * - 94 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9274
SELECT + CAST( COUNT( * ) AS SIGNED ) DIV - COUNT( * ) FROM tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9274
SELECT + CAST ( COUNT ( * ) AS INTEGER ) / - COUNT ( * ) FROM tab0 cor0
----
-1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <= + 24
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + + col2 * 82 >= NULL OR NOT NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9277
SELECT ALL COUNT( * ) + - 25 AS col2 FROM tab2 cor0 WHERE NOT NULL IS NULL
----
-25

skipif mysql # not compatible
query I rowsort label-9277
SELECT ALL COUNT ( * ) + - 25 AS col2 FROM tab2 cor0 WHERE NOT NULL IS NULL
----
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-9278
SELECT ALL + 96 - col0 DIV col2 * - + 36 AS col1 FROM tab2
----
132
132
168

skipif mysql # not compatible
query I rowsort label-9278
SELECT ALL + 96 - col0 / col2 * - + 36 AS col1 FROM tab2
----
132
132
168

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9279
SELECT ( + CAST( NULL AS SIGNED ) ) + col0 / - col2 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9279
SELECT ( + CAST ( NULL AS INTEGER ) ) + col0 / - col2 AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9280
SELECT ( - - MAX( - + 69 ) ) * 87 AS col2 FROM tab0 AS cor0
----
-6003

skipif mysql # not compatible
query I rowsort label-9280
SELECT ( - - MAX ( - + 69 ) ) * 87 AS col2 FROM tab0 AS cor0
----
-6003

onlyif mysql # aggregate syntax: 
query I rowsort label-9281
SELECT MAX( ALL + + 17 ) * MIN( col1 ) AS col0 FROM tab1 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-9281
SELECT MAX ( ALL + + 17 ) * MIN ( col1 ) AS col0 FROM tab1 AS cor0
----
85

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NOT ( NOT NULL <> ( - 60 + - + 95 * + - col1 ) ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9283
SELECT DISTINCT + col1 DIV col2 * - col1 + + col0 AS col1 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-9283
SELECT DISTINCT + col1 / col2 * - col1 + + col0 AS col1 FROM tab1 AS cor0
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9284
SELECT * FROM tab0 AS cor0 WHERE NOT ( + 25 ) BETWEEN col1 AND - + CAST( NULL AS SIGNED ) * + col2
----
15
81
47

skipif mysql # not compatible
query III rowsort label-9284
SELECT * FROM tab0 AS cor0 WHERE NOT ( + 25 ) BETWEEN col1 AND - + CAST ( NULL AS INTEGER ) * + col2
----
15
81
47

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 50 - + col0 IS NOT NULL
----

query I rowsort
SELECT - col2 AS col2 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - col1 * + + col0 * - col2, + col2 + 30 )
----

query II rowsort
SELECT DISTINCT + 57 AS col0, col2 FROM tab2
----
57
23
57
40
57
58

query I rowsort
SELECT - col2 * + 44 FROM tab2
----
-1012
-1760
-2552

onlyif mysql # aggregate syntax: 
query I rowsort label-9289
SELECT DISTINCT SUM( ALL - - 52 ) FROM tab1
----
156

skipif mysql # not compatible
query I rowsort label-9289
SELECT DISTINCT SUM ( ALL - - 52 ) FROM tab1
----
156

query I rowsort
SELECT + col2 FROM tab2 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9291
SELECT MIN( ALL col2 ) AS col1 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-9291
SELECT MIN ( ALL col2 ) AS col1 FROM tab0
----
10

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL = + - ( + - 78 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 * + col2 * - col0 < + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9294
SELECT - COUNT( DISTINCT col2 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9294
SELECT - COUNT ( DISTINCT col2 ) FROM tab1 AS cor0
----
-3

query II rowsort
SELECT ALL + - col1 * + col0 + - col0, + col1 AS col2 FROM tab1 AS cor0
----
-4368
47
-510
5
-765
14

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col0 IN ( + - ( + col2 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9297
SELECT - - SUM( + col1 ) FROM tab1 cor0
----
66

skipif mysql # not compatible
query I rowsort label-9297
SELECT - - SUM ( + col1 ) FROM tab1 cor0
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-9298
SELECT DISTINCT - col1 DIV + col2 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9298
SELECT DISTINCT - col1 / + col2 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
0

query I rowsort
SELECT ALL - 98 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to f17b7008a7deae1eb5a2e707ec237638

query III rowsort
SELECT * FROM tab2 WHERE - 32 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9301
SELECT DISTINCT + CAST( + COUNT( * ) AS SIGNED ) AS col2, - 30 FROM tab1 AS cor0
----
3
-30

skipif mysql # not compatible
query II rowsort label-9301
SELECT DISTINCT + CAST ( + COUNT ( * ) AS INTEGER ) AS col2, - 30 FROM tab1 AS cor0
----
3
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9302
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - 62 + - - col1 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9302
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - 62 + - - col1 AS col1 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 IN ( col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 57 + - + col1 FROM tab1 AS cor0
----
10
43
52

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( - 65 + + + col1 / + + col2 ) <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9306
SELECT + COUNT( * ) col2 FROM tab2 AS cor0 WHERE + col1 * + col2 + col0 IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9306
SELECT + COUNT ( * ) col2 FROM tab2 AS cor0 WHERE + col1 * + col2 + col0 IS NULL
----
0

query I rowsort
SELECT + - ( - 7 ) AS col0 FROM tab0 AS cor0
----
7
7
7

query I rowsort
SELECT - ( - + 45 ) * + 64 FROM tab1
----
2880
2880
2880

query I rowsort
SELECT DISTINCT 71 + - col1 FROM tab1
----
24
57
66

query I rowsort
SELECT - 40 - + + 35 + - 53 + - 69 * 43 + - 19 + + + col1 / + + 50 AS col1 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL 20 + - 76 * - - 93 + + col1 FROM tab1
----
-7001
-7034
-7043

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9312
SELECT ALL * FROM tab0 WHERE NULL NOT IN ( + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-9312
SELECT ALL * FROM tab0 WHERE NULL NOT IN ( + CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT ALL + 52 * + col1 FROM tab0
----
1092
4212
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9314
SELECT DISTINCT - col1 + ( + - 35 ) - - + 67 * + CAST( col1 AS SIGNED ) AS col2 FROM tab0
----
1351
31
5311

skipif mysql # not compatible
query I rowsort label-9314
SELECT DISTINCT - col1 + ( + - 35 ) - - + 67 * + CAST ( col1 AS INTEGER ) AS col2 FROM tab0
----
1351
31
5311

query I rowsort
SELECT - 86 * col2 FROM tab1
----
-5074
-5848
-8256

query I rowsort
SELECT + 66 - - 35 AS col1 FROM tab0
----
101
101
101

onlyif mysql # aggregate syntax: 
query I rowsort label-9317
SELECT DISTINCT 32 * + COUNT( * ) AS col1 FROM tab0
----
96

skipif mysql # not compatible
query I rowsort label-9317
SELECT DISTINCT 32 * + COUNT ( * ) AS col1 FROM tab0
----
96

query I rowsort
SELECT + - 80 / col2 AS col2 FROM tab0 WHERE + - col0 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT - 87 = + 39 * - - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col2 + + + col0 AS col1 FROM tab1 cor0
----
144
147
159

onlyif mysql # aggregate syntax: 
query I rowsort label-9321
SELECT DISTINCT + SUM( col2 ) FROM tab1 AS cor0 WHERE NOT ( - - col0 / + col0 IS NOT NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9321
SELECT DISTINCT + SUM ( col2 ) FROM tab1 AS cor0 WHERE NOT ( - - col0 / + col0 IS NOT NULL )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9322
SELECT ALL ( 1 ) DIV SUM( DISTINCT + + 26 ) col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9322
SELECT ALL ( 1 ) / SUM ( DISTINCT + + 26 ) col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
0

query II rowsort
SELECT + col1 AS col1, + col1 AS col2 FROM tab1
----
14
14
47
47
5
5

query I rowsort
SELECT ALL col2 * + + 13 FROM tab2
----
299
520
754

query I rowsort
SELECT + + 16 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

query I rowsort
SELECT - 55 FROM tab2 AS cor0 WHERE NOT NULL <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9327
SELECT DISTINCT + - 46 * COUNT( * ) + 29 FROM tab1 cor0
----
-109

skipif mysql # not compatible
query I rowsort label-9327
SELECT DISTINCT + - 46 * COUNT ( * ) + 29 FROM tab1 cor0
----
-109

query I rowsort
SELECT ALL col0 AS col0 FROM tab0 cor0 WHERE ( - 87 + + 34 * - - col0 + - col0 - col0 * + + ( ( col0 ) ) ) IS NOT NULL
----
15
87
97

query II rowsort
SELECT ALL 50 AS col1, 30 + + col0 FROM tab2 AS cor0
----
50
105
50
76
50
94

query I rowsort
SELECT - col1 + 70 FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
-7
19
3

onlyif mysql # DIV for integer division: 
query I rowsort label-9331
SELECT DISTINCT col2 DIV col0 + + col1 AS col1 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-9331
SELECT DISTINCT col2 / col0 + + col1 AS col1 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT ( - - 29 ) AS col1 FROM tab2 AS cor0
----
29
29
29

onlyif mysql # aggregate syntax: 
query I rowsort label-9333
SELECT COUNT( - + col0 ) col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9333
SELECT COUNT ( - + col0 ) col1 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9334
SELECT + CAST( - + col0 AS SIGNED ) FROM tab0 AS cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-9334
SELECT + CAST ( - + col0 AS INTEGER ) FROM tab0 AS cor0
----
-15
-87
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1, col1 col2 FROM tab2 AS cor0
----
-51
51
-67
67
-77
77

query I rowsort
SELECT + 50 AS col0 FROM tab0 cor0 WHERE NOT + col1 IS NULL
----
50
50
50

onlyif mysql # aggregate syntax: 
query II rowsort label-9337
SELECT DISTINCT 56 - + + 34, COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE col1 * + col2 > - 4
----
22
3

skipif mysql # not compatible
query II rowsort label-9337
SELECT DISTINCT 56 - + + 34, COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE col1 * + col2 > - 4
----
22
3

query I rowsort
SELECT DISTINCT - + ( + + 66 ) FROM tab0 AS cor0
----
-66

query I rowsort
SELECT ALL - 93 FROM tab0 WHERE + - 14 IS NOT NULL
----
-93
-93
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9340
SELECT ALL - col1 * - col2 * CAST( + - col1 AS SIGNED ) FROM tab1
----
-1475
-150212
-18816

skipif mysql # not compatible
query I rowsort label-9340
SELECT ALL - col1 * - col2 * CAST ( + - col1 AS INTEGER ) FROM tab1
----
-1475
-150212
-18816

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL < NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9342
SELECT - ( COUNT( * ) ) AS col2 FROM tab1, tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9342
SELECT - ( COUNT ( * ) ) AS col2 FROM tab1, tab2 AS cor0
----
-9

query I rowsort
SELECT DISTINCT - - col2 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col1 + - - 74 AS col1 FROM tab1
----
121
79
88

query I rowsort
SELECT - - ( + 37 ) AS col2 FROM tab2 AS cor0
----
37
37
37

query III rowsort
SELECT * FROM tab1 WHERE + + 71 + + col1 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9347
SELECT + 55 + - + MIN( ALL col0 ) * MIN( + col2 ) FROM tab0 AS cor0
----
-95

skipif mysql # not compatible
query I rowsort label-9347
SELECT + 55 + - + MIN ( ALL col0 ) * MIN ( + col2 ) FROM tab0 AS cor0
----
-95

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col2 <> + - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col1 + col1 + col2 FROM tab2 AS cor0
----
125
192
194

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9350
SELECT 44 * - - CAST( NULL AS SIGNED ) * - col2 + - col2 * + 35 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9350
SELECT 44 * - - CAST ( NULL AS INTEGER ) * - col2 + - col2 * + 35 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9351
SELECT DISTINCT 36 + - + COUNT( * ) FROM tab1 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-9351
SELECT DISTINCT 36 + - + COUNT ( * ) FROM tab1 AS cor0
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9352
SELECT + col2 + - 16 + - - CAST( NULL AS SIGNED ) AS col1, 20 AS col2 FROM tab0 cor0
----
NULL
20
NULL
20
NULL
20

skipif mysql # not compatible
query II rowsort label-9352
SELECT + col2 + - 16 + - - CAST ( NULL AS INTEGER ) AS col1, 20 AS col2 FROM tab0 cor0
----
NULL
20
NULL
20
NULL
20

query I rowsort
SELECT ALL - 40 + - - 75 + + col0 FROM tab1 AS cor0
----
120
126
86

query I rowsort
SELECT + - col1 + + - 89 - - col2 AS col1 FROM tab2 AS cor0
----
-117
-126
-98

query III rowsort
SELECT * FROM tab2 cor0 WHERE + 19 + - - 26 IS NULL
----

query II rowsort
SELECT ALL - col2 * + col1 + 18, + col2 FROM tab0 AS cor0
----
-192
10
-3789
47
-81
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9357
SELECT ALL + CAST( + + 53 AS SIGNED ) + col0 FROM tab0 AS cor0
----
140
150
68

skipif mysql # not compatible
query I rowsort label-9357
SELECT ALL + CAST ( + + 53 AS INTEGER ) + col0 FROM tab0 AS cor0
----
140
150
68

onlyif mysql # aggregate syntax: 
query I rowsort label-9358
SELECT ALL + + COUNT( * ) + + 56 FROM tab0 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-9358
SELECT ALL + + COUNT ( * ) + + 56 FROM tab0 AS cor0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9359
SELECT DISTINCT - COUNT( * ) - + + 94 * - + 64 FROM tab1
----
6013

skipif mysql # not compatible
query I rowsort label-9359
SELECT DISTINCT - COUNT ( * ) - + + 94 * - + 64 FROM tab1
----
6013

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 + + - col1 col2, 82 AS col0 FROM tab2
----
-28
82
-37
82
-9
82

query III rowsort
SELECT * FROM tab0 WHERE - col1 * + col1 <= NULL
----

query I rowsort
SELECT ALL col1 * - - col1 * - 28 FROM tab2
----
-125692
-166012
-72828

query I rowsort
SELECT - col2 * - col2 * + col2 AS col1 FROM tab0
----
1000
103823
970299

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9364
SELECT + CAST( - COUNT( * ) AS SIGNED ) * - COUNT( ALL - + 26 ) + COUNT( DISTINCT col0 ) AS col2 FROM tab0
----
12

skipif mysql # not compatible
query I rowsort label-9364
SELECT + CAST ( - COUNT ( * ) AS INTEGER ) * - COUNT ( ALL - + 26 ) + COUNT ( DISTINCT col0 ) AS col2 FROM tab0
----
12

query I rowsort
SELECT col0 * + 47 - - col2 AS col1 FROM tab0 AS cor0
----
4099
4658
752

query I rowsort
SELECT ALL + 16 + + col1 * col0 AS col1 FROM tab2 AS cor0
----
2362
4944
5041

onlyif mysql # aggregate syntax: 
query I rowsort label-9367
SELECT ALL + SUM( - - col1 ) FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-9367
SELECT ALL + SUM ( - - col1 ) FROM tab0
----
103

query III rowsort
SELECT * FROM tab0 WHERE NOT 49 < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 95 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9370
SELECT ALL - 86 DIV + + col2 + - - col2 * + + col2 + + + 37 * + + col1 FROM tab2 AS cor0
----
2413
4447
5842

skipif mysql # not compatible
query I rowsort label-9370
SELECT ALL - 86 / + + col2 + - - col2 * + + col2 + + + 37 * + + col1 FROM tab2 AS cor0
----
2413
4447
5842

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9371
SELECT DISTINCT + SUM( - + 87 ) DIV 74 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9371
SELECT DISTINCT + SUM ( - + 87 ) / 74 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT DISTINCT + col2 * + + col1 + + col1 * col0 FROM tab0 AS cor0
----
196
2037
5022

onlyif mysql # aggregate syntax: 
query I rowsort label-9373
SELECT ALL MAX( + - 0 ) FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-9373
SELECT ALL MAX ( + - 0 ) FROM tab0 cor0
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 32 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 33 * - 86 FROM tab0
----
-2838

onlyif mysql # aggregate syntax: 
query I rowsort label-9376
SELECT 75 * SUM( + col2 ) FROM tab1
----
16725

skipif mysql # not compatible
query I rowsort label-9376
SELECT 75 * SUM ( + col2 ) FROM tab1
----
16725

query I rowsort
SELECT DISTINCT + 14 * + + ( - col1 ) + col0 FROM tab0 WHERE - col1 IS NOT NULL
----
-1119
-207
83

onlyif mysql # DIV for integer division: 
query I rowsort label-9378
SELECT DISTINCT col1 DIV 11 FROM tab1
----
0
1
4

skipif mysql # not compatible
query I rowsort label-9378
SELECT DISTINCT col1 / 11 FROM tab1
----
0
1
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9379
SELECT ALL - col2 + + CAST( + col1 AS SIGNED ) + col0 FROM tab1 WHERE NOT + col2 * + 8 - col0 BETWEEN - col0 + 82 AND - ( - col0 ) + 95
----
-31
31
70

skipif mysql # not compatible
query I rowsort label-9379
SELECT ALL - col2 + + CAST ( + col1 AS INTEGER ) + col0 FROM tab1 WHERE NOT + col2 * + 8 - col0 BETWEEN - col0 + 82 AND - ( - col0 ) + 95
----
-31
31
70

query I rowsort
SELECT 17 FROM tab2 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 + - + 7 IS NOT NULL
----

query II rowsort
SELECT col0 AS col1, 18 FROM tab1 AS cor0
----
51
18
85
18
91
18

onlyif mysql # aggregate syntax: 
query I rowsort label-9383
SELECT ALL + COUNT( * ) + - 74 AS col0 FROM tab2 AS cor0
----
-71

skipif mysql # not compatible
query I rowsort label-9383
SELECT ALL + COUNT ( * ) + - 74 AS col0 FROM tab2 AS cor0
----
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-9384
SELECT 47 DIV - + col0 + - 59 FROM tab1
----
-59
-59
-59

skipif mysql # not compatible
query I rowsort label-9384
SELECT 47 / - + col0 + - 59 FROM tab1
----
-59
-59
-59

query I rowsort
SELECT - col0 + + - 16 FROM tab0
----
-103
-113
-31

query I rowsort
SELECT DISTINCT - 62 + + + col1 AS col1 FROM tab2 cor0
----
-11
15
5

query I rowsort
SELECT 98 * - col0 * 67 FROM tab0 AS cor0
----
-571242
-636902
-98490

query I rowsort
SELECT ALL - - col1 + + col0 + + 3 * + 2 FROM tab1 cor0
----
144
71
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 60 + - - col0 + - col1 col1 FROM tab2 AS cor0 WHERE NOT 61 BETWEEN + 94 AND NULL
----
47
55
68

query I rowsort
SELECT DISTINCT + col1 + - col1 + - - col0 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT DISTINCT - col2 * - col2 + 91 FROM tab0 AS cor0
----
191
2300
9892

onlyif mysql # aggregate syntax: 
query I rowsort label-9392
SELECT + SUM( DISTINCT col0 ) FROM tab1 cor0
----
227

skipif mysql # not compatible
query I rowsort label-9392
SELECT + SUM ( DISTINCT col0 ) FROM tab1 cor0
----
227

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9393
SELECT ALL col0 - + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9393
SELECT ALL col0 - + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 - 53 + + 29 * 43 + 87 FROM tab0
----
1296
1368
1378

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9395
SELECT col1 - - CAST( - col0 AS SIGNED ) FROM tab1
----
-37
-44
-80

skipif mysql # not compatible
query I rowsort label-9395
SELECT col1 - - CAST ( - col0 AS INTEGER ) FROM tab1
----
-37
-44
-80

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col0 IN ( col0 * + 38 + col1 )
----

query II rowsort
SELECT + col2 AS col0, - col1 AS col1 FROM tab2 WHERE 13 IS NULL
----

query I rowsort
SELECT ALL - col1 * + + col1 AS col0 FROM tab0 WHERE ( NULL ) IS NULL
----
-1
-441
-6561

onlyif mysql # aggregate syntax: 
query I rowsort label-9399
SELECT ALL + SUM( - + col0 ) AS col0 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-9399
SELECT ALL + SUM ( - + col0 ) AS col0 FROM tab2 AS cor0
----
-185

query I rowsort
SELECT - 58 * - - 4 * col0 + - col2 AS col1 FROM tab2 cor0
----
-10695
-14888
-17458

query I rowsort
SELECT DISTINCT + col0 * 43 FROM tab1 AS cor0
----
2193
3655
3913

query I rowsort
SELECT + + 39 * + col2 AS col0 FROM tab0 AS cor0
----
1833
3861
390

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 55 col0 FROM tab1
----
-55
-55
-55

query I rowsort
SELECT ALL - 38 FROM tab0 AS cor0 WHERE ( NULL ) <= col0 * + - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9405
SELECT ALL CAST( + 33 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
33
33
33

skipif mysql # not compatible
query I rowsort label-9405
SELECT ALL CAST ( + 33 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
33
33
33

query I rowsort
SELECT - + ( - + col2 ) * + col1 FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT ALL - + 4 * 75 + 14 AS col0 FROM tab1 AS cor0
----
-286
-286
-286

query I rowsort
SELECT + - 59 * col0 - + col1 AS col0 FROM tab1 AS cor0
----
-3023
-5020
-5416

query II rowsort
SELECT DISTINCT ( - 92 ) AS col0, - col0 FROM tab1 AS cor0
----
-92
-51
-92
-85
-92
-91

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( 59 ) <> NULL
----

query I rowsort
SELECT col1 AS col2 FROM tab0 AS cor0 WHERE NOT col1 + + col2 NOT BETWEEN 28 AND ( + col0 )
----
21

query I rowsort
SELECT ALL col0 * - col1 + - col1 AS col1 FROM tab0 AS cor0
----
-1296
-1848
-98

query I rowsort
SELECT DISTINCT col1 * + - 9 AS col1 FROM tab2
----
-459
-603
-693

query I rowsort
SELECT ALL col0 AS col0 FROM tab2 WHERE NOT - col1 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9415
SELECT ALL 30 * - + COUNT( * ) FROM tab1
----
-90

skipif mysql # not compatible
query I rowsort label-9415
SELECT ALL 30 * - + COUNT ( * ) FROM tab1
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9416
SELECT col2 / + 91 col2, + col1 + + - CAST( + 93 AS SIGNED ) AS col2, ( + col2 ) * - + 9 FROM tab0 WHERE NOT - - col2 IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-9416
SELECT col2 / + 91 col2, + col1 + + - CAST ( + 93 AS INTEGER ) AS col2, ( + col2 ) * - + 9 FROM tab0 WHERE NOT - - col2 IS NOT NULL
----

query I rowsort
SELECT + 42 * + + 38 AS col0 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9418
SELECT DISTINCT + SUM( - + 66 ) AS col1 FROM tab0
----
-198

skipif mysql # not compatible
query I rowsort label-9418
SELECT DISTINCT + SUM ( - + 66 ) AS col1 FROM tab0
----
-198

query I rowsort
SELECT - col0 * - - 11 * + 83 + - col1 AS col1 FROM tab2
----
-42049
-58509
-68542

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 IS NOT NULL OR ( NULL IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9421
SELECT - + COUNT( * ) * COUNT( * ) + + 28 AS col1 FROM tab1 cor0
----
19

skipif mysql # not compatible
query I rowsort label-9421
SELECT - + COUNT ( * ) * COUNT ( * ) + + 28 AS col1 FROM tab1 cor0
----
19

query I rowsort
SELECT DISTINCT 50 + + col1 AS col1 FROM tab0 AS cor0
----
131
51
71

onlyif mysql # aggregate syntax: 
query I rowsort label-9423
SELECT COUNT( * ) - 39 FROM tab0
----
-36

skipif mysql # not compatible
query I rowsort label-9423
SELECT COUNT ( * ) - 39 FROM tab0
----
-36

query I rowsort
SELECT - - col0 + - col1 + + col1 * - col1 FROM tab1 AS cor0
----
-159
-2165
55

onlyif mysql # aggregate syntax: 
query I rowsort label-9425
SELECT - + COUNT( * ) FROM tab0 AS cor0 WHERE col1 < - + 6 + 78 - 29
----
-2

skipif mysql # not compatible
query I rowsort label-9425
SELECT - + COUNT ( * ) FROM tab0 AS cor0 WHERE col1 < - + 6 + 78 - 29
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9426
SELECT ALL + SUM( - - col2 ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
223

skipif mysql # not compatible
query I rowsort label-9426
SELECT ALL + SUM ( - - col2 ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
223

query I rowsort
SELECT ALL + ( 73 ) AS col0 FROM tab2 AS cor0
----
73
73
73

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 <> + 65 * - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9429
SELECT DISTINCT + ( + 80 ) * CAST( MAX( + - col0 ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-1200

skipif mysql # not compatible
query I rowsort label-9429
SELECT DISTINCT + ( + 80 ) * CAST ( MAX ( + - col0 ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-1200

query I rowsort
SELECT ALL + 21 + - - 55 AS col0 FROM tab0 AS cor0
----
76
76
76

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 51 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT 8 + - col0, 50 AS col2 FROM tab2 AS cor0
----
-38
50
-56
50
-67
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 1 col0 FROM tab2 AS cor0 WHERE 95 * + - ( col1 ) NOT BETWEEN - col1 AND + 19
----
1
1
1

query II rowsort
SELECT col1, + col0 * - col1 FROM tab2 WHERE - + 82 + - - 49 IS NOT NULL
----
51
-2346
67
-5025
77
-4928

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - - 51 BETWEEN NULL AND + 30
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9436
SELECT - ( + CAST( NULL AS SIGNED ) ) AS col1, col1 * + col2 + + col1 * - col2 AS col0 FROM tab1
----
NULL
0
NULL
0
NULL
0

skipif mysql # not compatible
query II rowsort label-9436
SELECT - ( + CAST ( NULL AS INTEGER ) ) AS col1, col1 * + col2 + + col1 * - col2 AS col0 FROM tab1
----
NULL
0
NULL
0
NULL
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9437
SELECT + COUNT( ALL + col1 ), COUNT( * ) FROM tab1
----
3
3

skipif mysql # not compatible
query II rowsort label-9437
SELECT + COUNT ( ALL + col1 ), COUNT ( * ) FROM tab1
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9438
SELECT DISTINCT - + ( COUNT( * ) ) * 37 AS col0 FROM tab0 AS cor0
----
-111

skipif mysql # not compatible
query I rowsort label-9438
SELECT DISTINCT - + ( COUNT ( * ) ) * 37 AS col0 FROM tab0 AS cor0
----
-111

query I rowsort
SELECT ALL col2 * - col1 * + col0 AS col0 FROM tab0 cor0
----
-18270
-57105
-9603

query I rowsort
SELECT ALL + col2 + + - col1 AS col1 FROM tab0 WHERE NULL > + - col1
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 * - - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT col2 * - col1 * + - col2, col2 AS col2 FROM tab1
----
129024
96
17405
59
217328
68

query I rowsort
SELECT + - 41 AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 4ba0c102091f9cbc9fe9439b04584e70

onlyif mysql # aggregate syntax: 
query II rowsort label-9444
SELECT DISTINCT - COUNT( * ) AS col2, COUNT( * ) col1 FROM tab2
----
-3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9444
SELECT DISTINCT - COUNT ( * ) AS col2, COUNT ( * ) col1 FROM tab2
----
-3
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9445
SELECT ALL + CAST( CAST( + col2 AS SIGNED ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-9445
SELECT ALL + CAST ( CAST ( + col2 AS INTEGER ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT DISTINCT + col0 FROM tab0 AS cor0 WHERE NULL > - col0
----

query I rowsort
SELECT ALL 94 * + + col1 * + 81 AS col2 FROM tab0
----
159894
616734
7614

query I rowsort
SELECT ALL + col0 + - + ( - col0 ) - + col2 - - 35 AS col1 FROM tab0
----
130
18
199

onlyif mysql # aggregate syntax: 
query I rowsort label-9449
SELECT - 27 * 66 * COUNT( * ) AS col2 FROM tab1
----
-5346

skipif mysql # not compatible
query I rowsort label-9449
SELECT - 27 * 66 * COUNT ( * ) AS col2 FROM tab1
----
-5346

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 13 col2 FROM tab0
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9451
SELECT ALL + + 82 + + ( col2 ) * + col0 AS col2, CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
787
NULL
952
NULL
9685
NULL

skipif mysql # not compatible
query II rowsort label-9451
SELECT ALL + + 82 + + ( col2 ) * + col0 AS col2, CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
787
NULL
952
NULL
9685
NULL

query II rowsort
SELECT DISTINCT + 28 * + - col0, - 10 AS col1 FROM tab1 AS cor0
----
-1428
-10
-2380
-10
-2548
-10

query I rowsort
SELECT ALL - 98 + + + 48 + - col0 AS col0 FROM tab0 cor0
----
-137
-147
-65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 59 + - + col1 col2, - 1 AS col1 FROM tab1 AS cor0
----
12
-1
45
-1
54
-1

query II rowsort
SELECT - + col1 + + col2, - col2 * + - ( + - ( 58 ) ) * col0 AS col0 FROM tab0 AS cor0
----
-11
-50460
-34
-40890
98
-556974

onlyif mysql # DIV for integer division: 
query I rowsort label-9456
SELECT ALL + col2 DIV col1 + + col1 FROM tab1
----
16
20
48

skipif mysql # not compatible
query I rowsort label-9456
SELECT ALL + col2 / col1 + + col1 FROM tab1
----
16
20
48

onlyif mysql # aggregate syntax: 
query I rowsort label-9457
SELECT ALL - SUM( - col2 ) - 36 FROM tab0
----
120

skipif mysql # not compatible
query I rowsort label-9457
SELECT ALL - SUM ( - col2 ) - 36 FROM tab0
----
120

query I rowsort
SELECT DISTINCT - ( + col1 ) - - col0 AS col0 FROM tab2
----
-13
-5
8

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL > col0 * 14 * + 33 * - + col0 + - + col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9460
SELECT COUNT( * ) FROM tab1 cor0 WHERE - ( - 37 ) <= CAST( NULL AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-9460
SELECT COUNT ( * ) FROM tab1 cor0 WHERE - ( - 37 ) <= CAST ( NULL AS INTEGER )
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 * - 19 <> - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - - col1 + ( - col2 ) AS col2 FROM tab2 AS cor0
----
28
37
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9463
SELECT + 74 - MIN( + col0 ) FROM tab1 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-9463
SELECT + 74 - MIN ( + col0 ) FROM tab1 AS cor0
----
23

query I rowsort
SELECT col2 - + + col0 FROM tab2 AS cor0
----
-17
-23
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-9465
SELECT ALL - COUNT( * ) + + ( + - 96 ) FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-9465
SELECT ALL - COUNT ( * ) + + ( + - 96 ) FROM tab0 AS cor0
----
-99

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9467
SELECT - SUM( DISTINCT + - 23 ) FROM tab1
----
23

skipif mysql # not compatible
query I rowsort label-9467
SELECT - SUM ( DISTINCT + - 23 ) FROM tab1
----
23

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - - 57 + + col1 + + - 78 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9469
SELECT ALL 47 DIV - 43 AS col1 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9469
SELECT ALL 47 / - 43 AS col1 FROM tab2
----
-1
-1
-1

query II rowsort
SELECT ALL - 27 AS col0, - col0 + - col0 + + + col0 FROM tab2
----
-27
-46
-27
-64
-27
-75

query II rowsort
SELECT DISTINCT col0 AS col0, - col2 AS col1 FROM tab2
----
46
-23
64
-40
75
-58

query II rowsort
SELECT col2 AS col2, - ( - - col0 ) FROM tab2 cor0
----
23
-46
40
-64
58
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 22 col0 FROM tab1 AS cor0 WHERE NULL NOT IN ( - 6 )
----

query II rowsort
SELECT - col1, + col1 * - col1 AS col0 FROM tab1 cor0
----
-14
-196
-47
-2209
-5
-25

query II rowsort
SELECT DISTINCT + col2, 59 + + 85 + - 3 - - 82 * + + col2 AS col0 FROM tab1 cor0
----
59
4979
68
5717
96
8013

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 97 col1, - 0 FROM tab0 AS cor0
----
97
0
97
0
97
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9477
SELECT - MAX( ALL col2 ) * 97 FROM tab1 AS cor0
----
-9312

skipif mysql # not compatible
query I rowsort label-9477
SELECT - MAX ( ALL col2 ) * 97 FROM tab1 AS cor0
----
-9312

query I rowsort
SELECT DISTINCT - - 45 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-9479
SELECT * FROM tab1 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( CAST( NULL AS SIGNED ) ) <= NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-9479
SELECT * FROM tab1 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( CAST ( NULL AS INTEGER ) ) <= NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL < - 10 / - col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9481
SELECT DISTINCT + COUNT( * ) + CAST( - SUM( ALL 23 ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-9481
SELECT DISTINCT + COUNT ( * ) + CAST ( - SUM ( ALL 23 ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-66

query I rowsort
SELECT ALL col2 * 16 / 38 / - col2 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN - + col0 AND + 44
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9483
SELECT ALL - - col2 + + col1 DIV - 82 * 18 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-9483
SELECT ALL - - col2 + + col1 / - 82 * 18 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # DIV for integer division: 
query I rowsort label-9484
SELECT + + 95 DIV + col0 AS col2 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9484
SELECT + + 95 / + col0 AS col2 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9485
SELECT ALL - col1 + + CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9485
SELECT ALL - col1 + + CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 + - ( col0 ) FROM tab0 AS cor0
----
-174
-194
-30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 + + col2 + - + col1 * + + ( + col2 ) * - col2 col0 FROM tab2 AS cor0
----
123304
225521
27048

query I rowsort
SELECT DISTINCT 55 + + col1 + - 88 FROM tab0 cor0
----
-12
-32
48

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 / + 41 + + + col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-14
-47
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9491
SELECT ( - - COUNT( * ) ) * + 55 + CAST( NULL AS SIGNED ) * - COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9491
SELECT ( - - COUNT ( * ) ) * + 55 + CAST ( NULL AS INTEGER ) * - COUNT ( * ) FROM tab2
----
NULL

query I rowsort
SELECT col1 AS col1 FROM tab0 WHERE + col0 < + - 25
----

query I rowsort
SELECT ALL 4 * - - 30 FROM tab1
----
120
120
120

onlyif mysql # aggregate syntax: 
query I rowsort label-9494
SELECT ALL MAX( + - col0 ) FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-9494
SELECT ALL MAX ( + - col0 ) FROM tab1
----
-51

query I rowsort
SELECT + col2 + + 46 AS col1 FROM tab2 AS cor0 WHERE 57 IS NULL
----

query I rowsort
SELECT DISTINCT - ( + + col0 ) + col0 * + 15 * col0 * - col1 AS col2 FROM tab1 AS cor0
----
-541960
-546261
-5838196

onlyif mysql # aggregate syntax: 
query I rowsort label-9497
SELECT ALL COUNT( * ) + - + 57 FROM tab0 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-9497
SELECT ALL COUNT ( * ) + - + 57 FROM tab0 AS cor0
----
-54

query I rowsort
SELECT + col2 + - - col0 AS col1 FROM tab1 AS cor0
----
144
147
159

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9499
SELECT DISTINCT + - MIN( ALL 15 ) - + CAST( - - COUNT( * ) AS SIGNED ) - - - SUM( - + col0 ) AS col1 FROM tab2 AS cor0
----
167

skipif mysql # not compatible
query I rowsort label-9499
SELECT DISTINCT + - MIN ( ALL 15 ) - + CAST ( - - COUNT ( * ) AS INTEGER ) - - - SUM ( - + col0 ) AS col1 FROM tab2 AS cor0
----
167

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9500
SELECT ALL col1 * col2 + 31 + + CAST( NULL AS DECIMAL ) + - - 84 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9500
SELECT ALL col1 * col2 + 31 + + CAST ( NULL AS REAL ) + - - 84 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 40 * col1 * - 61 + 73 FROM tab1 AS cor0
----
-114607
-12127
-34087

onlyif mysql # DIV for integer division: 
query I rowsort label-9502
SELECT ALL - + col1 DIV 18 FROM tab0 AS cor0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-9502
SELECT ALL - + col1 / 18 FROM tab0 AS cor0
----
-1
-4
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9503
SELECT + CAST( - MAX( ALL + - 96 ) AS SIGNED ) FROM tab2
----
96

skipif mysql # not compatible
query I rowsort label-9503
SELECT + CAST ( - MAX ( ALL + - 96 ) AS INTEGER ) FROM tab2
----
96

query II rowsort
SELECT col1, - 97 FROM tab1
----
14
-97
47
-97
5
-97

query I rowsort
SELECT ALL col0 * + 25 AS col1 FROM tab1
----
1275
2125
2275

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0, + 9 * col0 col2 FROM tab1 AS cor0
----
51
459
85
765
91
819

query I rowsort
SELECT DISTINCT - 31 FROM tab0 AS cor0 WHERE 3 / - ( - col0 ) > NULL
----

query I rowsort
SELECT + 95 + 79 FROM tab1
----
174
174
174

onlyif mysql # aggregate syntax: 
query I rowsort label-9509
SELECT + SUM( - 3 ) + + COUNT( * ) AS col0 FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-9509
SELECT + SUM ( - 3 ) + + COUNT ( * ) AS col0 FROM tab1
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9510
SELECT col1 + - 16 + + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9510
SELECT col1 + - 16 + + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9511
SELECT - COUNT( * ) + + 20 FROM tab2
----
17

skipif mysql # not compatible
query I rowsort label-9511
SELECT - COUNT ( * ) + + 20 FROM tab2
----
17

query I rowsort
SELECT DISTINCT - 0 AS col1 FROM tab1 AS cor0 WHERE - 78 + - 72 >= NULL
----

query I rowsort
SELECT ALL + 56 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9514
SELECT ALL + SUM( + - col0 ) FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-9514
SELECT ALL + SUM ( + - col0 ) FROM tab2 AS cor0
----
-185

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 39 + col2 col0 FROM tab0 AS cor0
----
-29
60
8

onlyif mysql # DIV for integer division: 
query I rowsort label-9516
SELECT ALL + col1 DIV - col2 + - 58 AS col0 FROM tab0
----
-58
-59
-60

skipif mysql # not compatible
query I rowsort label-9516
SELECT ALL + col1 / - col2 + - 58 AS col0 FROM tab0
----
-58
-59
-60

query III rowsort
SELECT * FROM tab1 WHERE + 53 > NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( - - col2 ) + + - col0 BETWEEN NULL AND NULL
----

query I rowsort
SELECT col0 + + 11 FROM tab2
----
57
75
86

query I rowsort
SELECT ALL + + 10 + - col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col0 AND NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9521
SELECT DISTINCT col1 DIV + + col1 - + 27 AS col0, + 41 FROM tab0
----
-26
41

skipif mysql # not compatible
query II rowsort label-9521
SELECT DISTINCT col1 / + + col1 - + 27 AS col0, + 41 FROM tab0
----
-26
41

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + - ( - col2 ) * 98 + col2 + - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9523
SELECT + - ( COUNT( ALL 61 ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-9523
SELECT + - ( COUNT ( ALL 61 ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9524
SELECT DISTINCT - 18 * - - 73 - COUNT( * ) + - 56 FROM tab0 cor0
----
-1373

skipif mysql # not compatible
query I rowsort label-9524
SELECT DISTINCT - 18 * - - 73 - COUNT ( * ) + - 56 FROM tab0 cor0
----
-1373

onlyif mysql # aggregate syntax: 
query I rowsort label-9525
SELECT ALL 24 * + - MAX( - col0 ) AS col0 FROM tab0 AS cor0
----
360

skipif mysql # not compatible
query I rowsort label-9525
SELECT ALL 24 * + - MAX ( - col0 ) AS col0 FROM tab0 AS cor0
----
360

onlyif mysql # DIV for integer division: 
query I rowsort label-9526
SELECT DISTINCT col0 DIV - 97 + col2 DIV - 82 FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
-2
0

skipif mysql # not compatible
query I rowsort label-9526
SELECT DISTINCT col0 / - 97 + col2 / - 82 FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
-2
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9527
SELECT ALL - + SUM( ALL - 53 ) AS col1 FROM tab0 AS cor0
----
159

skipif mysql # not compatible
query I rowsort label-9527
SELECT ALL - + SUM ( ALL - 53 ) AS col1 FROM tab0 AS cor0
----
159

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9528
SELECT ALL + COUNT( ALL - - 96 ) * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9528
SELECT ALL + COUNT ( ALL - - 96 ) * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9529
SELECT 54 DIV 79 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9529
SELECT 54 / 79 AS col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query II rowsort label-9530
SELECT col1 * + 33, - 76 + - + 89 + + + col1 DIV + col0 + + 52 AS col0 FROM tab0
----
2673
-108
33
-113
693
-113

skipif mysql # not compatible
query II rowsort label-9530
SELECT col1 * + 33, - 76 + - + 89 + + + col1 / + col0 + + 52 AS col0 FROM tab0
----
2673
-108
33
-113
693
-113

onlyif mysql # aggregate syntax: 
query I rowsort label-9531
SELECT ALL - ( COUNT( * ) ) * - COUNT( * ) - - 92 AS col1 FROM tab1
----
101

skipif mysql # not compatible
query I rowsort label-9531
SELECT ALL - ( COUNT ( * ) ) * - COUNT ( * ) - - 92 AS col1 FROM tab1
----
101

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 5 * - - col2 col0, - 41 FROM tab1
----
295
-41
340
-41
480
-41

query I rowsort
SELECT ALL + ( + 70 ) * - + col1 FROM tab0
----
-1470
-5670
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-9534
SELECT DISTINCT - - COUNT( * ) FROM tab1 WHERE - col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9534
SELECT DISTINCT - - COUNT ( * ) FROM tab1 WHERE - col1 IS NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9535
SELECT DISTINCT + col2 DIV + - 76 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9535
SELECT DISTINCT + col2 / + - 76 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9536
SELECT ALL - MIN( ALL + col0 ) FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-9536
SELECT ALL - MIN ( ALL + col0 ) FROM tab1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-9537
SELECT DISTINCT + + COUNT( * ) FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col1 / + col0 AND - col0
----
0

skipif mysql # not compatible
query I rowsort label-9537
SELECT DISTINCT + + COUNT ( * ) FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col1 / + col0 AND - col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9538
SELECT MAX( DISTINCT CAST( NULL AS SIGNED ) ), + 11 * - 77 + + 25 AS col2 FROM tab0 cor0
----
NULL
-822

skipif mysql # not compatible
query II rowsort label-9538
SELECT MAX ( DISTINCT CAST ( NULL AS INTEGER ) ), + 11 * - 77 + + 25 AS col2 FROM tab0 cor0
----
NULL
-822

onlyif mysql # aggregate syntax: 
query I rowsort label-9539
SELECT - + MIN( 28 ) FROM tab0 AS cor0
----
-28

skipif mysql # not compatible
query I rowsort label-9539
SELECT - + MIN ( 28 ) FROM tab0 AS cor0
----
-28

query I rowsort
SELECT + ( + 32 ) * - 53 AS col1 FROM tab2 AS cor0
----
-1696
-1696
-1696

onlyif mysql # aggregate syntax: 
query I rowsort label-9541
SELECT DISTINCT + COUNT( * ) + + + 87 FROM tab1 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-9541
SELECT DISTINCT + COUNT ( * ) + + + 87 FROM tab1 AS cor0
----
90

query I rowsort
SELECT + 54 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9543
SELECT - col0 DIV 99 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9543
SELECT - col0 / 99 AS col2 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9544
SELECT + 44 * COUNT( * ) + 96 FROM tab0 AS cor0
----
228

skipif mysql # not compatible
query I rowsort label-9544
SELECT + 44 * COUNT ( * ) + 96 FROM tab0 AS cor0
----
228

query I rowsort
SELECT - 14 + + + col1 + 65 FROM tab0 AS cor0
----
132
52
72

onlyif mysql # aggregate syntax: 
query I rowsort label-9546
SELECT ALL + COUNT( * ) + 91 FROM tab2 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-9546
SELECT ALL + COUNT ( * ) + 91 FROM tab2 AS cor0
----
94

query I rowsort
SELECT ALL - 82 + + - ( col0 ) + col2 FROM tab1 AS cor0
----
-105
-108
-37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - - col1 col2 FROM tab2 AS cor0
----
117
125
74

query I rowsort
SELECT ALL + 91 FROM tab1 AS cor0 WHERE NULL <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9550
SELECT col0 + + - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9550
SELECT col0 + + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN + - col2 * + col1 + - col0 AND col2
----

query I rowsort
SELECT 49 + - col1 AS col1 FROM tab1
----
2
35
44

onlyif mysql # aggregate syntax: 
query I rowsort label-9553
SELECT ALL + 65 - - COUNT( * ) + 27 * + - COUNT( * ) FROM tab1
----
-13

skipif mysql # not compatible
query I rowsort label-9553
SELECT ALL + 65 - - COUNT ( * ) + 27 * + - COUNT ( * ) FROM tab1
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9554
SELECT DISTINCT - col2 AS col1, - CAST( + col2 AS SIGNED ) FROM tab0
----
-10
-10
-47
-47
-99
-99

skipif mysql # not compatible
query II rowsort label-9554
SELECT DISTINCT - col2 AS col1, - CAST ( + col2 AS INTEGER ) FROM tab0
----
-10
-10
-47
-47
-99
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9555
SELECT 86 * COUNT( * ) FROM tab0 AS cor0
----
258

skipif mysql # not compatible
query I rowsort label-9555
SELECT 86 * COUNT ( * ) FROM tab0 AS cor0
----
258

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9556
SELECT ALL CAST( - 97 AS SIGNED ) FROM tab0 AS cor0
----
-97
-97
-97

skipif mysql # not compatible
query I rowsort label-9556
SELECT ALL CAST ( - 97 AS INTEGER ) FROM tab0 AS cor0
----
-97
-97
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9557
SELECT ALL - COUNT( * ) AS col1, - CAST( 46 AS SIGNED ) FROM tab0 cor0
----
-3
-46

skipif mysql # not compatible
query II rowsort label-9557
SELECT ALL - COUNT ( * ) AS col1, - CAST ( 46 AS INTEGER ) FROM tab0 cor0
----
-3
-46

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - + col2 ) > - + col2 / - - 43
----

query I rowsort
SELECT - 16 * - col1 FROM tab2
----
1072
1232
816

onlyif mysql # aggregate syntax: 
query I rowsort label-9560
SELECT DISTINCT - MIN( + col2 ) AS col2 FROM tab2 cor0
----
-23

skipif mysql # not compatible
query I rowsort label-9560
SELECT DISTINCT - MIN ( + col2 ) AS col2 FROM tab2 cor0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-9561
SELECT ( + ( - - COUNT( * ) ) ) col1 FROM tab2 WHERE NOT NULL NOT IN ( 7 * - + ( + - col2 ) * + col0 * + col1 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9561
SELECT ( + ( - - COUNT ( * ) ) ) col1 FROM tab2 WHERE NOT NULL NOT IN ( 7 * - + ( + - col2 ) * + col0 * + col1 )
----
0

query I rowsort
SELECT DISTINCT 36 * - 27 * + col2 AS col1 FROM tab2
----
-22356
-38880
-56376

query I rowsort
SELECT ALL + 58 * - + col1 FROM tab2
----
-2958
-3886
-4466

query I rowsort
SELECT + col0 * + - 33 FROM tab0
----
-2871
-3201
-495

onlyif mysql # aggregate syntax: 
query I rowsort label-9565
SELECT DISTINCT - SUM( - + 22 ) FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-9565
SELECT DISTINCT - SUM ( - + 22 ) FROM tab1
----
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 col0, col0 + + col1 AS col0 FROM tab0
----
1
98
21
108
81
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9567
SELECT - MIN( + + 84 ) FROM tab2
----
-84

skipif mysql # not compatible
query I rowsort label-9567
SELECT - MIN ( + + 84 ) FROM tab2
----
-84

query II rowsort
SELECT ALL 2 AS col2, + 19 AS col2 FROM tab0
----
2
19
2
19
2
19

query I rowsort
SELECT DISTINCT col0 * col2 * - col0 * + 13 FROM tab0
----
-12109383
-137475
-983970

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col1 NOT BETWEEN + 56 AND + 66 * + - col1 * + ( + 10 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col2 + - col0 + col0 * col0 AS col1 FROM tab2 AS cor0
----
2093
4072
5608

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT + 25 * + 34 IS NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9573
SELECT * FROM tab0 WHERE NULL NOT BETWEEN NULL AND - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9573
SELECT * FROM tab0 WHERE NULL NOT BETWEEN NULL AND - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL col2 + - 33 - + col1 FROM tab0
----
-44
-67
65

onlyif mysql # aggregate syntax: 
query I rowsort label-9575
SELECT DISTINCT 78 + - COUNT( * ) FROM tab0 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-9575
SELECT DISTINCT 78 + - COUNT ( * ) FROM tab0 AS cor0
----
75

query I rowsort
SELECT - col2 FROM tab2 AS cor0 WHERE col0 * - 15 BETWEEN NULL AND NULL
----

query I rowsort
SELECT col0 + + + col1 * + col2 * + + 72 AS col2 FROM tab1 AS cor0 WHERE col1 NOT IN ( - 33 )
----
21325
230203
96819

query I rowsort
SELECT DISTINCT - col0 + + 98 FROM tab2 AS cor0
----
23
34
52

query III rowsort
SELECT * FROM tab1 WHERE + col2 BETWEEN - ( col2 ) AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE + col0 * - 83 IS NULL
----

query I rowsort
SELECT ALL - 58 + - + col0 FROM tab1
----
-109
-143
-149

query I rowsort
SELECT DISTINCT + 25 - col1 AS col0 FROM tab1
----
-22
11
20

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) > + 43 AND - 42 * + col0 + + 78 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9584
SELECT COUNT( DISTINCT - col1 ) * - COUNT( * ) - + 10 - + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9584
SELECT COUNT ( DISTINCT - col1 ) * - COUNT ( * ) - + 10 - + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9585
SELECT COUNT( * ) - + 17 * - 22 FROM tab1
----
377

skipif mysql # not compatible
query I rowsort label-9585
SELECT COUNT ( * ) - + 17 * - 22 FROM tab1
----
377

query I rowsort
SELECT ALL col0 - - col2 * - col1 AS col0 FROM tab2
----
-1127
-3016
-3811

onlyif mysql # DIV for integer division: 
query I rowsort label-9587
SELECT DISTINCT - ( - col1 ) DIV col1 - - + col0 * - + col1 + - + 67 FROM tab1
----
-4343
-491
-780

skipif mysql # not compatible
query I rowsort label-9587
SELECT DISTINCT - ( - col1 ) / col1 - - + col0 * - + col1 + - + 67 FROM tab1
----
-4343
-491
-780

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9588
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 IN ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-9588
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 IN ( - CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT + + col1 AS col2 FROM tab2 AS cor0 WHERE NOT - ( + 35 ) IS NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9590
SELECT DISTINCT + 61 * + COUNT( * ) AS col0 FROM tab1 AS cor0
----
183

skipif mysql # not compatible
query I rowsort label-9590
SELECT DISTINCT + 61 * + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
183

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9591
SELECT - CAST( NULL AS SIGNED ) col1, 4 AS col0, - ( + 39 ) AS col1 FROM tab2
----
9 values hashing to 3e296d347d1003400e97646e345ca1b7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-9591
SELECT - CAST ( NULL AS INTEGER ) col1, 4 AS col0, - ( + 39 ) AS col1 FROM tab2
----
9 values hashing to 3e296d347d1003400e97646e345ca1b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9592
SELECT - COUNT( * ) + + 30 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
21

skipif mysql # not compatible
query I rowsort label-9592
SELECT - COUNT ( * ) + + 30 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
21

query II rowsort
SELECT + col2, col1 * + - col1 * + - 27 + + col2 FROM tab2 AS cor0
----
23
70250
40
160123
58
121261

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9594
SELECT col0, CAST( - ( + col2 ) AS SIGNED ) - - col0 - ( col2 ) AS col1 FROM tab0 cor0
----
15
-79
87
67
97
-101

skipif mysql # not compatible
query II rowsort label-9594
SELECT col0, CAST ( - ( + col2 ) AS INTEGER ) - - col0 - ( col2 ) AS col1 FROM tab0 cor0
----
15
-79
87
67
97
-101

query II rowsort
SELECT ALL 55, + col0 AS col2 FROM tab0 AS cor0
----
55
15
55
87
55
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9596
SELECT ALL - 31 * - COUNT( * ) - + 75 FROM tab2 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-9596
SELECT ALL - 31 * - COUNT ( * ) - + 75 FROM tab2 AS cor0
----
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col2 FROM tab1 WHERE NOT ( ( NOT col1 > + + col1 / col1 + - col2 ) )
----
59
68
96

query IIIIII rowsort
SELECT ALL * FROM tab0, tab1 AS cor0 WHERE NOT + + 90 / + - 4 IS NOT NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 AS cor0 WHERE - 64 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9600
SELECT - SUM( ALL + col0 ) AS col2 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-9600
SELECT - SUM ( ALL + col0 ) AS col2 FROM tab0 AS cor0
----
-199

onlyif mysql # aggregate syntax: 
query II rowsort label-9601
SELECT COUNT( 84 ) AS col2, + ( - 50 ) AS col2 FROM tab2 AS cor0
----
3
-50

skipif mysql # not compatible
query II rowsort label-9601
SELECT COUNT ( 84 ) AS col2, + ( - 50 ) AS col2 FROM tab2 AS cor0
----
3
-50

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 12 + 2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9603
SELECT DISTINCT SUM( + + col2 ) + - + MAX( DISTINCT - col1 ) FROM tab0 AS cor0
----
157

skipif mysql # not compatible
query I rowsort label-9603
SELECT DISTINCT SUM ( + + col2 ) + - + MAX ( DISTINCT - col1 ) FROM tab0 AS cor0
----
157

query IIIIII rowsort
SELECT DISTINCT * FROM ( tab1 AS cor0 CROSS JOIN tab1 cor1 ) WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9605
SELECT DISTINCT - COUNT( * ) * + - 26 AS col0 FROM tab2
----
78

skipif mysql # not compatible
query I rowsort label-9605
SELECT DISTINCT - COUNT ( * ) * + - 26 AS col0 FROM tab2
----
78

query I rowsort
SELECT + - 94 - + + 34 AS col2 FROM tab1 WHERE - - 59 IS NOT NULL
----
-128
-128
-128

onlyif mysql # aggregate syntax: 
query I rowsort label-9607
SELECT DISTINCT - + COUNT( + 33 ) col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9607
SELECT DISTINCT - + COUNT ( + 33 ) col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

query I rowsort
SELECT + 0 FROM tab2 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 93 >= col2
----
51
14
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9610
SELECT - 56 + + COUNT( - - ( - col2 ) ) AS col2 FROM tab2 AS cor0
----
-53

skipif mysql # not compatible
query I rowsort label-9610
SELECT - 56 + + COUNT ( - - ( - col2 ) ) AS col2 FROM tab2 AS cor0
----
-53

query II rowsort
SELECT + + 15 + - col0 * - col0 AS col1, col2 FROM tab0 AS cor0
----
240
47
7584
10
9424
99

query I rowsort
SELECT ( - 57 ) + - + col2 * 48 AS col1 FROM tab2 AS cor0
----
-1161
-1977
-2841

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9613
SELECT * FROM tab0 AS cor0 WHERE + CAST( col0 AS SIGNED ) BETWEEN NULL AND - ( + 31 )
----

skipif mysql # not compatible
query III rowsort label-9613
SELECT * FROM tab0 AS cor0 WHERE + CAST ( col0 AS INTEGER ) BETWEEN NULL AND - ( + 31 )
----

query II rowsort
SELECT col2 + - - 89 * - - col1, col2 FROM tab1 AS cor0
----
1342
96
4251
68
504
59

query I rowsort
SELECT + col0 + + 99 AS col1 FROM tab2 AS cor0
----
145
163
174

query I rowsort
SELECT - 30 - - col1 FROM tab0 AS cor0 WHERE NULL <> NULL
----

query I rowsort
SELECT + col2 + - + 18 AS col2 FROM tab2 AS cor0
----
22
40
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9618
SELECT ALL 79 * COUNT( * ) FROM tab2 AS cor0
----
237

skipif mysql # not compatible
query I rowsort label-9618
SELECT ALL 79 * COUNT ( * ) FROM tab2 AS cor0
----
237

query I rowsort
SELECT col2 + + + ( + col0 ) FROM tab0 AS cor0
----
196
62
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9620
SELECT DISTINCT - 91 * + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9620
SELECT DISTINCT - 91 * + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT col2 - + 38 FROM tab1 WHERE 81 / 4 >= - 68
----
21
30
58

query I rowsort
SELECT - col0 * 18 * + 43 FROM tab2
----
-35604
-49536
-58050

onlyif mysql # aggregate syntax: 
query I rowsort label-9623
SELECT DISTINCT 91 - + COUNT( * ) AS col1 FROM tab0
----
88

skipif mysql # not compatible
query I rowsort label-9623
SELECT DISTINCT 91 - + COUNT ( * ) AS col1 FROM tab0
----
88

query I rowsort
SELECT ALL 19 * + + col2 * - + 93 FROM tab2
----
-102486
-40641
-70680

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9625
SELECT - SUM( DISTINCT - CAST( NULL AS DECIMAL ) ) * - + COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9625
SELECT - SUM ( DISTINCT - CAST ( NULL AS REAL ) ) * - + COUNT ( * ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9626
SELECT ALL COUNT( * ) * 53 col0 FROM tab2 AS cor0
----
159

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9626
SELECT ALL COUNT ( * ) * 53 col0 FROM tab2 AS cor0
----
159

query I rowsort
SELECT 11 * - col0 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 29 col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-29

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN + col1 * - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9630
SELECT - - MIN( - col0 ) AS col0 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-9630
SELECT - - MIN ( - col0 ) AS col0 FROM tab2 AS cor0
----
-75

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT IN ( ( col1 ) )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( + col0 ) <= NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9633
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 17 NOT BETWEEN NULL AND - + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-9633
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 17 NOT BETWEEN NULL AND - + CAST ( NULL AS REAL )
----

query I rowsort
SELECT 31 * - - col2 AS col2 FROM tab2 AS cor0
----
1240
1798
713

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + col2 * + + col1 col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9636
SELECT DISTINCT 97 + COUNT( * ) FROM tab0
----
100

skipif mysql # not compatible
query I rowsort label-9636
SELECT DISTINCT 97 + COUNT ( * ) FROM tab0
----
100

query I rowsort
SELECT ALL ( + 49 ) AS col0 FROM tab1
----
49
49
49

query I rowsort
SELECT + ( + col1 ) * 2 * - col0 FROM tab1
----
-1428
-850
-8554

query I rowsort
SELECT ALL 44 FROM tab1 WHERE NOT + col1 IS NOT NULL
----

query II rowsort
SELECT 47 * - col0 AS col1, col0 AS col1 FROM tab0
----
-4089
87
-4559
97
-705
15

onlyif mysql # aggregate syntax: 
query I rowsort label-9641
SELECT + COUNT( DISTINCT + + 83 ) AS col0 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-9641
SELECT + COUNT ( DISTINCT + + 83 ) AS col0 FROM tab2
----
1

query II rowsort
SELECT DISTINCT - col1, col2 * - col2 AS col2 FROM tab1
----
-14
-9216
-47
-4624
-5
-3481

query I rowsort
SELECT ( - 94 ) FROM tab2
----
-94
-94
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9644
SELECT - CAST( NULL AS SIGNED ), - MIN( ALL - + 35 ) AS col2 FROM tab0
----
NULL
35

skipif mysql # not compatible
query II rowsort label-9644
SELECT - CAST ( NULL AS INTEGER ), - MIN ( ALL - + 35 ) AS col2 FROM tab0
----
NULL
35

query I rowsort
SELECT col1 FROM tab1 WHERE + + col0 NOT BETWEEN - - col1 * + + col0 AND col0 + 53
----
14
47
5

onlyif mysql # aggregate syntax: 
query II rowsort label-9646
SELECT ALL - COUNT( * ), + ( COUNT( * ) ) col0 FROM tab2 AS cor0
----
-3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9646
SELECT ALL - COUNT ( * ), + ( COUNT ( * ) ) col0 FROM tab2 AS cor0
----
-3
3

query II rowsort
SELECT DISTINCT col0 + + - 52, col2 AS col2 FROM tab2
----
-6
23
12
40
23
58

query I rowsort
SELECT ALL 90 * col1 + col1 AS col2 FROM tab1
----
1274
4277
455

query I rowsort
SELECT DISTINCT + col1 * - + 56 FROM tab2 cor0
----
-2856
-3752
-4312

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 62 NOT BETWEEN NULL AND - 75
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9651
SELECT ALL + - ( - COUNT( DISTINCT + col2 ) ) AS col2 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9651
SELECT ALL + - ( - COUNT ( DISTINCT + col2 ) ) AS col2 FROM tab2 cor0
----
3

query I rowsort
SELECT ALL 58 * - 57 + + + 62 + - col2 FROM tab1 AS cor0
----
-3303
-3312
-3340

onlyif mysql # DIV for integer division: 
query I rowsort label-9653
SELECT ALL col1 + col1 + - 82 DIV + col1 AS col0 FROM tab0 AS cor0
----
-80
161
39

skipif mysql # not compatible
query I rowsort label-9653
SELECT ALL col1 + col1 + - 82 / + col1 AS col0 FROM tab0 AS cor0
----
-80
161
39

onlyif mysql # DIV for integer division: 
query I rowsort label-9654
SELECT DISTINCT + col1 DIV - + 76 AS col1 FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-9654
SELECT DISTINCT + col1 / - + 76 AS col1 FROM tab0 AS cor0
----
-1
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9655
SELECT DISTINCT + 70 DIV + + SUM( ALL + col1 ) AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9655
SELECT DISTINCT + 70 / + + SUM ( ALL + col1 ) AS col2 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9656
SELECT DISTINCT + 40 + CAST( NULL AS SIGNED ) AS col2, + col2 AS col1 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-9656
SELECT DISTINCT + 40 + CAST ( NULL AS INTEGER ) AS col2, + col2 AS col1 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

query I rowsort
SELECT DISTINCT + - 86 - col2 * - col2 * - + col0 FROM tab1 AS cor0
----
-295971
-420870
-470102

query I rowsort
SELECT + col2 - + + col2 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + col2 - 8 * + 68 * col0 * + - 25 FROM tab0
----
1183210
1319299
204047

onlyif mysql # aggregate syntax: 
query I rowsort label-9660
SELECT ALL - 63 + + 82 + + 36 * + + COUNT( * ) col2 FROM tab1
----
127

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9660
SELECT ALL - 63 + + 82 + + 36 * + + COUNT ( * ) col2 FROM tab1
----
127

query I rowsort
SELECT + - col1 FROM tab1 WHERE ( NOT + col2 IS NOT NULL )
----

query I rowsort
SELECT - col2 AS col1 FROM tab0 WHERE - ( - 68 ) <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + - col0 NOT BETWEEN + + col1 + ( + col2 ) / - col2 * - - col1 / - col1 AND + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col2 + col0 FROM tab1 WHERE NOT + - col1 / col2 + col1 < + + 89
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * - + col0 col1 FROM tab0 AS cor0
----
1215
1827
97

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 > + col1
----
46
51
23
64
77
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9667
SELECT DISTINCT - col1 AS col1 FROM tab2 AS cor0 WHERE - CAST( NULL AS SIGNED ) IS NULL
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-9667
SELECT DISTINCT - col1 AS col1 FROM tab2 AS cor0 WHERE - CAST ( NULL AS INTEGER ) IS NULL
----
-51
-67
-77

query I rowsort
SELECT + ( - col0 ) * + - 79 AS col0 FROM tab0 AS cor0
----
1185
6873
7663

query I rowsort
SELECT - - ( - col2 ) * - ( - + ( col1 ) ) FROM tab2 AS cor0
----
-1173
-3080
-3886

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 90 col1 FROM tab0 WHERE NOT col2 - + col2 IS NULL
----
90
90
90

query I rowsort
SELECT ALL 12 + + col0 AS col1 FROM tab2 WHERE NULL = + col2 * + col0 + 86
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9672
SELECT DISTINCT CAST( NULL AS DECIMAL ) + 7 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9672
SELECT DISTINCT CAST ( NULL AS REAL ) + 7 AS col1 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9673
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col2 FROM tab0 WHERE - 54 < - col2 + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9673
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 WHERE - 54 < - col2 + col2
----
NULL

query I rowsort
SELECT 89 AS col0 FROM tab0 WHERE NULL >= + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9675
SELECT ALL + MAX( ALL - 64 ) FROM tab2
----
-64

skipif mysql # not compatible
query I rowsort label-9675
SELECT ALL + MAX ( ALL - 64 ) FROM tab2
----
-64

query III rowsort
SELECT * FROM tab1 WHERE + col2 * - ( 60 ) BETWEEN NULL AND + 82 + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9677
SELECT ALL + ( ( COUNT( * ) ) ) * 43 col0 FROM tab2
----
129

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9677
SELECT ALL + ( ( COUNT ( * ) ) ) * 43 col0 FROM tab2
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-9678
SELECT - COUNT( * ) + 16 * COUNT( * ) AS col2 FROM tab1
----
45

skipif mysql # not compatible
query I rowsort label-9678
SELECT - COUNT ( * ) + 16 * COUNT ( * ) AS col2 FROM tab1
----
45

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 42 + + col2 NOT BETWEEN NULL AND + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9680
SELECT DISTINCT + ( - COUNT( * ) ) * - 49 AS col1 FROM tab1
----
147

skipif mysql # not compatible
query I rowsort label-9680
SELECT DISTINCT + ( - COUNT ( * ) ) * - 49 AS col1 FROM tab1
----
147

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - 57 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 12 * + col1 FROM tab1
----
-168
-564
-60

query I rowsort
SELECT DISTINCT 64 - col0 FROM tab2
----
-11
0
18

query I rowsort
SELECT col2 FROM tab1 WHERE NOT col0 + + ( col1 ) * + col1 IS NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9685
SELECT ALL SUM( ALL - col0 ) FROM tab0 WHERE col0 = ( - 4 * + ( col1 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9685
SELECT ALL SUM ( ALL - col0 ) FROM tab0 WHERE col0 = ( - 4 * + ( col1 ) )
----
NULL

query I rowsort
SELECT 81 * col2 AS col0 FROM tab0
----
3807
8019
810

query I rowsort
SELECT ALL + 53 - + col0 * - col0 FROM tab0
----
278
7622
9462

query I rowsort
SELECT 56 * + col0 AS col1 FROM tab2
----
2576
3584
4200

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL >= - 8
----

query I rowsort
SELECT col2 / - col0 AS col1 FROM tab2 WHERE NOT col0 + col0 NOT IN ( + col0 )
----

query I rowsort
SELECT DISTINCT col0 + - 54 FROM tab2 WHERE ( col1 ) IS NOT NULL
----
-8
10
21

query I rowsort
SELECT DISTINCT 41 AS col0 FROM tab1 WHERE ( NULL ) NOT BETWEEN 43 AND ( - 45 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9693
SELECT ALL * FROM tab1 WHERE ( ( 72 ) ) NOT BETWEEN - 88 * + ( + ( - col0 ) ) + + CAST( + col0 AS SIGNED ) AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9693
SELECT ALL * FROM tab1 WHERE ( ( 72 ) ) NOT BETWEEN - 88 * + ( + ( - col0 ) ) + + CAST ( + col0 AS INTEGER ) AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9694
SELECT ALL - MAX( DISTINCT ( - col2 ) ) + 15 FROM tab0
----
25

skipif mysql # not compatible
query I rowsort label-9694
SELECT ALL - MAX ( DISTINCT ( - col2 ) ) + 15 FROM tab0
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9695
SELECT DISTINCT 95 FROM tab0 WHERE CAST( NULL AS SIGNED ) BETWEEN NULL AND - 91
----

skipif mysql # not compatible
query I rowsort label-9695
SELECT DISTINCT 95 FROM tab0 WHERE CAST ( NULL AS INTEGER ) BETWEEN NULL AND - 91
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9696
SELECT ALL + COUNT( * ) * 95 + + COUNT( * ) FROM tab2
----
288

skipif mysql # not compatible
query I rowsort label-9696
SELECT ALL + COUNT ( * ) * 95 + + COUNT ( * ) FROM tab2
----
288

query I rowsort
SELECT + col0 - ( - 63 + 86 ) AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9698
SELECT DISTINCT + 52 + + MIN( ALL 96 ) * COUNT( - col1 ) AS col1 FROM tab1 AS cor0
----
340

skipif mysql # not compatible
query I rowsort label-9698
SELECT DISTINCT + 52 + + MIN ( ALL 96 ) * COUNT ( - col1 ) AS col1 FROM tab1 AS cor0
----
340

onlyif mysql # aggregate syntax: 
query I rowsort label-9699
SELECT DISTINCT 25 + COUNT( * ) FROM tab2 AS cor0
----
28

skipif mysql # not compatible
query I rowsort label-9699
SELECT DISTINCT 25 + COUNT ( * ) FROM tab2 AS cor0
----
28

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) < + 41
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9701
SELECT + col1 * + CAST( NULL AS SIGNED ) - 4 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9701
SELECT + col1 * + CAST ( NULL AS INTEGER ) - 4 AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9702
SELECT - col0 + col1 * CAST( ( col2 ) - 33 AS SIGNED ) FROM tab1
----
1554
45
831

skipif mysql # not compatible
query I rowsort label-9702
SELECT - col0 + col1 * CAST ( ( col2 ) - 33 AS INTEGER ) FROM tab1
----
1554
45
831

query I rowsort
SELECT 61 * + col0 + + col2 AS col0 FROM tab0 AS cor0
----
5317
6016
962

query I rowsort
SELECT DISTINCT ( col1 ) - - col1 FROM tab0 AS cor0
----
162
2
42

query I rowsort
SELECT 92 * + col1 + + col2 AS col0 FROM tab0 AS cor0
----
191
1942
7499

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN + col1 AND ( + col1 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( col0 + col1 / + col2 )
----

query I rowsort
SELECT ALL 96 FROM tab2 WHERE NOT NULL > + 27
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 BETWEEN 97 AND ( NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ( + 16 ) AS col0 FROM tab0
----
16
16
16

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) IN ( + ( 92 ) * col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9712
SELECT ALL - 39 + + COUNT( * ) AS col1 FROM tab0 WHERE - ( - col0 ) + - col1 IS NULL
----
-39

skipif mysql # not compatible
query I rowsort label-9712
SELECT ALL - 39 + + COUNT ( * ) AS col1 FROM tab0 WHERE - ( - col0 ) + - col1 IS NULL
----
-39

query I rowsort
SELECT ALL col1 * - col1 * col0 AS col0 FROM tab1
----
-201019
-2125
-9996

onlyif mysql # aggregate syntax: 
query I rowsort label-9714
SELECT DISTINCT + COUNT( * ) * + 25 col1 FROM tab0
----
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9714
SELECT DISTINCT + COUNT ( * ) * + 25 col1 FROM tab0
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9715
SELECT DISTINCT CAST( - 37 AS SIGNED ) col0 FROM tab2
----
-37

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9715
SELECT DISTINCT CAST ( - 37 AS INTEGER ) col0 FROM tab2
----
-37

query I rowsort
SELECT ALL - 93 * + col2 AS col0 FROM tab0
----
-4371
-9207
-930

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9717
SELECT + COUNT( * ) DIV - - 28 AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9717
SELECT + COUNT ( * ) / - - 28 AS col2 FROM tab0
----
0

query I rowsort
SELECT + 36 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9719
SELECT 48 * ( COUNT( * ) ) AS col0 FROM tab0
----
144

skipif mysql # not compatible
query I rowsort label-9719
SELECT 48 * ( COUNT ( * ) ) AS col0 FROM tab0
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-9720
SELECT DISTINCT + COUNT( * ) * - 25 - + 2 AS col1 FROM tab1 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-9720
SELECT DISTINCT + COUNT ( * ) * - 25 - + 2 AS col1 FROM tab1 AS cor0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9721
SELECT MIN( ALL - col1 ) FROM tab1 cor0
----
-47

skipif mysql # not compatible
query I rowsort label-9721
SELECT MIN ( ALL - col1 ) FROM tab1 cor0
----
-47

query I rowsort
SELECT ALL - - col2 * + ( 14 ) + col1 * col2 AS col0 FROM tab1 AS cor0
----
1121
2688
4148

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 >= col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9724
SELECT + 77 + - COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
68

skipif mysql # not compatible
query I rowsort label-9724
SELECT + 77 + - COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
68

query I rowsort
SELECT ALL 76 FROM tab1 WHERE NOT ( NULL ) <> + 5
----

query I rowsort
SELECT DISTINCT - + 0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND - col1 * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9728
SELECT ALL - - 52 + + MAX( ALL col0 ) AS col2 FROM tab1 AS cor0
----
143

skipif mysql # not compatible
query I rowsort label-9728
SELECT ALL - - 52 + + MAX ( ALL col0 ) AS col2 FROM tab1 AS cor0
----
143

query I rowsort
SELECT + 97 * 56 * col0 AS col1 FROM tab2 AS cor0
----
249872
347648
407400

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( col1 / - 77 ) IS NULL
----

query I rowsort
SELECT ALL - - col2 AS col2 FROM tab0 AS cor0 WHERE col0 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 > - col2 + + col0
----
15
81
47

query I rowsort
SELECT DISTINCT + col2 * - + col2 + - col2 + - col0 FROM tab0 AS cor0
----
-197
-2271
-9997

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - ( col1 ) + col2 NOT BETWEEN - 10 + 28 AND col0
----
51
14
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9735
SELECT - - 12 * - 30 - COUNT( * ) AS col0 FROM tab1 WHERE + col0 <> NULL
----
-360

skipif mysql # not compatible
query I rowsort label-9735
SELECT - - 12 * - 30 - COUNT ( * ) AS col0 FROM tab1 WHERE + col0 <> NULL
----
-360

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT IN ( + 24 )
----

query I rowsort
SELECT ALL + - ( + + 81 ) * - col2 + - 66 FROM tab0 WHERE NOT NULL IS NOT NULL
----
3741
744
7953

query I rowsort
SELECT DISTINCT 17 + col1 * + 46 + col2 FROM tab1
----
2247
306
757

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9739
SELECT 61 AS col2 FROM tab2 WHERE NULL IN ( + ( - - 85 ) * + 14 + + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-9739
SELECT 61 AS col2 FROM tab2 WHERE NULL IN ( + ( - - 85 ) * + 14 + + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9740
SELECT + 36 * COUNT( * ) FROM tab1
----
108

skipif mysql # not compatible
query I rowsort label-9740
SELECT + 36 * COUNT ( * ) FROM tab1
----
108

query I rowsort
SELECT col0 AS col0 FROM tab0 WHERE ( col1 * - col0 ) IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE - + col2 + - col2 + 40 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9743
SELECT ALL - COUNT( * ) DIV + 49 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9743
SELECT ALL - COUNT ( * ) / + 49 AS col2 FROM tab1
----
0

query II rowsort
SELECT DISTINCT + col0 + + - 91 AS col2, col0 + col1 FROM tab1 AS cor0
----
-40
65
-6
90
0
138

query I rowsort
SELECT - col2 * col1 FROM tab2 AS cor0 WHERE ( 23 * col2 ) <= NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( + - 9 <> col2 * - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 36 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9748
SELECT + - COUNT( * ) + - COUNT( * ) FROM tab0 cor0
----
-6

skipif mysql # not compatible
query I rowsort label-9748
SELECT + - COUNT ( * ) + - COUNT ( * ) FROM tab0 cor0
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9749
SELECT DISTINCT 69 * - col2 FROM tab2 WHERE - - 72 * + ( - 72 ) / ( - 44 * + CAST( 44 * col2 AS SIGNED ) ) + - 90 IN ( col1 )
----

skipif mysql # not compatible
query I rowsort label-9749
SELECT DISTINCT 69 * - col2 FROM tab2 WHERE - - 72 * + ( - 72 ) / ( - 44 * + CAST ( 44 * col2 AS INTEGER ) ) + - 90 IN ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9750
SELECT DISTINCT 75 - + SUM( - + col1 ) FROM tab1
----
141

skipif mysql # not compatible
query I rowsort label-9750
SELECT DISTINCT 75 - + SUM ( - + col1 ) FROM tab1
----
141

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 / - - col1 col2 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 36 IS NULL AND NOT NULL <> col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9753
SELECT COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( + 35 * - col1 ) NOT IN ( - col2 / + 74 ) AND + col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9753
SELECT COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( + 35 * - col1 ) NOT IN ( - col2 / + 74 ) AND + col1 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9754
SELECT ALL COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( - col0 + - + ( - col2 ) ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9754
SELECT ALL COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( - col0 + - + ( - col2 ) ) IS NOT NULL
----
0

query I rowsort
SELECT ALL + + 0 AS col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND 22
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 8 col2 FROM tab2 AS cor0
----
-8
-8
-8

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT 69 * + 43 IS NOT NULL
----

query II rowsort
SELECT ALL + col0 AS col0, + col1 AS col0 FROM tab1 AS cor0
----
51
14
85
5
91
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 60 col0 FROM tab0 AS cor0
----
60
60
60

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 88 BETWEEN - 10 AND col0 + + col2 / col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col1 <= ( + col2 + + col1 ) )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9762
SELECT DISTINCT - COUNT( * ) AS col0, 24 AS col0 FROM tab1
----
-3
24

skipif mysql # not compatible
query II rowsort label-9762
SELECT DISTINCT - COUNT ( * ) AS col0, 24 AS col0 FROM tab1
----
-3
24

query I rowsort
SELECT DISTINCT - 56 FROM tab2 WHERE - ( 67 ) > + ( - 40 ) * - col1 + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9764
SELECT ALL 8 * + COUNT( * ) col0 FROM tab0
----
24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9764
SELECT ALL 8 * + COUNT ( * ) col0 FROM tab0
----
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col1, - col0 + + 19 AS col0 FROM tab2
----
-23
-27
-40
-45
-58
-56

query III rowsort
SELECT * FROM tab0 WHERE NOT ( 74 + - + 39 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query II rowsort label-9767
SELECT ALL 64 AS col0, + col1 DIV - + col0 * col1 FROM tab1
----
64
0
64
0
64
0

skipif mysql # not compatible
query II rowsort label-9767
SELECT ALL 64 AS col0, + col1 / - + col0 * col1 FROM tab1
----
64
0
64
0
64
0

query III rowsort
SELECT ALL * FROM tab0 WHERE + col1 * + - col1 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - + ( + col1 ) * - 26 ) >= col2
----
15
81
47
87
21
10

query II rowsort
SELECT ALL 48 AS col0, 1 * + col0 + + 59 + - col0 + - col1 * - 11 FROM tab0
----
48
290
48
70
48
950

query II rowsort
SELECT DISTINCT + col2, 6 FROM tab0
----
10
6
47
6
99
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9772
SELECT 40 / CAST( NULL AS SIGNED ) * + col0 FROM tab1 WHERE NOT 46 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9772
SELECT 40 / CAST ( NULL AS INTEGER ) * + col0 FROM tab1 WHERE NOT 46 IS NOT NULL
----

query I rowsort
SELECT - col0 * - - col2 + + col1 FROM tab2 AS cor0
----
-1007
-2483
-4283

query I rowsort
SELECT DISTINCT + col0 * - col0 + + + 96 FROM tab0 AS cor0
----
-129
-7473
-9313

onlyif mysql # DIV for integer division: 
query I rowsort label-9775
SELECT ALL - 52 DIV + - col2 FROM tab2 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-9775
SELECT ALL - 52 / + - col2 FROM tab2 AS cor0
----
0
1
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9776
SELECT ALL - AVG ( + - CAST( NULL AS SIGNED ) ) AS col0, COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL
0

skipif mysql # not compatible
query II rowsort label-9776
SELECT ALL - AVG ( + - CAST ( NULL AS INTEGER ) ) AS col0, COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL
0

query I rowsort
SELECT ALL + col1 * - + 31 FROM tab1
----
-1457
-155
-434

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL < + + 55 * + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9779
SELECT - ( - - COUNT( * ) ) * - COUNT( * ) AS col1 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9779
SELECT - ( - - COUNT ( * ) ) * - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9780
SELECT ALL + CAST( 66 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
66
66
66

skipif mysql # not compatible
query I rowsort label-9780
SELECT ALL + CAST ( 66 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
66
66
66

query I rowsort
SELECT ALL - + col1 + - 89 + + + col0 AS col0 FROM tab2 AS cor0
----
-102
-81
-94

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 - - + col0 + + 67 * + 64 + + - 27 NOT BETWEEN + + ( + col1 ) * + col2 - 56 AND ( + col1 + - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + + col0 * + - col2 * + col1 + + 57 AS col0 FROM tab0 AS cor0
----
-18213
-57048
-9546

onlyif mysql # aggregate syntax: 
query I rowsort label-9784
SELECT + COUNT( * ) FROM tab1 AS cor0 WHERE 78 * - col2 * col0 IN ( + - 84 )
----
0

skipif mysql # not compatible
query I rowsort label-9784
SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE 78 * - col2 * col0 IN ( + - 84 )
----
0

query III rowsort
SELECT * FROM tab2 WHERE NULL <= 85
----

query I rowsort
SELECT ALL 99 + - col1 FROM tab2
----
22
32
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9787
SELECT DISTINCT + col2 + - 87 * - col2 FROM tab2 WHERE - ( CAST( NULL AS SIGNED ) ) + 14 BETWEEN col0 * + col0 AND NULL
----

skipif mysql # not compatible
query I rowsort label-9787
SELECT DISTINCT + col2 + - 87 * - col2 FROM tab2 WHERE - ( CAST ( NULL AS INTEGER ) ) + 14 BETWEEN col0 * + col0 AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - - 14 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE - col1 * - col0 * 89 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9790
SELECT DISTINCT col2 + col1 + - + 84 + col2 DIV - col2 + - - ( col0 ) * + ( 73 ) + - 45 FROM tab1
----
3703
6139
6628

skipif mysql # not compatible
query I rowsort label-9790
SELECT DISTINCT col2 + col1 + - + 84 + col2 / - col2 + - - ( col0 ) * + ( 73 ) + - 45 FROM tab1
----
3703
6139
6628

query II rowsort
SELECT col0, - col0 + + + col0 + - col2 + + col0 - + 61 + - 96 - col0 FROM tab2
----
46
-180
64
-197
75
-215

query II rowsort
SELECT DISTINCT - col2, - col2 AS col0 FROM tab2
----
-23
-23
-40
-40
-58
-58

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( 29 ) <= col0
----

query I rowsort
SELECT - col0 * 35 FROM tab2
----
-1610
-2240
-2625

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 col2, + 27 AS col0 FROM tab2
----
46
27
64
27
75
27

onlyif mysql # aggregate syntax: 
query I rowsort label-9796
SELECT DISTINCT - 54 + COUNT( * ) FROM tab1 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-9796
SELECT DISTINCT - 54 + COUNT ( * ) FROM tab1 cor0
----
-51

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL < col1 / + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9798
SELECT ALL COUNT( DISTINCT + + col2 ) * 18 + + ( - 72 ) AS col2 FROM tab2 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-9798
SELECT ALL COUNT ( DISTINCT + + col2 ) * 18 + + ( - 72 ) AS col2 FROM tab2 AS cor0
----
-18

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + 93 * + - col0 >= ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 31 + - - 47 FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9801
SELECT col1 DIV + 24 + col0 + + 98 col2 FROM tab1 AS cor0
----
149
183
190

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9801
SELECT col1 / + 24 + col0 + + 98 col2 FROM tab1 AS cor0
----
149
183
190

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN + 91 AND - + 79 * - + col1
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - col2 NOT BETWEEN - + 65 AND - - col2
----
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9804
SELECT + MAX( DISTINCT - col2 ) AS col1 FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-9804
SELECT + MAX ( DISTINCT - col2 ) AS col1 FROM tab2
----
-23

query I rowsort
SELECT col2 * - 30 FROM tab0
----
-1410
-2970
-300

onlyif mysql # aggregate syntax: 
query I rowsort label-9806
SELECT + ( - - SUM( ALL - 10 ) ) AS col2 FROM tab2
----
-30

skipif mysql # not compatible
query I rowsort label-9806
SELECT + ( - - SUM ( ALL - 10 ) ) AS col2 FROM tab2
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-9807
SELECT - MAX( ALL - 88 ) FROM tab2
----
88

skipif mysql # not compatible
query I rowsort label-9807
SELECT - MAX ( ALL - 88 ) FROM tab2
----
88

query I rowsort
SELECT DISTINCT col0 + + ( - col0 ) AS col0 FROM tab1 WHERE + col0 * + col0 > col1
----
0

query I rowsort
SELECT ALL 44 FROM tab2 AS cor0 WHERE - col2 IS NOT NULL
----
44
44
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9810
SELECT ALL CAST( NULL AS SIGNED ) * - 75 * + + col2 AS col1 FROM tab1 AS cor0 WHERE ( NOT NULL = ( + 32 * - col1 * - col1 ) )
----

skipif mysql # not compatible
query I rowsort label-9810
SELECT ALL CAST ( NULL AS INTEGER ) * - 75 * + + col2 AS col1 FROM tab1 AS cor0 WHERE ( NOT NULL = ( + 32 * - col1 * - col1 ) )
----

query I rowsort
SELECT DISTINCT - col0 + + + 96 FROM tab0 AS cor0
----
-1
81
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9812
SELECT ALL - COUNT( * ) * - COUNT( * ) + CAST( - + 83 AS SIGNED ) FROM tab1 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-9812
SELECT ALL - COUNT ( * ) * - COUNT ( * ) + CAST ( - + 83 AS INTEGER ) FROM tab1 AS cor0
----
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-9813
SELECT + col1 DIV - col2 + col0 AS col2 FROM tab2
----
44
63
74

skipif mysql # not compatible
query I rowsort label-9813
SELECT + col1 / - col2 + col0 AS col2 FROM tab2
----
44
63
74

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col1 * + + 32 = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL BETWEEN - col0 AND + col1
----

query I rowsort
SELECT - col0 AS col1 FROM tab0 AS cor0 WHERE NULL < - 80 / + col1 + + col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL <= - 45 + col2 * + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 68 AS col2, - 57 * col0 col1 FROM tab1 AS cor0
----
68
-2907
68
-4845
68
-5187

query I rowsort
SELECT DISTINCT col2 * 4 FROM tab0 cor0
----
188
396
40

query II rowsort
SELECT + 17 AS col2, col0 AS col2 FROM tab0 AS cor0
----
17
15
17
87
17
97

query I rowsort
SELECT ALL + col2 + - + col1 AS col0 FROM tab1
----
21
54
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9822
SELECT + CAST( - col2 AS SIGNED ) - - - col2 FROM tab1
----
-118
-136
-192

skipif mysql # not compatible
query I rowsort label-9822
SELECT + CAST ( - col2 AS INTEGER ) - - - col2 FROM tab1
----
-118
-136
-192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 91 + 0 col1 FROM tab0
----
91

query I rowsort
SELECT col2 * col1 - - 5 FROM tab2
----
1178
3085
3891

query I rowsort
SELECT + 89 + ( col0 ) AS col1 FROM tab0
----
104
176
186

onlyif mysql # aggregate syntax: 
query I rowsort label-9826
SELECT ALL COUNT( ALL - col2 ) FROM tab2 AS cor0 WHERE NOT col1 IN ( + 36 )
----
3

skipif mysql # not compatible
query I rowsort label-9826
SELECT ALL COUNT ( ALL - col2 ) FROM tab2 AS cor0 WHERE NOT col1 IN ( + 36 )
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9827
SELECT ALL - col2 + - - col2 + + CAST( col1 AS SIGNED ) FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-9827
SELECT ALL - col2 + - - col2 + + CAST ( col1 AS INTEGER ) FROM tab1 AS cor0
----
14
47
5

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col1 * + col2 IN ( - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - + 94 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - col1 * 61 AS col1 FROM tab1 AS cor0
----
-2867
-305
-854

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9831
SELECT - col1, col2 * + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-1
NULL
-21
NULL
-81
NULL

skipif mysql # not compatible
query II rowsort label-9831
SELECT - col1, col2 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-1
NULL
-21
NULL
-81
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9832
SELECT DISTINCT + + 40 AS col0, + COUNT( * ) AS col0 FROM tab1 AS cor0
----
40
3

skipif mysql # not compatible
query II rowsort label-9832
SELECT DISTINCT + + 40 AS col0, + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
40
3

query II rowsort
SELECT DISTINCT + 98 AS col0, col1 AS col2 FROM tab2 AS cor0
----
98
51
98
67
98
77

onlyif mysql # aggregate syntax: 
query II rowsort label-9834
SELECT DISTINCT + 32 AS col2, COUNT( * ) FROM tab1 AS cor0
----
32
3

skipif mysql # not compatible
query II rowsort label-9834
SELECT DISTINCT + 32 AS col2, COUNT ( * ) FROM tab1 AS cor0
----
32
3

query I rowsort
SELECT DISTINCT - 81 FROM tab0 AS cor0 WHERE NOT - col0 IS NOT NULL
----

query I rowsort
SELECT - 37 AS col1 FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9837
SELECT MIN( + col2 ) AS col1 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-9837
SELECT MIN ( + col2 ) AS col1 FROM tab1 AS cor0
----
59

query II rowsort
SELECT ALL 1, + col2 FROM tab0 AS cor0
----
1
10
1
47
1
99

onlyif mysql # DIV for integer division: 
query II rowsort label-9839
SELECT col1 DIV + 26 AS col0, col1 AS col2 FROM tab0
----
0
1
0
21
3
81

skipif mysql # not compatible
query II rowsort label-9839
SELECT col1 / + 26 AS col0, col1 AS col2 FROM tab0
----
0
1
0
21
3
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9840
SELECT ALL COUNT( * ) AS col1 FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN - 0 AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-9840
SELECT ALL COUNT ( * ) AS col1 FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN - 0 AND ( NULL )
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + 24 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9842
SELECT DISTINCT COUNT( + ( col2 ) ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9842
SELECT DISTINCT COUNT ( + ( col2 ) ) AS col0 FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9843
SELECT - CAST( NULL AS SIGNED ) + + + col2 col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9843
SELECT - CAST ( NULL AS INTEGER ) + + + col2 col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9844
SELECT + 73 * - 34 - - + COUNT( * ) * + 67 FROM tab2 WHERE NOT 86 > 13 * - - ( col1 )
----
-2281

skipif mysql # not compatible
query I rowsort label-9844
SELECT + 73 * - 34 - - + COUNT ( * ) * + 67 FROM tab2 WHERE NOT 86 > 13 * - - ( col1 )
----
-2281

onlyif mysql # aggregate syntax: 
query I rowsort label-9845
SELECT DISTINCT COUNT( * ) FROM tab1 AS cor0 WHERE col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9845
SELECT DISTINCT COUNT ( * ) FROM tab1 AS cor0 WHERE col1 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9846
SELECT - MIN( - + 48 ) AS col1, 28 col2 FROM tab0 AS cor0
----
48
28

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9846
SELECT - MIN ( - + 48 ) AS col1, 28 col2 FROM tab0 AS cor0
----
48
28

onlyif mysql # aggregate syntax: 
query I rowsort label-9847
SELECT + MAX( ALL + + col0 ) AS col0 FROM tab2 cor0
----
75

skipif mysql # not compatible
query I rowsort label-9847
SELECT + MAX ( ALL + + col0 ) AS col0 FROM tab2 cor0
----
75

query I rowsort
SELECT + col2 FROM tab0 cor0 WHERE NOT 24 IS NULL
----
10
47
99

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE + 98 + + ( - col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT - col2 AS col2, + 80 FROM tab2
----
-23
80
-40
80
-58
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9851
SELECT ALL + 38 + + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
47

skipif mysql # not compatible
query I rowsort label-9851
SELECT ALL + 38 + + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
47

query I rowsort
SELECT DISTINCT + - col0 AS col1 FROM tab0 AS cor0 WHERE NOT - ( col2 ) + - col2 * + col0 * - col0 * + 68 IS NOT NULL
----

query I rowsort
SELECT + - 61 + col1 FROM tab0 AS cor0
----
-40
-60
20

onlyif mysql # aggregate syntax: 
query I rowsort label-9854
SELECT ALL - - COUNT( DISTINCT + 57 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9854
SELECT ALL - - COUNT ( DISTINCT + 57 ) FROM tab0 AS cor0
----
1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 / - - col1 <= + 38
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 + + + col1 AS col1 FROM tab2 AS cor0
----
141
142
97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - + 52 ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT - col0 * - - col0 + 63 + 37 FROM tab1 AS cor0
----
-2501
-7125
-8181

onlyif mysql # aggregate syntax: 
query I rowsort label-9859
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-9859
SELECT ALL MIN ( - col0 ) col0 FROM tab2 AS cor0
----
-75

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT IN ( 57 * - + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9861
SELECT DISTINCT + 2 * - + 35 * + ( COUNT( * ) ) col0 FROM tab2 AS cor0
----
-210

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9861
SELECT DISTINCT + 2 * - + 35 * + ( COUNT ( * ) ) col0 FROM tab2 AS cor0
----
-210

query I rowsort
SELECT 22 + - col2 * + col1 + 32 AS col0 FROM tab2 AS cor0
----
-1119
-3026
-3832

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9863
SELECT - 18 FROM tab0 cor0 WHERE NULL IN ( + col1, - col1 * + col0 * - CAST( NULL AS SIGNED ), + col2 )
----

skipif mysql # not compatible
query I rowsort label-9863
SELECT - 18 FROM tab0 cor0 WHERE NULL IN ( + col1, - col1 * + col0 * - CAST ( NULL AS INTEGER ), + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 + - col0 col0 FROM tab1 AS cor0
----
-23
-26
45

onlyif mysql # aggregate syntax: 
query I rowsort label-9865
SELECT DISTINCT + 6 * - + 49 + - COUNT( * ) FROM tab1
----
-297

skipif mysql # not compatible
query I rowsort label-9865
SELECT DISTINCT + 6 * - + 49 + - COUNT ( * ) FROM tab1
----
-297

query III rowsort
SELECT * FROM tab1 WHERE ( + col0 ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9867
SELECT DISTINCT + MIN( DISTINCT 95 ) + + COUNT( * ) FROM tab0
----
98

skipif mysql # not compatible
query I rowsort label-9867
SELECT DISTINCT + MIN ( DISTINCT 95 ) + + COUNT ( * ) FROM tab0
----
98

query II rowsort
SELECT + col0 - + - ( - + col0 ) + ( + col0 ) - col1 * - col0, 57 AS col1 FROM tab0 WHERE - ( col1 ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9869
SELECT COUNT( * ) * + COUNT( ALL + col0 ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-9869
SELECT COUNT ( * ) * + COUNT ( ALL + col0 ) FROM tab2
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9870
SELECT DISTINCT CAST( NULL AS SIGNED ) - + - col0 * + col0 * col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9870
SELECT DISTINCT CAST ( NULL AS INTEGER ) - + - col0 * + col0 * col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9871
SELECT ALL + 88 * + COUNT( * ) * + + COUNT( * ) FROM tab1
----
792

skipif mysql # not compatible
query I rowsort label-9871
SELECT ALL + 88 * + COUNT ( * ) * + + COUNT ( * ) FROM tab1
----
792

query I rowsort
SELECT ALL col2 * - + 38 AS col1 FROM tab2
----
-1520
-2204
-874

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9873
SELECT DISTINCT col1 DIV - col2 * CAST( + col0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9873
SELECT DISTINCT col1 / - col2 * CAST ( + col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9874
SELECT DISTINCT - CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9874
SELECT DISTINCT - CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9875
SELECT ALL + COUNT( * ) FROM tab2 AS cor0 WHERE + col1 <= ( + 96 )
----
3

skipif mysql # not compatible
query I rowsort label-9875
SELECT ALL + COUNT ( * ) FROM tab2 AS cor0 WHERE + col1 <= ( + 96 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9876
SELECT ALL + SUM( + col1 ) AS col2 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-9876
SELECT ALL + SUM ( + col1 ) AS col2 FROM tab1 AS cor0
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9877
SELECT CAST( NULL AS SIGNED ) / - 68 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9877
SELECT CAST ( NULL AS INTEGER ) / - 68 AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9878
SELECT DISTINCT COUNT( * ) * - 43 AS col2 FROM tab2
----
-129

skipif mysql # not compatible
query I rowsort label-9878
SELECT DISTINCT COUNT ( * ) * - 43 AS col2 FROM tab2
----
-129

query II rowsort
SELECT ALL 89, + col1 AS col2 FROM tab0
----
89
1
89
21
89
81

query I rowsort
SELECT + 77 * + col1 AS col0 FROM tab1
----
1078
3619
385

onlyif mysql # aggregate syntax: 
query I rowsort label-9881
SELECT ALL - MAX( ALL 89 ) FROM tab0
----
-89

skipif mysql # not compatible
query I rowsort label-9881
SELECT ALL - MAX ( ALL 89 ) FROM tab0
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-9882
SELECT DISTINCT SUM( ALL - col0 ) AS col1 FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-9882
SELECT DISTINCT SUM ( ALL - col0 ) AS col1 FROM tab1
----
-227

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9883
SELECT + + col0, - col2 FROM tab0 WHERE - CAST( - - col2 AS DECIMAL ) >= + col2 + - + 54 + 19 * + 24
----

skipif mysql # not compatible
query II rowsort label-9883
SELECT + + col0, - col2 FROM tab0 WHERE - CAST ( - - col2 AS REAL ) >= + col2 + - + 54 + 19 * + 24
----

query I rowsort
SELECT ALL + 78 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

query I rowsort
SELECT ALL - col2 * - col2 * + - col1 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9886
SELECT 31 * 39, COUNT( * ) AS col1 FROM tab0 AS cor0
----
1209
3

skipif mysql # not compatible
query II rowsort label-9886
SELECT 31 * 39, COUNT ( * ) AS col1 FROM tab0 AS cor0
----
1209
3

query I rowsort
SELECT + col1 - + + 19 + - - col1 FROM tab1 AS cor0
----
-9
75
9

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col2 BETWEEN + 3 / + col1 AND - + col0 / + - 23 * + - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col1 * + 22 - col2 AS col0 FROM tab1
----
212
51
966

query III rowsort
SELECT * FROM tab1 WHERE + ( col0 ) + col2 = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9891
SELECT - COUNT( * ) AS col2 FROM tab2 WHERE CAST( NULL AS SIGNED ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9891
SELECT - COUNT ( * ) AS col2 FROM tab2 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9892
SELECT ( + col1 ) + + + CAST( col0 AS SIGNED ) AS col1 FROM tab2
----
141
142
97

skipif mysql # not compatible
query I rowsort label-9892
SELECT ( + col1 ) + + + CAST ( col0 AS INTEGER ) AS col1 FROM tab2
----
141
142
97

query I rowsort
SELECT ALL col1 FROM tab0 WHERE NOT - - 7 IN ( 79 * - col2, ( - col1 ) + col0 )
----
1
21
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 82 + - col0 col0 FROM tab1
----
-3
-9
31

query I rowsort
SELECT DISTINCT - 28 - + col1 AS col1 FROM tab0
----
-109
-29
-49

query I rowsort
SELECT + col2 FROM tab2 WHERE NOT NULL NOT BETWEEN + + col1 AND - col0 * - col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE - col0 <> + - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9898
SELECT DISTINCT + + COUNT( * ) + MAX( DISTINCT + 25 ) + + + 87 + - + COUNT( * ) FROM tab0 AS cor0 WHERE - 23 IS NOT NULL
----
112

skipif mysql # not compatible
query I rowsort label-9898
SELECT DISTINCT + + COUNT ( * ) + MAX ( DISTINCT + 25 ) + + + 87 + - + COUNT ( * ) FROM tab0 AS cor0 WHERE - 23 IS NOT NULL
----
112

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9899
SELECT DISTINCT - - CAST( col1 AS DECIMAL ) AS col0 FROM tab2 WHERE - col1 >= NULL
----

skipif mysql # not compatible
query I rowsort label-9899
SELECT DISTINCT - - CAST ( col1 AS REAL ) AS col0 FROM tab2 WHERE - col1 >= NULL
----

query I rowsort
SELECT ALL 68 * + col2 AS col1 FROM tab0 AS cor0 WHERE - col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9901
SELECT + - 75 col0, col1 DIV - col0 AS col0 FROM tab0 AS cor0
----
-75
-5
-75
0
-75
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9901
SELECT + - 75 col0, col1 / - col0 AS col0 FROM tab0 AS cor0
----
-75
-5
-75
0
-75
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9902
SELECT ALL - COUNT( * ) AS col2, 48 FROM tab2 AS cor0
----
-3
48

skipif mysql # not compatible
query II rowsort label-9902
SELECT ALL - COUNT ( * ) AS col2, 48 FROM tab2 AS cor0
----
-3
48

query I rowsort
SELECT ALL + col1 * - 59 * col2 FROM tab1 AS cor0
----
-17405
-188564
-79296

onlyif mysql # aggregate syntax: 
query II rowsort label-9904
SELECT + - 58, - MAX( DISTINCT - col1 ) AS col2 FROM tab1 AS cor0
----
-58
5

skipif mysql # not compatible
query II rowsort label-9904
SELECT + - 58, - MAX ( DISTINCT - col1 ) AS col2 FROM tab1 AS cor0
----
-58
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9905
SELECT DISTINCT 85 * - MAX( - - 98 ) AS col2 FROM tab0 AS cor0
----
-8330

skipif mysql # not compatible
query I rowsort label-9905
SELECT DISTINCT 85 * - MAX ( - - 98 ) AS col2 FROM tab0 AS cor0
----
-8330

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL < - 93
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9907
SELECT ALL + + 32 + COUNT( * ) AS col1 FROM tab0 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-9907
SELECT ALL + + 32 + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
35

query I rowsort
SELECT + ( + col1 ) + + 84 AS col0 FROM tab1
----
131
89
98

onlyif mysql # DIV for integer division: 
query II rowsort label-9909
SELECT DISTINCT + 21 DIV 33, 97 AS col1 FROM tab1
----
0
97

skipif mysql # not compatible
query II rowsort label-9909
SELECT DISTINCT + 21 / 33, 97 AS col1 FROM tab1
----
0
97

query I rowsort
SELECT 43 AS col2 FROM tab1 WHERE NULL NOT IN ( - col1 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + ( - 3 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9912
SELECT - MAX( - ( + col0 ) ) FROM tab1 AS cor0 WHERE ( NULL ) >= - 99 * - 97 + - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9912
SELECT - MAX ( - ( + col0 ) ) FROM tab1 AS cor0 WHERE ( NULL ) >= - 99 * - 97 + - col0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 col1 FROM tab1 AS cor0 WHERE 97 + + - col2 + + - col1 * + 6 > NULL
----

query I rowsort
SELECT col2 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9915
SELECT DISTINCT MAX( - 91 ) AS col0 FROM tab0 WHERE col1 > ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9915
SELECT DISTINCT MAX ( - 91 ) AS col0 FROM tab0 WHERE col1 > ( NULL )
----
NULL

query II rowsort
SELECT - - 11, 72 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
18 values hashing to 8d86b27bef5ce0094ba8f1cd7d6af3fd

query II rowsort
SELECT DISTINCT col1 AS col0, - col0 AS col2 FROM tab0
----
1
-97
21
-87
81
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-9918
SELECT ALL + 65 AS col2, - 33 * - MAX( ALL + col2 ) AS col1 FROM tab1 AS cor0
----
65
3168

skipif mysql # not compatible
query II rowsort label-9918
SELECT ALL + 65 AS col2, - 33 * - MAX ( ALL + col2 ) AS col1 FROM tab1 AS cor0
----
65
3168

query I rowsort
SELECT + + 82 * + 37 + - col2 FROM tab1 AS cor0
----
2938
2966
2975

query I rowsort
SELECT col2 * + 83 + - col2 AS col0 FROM tab2 AS cor0
----
1886
3280
4756

onlyif mysql # aggregate syntax: 
query I rowsort label-9921
SELECT - + 98 + + COUNT( * ) col1 FROM tab2 AS cor0
----
-95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9921
SELECT - + 98 + + COUNT ( * ) col1 FROM tab2 AS cor0
----
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - ( + + col0 ) * - - 46 + + 32 AS col0, col1 col0 FROM tab0 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
4034
21
4494
1
722
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9923
SELECT ALL + CAST( COUNT( - + col2 ) AS SIGNED ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9923
SELECT ALL + CAST ( COUNT ( - + col2 ) AS INTEGER ) FROM tab2 cor0
----
3

query I rowsort
SELECT DISTINCT 79 AS col1 FROM tab2 AS cor0 WHERE NOT - 44 + + col0 + - col2 * - + 3 - + 19 NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT ALL + 88 + 64 FROM tab0
----
152
152
152

query I rowsort
SELECT + col2 FROM tab1 WHERE + col1 NOT BETWEEN + col1 AND + col0
----

query I rowsort
SELECT DISTINCT 85 * + 74 - + - 16 * - - col0 * + - 36 * - col1 AS col0 FROM tab0
----
1058642
62162
706130

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9928
SELECT DISTINCT + CAST( + + ( + col0 ) AS SIGNED ) * - + 52 col0 FROM tab0
----
-4524
-5044
-780

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9928
SELECT DISTINCT + CAST ( + + ( + col0 ) AS INTEGER ) * - + 52 col0 FROM tab0
----
-4524
-5044
-780

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9929
SELECT + ( COUNT( DISTINCT + - CAST( - 86 AS SIGNED ) ) ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9929
SELECT + ( COUNT ( DISTINCT + - CAST ( - 86 AS INTEGER ) ) ) FROM tab1 AS cor0
----
1

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 + + 64 * + col1 * 51 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9931
SELECT ALL - COUNT( * ) + + 16 AS col1 FROM tab2 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-9931
SELECT ALL - COUNT ( * ) + + 16 AS col1 FROM tab2 AS cor0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-9932
SELECT DISTINCT + + COUNT( ALL + - 4 ) + 3 FROM tab1 cor0
----
6

skipif mysql # not compatible
query I rowsort label-9932
SELECT DISTINCT + + COUNT ( ALL + - 4 ) + 3 FROM tab1 cor0
----
6

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 10 NOT BETWEEN NULL AND - 68 * 46 * - 92
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9934
SELECT COUNT( * ) col0, 16 DIV - 12 FROM tab1
----
3
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9934
SELECT COUNT ( * ) col0, 16 / - 12 FROM tab1
----
3
-1

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab0 WHERE 8 * - col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9936
SELECT DISTINCT + col2 * - CAST( NULL AS SIGNED ) + 19 AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9936
SELECT DISTINCT + col2 * - CAST ( NULL AS INTEGER ) + 19 AS col1 FROM tab0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9937
SELECT ALL COUNT( ALL - ( - - col2 ) ) DIV MIN( DISTINCT + + CAST( - - 3 AS SIGNED ) ) DIV + MAX( + col1 ) * 93 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9937
SELECT ALL COUNT ( ALL - ( - - col2 ) ) / MIN ( DISTINCT + + CAST ( - - 3 AS INTEGER ) ) / + MAX ( + col1 ) * 93 AS col0 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9938
SELECT COUNT( * ) AS col0, SUM( DISTINCT - col2 ) FROM tab1
----
3
-223

skipif mysql # not compatible
query II rowsort label-9938
SELECT COUNT ( * ) AS col0, SUM ( DISTINCT - col2 ) FROM tab1
----
3
-223

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + 10 ) col2 FROM tab0
----
10
10
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9940
SELECT COUNT( ALL ( - 57 ) ) * - ( + MAX( ALL - col1 ) ) - COUNT( * ) AS col2 FROM tab1
----
12

skipif mysql # not compatible
query I rowsort label-9940
SELECT COUNT ( ALL ( - 57 ) ) * - ( + MAX ( ALL - col1 ) ) - COUNT ( * ) AS col2 FROM tab1
----
12

query I rowsort
SELECT - col0 AS col2 FROM tab2 AS cor0 WHERE NULL > NULL
----

query I rowsort
SELECT ALL - 40 * col2 * 29 FROM tab1 AS cor0
----
-111360
-68440
-78880

query I rowsort
SELECT - col0 * - + 62 + - 47 FROM tab2
----
2805
3921
4603

query I rowsort
SELECT col0 * + 11 + + + col2 * - - col1 AS col2 FROM tab1
----
1230
1905
4197

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - 93 ) col2 FROM tab2
----
93
93
93

onlyif mysql # aggregate syntax: 
query I rowsort label-9946
SELECT - COUNT( + + ( - - col0 ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-9946
SELECT - COUNT ( + + ( - - col0 ) ) FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9947
SELECT DISTINCT - 13 - - + COUNT( ALL + 56 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-4

skipif mysql # not compatible
query I rowsort label-9947
SELECT DISTINCT - 13 - - + COUNT ( ALL + 56 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-9948
SELECT ALL - 55 + - + 37 * COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-388

skipif mysql # not compatible
query I rowsort label-9948
SELECT ALL - 55 + - + 37 * COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-388

query II rowsort
SELECT + + 95 - col0 AS col0, 68 AS col1 FROM tab2 AS cor0
----
20
68
31
68
49
68

onlyif mysql # aggregate syntax: 
query I rowsort label-9950
SELECT ALL - 15 * COUNT( * ) AS col1 FROM tab2 cor0
----
-45

skipif mysql # not compatible
query I rowsort label-9950
SELECT ALL - 15 * COUNT ( * ) AS col1 FROM tab2 cor0
----
-45

query I rowsort
SELECT ALL col1 + - - col0 + - col1 AS col0 FROM tab1 AS cor0
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9952
SELECT - - COUNT( * ) - + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9952
SELECT - - COUNT ( * ) - + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT + col1 + + - 70 / + 13 FROM tab1 AS cor0 WHERE ( NULL ) > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9954
SELECT + col0 * CAST( - col1 AS SIGNED ) - + 6 FROM tab2 cor0
----
-2352
-4934
-5031

skipif mysql # not compatible
query I rowsort label-9954
SELECT + col0 * CAST ( - col1 AS INTEGER ) - + 6 FROM tab2 cor0
----
-2352
-4934
-5031

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9955
SELECT * FROM tab1 AS cor0 WHERE NOT ( + + col1 ) + + col2 + + - 31 NOT IN ( col1, 70 * + CAST( NULL AS SIGNED ) + + + col1, + 31 * col2, col1 + 15 + + col1 * - 21 )
----

skipif mysql # not compatible
query III rowsort label-9955
SELECT * FROM tab1 AS cor0 WHERE NOT ( + + col1 ) + + col2 + + - 31 NOT IN ( col1, 70 * + CAST ( NULL AS INTEGER ) + + + col1, + 31 * col2, col1 + 15 + + col1 * - 21 )
----

query I rowsort
SELECT - 25 * + ( col0 ) FROM tab1 AS cor0
----
-1275
-2125
-2275

onlyif mysql # aggregate syntax: 
query II rowsort label-9957
SELECT - COUNT( * ) AS col0, - SUM( - - col1 ) AS col1 FROM tab1
----
-3
-66

skipif mysql # not compatible
query II rowsort label-9957
SELECT - COUNT ( * ) AS col0, - SUM ( - - col1 ) AS col1 FROM tab1
----
-3
-66

onlyif mysql # DIV for integer division: 
query II rowsort label-9958
SELECT DISTINCT 23, col2 + - 29 DIV + col2 AS col0 FROM tab2
----
23
22
23
40
23
58

skipif mysql # not compatible
query II rowsort label-9958
SELECT DISTINCT 23, col2 + - 29 / + col2 AS col0 FROM tab2
----
23
22
23
40
23
58

query II rowsort
SELECT col2 AS col2, - col0 AS col0 FROM tab2
----
23
-46
40
-64
58
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-9960
SELECT col0 DIV + + 78 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-9960
SELECT col0 / + + 78 FROM tab1
----
0
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9961
SELECT ALL 24 DIV + + col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9961
SELECT ALL 24 / + + col1 FROM tab2
----
0
0
0

query II rowsort
SELECT ALL 41, col2 AS col2 FROM tab1
----
41
59
41
68
41
96

query I rowsort
SELECT DISTINCT + - 62 + + + col0 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 * - - col1 + + col2 * - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9965
SELECT ALL COUNT( ALL - - col2 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9965
SELECT ALL COUNT ( ALL - - col2 ) FROM tab0
----
3

query II rowsort
SELECT DISTINCT col0 + + + col1, col1 FROM tab2 WHERE + col1 * - - col0 + col2 - + col1 * - - col1 <= - col1 / 70
----
141
77
97
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9967
SELECT DISTINCT SUM( 28 ) AS col2 FROM tab1 WHERE - col1 - + col0 / CAST( NULL AS SIGNED ) IN ( 76, - col1, - + col2 * - CAST( NULL AS DECIMAL ) * - col2 + + 22 + - 82, 13 * + - col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9967
SELECT DISTINCT SUM ( 28 ) AS col2 FROM tab1 WHERE - col1 - + col0 / CAST ( NULL AS INTEGER ) IN ( 76, - col1, - + col2 * - CAST ( NULL AS REAL ) * - col2 + + 22 + - 82, 13 * + - col2 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9968
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 12 * + col0 * - col0 - CAST( col1 AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9968
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 12 * + col0 * - col0 - CAST ( col1 AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT 16 AS col1, col1 AS col2 FROM tab2 AS cor0
----
16
51
16
67
16
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9970
SELECT + MAX( DISTINCT - + 34 ) FROM tab2
----
-34

skipif mysql # not compatible
query I rowsort label-9970
SELECT + MAX ( DISTINCT - + 34 ) FROM tab2
----
-34

query I rowsort
SELECT ALL - + 7 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ba940cd66e21e94e95aada5f28e1faf5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 60 col2 FROM tab2 AS cor0
----
-60

query I rowsort
SELECT - + col0 * - 92 - + col2 + + col0 FROM tab2 AS cor0
----
4255
5912
6917

query I rowsort
SELECT ALL col1 + + 15 * + 80 FROM tab1 AS cor0
----
1205
1214
1247

onlyif mysql # DIV for integer division: 
query I rowsort label-9975
SELECT ALL + - col2 + 15 * 94 + - col1 DIV - col1 AS col0 FROM tab2 AS cor0
----
1353
1371
1388

skipif mysql # not compatible
query I rowsort label-9975
SELECT ALL + - col2 + 15 * 94 + - col1 / - col1 AS col0 FROM tab2 AS cor0
----
1353
1371
1388

onlyif mysql # DIV for integer division: 
query I rowsort label-9976
SELECT DISTINCT - col1 + + - col0 DIV 67 AS col0 FROM tab0 AS cor0
----
-2
-22
-81

skipif mysql # not compatible
query I rowsort label-9976
SELECT DISTINCT - col1 + + - col0 / 67 AS col0 FROM tab0 AS cor0
----
-2
-22
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-9977
SELECT col1 + - col2 + + col0 DIV + 55 AS col1 FROM tab0 AS cor0
----
-97
12
34

skipif mysql # not compatible
query I rowsort label-9977
SELECT col1 + - col2 + + col0 / + 55 AS col1 FROM tab0 AS cor0
----
-97
12
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 54 + - ( - col1 ) + - - col1 col2 FROM tab0 AS cor0
----
-12
-52
108

query I rowsort
SELECT DISTINCT 25 + col0 + + - col2 + + 16 FROM tab1 AS cor0
----
-4
64
67

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE col2 NOT BETWEEN - - col2 + + col1 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9981
SELECT + col2 FROM tab0 WHERE + ( - + CAST( NULL AS DECIMAL ) ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9981
SELECT + col2 FROM tab0 WHERE + ( - + CAST ( NULL AS REAL ) ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9982
SELECT - COUNT( * ) col2 FROM tab1 WHERE + - 77 + - 84 > NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9982
SELECT - COUNT ( * ) col2 FROM tab1 WHERE + - 77 + - 84 > NULL
----
0

query I rowsort
SELECT - - 3 AS col2 FROM tab0 WHERE - + col0 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9984
SELECT DISTINCT + 32 + - COUNT( * ) AS col0 FROM tab2
----
29

skipif mysql # not compatible
query I rowsort label-9984
SELECT DISTINCT + 32 + - COUNT ( * ) AS col0 FROM tab2
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-9985
SELECT + COUNT( * ) * 6 FROM tab2
----
18

skipif mysql # not compatible
query I rowsort label-9985
SELECT + COUNT ( * ) * 6 FROM tab2
----
18

query I rowsort
SELECT - + 34 - - col2 FROM tab1 cor0
----
25
34
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 22 + + + col0 * + col0 col0 FROM tab1
----
2579
7203
8259

onlyif mysql # aggregate syntax: 
query I rowsort label-9988
SELECT - 86 + - + COUNT( * ) FROM tab0
----
-89

skipif mysql # not compatible
query I rowsort label-9988
SELECT - 86 + - + COUNT ( * ) FROM tab0
----
-89

query I rowsort
SELECT ALL + 10 * + 9 - 19 - + - 78 + - - col0 FROM tab1
----
200
234
240

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9990
SELECT + 56 + CAST( NULL AS SIGNED ) + 19 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9990
SELECT + 56 + CAST ( NULL AS INTEGER ) + 19 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 + - col2 + col0 FROM tab1 cor0 WHERE ( NULL <> + col2 / col0 )
----

query I rowsort
SELECT ALL - col0 FROM tab1 AS cor0 WHERE NOT + 28 IS NULL
----
-51
-85
-91

query I rowsort
SELECT DISTINCT + 35 * - - 93 FROM tab1 AS cor0
----
3255

onlyif mysql # aggregate syntax: 
query I rowsort label-9994
SELECT DISTINCT - + SUM( DISTINCT - col0 ) AS col0 FROM tab0 cor0
----
199

skipif mysql # not compatible
query I rowsort label-9994
SELECT DISTINCT - + SUM ( DISTINCT - col0 ) AS col0 FROM tab0 cor0
----
199

query I rowsort
SELECT col2 + - ( + 16 ) * - col0 FROM tab2 WHERE NOT NULL = ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9996
SELECT ALL + 43 * + + ( COUNT( * ) ) AS col1 FROM tab1
----
129

skipif mysql # not compatible
query I rowsort label-9996
SELECT ALL + 43 * + + ( COUNT ( * ) ) AS col1 FROM tab1
----
129

query I rowsort
SELECT DISTINCT - 4 AS col2 FROM tab2 WHERE NOT + col0 NOT IN ( + 51 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9998
SELECT COUNT( DISTINCT CAST( col1 AS SIGNED ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9998
SELECT COUNT ( DISTINCT CAST ( col1 AS INTEGER ) ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9999
SELECT ( COUNT( ALL + + col0 ) ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9999
SELECT ( COUNT ( ALL + + col0 ) ) AS col0 FROM tab1
----
3

