sqllogictest
Artifact Content
Not logged in

Artifact 6c09cb110691cc7590acfeb4fdc179e57b05416f:


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)

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 28 - + col0 col0 FROM tab2
----
-18
-36
-47

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( 21 ) BETWEEN 36 * - col0 AND + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2
SELECT ALL - CAST( NULL AS SIGNED ) / 37 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2
SELECT ALL - CAST ( NULL AS INTEGER ) / 37 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ( 39 ) - col0 FROM tab1
----
-12
-46
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-4
SELECT COUNT( * ) * - 78 - MAX( DISTINCT col1 + - 84 * col1 ) col2 FROM tab0 AS cor0
----
-151

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4
SELECT COUNT ( * ) * - 78 - MAX ( DISTINCT col1 + - 84 * col1 ) col2 FROM tab0 AS cor0
----
-151

query I rowsort
SELECT + ( + 7 ) - - col1 FROM tab2 AS cor0
----
58
74
84

query I rowsort
SELECT DISTINCT col2 - 88 AS col0 FROM tab0 AS cor0
----
-41
-78
11

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 - - 77 <= NULL
----

query I rowsort
SELECT + col2 * - col1 AS col1 FROM tab0 AS cor0 WHERE NOT - 20 + col0 IS NULL
----
-210
-3807
-99

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL = - 23
----

query I rowsort
SELECT 39 FROM tab2 AS cor0 CROSS JOIN tab1
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

query I rowsort
SELECT 36 * col2 AS col0 FROM tab1
----
2124
2448
3456

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-14
SELECT DISTINCT - col1 * CAST( NULL AS SIGNED ) FROM tab2 cor0 WHERE NOT col1 + + col2 NOT IN ( col0 )
----

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( - 40 ) NOT IN ( - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-17
SELECT DISTINCT CAST( 31 AS SIGNED ) FROM tab1 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-17
SELECT DISTINCT CAST ( 31 AS INTEGER ) FROM tab1 AS cor0
----
31

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

query I rowsort
SELECT col1 * 73 * col2 FROM tab2
----
224840
283678
85629

query I rowsort
SELECT + col2 * - ( 69 ) FROM tab0
----
-3243
-6831
-690

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-22
SELECT ALL + 53 * - COUNT( * ) * + COUNT( * ) FROM tab2
----
-477

skipif mysql # not compatible
query I rowsort label-22
SELECT ALL + 53 * - COUNT ( * ) * + COUNT ( * ) FROM tab2
----
-477

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 NOT IN ( 83 ) OR 42 BETWEEN ( NULL ) AND ( NULL )
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-25
SELECT ALL - 26 DIV + - 41 * col1 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-25
SELECT ALL - 26 / + - 41 * col1 AS col2 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-26
SELECT - COUNT( * ) DIV - - 92 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-26
SELECT - COUNT ( * ) / - - 92 FROM tab1
----
0

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 2 + col0 * + col1 col0 FROM tab0 WHERE + 42 - col1 <= 19
----
1217

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

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

query I rowsort
SELECT ALL + col2 * col0 + - 89 AS col0 FROM tab0
----
616
781
9514

onlyif mysql # aggregate syntax: 
query I rowsort label-32
SELECT + MIN( DISTINCT 31 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
31

skipif mysql # not compatible
query I rowsort label-32
SELECT + MIN ( DISTINCT 31 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
31

query I rowsort
SELECT ALL col0 + - + col1 + - - 82 + - col2 * - col2 AS col2 FROM tab2
----
1669
3454
606

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-37
SELECT DISTINCT 30 * - + COUNT( * ) FROM tab0 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-37
SELECT DISTINCT 30 * - + COUNT ( * ) FROM tab0 AS cor0
----
-90

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

skipif mysql # not compatible
query I rowsort label-38
SELECT - col0 / + - CAST ( NULL AS INTEGER ) - 46 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-39
SELECT COUNT( * ) - - 8 AS col1 FROM tab0 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-39
SELECT COUNT ( * ) - - 8 AS col1 FROM tab0 AS cor0
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-40
SELECT 70 - - col0 * - CAST( + - col1 AS SIGNED ) + + col0 FROM tab1
----
4438
580
835

skipif mysql # not compatible
query I rowsort label-40
SELECT 70 - - col0 * - CAST ( + - col1 AS INTEGER ) + + col0 FROM tab1
----
4438
580
835

query I rowsort
SELECT + 92 + 91 AS col1 FROM tab0
----
183
183
183

onlyif mysql # aggregate syntax: 
query I rowsort label-42
SELECT - COUNT( * ) + - 8 AS col0 FROM tab0
----
-11

skipif mysql # not compatible
query I rowsort label-42
SELECT - COUNT ( * ) + - 8 AS col0 FROM tab0
----
-11

query I rowsort
SELECT col1 + + + 18 FROM tab2
----
69
85
95

query III rowsort
SELECT * FROM tab0 WHERE + - col0 - + - col2 + col0 * + col2 NOT BETWEEN 69 AND 31 * - col1 + 83
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col2 + - col0 * - + ( + col1 ) FROM tab1
----
366
4209
618

query I rowsort
SELECT DISTINCT - 93 - + col2 FROM tab0
----
-103
-140
-192

query I rowsort
SELECT DISTINCT - ( + ( - 46 ) ) FROM tab2 WHERE + 17 > ( + col0 )
----

query I rowsort
SELECT - ( - col0 ) * - 46 + - col0 FROM tab0 cor0
----
-4089
-4559
-705

onlyif mysql # aggregate syntax: 
query I rowsort label-49
SELECT SUM( + + col2 ) FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-49
SELECT SUM ( + + col2 ) FROM tab0
----
156

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

onlyif mysql # aggregate syntax: 
query I rowsort label-51
SELECT 5 * - MAX( col1 ) AS col2 FROM tab2
----
-385

skipif mysql # not compatible
query I rowsort label-51
SELECT 5 * - MAX ( col1 ) AS col2 FROM tab2
----
-385

query I rowsort
SELECT ALL col2 * + + col1 FROM tab2 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
1173
3080
3886

query II rowsort
SELECT + + col2 AS col0, col2 FROM tab0 cor0 WHERE NOT NULL <= col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-54
SELECT SUM( col2 ) FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND col2 * - col2 * + - 96 * - 74 / 1 + - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-54
SELECT SUM ( col2 ) FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND col2 * - col2 * + - 96 * - 74 / 1 + - col1
----
NULL

query II rowsort
SELECT DISTINCT - col0 AS col1, 85 FROM tab0 AS cor0
----
-15
85
-87
85
-97
85

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

query I rowsort
SELECT DISTINCT - col0 + col0 * - 19 AS col0 FROM tab2 AS cor0
----
-1280
-1500
-920

query I rowsort
SELECT - 32 + - - 68 FROM tab0
----
36
36
36

query III rowsort
SELECT * FROM tab2 WHERE NOT ( 89 * - 71 - - col2 ) IN ( col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT col1, - col2 AS col0 FROM tab2 WHERE NOT + - col1 BETWEEN NULL AND NULL
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 26 col1 FROM tab0 WHERE NULL IS NULL
----
-26
-26
-26

query II rowsort
SELECT DISTINCT col2 AS col0, 47 FROM tab1
----
59
47
68
47
96
47

query I rowsort
SELECT 77 FROM tab0 WHERE ( NOT ( NOT + - col1 IS NOT NULL ) )
----
77
77
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * ( - 75 ) col2 FROM tab0 AS cor0
----
1125
6525
7275

query I rowsort
SELECT DISTINCT + + col1 + col1 * + - col0 FROM tab2 AS cor0
----
-2295
-4851
-4958

query I rowsort
SELECT ALL - col2 AS col2 FROM tab2 AS cor0 WHERE + col1 + - col1 * + - col1 * ( - col1 ) BETWEEN NULL AND + 0
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - 78 col2 FROM tab0 AS cor0
----
-125
-177
-88

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-71
SELECT + - 51 * 70 * COUNT( * ) + + CAST( + COUNT( + 49 ) AS SIGNED ) FROM tab1 cor0
----
-10707

skipif mysql # not compatible
query I rowsort label-71
SELECT + - 51 * 70 * COUNT ( * ) + + CAST ( + COUNT ( + 49 ) AS INTEGER ) FROM tab1 cor0
----
-10707

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 17 >= 46 + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-73
SELECT ALL COUNT( - - col1 ) - + - 37 AS col1 FROM tab0 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-73
SELECT ALL COUNT ( - - col1 ) - + - 37 AS col1 FROM tab0 AS cor0
----
40

query I rowsort
SELECT DISTINCT + 14 * col0 * + 17 FROM tab2 AS cor0
----
10948
15232
17850

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN - - 62 AND NULL
----

query I rowsort
SELECT DISTINCT + 45 * 33 - - col1 AS col2 FROM tab2 AS cor0
----
1536
1552
1562

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col1 FROM tab1 AS cor0 WHERE NOT ( NOT NULL IS NULL )
----
51
85
91

onlyif mysql # DIV for integer division: 
query I rowsort label-78
SELECT DISTINCT - 59 DIV - 1 AS col0 FROM tab0
----
59

skipif mysql # not compatible
query I rowsort label-78
SELECT DISTINCT - 59 / - 1 AS col0 FROM tab0
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-79
SELECT col1 DIV - 49 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-79
SELECT col1 / - 49 FROM tab2
----
-1
-1
-1

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-82
SELECT - ( col0 ) * + - col1 DIV col1 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-82
SELECT - ( col0 ) * + - col1 / col1 FROM tab1
----
51
85
91

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

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

query I rowsort
SELECT + 43 * - 40 AS col0 FROM tab1
----
-1720
-1720
-1720

query I rowsort
SELECT 88 * - - 50 AS col2 FROM tab0
----
4400
4400
4400

onlyif mysql # aggregate syntax: 
query I rowsort label-86
SELECT + MAX( ALL - col0 ) col2 FROM tab2
----
-46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-86
SELECT + MAX ( ALL - col0 ) col2 FROM tab2
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-87
SELECT ALL * FROM tab1 WHERE NOT ( col2 - - CAST( NULL AS SIGNED ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-87
SELECT ALL * FROM tab1 WHERE NOT ( col2 - - CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query I rowsort
SELECT DISTINCT + 58 * + 71 AS col1 FROM tab2
----
4118

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

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

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

query I rowsort
SELECT ALL - 41 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 4ba0c102091f9cbc9fe9439b04584e70

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

query I rowsort
SELECT DISTINCT + 59 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
59

query I rowsort
SELECT col1 * - 35 AS col2 FROM tab1
----
-1645
-175
-490

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

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

query I rowsort
SELECT ALL - col0 * + col2 + - + 18 FROM tab2 AS cor0
----
-1076
-2578
-4368

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-98
SELECT ALL + 70 * + ( - AVG ( DISTINCT - + CAST( NULL AS SIGNED ) ) ) / + CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-98
SELECT ALL + 70 * + ( - AVG ( DISTINCT - + CAST ( NULL AS INTEGER ) ) ) / + CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 NOT BETWEEN + col1 / + col1 AND - ( - 19 ) * - col1 + - - 45 + + col0
----
85
5
59

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-101
SELECT + COUNT ( * ) col2 FROM tab1 WHERE + 75 * + col1 * - + col1 IS NULL
----
0

query I rowsort
SELECT ALL 15 + + - 65 AS col1 FROM tab2
----
-50
-50
-50

query I rowsort
SELECT DISTINCT + 57 + col0 FROM tab1
----
108
142
148

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 + - col1 >= + col0 * + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-105
SELECT ALL + SUM( + + col1 ) FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-105
SELECT ALL + SUM ( + + col1 ) FROM tab1
----
66

query I rowsort
SELECT + 79 + + col2 AS col1 FROM tab0
----
126
178
89

query I rowsort
SELECT DISTINCT + 39 AS col1 FROM tab1 cor0
----
39

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 5 col2, + 52 AS col0 FROM tab1 AS cor0
----
5
52
5
52
5
52

onlyif mysql # aggregate syntax: 
query I rowsort label-111
SELECT DISTINCT + 20 - + COUNT( * ) AS col0 FROM tab1
----
17

skipif mysql # not compatible
query I rowsort label-111
SELECT DISTINCT + 20 - + COUNT ( * ) AS col0 FROM tab1
----
17

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 72 + + + col2 + - col0 <= ( + + ( ( + 84 ) ) + - 49 + col0 * + 89 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

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

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

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

query I rowsort
SELECT DISTINCT 75 * 95 * + col1 FROM tab1 AS cor0
----
334875
35625
99750

query II rowsort
SELECT col2 - - col1 + - - col0 * - col0 AS col2, - ( - col2 ) FROM tab1 AS cor0
----
-2491
96
-7161
59
-8166
68

onlyif mysql # DIV for integer division: 
query I rowsort label-118
SELECT col1 * + - 85 + - + 68 DIV 46 FROM tab2 AS cor0
----
-4336
-5696
-6546

skipif mysql # not compatible
query I rowsort label-118
SELECT col1 * + - 85 + - + 68 / 46 FROM tab2 AS cor0
----
-4336
-5696
-6546

onlyif mysql # aggregate syntax: 
query I rowsort label-119
SELECT ALL - - ( - COUNT( * ) ) * + - 93 col0 FROM tab0 AS cor0
----
279

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-120
SELECT - 23 FROM tab0 WHERE NOT ( NOT CAST( NULL AS SIGNED ) IS NULL )
----
-23
-23
-23

skipif mysql # not compatible
query I rowsort label-120
SELECT - 23 FROM tab0 WHERE NOT ( NOT CAST ( NULL AS INTEGER ) IS NULL )
----
-23
-23
-23

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 AS cor0 WHERE + + 80 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-122
SELECT + 39 AS col1 FROM tab2 WHERE NOT NULL < col1 + + - CAST( + - 39 AS SIGNED ) / - + 52
----

skipif mysql # not compatible
query I rowsort label-122
SELECT + 39 AS col1 FROM tab2 WHERE NOT NULL < col1 + + - CAST ( + - 39 AS INTEGER ) / - + 52
----

onlyif mysql # aggregate syntax: 
query I rowsort label-123
SELECT ALL + + MIN( ALL + 56 ) - 91 col0 FROM tab1 WHERE - col2 IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-123
SELECT ALL + + MIN ( ALL + 56 ) - 91 col0 FROM tab1 WHERE - col2 IS NULL
----
NULL

query I rowsort
SELECT + col0 AS col1 FROM tab1 WHERE NOT col0 * col2 < + - 56
----
51
85
91

query I rowsort
SELECT ALL + - 44 * - col2 * + 92 * + col2 AS col1 FROM tab0 AS cor0
----
39674448
404800
8942032

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + col1 * col0 col2, + col1 + col1 + 37 AS col0 FROM tab1 AS cor0
----
-425
47
-4277
131
-714
65

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

query I rowsort
SELECT ALL - 93 * - ( col2 ) * - col2 FROM tab2 AS cor0
----
-148800
-312852
-49197

onlyif mysql # aggregate syntax: 
query I rowsort label-129
SELECT - MIN( - col2 ) col0 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-129
SELECT - MIN ( - col2 ) col0 FROM tab0 AS cor0
----
99

query I rowsort
SELECT - - col2 FROM tab2 WHERE NOT + col1 IS NULL
----
23
40
58

query I rowsort
SELECT DISTINCT - + 84 AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-132
SELECT CAST( NULL AS SIGNED ) / - 95 * + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-132
SELECT CAST ( NULL AS INTEGER ) / - 95 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 * - 86 AS col2 FROM tab1 AS cor0
----
4386
7310
7826

onlyif mysql # aggregate syntax: 
query II rowsort label-134
SELECT ALL + COUNT( * ) AS col2, - 69 AS col2 FROM tab0 AS cor0
----
3
-69

skipif mysql # not compatible
query II rowsort label-134
SELECT ALL + COUNT ( * ) AS col2, - 69 AS col2 FROM tab0 AS cor0
----
3
-69

query I rowsort
SELECT + col1 + + 35 + - ( 74 ) FROM tab2 AS cor0
----
12
28
38

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

onlyif mysql # DIV for integer division: 
query I rowsort label-137
SELECT - 65 + + + col2 DIV + - col2 col1 FROM tab0 AS cor0
----
-66
-66
-66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-137
SELECT - 65 + + + col2 / + - col2 col1 FROM tab0 AS cor0
----
-66
-66
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-138
SELECT ALL + 24 + - ( - ( - COUNT( * ) ) ) AS col0 FROM tab1 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-138
SELECT ALL + 24 + - ( - ( - COUNT ( * ) ) ) AS col0 FROM tab1 AS cor0
----
21

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

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

query II rowsort
SELECT ALL - col2 + col0 AS col2, col0 * + 71 FROM tab2
----
17
5325
23
3266
24
4544

onlyif mysql # DIV for integer division: 
query I rowsort label-142
SELECT DISTINCT + 60 DIV col2 DIV - 40 + + - col2 AS col1 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-142
SELECT DISTINCT + 60 / col2 / - 40 + + - col2 AS col1 FROM tab1
----
-59
-68
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-143
SELECT 39 DIV 2 FROM tab2 AS cor0
----
19
19
19

skipif mysql # not compatible
query I rowsort label-143
SELECT 39 / 2 FROM tab2 AS cor0
----
19
19
19

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-144
SELECT ALL 98 / + + col1 col2 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT + + 20 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

query I rowsort
SELECT DISTINCT + col1 + - - 26 FROM tab0
----
107
27
47

query I rowsort
SELECT ALL 29 - - - col1 AS col1 FROM tab2
----
-22
-38
-48

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + - 74 * - 97 col1 FROM tab1
----
7237
7246
7274

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

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

skipif mysql # not compatible
query I rowsort label-151
SELECT ALL - SUM ( DISTINCT - ( - 64 ) ) FROM tab0 AS cor0
----
-64

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

query I rowsort
SELECT + - 76 * + - col0 + - ( 32 ) + - ( + col2 ) FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
3441
4792
5610

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
14
47
5

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

skipif mysql # not compatible
query I rowsort label-155
SELECT + CAST ( + + 54 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
54
54
54

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

query II rowsort
SELECT DISTINCT + col0, col0 FROM tab2
----
46
46
64
64
75
75

onlyif mysql # DIV for integer division: 
query I rowsort label-158
SELECT - 3 DIV + col0 * - 48 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-158
SELECT - 3 / + col0 * - 48 AS col2 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-159
SELECT - 69 DIV - col0 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-159
SELECT - 69 / - col0 FROM tab2
----
0
1
1

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

query I rowsort
SELECT DISTINCT col0 * + 52 * + 36 FROM tab0
----
162864
181584
28080

query I rowsort
SELECT ALL - 87 * + col2 AS col1 FROM tab0
----
-4089
-8613
-870

query I rowsort
SELECT 72 * + 29 AS col2 FROM tab1
----
2088
2088
2088

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

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

query II rowsort
SELECT - 49, + col1 AS col2 FROM tab0 AS cor0
----
-49
1
-49
21
-49
81

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL IN ( - - 75 )
----

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 56 IS NOT NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

query I rowsort
SELECT - 8 + 13 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 6035628694bdea36f584f3649088551d

query I rowsort
SELECT 50 AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

query II rowsort
SELECT ALL - + ( + + 53 ), col0 - + col2 AS col1 FROM tab2 AS cor0
----
-53
17
-53
23
-53
24

onlyif mysql # aggregate syntax: 
query I rowsort label-172
SELECT - COUNT( + col2 ) AS col0 FROM tab0 AS cor0 WHERE + 30 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-172
SELECT - COUNT ( + col2 ) AS col0 FROM tab0 AS cor0 WHERE + 30 IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-173
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 21 + + col0 * + col2 * + 10 NOT IN ( - 37, + CAST( NULL AS SIGNED ) + + - col0 )
----

skipif mysql # not compatible
query III rowsort label-173
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 21 + + col0 * + col2 * + 10 NOT IN ( - 37, + CAST ( NULL AS INTEGER ) + + - col0 )
----

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

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

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

query I rowsort
SELECT - + col0 * - col2 AS col1 FROM tab1 cor0
----
4896
5015
6188

query I rowsort
SELECT DISTINCT + 31 + - + 77 FROM tab2
----
-46

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-179
SELECT + CAST( NULL AS SIGNED ) AS col2, + 9 + + 19 AS col0 FROM tab2
----
NULL
28
NULL
28
NULL
28

skipif mysql # not compatible
query II rowsort label-179
SELECT + CAST ( NULL AS INTEGER ) AS col2, + 9 + + 19 AS col0 FROM tab2
----
NULL
28
NULL
28
NULL
28

query I rowsort
SELECT ALL + 81 + - + 51 AS col1 FROM tab1
----
30
30
30

query III rowsort
SELECT * FROM tab2 WHERE NULL = + + col0 + 25 / + + col2
----

query I rowsort
SELECT ALL - 37 + - col2 * ( 65 ) AS col0 FROM tab1
----
-3872
-4457
-6277

query I rowsort
SELECT ALL 41 + - + 34 FROM tab1 AS cor0 WHERE col2 < - col1
----

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT - 94 + + col1 FROM tab2
----
-17
-27
-43

query I rowsort
SELECT + 58 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + 47 * 29 IS NULL
----

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

skipif mysql # not compatible
query I rowsort label-192
SELECT DISTINCT + ( + CAST ( - COUNT ( * ) AS INTEGER ) ) FROM tab1 AS cor0
----
-3

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

query I rowsort
SELECT - ( + - col0 ) + + - 66 * + col1 AS col1 FROM tab1 AS cor0 WHERE NOT ( + 14 ) IS NULL
----
-245
-3011
-873

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-195
SELECT ALL CAST( NULL AS SIGNED ) AS col2 FROM tab1 cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-195
SELECT ALL CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

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

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

query I rowsort
SELECT ALL 36 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT 22 * + col2 + - col0 - + col2 + - col0 + 44 * - + 22 FROM tab1 WHERE NOT + col0 IS NULL
----
101
278
946

query I rowsort
SELECT DISTINCT + 72 AS col2 FROM tab0 WHERE col0 IS NULL OR NOT + - 31 IS NOT NULL
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-202
SELECT ALL COUNT( * ) * - - 20 FROM tab2
----
60

skipif mysql # not compatible
query I rowsort label-202
SELECT ALL COUNT ( * ) * - - 20 FROM tab2
----
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT ALL 70, - col1 * col0 col2, + col0 FROM tab1
----
9 values hashing to b943939ce0e1e9fc1a3576b58fdd9054

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + ( + 69 ) col0 FROM tab2
----
1587
2760
4002

onlyif mysql # aggregate syntax: 
query I rowsort label-206
SELECT DISTINCT - + 31 - + COUNT( * ) AS col1 FROM tab1 WHERE NOT NULL IS NULL
----
-31

skipif mysql # not compatible
query I rowsort label-206
SELECT DISTINCT - + 31 - + COUNT ( * ) AS col1 FROM tab1 WHERE NOT NULL IS NULL
----
-31

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

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

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

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

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

query I rowsort
SELECT - 6 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e92b2679faac7be63701967e3f0c0934

onlyif mysql # aggregate syntax: 
query I rowsort label-212
SELECT + COUNT( * ) AS col2 FROM tab0 WHERE ( ( - 21 IS NULL ) )
----
0

skipif mysql # not compatible
query I rowsort label-212
SELECT + COUNT ( * ) AS col2 FROM tab0 WHERE ( ( - 21 IS NULL ) )
----
0

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

query I rowsort
SELECT - 49 * col0 + - - col0 - col2 FROM tab2 AS cor0
----
-2231
-3112
-3658

query I rowsort
SELECT DISTINCT - col1 FROM tab0 AS cor0 WHERE NOT NULL > - 61 / - col0
----

query II rowsort
SELECT ALL - - 17 + 34 AS col0, + col0 * + col0 FROM tab1 AS cor0
----
51
2601
51
7225
51
8281

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

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

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

query I rowsort
SELECT ALL - - ( - 41 ) AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE col1 >= col1 * + col1
----

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

query I rowsort
SELECT + col0 - + - col2 FROM tab2 AS cor0
----
104
133
69

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

query I rowsort
SELECT + col1 * + - 17 FROM tab2
----
-1139
-1309
-867

onlyif mysql # aggregate syntax: 
query I rowsort label-225
SELECT - COUNT( * ) * 33 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-225
SELECT - COUNT ( * ) * 33 FROM tab0
----
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-226
SELECT ALL 90 DIV + 24 AS col2 FROM tab2
----
3
3
3

skipif mysql # not compatible
query I rowsort label-226
SELECT ALL 90 / + 24 AS col2 FROM tab2
----
3
3
3

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 = - col2
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-230
SELECT ALL COUNT( DISTINCT - 87 ) * - SUM( col1 ) + + + 97 AS col1 FROM tab2 AS cor0
----
-98

skipif mysql # not compatible
query I rowsort label-230
SELECT ALL COUNT ( DISTINCT - 87 ) * - SUM ( col1 ) + + + 97 AS col1 FROM tab2 AS cor0
----
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-231
SELECT DISTINCT + CAST( + COUNT( * ) AS SIGNED ) * - - COUNT( * ), - 90 + + + 40 + 79 * MIN( ALL col0 ) * + 48 * COUNT( * ) AS col0 FROM tab1 AS cor0
----
9
580126

skipif mysql # not compatible
query II rowsort label-231
SELECT DISTINCT + CAST ( + COUNT ( * ) AS INTEGER ) * - - COUNT ( * ), - 90 + + + 40 + 79 * MIN ( ALL col0 ) * + 48 * COUNT ( * ) AS col0 FROM tab1 AS cor0
----
9
580126

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 99 * + 48 <= - - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-233
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE NOT 20 IS NULL AND NOT + 88 <= 61
----
3

skipif mysql # not compatible
query I rowsort label-233
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT 20 IS NULL AND NOT + 88 <= 61
----
3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-235
SELECT - MAX( 81 ) AS col2 FROM tab2 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-235
SELECT - MAX ( 81 ) AS col2 FROM tab2 AS cor0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-236
SELECT + 56 * - COUNT( * ) FROM tab1
----
-168

skipif mysql # not compatible
query I rowsort label-236
SELECT + 56 * - COUNT ( * ) FROM tab1
----
-168

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + 66 + + col1, - col2 col1 FROM tab2 AS cor0
----
117
-23
133
-58
143
-40

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-238
SELECT DISTINCT - 98 DIV + col2 + - col2 + + CAST( - + 8 AS SIGNED ) FROM tab1 AS cor0
----
-105
-68
-77

skipif mysql # not compatible
query I rowsort label-238
SELECT DISTINCT - 98 / + col2 + - col2 + + CAST ( - + 8 AS INTEGER ) FROM tab1 AS cor0
----
-105
-68
-77

query I rowsort
SELECT DISTINCT ( + + 94 ) AS col1 FROM tab1 AS cor0 WHERE NOT - col0 <> - 83
----

query I rowsort
SELECT + 62 + + col0 FROM tab0
----
149
159
77

query I rowsort
SELECT col0 + - 47 FROM tab2
----
-1
17
28

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

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

skipif mysql # not compatible
query I rowsort label-243
SELECT DISTINCT + 82 + CAST ( + + COUNT ( * ) AS INTEGER ) AS col0 FROM tab1
----
85

query I rowsort
SELECT ALL + col0 - - 45 + col0 AS col0 FROM tab2 cor0
----
137
173
195

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

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

query I rowsort
SELECT ALL - + 46 * - - col1 AS col1 FROM tab0 AS cor0
----
-3726
-46
-966

query I rowsort
SELECT DISTINCT col1 * - 66 FROM tab2 AS cor0
----
-3366
-4422
-5082

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-249
SELECT DISTINCT CAST( NULL AS SIGNED ) + + MIN( 98 ) AS col0, 23 FROM tab1 AS cor0
----
NULL
23

skipif mysql # not compatible
query II rowsort label-249
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + MIN ( 98 ) AS col0, 23 FROM tab1 AS cor0
----
NULL
23

query I rowsort
SELECT - 95 - + - ( - ( + - 72 ) ) AS col2 FROM tab0
----
-23
-23
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-251
SELECT COUNT( * ) - 43 FROM tab2
----
-40

skipif mysql # not compatible
query I rowsort label-251
SELECT COUNT ( * ) - 43 FROM tab2
----
-40

query I rowsort
SELECT col0 * + col0 + col2 AS col1 FROM tab1
----
2697
7284
8349

query I rowsort
SELECT ALL col2 - 44 AS col2 FROM tab1
----
15
24
52

onlyif mysql # DIV for integer division: 
query II rowsort label-254
SELECT + - col2, + col2 DIV + col0 * 3 * + col1 AS col1 FROM tab2 AS cor0
----
-23
0
-40
0
-58
0

skipif mysql # not compatible
query II rowsort label-254
SELECT + - col2, + col2 / + col0 * 3 * + col1 AS col1 FROM tab2 AS cor0
----
-23
0
-40
0
-58
0

query I rowsort
SELECT col2 * + col0 + + + col1 FROM tab1 AS cor0
----
4910
5020
6235

query I rowsort
SELECT DISTINCT - col2 * - 48 * + + col1 AS col0 FROM tab1 AS cor0
----
14160
153408
64512

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 * - 71 = - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col0 * + col0 + - col1 FROM tab0 AS cor0
----
144
7548
9408

onlyif mysql # aggregate syntax: 
query I rowsort label-259
SELECT DISTINCT + + 90 * + MIN( col0 ) AS col1 FROM tab1 AS cor0
----
4590

skipif mysql # not compatible
query I rowsort label-259
SELECT DISTINCT + + 90 * + MIN ( col0 ) AS col1 FROM tab1 AS cor0
----
4590

query I rowsort
SELECT ALL + col2 AS col2 FROM tab1 AS cor0 WHERE + 96 * + 41 IS NOT NULL
----
59
68
96

query I rowsort
SELECT DISTINCT - - ( - + col1 ) * + col1 FROM tab2 AS cor0
----
-2601
-4489
-5929

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-264
SELECT DISTINCT - SUM( ALL + 83 ) FROM tab1 AS cor0
----
-249

skipif mysql # not compatible
query I rowsort label-264
SELECT DISTINCT - SUM ( ALL + 83 ) FROM tab1 AS cor0
----
-249

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col0 ) col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-266
SELECT + + CAST( 64 AS SIGNED ) AS col2, + 2 - CAST( NULL AS SIGNED ) + col1 AS col0 FROM tab0 AS cor0
----
64
NULL
64
NULL
64
NULL

skipif mysql # not compatible
query II rowsort label-266
SELECT + + CAST ( 64 AS INTEGER ) AS col2, + 2 - CAST ( NULL AS INTEGER ) + col1 AS col0 FROM tab0 AS cor0
----
64
NULL
64
NULL
64
NULL

query II rowsort
SELECT DISTINCT - col1, - 52 AS col0 FROM tab0
----
-1
-52
-21
-52
-81
-52

query II rowsort
SELECT DISTINCT 96 AS col1, 96 AS col0 FROM tab1
----
96
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col1 * col1 AS col2, 99 + + col2 col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-196
195
-2209
167
-25
158

query I rowsort
SELECT ALL col0 + - 38 AS col2 FROM tab0
----
-23
49
59

onlyif mysql # aggregate syntax: 
query I rowsort label-271
SELECT ALL - MAX( ALL - col0 ) AS col0 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-271
SELECT ALL - MAX ( ALL - col0 ) AS col0 FROM tab1
----
51

onlyif mysql # aggregate syntax: 
query II rowsort label-272
SELECT DISTINCT + COUNT( * ) AS col0, - ( 76 ) * 85 + - 72 - + COUNT( * ) col0 FROM tab0
----
3
-6535

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-272
SELECT DISTINCT + COUNT ( * ) AS col0, - ( 76 ) * 85 + - 72 - + COUNT ( * ) col0 FROM tab0
----
3
-6535

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

onlyif mysql # DIV for integer division: 
query II rowsort label-274
SELECT ALL + col1, col2 DIV - - col0 col2 FROM tab0
----
1
1
21
0
81
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-274
SELECT ALL + col1, col2 / - - col0 col2 FROM tab0
----
1
1
21
0
81
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 57 * + + ( col2 ) IS NOT NULL
----

query II rowsort
SELECT DISTINCT + - col2, col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-23
51
-40
77
-58
67

query II rowsort
SELECT + 12, - 69 AS col0 FROM tab1 AS cor0
----
12
-69
12
-69
12
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-278
SELECT ALL + SUM( - col2 ) + - COUNT( * ) FROM tab1
----
-226

skipif mysql # not compatible
query I rowsort label-278
SELECT ALL + SUM ( - col2 ) + - COUNT ( * ) FROM tab1
----
-226

onlyif mysql # aggregate syntax: 
query I rowsort label-279
SELECT COUNT( * ) + SUM( DISTINCT col1 ) FROM tab0
----
106

skipif mysql # not compatible
query I rowsort label-279
SELECT COUNT ( * ) + SUM ( DISTINCT col1 ) FROM tab0
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-280
SELECT + 72 + SUM( DISTINCT + - col0 ) FROM tab2
----
-113

skipif mysql # not compatible
query I rowsort label-280
SELECT + 72 + SUM ( DISTINCT + - col0 ) FROM tab2
----
-113

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

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE NULL <= NULL
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-283
SELECT ALL COUNT ( * ) col1 FROM tab0 AS cor0 WHERE NOT col2 NOT BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT ALL 78 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IN ( 56 - col0, - col1, - - 88 )
----

query I rowsort
SELECT DISTINCT col2 + - - 32 AS col0 FROM tab2
----
55
72
90

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-287
SELECT CAST( ( + 22 ) AS SIGNED ) AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

skipif mysql # not compatible
query I rowsort label-287
SELECT CAST ( ( + 22 ) AS INTEGER ) AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

query II rowsort
SELECT + 87 AS col1, - 59 FROM tab0
----
87
-59
87
-59
87
-59

query I rowsort
SELECT DISTINCT col1 - - - 28 AS col2 FROM tab2
----
23
39
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-290
SELECT - 32 * + 17 - - 88 + + COUNT( * ) * + COUNT( * ) DIV + COUNT( * ) AS col1 FROM tab0
----
-453

skipif mysql # not compatible
query I rowsort label-290
SELECT - 32 * + 17 - - 88 + + COUNT ( * ) * + COUNT ( * ) / + COUNT ( * ) AS col1 FROM tab0
----
-453

query I rowsort
SELECT + col1 - - 27 FROM tab0
----
108
28
48

query I rowsort
SELECT ALL 39 * + - col1 AS col0 FROM tab1
----
-1833
-195
-546

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT IN ( 16 * 64 * - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 col1 FROM tab2 AS cor0 WHERE NULL <> NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-297
SELECT DISTINCT AVG ( ALL CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-297
SELECT DISTINCT AVG ( ALL CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

query I rowsort
SELECT 9 * + - col2 AS col1 FROM tab1
----
-531
-612
-864

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-304
SELECT + COUNT( DISTINCT 82 ) col2 FROM tab1
----
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-305
SELECT DISTINCT - MAX( col2 ) * + COUNT( * ) + - MIN( ALL + col1 ) FROM tab1
----
-293

skipif mysql # not compatible
query I rowsort label-305
SELECT DISTINCT - MAX ( col2 ) * + COUNT ( * ) + - MIN ( ALL + col1 ) FROM tab1
----
-293

query I rowsort
SELECT ALL + 65 + - col1 FROM tab0
----
-16
44
64

onlyif mysql # aggregate syntax: 
query I rowsort label-307
SELECT - COUNT( * ) * - 18 FROM tab2
----
54

skipif mysql # not compatible
query I rowsort label-307
SELECT - COUNT ( * ) * - 18 FROM tab2
----
54

query II rowsort
SELECT DISTINCT col2 + - - col2 AS col1, ( + 72 ) + - col2 FROM tab2
----
116
14
46
49
80
32

query II rowsort
SELECT + col1 * col1, - ( col2 ) * + 66 AS col2 FROM tab0
----
1
-6534
441
-660
6561
-3102

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 29 IS NULL
----

query I rowsort
SELECT ALL - + 42 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 9894093f29c0defae91347934f060329

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

skipif mysql # not compatible
query I rowsort label-312
SELECT + COUNT ( * ) / - 67 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + 36 - + col2 col0 FROM tab1 AS cor0
----
2065
2380
3360

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

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

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

query I rowsort
SELECT - col2 * + col1 - + + 5 + col0 * + 41 * + col2 - + - 5 + + + col0 + col1 FROM tab1 AS cor0
----
199457
205410
250650

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 <= - col2
----
15
81
47
97
1
99

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

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

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

query I rowsort
SELECT 35 * col0 AS col2 FROM tab0 cor0
----
3045
3395
525

onlyif mysql # aggregate syntax: 
query I rowsort label-322
SELECT - COUNT( * ) * 99 AS col0 FROM tab2 AS cor0
----
-297

skipif mysql # not compatible
query I rowsort label-322
SELECT - COUNT ( * ) * 99 AS col0 FROM tab2 AS cor0
----
-297

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-326
SELECT - - col0 DIV + 90 AS col1 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-326
SELECT - - col0 / + 90 AS col1 FROM tab1 AS cor0
----
0
0
1

query III rowsort
SELECT ALL - col1 AS col0, - col0 * col2 AS col0, - ( - 55 ) AS col1 FROM tab2 AS cor0
----
9 values hashing to ed18b00977e8c27465ba7eca2d3e5ad6

onlyif mysql # DIV for integer division: 
query I rowsort label-328
SELECT + + col1 DIV col0 + + + col2 AS col1 FROM tab2 AS cor0
----
24
41
58

skipif mysql # not compatible
query I rowsort label-328
SELECT + + col1 / col0 + + + col2 AS col1 FROM tab2 AS cor0
----
24
41
58

query I rowsort
SELECT - ( - 83 ) FROM tab0 AS cor0
----
83
83
83

query I rowsort
SELECT + 59 + + col2 + - col1 AS col0 FROM tab0 AS cor0
----
157
25
48

query III rowsort
SELECT * FROM tab1 WHERE NULL = + col1 + - - ( - - 8 ) - col2
----

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

query II rowsort
SELECT DISTINCT - 89 + - + col2 AS col0, col0 * - + col2 AS col0 FROM tab0
----
-136
-705
-188
-9603
-99
-870

query I rowsort
SELECT 75 * - 15 FROM tab1
----
-1125
-1125
-1125

query I rowsort
SELECT - col2 AS col1 FROM tab0 WHERE + 69 IS NULL
----

query II rowsort
SELECT col1 * + col2 * - 33 * + + 74 AS col2, - 63 FROM tab1
----
-3282048
-63
-720390
-63
-7804632
-63

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

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

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN 36 AND NULL
----

query I rowsort
SELECT DISTINCT - ( col0 ) * + - col1 + - + col1 AS col1 FROM tab0
----
1134
1806
96

query I rowsort
SELECT + col1 + + 85 + - - col0 FROM tab1 AS cor0
----
150
175
223

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-344
SELECT ALL + SUM( ALL + col0 ) * + 49 FROM tab0 AS cor0
----
9751

skipif mysql # not compatible
query I rowsort label-344
SELECT ALL + SUM ( ALL + col0 ) * + 49 FROM tab0 AS cor0
----
9751

query I rowsort
SELECT DISTINCT - - col1 - + 67 + - 75 FROM tab1 AS cor0
----
-128
-137
-95

query II rowsort
SELECT DISTINCT - col2 AS col2, 89 + col1 AS col0 FROM tab2
----
-23
140
-40
166
-58
156

query I rowsort
SELECT - 3 * - + col1 FROM tab0
----
243
3
63

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-349
SELECT - + MAX( col1 ) AS col2 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-349
SELECT - + MAX ( col1 ) AS col2 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

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

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

query II rowsort
SELECT DISTINCT ( col0 ) AS col1, ( + 91 ) * col1 FROM tab0 AS cor0
----
15
7371
87
1911
97
91

onlyif mysql # DIV for integer division: 
query I rowsort label-352
SELECT + - col2 DIV + 66 + col1 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-352
SELECT + - col2 / + 66 + col1 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-353
SELECT DISTINCT ( + - col2 ) - + + CAST( - - col0 AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE - col0 = 96
----

skipif mysql # not compatible
query I rowsort label-353
SELECT DISTINCT ( + - col2 ) - + + CAST ( - - col0 AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE - col0 = 96
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 BETWEEN NULL AND - 80 * col0
----

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

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

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

query I rowsort
SELECT ( 42 ) FROM tab1
----
42
42
42

onlyif mysql # aggregate syntax: 
query I rowsort label-358
SELECT DISTINCT + 76 * - COUNT( * ) * + COUNT( * ) * - 85 + + + COUNT( * ) + + 76 col2 FROM tab0
----
58219

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-358
SELECT DISTINCT + 76 * - COUNT ( * ) * + COUNT ( * ) * - 85 + + + COUNT ( * ) + + 76 col2 FROM tab0
----
58219

query I rowsort
SELECT + 45 + + col2 AS col1 FROM tab1 WHERE NULL IS NULL
----
104
113
141

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-360
SELECT ALL CAST ( col1 AS INTEGER ) col0 FROM tab2 WHERE col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 44 + - col2 col1 FROM tab0
----
-3
-55
34

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-364
SELECT DISTINCT COUNT( * ) * - 17 FROM tab0 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-364
SELECT DISTINCT COUNT ( * ) * - 17 FROM tab0 AS cor0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-365
SELECT DISTINCT - 34 * + - 3 * + COUNT( * ) AS col2 FROM tab2 AS cor0
----
306

skipif mysql # not compatible
query I rowsort label-365
SELECT DISTINCT - 34 * + - 3 * + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
306

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + ( - 73 ) col1, + 58 + 23 + + + 19 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
73
100

onlyif mysql # DIV for integer division: 
query I rowsort label-367
SELECT ALL + 11 DIV col0 - - col1 + - col0 AS col1 FROM tab0 cor0
----
-66
-96
66

skipif mysql # not compatible
query I rowsort label-367
SELECT ALL + 11 / col0 - - col1 + - col0 AS col1 FROM tab0 cor0
----
-66
-96
66

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

query I rowsort
SELECT col1 * ( 4 ) FROM tab0 AS cor0
----
324
4
84

query I rowsort
SELECT DISTINCT + col1 * - + col1 FROM tab2 cor0
----
-2601
-4489
-5929

query I rowsort
SELECT ALL 19 * - col1 FROM tab2 AS cor0
----
-1273
-1463
-969

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

query I rowsort
SELECT DISTINCT - 94 * + + 37 AS col0 FROM tab1 AS cor0
----
-3478

onlyif mysql # DIV for integer division: 
query I rowsort label-374
SELECT ALL - - 92 DIV + col1 + - col1 FROM tab0 AS cor0
----
-17
-80
91

skipif mysql # not compatible
query I rowsort label-374
SELECT ALL - - 92 / + col1 + - col1 FROM tab0 AS cor0
----
-17
-80
91

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

onlyif mysql # aggregate syntax: 
query I rowsort label-376
SELECT - + COUNT( * ) col1 FROM tab0 WHERE NOT + col2 IN ( + - ( + 65 ), + col0 + - col2 * + 30, + - col1 * - - col0, + col1 - + col2, - 64 + + col2, col0 )
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-376
SELECT - + COUNT ( * ) col1 FROM tab0 WHERE NOT + col2 IN ( + - ( + 65 ), + col0 + - col2 * + 30, + - col1 * - - col0, + col1 - + col2, - 64 + + col2, col0 )
----
-3

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-380
SELECT ALL + + col1 DIV + ( - + col1 ) AS col2, 40 FROM tab1 AS cor0
----
-1
40
-1
40
-1
40

skipif mysql # not compatible
query II rowsort label-380
SELECT ALL + + col1 / + ( - + col1 ) AS col2, 40 FROM tab1 AS cor0
----
-1
40
-1
40
-1
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-381
SELECT + AVG ( + - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-381
SELECT + AVG ( + - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

query I rowsort
SELECT - - col2 + - + col2 + + 7 + col1 FROM tab2 AS cor0
----
58
74
84

query I rowsort
SELECT col0 + + - 84 AS col0 FROM tab1 AS cor0
----
-33
1
7

query I rowsort
SELECT + 7 + - + col0 FROM tab2 AS cor0
----
-39
-57
-68

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-386
SELECT - 90 * + - COUNT( - - col1 ) AS col1 FROM tab1 AS cor0 WHERE NULL > NULL
----
0

skipif mysql # not compatible
query I rowsort label-386
SELECT - 90 * + - COUNT ( - - col1 ) AS col1 FROM tab1 AS cor0 WHERE NULL > NULL
----
0

query I rowsort
SELECT ( - col1 ) + - - col0 FROM tab1 cor0
----
37
44
80

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-389
SELECT ALL COUNT( * ) * + COUNT( * ) + + 70 FROM tab1
----
79

skipif mysql # not compatible
query I rowsort label-389
SELECT ALL COUNT ( * ) * + COUNT ( * ) + + 70 FROM tab1
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-390
SELECT ALL 33 + - - COUNT( * ) + 92 AS col2 FROM tab1
----
128

skipif mysql # not compatible
query I rowsort label-390
SELECT ALL 33 + - - COUNT ( * ) + 92 AS col2 FROM tab1
----
128

query I rowsort
SELECT ALL + 79 * + + 81 * + 7 + + + col0 * col1 + 37 AS col0 FROM tab2
----
47176
49758
49855

onlyif mysql # aggregate syntax: 
query I rowsort label-392
SELECT DISTINCT COUNT( * ) + - 82 FROM tab0
----
-79

skipif mysql # not compatible
query I rowsort label-392
SELECT DISTINCT COUNT ( * ) + - 82 FROM tab0
----
-79

query II rowsort
SELECT DISTINCT 87 - 73 AS col2, col0 FROM tab2
----
14
46
14
64
14
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-394
SELECT + MIN( DISTINCT col2 ) AS col2, CAST( NULL AS SIGNED ) / 83 AS col2 FROM tab2
----
23
NULL

skipif mysql # not compatible
query II rowsort label-394
SELECT + MIN ( DISTINCT col2 ) AS col2, CAST ( NULL AS INTEGER ) / 83 AS col2 FROM tab2
----
23
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-396
SELECT ALL + 40 - col2 - col0 * CAST( NULL AS SIGNED ), - col0 DIV - + col0 AS col0 FROM tab1 AS cor0
----
NULL
1
NULL
1
NULL
1

skipif mysql # not compatible
query II rowsort label-396
SELECT ALL + 40 - col2 - col0 * CAST ( NULL AS INTEGER ), - col0 / - + col0 AS col0 FROM tab1 AS cor0
----
NULL
1
NULL
1
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-397
SELECT DISTINCT - + 49 - - - MIN( - + col0 ) * + + 66 FROM tab0 AS cor0
----
6353

skipif mysql # not compatible
query I rowsort label-397
SELECT DISTINCT - + 49 - - - MIN ( - + col0 ) * + + 66 FROM tab0 AS cor0
----
6353

query I rowsort
SELECT DISTINCT + 15 FROM tab1, tab2 AS cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-399
SELECT MIN( + 0 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-399
SELECT MIN ( + 0 ) FROM tab2
----
0

query I rowsort
SELECT - - ( + col1 ) - + + 9 AS col1 FROM tab1 AS cor0 WHERE NOT col0 / col0 BETWEEN col0 * + ( + - col0 ) AND + + col1 * - - ( 98 ) - - + col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-401
SELECT DISTINCT - + 99 * - CAST( ( + COUNT( * ) ) AS SIGNED ) FROM tab1 AS cor0
----
297

skipif mysql # not compatible
query I rowsort label-401
SELECT DISTINCT - + 99 * - CAST ( ( + COUNT ( * ) ) AS INTEGER ) FROM tab1 AS cor0
----
297

onlyif mysql # aggregate syntax: 
query I rowsort label-402
SELECT COUNT( ALL - ( - 36 ) ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-402
SELECT COUNT ( ALL - ( - 36 ) ) FROM tab1 cor0
----
3

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

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

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

skipif mysql # not compatible
query I rowsort label-404
SELECT DISTINCT + COUNT ( * ) / - 37 AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT + + col2 * + 32 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND + + col0 + - 50
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 91 * - col1 = - 99 + - - 11
----

onlyif mysql # aggregate syntax: 
query I rowsort label-407
SELECT + + COUNT( * ) * + SUM( col0 ) AS col2 FROM tab0 AS cor0 WHERE NOT + 5 IS NULL
----
597

skipif mysql # not compatible
query I rowsort label-407
SELECT + + COUNT ( * ) * + SUM ( col0 ) AS col2 FROM tab0 AS cor0 WHERE NOT + 5 IS NULL
----
597

query I rowsort
SELECT ALL - 53 * + col1 FROM tab1
----
-2491
-265
-742

query II rowsort
SELECT - 83 AS col0, 97 AS col2 FROM tab0 WHERE NOT - 43 IS NOT NULL
----

query I rowsort
SELECT - 39 * - + col1 FROM tab2
----
1989
2613
3003

query II rowsort
SELECT + 56 AS col1, - 88 FROM tab0
----
56
-88
56
-88
56
-88

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-413
SELECT ALL + col2 DIV + col2 - col2 FROM tab1 AS cor0
----
-58
-67
-95

skipif mysql # not compatible
query I rowsort label-413
SELECT ALL + col2 / + col2 - col2 FROM tab1 AS cor0
----
-58
-67
-95

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

query I rowsort
SELECT col1 * - col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1215
-1827
-97

query I rowsort
SELECT ALL col0 + + ( + 95 ) FROM tab1
----
146
180
186

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-417
SELECT DISTINCT ( + CAST( NULL AS SIGNED ) ) + col2, 73 AS col0 FROM tab1
----
NULL
73

skipif mysql # not compatible
query II rowsort label-417
SELECT DISTINCT ( + CAST ( NULL AS INTEGER ) ) + col2, 73 AS col0 FROM tab1
----
NULL
73

query I rowsort
SELECT + + ( - 46 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 491ad1fb79fec0b5715ea54949d1aa2d

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-422
SELECT DISTINCT - COUNT( * ) col1 FROM tab2 AS cor0 WHERE NOT 57 IS NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-422
SELECT DISTINCT - COUNT ( * ) col1 FROM tab2 AS cor0 WHERE NOT 57 IS NULL
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-423
SELECT * FROM tab2 AS cor0 WHERE + col2 / - col0 BETWEEN + - 96 AND 51 * + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-423
SELECT * FROM tab2 AS cor0 WHERE + col2 / - col0 BETWEEN + - 96 AND 51 * + + CAST ( NULL AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-424
SELECT + 7 DIV - col1 - + + 36 AS col1, col1 FROM tab2
----
-36
51
-36
67
-36
77

skipif mysql # not compatible
query II rowsort label-424
SELECT + 7 / - col1 - + + 36 AS col1, col1 FROM tab2
----
-36
51
-36
67
-36
77

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-425
SELECT 80 - + CAST( NULL AS DECIMAL ) * col2 * 5 * + - col2 * + col2 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-425
SELECT 80 - + CAST ( NULL AS REAL ) * col2 * 5 * + - col2 * + col2 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 + 87 AS col0 FROM tab2 WHERE - - col2 IS NOT NULL
----
133
151
162

query I rowsort
SELECT ALL + ( - 14 ) + - - col1 AS col2 FROM tab1
----
-9
0
33

query I rowsort
SELECT ALL + + 73 * + col0 + col2 + - ( + col1 ) + - 54 - + col0 * - col0 / col1 * 61 + + 28 FROM tab1 WHERE NOT + - col0 * + - col1 / - col0 * - + 76 IS NOT NULL
----

query I rowsort
SELECT - ( - col0 ) + col1 * - + col0 FROM tab2 AS cor0
----
-2300
-4864
-4950

query I rowsort
SELECT DISTINCT - 68 - col2 + - + 41 FROM tab1 AS cor0
----
-168
-177
-205

onlyif mysql # aggregate syntax: 
query I rowsort label-431
SELECT DISTINCT + COUNT( * ) * + 21 AS col1 FROM tab2 cor0
----
63

skipif mysql # not compatible
query I rowsort label-431
SELECT DISTINCT + COUNT ( * ) * + 21 AS col1 FROM tab2 cor0
----
63

onlyif mysql # DIV for integer division: 
query I rowsort label-432
SELECT + 14 DIV + + col0 * - - col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-432
SELECT + 14 / + + col0 * - - col1 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col2 / col2 < NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-435
SELECT COUNT( * ) + 75 * SUM( DISTINCT - 19 ) FROM tab0
----
-1422

skipif mysql # not compatible
query I rowsort label-435
SELECT COUNT ( * ) + 75 * SUM ( DISTINCT - 19 ) FROM tab0
----
-1422

onlyif mysql # DIV for integer division: 
query I rowsort label-436
SELECT col1 DIV - col1 + + 12 FROM tab2
----
11
11
11

skipif mysql # not compatible
query I rowsort label-436
SELECT col1 / - col1 + + 12 FROM tab2
----
11
11
11

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-438
SELECT * FROM tab0 WHERE NOT NULL <> - CAST( 52 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-438
SELECT * FROM tab0 WHERE NOT NULL <> - CAST ( 52 AS INTEGER )
----

query I rowsort
SELECT + 97 * col0 AS col1 FROM tab0 WHERE NULL BETWEEN 31 * - ( col0 ) + col1 AND NULL
----

query I rowsort
SELECT col2 + - col2 * + col0 FROM tab2
----
-1035
-2520
-4292

query I rowsort
SELECT - col2 + col2 AS col1 FROM tab2 WHERE 69 < col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-442
SELECT ALL ( MIN( DISTINCT + 29 ) ) FROM tab2
----
29

skipif mysql # not compatible
query I rowsort label-442
SELECT ALL ( MIN ( DISTINCT + 29 ) ) FROM tab2
----
29

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

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

query I rowsort
SELECT ALL 16 + - 50 FROM tab1
----
-34
-34
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-445
SELECT 79 + + ( MAX( DISTINCT col1 ) ) AS col1 FROM tab1
----
126

skipif mysql # not compatible
query I rowsort label-445
SELECT 79 + + ( MAX ( DISTINCT col1 ) ) AS col1 FROM tab1
----
126

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) BETWEEN col0 AND + 2 + 34
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-448
SELECT ALL COUNT( * ) AS col0 FROM tab2 WHERE NOT NULL > col2 * 27
----
0

skipif mysql # not compatible
query I rowsort label-448
SELECT ALL COUNT ( * ) AS col0 FROM tab2 WHERE NOT NULL > col2 * 27
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-449
SELECT ALL + col0 AS col1 FROM tab1 WHERE NOT col2 + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-449
SELECT ALL + col0 AS col1 FROM tab1 WHERE NOT col2 + CAST ( NULL AS INTEGER ) IS NULL
----

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

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

query I rowsort
SELECT 65 * ( - col1 ) + 47 AS col1 FROM tab2
----
-3268
-4308
-4958

onlyif mysql # aggregate syntax: 
query I rowsort label-452
SELECT 6 * COUNT( * ) FROM tab2 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-452
SELECT 6 * COUNT ( * ) FROM tab2 AS cor0
----
18

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-453
SELECT - ( + MAX ( 58 ) ) col2 FROM tab0 AS cor0
----
-58

query I rowsort
SELECT ALL - 42 FROM tab1 AS cor0 WHERE NULL BETWEEN - col0 * col1 + 54 AND 90
----

query I rowsort
SELECT ALL 55 AS col0 FROM tab1 AS cor0 WHERE NULL > ( col2 ) / col2
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-458
SELECT + COUNT( * ) + + 30 AS col2 FROM tab1 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-458
SELECT + COUNT ( * ) + + 30 AS col2 FROM tab1 AS cor0
----
33

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

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

query I rowsort
SELECT col0 + + ( - col2 + col1 ) AS col1 FROM tab0 cor0
----
-1
49
98

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-463
SELECT - 46 * ( - CAST( + col0 AS SIGNED ) ) + + col1 * - col0 FROM tab1 AS cor0
----
-91
1632
3485

skipif mysql # not compatible
query I rowsort label-463
SELECT - 46 * ( - CAST ( + col0 AS INTEGER ) ) + + col1 * - col0 FROM tab1 AS cor0
----
-91
1632
3485

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-465
SELECT + CAST( NULL AS SIGNED ) * + col2 + 40 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-465
SELECT + CAST ( NULL AS INTEGER ) * + col2 + 40 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-466
SELECT - CAST( NULL AS DECIMAL ) + 26 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-466
SELECT - CAST ( NULL AS REAL ) + 26 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-467
SELECT ALL COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( 1 * - col1 + + col0 ) BETWEEN col2 AND NULL
----
3

skipif mysql # not compatible
query I rowsort label-467
SELECT ALL COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( 1 * - col1 + + col0 ) BETWEEN col2 AND NULL
----
3

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

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

query III rowsort
SELECT * FROM tab0 WHERE NULL <= ( - ( col0 ) * 56 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-471
SELECT - col0 * CAST( NULL AS SIGNED ) AS col1 FROM tab0 WHERE 69 <= NULL
----

skipif mysql # not compatible
query I rowsort label-471
SELECT - col0 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0 WHERE 69 <= NULL
----

query I rowsort
SELECT DISTINCT + ( + + col1 ) + - col1 AS col2 FROM tab2
----
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-474
SELECT ALL 39 + - + CAST( col0 AS SIGNED ) FROM tab2
----
-25
-36
-7

skipif mysql # not compatible
query I rowsort label-474
SELECT ALL 39 + - + CAST ( col0 AS INTEGER ) FROM tab2
----
-25
-36
-7

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

query I rowsort
SELECT 97 - - col1 AS col0 FROM tab1
----
102
111
144

query I rowsort
SELECT DISTINCT 85 / 9 FROM tab0 WHERE NULL >= ( + 55 )
----

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

query I rowsort
SELECT DISTINCT col0 FROM tab2 AS cor0 WHERE NOT 74 IS NULL AND ( NULL ) <> NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-480
SELECT DISTINCT - CAST( - MIN( DISTINCT 54 ) AS SIGNED ) - 98 FROM tab0 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-480
SELECT DISTINCT - CAST ( - MIN ( DISTINCT 54 ) AS INTEGER ) - 98 FROM tab0 AS cor0
----
-44

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

query II rowsort
SELECT 39 AS col1, 33 + - col0 * + 40 FROM tab1
----
39
-2007
39
-3367
39
-3607

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

query I rowsort
SELECT DISTINCT + 70 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
70

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 47 IS NOT NULL
----

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

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

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

query I rowsort
SELECT DISTINCT + + ( - + col0 ) AS col1 FROM tab0 AS cor0
----
-15
-87
-97

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

skipif mysql # not compatible
query II rowsort label-489
SELECT DISTINCT - - 19 AS col2, - COUNT ( * ) FROM tab2 AS cor0
----
19
-3

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-492
SELECT MIN( - col2 ) AS col2 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-492
SELECT MIN ( - col2 ) AS col2 FROM tab2 AS cor0
----
-58

query I rowsort
SELECT ALL - 98 + + + 94 FROM tab0 AS cor0
----
-4
-4
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-494
SELECT SUM( ALL + col2 ) * + 92 + MIN( 67 ) FROM tab1 WHERE NOT ( NULL ) >= CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-494
SELECT SUM ( ALL + col2 ) * + 92 + MIN ( 67 ) FROM tab1 WHERE NOT ( NULL ) >= CAST ( NULL AS INTEGER )
----
NULL

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 * - + col2 AS col1, col2 col2 FROM tab2
----
-1600
40
-3364
58
-529
23

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

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

query II rowsort
SELECT + 51 * - col0, col1 AS col1 FROM tab2
----
-2346
51
-3264
77
-3825
67

onlyif mysql # aggregate syntax: 
query I rowsort label-499
SELECT COUNT( * ) AS col1 FROM tab2 WHERE NOT ( col2 ) BETWEEN ( NULL ) AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-499
SELECT COUNT ( * ) AS col1 FROM tab2 WHERE NOT ( col2 ) BETWEEN ( NULL ) AND ( NULL )
----
0

query I rowsort
SELECT ALL - col1 * - 86 + + col0 * + col2 * col0 FROM tab1
----
250900
426705
567150

query I rowsort
SELECT DISTINCT col1 * - 0 AS col2 FROM tab2
----
0

query I rowsort
SELECT - 78 * col0 + + 78 FROM tab1 WHERE NOT ( - col2 ) BETWEEN ( 94 ) AND ( NULL )
----
-3900
-6552
-7020

query I rowsort
SELECT - + col2 + 45 AS col1 FROM tab2 AS cor0
----
-13
22
5

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

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

query III rowsort
SELECT * FROM tab1 WHERE ( + 33 ) IN ( - col0 )
----

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

query I rowsort
SELECT - - col2 - - col0 + + col1 * - + 79 AS col2 FROM tab2 AS cor0
----
-3960
-5160
-5979

onlyif mysql # aggregate syntax: 
query I rowsort label-508
SELECT ALL SUM( DISTINCT + col2 ) * + + ( + 43 ) AS col0 FROM tab0 AS cor0
----
6708

skipif mysql # not compatible
query I rowsort label-508
SELECT ALL SUM ( DISTINCT + col2 ) * + + ( + 43 ) AS col0 FROM tab0 AS cor0
----
6708

onlyif mysql # DIV for integer division: 
query I rowsort label-509
SELECT 4 DIV - - col1 - 97 * - - col1 AS col1 FROM tab0 cor0
----
-2037
-7857
-93

skipif mysql # not compatible
query I rowsort label-509
SELECT 4 / - - col1 - 97 * - - col1 AS col1 FROM tab0 cor0
----
-2037
-7857
-93

query I rowsort
SELECT DISTINCT - col1 + 21 * - col2 FROM tab2 AS cor0
----
-1285
-534
-917

onlyif mysql # aggregate syntax: 
query I rowsort label-511
SELECT ALL + MAX( + + col1 ) FROM tab2 WHERE NOT ( NULL ) < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-511
SELECT ALL + MAX ( + + col1 ) FROM tab2 WHERE NOT ( NULL ) < NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-512
SELECT - COUNT( * ) + MAX( ALL - col1 ) FROM tab0
----
-4

skipif mysql # not compatible
query I rowsort label-512
SELECT - COUNT ( * ) + MAX ( ALL - col1 ) FROM tab0
----
-4

query I rowsort
SELECT + col1 + - - col0 * - + col0 FROM tab0
----
-144
-7548
-9408

query I rowsort
SELECT col2 + + col0 * + col2 FROM tab2
----
1081
2600
4408

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-517
SELECT ALL + ( + + 45 ) DIV + col1 + col1 AS col2 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-517
SELECT ALL + ( + + 45 ) / + col1 + col1 AS col2 FROM tab2
----
51
67
77

onlyif mysql # aggregate syntax: 
query II rowsort label-518
SELECT - - COUNT( ALL + + col1 ) AS col1, 72 col2 FROM tab0 AS cor0
----
3
72

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-521
SELECT ALL - COUNT( * ) * 95 AS col0 FROM tab1 AS cor0
----
-285

skipif mysql # not compatible
query I rowsort label-521
SELECT ALL - COUNT ( * ) * 95 AS col0 FROM tab1 AS cor0
----
-285

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

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

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

skipif mysql # not compatible
query I rowsort label-524
SELECT DISTINCT - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NOT NULL
----
-9

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-526
SELECT + ( + COUNT( * ) ) * 99 FROM tab1 AS cor0
----
297

skipif mysql # not compatible
query I rowsort label-526
SELECT + ( + COUNT ( * ) ) * 99 FROM tab1 AS cor0
----
297

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

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

query I rowsort
SELECT - + col1 * + + 21 * + col2 + + col0 FROM tab1 AS cor0
----
-28173
-6110
-67025

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

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

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

query I rowsort
SELECT + col0 + + col0 * col2 AS col0 FROM tab0 AS cor0
----
720
957
9700

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 50 + - col2 NOT IN ( ( - 7 ) )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-534
SELECT DISTINCT - COUNT( DISTINCT + - 33 ) + 64 FROM tab1
----
63

skipif mysql # not compatible
query I rowsort label-534
SELECT DISTINCT - COUNT ( DISTINCT + - 33 ) + 64 FROM tab1
----
63

query I rowsort
SELECT DISTINCT 56 + + + col1 FROM tab0
----
137
57
77

query I rowsort
SELECT col2 + 5 FROM tab1
----
101
64
73

onlyif mysql # aggregate syntax: 
query I rowsort label-537
SELECT DISTINCT - 55 + SUM( + col1 ) FROM tab2
----
140

skipif mysql # not compatible
query I rowsort label-537
SELECT DISTINCT - 55 + SUM ( + col1 ) FROM tab2
----
140

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

query I rowsort
SELECT col1 * - 94 AS col1 FROM tab1 AS cor0
----
-1316
-4418
-470

query II rowsort
SELECT + col0, col0 * - 25 FROM tab2 AS cor0
----
46
-1150
64
-1600
75
-1875

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

query I rowsort
SELECT - - 67 * + col0 AS col0 FROM tab0 AS cor0
----
1005
5829
6499

query I rowsort
SELECT - 65 FROM tab0 WHERE NULL IN ( - - col1 * - - col1, 63 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-544
SELECT DISTINCT - 1 + + col1 DIV + col2 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-544
SELECT DISTINCT - 1 + + col1 / + col2 FROM tab1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-545
SELECT ALL 92 + SUM( 89 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
893

skipif mysql # not compatible
query I rowsort label-545
SELECT ALL 92 + SUM ( 89 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
893

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-546
SELECT - CAST ( - - col1 AS INTEGER ) + - - col1 + - ( + + 16 ) col0 FROM tab1
----
-16
-16
-16

query I rowsort
SELECT - 48 FROM tab0 cor0 WHERE col2 <> col2
----

query I rowsort
SELECT DISTINCT 2 - col2 * col2 AS col0 FROM tab1 AS cor0
----
-3479
-4622
-9214

query I rowsort
SELECT - + ( - ( + - col2 ) ) * + - 5 + - col0 + col0 FROM tab2 cor0
----
115
200
290

query I rowsort
SELECT DISTINCT col0 FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
46
64
75

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

query I rowsort
SELECT ALL + col2 * 13 FROM tab1 cor0
----
1248
767
884

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

onlyif mysql # DIV for integer division: 
query I rowsort label-554
SELECT DISTINCT col0 DIV - 65 AS col1 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-554
SELECT DISTINCT col0 / - 65 AS col1 FROM tab1
----
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-555
SELECT 49 * + CAST( NULL AS SIGNED ) / 43 * - col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-555
SELECT 49 * + CAST ( NULL AS INTEGER ) / 43 * - col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-556
SELECT ALL 14 * - - COUNT( * ) AS col2 FROM tab2
----
42

skipif mysql # not compatible
query I rowsort label-556
SELECT ALL 14 * - - COUNT ( * ) AS col2 FROM tab2
----
42

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-558
SELECT DISTINCT COUNT( * ) DIV + + 22 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-558
SELECT DISTINCT COUNT ( * ) / + + 22 AS col1 FROM tab2
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-559
SELECT - ( + SUM( ALL + + 69 ) ) AS col1, + 27 * ( - - ( + - ( CAST( NULL AS DECIMAL ) ) ) ) * + 57 - - ( ( - MAX( ALL 72 ) ) ) - 98 col1 FROM tab2
----
-207
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-559
SELECT - ( + SUM ( ALL + + 69 ) ) AS col1, + 27 * ( - - ( + - ( CAST ( NULL AS REAL ) ) ) ) * + 57 - - ( ( - MAX ( ALL 72 ) ) ) - 98 col1 FROM tab2
----
-207
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 16 * + col0 col2 FROM tab0
----
-1392
-1552
-240

onlyif mysql # DIV for integer division: 
query I rowsort label-561
SELECT - col1 DIV - - 86 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-561
SELECT - col1 / - - 86 FROM tab2
----
0
0
0

query I rowsort
SELECT 97 * - col0 AS col0 FROM tab0
----
-1455
-8439
-9409

query I rowsort
SELECT ALL 34 * - col2 AS col2 FROM tab1 AS cor0
----
-2006
-2312
-3264

onlyif mysql # aggregate syntax: 
query I rowsort label-564
SELECT ALL + 73 * - COUNT( * ) FROM tab0 AS cor0
----
-219

skipif mysql # not compatible
query I rowsort label-564
SELECT ALL + 73 * - COUNT ( * ) FROM tab0 AS cor0
----
-219

onlyif mysql # aggregate syntax: 
query I rowsort label-565
SELECT COUNT( * ) * + 91 FROM tab2
----
273

skipif mysql # not compatible
query I rowsort label-565
SELECT COUNT ( * ) * + 91 FROM tab2
----
273

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

skipif mysql # not compatible
query II rowsort label-566
SELECT ALL COUNT ( * ) AS col1, SUM ( ALL col0 ) FROM tab2 AS cor0
----
3
185

query II rowsort
SELECT DISTINCT + 27, col0 AS col0 FROM tab0 AS cor0
----
27
15
27
87
27
97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-568
SELECT - col0 col0, + CAST( NULL AS SIGNED ), col1 * 73 * - - col0 AS col1 FROM tab1 cor0
----
9 values hashing to f8e8bd0bf9f155ae4d4d253d0b1175e5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-568
SELECT - col0 col0, + CAST ( NULL AS INTEGER ), col1 * 73 * - - col0 AS col1 FROM tab1 cor0
----
9 values hashing to f8e8bd0bf9f155ae4d4d253d0b1175e5

onlyif mysql # aggregate syntax: 
query I rowsort label-569
SELECT DISTINCT + COUNT( * ) + 82 * - 80 AS col1 FROM tab0 AS cor0
----
-6557

skipif mysql # not compatible
query I rowsort label-569
SELECT DISTINCT + COUNT ( * ) + 82 * - 80 AS col1 FROM tab0 AS cor0
----
-6557

query I rowsort
SELECT DISTINCT - ( 86 ) + - col0 FROM tab2
----
-132
-150
-161

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

query I rowsort
SELECT ALL 5 + + ( + col0 ) AS col0 FROM tab1
----
56
90
96

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

skipif mysql # not compatible
query I rowsort label-573
SELECT + ( - + SUM ( DISTINCT - 23 ) ) AS col1 FROM tab1
----
23

query I rowsort
SELECT 78 + + + col2 * - col1 FROM tab0
----
-132
-21
-3729

query I rowsort
SELECT ALL 85 * + - 58 + + 83 AS col1 FROM tab2, tab0 cor0
----
9 values hashing to c4fb7d12cf5b9be6e8091188c41d9f1c

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

skipif mysql # not compatible
query I rowsort label-576
SELECT COUNT ( * ) / 61 + + 2 FROM tab1
----
2

query I rowsort
SELECT ALL 13 AS col2 FROM tab0, tab1 cor0
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

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

query I rowsort
SELECT ALL + col2 + + ( + - 76 ) AS col1 FROM tab2 cor0
----
-18
-36
-53

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

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

query I rowsort
SELECT ALL col1 - - 24 AS col0 FROM tab2 AS cor0
----
101
75
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-583
SELECT CAST( 55 AS SIGNED ) - - + col1 AS col0 FROM tab2 AS cor0
----
106
122
132

skipif mysql # not compatible
query I rowsort label-583
SELECT CAST ( 55 AS INTEGER ) - - + col1 AS col0 FROM tab2 AS cor0
----
106
122
132

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 / + 31 = 77
----

query I rowsort
SELECT ALL - col1 - + col2 AS col1 FROM tab2 cor0
----
-117
-125
-74

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE + col1 + - ( - col0 ) / col0 - - - 99 + + col0 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 - col2 * + + col2 * - col1 + - col1 col2 FROM tab1 AS cor0
----
128959
17315
217190

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-589
SELECT DISTINCT 86 DIV - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-28

skipif mysql # not compatible
query I rowsort label-589
SELECT DISTINCT 86 / - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-28

query II rowsort
SELECT - 94 AS col0, col0 * - - col0 FROM tab0 cor0
----
-94
225
-94
7569
-94
9409

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

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

skipif mysql # not compatible
query I rowsort label-592
SELECT COUNT ( DISTINCT col1 ) FROM tab2 cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-593
SELECT + + CAST( NULL AS SIGNED ) * - ( 18 ) 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-593
SELECT + + CAST ( NULL AS INTEGER ) * - ( 18 ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-594
SELECT - - COUNT( * ) * + MIN( 37 ) FROM tab1 AS cor0
----
111

skipif mysql # not compatible
query I rowsort label-594
SELECT - - COUNT ( * ) * + MIN ( 37 ) FROM tab1 AS cor0
----
111

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-596
SELECT col0 * - 19 * + + col2 * - ( - - 23 ) / - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-596
SELECT col0 * - 19 * + + col2 * - ( - - 23 ) / - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 * + 31 AS col0 FROM tab2
----
1240
1798
713

onlyif mysql # aggregate syntax: 
query I rowsort label-598
SELECT COUNT( ALL - - col0 ) * 89 * + 76 AS col0 FROM tab1
----
20292

skipif mysql # not compatible
query I rowsort label-598
SELECT COUNT ( ALL - - col0 ) * 89 * + 76 AS col0 FROM tab1
----
20292

query I rowsort
SELECT DISTINCT - col0 * - col2 + + col0 AS col2 FROM tab2 WHERE - + 93 NOT IN ( + col1, + 1 )
----
1104
2624
4425

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - ( + col1 ) IN ( + col0 )
----

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-603
SELECT DISTINCT - 68 DIV COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-7

skipif mysql # not compatible
query I rowsort label-603
SELECT DISTINCT - 68 / COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-604
SELECT + COUNT( * ) - - COUNT( * ) AS col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
18

skipif mysql # not compatible
query I rowsort label-604
SELECT + COUNT ( * ) - - COUNT ( * ) AS col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
18

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

skipif mysql # not compatible
query I rowsort label-605
SELECT SUM ( 27 ) * + + COUNT ( * ) * + COUNT ( * ) FROM tab1
----
729

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-606
SELECT ALL - + 70 DIV COUNT( * ) FROM tab1 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-606
SELECT ALL - + 70 / COUNT ( * ) FROM tab1 AS cor0
----
-23

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

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

query I rowsort
SELECT - col2 * - col2 + - col0 + + - 33 FROM tab2 AS cor0
----
1503
3256
450

query I rowsort
SELECT col1 + - - 23 - + 3 * + + 62 * - 44 * - 45 FROM tab0 AS cor0
----
-368176
-368236
-368256

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + - 95 col2 FROM tab1 AS cor0
----
-27
-36
1

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

onlyif mysql # DIV for integer division: 
query I rowsort label-612
SELECT ALL - col0 * 32 + - col1 * - col2 DIV + + col2 AS col0 FROM tab1 AS cor0
----
-1618
-2715
-2865

skipif mysql # not compatible
query I rowsort label-612
SELECT ALL - col0 * 32 + - col1 * - col2 / + + col2 AS col0 FROM tab1 AS cor0
----
-1618
-2715
-2865

query III rowsort
SELECT * FROM tab2 cor0 WHERE - 23 * - col0 + - ( - + col2 ) + - - 44 + col2 + + 39 * + col0 * col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 22 * - 84 + 89 * + - col2 col0 FROM tab1 AS cor0
----
-10392
-7099
-7900

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + col2 + - - 19 * - col2 * - 2 col0 FROM tab0
----
1848
3958
477

query III rowsort
SELECT * FROM tab2 WHERE - 42 BETWEEN + - ( - col0 ) AND ( - ( + 94 ) + - + col1 )
----

query I rowsort
SELECT DISTINCT + ( + col0 ) + col0 + + ( + 67 ) AS col2 FROM tab0
----
241
261
97

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

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

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

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

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

query I rowsort
SELECT DISTINCT + 72 + - 54 + - - col1 FROM tab1 cor0
----
23
32
65

onlyif mysql # aggregate syntax: 
query I rowsort label-622
SELECT ALL + MAX( col0 ) FROM tab2 cor0
----
75

skipif mysql # not compatible
query I rowsort label-622
SELECT ALL + MAX ( col0 ) FROM tab2 cor0
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-623
SELECT col2 DIV 78 + - col1 - + col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-117
-125
-74

skipif mysql # not compatible
query I rowsort label-623
SELECT col2 / 78 + - col1 - + col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-117
-125
-74

query I rowsort
SELECT DISTINCT - 18 + + 10 AS col1 FROM tab1
----
-8

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

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

query I rowsort
SELECT col1 AS col1 FROM tab1 WHERE - - col2 + + 72 + + + 39 + 71 <> col2 * + + col0
----
14
47
5

query II rowsort
SELECT DISTINCT + col1 - + col1 + - 95 AS col0, - 61 AS col0 FROM tab1
----
-95
-61

query I rowsort
SELECT - - col0 FROM tab1 cor0 WHERE NOT col2 < col1
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-629
SELECT + - SUM( ALL ( - 80 ) ) AS col1 FROM tab2 AS cor0 WHERE NOT + 41 + - + col2 IS NULL
----
240

skipif mysql # not compatible
query I rowsort label-629
SELECT + - SUM ( ALL ( - 80 ) ) AS col1 FROM tab2 AS cor0 WHERE NOT + 41 + - + col2 IS NULL
----
240

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

query I rowsort
SELECT col0 AS col2 FROM tab2 AS cor0 WHERE NOT ( col2 ) IS NULL
----
46
64
75

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

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

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

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

query I rowsort
SELECT - - 73 * - 68 AS col1 FROM tab0 AS cor0
----
-4964
-4964
-4964

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

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

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

query II rowsort
SELECT col1, - col2 * - col1 AS col2 FROM tab1
----
14
1344
47
3196
5
295

query I rowsort
SELECT - 93 * - - col1 * - col1 FROM tab1
----
18228
205437
2325

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-644
SELECT COUNT( * ) + - 49 AS col0 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-644
SELECT COUNT ( * ) + - 49 AS col0 FROM tab2
----
-46

query I rowsort
SELECT 84 + 70 FROM tab1
----
154
154
154

query I rowsort
SELECT ALL 78 * - + ( - col0 ) FROM tab1
----
3978
6630
7098

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-647
SELECT ALL CAST( + - SUM( col0 ) AS SIGNED ) - + - MIN( DISTINCT + 49 ) FROM tab2 WHERE NULL IS NULL
----
-136

skipif mysql # not compatible
query I rowsort label-647
SELECT ALL CAST ( + - SUM ( col0 ) AS INTEGER ) - + - MIN ( DISTINCT + 49 ) FROM tab2 WHERE NULL IS NULL
----
-136

onlyif mysql # aggregate syntax: 
query I rowsort label-648
SELECT DISTINCT MIN( DISTINCT - col0 ) * - COUNT( * ) col2 FROM tab0
----
291

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-648
SELECT DISTINCT MIN ( DISTINCT - col0 ) * - COUNT ( * ) col2 FROM tab0
----
291

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-649
SELECT 32 * - CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-649
SELECT 32 * - CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 89 * + col1 * - - col2 AS col0 FROM tab0
----
-18690
-338823
-8811

onlyif mysql # DIV for integer division: 
query I rowsort label-651
SELECT ALL col2 DIV - 68 - + col2 + - col1 - + col1 * col1 FROM tab0 AS cor0
----
-102
-472
-6689

skipif mysql # not compatible
query I rowsort label-651
SELECT ALL col2 / - 68 - + col2 + - col1 - + col1 * col1 FROM tab0 AS cor0
----
-102
-472
-6689

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

skipif mysql # not compatible
query I rowsort label-652
SELECT + CAST ( NULL AS INTEGER ) + + 52 FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 * - + col0 + - col0 + + 83 + + col1 + col1 * - - 50 AS col2 FROM tab0 AS cor0
----
-60
-760
2984

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

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

query I rowsort
SELECT ALL - + 70 + - col0 FROM tab1 AS cor0
----
-121
-155
-161

query I rowsort
SELECT + ( col2 ) + 67 AS col2 FROM tab1
----
126
135
163

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

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

query I rowsort
SELECT + 37 + + - col1 + - col0 * - 49 FROM tab2 WHERE ( + col2 + col1 / - col1 * + - col1 + + col0 ) NOT BETWEEN NULL AND - col2 * + col2 / - col2
----
2240
3096
3645

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT + - 16 AS col1, - col1, - col2 * col1 * + 64 / col1 col1 FROM tab1 AS cor0 WHERE NULL IN ( col0, - 65, col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) < + - 6
----

query I rowsort
SELECT DISTINCT + ( + 59 ) AS col0 FROM tab1 AS cor0
----
59

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

query I rowsort
SELECT - 43 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to ab0c314d2b589ccedb9a875beeb1f86a

query I rowsort
SELECT ALL - + col2 * - 1 - - - col2 AS col2 FROM tab1 AS cor0 WHERE 39 * - - col1 - - col1 < NULL
----

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

query I rowsort
SELECT ALL + ( + ( + col2 ) ) AS col0 FROM tab1 AS cor0
----
59
68
96

query II rowsort
SELECT - - 50 AS col2, + 79 - - 67 + 58 + col1 + + col1 FROM tab2 AS cor0
----
50
306
50
338
50
358

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

skipif mysql # not compatible
query I rowsort label-668
SELECT + - COUNT ( DISTINCT + CAST ( NULL AS REAL ) ) AS col0 FROM tab0 AS cor0
----
0

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-671
SELECT + 83 * + + 16, - MAX( ALL - - 88 ) AS col0 FROM tab0
----
1328
-88

skipif mysql # not compatible
query II rowsort label-671
SELECT + 83 * + + 16, - MAX ( ALL - - 88 ) AS col0 FROM tab0
----
1328
-88

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-674
SELECT + - COUNT( * ) * 46 * - 85 FROM tab1 AS cor0
----
11730

skipif mysql # not compatible
query I rowsort label-674
SELECT + - COUNT ( * ) * 46 * - 85 FROM tab1 AS cor0
----
11730

query I rowsort
SELECT - 68 AS col2 FROM tab2 AS cor0 WHERE NOT NULL > ( NULL )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 31 < - col2
----

query I rowsort
SELECT ALL + + 21 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

query I rowsort
SELECT ALL + + col0 FROM tab0 WHERE NOT col0 >= - - 84
----
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - col1 AS col0, ( + - col2 ) * - - col0 col0 FROM tab1 AS cor0
----
-14
-4896
-47
-6188
-5
-5015

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-680
SELECT - CAST( + + 65 AS SIGNED ) FROM tab1 cor0 WHERE ( NULL ) IS NULL
----
-65
-65
-65

skipif mysql # not compatible
query I rowsort label-680
SELECT - CAST ( + + 65 AS INTEGER ) FROM tab1 cor0 WHERE ( NULL ) IS NULL
----
-65
-65
-65

onlyif mysql # DIV for integer division: 
query I rowsort label-681
SELECT + - col0 DIV + col2 + + col1 + - col2 FROM tab0 AS cor0
----
-98
3
34

skipif mysql # not compatible
query I rowsort label-681
SELECT + - col0 / + col2 + + col1 + - col2 FROM tab0 AS cor0
----
-98
3
34

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

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

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

query I rowsort
SELECT DISTINCT col1 * col0 * - col0 FROM tab0
----
-158949
-18225
-9409

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

query I rowsort
SELECT 88 - - col0 * - ( col2 ) AS col2 FROM tab0
----
-617
-782
-9515

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( col0 * - 86 ) = + ( - 31 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 51 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-690
SELECT ALL * FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) <= - col0 * + 30
----

skipif mysql # not compatible
query III rowsort label-690
SELECT ALL * FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) <= - col0 * + 30
----

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-692
SELECT DISTINCT - CAST( col0 AS DECIMAL ) AS col2 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-692
SELECT DISTINCT - CAST ( col0 AS REAL ) AS col2 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN NULL AND NULL
----

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

skipif mysql # not compatible
query I rowsort label-693
SELECT + + MIN ( 87 ) FROM tab0 AS cor0
----
87

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

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

query II rowsort
SELECT ALL - ( 29 ), 54 + + 9 AS col1 FROM tab2
----
-29
63
-29
63
-29
63

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-698
SELECT SUM( 93 ) AS col1 FROM tab0
----
279

skipif mysql # not compatible
query I rowsort label-698
SELECT SUM ( 93 ) AS col1 FROM tab0
----
279

query I rowsort
SELECT DISTINCT 77 AS col0 FROM tab1 WHERE NULL IS NULL
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-700
SELECT ALL CAST( NULL AS SIGNED ), col0 AS col1 FROM tab2
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-700
SELECT ALL CAST ( NULL AS INTEGER ), col0 AS col1 FROM tab2
----
NULL
46
NULL
64
NULL
75

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

skipif mysql # not compatible
query I rowsort label-701
SELECT COUNT ( * ) * + ( - + COUNT ( * ) ) FROM tab0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-702
SELECT ALL - SUM( DISTINCT + 0 ) AS col0 FROM tab1 WHERE NOT NULL BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-702
SELECT ALL - SUM ( DISTINCT + 0 ) AS col0 FROM tab1 WHERE NOT NULL BETWEEN NULL AND NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-703
SELECT + MIN( DISTINCT col0 ) AS col1 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-703
SELECT + MIN ( DISTINCT col0 ) AS col1 FROM tab1
----
51

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

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

query III rowsort
SELECT * FROM tab0 WHERE + col1 * - 89 BETWEEN col2 - - col2 AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-706
SELECT DISTINCT + + COUNT( * ) 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-706
SELECT DISTINCT + + COUNT ( * ) col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query III rowsort
SELECT * FROM tab2 cor0 WHERE - col1 / + col1 <= NULL
----

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

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 56 <> - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - + 79 - 82 + + + 78 * + ( col1 ) + + ( + col1 ) AS col0 FROM tab2 AS cor0
----
3868
5132
5922

query I rowsort
SELECT DISTINCT - 29 AS col1 FROM tab0 cor0
----
-29

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

query I rowsort
SELECT - 67 - - col2 FROM tab2 AS cor0
----
-27
-44
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-715
SELECT DISTINCT SUM( ALL col1 ) + + - SUM( ALL - - 94 ) FROM tab2
----
-87

skipif mysql # not compatible
query I rowsort label-715
SELECT DISTINCT SUM ( ALL col1 ) + + - SUM ( ALL - - 94 ) FROM tab2
----
-87

query I rowsort
SELECT col0 + 74 AS col0 FROM tab2
----
120
138
149

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 58 < - col2
----

query I rowsort
SELECT col1 + + + 16 FROM tab1
----
21
30
63

onlyif mysql # aggregate syntax: 
query I rowsort label-719
SELECT DISTINCT 84 - + - MIN( ALL + + col1 ) * - COUNT( * ) FROM tab1 WHERE col0 + + ( 56 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-719
SELECT DISTINCT 84 - + - MIN ( ALL + + col1 ) * - COUNT ( * ) FROM tab1 WHERE col0 + + ( 56 ) IS NULL
----
NULL

query I rowsort
SELECT - - ( + 10 ) AS col0 FROM tab2 AS cor0
----
10
10
10

query I rowsort
SELECT DISTINCT - 35 + col2 FROM tab1 cor0 WHERE ( NULL ) IS NOT NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-723
SELECT - 5 * - COUNT( * ) AS col0 FROM tab1
----
15

skipif mysql # not compatible
query I rowsort label-723
SELECT - 5 * - COUNT ( * ) AS col0 FROM tab1
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-724
SELECT DISTINCT + + 12 + CAST( col1 AS SIGNED ) FROM tab0 WHERE NOT NULL = NULL
----

skipif mysql # not compatible
query I rowsort label-724
SELECT DISTINCT + + 12 + CAST ( col1 AS INTEGER ) FROM tab0 WHERE NOT NULL = NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-726
SELECT - + COUNT( * ) AS col0 FROM tab0 cor0 WHERE NOT - col0 * + col0 + - + 7 + 54 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-726
SELECT - + COUNT ( * ) AS col0 FROM tab0 cor0 WHERE NOT - col0 * + col0 + - + 7 + 54 > NULL
----
0

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

skipif mysql # not compatible
query I rowsort label-727
SELECT ALL COUNT ( * ) * + - COUNT ( + + 72 ) AS col2 FROM tab0 AS cor0
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-728
SELECT ALL col0 DIV col1 DIV + col2 * + ( - 89 ) * - col2 + - + col2 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-728
SELECT ALL col0 / col1 / + col2 * + ( - 89 ) * - col2 + - + col2 FROM tab2 AS cor0
----
-23
-40
-58

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 87 * 15 = - col1 - + col0 * col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-731
SELECT ALL - 72 * - COUNT( ALL + 8 ) - ( COUNT( * ) ) FROM tab1 AS cor0
----
213

skipif mysql # not compatible
query I rowsort label-731
SELECT ALL - 72 * - COUNT ( ALL + 8 ) - ( COUNT ( * ) ) FROM tab1 AS cor0
----
213

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 10 + - 63 col1 FROM tab2
----
-53

query I rowsort
SELECT DISTINCT col0 + + + 81 AS col0 FROM tab1
----
132
166
172

query I rowsort
SELECT + 54 + + - col2 FROM tab1 WHERE NOT ( NOT col2 IS NOT NULL )
----
-14
-42
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-735
SELECT CAST( col0 AS SIGNED ) * + col0 * + 69 FROM tab0
----
15525
522261
649221

skipif mysql # not compatible
query I rowsort label-735
SELECT CAST ( col0 AS INTEGER ) * + col0 * + 69 FROM tab0
----
15525
522261
649221

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

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

query I rowsort
SELECT + ( - col2 ) * + 16 FROM tab1 AS cor0
----
-1088
-1536
-944

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

skipif mysql # not compatible
query I rowsort label-738
SELECT + + COUNT ( * ) / 24 / + 84 FROM tab0 AS cor0
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-740
SELECT DISTINCT + MAX( ALL col0 ) + + - 34 + + - 32 + - + 39 * + SUM( - col2 ) FROM tab1 AS cor0
----
8722

skipif mysql # not compatible
query I rowsort label-740
SELECT DISTINCT + MAX ( ALL col0 ) + + - 34 + + - 32 + - + 39 * + SUM ( - col2 ) FROM tab1 AS cor0
----
8722

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - col0 * + col1 * + col0 + ( + col2 ) + + - 20 * col1 col2 FROM tab1
----
-36107
-36502
-390011

query I rowsort
SELECT col1 * - col1 + - col2 + + ( + - 66 ) FROM tab1
----
-150
-2343
-358

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-744
SELECT 98 + COUNT( * ) + - ( + + COUNT( * ) ), + COUNT( * ) * - 82 + - ( COUNT( * ) ) AS col1 FROM tab2 AS cor0
----
98
-249

skipif mysql # not compatible
query II rowsort label-744
SELECT 98 + COUNT ( * ) + - ( + + COUNT ( * ) ), + COUNT ( * ) * - 82 + - ( COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
98
-249

query II rowsort
SELECT ALL col2 * - - 70 AS col0, col0 + col2 + + col2 FROM tab1 AS cor0
----
4130
203
4760
227
6720
243

query I rowsort
SELECT DISTINCT - col0 * - col1 + + - col2 FROM tab2 AS cor0
----
2323
4888
4967

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-747
SELECT * FROM tab1 AS cor0 WHERE - 66 * + col2 / + + ( + col0 ) * - col1 <> + CAST( - col0 AS SIGNED )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-747
SELECT * FROM tab1 AS cor0 WHERE - 66 * + col2 / + + ( + col0 ) * - col1 <> + CAST ( - col0 AS INTEGER )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-748
SELECT + COUNT( * ) + + ( + - 48 ) col1 FROM tab1 cor0
----
-45

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

query I rowsort
SELECT col0 * - + ( 10 ) AS col2 FROM tab2 AS cor0
----
-460
-640
-750

query III rowsort
SELECT * FROM tab0 cor0 WHERE 77 / + + col0 BETWEEN + col1 AND NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-751
SELECT DISTINCT + col2 AS col1, 76 DIV - 47 AS col1 FROM tab0 AS cor0
----
10
-1
47
-1
99
-1

skipif mysql # not compatible
query II rowsort label-751
SELECT DISTINCT + col2 AS col1, 76 / - 47 AS col1 FROM tab0 AS cor0
----
10
-1
47
-1
99
-1

query II rowsort
SELECT - col0 - - col2 + col0 AS col1, - col2 FROM tab1
----
59
-59
68
-68
96
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-753
SELECT - COUNT( * ) - - + 77, COUNT( * ) AS col0 FROM tab0
----
74
3

skipif mysql # not compatible
query II rowsort label-753
SELECT - COUNT ( * ) - - + 77, COUNT ( * ) AS col0 FROM tab0
----
74
3

onlyif mysql # aggregate syntax: 
query I rowsort label-754
SELECT DISTINCT ( - COUNT( * ) ) * 46 * 96 AS col0 FROM tab2
----
-13248

skipif mysql # not compatible
query I rowsort label-754
SELECT DISTINCT ( - COUNT ( * ) ) * 46 * 96 AS col0 FROM tab2
----
-13248

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-755
SELECT DISTINCT - CAST( NULL AS DECIMAL ) + - - col2 AS col1 FROM tab1 WHERE + col1 + + + col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-755
SELECT DISTINCT - CAST ( NULL AS REAL ) + - - col2 AS col1 FROM tab1 WHERE + col1 + + + col0 IS NULL
----

query I rowsort
SELECT DISTINCT + 51 * + col1 * + 64 AS col2 FROM tab0
----
264384
3264
68544

onlyif mysql # aggregate syntax: 
query I rowsort label-757
SELECT MIN( - 66 ) FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-757
SELECT MIN ( - 66 ) FROM tab1 AS cor0
----
-66

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT - 48 IS NOT NULL
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-760
SELECT ALL + 88 DIV + + 8 AS col0 FROM tab1 cor0
----
11
11
11

skipif mysql # not compatible
query I rowsort label-760
SELECT ALL + 88 / + + 8 AS col0 FROM tab1 cor0
----
11
11
11

query I rowsort
SELECT DISTINCT + col1 * + + 27 * - - ( + col0 ) AS col1 FROM tab1 AS cor0
----
11475
115479
19278

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

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

query II rowsort
SELECT col2 * col1, - col0 + - - col1 AS col1 FROM tab0
----
210
-66
3807
66
99
-96

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col0 - + - 4 = NULL
----

query I rowsort
SELECT ALL - col0 AS col2 FROM tab1 WHERE NOT 57 = - col1 / - col2
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-767
SELECT ALL col2 + + CAST( - 83 AS SIGNED ) FROM tab1
----
-15
-24
13

skipif mysql # not compatible
query I rowsort label-767
SELECT ALL col2 + + CAST ( - 83 AS INTEGER ) FROM tab1
----
-15
-24
13

onlyif mysql # aggregate syntax: 
query I rowsort label-768
SELECT DISTINCT 93 * - SUM( ALL + 44 ) col0 FROM tab1
----
-12276

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-768
SELECT DISTINCT 93 * - SUM ( ALL + 44 ) col0 FROM tab1
----
-12276

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

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

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

query I rowsort
SELECT - + ( 65 ) * - col0 + + 49 + - col0 AS col1 FROM tab2 WHERE NULL >= - + col1
----

query I rowsort
SELECT DISTINCT - col1 - + 81 FROM tab1 AS cor0
----
-128
-86
-95

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-774
SELECT DISTINCT + CAST( + + 85 AS SIGNED ) - col2 AS col2 FROM tab0 AS cor0
----
-14
38
75

skipif mysql # not compatible
query I rowsort label-774
SELECT DISTINCT + CAST ( + + 85 AS INTEGER ) - col2 AS col2 FROM tab0 AS cor0
----
-14
38
75

onlyif mysql # DIV for integer division: 
query I rowsort label-775
SELECT 10 DIV - 21 - col0 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-775
SELECT 10 / - 21 - col0 FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-776
SELECT 91 + - + SUM( ALL - 95 ) AS col1 FROM tab2 cor0
----
376

skipif mysql # not compatible
query I rowsort label-776
SELECT 91 + - + SUM ( ALL - 95 ) AS col1 FROM tab2 cor0
----
376

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-777
SELECT ALL + 62 DIV - 68 + + SUM( ALL + col1 ) AS col1 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-777
SELECT ALL + 62 / - 68 + + SUM ( ALL + col1 ) AS col1 FROM tab0 AS cor0
----
103

onlyif mysql # DIV for integer division: 
query I rowsort label-778
SELECT + 16 DIV + col1 + 94 * + col2 FROM tab1 cor0
----
5549
6392
9025

skipif mysql # not compatible
query I rowsort label-778
SELECT + 16 / + col1 + 94 * + col2 FROM tab1 cor0
----
5549
6392
9025

onlyif mysql # aggregate syntax: 
query I rowsort label-779
SELECT SUM( col2 ) + + + COUNT( * ) FROM tab0
----
159

skipif mysql # not compatible
query I rowsort label-779
SELECT SUM ( col2 ) + + + COUNT ( * ) FROM tab0
----
159

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

skipif mysql # not compatible
query I rowsort label-780
SELECT - COUNT ( * ) / - - 92 FROM tab2
----
0

query II rowsort
SELECT col2, - 66 AS col0 FROM tab2
----
23
-66
40
-66
58
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-782
SELECT - - SUM( ALL - ( - - 92 ) ) FROM tab2 WHERE NOT ( NOT + col2 >= + 89 * + 67 + + col0 - + col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-782
SELECT - - SUM ( ALL - ( - - 92 ) ) FROM tab2 WHERE NOT ( NOT + col2 >= + 89 * + 67 + + col0 - + col1 )
----
NULL

query II rowsort
SELECT col1, - col1 - 32 AS col2 FROM tab0
----
1
-33
21
-53
81
-113

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-787
SELECT ALL col1 AS col2 FROM tab0 WHERE NOT - col1 + - CAST( col1 AS SIGNED ) <> - + col1 + + + col1
----

skipif mysql # not compatible
query I rowsort label-787
SELECT ALL col1 AS col2 FROM tab0 WHERE NOT - col1 + - CAST ( col1 AS INTEGER ) <> - + col1 + + + col1
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-789
SELECT 98 + col2 col0 FROM tab1 WHERE NOT - 32 + - CAST( + ( - col0 ) AS SIGNED ) NOT BETWEEN - - col1 AND 64
----
157
166
194

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-789
SELECT 98 + col2 col0 FROM tab1 WHERE NOT - 32 + - CAST ( + ( - col0 ) AS INTEGER ) NOT BETWEEN - - col1 AND 64
----
157
166
194

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-790
SELECT DISTINCT col0 FROM tab1 WHERE NOT - CAST( NULL AS SIGNED ) IS NOT NULL
----
51
85
91

skipif mysql # not compatible
query I rowsort label-790
SELECT DISTINCT col0 FROM tab1 WHERE NOT - CAST ( NULL AS INTEGER ) IS NOT NULL
----
51
85
91

query II rowsort
SELECT DISTINCT + 70 * col1 * - - col2 + 49 + + 40, col0 AS col1 FROM tab0 AS cor0
----
14789
87
266579
15
7019
97

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NOT - - 79 / col2 >= NULL )
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-795
SELECT 66 DIV col2 AS col2 FROM tab0 AS cor0
----
0
1
6

skipif mysql # not compatible
query I rowsort label-795
SELECT 66 / col2 AS col2 FROM tab0 AS cor0
----
0
1
6

query II rowsort
SELECT ALL - 87 + + 25 AS col2, - col2 FROM tab0 AS cor0
----
-62
-10
-62
-47
-62
-99

query I rowsort
SELECT + 22 + + 55 AS col1 FROM tab1 AS cor0
----
77
77
77

onlyif mysql # aggregate syntax: 
query I rowsort label-798
SELECT DISTINCT ( - ( - 18 ) ) + COUNT( * ) AS col1 FROM tab0 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-798
SELECT DISTINCT ( - ( - 18 ) ) + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
21

query I rowsort
SELECT 97 * - + 56 + + col1 FROM tab0 AS cor0
----
-5351
-5411
-5431

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-801
SELECT + col0 DIV + + col1 + + col0 * + + ( 92 ) col2, + 45 AS col1 FROM tab2 AS cor0
----
4232
45
5888
45
6901
45

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-801
SELECT + col0 / + + col1 + + col0 * + + ( 92 ) col2, + 45 AS col1 FROM tab2 AS cor0
----
4232
45
5888
45
6901
45

query I rowsort
SELECT ALL col0 + - 21 AS col1 FROM tab1
----
30
64
70

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-803
SELECT ALL * FROM tab1 WHERE - + CAST( - 63 AS SIGNED ) * + col2 * + col0 * + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-803
SELECT ALL * FROM tab1 WHERE - + CAST ( - 63 AS INTEGER ) * + col2 * + col0 * + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col0 + - 94 AS col2 FROM tab0
----
-7
-79
3

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

query I rowsort
SELECT - 72 * - + col1 FROM tab2
----
3672
4824
5544

query II rowsort
SELECT + col1 * - col1 * + col1 * + + 73 AS col0, col1 + - 71 AS col1 FROM tab0 AS cor0
----
-38795193
10
-676053
-50
-73
-70

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-808
SELECT ALL + 3, - CAST( NULL AS SIGNED ) - - ( - 76 ) AS col0 FROM tab2 AS cor0
----
3
NULL
3
NULL
3
NULL

skipif mysql # not compatible
query II rowsort label-808
SELECT ALL + 3, - CAST ( NULL AS INTEGER ) - - ( - 76 ) AS col0 FROM tab2 AS cor0
----
3
NULL
3
NULL
3
NULL

query I rowsort
SELECT DISTINCT 98 * col0 FROM tab2 AS cor0 WHERE NOT 98 - + + 14 IS NOT NULL
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 14 col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT - 45 * - - 2 <= NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-816
SELECT ALL - CAST( - col1 AS SIGNED ) * col0 - 48 + + + 51 AS col0, - col2 FROM tab0
----
100
-99
1218
-47
1830
-10

skipif mysql # not compatible
query II rowsort label-816
SELECT ALL - CAST ( - col1 AS INTEGER ) * col0 - 48 + + + 51 AS col0, - col2 FROM tab0
----
100
-99
1218
-47
1830
-10

query II rowsort
SELECT - 9 + col2, + col1 AS col2 FROM tab0
----
1
21
38
81
90
1

query II rowsort
SELECT DISTINCT - col0 - - col0, col2 * + 51 + + col1 AS col2 FROM tab2 AS cor0
----
0
1224
0
2117
0
3025

query I rowsort
SELECT ALL - ( + ( + 35 ) ) FROM tab2 AS cor0 WHERE NULL <= NULL
----

query I rowsort
SELECT - 38 * - - ( - col0 ) AS col2 FROM tab2 AS cor0
----
1748
2432
2850

onlyif mysql # aggregate syntax: 
query I rowsort label-821
SELECT SUM( - 27 ) * - 99 AS col1 FROM tab1 AS cor0
----
8019

skipif mysql # not compatible
query I rowsort label-821
SELECT SUM ( - 27 ) * - 99 AS col1 FROM tab1 AS cor0
----
8019

onlyif mysql # DIV for integer division: 
query I rowsort label-822
SELECT ALL - col1 DIV + 5 - - col1 * - col1 FROM tab1 AS cor0
----
-198
-2218
-26

skipif mysql # not compatible
query I rowsort label-822
SELECT ALL - col1 / + 5 - - col1 * - col1 FROM tab1 AS cor0
----
-198
-2218
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-823
SELECT COUNT( - - 91 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-823
SELECT COUNT ( - - 91 ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-824
SELECT - COUNT( * ) * + + 59 FROM tab2
----
-177

skipif mysql # not compatible
query I rowsort label-824
SELECT - COUNT ( * ) * + + 59 FROM tab2
----
-177

onlyif mysql # aggregate syntax: 
query I rowsort label-825
SELECT - COUNT( DISTINCT - - 59 ) col0 FROM tab0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-825
SELECT - COUNT ( DISTINCT - - 59 ) col0 FROM tab0
----
-1

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-828
SELECT DISTINCT - 0 AS col1, col1 DIV col2 FROM tab1
----
0
0

skipif mysql # not compatible
query II rowsort label-828
SELECT DISTINCT - 0 AS col1, col1 / col2 FROM tab1
----
0
0

query I rowsort
SELECT ALL - col2 * - + ( + col2 ) FROM tab1
----
3481
4624
9216

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-830
SELECT ALL 93 / + CAST( NULL AS SIGNED ) + + SUM( - col1 ) col1 FROM tab1
----
NULL

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

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

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

query I rowsort
SELECT ALL 4 * 35 * + 20 - + 15 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-834
SELECT + + COUNT( + col0 ) * 34 * - - MAX( - - ( - - col2 ) ) + + + 51 + COUNT( * ) * MAX( col2 ) * - COUNT( * ) FROM tab2 AS cor0
----
5445

skipif mysql # not compatible
query I rowsort label-834
SELECT + + COUNT ( + col0 ) * 34 * - - MAX ( - - ( - - col2 ) ) + + + 51 + COUNT ( * ) * MAX ( col2 ) * - COUNT ( * ) FROM tab2 AS cor0
----
5445

query I rowsort
SELECT ALL + col2 * - col2 + - + col2 AS col2 FROM tab1 AS cor0
----
-3540
-4692
-9312

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-836
SELECT MAX( ALL + + CAST( - col0 AS SIGNED ) ) AS col2 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-836
SELECT MAX ( ALL + + CAST ( - col0 AS INTEGER ) ) AS col2 FROM tab0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-837
SELECT DISTINCT + 72 + ( COUNT( * ) ) col1 FROM tab2
----
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-837
SELECT DISTINCT + 72 + ( COUNT ( * ) ) col1 FROM tab2
----
75

query II rowsort
SELECT ( + col2 ) AS col1, - col1 + - col0 FROM tab0
----
10
-108
47
-96
99
-98

query II rowsort
SELECT - col2 + - 5, 67 * - 75 AS col0 FROM tab2
----
-28
-5025
-45
-5025
-63
-5025

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-843
SELECT + 62 + - - MAX( ALL - 59 ) DIV + COUNT( * ) FROM tab2
----
43

skipif mysql # not compatible
query I rowsort label-843
SELECT + 62 + - - MAX ( ALL - 59 ) / + COUNT ( * ) FROM tab2
----
43

query I rowsort
SELECT ALL col0 - col2 + 32 AS col1 FROM tab0
----
0
109
30

query I rowsort
SELECT DISTINCT + 48 * - col2 + - - col1 FROM tab1
----
-2827
-3217
-4594

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

query II rowsort
SELECT + - col1, col1 * + col1 AS col1 FROM tab0 cor0
----
-1
1
-21
441
-81
6561

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

skipif mysql # not compatible
query I rowsort label-848
SELECT + 7 * - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-21

query I rowsort
SELECT ALL - col0 * + 21 FROM tab2 cor0
----
-1344
-1575
-966

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-850
SELECT DISTINCT - - col1 * - - col1 - CAST( NULL AS DECIMAL ), col2 AS col0 FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-850
SELECT DISTINCT - - col1 * - - col1 - CAST ( NULL AS REAL ), col2 AS col0 FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-852
SELECT ALL + 39 DIV 97 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-852
SELECT ALL + 39 / 97 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT 33 * col1 * col1 AS col2 FROM tab2
----
148137
195657
85833

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

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

query I rowsort
SELECT - 96 AS col1 FROM tab2 WHERE NOT - + col2 + + col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 + + 1 AS col0 FROM tab1 AS cor0
----
52
86
92

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

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 + + + col1 * - + 0 col0, col1 AS col2 FROM tab2 AS cor0
----
-46
51
-64
77
-75
67

query I rowsort
SELECT - - col1 + ( - 87 ) AS col0 FROM tab0 cor0
----
-6
-66
-86

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 64 + + + col1 > + col2
----
15
81
47
87
21
10

query I rowsort
SELECT - + col2 + + - 93 AS col1 FROM tab1 AS cor0
----
-152
-161
-189

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

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL < ( + 80 )
----

query I rowsort
SELECT col1 FROM tab2 WHERE ( - 78 ) IS NOT NULL
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-869
SELECT DISTINCT + 52 + - 53 + - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-869
SELECT DISTINCT + 52 + - 53 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-870
SELECT DISTINCT + CAST( NULL AS SIGNED ) / col2 - + 15 * - - col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-870
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / col2 - + 15 * - - col2 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT - + ( 78 ) FROM tab1 WHERE - 49 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-872
SELECT - SUM( 19 ) FROM tab1
----
-57

skipif mysql # not compatible
query I rowsort label-872
SELECT - SUM ( 19 ) FROM tab1
----
-57

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

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

query I rowsort
SELECT DISTINCT + + 62 - - col0 * 3 FROM tab0 AS cor0
----
107
323
353

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-877
SELECT ALL + col2 DIV + CAST( 15 AS SIGNED ) col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
0
3
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-877
SELECT ALL + col2 / + CAST ( 15 AS INTEGER ) col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
0
3
6

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 / 96 + + col2 IS NULL
----

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

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

query II rowsort
SELECT + 62 * col2 * - 30 AS col1, + 69 + col1 AS col1 FROM tab2
----
-107880
136
-42780
120
-74400
146

onlyif mysql # DIV for integer division: 
query I rowsort label-882
SELECT ( + 29 ) DIV col2 * - 28 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-882
SELECT ( + 29 ) / col2 * - 28 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-883
SELECT + ( + - col1 ) - - + col2 + + - 91 DIV + ( col1 ) FROM tab2 AS cor0 WHERE NOT + col2 BETWEEN - col0 AND ( 4 )
----
-10
-29
-38

skipif mysql # not compatible
query I rowsort label-883
SELECT + ( + - col1 ) - - + col2 + + - 91 / + ( col1 ) FROM tab2 AS cor0 WHERE NOT + col2 BETWEEN - col0 AND ( 4 )
----
-10
-29
-38

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-884
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IN ( CAST( - 30 AS SIGNED ), + ( col1 ) + ( + + col0 ), col1 / 46 )
----

skipif mysql # not compatible
query III rowsort label-884
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IN ( CAST ( - 30 AS INTEGER ), + ( col1 ) + ( + + col0 ), col1 / 46 )
----

query I rowsort
SELECT - 10 + col2 FROM tab2 AS cor0
----
13
30
48

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-887
SELECT + CAST( + col2 AS SIGNED ) * col0 FROM tab0
----
705
870
9603

skipif mysql # not compatible
query I rowsort label-887
SELECT + CAST ( + col2 AS INTEGER ) * col0 FROM tab0
----
705
870
9603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - 46 + 59 * - col2 col2 FROM tab1 WHERE - col1 * + col2 + - col1 NOT BETWEEN NULL AND - col2 + + 27 * - ( - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col0 FROM tab1 WHERE NULL NOT IN ( 93 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-890
SELECT * FROM tab1 WHERE ( NULL ) NOT BETWEEN 30 AND + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-890
SELECT * FROM tab1 WHERE ( NULL ) NOT BETWEEN 30 AND + CAST ( NULL AS REAL )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - 20 + 87 NOT BETWEEN ( col1 ) AND 3 * col0 + - col1
----
46
51
23
75
67
58

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

skipif mysql # not compatible
query I rowsort label-892
SELECT + CAST ( 66 AS INTEGER ) + + 47 / - COUNT ( * ) AS col0 FROM tab1
----
51

query I rowsort
SELECT - ( 27 ) FROM tab0
----
-27
-27
-27

query I rowsort
SELECT + col1 * col0 + - 51 FROM tab2
----
2295
4877
4974

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

onlyif mysql # aggregate syntax: 
query I rowsort label-896
SELECT + COUNT( * ) + - 60 FROM tab0
----
-57

skipif mysql # not compatible
query I rowsort label-896
SELECT + COUNT ( * ) + - 60 FROM tab0
----
-57

query I rowsort
SELECT + ( - col2 ) + col1 * + col0 FROM tab1
----
366
4209
618

onlyif mysql # aggregate syntax: 
query I rowsort label-898
SELECT COUNT( * ) * + 14 + 56 AS col2 FROM tab2
----
98

skipif mysql # not compatible
query I rowsort label-898
SELECT COUNT ( * ) * + 14 + 56 AS col2 FROM tab2
----
98

query III rowsort
SELECT * FROM tab2 WHERE - 81 >= col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-900
SELECT CAST( + col1 AS SIGNED ) FROM tab0 WHERE NOT ( NULL ) >= NULL
----

skipif mysql # not compatible
query I rowsort label-900
SELECT CAST ( + col1 AS INTEGER ) FROM tab0 WHERE NOT ( NULL ) >= NULL
----

query I rowsort
SELECT + 82 * + col2 AS col1 FROM tab1
----
4838
5576
7872

query I rowsort
SELECT DISTINCT + ( - col0 ) + col1 FROM tab2
----
-8
13
5

onlyif mysql # aggregate syntax: 
query I rowsort label-903
SELECT + MIN( ALL 61 ) * 51 FROM tab1
----
3111

skipif mysql # not compatible
query I rowsort label-903
SELECT + MIN ( ALL 61 ) * 51 FROM tab1
----
3111

query I rowsort
SELECT + 72 + col0 AS col1 FROM tab1
----
123
157
163

query I rowsort
SELECT ALL - 94 * - 70 AS col2 FROM tab1
----
6580
6580
6580

query I rowsort
SELECT col2 * + 72 FROM tab2
----
1656
2880
4176

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-907
SELECT 15 * CAST( COUNT( * ) * + 82 AS SIGNED ) col2 FROM tab1 WHERE ( - col2 + + 30 ) >= NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-907
SELECT 15 * CAST ( COUNT ( * ) * + 82 AS INTEGER ) col2 FROM tab1 WHERE ( - col2 + + 30 ) >= NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-908
SELECT ALL + col1 DIV 84 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-908
SELECT ALL + col1 / 84 FROM tab2
----
0
0
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-910
SELECT COUNT( * ) * - 20 FROM tab1 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-910
SELECT COUNT ( * ) * - 20 FROM tab1 AS cor0
----
-60

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 63 + 93 IS NOT NULL
----

query I rowsort
SELECT 37 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

query I rowsort
SELECT 12 FROM tab2 AS cor0 CROSS JOIN tab2
----
9 values hashing to d4f5a8e032294c3b9342821617800972

query I rowsort
SELECT DISTINCT + 55 * 60 FROM tab2 AS cor0 CROSS JOIN tab0
----
3300

query I rowsort
SELECT DISTINCT - 80 * 62 FROM tab0
----
-4960

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

query I rowsort
SELECT + 47 * - 55 FROM tab1 AS cor0
----
-2585
-2585
-2585

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

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

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( - col1 ) * + 33 BETWEEN - 59 AND NULL
----

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <= ( col2 )
----

query I rowsort
SELECT ALL 65 * col0 * + 38 AS col0 FROM tab1
----
125970
209950
224770

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-927
SELECT + MIN( DISTINCT - + 9 ) * + COUNT( * ) FROM tab0 cor0
----
-27

skipif mysql # not compatible
query I rowsort label-927
SELECT + MIN ( DISTINCT - + 9 ) * + COUNT ( * ) FROM tab0 cor0
----
-27

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-931
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE - 67 IS NOT NULL
----
3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-933
SELECT DISTINCT 98 + + - COUNT( * ) col1 FROM tab1
----
95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-933
SELECT DISTINCT 98 + + - COUNT ( * ) col1 FROM tab1
----
95

query I rowsort
SELECT 51 + + 96 AS col0 FROM tab0
----
147
147
147

query I rowsort
SELECT - col1 FROM tab2 WHERE NULL NOT BETWEEN ( col0 ) AND 88 * - 63
----

onlyif mysql # aggregate syntax: 
query I rowsort label-936
SELECT ALL + 52 + COUNT( * ) * - 92 - 13 AS col0 FROM tab0
----
-237

skipif mysql # not compatible
query I rowsort label-936
SELECT ALL + 52 + COUNT ( * ) * - 92 - 13 AS col0 FROM tab0
----
-237

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( 58 * + col2 / 31 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-939
SELECT - col0 + + CAST( - col2 AS SIGNED ) FROM tab2 AS cor0
----
-104
-133
-69

skipif mysql # not compatible
query I rowsort label-939
SELECT - col0 + + CAST ( - col2 AS INTEGER ) FROM tab2 AS cor0
----
-104
-133
-69

onlyif mysql # DIV for integer division: 
query II rowsort label-940
SELECT DISTINCT col1 col0, col1 * + col0 DIV col0 FROM tab0 AS cor0
----
1
1
21
21
81
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-940
SELECT DISTINCT col1 col0, col1 * + col0 / col0 FROM tab0 AS cor0
----
1
1
21
21
81
81

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

query I rowsort
SELECT + 47 + + 1 FROM tab0 AS cor0
----
48
48
48

onlyif mysql # DIV for integer division: 
query I rowsort label-943
SELECT ALL - - col0 - - 52 DIV - - col2 * - col2 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-943
SELECT ALL - - col0 - - 52 / - - col2 * - col2 FROM tab1 AS cor0
----
51
85
91

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT col2 NOT BETWEEN NULL AND - 52 - 7 / + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-945
SELECT - + col2 * col2 DIV + + col0 + col1 * col0 AS col2 FROM tab0 AS cor0
----
-4
1068
1826

skipif mysql # not compatible
query I rowsort label-945
SELECT - + col2 * col2 / + + col0 + col1 * col0 AS col2 FROM tab0 AS cor0
----
-4
1068
1826

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-946
SELECT DISTINCT 19 DIV COUNT( + col2 ) AS col0 FROM tab0 cor0
----
6

skipif mysql # not compatible
query I rowsort label-946
SELECT DISTINCT 19 / COUNT ( + col2 ) AS col0 FROM tab0 cor0
----
6

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

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

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

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

query I rowsort
SELECT ALL col0 + + col1 + + + 94 FROM tab0
----
190
192
202

query I rowsort
SELECT + 50 - 87 AS col1 FROM tab0
----
-37
-37
-37

query II rowsort
SELECT ALL + col1 + + col0 AS col0, - ( - + col2 ) + 97 FROM tab2
----
141
137
142
155
97
120

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-954
SELECT col1 - + - col1 DIV - 97 * + ( col2 ) * col0 AS col1 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-954
SELECT col1 - + - col1 / - 97 * + ( col2 ) * col0 AS col1 FROM tab1
----
14
47
5

query I rowsort
SELECT col0 / col2 AS col1 FROM tab0 WHERE NULL NOT IN ( - - 82 + - - col2 + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-956
SELECT + COUNT( * ) - + 95 * + ( COUNT( * ) ) AS col0 FROM tab2
----
-282

skipif mysql # not compatible
query I rowsort label-956
SELECT + COUNT ( * ) - + 95 * + ( COUNT ( * ) ) AS col0 FROM tab2
----
-282

query I rowsort
SELECT - col1 * - + col2 - - col0 + + + col2 AS col2 FROM tab1
----
1491
3355
439

query I rowsort
SELECT 74 - + 29 FROM tab2 AS cor0
----
45
45
45

query I rowsort
SELECT - 47 + 12 AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 58 * col2 col1 FROM tab1 AS cor0 WHERE NOT col0 IN ( - - col1 )
----
-3422
-3944
-5568

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-964
SELECT + COUNT( * ) * CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE NOT + col2 BETWEEN NULL AND ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-964
SELECT + COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE NOT + col2 BETWEEN NULL AND ( NULL )
----
NULL

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

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

query II rowsort
SELECT DISTINCT 26, 59 AS col0 FROM tab0 AS cor0
----
26
59

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 63 * - 83 = NULL
----

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-969
SELECT ALL * FROM tab2 AS cor0 WHERE NOT CAST( NULL AS DECIMAL ) NOT BETWEEN - col2 * + col0 - col0 + + 0 / + 4 AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-969
SELECT ALL * FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS REAL ) NOT BETWEEN - col2 * + col0 - col0 + + 0 / + 4 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-970
SELECT ALL 22 + + COUNT( * ) AS col2 FROM tab2
----
25

skipif mysql # not compatible
query I rowsort label-970
SELECT ALL 22 + + COUNT ( * ) AS col2 FROM tab2
----
25

query I rowsort
SELECT + 70 * - 33 FROM tab0
----
-2310
-2310
-2310

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + 79 - - col0 + col2 * col1 col0 FROM tab2
----
1321
3263
4098

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-975
SELECT ALL - col0 FROM tab0 WHERE NOT ( + CAST( + 96 AS SIGNED ) + + + col0 + + col2 ) > NULL
----

skipif mysql # not compatible
query I rowsort label-975
SELECT ALL - col0 FROM tab0 WHERE NOT ( + CAST ( + 96 AS INTEGER ) + + + col0 + + col2 ) > NULL
----

query I rowsort
SELECT - 38 FROM tab0 WHERE NOT - 56 + + col0 IS NOT NULL
----

query III rowsort
SELECT col0 AS col2, col1 AS col0, - - 97 AS col2 FROM tab1
----
9 values hashing to b354bda7da0f6492cc0ec03225b3fdbd

query I rowsort
SELECT col1 AS col1 FROM tab2 WHERE - col0 - ( - col0 ) + 90 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-979
SELECT ALL col1 * col1 + + - CAST( + col1 AS SIGNED ) + + + col1 + - col1 FROM tab0
----
0
420
6480

skipif mysql # not compatible
query I rowsort label-979
SELECT ALL col1 * col1 + + - CAST ( + col1 AS INTEGER ) + + + col1 + - col1 FROM tab0
----
0
420
6480

query I rowsort
SELECT DISTINCT + 89 * + - 83 FROM tab2 AS cor0
----
-7387

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-982
SELECT ALL + SUM( + 42 ) DIV - - MAX( CAST( - col2 AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-982
SELECT ALL + SUM ( + 42 ) / - - MAX ( CAST ( - col2 AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-983
SELECT - - COUNT( * ) + 46 FROM tab1 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-983
SELECT - - COUNT ( * ) + 46 FROM tab1 AS cor0
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-984
SELECT + col1 + + col0 DIV ( + 52 ) FROM tab0 AS cor0
----
2
22
81

skipif mysql # not compatible
query I rowsort label-984
SELECT + col1 + + col0 / ( + 52 ) FROM tab0 AS cor0
----
2
22
81

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

query I rowsort
SELECT + 73 * - 7 AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to e4c155bf9bf2796a730f558b44ec872f

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

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

query I rowsort
SELECT ALL 68 AS col1 FROM tab2 AS cor0 WHERE NULL BETWEEN + col0 AND ( + - 33 * - 41 + col2 )
----

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

skipif mysql # not compatible
query I rowsort label-990
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE - 37 IN ( - - col2 )
----
0

query I rowsort
SELECT ALL col1 * - + col1 + 25 FROM tab2 AS cor0 WHERE NOT 50 <= + - 74
----
-2576
-4464
-5904

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

query I rowsort
SELECT + + 16 - - col2 AS col0 FROM tab1 AS cor0
----
112
75
84

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

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

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

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

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

query I rowsort
SELECT + col2 + - 23 + col1 AS col2 FROM tab1
----
41
87
92

query I rowsort
SELECT ALL - 47 FROM tab1 WHERE NOT + ( - 4 ) NOT BETWEEN - col0 AND - col0 / 78
----
-47
-47
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-999
SELECT - col1 DIV + col1 AS col0 FROM tab1 WHERE + 97 * col0 <> - col0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-999
SELECT - col1 / + col1 AS col0 FROM tab1 WHERE + 97 * col0 <> - col0
----
-1
-1
-1

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

query II rowsort
SELECT ALL - col0, + col1 * + col1 FROM tab2 WHERE NOT 19 - + col0 * - col2 IS NOT NULL
----

query I rowsort
SELECT ALL col2 AS col1 FROM tab0 WHERE + col0 NOT IN ( + col2 * - col2 - + 35 )
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1003
SELECT + - SUM( DISTINCT - col2 ) FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1003
SELECT + - SUM ( DISTINCT - col2 ) FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
NULL

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

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

query II rowsort
SELECT ALL + + 24, ( - 30 ) AS col1 FROM tab0 AS cor0
----
24
-30
24
-30
24
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-1006
SELECT DISTINCT + COUNT( * ) * 89 * - COUNT( * ) col0 FROM tab1 AS cor0
----
-801

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1006
SELECT DISTINCT + COUNT ( * ) * 89 * - COUNT ( * ) col0 FROM tab1 AS cor0
----
-801

query I rowsort
SELECT 98 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

onlyif mysql # aggregate syntax: 
query I rowsort label-1008
SELECT MIN( ALL - 53 ) AS col2 FROM tab2 WHERE NOT - ( - - col0 ) IN ( 1 * - col2 / + ( - col0 ) )
----
-53

skipif mysql # not compatible
query I rowsort label-1008
SELECT MIN ( ALL - 53 ) AS col2 FROM tab2 WHERE NOT - ( - - col0 ) IN ( 1 * - col2 / + ( - col0 ) )
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-1009
SELECT + 57 * COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
513

skipif mysql # not compatible
query I rowsort label-1009
SELECT + 57 * COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
513

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 52 - + col0 <= NULL
----

query I rowsort
SELECT - 92 + - + 60 AS col0 FROM tab1 AS cor0
----
-152
-152
-152

query II rowsort
SELECT - col2 AS col0, - col2 FROM tab2 AS cor0 WHERE NOT ( - 48 * + col0 ) <= - 51
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - ( col2 ) NOT IN ( - 78 )
----

query I rowsort
SELECT ALL - col2 * ( + + col0 ) * - + col1 + col2 + - 0 - - col0 FROM tab0
----
18367
57167
9799

query I rowsort
SELECT + ( + + col2 ) FROM tab2 WHERE NULL IS NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1016
SELECT 57 * + + COUNT( * ) AS col0 FROM tab2
----
171

skipif mysql # not compatible
query I rowsort label-1016
SELECT 57 * + + COUNT ( * ) AS col0 FROM tab2
----
171

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

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

query I rowsort
SELECT ALL - 51 * + ( 35 ) + col0 FROM tab0 AS cor0
----
-1688
-1698
-1770

query I rowsort
SELECT DISTINCT 4 - + 7 FROM tab0
----
-3

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

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

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

query I rowsort
SELECT - - ( col2 ) * + - 4 AS col0 FROM tab0 AS cor0
----
-188
-396
-40

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1024
SELECT DISTINCT + 25 * COUNT( * ) FROM tab0 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-1024
SELECT DISTINCT + 25 * COUNT ( * ) FROM tab0 AS cor0
----
75

query II rowsort
SELECT DISTINCT - col2 * + - 54 AS col2, 56 AS col1 FROM tab0 WHERE NOT col1 + + - 69 > + col0 - - + 43
----
2538
56
5346
56
540
56

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1026
SELECT ALL * FROM tab1 WHERE - col2 * col0 BETWEEN 22 AND + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1026
SELECT ALL * FROM tab1 WHERE - col2 * col0 BETWEEN 22 AND + - CAST ( NULL AS INTEGER )
----

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

query I rowsort
SELECT - col0 * + - ( - col0 ) * + col1 AS col1 FROM tab0
----
-158949
-18225
-9409

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1030
SELECT + MAX( DISTINCT + 71 ) * + - COUNT( * ) FROM tab1
----
-213

skipif mysql # not compatible
query I rowsort label-1030
SELECT + MAX ( DISTINCT + 71 ) * + - COUNT ( * ) FROM tab1
----
-213

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1032
SELECT DISTINCT MAX( - 43 ) * - - 92 FROM tab0 cor0
----
-3956

skipif mysql # not compatible
query I rowsort label-1032
SELECT DISTINCT MAX ( - 43 ) * - - 92 FROM tab0 cor0
----
-3956

onlyif mysql # DIV for integer division: 
query I rowsort label-1033
SELECT ALL - col0 * - col2 * + + col2 + ( - - col2 ) DIV - + col2 AS col0 FROM tab0 AS cor0
----
33134
8699
950696

skipif mysql # not compatible
query I rowsort label-1033
SELECT ALL - col0 * - col2 * + + col2 + ( - - col2 ) / - + col2 AS col0 FROM tab0 AS cor0
----
33134
8699
950696

onlyif mysql # DIV for integer division: 
query I rowsort label-1034
SELECT DISTINCT - col2 DIV 26 AS col1 FROM tab2 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-1034
SELECT DISTINCT - col2 / 26 AS col1 FROM tab2 AS cor0
----
-1
-2
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1035
SELECT ALL - 45 * COUNT( * ) FROM tab2 cor0
----
-135

skipif mysql # not compatible
query I rowsort label-1035
SELECT ALL - 45 * COUNT ( * ) FROM tab2 cor0
----
-135

query I rowsort
SELECT 63 + - 94 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f4b05206ee2fc0cf8007d9c3514885fa

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

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + - col0 NOT BETWEEN col0 + + col2 AND 65
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1040
SELECT col1, - CAST( - - col0 AS SIGNED ) FROM tab2 cor0
----
51
-46
67
-75
77
-64

skipif mysql # not compatible
query II rowsort label-1040
SELECT col1, - CAST ( - - col0 AS INTEGER ) FROM tab2 cor0
----
51
-46
67
-75
77
-64

query I rowsort
SELECT ALL 96 + - col2 FROM tab2
----
38
56
73

query II rowsort
SELECT col2 * + col2 * col0 + 81 AS col2, col1 AS col1 FROM tab0
----
33216
81
8781
21
950778
1

query I rowsort
SELECT ALL + ( + col0 ) * - - col1 + 35 AS col2 FROM tab0
----
1250
132
1862

query II rowsort
SELECT col0 + - col1 AS col2, 88 FROM tab1
----
37
88
44
88
80
88

onlyif mysql # aggregate syntax: 
query I rowsort label-1045
SELECT DISTINCT - MIN( + ( - 99 ) ) FROM tab1 cor0
----
99

skipif mysql # not compatible
query I rowsort label-1045
SELECT DISTINCT - MIN ( + ( - 99 ) ) FROM tab1 cor0
----
99

query I rowsort
SELECT - ( - - 44 ) * col1 FROM tab1 AS cor0
----
-2068
-220
-616

onlyif mysql # aggregate syntax: 
query I rowsort label-1047
SELECT ALL - COUNT( * ) * + - MAX( ALL col0 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL >= + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1047
SELECT ALL - COUNT ( * ) * + - MAX ( ALL col0 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL >= + col0
----
NULL

query I rowsort
SELECT DISTINCT + - col2 * - col1 * 23 FROM tab1 cor0
----
30912
6785
73508

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

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

query I rowsort
SELECT - - col1 * - - 40 FROM tab1 AS cor0
----
1880
200
560

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

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

query II rowsort
SELECT ALL + 8 * 18 * - 50, col1 FROM tab2 AS cor0
----
-7200
51
-7200
67
-7200
77

query I rowsort
SELECT 9 * - + col2 AS col2 FROM tab2
----
-207
-360
-522

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1056
SELECT DISTINCT col2, - 41 + - + CAST( - - 28 AS SIGNED ) FROM tab2
----
23
-69
40
-69
58
-69

skipif mysql # not compatible
query II rowsort label-1056
SELECT DISTINCT col2, - 41 + - + CAST ( - - 28 AS INTEGER ) FROM tab2
----
23
-69
40
-69
58
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1057
SELECT SUM( - + col2 ) AS col1 FROM tab0 WHERE NOT + - ( - - 84 ) + CAST( + + col0 AS SIGNED ) < + col1
----
-99

skipif mysql # not compatible
query I rowsort label-1057
SELECT SUM ( - + col2 ) AS col1 FROM tab0 WHERE NOT + - ( - - 84 ) + CAST ( + + col0 AS INTEGER ) < + col1
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1058
SELECT * FROM tab2 WHERE NOT CAST( - ( + - 76 ) AS SIGNED ) > - col0
----

skipif mysql # not compatible
query III rowsort label-1058
SELECT * FROM tab2 WHERE NOT CAST ( - ( + - 76 ) AS INTEGER ) > - col0
----

query I rowsort
SELECT ( 38 ) AS col2 FROM tab1 AS cor0
----
38
38
38

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1060
SELECT ALL CAST( NULL AS DECIMAL ) / - 9 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1060
SELECT ALL CAST ( NULL AS REAL ) / - 9 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + 73 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

query I rowsort
SELECT + 11 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

query IIIIII rowsort
SELECT DISTINCT * FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 93 col1 FROM tab2
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1065
SELECT - CAST( + 24 AS SIGNED ) + - + col2 FROM tab1 cor0
----
-120
-83
-92

skipif mysql # not compatible
query I rowsort label-1065
SELECT - CAST ( + 24 AS INTEGER ) + - + col2 FROM tab1 cor0
----
-120
-83
-92

query I rowsort
SELECT + ( - 24 ) + + - col1 FROM tab0 AS cor0
----
-105
-25
-45

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

query I rowsort
SELECT ALL 58 + - col2 - + - col0 FROM tab1 AS cor0
----
13
81
84

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

query I rowsort
SELECT ALL 6 + + col1 FROM tab2
----
57
73
83

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( 44 ) >= col1
----
91
47
68

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1072
SELECT - CAST( NULL AS DECIMAL ) AS col0 FROM tab1 WHERE + + CAST( NULL AS SIGNED ) + + - 94 + - col0 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1072
SELECT - CAST ( NULL AS REAL ) AS col0 FROM tab1 WHERE + + CAST ( NULL AS INTEGER ) + + - 94 + - col0 IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT - 23 FROM tab1 WHERE ( ( NULL ) NOT BETWEEN NULL AND - col1 )
----

query I rowsort
SELECT DISTINCT + col1 + + - 51 * + col2 / - col0 + - - col1 AS col1 FROM tab0 WHERE NOT ( ( NULL ) >= + 30 )
----

query II rowsort
SELECT ALL col2 AS col2, + col2 + col2 FROM tab2
----
23
46
40
80
58
116

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1076
SELECT ALL 79 + CAST( NULL AS DECIMAL ) * + 38 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1076
SELECT ALL 79 + CAST ( NULL AS REAL ) * + 38 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1077
SELECT DISTINCT 17 * ( 27 ) DIV - 48 - - 35 FROM tab2
----
26

skipif mysql # not compatible
query I rowsort label-1077
SELECT DISTINCT 17 * ( 27 ) / - 48 - - 35 FROM tab2
----
26

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

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

query I rowsort
SELECT ALL - 7 + - col0 FROM tab0
----
-104
-22
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-1081
SELECT DISTINCT - col1 DIV col2 * - 23 + - 88 + - col0 FROM tab2
----
-129
-140
-88

skipif mysql # not compatible
query I rowsort label-1081
SELECT DISTINCT - col1 / col2 * - 23 + - 88 + - col0 FROM tab2
----
-129
-140
-88

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1082
SELECT ALL * FROM tab1 WHERE - col2 + - col2 * + CAST( NULL AS DECIMAL ) * + - col0 = + + col0 * - + 77 + 66
----

skipif mysql # not compatible
query III rowsort label-1082
SELECT ALL * FROM tab1 WHERE - col2 + - col2 * + CAST ( NULL AS REAL ) * + - col0 = + + col0 * - + 77 + 66
----

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

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

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

query I rowsort
SELECT DISTINCT 1 * + col1 * + col1 FROM tab0 AS cor0
----
1
441
6561

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1086
SELECT DISTINCT - - 18 DIV - 3 + + - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT - col0 * col0 > + col2 * 8
----
-9

skipif mysql # not compatible
query I rowsort label-1086
SELECT DISTINCT - - 18 / - 3 + + - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT - col0 * col0 > + col2 * 8
----
-9

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

query I rowsort
SELECT 38 * + + col2 AS col0 FROM tab0
----
1786
3762
380

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1091
SELECT 78 * + - CAST( NULL AS SIGNED ) / + 32 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1091
SELECT 78 * + - CAST ( NULL AS INTEGER ) / + 32 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1092
SELECT - MAX( DISTINCT - col0 ) col2 FROM tab2
----
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1092
SELECT - MAX ( DISTINCT - col0 ) col2 FROM tab2
----
46

query I rowsort
SELECT DISTINCT col0 FROM tab0 WHERE NOT + + col0 * - - col1 + - + col1 + + + col0 IS NULL
----
15
87
97

query I rowsort
SELECT 86 * + - col2 FROM tab1
----
-5074
-5848
-8256

query I rowsort
SELECT col1 * 90 AS col0 FROM tab0
----
1890
7290
90

onlyif mysql # aggregate syntax: 
query I rowsort label-1096
SELECT DISTINCT + 2 * - COUNT( * ) FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-1096
SELECT DISTINCT + 2 * - COUNT ( * ) FROM tab2
----
-6

query I rowsort
SELECT ALL 97 * - - col0 AS col0 FROM tab1
----
4947
8245
8827

query I rowsort
SELECT 27 * + + 99 FROM tab1
----
2673
2673
2673

query I rowsort
SELECT DISTINCT + 89 * - + col2 * + col0 AS col1 FROM tab2 AS cor0
----
-227840
-387150
-94162

query I rowsort
SELECT ALL - col2 * + col0 - + 35 FROM tab1 AS cor0
----
-4931
-5050
-6223

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

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

query I rowsort
SELECT ALL - 18 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 09afafec657a5e9f082beb6a16ec85de

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + ( - - col0 ) col0 FROM tab1 AS cor0
----
-51
-85
-91

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1107
SELECT ALL + col1 DIV 60 * col0 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1107
SELECT ALL + col1 / 60 * col0 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + 2 + - col2 + - col2 FROM tab2 AS cor0
----
-114
-44
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-1109
SELECT + col1 * - + col1 + + col1 DIV - col1 AS col0 FROM tab0 AS cor0
----
-2
-442
-6562

skipif mysql # not compatible
query I rowsort label-1109
SELECT + col1 * - + col1 + + col1 / - col1 AS col0 FROM tab0 AS cor0
----
-2
-442
-6562

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

skipif mysql # not compatible
query I rowsort label-1110
SELECT + 24 + + - col0 + col2 * - col0 + ( - - col0 ) + - - CAST ( NULL AS INTEGER ) * - 94 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1111
SELECT DISTINCT ( - + col2 ) * - CAST( NULL AS SIGNED ) + + CAST( - - col2 AS SIGNED ) AS col1, CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1111
SELECT DISTINCT ( - + col2 ) * - CAST ( NULL AS INTEGER ) + + CAST ( - - col2 AS INTEGER ) AS col1, CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL

query II rowsort
SELECT - col0 + + col1 * col1, + col1 AS col2 FROM tab0
----
-96
1
354
21
6546
81

query I rowsort
SELECT + - col0 * + - 12 AS col0 FROM tab1 AS cor0
----
1020
1092
612

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1115
SELECT + CAST( + + 83 AS SIGNED ) FROM tab0 AS cor0
----
83
83
83

skipif mysql # not compatible
query I rowsort label-1115
SELECT + CAST ( + + 83 AS INTEGER ) FROM tab0 AS cor0
----
83
83
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col0, col1 AS col0 FROM tab1 WHERE NOT NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1117
SELECT DISTINCT + + SUM( ALL - ( + ( + 5 ) ) ) AS col2 FROM tab0 WHERE NULL < 90
----
NULL

skipif mysql # not compatible
query I rowsort label-1117
SELECT DISTINCT + + SUM ( ALL - ( + ( + 5 ) ) ) AS col2 FROM tab0 WHERE NULL < 90
----
NULL

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1121
SELECT DISTINCT + col1 * + col1 AS col2, CAST( NULL AS SIGNED ) - + col1 / + col1 FROM tab2 AS cor0 WHERE + ( + col1 ) + 42 IS NOT NULL
----
2601
NULL
4489
NULL
5929
NULL

skipif mysql # not compatible
query II rowsort label-1121
SELECT DISTINCT + col1 * + col1 AS col2, CAST ( NULL AS INTEGER ) - + col1 / + col1 FROM tab2 AS cor0 WHERE + ( + col1 ) + 42 IS NOT NULL
----
2601
NULL
4489
NULL
5929
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1123
SELECT MIN( + col0 ) * + + COUNT( * ) AS col1 FROM tab1 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-1123
SELECT MIN ( + col0 ) * + + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-1124
SELECT - - COUNT( DISTINCT + 18 ) col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1124
SELECT - - COUNT ( DISTINCT + 18 ) col0 FROM tab0 AS cor0
----
1

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

query I rowsort
SELECT - - col0 * - - col1 AS col0 FROM tab2 AS cor0
----
2346
4928
5025

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

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

query I rowsort
SELECT + + col0 FROM tab1 WHERE NOT NULL < + col2
----

query III rowsort
SELECT 76 * col2, col2 + + + ( + - col2 ) + col1 * 3 AS col2, 14 AS col1 FROM tab2
----
9 values hashing to 50277db4f52d5c41613782fdd244eea2

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

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

query I rowsort
SELECT + + ( + 82 ) FROM tab1 AS cor0
----
82
82
82

query I rowsort
SELECT DISTINCT + col1 * - 3 + col0 FROM tab2 AS cor0
----
-107
-126
-167

query I rowsort
SELECT DISTINCT 1 + + 21 AS col1 FROM tab0
----
22

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1135
SELECT - + col1 + - + 65 DIV + col1 + + CAST( + 52 AS SIGNED ) FROM tab1 AS cor0
----
34
34
4

skipif mysql # not compatible
query I rowsort label-1135
SELECT - + col1 + - + 65 / + col1 + + CAST ( + 52 AS INTEGER ) FROM tab1 AS cor0
----
34
34
4

query I rowsort
SELECT + col1 * - + ( - + col0 ) + - col2 FROM tab2 AS cor0
----
2323
4888
4967

onlyif mysql # DIV for integer division: 
query I rowsort label-1137
SELECT col0 DIV col2 + - col2 FROM tab0 AS cor0
----
-2
-47
-99

skipif mysql # not compatible
query I rowsort label-1137
SELECT col0 / col2 + - col2 FROM tab0 AS cor0
----
-2
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-1138
SELECT - ( MAX( ALL - col1 ) ) + + - COUNT( * ) FROM tab0 cor0
----
-2

skipif mysql # not compatible
query I rowsort label-1138
SELECT - ( MAX ( ALL - col1 ) ) + + - COUNT ( * ) FROM tab0 cor0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-1139
SELECT - MIN( ALL - col1 ) FROM tab1 cor0
----
47

skipif mysql # not compatible
query I rowsort label-1139
SELECT - MIN ( ALL - col1 ) FROM tab1 cor0
----
47

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

query I rowsort
SELECT ALL + 35 + 29 AS col0 FROM tab2
----
64
64
64

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1144
SELECT DISTINCT + COUNT( * ) + SUM( - col0 ) AS col0 FROM tab1
----
-224

skipif mysql # not compatible
query I rowsort label-1144
SELECT DISTINCT + COUNT ( * ) + SUM ( - col0 ) AS col0 FROM tab1
----
-224

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

query I rowsort
SELECT ALL - 8 + + + col2 FROM tab0
----
2
39
91

onlyif mysql # DIV for integer division: 
query I rowsort label-1147
SELECT + 52 DIV 15 col1 FROM tab2
----
3
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1147
SELECT + 52 / 15 col1 FROM tab2
----
3
3
3

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

skipif mysql # not compatible
query III rowsort label-1148
SELECT * FROM tab1 WHERE - CAST ( - col2 AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1149
SELECT DISTINCT - COUNT( * ) + - - 11 AS col1 FROM tab2
----
8

skipif mysql # not compatible
query I rowsort label-1149
SELECT DISTINCT - COUNT ( * ) + - - 11 AS col1 FROM tab2
----
8

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

query I rowsort
SELECT ALL + col2 + + ( - 70 ) FROM tab2 AS cor0
----
-12
-30
-47

query I rowsort
SELECT DISTINCT - - col0 * col2 * - - col0 + + col0 * - col1 + col0 FROM tab2 AS cor0
----
158976
321300
46368

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1153
SELECT ALL - - COUNT( * ) DIV - 97 AS col1 FROM tab1 AS cor0
----
0

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1154
SELECT DISTINCT MIN( col2 ) DIV - - 3 AS col0 FROM tab1
----
19

skipif mysql # not compatible
query I rowsort label-1154
SELECT DISTINCT MIN ( col2 ) / - - 3 AS col0 FROM tab1
----
19

query III rowsort
SELECT ALL * FROM tab2 WHERE - - 83 NOT BETWEEN + - col2 * + col0 * - 40 + + ( - ( col0 ) ) AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 17 FROM tab1 cor0 WHERE NULL <> NULL
----

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

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

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1160
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( + CAST( - col2 AS DECIMAL ) ) < - col2 + + - 53 + - - ( col0 ) * + 60 * - - 8
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-1160
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( + CAST ( - col2 AS REAL ) ) < - col2 + + - 53 + - - ( col0 ) * + 60 * - - 8
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 57 * + col1 FROM tab0
----
1197
4617
57

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1162
SELECT MAX ( DISTINCT + col1 ) col2 FROM tab2
----
77

query I rowsort
SELECT + col2 * + 43 AS col2 FROM tab1
----
2537
2924
4128

query I rowsort
SELECT ALL 55 AS col1 FROM tab0 cor0
----
55
55
55

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

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

query I rowsort
SELECT + col0 * + - col0 * col1 + + 56 FROM tab0 AS cor0
----
-158893
-18169
-9353

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

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

query I rowsort
SELECT ALL + - ( - col2 ) FROM tab2 WHERE - 76 IS NOT NULL
----
23
40
58

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

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

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL = 46
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1172
SELECT - COUNT( * ) + - + 89 FROM tab1 AS cor0
----
-92

skipif mysql # not compatible
query I rowsort label-1172
SELECT - COUNT ( * ) + - + 89 FROM tab1 AS cor0
----
-92

query I rowsort
SELECT - 37 + col0 * - - 27 + - - 27 FROM tab0 AS cor0
----
2339
2609
395

onlyif mysql # DIV for integer division: 
query II rowsort label-1174
SELECT + col1 + col1 DIV - col1 AS col1, + 21 FROM tab0
----
0
21
20
21
80
21

skipif mysql # not compatible
query II rowsort label-1174
SELECT + col1 + col1 / - col1 AS col1, + 21 FROM tab0
----
0
21
20
21
80
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1175
SELECT + ( CAST( - col1 AS SIGNED ) ) + - + col0 AS col2 FROM tab1
----
-138
-65
-90

skipif mysql # not compatible
query I rowsort label-1175
SELECT + ( CAST ( - col1 AS INTEGER ) ) + - + col0 AS col2 FROM tab1
----
-138
-65
-90

query I rowsort
SELECT DISTINCT 29 + + col2 FROM tab0
----
128
39
76

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + + + col2 col2 FROM tab1
----
0

query I rowsort
SELECT + 75 + + - col2 AS col2 FROM tab0
----
-24
28
65

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1181
SELECT DISTINCT 81 - - COUNT( * ) FROM tab2
----
84

skipif mysql # not compatible
query I rowsort label-1181
SELECT DISTINCT 81 - - COUNT ( * ) FROM tab2
----
84

query I rowsort
SELECT + col2 * col1 * - + 15 AS col2 FROM tab0 AS cor0
----
-1485
-3150
-57105

onlyif mysql # aggregate syntax: 
query I rowsort label-1183
SELECT DISTINCT + COUNT( * ) * - 85 FROM tab0 AS cor0
----
-255

skipif mysql # not compatible
query I rowsort label-1183
SELECT DISTINCT + COUNT ( * ) * - 85 FROM tab0 AS cor0
----
-255

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + ( + 95 ) * + col0 col1 FROM tab0 AS cor0
----
-1425
-8265
-9215

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1186
SELECT ALL 2 DIV + COUNT( ALL + col0 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1186
SELECT ALL 2 / + COUNT ( ALL + col0 ) FROM tab0
----
0

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

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

query II rowsort
SELECT col2, + 39 FROM tab0 AS cor0
----
10
39
47
39
99
39

onlyif mysql # DIV for integer division: 
query I rowsort label-1190
SELECT DISTINCT - 14 DIV - 65 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1190
SELECT DISTINCT - 14 / - 65 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1191
SELECT ALL + - MIN( - col0 ) * 66 FROM tab1 AS cor0
----
6006

skipif mysql # not compatible
query I rowsort label-1191
SELECT ALL + - MIN ( - col0 ) * 66 FROM tab1 AS cor0
----
6006

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

skipif mysql # not compatible
query I rowsort label-1192
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT CAST ( + - col2 AS INTEGER ) NOT IN ( + col1, + col1 )
----

query II rowsort
SELECT + 38 + - - 47 AS col1, - col0 AS col0 FROM tab0 AS cor0
----
85
-15
85
-87
85
-97

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1195
SELECT MAX( 84 ) AS col0 FROM tab1
----
84

skipif mysql # not compatible
query I rowsort label-1195
SELECT MAX ( 84 ) AS col0 FROM tab1
----
84

query II rowsort
SELECT ALL col2 + col2, 64 AS col1 FROM tab2
----
116
64
46
64
80
64

query II rowsort
SELECT ALL ( + col1 ), - 4 FROM tab0
----
1
-4
21
-4
81
-4

query I rowsort
SELECT DISTINCT + 40 * + 15 * + 99 * col2 FROM tab2
----
1366200
2376000
3445200

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT 92 / + col1 BETWEEN - col0 AND - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1200
SELECT - MAX( col0 ) DIV + 23 + + - COUNT( DISTINCT - col1 ) col1 FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1200
SELECT - MAX ( col0 ) / + 23 + + - COUNT ( DISTINCT - col1 ) col1 FROM tab2 AS cor0
----
-6

query I rowsort
SELECT ALL + 96 + + 69 FROM tab0 AS cor0
----
165
165
165

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL IS NOT NULL AND NOT NULL = NULL
----

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

query I rowsort
SELECT + 53 + + + col1 FROM tab0
----
134
54
74

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1206
SELECT ALL - - 92 * COUNT( * ) AS col2 FROM tab2 AS cor0
----
276

skipif mysql # not compatible
query I rowsort label-1206
SELECT ALL - - 92 * COUNT ( * ) AS col2 FROM tab2 AS cor0
----
276

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT IN ( + col1, + col2 * - - 35 + 95 )
----

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1210
SELECT ALL + COUNT ( * ) * + 6 col0 FROM tab2 AS cor0
----
18

query I rowsort
SELECT ALL + 61 + - - 38 AS col0 FROM tab1 AS cor0
----
99
99
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1212
SELECT 31 DIV + + COUNT( * ) AS col1 FROM tab2
----
10

skipif mysql # not compatible
query I rowsort label-1212
SELECT 31 / + + COUNT ( * ) AS col1 FROM tab2
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-1213
SELECT DISTINCT + SUM( DISTINCT + 15 ), COUNT( * ) col0 FROM tab0
----
15
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1213
SELECT DISTINCT + SUM ( DISTINCT + 15 ), COUNT ( * ) col0 FROM tab0
----
15
3

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1215
SELECT DISTINCT + CAST( - ( - 7 ) AS SIGNED ) * - col0 * + CAST( NULL AS SIGNED ) AS col1, + 82 + col2 FROM tab0 AS cor0
----
NULL
129
NULL
181
NULL
92

skipif mysql # not compatible
query II rowsort label-1215
SELECT DISTINCT + CAST ( - ( - 7 ) AS INTEGER ) * - col0 * + CAST ( NULL AS INTEGER ) AS col1, + 82 + col2 FROM tab0 AS cor0
----
NULL
129
NULL
181
NULL
92

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1217
SELECT DISTINCT - col1 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN CAST( NULL AS DECIMAL ) AND + col1
----

skipif mysql # not compatible
query I rowsort label-1217
SELECT DISTINCT - col1 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN CAST ( NULL AS REAL ) AND + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1218
SELECT ALL + - 4 * + 36 + + COUNT( * ) * - COUNT( * ) FROM tab0 cor0
----
-153

skipif mysql # not compatible
query I rowsort label-1218
SELECT ALL + - 4 * + 36 + + COUNT ( * ) * - COUNT ( * ) FROM tab0 cor0
----
-153

query I rowsort
SELECT ALL col2 * col2 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
100
2209
9801

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1221
SELECT ( + ( - CAST( NULL AS SIGNED ) ) ) / - - 29 + - + col2 - col2 AS col1 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1221
SELECT ( + ( - CAST ( NULL AS INTEGER ) ) ) / - - 29 + - + col2 - col2 AS col1 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

query II rowsort
SELECT col1 AS col0, - col1 * col2 FROM tab1 AS cor0
----
14
-1344
47
-3196
5
-295

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1225
SELECT DISTINCT col0 * - CAST( - col0 AS SIGNED ) * col0 FROM tab1
----
132651
614125
753571

skipif mysql # not compatible
query I rowsort label-1225
SELECT DISTINCT col0 * - CAST ( - col0 AS INTEGER ) * col0 FROM tab1
----
132651
614125
753571

onlyif mysql # DIV for integer division: 
query I rowsort label-1226
SELECT col2 + - 93 DIV 17 FROM tab0
----
42
5
94

skipif mysql # not compatible
query I rowsort label-1226
SELECT col2 + - 93 / 17 FROM tab0
----
42
5
94

query I rowsort
SELECT - 66 * + col1 * - - 20 + + + col1 + - 84 * + 16 * - col0 FROM tab1
----
107645
50078
60311

query II rowsort
SELECT DISTINCT - 30 * + col0, 4 + - + col2 AS col2 FROM tab1
----
-1530
-92
-2550
-55
-2730
-64

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

query II rowsort
SELECT DISTINCT col1 + - 91, col2 FROM tab0 AS cor0 WHERE 92 + + 35 * + + col0 IS NULL
----

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

skipif mysql # not compatible
query I rowsort label-1231
SELECT DISTINCT + col2 / - + col2 AS col0 FROM tab0 AS cor0
----
-1

query II rowsort
SELECT DISTINCT col2 * - - 11 + ( + - col1 ) AS col2, + ( + - col2 ) FROM tab2 cor0
----
202
-23
363
-40
571
-58

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1234
SELECT DISTINCT COUNT( * ) DIV - COUNT( * ) FROM tab1 cor0 CROSS JOIN tab2 cor1 WHERE NULL IS NULL
----
-1

skipif mysql # not compatible
query I rowsort label-1234
SELECT DISTINCT COUNT ( * ) / - COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab2 cor1 WHERE NULL IS NULL
----
-1

query I rowsort
SELECT DISTINCT 37 - + + col2 * + col0 FROM tab0 cor0
----
-668
-833
-9566

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1237
SELECT + col2 DIV - col2 + + 82 + - col1 AS col2 FROM tab1 cor0
----
34
67
76

skipif mysql # not compatible
query I rowsort label-1237
SELECT + col2 / - col2 + + 82 + - col1 AS col2 FROM tab1 cor0
----
34
67
76

query I rowsort
SELECT - - col2 * + - col0 - - 18 + - 2 FROM tab1 AS cor0
----
-4880
-4999
-6172

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

query II rowsort
SELECT - col0 AS col0, + col1 + 1 * + 59 FROM tab0
----
-15
140
-87
80
-97
60

query III rowsort
SELECT * FROM tab2 WHERE NOT 45 / 12 + + ( col2 ) * - col0 * - col1 > NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1242
SELECT ALL - 41 AS col1, - SUM( DISTINCT + col1 ) * + 5 FROM tab0
----
-41
-515

skipif mysql # not compatible
query II rowsort label-1242
SELECT ALL - 41 AS col1, - SUM ( DISTINCT + col1 ) * + 5 FROM tab0
----
-41
-515

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1245
SELECT COUNT( * ) * - - 37 - - COUNT( * ) FROM tab0 cor0
----
114

skipif mysql # not compatible
query I rowsort label-1245
SELECT COUNT ( * ) * - - 37 - - COUNT ( * ) FROM tab0 cor0
----
114

query I rowsort
SELECT ALL + col2 * - - col0 FROM tab0 WHERE NOT + + 82 < + + 7
----
705
870
9603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1247
SELECT DISTINCT + ( CAST( NULL AS SIGNED ) ) / + - col0 col1 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1247
SELECT DISTINCT + ( CAST ( NULL AS INTEGER ) ) / + - col0 col1 FROM tab1
----
NULL

query II rowsort
SELECT DISTINCT + 79 * - 2, col1 FROM tab2 AS cor0
----
-158
51
-158
67
-158
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1249
SELECT ALL - + 33 * COUNT( * ) * - MIN( ALL + - col1 ) + + + COUNT( * ) FROM tab2 AS cor0
----
-7620

skipif mysql # not compatible
query I rowsort label-1249
SELECT ALL - + 33 * COUNT ( * ) * - MIN ( ALL + - col1 ) + + + COUNT ( * ) FROM tab2 AS cor0
----
-7620

query I rowsort
SELECT DISTINCT - col0 FROM tab2 cor0 WHERE - col1 + + 65 IS NOT NULL
----
-46
-64
-75

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) >= - 97 * + 89 / + col0
----

query I rowsort
SELECT ALL + col2 + - ( - + col0 ) FROM tab1
----
144
147
159

query I rowsort
SELECT DISTINCT 22 + + col2 * - col0 AS col0 FROM tab1
----
-4874
-4993
-6166

query III rowsort
SELECT * FROM tab1 WHERE + 85 BETWEEN - - col1 + - + col2 AND 33
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1255
SELECT * FROM tab1 WHERE + - col1 * col1 + + + col1 + 83 > + - col1 * - ( + - 82 ) * - CAST( NULL AS SIGNED ) - - col1
----

skipif mysql # not compatible
query III rowsort label-1255
SELECT * FROM tab1 WHERE + - col1 * col1 + + + col1 + 83 > + - col1 * - ( + - 82 ) * - CAST ( NULL AS INTEGER ) - - col1
----

query I rowsort
SELECT 99 * + 26 FROM tab1
----
2574
2574
2574

query III rowsort
SELECT * FROM tab2 WHERE + 83 BETWEEN - col2 AND + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1258
SELECT DISTINCT ( + + 19 ) + - col2 DIV col0 AS col0 FROM tab2
----
19

skipif mysql # not compatible
query I rowsort label-1258
SELECT DISTINCT ( + + 19 ) + - col2 / col0 AS col0 FROM tab2
----
19

query I rowsort
SELECT 40 * 20 FROM tab1
----
800
800
800

query I rowsort
SELECT + col0 FROM tab1 AS cor0 WHERE - col0 * - - col1 * - col0 > + + 3 * - col0
----
51
85
91

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE - 61 IS NOT NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

onlyif mysql # aggregate syntax: 
query I rowsort label-1262
SELECT DISTINCT - 19 * - COUNT( * ) + + COUNT( * ) AS col2 FROM tab2 cor0 CROSS JOIN tab2 cor1 WHERE NULL IS NULL OR NULL IS NULL
----
180

skipif mysql # not compatible
query I rowsort label-1262
SELECT DISTINCT - 19 * - COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab2 cor0 CROSS JOIN tab2 cor1 WHERE NULL IS NULL OR NULL IS NULL
----
180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + col1 col2 FROM tab0
----
-98
11
34

query II rowsort
SELECT ALL + 84 * + col2 * + - col0 - + col1 * col1 * + + col0 AS col2, col2 FROM tab1
----
-421260
96
-423385
59
-720811
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 - - - col1 + - + 63 * - col0 * + col1 col0 FROM tab1 AS cor0
----
26775
269451
44982

query II rowsort
SELECT + 47 AS col1, + 75 * col1 AS col1 FROM tab0 AS cor0
----
47
1575
47
6075
47
75

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1269
SELECT DISTINCT + col1 * + 97 AS col1 FROM tab1 AS cor0 WHERE NOT col2 BETWEEN NULL AND - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-1269
SELECT DISTINCT + col1 * + 97 AS col1 FROM tab1 AS cor0 WHERE NOT col2 BETWEEN NULL AND - CAST ( NULL AS INTEGER )
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1271
SELECT - 32 DIV - ( + + col0 ) FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1271
SELECT - 32 / - ( + + col0 ) FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1272
SELECT col1 DIV col2 * + - col0 AS col1 FROM tab2
----
-64
-75
-92

skipif mysql # not compatible
query I rowsort label-1272
SELECT col1 / col2 * + - col0 AS col1 FROM tab2
----
-64
-75
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1273
SELECT DISTINCT + CAST( - - MIN( - + 2 ) AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1273
SELECT DISTINCT + CAST ( - - MIN ( - + 2 ) AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

query I rowsort
SELECT ALL - - 40 FROM tab1 cor0
----
40
40
40

query I rowsort
SELECT + col1 FROM tab0 AS cor0 WHERE NOT 64 > 34
----

query I rowsort
SELECT - col0 * + + 4 AS col1 FROM tab0
----
-348
-388
-60

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

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

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1280
SELECT col1 + - - 4 / col0 * - CAST( NULL AS DECIMAL ) * - col1 + col1 * - 44 AS col2, - col0 * col1 * + + col2 FROM tab0
----
NULL
-18270
NULL
-57105
NULL
-9603

skipif mysql # not compatible
query II rowsort label-1280
SELECT col1 + - - 4 / col0 * - CAST ( NULL AS REAL ) * - col1 + col1 * - 44 AS col2, - col0 * col1 * + + col2 FROM tab0
----
NULL
-18270
NULL
-57105
NULL
-9603

query I rowsort
SELECT DISTINCT + col2 + + 6 FROM tab0
----
105
16
53

query I rowsort
SELECT - col2 + 89 FROM tab0
----
-10
42
79

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

query I rowsort
SELECT - col1 + + 32 * col2 + 40 FROM tab0
----
1463
3207
339

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

query I rowsort
SELECT DISTINCT - col1 + ( + 37 ) FROM tab1
----
-10
23
32

onlyif mysql # aggregate syntax: 
query I rowsort label-1287
SELECT ALL + ( - SUM( - col2 ) ) + + SUM( ALL + - 57 ) AS col2 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-1287
SELECT ALL + ( - SUM ( - col2 ) ) + + SUM ( ALL + - 57 ) AS col2 FROM tab0
----
-15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 91 + - col0 * + col1 * + col2 * + col2 col0 FROM tab0
----
-182609
-2683844
-950606

onlyif mysql # aggregate syntax: 
query I rowsort label-1289
SELECT DISTINCT - + 8 + - - 86 * + ( ( + - SUM( DISTINCT col1 ) ) ) FROM tab2 AS cor0
----
-16778

skipif mysql # not compatible
query I rowsort label-1289
SELECT DISTINCT - + 8 + - - 86 * + ( ( + - SUM ( DISTINCT col1 ) ) ) FROM tab2 AS cor0
----
-16778

onlyif mysql # DIV for integer division: 
query I rowsort label-1290
SELECT + - 19 DIV - 40 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1290
SELECT + - 19 / - 40 AS col0 FROM tab0 AS cor0
----
0
0
0

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL >= ( NULL )
----

query I rowsort
SELECT + 21 * + 92 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 099f4ea4f9dfd9b1c7cd67bcae006d21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1293
SELECT CAST( - 35 AS SIGNED ) AS col1 FROM tab2, tab1 cor0
----
9 values hashing to c12e8bdd687c9040a5600dab3b6adf5b

skipif mysql # not compatible
query I rowsort label-1293
SELECT CAST ( - 35 AS INTEGER ) AS col1 FROM tab2, tab1 cor0
----
9 values hashing to c12e8bdd687c9040a5600dab3b6adf5b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 98 * + + 92 col1 FROM tab1, tab2 cor0
----
9 values hashing to 57a23d8cc7de4316799ac769c815ad12

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

query I rowsort
SELECT 23 * 72 FROM tab0 cor0
----
1656
1656
1656

query I rowsort
SELECT 64 AS col2 FROM tab2 cor0 WHERE NOT ( NULL ) < - col2
----

query I rowsort
SELECT col0 AS col0 FROM tab2 AS cor0 WHERE NOT + 25 > NULL
----

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

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

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

query I rowsort
SELECT + 80 AS col0 FROM tab2 WHERE NOT - 73 - - col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 87 col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
87

query I rowsort
SELECT ALL - col0 * - - col0 + col2 AS col0 FROM tab0 AS cor0
----
-178
-7559
-9310

query II rowsort
SELECT DISTINCT col2 AS col2, 41 FROM tab2 AS cor0
----
23
41
40
41
58
41

query I rowsort
SELECT ALL - 48 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-48
-48
-48

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

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

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

query II rowsort
SELECT + - col1 + - col2 AS col1, 85 FROM tab2 AS cor0
----
-117
85
-125
85
-74
85

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1312
SELECT * FROM tab0 AS cor0 WHERE - CAST( NULL AS SIGNED ) >= NULL
----

skipif mysql # not compatible
query III rowsort label-1312
SELECT * FROM tab0 AS cor0 WHERE - CAST ( NULL AS INTEGER ) >= NULL
----

query I rowsort
SELECT - ( 63 ) AS col2 FROM tab1
----
-63
-63
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-1314
SELECT col1 - - - ( - col1 ) DIV 83 FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-1314
SELECT col1 - - - ( - col1 ) / 83 FROM tab0
----
1
21
81

query I rowsort
SELECT + 94 FROM tab2 AS cor0 WHERE NULL >= + col2 + + + 33
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1316
SELECT + MIN( DISTINCT - 36 ) - - 13 AS col2 FROM tab1 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-1316
SELECT + MIN ( DISTINCT - 36 ) - - 13 AS col2 FROM tab1 AS cor0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-1317
SELECT - SUM( - + col1 ) - + COUNT( ALL + 96 ) * 69 FROM tab2 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-1317
SELECT - SUM ( - + col1 ) - + COUNT ( ALL + 96 ) * 69 FROM tab2 AS cor0
----
-12

query I rowsort
SELECT ALL col0 * - - col0 AS col0 FROM tab1 AS cor0
----
2601
7225
8281

query I rowsort
SELECT ALL + 21 - col1 FROM tab2 AS cor0
----
-30
-46
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-1320
SELECT - 4 + + col1 DIV - col2 AS col2 FROM tab1 AS cor0
----
-4
-4
-4

skipif mysql # not compatible
query I rowsort label-1320
SELECT - 4 + + col1 / - col2 AS col2 FROM tab1 AS cor0
----
-4
-4
-4

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

query I rowsort
SELECT DISTINCT 43 FROM tab0 WHERE NOT col1 <= NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1324
SELECT DISTINCT * FROM tab0 WHERE NOT ( - col0 ) BETWEEN - 7 * CAST( - col1 * col2 AS SIGNED ) AND col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1324
SELECT DISTINCT * FROM tab0 WHERE NOT ( - col0 ) BETWEEN - 7 * CAST ( - col1 * col2 AS INTEGER ) AND col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 87 + col1 FROM tab2
----
-10
-20
-36

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 77 + - 60 col1 FROM tab1
----
17
17
17

query I rowsort
SELECT DISTINCT - col0 FROM tab1 WHERE NOT NULL NOT IN ( - col0 )
----

query I rowsort
SELECT + ( - 35 ) + col2 * col2 FROM tab1
----
3446
4589
9181

onlyif mysql # aggregate syntax: 
query I rowsort label-1330
SELECT + COUNT( * ) FROM tab0 WHERE NOT ( col2 * col0 ) >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-1330
SELECT + COUNT ( * ) FROM tab0 WHERE NOT ( col2 * col0 ) >= NULL
----
0

query I rowsort
SELECT DISTINCT + ( + col2 ) FROM tab1 WHERE + 39 <= ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col1 < - 31
----
91
47
68

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 10 + - col2 <= NULL
----

query I rowsort
SELECT col2 + + 71 FROM tab1 WHERE col2 NOT BETWEEN ( NULL ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1335
SELECT DISTINCT COUNT( * ) - - MIN( col2 ) FROM tab2 WHERE col1 IS NOT NULL
----
26

skipif mysql # not compatible
query I rowsort label-1335
SELECT DISTINCT COUNT ( * ) - - MIN ( col2 ) FROM tab2 WHERE col1 IS NOT NULL
----
26

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN NULL AND 67
----

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

query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE + col1 * - col1 NOT IN ( col2 * + col1 )
----
46
64
75

query I rowsort
SELECT col1 * col2 + col1 * 5 AS col0 FROM tab0
----
104
315
4212

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1341
SELECT - CAST( CAST( col2 AS SIGNED ) AS SIGNED ) col1 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1341
SELECT - CAST ( CAST ( col2 AS INTEGER ) AS INTEGER ) col1 FROM tab2
----
-23
-40
-58

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 4 IS NOT NULL
----

query I rowsort
SELECT ALL - ( 26 ) AS col1 FROM tab1
----
-26
-26
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-1344
SELECT + SUM( 60 ) + + 89 * - MAX( + 72 ) FROM tab0
----
-6228

skipif mysql # not compatible
query I rowsort label-1344
SELECT + SUM ( 60 ) + + 89 * - MAX ( + 72 ) FROM tab0
----
-6228

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1347
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 * col2 + - 60 IN ( - CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-1347
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 * col2 + - 60 IN ( - CAST ( NULL AS REAL ) )
----

query I rowsort
SELECT DISTINCT + 17 * col0 + - 37 / 33 AS col2 FROM tab2 AS cor0 WHERE NULL >= + 69
----

query I rowsort
SELECT - 53 * - col1 + - col1 * - 29 AS col0 FROM tab2 AS cor0
----
4182
5494
6314

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1351
SELECT ALL 26 + ( - col0 ) DIV - col2 AS col1 FROM tab2
----
27
27
28

skipif mysql # not compatible
query I rowsort label-1351
SELECT ALL 26 + ( - col0 ) / - col2 AS col1 FROM tab2
----
27
27
28

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 WHERE 98 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 92 + - col2 col1 FROM tab2
----
34
52
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1354
SELECT DISTINCT col1 AS col0 FROM tab0 WHERE NOT + CAST( NULL AS SIGNED ) NOT IN ( + col1 / col1 )
----

skipif mysql # not compatible
query I rowsort label-1354
SELECT DISTINCT col1 AS col0 FROM tab0 WHERE NOT + CAST ( NULL AS INTEGER ) NOT IN ( + col1 / col1 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1356
SELECT DISTINCT - COUNT( * ) * - 23 AS col0 FROM tab2 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-1356
SELECT DISTINCT - COUNT ( * ) * - 23 AS col0 FROM tab2 AS cor0
----
69

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 NOT IN ( - 6 / col0 )
----

query I rowsort
SELECT 65 FROM tab1 AS cor0 WHERE ( 32 ) > ( col1 )
----
65
65

query I rowsort
SELECT - - 98 - - col1 FROM tab2 cor0
----
149
165
175

query I rowsort
SELECT ALL 55 * 31 FROM tab1 AS cor0 WHERE NOT ( 31 / col1 ) IS NULL
----
1705
1705
1705

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

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

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

query I rowsort
SELECT - + col2 + col0 * col1 AS col2 FROM tab1 AS cor0
----
366
4209
618

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT - 71 NOT BETWEEN ( - col0 * col2 ) AND ( col0 - - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col2 * 23 + 1 AS col0 FROM tab2 WHERE NULL NOT IN ( 27 + col1 )
----

query I rowsort
SELECT col1 + 7 FROM tab2
----
58
74
84

onlyif mysql # aggregate syntax: 
query I rowsort label-1367
SELECT ( MIN( col0 ) ) + ( 68 ) AS col1 FROM tab0
----
83

skipif mysql # not compatible
query I rowsort label-1367
SELECT ( MIN ( col0 ) ) + ( 68 ) AS col1 FROM tab0
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1368
SELECT col1 + 16 + + 93 / CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1368
SELECT col1 + 16 + + 93 / CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1370
SELECT ( col2 ) * - 88 + - col2 DIV + col0 AS col0 FROM tab2
----
-2024
-3520
-5104

skipif mysql # not compatible
query I rowsort label-1370
SELECT ( col2 ) * - 88 + - col2 / + col0 AS col0 FROM tab2
----
-2024
-3520
-5104

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

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

query III rowsort
SELECT * FROM tab1 WHERE - 29 = + 34
----

query I rowsort
SELECT 51 + col2 FROM tab2 cor0 WHERE ( NULL ) NOT IN ( col0 )
----

query I rowsort
SELECT DISTINCT + + 65 - + col1 AS col0 FROM tab0 AS cor0
----
-16
44
64

query I rowsort
SELECT DISTINCT - col1 FROM tab2 AS cor0 WHERE NOT ( 39 ) NOT BETWEEN + col1 AND + col2
----

query I rowsort
SELECT - - 50 * + col2 + + col1 FROM tab1 AS cor0
----
2955
3447
4814

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

query I rowsort
SELECT DISTINCT - 41 FROM tab2 WHERE NOT + + col2 < + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1379
SELECT + MIN( - col1 ) * + - 10 AS col1 FROM tab1
----
470

skipif mysql # not compatible
query I rowsort label-1379
SELECT + MIN ( - col1 ) * + - 10 AS col1 FROM tab1
----
470

query I rowsort
SELECT - 39 * - 80 AS col2 FROM tab1 AS cor0
----
3120
3120
3120

query I rowsort
SELECT 19 AS col0 FROM tab1 AS cor0 WHERE NOT col2 NOT IN ( col1 - + col2 )
----

query II rowsort
SELECT - 95 AS col0, + col2 AS col2 FROM tab1 AS cor0
----
-95
59
-95
68
-95
96

query I rowsort
SELECT DISTINCT 83 FROM tab0 AS cor0 WHERE col2 IN ( - 43 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1384
SELECT ALL - + CAST( NULL AS SIGNED ), + col0 + 54 col0 FROM tab2 AS cor0
----
NULL
100
NULL
118
NULL
129

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1384
SELECT ALL - + CAST ( NULL AS INTEGER ), + col0 + 54 col0 FROM tab2 AS cor0
----
NULL
100
NULL
118
NULL
129

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1387
SELECT - ( MIN( DISTINCT - 82 ) ) FROM tab2
----
82

skipif mysql # not compatible
query I rowsort label-1387
SELECT - ( MIN ( DISTINCT - 82 ) ) FROM tab2
----
82

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1390
SELECT - COUNT( * ) * - ( MIN( DISTINCT col2 ) ) FROM tab0 WHERE NOT - 23 BETWEEN NULL AND col1 * - col2
----
30

skipif mysql # not compatible
query I rowsort label-1390
SELECT - COUNT ( * ) * - ( MIN ( DISTINCT col2 ) ) FROM tab0 WHERE NOT - 23 BETWEEN NULL AND col1 * - col2
----
30

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

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab2 WHERE NOT ( col1 + - - col0 * 93 ) <> 33
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1393
SELECT + COUNT( * ) FROM tab0 WHERE NOT ( col2 * CAST( NULL AS SIGNED ) + col1 / + col2 ) > - col2
----
0

skipif mysql # not compatible
query I rowsort label-1393
SELECT + COUNT ( * ) FROM tab0 WHERE NOT ( col2 * CAST ( NULL AS INTEGER ) + col1 / + col2 ) > - col2
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-1394
SELECT + 23 DIV - col1 AS col0, + 30 * col0 AS col0 FROM tab0
----
-1
2610
-23
2910
0
450

skipif mysql # not compatible
query II rowsort label-1394
SELECT + 23 / - col1 AS col0, + 30 * col0 AS col0 FROM tab0
----
-1
2610
-23
2910
0
450

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1395
SELECT - CAST( + col1 AS SIGNED ) DIV CAST( col0 AS SIGNED ) FROM tab2 WHERE NOT - - col0 < - + 15
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-1395
SELECT - CAST ( + col1 AS INTEGER ) / CAST ( col0 AS INTEGER ) FROM tab2 WHERE NOT - - col0 < - + 15
----
-1
-1
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1396
SELECT ALL COUNT( * ) DIV - COUNT( * ), + 5 AS col1 FROM tab0
----
-1
5

skipif mysql # not compatible
query II rowsort label-1396
SELECT ALL COUNT ( * ) / - COUNT ( * ), + 5 AS col1 FROM tab0
----
-1
5

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

query I rowsort
SELECT - col2 * 99 - - 41 FROM tab2 AS cor0
----
-2236
-3919
-5701

query I rowsort
SELECT DISTINCT + col2 + + 73 AS col2 FROM tab0 AS cor0
----
120
172
83

onlyif mysql # aggregate syntax: 
query I rowsort label-1400
SELECT - + COUNT( DISTINCT 92 ) AS col2 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1400
SELECT - + COUNT ( DISTINCT 92 ) AS col2 FROM tab1 AS cor0
----
-1

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

query I rowsort
SELECT DISTINCT col0 * - col0 + + - ( col2 ) AS col1 FROM tab1
----
-2697
-7284
-8349

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

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

query I rowsort
SELECT + 4 + col2 AS col1 FROM tab1 cor0
----
100
63
72

onlyif mysql # DIV for integer division: 
query I rowsort label-1405
SELECT - + col2 + - + col1 DIV + - col2 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-1405
SELECT - + col2 + - + col1 / + - col2 FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT 99 * col2 FROM tab1 AS cor0 WHERE - col0 * - 1 * col2 IS NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1408
SELECT SUM( ALL + col1 ) * + 46 AS col2 FROM tab2 AS cor0
----
8970

skipif mysql # not compatible
query I rowsort label-1408
SELECT SUM ( ALL + col1 ) * + 46 AS col2 FROM tab2 AS cor0
----
8970

query I rowsort
SELECT - col1 * - 97 AS col0 FROM tab2 cor0
----
4947
6499
7469

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1410
SELECT ALL ( + 97 ) FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) BETWEEN - 86 AND col0 - + 27
----

skipif mysql # not compatible
query I rowsort label-1410
SELECT ALL ( + 97 ) FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) BETWEEN - 86 AND col0 - + 27
----

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

skipif mysql # not compatible
query II rowsort label-1411
SELECT DISTINCT + col0, CAST ( NULL AS REAL ) FROM tab0
----
15
NULL
87
NULL
97
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1412
SELECT DISTINCT col2, CAST( NULL AS SIGNED ) + + - col1 / col2 FROM tab0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-1412
SELECT DISTINCT col2, CAST ( NULL AS INTEGER ) + + - col1 / col2 FROM tab0
----
10
NULL
47
NULL
99
NULL

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

query I rowsort
SELECT col0 - - col1 * col1 FROM tab0
----
528
6576
98

query I rowsort
SELECT + col1 - - 62 * - + col2 AS col1 FROM tab0
----
-2833
-599
-6137

query II rowsort
SELECT - + col2 * - 51 AS col0, col2 + - col0 FROM tab1 AS cor0
----
3009
-26
3468
-23
4896
45

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1417
SELECT * FROM tab0 AS cor0 WHERE - 27 NOT BETWEEN - col1 * 22 AND - - CAST( NULL AS SIGNED ) * 83 OR NOT col1 IS NOT NULL
----
97
1
99

skipif mysql # not compatible
query III rowsort label-1417
SELECT * FROM tab0 AS cor0 WHERE - 27 NOT BETWEEN - col1 * 22 AND - - CAST ( NULL AS INTEGER ) * 83 OR NOT col1 IS NOT NULL
----
97
1
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( col2 ) * - + col2 - col1 col2 FROM tab1 AS cor0
----
-3486
-4671
-9230

onlyif mysql # aggregate syntax: 
query I rowsort label-1419
SELECT + COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN - 92 * 93 * - + col1 + + + col2 AND + 80 + col1
----
0

skipif mysql # not compatible
query I rowsort label-1419
SELECT + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN - 92 * 93 * - + col1 + + + col2 AND + 80 + col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1420
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 - + - CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-1420
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 - + - CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1423
SELECT + 62 * - - SUM( + + col1 ) FROM tab2
----
12090

skipif mysql # not compatible
query I rowsort label-1423
SELECT + 62 * - - SUM ( + + col1 ) FROM tab2
----
12090

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 77 * + ( 49 ) col2 FROM tab2
----
3773
3773
3773

query I rowsort
SELECT DISTINCT ( col0 ) + + col2 AS col2 FROM tab1 WHERE NOT - - col2 + + + col0 <> col1 * + - 43 + col0 * col2
----

query I rowsort
SELECT - + 46 * col2 * col2 FROM tab2 AS cor0 WHERE NOT ( col2 * + - 34 NOT BETWEEN NULL AND NULL )
----

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

query I rowsort
SELECT DISTINCT + - col1 * - 90 AS col0 FROM tab2 AS cor0
----
4590
6030
6930

onlyif mysql # aggregate syntax: 
query I rowsort label-1429
SELECT DISTINCT - MIN( - 26 ) col0 FROM tab0 AS cor0 WHERE NULL <> ( NULL )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1429
SELECT DISTINCT - MIN ( - 26 ) col0 FROM tab0 AS cor0 WHERE NULL <> ( NULL )
----
NULL

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT - + col2 * + 24 / - col2 <= - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 * - 26 * - + 29 FROM tab0
----
11310
65598
73138

onlyif mysql # DIV for integer division: 
query I rowsort label-1434
SELECT ALL + col1 DIV - - col2 FROM tab2
----
1
1
2

skipif mysql # not compatible
query I rowsort label-1434
SELECT ALL + col1 / - - col2 FROM tab2
----
1
1
2

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

query I rowsort
SELECT DISTINCT 14 * 22 FROM tab2
----
308

onlyif mysql # aggregate syntax: 
query I rowsort label-1437
SELECT ALL + COUNT( * ) FROM tab1 WHERE NOT ( - + 23 ) = ( 22 )
----
3

skipif mysql # not compatible
query I rowsort label-1437
SELECT ALL + COUNT ( * ) FROM tab1 WHERE NOT ( - + 23 ) = ( 22 )
----
3

query I rowsort
SELECT col1 + + - 41 AS col0 FROM tab2
----
10
26
36

query III rowsort
SELECT * FROM tab0 WHERE ( - - col2 * + - 14 * + ( - col1 ) + - + col1 + + col1 ) IS NULL
----

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1442
SELECT DISTINCT - CAST( + 12 AS SIGNED ) + + col0 AS col2, + col0 + + + col2 col2 FROM tab1 AS cor0
----
39
147
73
144
79
159

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1442
SELECT DISTINCT - CAST ( + 12 AS INTEGER ) + + col0 AS col2, + col0 + + + col2 col2 FROM tab1 AS cor0
----
39
147
73
144
79
159

query IIIIII rowsort
SELECT * FROM tab1 cor0 INNER JOIN tab0 AS cor1 ON ( NULL ) IS NOT NULL
----

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

skipif mysql # not compatible
query III rowsort label-1444
SELECT ALL * FROM tab2 WHERE ( NOT NULL NOT IN ( col2 * CAST ( NULL AS INTEGER ) ) )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 >= - - col2
----
51
14
96

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1447
SELECT ALL col1 AS col0 FROM tab1 AS cor0 WHERE NOT col0 * + + col0 IN ( - col0 - + CAST( col1 AS SIGNED ) * - 19 )
----
14
47
5

skipif mysql # not compatible
query I rowsort label-1447
SELECT ALL col1 AS col0 FROM tab1 AS cor0 WHERE NOT col0 * + + col0 IN ( - col0 - + CAST ( col1 AS INTEGER ) * - 19 )
----
14
47
5

query I rowsort
SELECT + + 39 + + col1 AS col0 FROM tab2 AS cor0
----
106
116
90

query I rowsort
SELECT DISTINCT 67 + + 16 * - col0 AS col1 FROM tab2 AS cor0
----
-1133
-669
-957

query I rowsort
SELECT - col1 + col0 + + 96 FROM tab0 AS cor0
----
162
192
30

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

query I rowsort
SELECT - col0 + + col1 + + col2 AS col0 FROM tab2
----
28
50
53

onlyif mysql # aggregate syntax: 
query I rowsort label-1453
SELECT 1 + + COUNT( * ) AS col1 FROM tab2
----
4

skipif mysql # not compatible
query I rowsort label-1453
SELECT 1 + + COUNT ( * ) AS col1 FROM tab2
----
4

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

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

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

query II rowsort
SELECT DISTINCT 80 AS col1, - col2 AS col0 FROM tab0
----
80
-10
80
-47
80
-99

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 52 * - col0 col0 FROM tab1
----
2652
4420
4732

onlyif mysql # aggregate syntax: 
query I rowsort label-1461
SELECT - COUNT( * ) AS col1 FROM tab1 WHERE NOT ( + ( + 73 ) ) * + 92 - - 86 NOT BETWEEN - 11 AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-1461
SELECT - COUNT ( * ) AS col1 FROM tab1 WHERE NOT ( + ( + 73 ) ) * + 92 - - 86 NOT BETWEEN - 11 AND ( NULL )
----
0

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

query I rowsort
SELECT ALL - - ( - 34 ) FROM tab0 AS cor0
----
-34
-34
-34

query I rowsort
SELECT ALL + col1 + - - col0 AS col1 FROM tab1 AS cor0
----
138
65
90

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1467
SELECT - + 11 + - SUM( + col0 ) FROM tab0 AS cor0
----
-210

skipif mysql # not compatible
query I rowsort label-1467
SELECT - + 11 + - SUM ( + col0 ) FROM tab0 AS cor0
----
-210

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1468
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - - 66 * + 42 FROM tab0
----
NULL

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT ( NOT ( col0 ) NOT IN ( + 98, 15 ) ) )
----

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1471
SELECT ALL * FROM tab0 WHERE NOT ( - col2 * + 28 * - - CAST( - + 26 AS DECIMAL ) / 15 + + col1 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1471
SELECT ALL * FROM tab0 WHERE NOT ( - col2 * + 28 * - - CAST ( - + 26 AS REAL ) / 15 + + col1 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 11 + + col2 + + - col2 FROM tab0
----
11
11
11

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1475
SELECT CAST( NULL AS SIGNED ) - - - col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT ALL 38 * - 56 + - col0 + + + col0 AS col0 FROM tab2 AS cor0
----
-2128
-2128
-2128

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1478
SELECT COUNT( * ) + 32 AS col0 FROM tab2
----
35

skipif mysql # not compatible
query I rowsort label-1478
SELECT COUNT ( * ) + 32 AS col0 FROM tab2
----
35

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

query I rowsort
SELECT col0 * - col1 * - ( col1 ) AS col0 FROM tab2 AS cor0
----
119646
336675
379456

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1481
SELECT DISTINCT 33 DIV 35 - - - MIN( DISTINCT + + col0 ) + MIN( DISTINCT col2 ) * + - 36 AS col1 FROM tab2 AS cor0
----
-874

skipif mysql # not compatible
query I rowsort label-1481
SELECT DISTINCT 33 / 35 - - - MIN ( DISTINCT + + col0 ) + MIN ( DISTINCT col2 ) * + - 36 AS col1 FROM tab2 AS cor0
----
-874

query II rowsort
SELECT 52, + col2 FROM tab0 AS cor0
----
52
10
52
47
52
99

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 * - + col2 col1 FROM tab0 AS cor0
----
-100
-2209
-9801

onlyif mysql # DIV for integer division: 
query II rowsort label-1485
SELECT DISTINCT - 98 DIV + ( 44 ) + ( col1 ) + - + col0 AS col0, + col0 * + col1 FROM tab2 cor0
----
-10
5025
11
4928
3
2346

skipif mysql # not compatible
query II rowsort label-1485
SELECT DISTINCT - 98 / + ( 44 ) + ( col1 ) + - + col0 AS col0, + col0 * + col1 FROM tab2 cor0
----
-10
5025
11
4928
3
2346

onlyif mysql # aggregate syntax: 
query II rowsort label-1486
SELECT DISTINCT COUNT( * ), 36 AS col2 FROM tab1 WHERE NOT - - 75 IS NULL
----
3
36

skipif mysql # not compatible
query II rowsort label-1486
SELECT DISTINCT COUNT ( * ), 36 AS col2 FROM tab1 WHERE NOT - - 75 IS NULL
----
3
36

query I rowsort
SELECT 3 * + ( + col2 ) FROM tab2
----
120
174
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1488
SELECT DISTINCT - 37 * + 58 AS col1 FROM tab2 WHERE CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-1488
SELECT DISTINCT - 37 * + 58 AS col1 FROM tab2 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL
----

query II rowsort
SELECT + ( 21 ) AS col0, + col0 * - col2 + + - col2 FROM tab2
----
21
-1081
21
-2600
21
-4408

onlyif mysql # aggregate syntax: 
query I rowsort label-1490
SELECT + MIN( ALL - 38 ) AS col1 FROM tab2
----
-38

skipif mysql # not compatible
query I rowsort label-1490
SELECT + MIN ( ALL - 38 ) AS col1 FROM tab2
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-1491
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab2 WHERE - 85 * col2 + col0 NOT BETWEEN - 16 + + col2 * 54 AND + 5 - - col2
----
3

skipif mysql # not compatible
query I rowsort label-1491
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab2 WHERE - 85 * col2 + col0 NOT BETWEEN - 16 + + col2 * 54 AND + 5 - - col2
----
3

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1492
SELECT - COUNT ( * ) / + - COUNT ( * ) col0 FROM tab0
----
1

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

query I rowsort
SELECT ALL col1 * - col1 + - col0 AS col0 FROM tab0 AS cor0
----
-528
-6576
-98

query I rowsort
SELECT DISTINCT ( - 53 ) AS col1 FROM tab2 AS cor0
----
-53

query I rowsort
SELECT ALL + 56 FROM tab1 AS cor0 WHERE ( NULL ) IN ( - col0 * + 77 - - + ( col1 ) - - 36 )
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 82 col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

onlyif mysql # aggregate syntax: 
query I rowsort label-1499
SELECT - 46 * + - ( - + COUNT( + col2 ) ) AS col0 FROM tab1 AS cor0
----
-138

skipif mysql # not compatible
query I rowsort label-1499
SELECT - 46 * + - ( - + COUNT ( + col2 ) ) AS col0 FROM tab1 AS cor0
----
-138

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE NOT - col0 <> - + col0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-1501
SELECT - COUNT( * ) AS col0, MIN( ALL - col0 ) AS col0 FROM tab0
----
-3
-97

skipif mysql # not compatible
query II rowsort label-1501
SELECT - COUNT ( * ) AS col0, MIN ( ALL - col0 ) AS col0 FROM tab0
----
-3
-97

query I rowsort
SELECT col2 + 70 AS col1 FROM tab2
----
110
128
93

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1504
SELECT ALL MIN( - + col1 ) + + - 97 FROM tab1
----
-144

skipif mysql # not compatible
query I rowsort label-1504
SELECT ALL MIN ( - + col1 ) + + - 97 FROM tab1
----
-144

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

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

query I rowsort
SELECT col0 + - + col2 AS col2 FROM tab0
----
-2
-32
77

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1510
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-1510
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

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

query I rowsort
SELECT ALL - 89 * col2 + + + col2 AS col0 FROM tab0 AS cor0
----
-4136
-8712
-880

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

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

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

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

query I rowsort
SELECT 93 * + - col1 FROM tab0
----
-1953
-7533
-93

query II rowsort
SELECT ALL + 67, + col1 * col2 * col1 AS col1 FROM tab1
----
67
1475
67
150212
67
18816

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

query I rowsort
SELECT - 56 * + col0 AS col1 FROM tab0 WHERE NOT ( NOT + 31 - col1 = NULL )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1522
SELECT DISTINCT - MAX( DISTINCT + 88 ) FROM tab2
----
-88

skipif mysql # not compatible
query I rowsort label-1522
SELECT DISTINCT - MAX ( DISTINCT + 88 ) FROM tab2
----
-88

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

query I rowsort
SELECT DISTINCT + 35 * - col2 + + col0 FROM tab1 cor0
----
-1980
-2289
-3309

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

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

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

query I rowsort
SELECT DISTINCT - + 44 AS col0 FROM tab2 AS cor0 WHERE ( NOT col2 <= NULL )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL < ( col2 )
----

query I rowsort
SELECT - - col2 + + 49 FROM tab0 AS cor0
----
148
59
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1531
SELECT ALL + ( + - 64 ) * + col2 * + CAST( NULL AS SIGNED ) + ( col1 ) * + 96 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1531
SELECT ALL + ( + - 64 ) * + col2 * + CAST ( NULL AS INTEGER ) + ( col1 ) * + 96 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 + - + 21 FROM tab1
----
30
64
70

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

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

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

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

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

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

query I rowsort
SELECT ALL + 66 * + col0 AS col1 FROM tab0 AS cor0
----
5742
6402
990

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1542
SELECT DISTINCT - 63 * MAX( - + 31 ) AS col1 FROM tab1 cor0
----
1953

skipif mysql # not compatible
query I rowsort label-1542
SELECT DISTINCT - 63 * MAX ( - + 31 ) AS col1 FROM tab1 cor0
----
1953

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( ( ( ( NOT NULL IN ( + - col0, + 30 * 37 ) ) ) ) ) OR + + 80 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1545
SELECT - 6 * - - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-1545
SELECT - 6 * - - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-18

query I rowsort
SELECT ALL col1 AS col2 FROM tab1 WHERE NULL BETWEEN + + col1 AND NULL
----

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

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

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

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

skipif mysql # not compatible
query II rowsort label-1549
SELECT MIN ( - col0 ), - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-75
-3

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

query I rowsort
SELECT DISTINCT + col1 + - - 56 FROM tab2
----
107
123
133

query I rowsort
SELECT ALL ( - 5 ) FROM tab0
----
-5
-5
-5

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

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1557
SELECT DISTINCT - col1 DIV - 44 FROM tab1 cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-1557
SELECT DISTINCT - col1 / - 44 FROM tab1 cor0
----
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1558
SELECT ALL col0 DIV + col1 - + col2 DIV - + col2 AS col0 FROM tab0 AS cor0
----
1
5
98

skipif mysql # not compatible
query I rowsort label-1558
SELECT ALL col0 / + col1 - + col2 / - + col2 AS col0 FROM tab0 AS cor0
----
1
5
98

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1562
SELECT DISTINCT MIN( DISTINCT - - col1 ) + + - 31 * COUNT( * ) + - MIN( DISTINCT 22 ) + + MAX( - col1 ) col0 FROM tab1
----
-115

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1562
SELECT DISTINCT MIN ( DISTINCT - - col1 ) + + - 31 * COUNT ( * ) + - MIN ( DISTINCT 22 ) + + MAX ( - col1 ) col0 FROM tab1
----
-115

query I rowsort
SELECT DISTINCT 26 + - - 4 + col2 * + + 93 FROM tab0
----
4401
9237
960

onlyif mysql # DIV for integer division: 
query I rowsort label-1564
SELECT + 65 + col1 DIV + 19 + - col2 + + col1 col0 FROM tab1
----
-17
11
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1564
SELECT + 65 + col1 / + 19 + - col2 + + col1 col0 FROM tab1
----
-17
11
46

onlyif mysql # aggregate syntax: 
query II rowsort label-1565
SELECT ALL + 84 AS col0, COUNT( * ) FROM tab2 WHERE NULL NOT BETWEEN ( - + col1 ) AND ( NULL )
----
84
0

skipif mysql # not compatible
query II rowsort label-1565
SELECT ALL + 84 AS col0, COUNT ( * ) FROM tab2 WHERE NULL NOT BETWEEN ( - + col1 ) AND ( NULL )
----
84
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1566
SELECT DISTINCT + col2 DIV + 11 - - col1 col1 FROM tab1
----
10
22
53

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1566
SELECT DISTINCT + col2 / + 11 - - col1 col1 FROM tab1
----
10
22
53

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1569
SELECT ( + 42 ) * - col1 DIV + col1 AS col0, col2 * col2 FROM tab0 AS cor0
----
-42
100
-42
2209
-42
9801

skipif mysql # not compatible
query II rowsort label-1569
SELECT ( + 42 ) * - col1 / + col1 AS col0, col2 * col2 FROM tab0 AS cor0
----
-42
100
-42
2209
-42
9801

query I rowsort
SELECT ALL 5 AS col0 FROM tab1 WHERE NOT ( - 20 * + - 27 ) IS NULL
----
5
5
5

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

query II rowsort
SELECT - col2 AS col1, col1 + - col2 AS col2 FROM tab0 AS cor0
----
-10
11
-47
34
-99
-98

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

skipif mysql # not compatible
query I rowsort label-1573
SELECT - COUNT ( + 81 ) FROM tab1 cor0
----
-3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1575
SELECT + + SUM( ALL + 4 ) FROM tab2 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-1575
SELECT + + SUM ( ALL + 4 ) FROM tab2 AS cor0
----
12

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1577
SELECT SUM( ALL + 39 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1577
SELECT SUM ( ALL + 39 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL = NULL
----
NULL

query II rowsort
SELECT - 0, + col0 * - + 51 AS col2 FROM tab1
----
0
-2601
0
-4335
0
-4641

query I rowsort
SELECT - col1 * 60 AS col0 FROM tab0
----
-1260
-4860
-60

query I rowsort
SELECT ALL + col2 - - 29 FROM tab2 WHERE NOT - col2 IS NULL
----
52
69
87

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - col1 ) col2 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT col1 * 88 * - col1 AS col2 FROM tab1
----
-17248
-194392
-2200

onlyif mysql # aggregate syntax: 
query I rowsort label-1584
SELECT DISTINCT 20 * COUNT( * ) FROM tab0
----
60

skipif mysql # not compatible
query I rowsort label-1584
SELECT DISTINCT 20 * COUNT ( * ) FROM tab0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-1585
SELECT ALL + + 12 * - + 75 * - MAX( ALL - + ( 31 ) ) + + COUNT( * ) AS col1 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1585
SELECT ALL + + 12 * - + 75 * - MAX ( ALL - + ( 31 ) ) + + COUNT ( * ) AS col1 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT DISTINCT + col0 * - 25 * + - col2 * col1 FROM tab0
----
1427625
240075
456750

query I rowsort
SELECT + 74 AS col1 FROM tab1 WHERE NOT + ( + col0 ) BETWEEN + col1 - col1 AND + 89
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-1588
SELECT DISTINCT 86 * - COUNT( * ) FROM tab0
----
-258

skipif mysql # not compatible
query I rowsort label-1588
SELECT DISTINCT 86 * - COUNT ( * ) FROM tab0
----
-258

query I rowsort
SELECT DISTINCT 4 * col2 * + + col2 AS col2 FROM tab2
----
13456
2116
6400

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN - + 86 * 79 AND + - col0
----

query I rowsort
SELECT ALL - + col1 + + 32 - - 78 * col0 * col0 FROM tab0 WHERE NOT - col1 = 96
----
17501
590393
733933

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

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

skipif mysql # not compatible
query I rowsort label-1594
SELECT COUNT ( * ) / + + COUNT ( * ) + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
4

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL = 73
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1597
SELECT ( + 66 ) - + col2 DIV - - col1 AS col2 FROM tab1
----
55
60
65

skipif mysql # not compatible
query I rowsort label-1597
SELECT ( + 66 ) - + col2 / - - col1 AS col2 FROM tab1
----
55
60
65

query I rowsort
SELECT ALL 11 + + - 41 + + col2 AS col1 FROM tab2
----
-7
10
28

query I rowsort
SELECT ALL 77 + + col1 AS col0 FROM tab2
----
128
144
154

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1600
SELECT DISTINCT ( - CAST ( col2 AS INTEGER ) ) col2 FROM tab1
----
-59
-68
-96

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

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

skipif mysql # not compatible
query I rowsort label-1602
SELECT + COUNT ( DISTINCT - - CAST ( NULL AS REAL ) ) - + COUNT ( * ) * - 78 FROM tab1
----
234

onlyif mysql # DIV for integer division: 
query I rowsort label-1603
SELECT DISTINCT + + ( - 74 ) + + + col2 + - col0 DIV col0 DIV - col2 * + 77 FROM tab1 AS cor0
----
-15
-6
22

skipif mysql # not compatible
query I rowsort label-1603
SELECT DISTINCT + + ( - 74 ) + + + col2 + - col0 / col0 / - col2 * + 77 FROM tab1 AS cor0
----
-15
-6
22

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

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

query I rowsort
SELECT ALL - col2 - - 83 AS col0 FROM tab0 AS cor0
----
-16
36
73

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 16 * col2 IS NOT NULL
----

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

query I rowsort
SELECT 50 * - - 40 * + col1 AS col1 FROM tab0
----
162000
2000
42000

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

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

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

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

query I rowsort
SELECT col2 * - - 94 FROM tab1
----
5546
6392
9024

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + - col1 + - + ( + - col1 ) col2 FROM tab0
----
-10
-47
-99

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

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL < + 66
----

query I rowsort
SELECT ALL col0 + - - 59 AS col0 FROM tab1
----
110
144
150

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

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

query I rowsort
SELECT DISTINCT - col1 FROM tab0 AS cor0 WHERE NOT col1 BETWEEN - - col0 AND NULL
----
-1
-21

query I rowsort
SELECT col0 * - col0 + - - 1 AS col1 FROM tab0 AS cor0
----
-224
-7568
-9408

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

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

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE NOT col1 / col0 IN ( - col2 )
----
59
68
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - + col1 + + ( - col1 ) col2 FROM tab1
----
-430
-4324
-728

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

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

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

skipif mysql # not compatible
query I rowsort label-1636
SELECT DISTINCT CAST ( + - COUNT ( * ) AS INTEGER ) * 63 * 99 - COUNT ( * ) FROM tab0
----
-18714

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1637
SELECT DISTINCT ( COUNT( DISTINCT + CAST( 57 AS SIGNED ) ) ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-1637
SELECT DISTINCT ( COUNT ( DISTINCT + CAST ( 57 AS INTEGER ) ) ) FROM tab0
----
1

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1640
SELECT - SUM ( - 40 ) * - SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - 6 * + - col0 FROM tab0
----
522
582
90

query I rowsort
SELECT + + 50 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

onlyif mysql # DIV for integer division: 
query I rowsort label-1643
SELECT 60 DIV col1 + - col2 FROM tab0 AS cor0
----
-39
-47
-8

skipif mysql # not compatible
query I rowsort label-1643
SELECT 60 / col1 + - col2 FROM tab0 AS cor0
----
-39
-47
-8

query I rowsort
SELECT ALL - 76 * - 9 + - 31 + + + 18 AS col1 FROM tab1 AS cor0
----
671
671
671

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1647
SELECT - SUM( DISTINCT + col1 ) + + + 61 FROM tab0 cor0
----
-42

skipif mysql # not compatible
query I rowsort label-1647
SELECT - SUM ( DISTINCT + col1 ) + + + 61 FROM tab0 cor0
----
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-1648
SELECT - ( + 56 ) * + + col1 DIV - col1 + - col2 col2 FROM tab1 AS cor0
----
-12
-3
-40

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1648
SELECT - ( + 56 ) * + + col1 / - col1 + - col2 col2 FROM tab1 AS cor0
----
-12
-3
-40

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1650
SELECT DISTINCT MIN( DISTINCT - ( + - 58 ) ) FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-1650
SELECT DISTINCT MIN ( DISTINCT - ( + - 58 ) ) FROM tab2
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1651
SELECT COUNT( * ) * + CAST( NULL AS SIGNED ), 95 AS col2 FROM tab0
----
NULL
95

skipif mysql # not compatible
query II rowsort label-1651
SELECT COUNT ( * ) * + CAST ( NULL AS INTEGER ), 95 AS col2 FROM tab0
----
NULL
95

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1652
SELECT col0 * + CAST( NULL AS DECIMAL ) / 32 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1652
SELECT col0 * + CAST ( NULL AS REAL ) / 32 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1653
SELECT 19 DIV MIN( DISTINCT - - col1 ) * 7 * + 23 * MIN( + 78 ) FROM tab0 cor0
----
238602

skipif mysql # not compatible
query I rowsort label-1653
SELECT 19 / MIN ( DISTINCT - - col1 ) * 7 * + 23 * MIN ( + 78 ) FROM tab0 cor0
----
238602

onlyif mysql # aggregate syntax: 
query I rowsort label-1654
SELECT + COUNT( 90 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1654
SELECT + COUNT ( 90 ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1655
SELECT MAX( DISTINCT col2 ) AS col1 FROM tab1 AS cor0 WHERE col1 * col1 * - col0 + - + col1 > - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1655
SELECT MAX ( DISTINCT col2 ) AS col1 FROM tab1 AS cor0 WHERE col1 * col1 * - col0 + - + col1 > - col1
----
NULL

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

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

query I rowsort
SELECT DISTINCT - - 52 AS col2 FROM tab1 cor0
----
52

query I rowsort
SELECT DISTINCT + col1 * - ( 97 ) * - col1 + + col1 + + ( + col2 ) FROM tab0 AS cor0
----
197
42808
636545

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

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

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL > + col0 * + col1
----

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

query I rowsort
SELECT 26 * - - col2 FROM tab2 AS cor0
----
1040
1508
598

query I rowsort
SELECT DISTINCT - - col0 * - 71 AS col1 FROM tab0 AS cor0
----
-1065
-6177
-6887

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

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

query I rowsort
SELECT DISTINCT + 24 * 41 AS col0 FROM tab2 AS cor0
----
984

onlyif mysql # DIV for integer division: 
query I rowsort label-1667
SELECT ALL + ( - 68 ) DIV 30 AS col2 FROM tab1
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-1667
SELECT ALL + ( - 68 ) / 30 AS col2 FROM tab1
----
-2
-2
-2

query I rowsort
SELECT - + col0 + + - col0 AS col2 FROM tab0 WHERE NULL NOT IN ( + col0, + ( - + 67 ) * - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1669
SELECT DISTINCT + MIN( - col2 ) AS col0 FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-1669
SELECT DISTINCT + MIN ( - col2 ) AS col0 FROM tab1
----
-96

query II rowsort
SELECT - 31 AS col2, 9 FROM tab0
----
-31
9
-31
9
-31
9

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col2 FROM tab2 WHERE - + col0 BETWEEN + + 31 AND + col1
----

query I rowsort
SELECT + col0 * - - col1 AS col1 FROM tab1
----
425
4277
714

onlyif mysql # DIV for integer division: 
query I rowsort label-1674
SELECT DISTINCT + col2 * col1 DIV + 32 AS col0 FROM tab1
----
42
9
99

skipif mysql # not compatible
query I rowsort label-1674
SELECT DISTINCT + col2 * col1 / + 32 AS col0 FROM tab1
----
42
9
99

query I rowsort
SELECT DISTINCT 36 * + col1 + - 7 AS col2 FROM tab1 AS cor0
----
1685
173
497

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1677
SELECT - 11 DIV - 92 - - + CAST( - - col2 AS SIGNED ) col2 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1677
SELECT - 11 / - 92 - - + CAST ( - - col2 AS INTEGER ) col2 FROM tab2 AS cor0
----
23
40
58

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

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

query I rowsort
SELECT ALL - + 94 AS col2 FROM tab2 AS cor0
----
-94
-94
-94

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

query I rowsort
SELECT col0 AS col1 FROM tab0 AS cor0 WHERE NOT ( - - ( - col1 ) ) IN ( - - 72 - - col1, col0 )
----
15
87
97

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1683
SELECT ALL - ( + 75 ) * COUNT( * ) + + 20 + SUM( + + 49 ) FROM tab0
----
-58

skipif mysql # not compatible
query I rowsort label-1683
SELECT ALL - ( + 75 ) * COUNT ( * ) + + 20 + SUM ( + + 49 ) FROM tab0
----
-58

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + - col0 col0 FROM tab2
----
-141
-142
-97

query II rowsort
SELECT 36 + + - col0 - - col0 AS col0, - col0 + col1 * + + col1 - + + col1 FROM tab0
----
36
-97
36
333
36
6465

onlyif mysql # aggregate syntax: 
query I rowsort label-1687
SELECT SUM( ALL - - col1 ) + - 98 - + COUNT( DISTINCT + + 83 ) + + 22 + + - COUNT( * ) FROM tab1
----
-14

skipif mysql # not compatible
query I rowsort label-1687
SELECT SUM ( ALL - - col1 ) + - 98 - + COUNT ( DISTINCT + + 83 ) + + 22 + + - COUNT ( * ) FROM tab1
----
-14

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col1 ) + - 75 col1 FROM tab1 AS cor0
----
-28
-61
-70

query I rowsort
SELECT ALL + + 83 * 1 + col2 + + col1 FROM tab0 cor0
----
114
183
211

onlyif mysql # DIV for integer division: 
query I rowsort label-1691
SELECT col1 DIV 89 * - col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1691
SELECT col1 / 89 * - col0 FROM tab0
----
0
0
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1693
SELECT + COUNT( * ) * - + MAX( - + 1 ) col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1693
SELECT + COUNT ( * ) * - + MAX ( - + 1 ) col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query I rowsort
SELECT - 40 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f02f17e9bc17e514af018c6f245ed7a9

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1696
SELECT + 84 + - COUNT( * ) col1 FROM tab0 AS cor0
----
81

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1698
SELECT + 93 + + CAST( 18 AS SIGNED ) FROM tab1 AS cor0
----
111
111
111

skipif mysql # not compatible
query I rowsort label-1698
SELECT + 93 + + CAST ( 18 AS INTEGER ) FROM tab1 AS cor0
----
111
111
111

query I rowsort
SELECT col2 * - + col2 FROM tab2 cor0
----
-1600
-3364
-529

onlyif mysql # aggregate syntax: 
query I rowsort label-1700
SELECT - ( COUNT( * ) ) FROM tab1 cor0 WHERE NOT 54 * - 57 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1700
SELECT - ( COUNT ( * ) ) FROM tab1 cor0 WHERE NOT 54 * - 57 IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT + + col1 * + + 51 FROM tab0 AS cor0
----
1071
4131
51

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 92 - + + 61 + - col1 BETWEEN + col0 * - col1 + - + col2 * 60 AND col2
----

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

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT - + 41 + - col1 * 23 AS col1 FROM tab0 AS cor0
----
-1904
-524
-64

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 81 + - 90 IS NOT NULL
----

query I rowsort
SELECT - - 32 * - col2 + 49 FROM tab2 cor0
----
-1231
-1807
-687

onlyif mysql # DIV for integer division: 
query I rowsort label-1714
SELECT DISTINCT - col1 DIV + col0 + + - col1 FROM tab1 cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-1714
SELECT DISTINCT - col1 / + col0 + + - col1 FROM tab1 cor0
----
-14
-47
-5

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1716
SELECT DISTINCT + 72 DIV 8 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-1716
SELECT DISTINCT + 72 / 8 FROM tab1 AS cor0
----
9

query I rowsort
SELECT DISTINCT - + 11 + - col1 FROM tab2 AS cor0
----
-62
-78
-88

query I rowsort
SELECT - + 3 + + col0 + - col1 FROM tab0 AS cor0
----
-69
63
93

onlyif mysql # aggregate syntax: 
query II rowsort label-1719
SELECT + - COUNT( * ) * - - COUNT( * ) AS col0, - SUM( DISTINCT 77 ) FROM tab1 AS cor0
----
-9
-77

skipif mysql # not compatible
query II rowsort label-1719
SELECT + - COUNT ( * ) * - - COUNT ( * ) AS col0, - SUM ( DISTINCT 77 ) FROM tab1 AS cor0
----
-9
-77

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

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

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

query I rowsort
SELECT DISTINCT + 39 AS col0 FROM tab1 WHERE + + col0 * col1 + + col1 BETWEEN NULL AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1723
SELECT ALL + COUNT( * ) * - 61 AS col2 FROM tab2
----
-183

skipif mysql # not compatible
query I rowsort label-1723
SELECT ALL + COUNT ( * ) * - 61 AS col2 FROM tab2
----
-183

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col0 + + col1 / + col2 = col2 * - - 56
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1725
SELECT ALL col0 + - col1 AS col0, - col0 AS col1, + CAST( 44 AS SIGNED ) FROM tab2
----
9 values hashing to bab48e17e58393a8a14a6a3721832e31

skipif mysql # not compatible
query III rowsort label-1725
SELECT ALL col0 + - col1 AS col0, - col0 AS col1, + CAST ( 44 AS INTEGER ) FROM tab2
----
9 values hashing to bab48e17e58393a8a14a6a3721832e31

query I rowsort
SELECT - col1 - 3 FROM tab0 AS cor0
----
-24
-4
-84

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

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

query I rowsort
SELECT + + 95 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3

query I rowsort
SELECT + + col2 * + - col1 FROM tab2 WHERE col1 + + - ( - ( + 24 ) ) NOT BETWEEN - 49 + col1 AND - - col2
----
-1173
-3080
-3886

query I rowsort
SELECT + 71 * 8 AS col2 FROM tab2
----
568
568
568

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

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

query II rowsort
SELECT DISTINCT + - 71, - 78 * - col1 * 6 - + col2 AS col1 FROM tab1 AS cor0
----
-71
21928
-71
2281
-71
6456

query I rowsort
SELECT col2 * + + col0 * col2 * - - col1 * - 81 AS col1 FROM tab0 AS cor0
----
-14798700
-217398735
-77006457

query I rowsort
SELECT DISTINCT + - 44 + - col0 FROM tab2 AS cor0 WHERE + col1 * - - col1 > NULL
----

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

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT - 24 >= + 96
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

query I rowsort
SELECT DISTINCT + 95 * + 5 FROM tab0
----
475

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 40 BETWEEN - 9 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1742
SELECT DISTINCT * FROM tab2 WHERE + - CAST( NULL AS SIGNED ) - - 80 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-1742
SELECT DISTINCT * FROM tab2 WHERE + - CAST ( NULL AS INTEGER ) - - 80 IS NOT NULL
----

query I rowsort
SELECT col1 * 19 FROM tab2
----
1273
1463
969

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 66 * 74 + + col1 col0 FROM tab1
----
4889
4898
4931

query I rowsort
SELECT + col0 + 40 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
104
115
86

onlyif mysql # aggregate syntax: 
query I rowsort label-1748
SELECT DISTINCT - MIN( + 61 ) AS col1 FROM tab0
----
-61

skipif mysql # not compatible
query I rowsort label-1748
SELECT DISTINCT - MIN ( + 61 ) AS col1 FROM tab0
----
-61

query I rowsort
SELECT ALL + col0 FROM tab1 AS cor0 WHERE + 51 > col1
----
51
85
91

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1751
SELECT + + 60 * + + CAST( NULL AS DECIMAL ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1751
SELECT + + 60 * + + CAST ( NULL AS REAL ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1752
SELECT ALL - - 93 + + - 18 * - 60 * - MIN( DISTINCT - col0 ) AS col2 FROM tab0 AS cor0
----
104853

skipif mysql # not compatible
query I rowsort label-1752
SELECT ALL - - 93 + + - 18 * - 60 * - MIN ( DISTINCT - col0 ) AS col2 FROM tab0 AS cor0
----
104853

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1754
SELECT ALL col0 DIV + col0 + 34 FROM tab1
----
35
35
35

skipif mysql # not compatible
query I rowsort label-1754
SELECT ALL col0 / + col0 + 34 FROM tab1
----
35
35
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + + col0 col2 FROM tab1
----
144
147
159

query I rowsort
SELECT DISTINCT + col2 * col1 + - col0 + + col1 AS col1 FROM tab0
----
144
3
3873

query I rowsort
SELECT col1 FROM tab1 WHERE 36 BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-1758
SELECT ( + 72 ) + 0 DIV col0 col0, 51 FROM tab2
----
72
51
72
51
72
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1758
SELECT ( + 72 ) + 0 / col0 col0, 51 FROM tab2
----
72
51
72
51
72
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1759
SELECT MIN( DISTINCT CAST( NULL AS SIGNED ) ) FROM tab1 WHERE 3 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1759
SELECT MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) FROM tab1 WHERE 3 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1760
SELECT ALL - 45 * - 92 - + - COUNT( * ) AS col0 FROM tab2
----
4143

skipif mysql # not compatible
query I rowsort label-1760
SELECT ALL - 45 * - 92 - + - COUNT ( * ) AS col0 FROM tab2
----
4143

query I rowsort
SELECT ( ( - col2 ) ) + + 31 + - 61 FROM tab0
----
-129
-40
-77

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

skipif mysql # not compatible
query II rowsort label-1762
SELECT ALL col0, + CAST ( NULL AS INTEGER ) + + col2 FROM tab0 cor0
----
15
NULL
87
NULL
97
NULL

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + 30 * + - 80 col2 FROM tab1 cor0
----
-141600
-163200
-230400

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 <= 19
----

query II rowsort
SELECT DISTINCT 49 * - 6 AS col0, - col2 FROM tab1 cor0
----
-294
-59
-294
-68
-294
-96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1769
SELECT DISTINCT - 87 * 9, - CAST( - col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-783
23
-783
40
-783
58

skipif mysql # not compatible
query II rowsort label-1769
SELECT DISTINCT - 87 * 9, - CAST ( - col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-783
23
-783
40
-783
58

query I rowsort
SELECT - - ( + - col2 ) AS col1 FROM tab2 AS cor0
----
-23
-40
-58

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1772
SELECT ALL COUNT( * ) + - ( - 79 ) FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND - col2
----
79

skipif mysql # not compatible
query I rowsort label-1772
SELECT ALL COUNT ( * ) + - ( - 79 ) FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND - col2
----
79

query I rowsort
SELECT + col1 * + 0 FROM tab0
----
0
0
0

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

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

skipif mysql # not compatible
query I rowsort label-1775
SELECT DISTINCT - COUNT ( ALL - + 38 ) FROM tab0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1776
SELECT CAST( + ( + 10 ) AS SIGNED ), + col0 col2 FROM tab1
----
10
51
10
85
10
91

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - 54 col0 FROM tab0 WHERE NOT + 33 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT ( NOT NULL BETWEEN + col2 * col1 AND NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1779
SELECT - COUNT( DISTINCT - col0 ) * - 96 AS col0 FROM tab0 AS cor0
----
288

skipif mysql # not compatible
query I rowsort label-1779
SELECT - COUNT ( DISTINCT - col0 ) * - 96 AS col0 FROM tab0 AS cor0
----
288

query I rowsort
SELECT - col1 * + - col0 AS col2 FROM tab1 AS cor0
----
425
4277
714

onlyif mysql # aggregate syntax: 
query II rowsort label-1781
SELECT 15 AS col2, - SUM( - 98 ) AS col0 FROM tab0 cor0
----
15
294

skipif mysql # not compatible
query II rowsort label-1781
SELECT 15 AS col2, - SUM ( - 98 ) AS col0 FROM tab0 cor0
----
15
294

query I rowsort
SELECT ( - 33 ) AS col0 FROM tab0 AS cor0
----
-33
-33
-33

query I rowsort
SELECT ALL + col2 * - + col0 * 22 + + col2 + - + 23 FROM tab2 AS cor0
----
-23276
-56303
-95665

query II rowsort
SELECT - col1 AS col0, col0 + - 66 FROM tab2 AS cor0
----
-51
-20
-67
9
-77
-2

query II rowsort
SELECT col1, - 71 FROM tab1 AS cor0
----
14
-71
47
-71
5
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-1786
SELECT ALL + COUNT( * ) / - MAX( ALL - 19 * col1 ) AS col1 FROM tab0 WHERE NOT ( + col1 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1786
SELECT ALL + COUNT ( * ) / - MAX ( ALL - 19 * col1 ) AS col1 FROM tab0 WHERE NOT ( + col1 ) IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1787
SELECT col1 + - col0 DIV + col0 FROM tab1
----
13
4
46

skipif mysql # not compatible
query I rowsort label-1787
SELECT col1 + - col0 / + col0 FROM tab1
----
13
4
46

query I rowsort
SELECT 97 + 40 FROM tab2
----
137
137
137

onlyif mysql # aggregate syntax: 
query I rowsort label-1789
SELECT ALL COUNT( ALL col2 ) FROM tab1 WHERE NULL NOT BETWEEN NULL AND ( + ( + col2 ) )
----
0

skipif mysql # not compatible
query I rowsort label-1789
SELECT ALL COUNT ( ALL col2 ) FROM tab1 WHERE NULL NOT BETWEEN NULL AND ( + ( + col2 ) )
----
0

query I rowsort
SELECT col0 * + 44 FROM tab1
----
2244
3740
4004

query I rowsort
SELECT ALL - col0 - + 35 FROM tab0
----
-122
-132
-50

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1792
SELECT ALL * FROM tab1 WHERE ( - CAST( NULL AS DECIMAL ) ) IN ( - col0 )
----

skipif mysql # not compatible
query III rowsort label-1792
SELECT ALL * FROM tab1 WHERE ( - CAST ( NULL AS REAL ) ) IN ( - col0 )
----

query III rowsort
SELECT * FROM tab1 WHERE ( col2 * - col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1794
SELECT + MAX( - col2 ) * 17 FROM tab0
----
-170

skipif mysql # not compatible
query I rowsort label-1794
SELECT + MAX ( - col2 ) * 17 FROM tab0
----
-170

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1795
SELECT DISTINCT * FROM tab1 WHERE 29 + 11 * + col1 >= ( + 36 + + CAST( + col1 AS SIGNED ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1795
SELECT DISTINCT * FROM tab1 WHERE 29 + 11 * + col1 >= ( + 36 + + CAST ( + col1 AS INTEGER ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1796
SELECT + ( - COUNT( col2 ) ) + - COUNT( * ) FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-1796
SELECT + ( - COUNT ( col2 ) ) + - COUNT ( * ) FROM tab2
----
-6

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 BETWEEN ( - 92 ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 32 * - col1 col2 FROM tab1
----
-1504
-160
-448

onlyif mysql # aggregate syntax: 
query I rowsort label-1799
SELECT DISTINCT MIN( ALL - col1 ) AS col1 FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-1799
SELECT DISTINCT MIN ( ALL - col1 ) AS col1 FROM tab0
----
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-1800
SELECT - ( col1 ) DIV col2 + - col0 AS col2 FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-1800
SELECT - ( col1 ) / col2 + - col0 AS col2 FROM tab1
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-1801
SELECT COUNT( * ) AS col2 FROM tab0 WHERE ( NULL ) BETWEEN 78 * col0 AND ( + 55 )
----
0

skipif mysql # not compatible
query I rowsort label-1801
SELECT COUNT ( * ) AS col2 FROM tab0 WHERE ( NULL ) BETWEEN 78 * col0 AND ( + 55 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1802
SELECT - 91 DIV col2 + - ( 71 ) FROM tab2
----
-72
-73
-74

skipif mysql # not compatible
query I rowsort label-1802
SELECT - 91 / col2 + - ( 71 ) FROM tab2
----
-72
-73
-74

query I rowsort
SELECT ALL - 98 * col1 FROM tab1
----
-1372
-4606
-490

query I rowsort
SELECT ALL + col0 + - col1 FROM tab1 WHERE NOT col2 IS NULL
----
37
44
80

onlyif mysql # aggregate syntax: 
query I rowsort label-1805
SELECT COUNT( * ) FROM tab0 WHERE NOT - col2 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-1805
SELECT COUNT ( * ) FROM tab0 WHERE NOT - col2 <= NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1806
SELECT DISTINCT + col1 DIV - ( - ( + col0 ) ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1806
SELECT DISTINCT + col1 / - ( - ( + col0 ) ) AS col1 FROM tab1
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) NOT IN ( - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1808
SELECT * FROM tab2 WHERE NOT 93 + - 81 NOT BETWEEN + CAST( - col2 AS SIGNED ) * 8 AND ( 76 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-1808
SELECT * FROM tab2 WHERE NOT 93 + - 81 NOT BETWEEN + CAST ( - col2 AS INTEGER ) * 8 AND ( 76 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1809
SELECT DISTINCT * FROM tab0 WHERE - col2 + - CAST( col1 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-1809
SELECT DISTINCT * FROM tab0 WHERE - col2 + - CAST ( col1 AS INTEGER ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1810
SELECT - 81 / - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1810
SELECT - 81 / - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1811
SELECT - 39 + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-1811
SELECT - 39 + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-1812
SELECT 85 + SUM( ALL + 63 ) AS col0 FROM tab1 AS cor0
----
274

skipif mysql # not compatible
query I rowsort label-1812
SELECT 85 + SUM ( ALL + 63 ) AS col0 FROM tab1 AS cor0
----
274

query I rowsort
SELECT ALL col0 * col1 FROM tab1 cor0 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT DISTINCT ( - col2 ) - col2 FROM tab1 AS cor0
----
-118
-136
-192

query I rowsort
SELECT DISTINCT 24 * col1 FROM tab2 AS cor0
----
1224
1608
1848

onlyif mysql # aggregate syntax: 
query I rowsort label-1816
SELECT ALL SUM( ALL - col0 ) AS col0 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-1816
SELECT ALL SUM ( ALL - col0 ) AS col0 FROM tab0 AS cor0
----
-199

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL <= - col2
----

query I rowsort
SELECT ALL - 87 AS col2 FROM tab2 AS cor0 WHERE NOT + 49 NOT IN ( + ( - 95 ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1819
SELECT DISTINCT - ( + CAST( NULL AS SIGNED ) ) / COUNT( * ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1819
SELECT DISTINCT - ( + CAST ( NULL AS INTEGER ) ) / COUNT ( * ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT + 51 FROM tab0 WHERE NULL >= ( - 22 )
----

query I rowsort
SELECT DISTINCT 71 AS col0 FROM tab1 cor0 WHERE NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1822
SELECT DISTINCT + MIN( DISTINCT + 27 ) * + 69 FROM tab0 AS cor0
----
1863

skipif mysql # not compatible
query I rowsort label-1822
SELECT DISTINCT + MIN ( DISTINCT + 27 ) * + 69 FROM tab0 AS cor0
----
1863

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 * + col2 col2 FROM tab2 AS cor0
----
-1173
-3080
-3886

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1824
SELECT - CAST( + 49 AS SIGNED ) * - col0 AS col0 FROM tab0 AS cor0
----
4263
4753
735

skipif mysql # not compatible
query I rowsort label-1824
SELECT - CAST ( + 49 AS INTEGER ) * - col0 AS col0 FROM tab0 AS cor0
----
4263
4753
735

query I rowsort
SELECT ALL 18 * + col2 AS col1 FROM tab2 AS cor0
----
1044
414
720

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 63 * + 83 + 35 < ( NULL )
----

query I rowsort
SELECT DISTINCT - 19 * - 32 FROM tab2 AS cor0
----
608

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN 17 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) <> ( col0 * 8 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1830
SELECT ALL 30 DIV 72 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1830
SELECT ALL 30 / 72 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1831
SELECT DISTINCT + col2 DIV + 80 FROM tab1 cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-1831
SELECT DISTINCT + col2 / + 80 FROM tab1 cor0
----
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1832
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col0 + - col0 NOT IN ( CAST( + col0 AS SIGNED ) + ( + 45 ) / col1 )
----

skipif mysql # not compatible
query III rowsort label-1832
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col0 + - col0 NOT IN ( CAST ( + col0 AS INTEGER ) + ( + 45 ) / col1 )
----

query I rowsort
SELECT ALL - col1 + - col2 AS col0 FROM tab2 AS cor0 WHERE NOT ( - 0 ) <> NULL
----

query I rowsort
SELECT + 51 AS col2 FROM tab2 WHERE NOT NULL NOT BETWEEN ( 57 ) AND NULL
----

query I rowsort
SELECT DISTINCT - ( - 46 ) AS col2 FROM tab1
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1836
SELECT ALL + COUNT( * ) - CAST( NULL AS SIGNED ) AS col1 FROM tab0 WHERE NOT + CAST( + col1 AS DECIMAL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1836
SELECT ALL + COUNT ( * ) - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 WHERE NOT + CAST ( + col1 AS REAL ) IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 30 * + 75 col0 FROM tab1
----
-2250
-2250
-2250

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col1 * col2 + col1 > NULL
----

query I rowsort
SELECT DISTINCT col1 * - + 86 * col2 FROM tab2
----
-100878
-264880
-334196

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1841
SELECT DISTINCT - COUNT( - - col2 ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-1841
SELECT DISTINCT - COUNT ( - - col2 ) AS col1 FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1842
SELECT ALL - ( + + MAX( + col2 ) ) AS col0 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-1842
SELECT ALL - ( + + MAX ( + col2 ) ) AS col0 FROM tab0 AS cor0
----
-99

query I rowsort
SELECT + col2 + + - col2 * 44 FROM tab0 AS cor0
----
-2021
-4257
-430

onlyif mysql # aggregate syntax: 
query I rowsort label-1844
SELECT DISTINCT SUM( col1 ) / + 95 FROM tab2 AS cor0 WHERE NULL = ( col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1844
SELECT DISTINCT SUM ( col1 ) / + 95 FROM tab2 AS cor0 WHERE NULL = ( col1 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1845
SELECT DISTINCT CAST( - col1 AS SIGNED ) AS col0 FROM tab2 cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-1845
SELECT DISTINCT CAST ( - col1 AS INTEGER ) AS col0 FROM tab2 cor0
----
-51
-67
-77

query I rowsort
SELECT - 42 * + 82 FROM tab1 WHERE NULL IN ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1847
SELECT DISTINCT + MAX( + col0 ) AS col2 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-1847
SELECT DISTINCT + MAX ( + col0 ) AS col2 FROM tab2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1848
SELECT ALL - + 52 + COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-43

skipif mysql # not compatible
query I rowsort label-1848
SELECT ALL - + 52 + COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-1849
SELECT - 12 + COUNT( 59 ) AS col1 FROM tab1 WHERE NULL > NULL
----
-12

skipif mysql # not compatible
query I rowsort label-1849
SELECT - 12 + COUNT ( 59 ) AS col1 FROM tab1 WHERE NULL > NULL
----
-12

query II rowsort
SELECT ALL col0, col1 * 40 FROM tab2 cor0
----
46
2040
64
3080
75
2680

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 = + + 34
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col0 - - col1 AS col2 FROM tab1 AS cor0 WHERE col1 NOT BETWEEN - + ( + 66 ) AND col1 * + col0
----

query I rowsort
SELECT DISTINCT + col0 + + - 32 * + 13 FROM tab2 cor0
----
-341
-352
-370

query I rowsort
SELECT 7 + + col2 AS col2 FROM tab2 AS cor0
----
30
47
65

onlyif mysql # DIV for integer division: 
query I rowsort label-1855
SELECT - 94 DIV + col2 + 90 FROM tab1
----
89
89
90

skipif mysql # not compatible
query I rowsort label-1855
SELECT - 94 / + col2 + 90 FROM tab1
----
89
89
90

query I rowsort
SELECT DISTINCT + AVG ( - 18 ) AS col2 FROM tab2 WHERE ( + 27 ) IS NULL
----
NULL

query I rowsort
SELECT DISTINCT col1 - - ( - + col2 ) FROM tab1
----
-21
-54
-82

query I rowsort
SELECT DISTINCT + + col0 * + col0 + col0 FROM tab2 WHERE col1 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1859
SELECT DISTINCT + COUNT( * ) - + SUM( DISTINCT - + col2 ) FROM tab0 cor0
----
159

skipif mysql # not compatible
query I rowsort label-1859
SELECT DISTINCT + COUNT ( * ) - + SUM ( DISTINCT - + col2 ) FROM tab0 cor0
----
159

query I rowsort
SELECT 11 * - col2 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( 56 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1861
SELECT - 44 DIV - - col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1861
SELECT - 44 / - - col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL 30 AS col0 FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( NOT - 81 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1864
SELECT DISTINCT COUNT( * ) * - SUM( DISTINCT col2 ) FROM tab0
----
-468

skipif mysql # not compatible
query I rowsort label-1864
SELECT DISTINCT COUNT ( * ) * - SUM ( DISTINCT col2 ) FROM tab0
----
-468

onlyif mysql # aggregate syntax: 
query I rowsort label-1865
SELECT MIN( ALL 30 ) AS col2 FROM tab2 WHERE NOT NULL > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1865
SELECT MIN ( ALL 30 ) AS col2 FROM tab2 WHERE NOT NULL > NULL
----
NULL

query I rowsort
SELECT DISTINCT - 94 * - - 74 FROM tab1
----
-6956

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE NOT NULL < - col0 / - col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1868
SELECT DISTINCT - 51 * - + 62 + - CAST( + MIN( + col2 ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
3103

skipif mysql # not compatible
query I rowsort label-1868
SELECT DISTINCT - 51 * - + 62 + - CAST ( + MIN ( + col2 ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
3103

query I rowsort
SELECT + col0 * + + col1 + + ( + col0 ) * - - ( col2 ) FROM tab1 AS cor0
----
10465
5440
5610

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 5 + + col0 + col2 * col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-1871
SELECT DISTINCT + col0 DIV 62 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-1871
SELECT DISTINCT + col0 / 62 FROM tab2 AS cor0
----
0
1

query I rowsort
SELECT - col2 * - - 38 * col1 * ( - col0 ) FROM tab1 AS cor0
----
11051768
2604672
952850

onlyif mysql # aggregate syntax: 
query I rowsort label-1873
SELECT ALL SUM( - col1 ) AS col2 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-1873
SELECT ALL SUM ( - col1 ) AS col2 FROM tab1 AS cor0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-1874
SELECT + MIN( DISTINCT - 64 ) * ( - 63 ) FROM tab2 cor0
----
4032

skipif mysql # not compatible
query I rowsort label-1874
SELECT + MIN ( DISTINCT - 64 ) * ( - 63 ) FROM tab2 cor0
----
4032

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1875
SELECT * FROM tab2 WHERE NOT CAST( + + col1 AS SIGNED ) NOT IN ( + + ( + col1 ) / - 36 )
----

skipif mysql # not compatible
query III rowsort label-1875
SELECT * FROM tab2 WHERE NOT CAST ( + + col1 AS INTEGER ) NOT IN ( + + ( + col1 ) / - 36 )
----

query I rowsort
SELECT ALL - 72 + + - col2 FROM tab0
----
-119
-171
-82

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - - col2 ) = NULL
----

query II rowsort
SELECT DISTINCT - col1 AS col0, - 5 FROM tab2
----
-51
-5
-67
-5
-77
-5

query I rowsort
SELECT ALL 93 * + + 56 AS col1 FROM tab0
----
5208
5208
5208

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 BETWEEN - col0 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 69 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 10 + col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 79 + - col1 * + - 52 AS col2 FROM tab2 AS cor0
----
2731
3563
4083

query I rowsort
SELECT ALL col0 + + 10 + + 83 * + col2 - + - col2 * col1 FROM tab1
----
5287
8941
9373

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1885
SELECT - 4 DIV 96 + - COUNT( * ) * - - 72 AS col0 FROM tab2
----
-216

skipif mysql # not compatible
query I rowsort label-1885
SELECT - 4 / 96 + - COUNT ( * ) * - - 72 AS col0 FROM tab2
----
-216

query I rowsort
SELECT DISTINCT col2 - 74 - - col1 FROM tab2
----
0
43
51

query I rowsort
SELECT DISTINCT + col2 / + 26 + + 89 AS col1 FROM tab1 WHERE NOT ( + col1 ) < + 48
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1888
SELECT COUNT( ( - 2 ) ) + - 87 FROM tab2
----
-84

skipif mysql # not compatible
query I rowsort label-1888
SELECT COUNT ( ( - 2 ) ) + - 87 FROM tab2
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-1889
SELECT - + COUNT( - col1 ) * 93 FROM tab0 AS cor0
----
-279

skipif mysql # not compatible
query I rowsort label-1889
SELECT - + COUNT ( - col1 ) * 93 FROM tab0 AS cor0
----
-279

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 99 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1891
SELECT ALL - MIN( DISTINCT + 73 ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-73

skipif mysql # not compatible
query I rowsort label-1891
SELECT ALL - MIN ( DISTINCT + 73 ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-73

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-1892
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND + ( ( CAST( + - CAST( NULL AS DECIMAL ) AS SIGNED ) ) ) * - 52 + col0
----

skipif mysql # not compatible
query III rowsort label-1892
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND + ( ( CAST ( + - CAST ( NULL AS REAL ) AS INTEGER ) ) ) * - 52 + col0
----

query I rowsort
SELECT col2 + + 22 AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
121
32
69

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col2 = col0 + 45 OR NOT - - 6 NOT IN ( - col1 * + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + - 98 col2 FROM tab2
----
-121
-138
-156

query I rowsort
SELECT DISTINCT - 47 + 88 FROM tab1 WHERE + col2 + + - ( 24 ) * 32 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1897
SELECT ALL + SUM( - + col2 ) + + 77 FROM tab1
----
-146

skipif mysql # not compatible
query I rowsort label-1897
SELECT ALL + SUM ( - + col2 ) + + 77 FROM tab1
----
-146

query I rowsort
SELECT DISTINCT + 57 - 97 FROM tab0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-1899
SELECT + COUNT( * ) - COUNT( DISTINCT + ( + col1 ) ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1899
SELECT + COUNT ( * ) - COUNT ( DISTINCT + ( + col1 ) ) AS col2 FROM tab1
----
0

query I rowsort
SELECT ALL + 36 * + col1 - - 81 FROM tab0
----
117
2997
837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 51 col0 FROM tab0 WHERE NULL BETWEEN ( NULL ) AND ( - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 58 col1, - col2 * + + 85 AS col2 FROM tab2
----
58
-1955
58
-3400
58
-4930

query II rowsort
SELECT col2 AS col1, col1 * - + col1 AS col1 FROM tab1
----
59
-25
68
-2209
96
-196

query I rowsort
SELECT - + col1 * + + col2 * col2 AS col1 FROM tab0 AS cor0
----
-178929
-2100
-9801

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col1 + - 30 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1906
SELECT DISTINCT MAX( col0 ) AS col0 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-1906
SELECT DISTINCT MAX ( col0 ) AS col0 FROM tab0 AS cor0
----
97

query I rowsort
SELECT DISTINCT + 13 AS col1 FROM tab0 cor0
----
13

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL IS NOT NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 74 * 30 col0 FROM tab1
----
2220
2220
2220

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1910
SELECT ALL * FROM tab2 cor0 WHERE NULL NOT IN ( CAST( NULL AS SIGNED ), ( col0 ) )
----

skipif mysql # not compatible
query III rowsort label-1910
SELECT ALL * FROM tab2 cor0 WHERE NULL NOT IN ( CAST ( NULL AS INTEGER ), ( col0 ) )
----

query I rowsort
SELECT ALL - 25 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1912
SELECT + AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1912
SELECT + AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1913
SELECT DISTINCT - - SUM( + col2 ) FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-1913
SELECT DISTINCT - - SUM ( + col2 ) FROM tab1 AS cor0
----
223

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL IN ( + 14, col0 + + col2 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 23 * 51 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1916
SELECT ALL - SUM( ALL - col1 ) * - 14 FROM tab1 AS cor0
----
-924

skipif mysql # not compatible
query I rowsort label-1916
SELECT ALL - SUM ( ALL - col1 ) * - 14 FROM tab1 AS cor0
----
-924

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col2 NOT BETWEEN ( col2 * - 41 ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1918
SELECT + MAX( - + col1 ) FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-1918
SELECT + MAX ( - + col1 ) FROM tab1 AS cor0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-1919
SELECT ALL COUNT( * ) + - 75 FROM tab1
----
-72

skipif mysql # not compatible
query I rowsort label-1919
SELECT ALL COUNT ( * ) + - 75 FROM tab1
----
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1920
SELECT ALL + 62 + + MAX( - col0 ) DIV + - 11 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-1920
SELECT ALL + 62 + + MAX ( - col0 ) / + - 11 FROM tab1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-1921
SELECT ALL + COUNT( + col2 ) * 20 AS col2 FROM tab0
----
60

skipif mysql # not compatible
query I rowsort label-1921
SELECT ALL + COUNT ( + col2 ) * 20 AS col2 FROM tab0
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1922
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - 37 - + col1 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1922
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - 37 - + col1 AS col0 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1923
SELECT DISTINCT 75 DIV + - col1 FROM tab2
----
-1
0

skipif mysql # not compatible
query I rowsort label-1923
SELECT DISTINCT 75 / + - col1 FROM tab2
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1924
SELECT ( - + MIN( DISTINCT col0 ) ) FROM tab0 WHERE NULL BETWEEN NULL AND + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1924
SELECT ( - + MIN ( DISTINCT col0 ) ) FROM tab0 WHERE NULL BETWEEN NULL AND + col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1925
SELECT DISTINCT 4 * MIN( - CAST( NULL AS DECIMAL ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1925
SELECT DISTINCT 4 * MIN ( - CAST ( NULL AS REAL ) ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1926
SELECT DISTINCT - COUNT( col0 ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1926
SELECT DISTINCT - COUNT ( col0 ) AS col2 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT ALL 23 * + + col1 * col1 * - col1 AS col2 FROM tab1 AS cor0
----
-2387929
-2875
-63112

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 6 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-1929
SELECT ALL COUNT( ALL CAST( col1 AS DECIMAL ) ) DIV 47 DIV 53, COUNT( * ) * + 4 col1 FROM tab2 AS cor0
----
0
12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1929
SELECT ALL COUNT ( ALL CAST ( col1 AS REAL ) ) / 47 / 53, COUNT ( * ) * + 4 col1 FROM tab2 AS cor0
----
0
12

query I rowsort
SELECT ALL ( + col2 ) - col0 + - + 7 * - 50 FROM tab2
----
326
327
333

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1931
SELECT CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE ( 67 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-1931
SELECT CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE ( 67 ) IS NULL
----

query I rowsort
SELECT - col1 FROM tab2 cor0 WHERE ( NULL ) IS NULL
----
-51
-67
-77

query I rowsort
SELECT ALL 55 - - col2 AS col0 FROM tab0 AS cor0
----
102
154
65

onlyif mysql # aggregate syntax: 
query I rowsort label-1934
SELECT DISTINCT + 87 * SUM( - 45 ) AS col1 FROM tab2 AS cor0
----
-11745

skipif mysql # not compatible
query I rowsort label-1934
SELECT DISTINCT + 87 * SUM ( - 45 ) AS col1 FROM tab2 AS cor0
----
-11745

query I rowsort
SELECT DISTINCT + 66 AS col0 FROM tab2 cor0
----
66

query I rowsort
SELECT - + 47 + + col0 AS col0 FROM tab1 AS cor0
----
38
4
44

query II rowsort
SELECT DISTINCT + ( col0 ), col1 FROM tab0
----
15
81
87
21
97
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1938
SELECT DISTINCT - CAST( - - AVG ( - col2 ) AS SIGNED ) FROM tab2
----
40

skipif mysql # not compatible
query I rowsort label-1938
SELECT DISTINCT - CAST ( - - AVG ( - col2 ) AS INTEGER ) FROM tab2
----
40

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT ( - col2 - - col1 <= ( ( + - col0 ) ) ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1940
SELECT MIN( CAST( NULL AS SIGNED ) ) col2, + SUM( col0 ) FROM tab1
----
NULL
227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1940
SELECT MIN ( CAST ( NULL AS INTEGER ) ) col2, + SUM ( col0 ) FROM tab1
----
NULL
227

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1941
SELECT DISTINCT + CAST( NULL AS SIGNED ) / + - col1 * + 25 * - 94 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1941
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / + - col1 * + 25 * - 94 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 51 col2 FROM tab0
----
51
51
51

query II rowsort
SELECT - col2 AS col1, + 7 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT + + 73 * - col2 AS col1, ( 30 ) AS col2 FROM tab2 AS cor0
----
-1679
30
-2920
30
-4234
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1945
SELECT DISTINCT - CAST( - 82 AS SIGNED ) AS col1 FROM tab2
----
82

skipif mysql # not compatible
query I rowsort label-1945
SELECT DISTINCT - CAST ( - 82 AS INTEGER ) AS col1 FROM tab2
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-1946
SELECT DISTINCT - SUM( DISTINCT - 31 ) FROM tab0
----
31

skipif mysql # not compatible
query I rowsort label-1946
SELECT DISTINCT - SUM ( DISTINCT - 31 ) FROM tab0
----
31

onlyif mysql # aggregate syntax: 
query II rowsort label-1947
SELECT - - 39, + 99 * + MIN( DISTINCT + 90 ) AS col1 FROM tab0 cor0
----
39
8910

skipif mysql # not compatible
query II rowsort label-1947
SELECT - - 39, + 99 * + MIN ( DISTINCT + 90 ) AS col1 FROM tab0 cor0
----
39
8910

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1948
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) <> CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-1948
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) <> CAST ( NULL AS REAL )
----

query II rowsort
SELECT DISTINCT 56, col0 FROM tab0 AS cor0
----
56
15
56
87
56
97

query II rowsort
SELECT DISTINCT - + col0, - 93 AS col2 FROM tab2 AS cor0
----
-46
-93
-64
-93
-75
-93

onlyif mysql # aggregate syntax: 
query II rowsort label-1951
SELECT ALL + - COUNT( * ) AS col2, 51 FROM tab2 AS cor0
----
-3
51

skipif mysql # not compatible
query II rowsort label-1951
SELECT ALL + - COUNT ( * ) AS col2, 51 FROM tab2 AS cor0
----
-3
51

query I rowsort
SELECT - col1 + ( col1 ) FROM tab1 cor0
----
0
0
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN ( + - 47 ) AND ( NULL )
----

query I rowsort
SELECT ALL + - 2 + + + col0 * + col0 AS col1 FROM tab0 AS cor0
----
223
7567
9407

query I rowsort
SELECT DISTINCT - 34 + 34 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL col0 * + col0 * + col1 AS col1 FROM tab2
----
107916
315392
376875

onlyif mysql # aggregate syntax: 
query II rowsort label-1957
SELECT SUM( 91 ) AS col2, 22 col1 FROM tab0
----
273
22

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1957
SELECT SUM ( 91 ) AS col2, 22 col1 FROM tab0
----
273
22

query I rowsort
SELECT DISTINCT 3 / + col2 AS col0 FROM tab1 WHERE NULL <= - - col2
----

query I rowsort
SELECT ALL + col0 + 72 FROM tab1
----
123
157
163

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL BETWEEN ( NULL ) AND ( ( + 67 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1961
SELECT ALL - 27 + - COUNT( * ) FROM tab1
----
-30

skipif mysql # not compatible
query I rowsort label-1961
SELECT ALL - 27 + - COUNT ( * ) FROM tab1
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1962
SELECT CAST( 57 AS SIGNED ) AS col0 FROM tab1
----
57
57
57

skipif mysql # not compatible
query I rowsort label-1962
SELECT CAST ( 57 AS INTEGER ) AS col0 FROM tab1
----
57
57
57

query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( + + col0 / + col0, - 90, - col2 * col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( col0 = NULL )
----

query I rowsort
SELECT DISTINCT ( - 60 ) FROM tab2 cor0
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-1966
SELECT ALL + MIN( ALL - - col0 ) FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-1966
SELECT ALL + MIN ( ALL - - col0 ) FROM tab1
----
51

query I rowsort
SELECT ALL - col0 FROM tab1 WHERE NOT + + ( - + ( + - col1 ) ) IS NULL
----
-51
-85
-91

query II rowsort
SELECT col2, + col2 AS col2 FROM tab1
----
59
59
68
68
96
96

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 BETWEEN 52 * + - col0 AND + col2
----

query I rowsort
SELECT + 15 FROM tab2 WHERE NOT NULL IS NOT NULL
----
15
15
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 AS col0, col0 col0 FROM tab2
----
46
46
64
64
75
75

query I rowsort
SELECT + col1 * - + 87 FROM tab1
----
-1218
-4089
-435

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL <> - - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1974
SELECT ALL col0 DIV col2 * + 35 AS col0 FROM tab2
----
35
35
70

skipif mysql # not compatible
query I rowsort label-1974
SELECT ALL col0 / col2 * + 35 AS col0 FROM tab2
----
35
35
70

query I rowsort
SELECT ALL 73 AS col2 FROM tab1 WHERE 94 IN ( - 1, col1 * + - col1 )
----

query I rowsort
SELECT + col2 + col0 FROM tab1 WHERE NOT + + col1 * - + col0 * - col1 + 98 * - + col2 IS NULL
----
144
147
159

onlyif mysql # aggregate syntax: 
query I rowsort label-1977
SELECT DISTINCT + MIN( DISTINCT + - ( + - col2 ) ) FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-1977
SELECT DISTINCT + MIN ( DISTINCT + - ( + - col2 ) ) FROM tab1
----
59

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( + 38 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 14 <= NULL
----

query I rowsort
SELECT DISTINCT - col1 / - col1 * + + col1 / + col0 AS col2 FROM tab0 AS cor0 WHERE NOT col1 >= NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-1981
SELECT col0 DIV - 35 AS col1, col2 AS col0 FROM tab2
----
-1
23
-1
40
-2
58

skipif mysql # not compatible
query II rowsort label-1981
SELECT col0 / - 35 AS col1, col2 AS col0 FROM tab2
----
-1
23
-1
40
-2
58

query I rowsort
SELECT DISTINCT - ( col1 ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 * - + ( - + 20 ) + + ( + + 21 ) FROM tab0
----
2001
221
961

onlyif mysql # aggregate syntax: 
query I rowsort label-1984
SELECT DISTINCT - 61 + + - COUNT( * ) + + COUNT( * ) * COUNT( * ) - - 19 col2 FROM tab2
----
-36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1984
SELECT DISTINCT - 61 + + - COUNT ( * ) + + COUNT ( * ) * COUNT ( * ) - - 19 col2 FROM tab2
----
-36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1985
SELECT ( COUNT( * ) ) DIV COUNT( * ) + - 70 AS col2 FROM tab1
----
-69

skipif mysql # not compatible
query I rowsort label-1985
SELECT ( COUNT ( * ) ) / COUNT ( * ) + - 70 AS col2 FROM tab1
----
-69

query II rowsort
SELECT DISTINCT + col2 AS col1, col2 AS col1 FROM tab1
----
59
59
68
68
96
96

onlyif mysql # DIV for integer division: 
query II rowsort label-1987
SELECT col2 DIV - 99 + + col2 AS col0, col1 DIV col0 + - col1 FROM tab1
----
59
-5
68
-47
96
-14

skipif mysql # not compatible
query II rowsort label-1987
SELECT col2 / - 99 + + col2 AS col0, col1 / col0 + - col1 FROM tab1
----
59
-5
68
-47
96
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-1988
SELECT DISTINCT - COUNT( * ) FROM tab1 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-1988
SELECT DISTINCT - COUNT ( * ) FROM tab1 WHERE NULL IS NULL
----
-3

query I rowsort
SELECT ALL - + col0 * + - col2 AS col0 FROM tab2 cor0
----
1058
2560
4350

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1990
SELECT ALL CAST( - + SUM( ALL col1 ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-1990
SELECT ALL CAST ( - + SUM ( ALL col1 ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-1991
SELECT ALL - ( + SUM( + col1 ) ) FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-1991
SELECT ALL - ( + SUM ( + col1 ) ) FROM tab1 AS cor0
----
-66

query I rowsort
SELECT DISTINCT - 26 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-1993
SELECT ALL COUNT( * ) + - 51 FROM tab0
----
-48

skipif mysql # not compatible
query I rowsort label-1993
SELECT ALL COUNT ( * ) + - 51 FROM tab0
----
-48

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1994
SELECT DISTINCT - + CAST( NULL AS DECIMAL ) * COUNT( 87 ) col1 FROM ( tab1 cor0 CROSS JOIN tab2 AS cor1 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1994
SELECT DISTINCT - + CAST ( NULL AS REAL ) * COUNT ( 87 ) col1 FROM ( tab1 cor0 CROSS JOIN tab2 AS cor1 )
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 * + 32 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( col1 ) NOT BETWEEN col1 AND NULL
----

query I rowsort
SELECT ALL 15 AS col2 FROM tab1 cor0
----
15
15
15

onlyif mysql # aggregate syntax: 
query I rowsort label-1998
SELECT DISTINCT - + ( + + SUM( - - 34 ) ) FROM tab0 AS cor0
----
-102

skipif mysql # not compatible
query I rowsort label-1998
SELECT DISTINCT - + ( + + SUM ( - - 34 ) ) FROM tab0 AS cor0
----
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-1999
SELECT ALL + 12 * + COUNT( * ) + 81 * - - 64 FROM tab2 AS cor0
----
5220

skipif mysql # not compatible
query I rowsort label-1999
SELECT ALL + 12 * + COUNT ( * ) + 81 * - - 64 FROM tab2 AS cor0
----
5220

onlyif mysql # aggregate syntax: 
query I rowsort label-2000
SELECT COUNT( DISTINCT + col1 ) * + + 10 AS col0 FROM tab1 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-2000
SELECT COUNT ( DISTINCT + col1 ) * + + 10 AS col0 FROM tab1 AS cor0
----
30

query I rowsort
SELECT - col2 FROM tab1 AS cor0 WHERE NOT - col0 = - + 90 * + col0
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2002
SELECT - ( + col2 ) * - col0 * - 38 + + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2002
SELECT - ( + col2 ) * - col0 * - 38 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 35 * + 89 FROM tab1
----
3115
3115
3115

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL = col1 * + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2005
SELECT COUNT( * ) * - + MIN( ( - 18 ) ) FROM tab0
----
54

skipif mysql # not compatible
query I rowsort label-2005
SELECT COUNT ( * ) * - + MIN ( ( - 18 ) ) FROM tab0
----
54

query III rowsort
SELECT * FROM tab1 WHERE NOT + 18 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-2007
SELECT ALL 56, COUNT( * ) AS col1 FROM tab1
----
56
3

skipif mysql # not compatible
query II rowsort label-2007
SELECT ALL 56, COUNT ( * ) AS col1 FROM tab1
----
56
3

query I rowsort
SELECT ALL 61 AS col2 FROM tab2 cor0
----
61
61
61

onlyif mysql # DIV for integer division: 
query I rowsort label-2009
SELECT ALL - - 40 DIV + col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2009
SELECT ALL - - 40 / + col1 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT - col2 <= NULL
----

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( + 63 ) IS NULL
----

query II rowsort
SELECT - col1, col0 + - - col2 * - 83 + + 4 AS col1 FROM tab2 WHERE NOT - - 39 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2013
SELECT DISTINCT - COUNT( * ), - COUNT( - col2 ) FROM tab1
----
-3
-3

skipif mysql # not compatible
query II rowsort label-2013
SELECT DISTINCT - COUNT ( * ), - COUNT ( - col2 ) FROM tab1
----
-3
-3

query I rowsort
SELECT ALL col0 * + + 12 * col0 FROM tab1
----
31212
86700
99372

onlyif mysql # aggregate syntax: 
query I rowsort label-2015
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT 69 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2015
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT 69 IS NOT NULL
----
0

query I rowsort
SELECT + - col2 + - col0 * - ( col0 ) + - - col0 FROM tab2 AS cor0
----
2139
4120
5642

onlyif mysql # aggregate syntax: 
query I rowsort label-2017
SELECT - MAX( DISTINCT + - 28 ) + MAX( - + col1 ) FROM tab0 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-2017
SELECT - MAX ( DISTINCT + - 28 ) + MAX ( - + col1 ) FROM tab0 AS cor0
----
27

query I rowsort
SELECT + - col1 AS col0 FROM tab1 AS cor0 WHERE NULL <= col2 * + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2019
SELECT - - 15 * + col2 + + - CAST( - col1 AS SIGNED ) + col1 FROM tab0 AS cor0
----
1487
192
867

skipif mysql # not compatible
query I rowsort label-2019
SELECT - - 15 * + col2 + + - CAST ( - col1 AS INTEGER ) + col1 FROM tab0 AS cor0
----
1487
192
867

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2020
SELECT 0 FROM tab1 AS cor0 WHERE ( + CAST( NULL AS SIGNED ) ) > NULL
----

skipif mysql # not compatible
query I rowsort label-2020
SELECT 0 FROM tab1 AS cor0 WHERE ( + CAST ( NULL AS INTEGER ) ) > NULL
----

query I rowsort
SELECT - col2 + - col0 + + col2 * - ( - col2 ) AS col1 FROM tab1 AS cor0
----
3337
4465
9069

query II rowsort
SELECT 53 AS col2, col0 + - col1 AS col2 FROM tab1 AS cor0
----
53
37
53
44
53
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 AS col1, col2 + + + col2 col0 FROM tab1 AS cor0
----
51
192
85
118
91
136

query I rowsort
SELECT ALL + + col1 + - 50 * + + col2 AS col2 FROM tab0 AS cor0
----
-2269
-479
-4949

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 + - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-2026
SELECT 19 DIV + ( col1 ) FROM tab0 AS cor0
----
0
0
19

skipif mysql # not compatible
query I rowsort label-2026
SELECT 19 / + ( col1 ) FROM tab0 AS cor0
----
0
0
19

onlyif mysql # aggregate syntax: 
query I rowsort label-2027
SELECT ALL COUNT( * ) + - - 94 - + 33 col0 FROM tab1
----
64

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2027
SELECT ALL COUNT ( * ) + - - 94 - + 33 col0 FROM tab1
----
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 1 + 1 col2, + col1 col1 FROM tab2
----
2
51
2
67
2
77

query I rowsort
SELECT col2 - col2 + col1 * - - col1 + - col2 FROM tab1
----
-34
100
2141

query I rowsort
SELECT - + col1 - + + col1 + + col2 AS col2 FROM tab0 cor0
----
-115
-32
97

onlyif mysql # DIV for integer division: 
query I rowsort label-2031
SELECT - col1 DIV col1 - - 98 AS col1 FROM tab0 AS cor0
----
97
97
97

skipif mysql # not compatible
query I rowsort label-2031
SELECT - col1 / col1 - - 98 AS col1 FROM tab0 AS cor0
----
97
97
97

query II rowsort
SELECT - col0 + - col0 AS col0, 75 AS col2 FROM tab0 AS cor0
----
-174
75
-194
75
-30
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2033
SELECT DISTINCT + - ( + - MAX( + - col0 ) ) FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-2033
SELECT DISTINCT + - ( + - MAX ( + - col0 ) ) FROM tab2 AS cor0
----
-46

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 / - col0 BETWEEN NULL AND NULL
----

query I rowsort
SELECT - - 56 + + col1 FROM tab2 AS cor0
----
107
123
133

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2036
SELECT DISTINCT col2 * - + CAST( NULL AS SIGNED ) + - 60 * + - 72 AS col1 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2036
SELECT DISTINCT col2 * - + CAST ( NULL AS INTEGER ) + - 60 * + - 72 AS col1 FROM tab1 cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2037
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * - 79 + CAST( + ( - - COUNT( * ) ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2037
SELECT DISTINCT - CAST ( NULL AS REAL ) * - 79 + CAST ( + ( - - COUNT ( * ) ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2038
SELECT DISTINCT - 63 AS col0, col1 DIV - col2 AS col2 FROM tab0 AS cor0
----
-63
-1
-63
-2
-63
0

skipif mysql # not compatible
query II rowsort label-2038
SELECT DISTINCT - 63 AS col0, col1 / - col2 AS col2 FROM tab0 AS cor0
----
-63
-1
-63
-2
-63
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2039
SELECT ALL - COUNT( * ) col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN + col2 AND ( - col1 - col1 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2039
SELECT ALL - COUNT ( * ) col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN + col2 AND ( - col1 - col1 )
----
0

query II rowsort
SELECT ALL - 79, col1 AS col1 FROM tab1 AS cor0
----
-79
14
-79
47
-79
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2041
SELECT ALL 73 * + CAST( NULL AS SIGNED ) + - COUNT( * ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2041
SELECT ALL 73 * + CAST ( NULL AS INTEGER ) + - COUNT ( * ) FROM tab2 cor0
----
NULL

query I rowsort
SELECT col1 * - col0 * - + 44 FROM tab2
----
103224
216832
221100

query I rowsort
SELECT + + col1 * + 65 AS col1 FROM tab2 WHERE NOT ( NOT col2 < NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - ( - 45 ) IS NULL
----

query I rowsort
SELECT + ( + 53 ) FROM tab2 WHERE NULL <> + col1
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2046
SELECT DISTINCT + CAST( CAST( NULL AS SIGNED ) AS DECIMAL ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2046
SELECT DISTINCT + CAST ( CAST ( NULL AS INTEGER ) AS REAL ) FROM tab0 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2047
SELECT DISTINCT - col1 * col2 * - - CAST( NULL AS SIGNED ) + + + col1 + + 20 + + col1 * + col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2047
SELECT DISTINCT - col1 * col2 * - - CAST ( NULL AS INTEGER ) + + + col1 + + 20 + + col1 * + col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2048
SELECT - COUNT( * ) * + + COUNT( * ) + - 4 AS col0 FROM tab1
----
-13

skipif mysql # not compatible
query I rowsort label-2048
SELECT - COUNT ( * ) * + + COUNT ( * ) + - 4 AS col0 FROM tab1
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-2049
SELECT COUNT( * ) + 78 AS col0 FROM tab2
----
81

skipif mysql # not compatible
query I rowsort label-2049
SELECT COUNT ( * ) + 78 AS col0 FROM tab2
----
81

query III rowsort
SELECT ALL * FROM tab2 WHERE - 61 NOT BETWEEN col0 AND 16
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2051
SELECT ALL MAX( DISTINCT + 6 ) AS col0 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-2051
SELECT ALL MAX ( DISTINCT + 6 ) AS col0 FROM tab0
----
6

query I rowsort
SELECT - 47 * + col2 + - col1 FROM tab2
----
-1132
-1957
-2793

onlyif mysql # DIV for integer division: 
query I rowsort label-2053
SELECT DISTINCT - col2 * + - col0 + + col2 DIV + col1 * - + col1 col2 FROM tab2
----
1058
2560
4350

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2053
SELECT DISTINCT - col2 * + - col0 + + col2 / + col1 * - + col1 col2 FROM tab2
----
1058
2560
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-2054
SELECT - 50 + - COUNT( * ) FROM tab0
----
-53

skipif mysql # not compatible
query I rowsort label-2054
SELECT - 50 + - COUNT ( * ) FROM tab0
----
-53

query I rowsort
SELECT ALL + col2 + - + col0 AS col2 FROM tab1
----
-23
-26
45

query I rowsort
SELECT ALL col0 + - + col0 + - - 80 AS col1 FROM tab1
----
80
80
80

query I rowsort
SELECT ALL col2 - + 49 FROM tab0
----
-2
-39
50

query II rowsort
SELECT DISTINCT - col2, col0 AS col1 FROM tab0 AS cor0
----
-10
87
-47
15
-99
97

query II rowsort
SELECT + col0, + col0 AS col1 FROM tab2 AS cor0
----
46
46
64
64
75
75

onlyif mysql # DIV for integer division: 
query I rowsort label-2060
SELECT col1 DIV - + 79 * - 83 * - + col1 * + - col2 + - 47 FROM tab1 AS cor0
----
-47
-47
-47

skipif mysql # not compatible
query I rowsort label-2060
SELECT col1 / - + 79 * - 83 * - + col1 * + - col2 + - 47 FROM tab1 AS cor0
----
-47
-47
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-2061
SELECT - 91 * + - COUNT( ALL + + col0 ) + + - COUNT( * ) FROM tab1 AS cor0
----
270

skipif mysql # not compatible
query I rowsort label-2061
SELECT - 91 * + - COUNT ( ALL + + col0 ) + + - COUNT ( * ) FROM tab1 AS cor0
----
270

query I rowsort
SELECT - 90 * - ( col1 ) FROM tab2
----
4590
6030
6930

onlyif mysql # aggregate syntax: 
query II rowsort label-2063
SELECT ALL COUNT( * ) AS col2, 90 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9
90

skipif mysql # not compatible
query II rowsort label-2063
SELECT ALL COUNT ( * ) AS col2, 90 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9
90

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2064
SELECT DISTINCT - 26, - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE 35 <= ( NULL )
----

skipif mysql # not compatible
query II rowsort label-2064
SELECT DISTINCT - 26, - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE 35 <= ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2065
SELECT DISTINCT - COUNT( * ) * SUM( DISTINCT + CAST( NULL AS DECIMAL ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2065
SELECT DISTINCT - COUNT ( * ) * SUM ( DISTINCT + CAST ( NULL AS REAL ) ) FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 + - + col2 IS NOT NULL
----

query II rowsort
SELECT + - ( 37 ), + 76 * + - col2 * - ( - - col1 ) AS col1 FROM tab2 AS cor0
----
-37
234080
-37
295336
-37
89148

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2068
SELECT + 36 * - SUM( - - 9 ) AS col2, + ( CAST( NULL AS SIGNED ) ) + + 19 FROM tab1 AS cor0
----
-972
NULL

skipif mysql # not compatible
query II rowsort label-2068
SELECT + 36 * - SUM ( - - 9 ) AS col2, + ( CAST ( NULL AS INTEGER ) ) + + 19 FROM tab1 AS cor0
----
-972
NULL

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab1 WHERE NOT - 46 + - + 96 + - - col1 BETWEEN + col1 AND + + 90 + + + col0
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2070
SELECT DISTINCT MIN( DISTINCT - 71 ) col0 FROM tab2
----
-71

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2070
SELECT DISTINCT MIN ( DISTINCT - 71 ) col0 FROM tab2
----
-71

query II rowsort
SELECT col0 * col1 * col2 AS col1, - 27 FROM tab2
----
197120
-27
291450
-27
53958
-27

query I rowsort
SELECT + 90 * - col1 AS col2 FROM tab0
----
-1890
-7290
-90

query I rowsort
SELECT DISTINCT - 34 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2074
SELECT ALL + MAX( + - 3 ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2074
SELECT ALL + MAX ( + - 3 ) AS col2 FROM tab0 AS cor0
----
-3

query II rowsort
SELECT DISTINCT + + col2 AS col1, 10 AS col1 FROM tab0 AS cor0
----
10
10
47
10
99
10

onlyif mysql # aggregate syntax: 
query I rowsort label-2076
SELECT ALL + SUM( DISTINCT + + col0 ) col0 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2076
SELECT ALL + SUM ( DISTINCT + + col0 ) col0 FROM tab2 AS cor0
----
185

query I rowsort
SELECT ALL - ( 47 ) + - - col1 AS col1 FROM tab1 AS cor0
----
-33
-42
0

query II rowsort
SELECT DISTINCT - col2, 88 * + + col2 AS col2 FROM tab1 AS cor0
----
-59
5192
-68
5984
-96
8448

query I rowsort
SELECT - 10 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f68f33032846e21ee6b2c668fc10355e

onlyif mysql # aggregate syntax: 
query I rowsort label-2080
SELECT - COUNT( + + 31 ) col2 FROM tab2 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-2080
SELECT - COUNT ( + + 31 ) col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2081
SELECT DISTINCT + 76 * ( - COUNT( * ) ) + - - 79 FROM tab0 cor0
----
-149

skipif mysql # not compatible
query I rowsort label-2081
SELECT DISTINCT + 76 * ( - COUNT ( * ) ) + - - 79 FROM tab0 cor0
----
-149

onlyif mysql # aggregate syntax: 
query I rowsort label-2082
SELECT DISTINCT - + ( - COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2082
SELECT DISTINCT - + ( - COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2083
SELECT SUM( DISTINCT - CAST( NULL AS SIGNED ) ) * - 34 + COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2083
SELECT SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) * - 34 + COUNT ( * ) FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT ALL 42 - 66, + 79 + - col2 AS col2 FROM tab2 AS cor0
----
-24
21
-24
39
-24
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - ( - col2 ) col2 FROM tab2 cor0
----
1058
2560
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-2086
SELECT + MAX( 40 ) FROM tab1 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-2086
SELECT + MAX ( 40 ) FROM tab1 AS cor0
----
40

query I rowsort
SELECT ALL + - col1 * + - ( - 93 ) FROM tab2 AS cor0
----
-4743
-6231
-7161

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2088
SELECT CAST( 33 AS SIGNED ) + - col1 AS col1 FROM tab2
----
-18
-34
-44

skipif mysql # not compatible
query I rowsort label-2088
SELECT CAST ( 33 AS INTEGER ) + - col1 AS col1 FROM tab2
----
-18
-34
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-2089
SELECT DISTINCT + COUNT( * ) - 30 * - + COUNT( * ) AS col0 FROM tab0
----
93

skipif mysql # not compatible
query I rowsort label-2089
SELECT DISTINCT + COUNT ( * ) - 30 * - + COUNT ( * ) AS col0 FROM tab0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-2090
SELECT ALL + + COUNT( * ) FROM tab0 WHERE + + 24 + col2 * + + col1 * + 99 + + + col0 <> col1
----
3

skipif mysql # not compatible
query I rowsort label-2090
SELECT ALL + + COUNT ( * ) FROM tab0 WHERE + + 24 + col2 * + + col1 * + 99 + + + col0 <> col1
----
3

query I rowsort
SELECT DISTINCT + col0 FROM tab0 cor0 WHERE - 67 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2092
SELECT * FROM tab1 AS cor0 WHERE col1 / CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2092
SELECT * FROM tab1 AS cor0 WHERE col1 / CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT - - 39 + col1 FROM tab2 AS cor0
----
106
116
90

onlyif mysql # DIV for integer division: 
query I rowsort label-2094
SELECT + col1 * 42 DIV + 78 FROM tab1 WHERE NOT - + col1 BETWEEN NULL AND + - col2
----
2
25
7

skipif mysql # not compatible
query I rowsort label-2094
SELECT + col1 * 42 / + 78 FROM tab1 WHERE NOT - + col1 BETWEEN NULL AND + - col2
----
2
25
7

query I rowsort
SELECT - ( - 54 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09

onlyif mysql # aggregate syntax: 
query I rowsort label-2096
SELECT ALL + ( - MIN( + col2 ) ) * + 56 + + + COUNT( * ) FROM tab2
----
-1285

skipif mysql # not compatible
query I rowsort label-2096
SELECT ALL + ( - MIN ( + col2 ) ) * + 56 + + + COUNT ( * ) FROM tab2
----
-1285

query II rowsort
SELECT - 63 AS col1, col2 AS col1 FROM tab1 cor0
----
-63
59
-63
68
-63
96

onlyif mysql # aggregate syntax: 
query II rowsort label-2098
SELECT + - 21, COUNT( * ) AS col0 FROM tab0 AS cor0
----
-21
3

skipif mysql # not compatible
query II rowsort label-2098
SELECT + - 21, COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-21
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col0 AND - 28
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2100
SELECT DISTINCT + SUM( ALL - 37 ) FROM tab1 cor0
----
-111

skipif mysql # not compatible
query I rowsort label-2100
SELECT DISTINCT + SUM ( ALL - 37 ) FROM tab1 cor0
----
-111

query III rowsort
SELECT * FROM tab2 WHERE NOT - 63 = - 73 * - col1 - - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 72 * - ( col2 ) col2 FROM tab0
----
-3384
-7128
-720

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2103
SELECT CAST( 91 AS SIGNED ) AS col1 FROM tab1
----
91
91
91

skipif mysql # not compatible
query I rowsort label-2103
SELECT CAST ( 91 AS INTEGER ) AS col1 FROM tab1
----
91
91
91

query I rowsort
SELECT 97 FROM tab1 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT col1 * - - col2 + - 56 AS col0, col0 FROM tab1
----
1288
51
239
85
3140
91

onlyif mysql # DIV for integer division: 
query I rowsort label-2106
SELECT + 24 * - col0 DIV + col0 + - col2 AS col0 FROM tab2
----
-47
-64
-82

skipif mysql # not compatible
query I rowsort label-2106
SELECT + 24 * - col0 / + col0 + - col2 AS col0 FROM tab2
----
-47
-64
-82

query II rowsort
SELECT + col2 + + col0 AS col1, + col2 + + - 81 + + col1 * - col0 + + - col1 FROM tab2
----
104
-5046
133
-5115
69
-2455

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2108
SELECT DISTINCT - SUM( DISTINCT - - CAST( - col2 AS SIGNED ) ) * 22 col2 FROM tab0
----
3432

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2108
SELECT DISTINCT - SUM ( DISTINCT - - CAST ( - col2 AS INTEGER ) ) * 22 col2 FROM tab0
----
3432

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2109
SELECT col2 * - 94 + + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2109
SELECT col2 * - 94 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2110
SELECT - col1 * - 17 + - col2 + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2110
SELECT - col1 * - 17 + - col2 + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 79 FROM tab1 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

query I rowsort
SELECT 92 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT 15 + 47 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2114
SELECT CAST( NULL AS SIGNED ) - + 80 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2114
SELECT CAST ( NULL AS INTEGER ) - + 80 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2115
SELECT ALL + COUNT( * ) * - - 62 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-2115
SELECT ALL + COUNT ( * ) * - - 62 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT DISTINCT - - col1 - + col2 * 0 * + col1 AS col0 FROM tab0 cor0
----
1
21
81

query I rowsort
SELECT ALL + col2 * + - 15 FROM tab1 AS cor0
----
-1020
-1440
-885

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab1 AS cor0 WHERE NOT 47 <> + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2119
SELECT - COUNT( * ) + + + COUNT( * ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2119
SELECT - COUNT ( * ) + + + COUNT ( * ) FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2120
SELECT SUM( - - col2 ) + SUM( - + col2 ) + + 53 * - 30 * + - COUNT( * ) AS col1 FROM tab1
----
4770

skipif mysql # not compatible
query I rowsort label-2120
SELECT SUM ( - - col2 ) + SUM ( - + col2 ) + + 53 * - 30 * + - COUNT ( * ) AS col1 FROM tab1
----
4770

query I rowsort
SELECT - col2 + + - 61 * + col2 + + - col1 * + 52 AS col2 FROM tab1
----
-3918
-6660
-6680

query I rowsort
SELECT + 63 + 93 * + - col2 + + 38 FROM tab2
----
-2038
-3619
-5293

query I rowsort
SELECT ALL + 56 + + col2 FROM tab0
----
103
155
66

onlyif mysql # DIV for integer division: 
query I rowsort label-2124
SELECT - 10 DIV + + col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2124
SELECT - 10 / + + col1 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2125
SELECT DISTINCT + SUM( + - 84 ) FROM tab1
----
-252

skipif mysql # not compatible
query I rowsort label-2125
SELECT DISTINCT + SUM ( + - 84 ) FROM tab1
----
-252

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 52 col2 FROM tab0 AS cor0
----
-52
-52
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-2127
SELECT ALL MIN( - 75 ) AS col1 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-2127
SELECT ALL MIN ( - 75 ) AS col1 FROM tab2 AS cor0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2128
SELECT ALL - - COUNT( * ) * - - COUNT( * ) * 77 FROM tab1 cor0
----
693

skipif mysql # not compatible
query I rowsort label-2128
SELECT ALL - - COUNT ( * ) * - - COUNT ( * ) * 77 FROM tab1 cor0
----
693

onlyif mysql # aggregate syntax: 
query I rowsort label-2129
SELECT + MAX( + 1 ) AS col0 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2129
SELECT + MAX ( + 1 ) AS col0 FROM tab1 AS cor0
----
1

query I rowsort
SELECT + col0 AS col0 FROM tab2 WHERE NOT col1 IS NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2131
SELECT ALL SUM( DISTINCT 4 ) AS col0 FROM tab0
----
4

skipif mysql # not compatible
query I rowsort label-2131
SELECT ALL SUM ( DISTINCT 4 ) AS col0 FROM tab0
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2132
SELECT + COUNT( * ) DIV - COUNT( * ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2132
SELECT + COUNT ( * ) / - COUNT ( * ) FROM tab0 AS cor0
----
-1

query I rowsort
SELECT col2 + 96 FROM tab0 cor0 WHERE NOT NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2134
SELECT DISTINCT + - SUM( - + col0 ) col2 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2134
SELECT DISTINCT + - SUM ( - + col0 ) col2 FROM tab1 AS cor0
----
227

query II rowsort
SELECT - + col0 + - col0 + - col0 AS col2, col0 * 4 FROM tab0 AS cor0
----
-261
348
-291
388
-45
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2136
SELECT + - col1 + CAST( + 24 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-27
-43
-53

skipif mysql # not compatible
query I rowsort label-2136
SELECT + - col1 + CAST ( + 24 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-27
-43
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2137
SELECT ALL COUNT( * ) + - - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2137
SELECT ALL COUNT ( * ) + - - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col0 * - col0 + - 86 IS NOT NULL
----

query IIIIII rowsort
SELECT ALL * FROM tab2, tab2 AS cor0 WHERE 28 IS NOT NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

onlyif mysql # aggregate syntax: 
query I rowsort label-2140
SELECT DISTINCT 88 + - COUNT( * ) col1 FROM tab2
----
85

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2140
SELECT DISTINCT 88 + - COUNT ( * ) col1 FROM tab2
----
85

query II rowsort
SELECT DISTINCT - + col0 AS col1, col0 FROM tab1 WHERE NOT - 64 IS NOT NULL
----

query II rowsort
SELECT - col2 AS col2, ( + + 11 ) AS col1 FROM tab2 cor0
----
-23
11
-40
11
-58
11

onlyif mysql # aggregate syntax: 
query II rowsort label-2143
SELECT COUNT( * ), + 25 AS col2 FROM tab0 AS cor0
----
3
25

skipif mysql # not compatible
query II rowsort label-2143
SELECT COUNT ( * ), + 25 AS col2 FROM tab0 AS cor0
----
3
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0, - 48 * - - 21 + - col0 * col2 col0 FROM tab2 AS cor0
----
46
-2066
64
-3568
75
-5358

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2145
SELECT + COUNT( * ) * - CAST( + + 99 AS SIGNED ) FROM tab2 AS cor0
----
-297

skipif mysql # not compatible
query I rowsort label-2145
SELECT + COUNT ( * ) * - CAST ( + + 99 AS INTEGER ) FROM tab2 AS cor0
----
-297

onlyif mysql # aggregate syntax: 
query I rowsort label-2146
SELECT - COUNT( * ) + COUNT( * ) * + COUNT( * ) FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-2146
SELECT - COUNT ( * ) + COUNT ( * ) * + COUNT ( * ) FROM tab1 AS cor0
----
6

query I rowsort
SELECT ALL - - 39 AS col0 FROM tab1 AS cor0 WHERE NULL >= - col2
----

query II rowsort
SELECT ALL + col0, - col1 * - col1 FROM tab1 AS cor0
----
51
196
85
25
91
2209

query I rowsort
SELECT + col0 * col1 - - + col2 + ( col1 ) AS col0 FROM tab0 AS cor0 WHERE + ( + - col0 ) > col0
----

query I rowsort
SELECT DISTINCT - col1 + - - col0 FROM tab1
----
37
44
80

query I rowsort
SELECT DISTINCT 36 - - col0 * + 56 AS col1 FROM tab2 AS cor0
----
2612
3620
4236

query II rowsort
SELECT ALL col1, col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
14
51
47
91
5
85

onlyif mysql # aggregate syntax: 
query I rowsort label-2153
SELECT DISTINCT + - MIN( DISTINCT col2 ) * COUNT( * ) col0 FROM tab2 AS cor0
----
-69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2153
SELECT DISTINCT + - MIN ( DISTINCT col2 ) * COUNT ( * ) col0 FROM tab2 AS cor0
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-2154
SELECT DISTINCT + ( - COUNT( * ) ) - - COUNT( * ) AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2154
SELECT DISTINCT + ( - COUNT ( * ) ) - - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2155
SELECT ALL + - MAX( ALL + col1 ) * + + 3 FROM tab2 AS cor0
----
-231

skipif mysql # not compatible
query I rowsort label-2155
SELECT ALL + - MAX ( ALL + col1 ) * + + 3 FROM tab2 AS cor0
----
-231

onlyif mysql # DIV for integer division: 
query I rowsort label-2156
SELECT ALL + col0 DIV - + col0 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2156
SELECT ALL + col0 / - + col0 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 71 - - 18 col0 FROM tab2 AS cor0
----
89
89
89

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2158
SELECT DISTINCT col1, CAST( NULL AS SIGNED ) + + + col1 AS col0 FROM tab0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-2158
SELECT DISTINCT col1, CAST ( NULL AS INTEGER ) + + + col1 AS col0 FROM tab0
----
1
NULL
21
NULL
81
NULL

query II rowsort
SELECT - col2 AS col1, ( + + col2 ) AS col2 FROM tab2
----
-23
23
-40
40
-58
58

query I rowsort
SELECT ALL - col1 * - 61 AS col2 FROM tab0
----
1281
4941
61

query I rowsort
SELECT DISTINCT 7 * + col0 FROM tab0
----
105
609
679

query I rowsort
SELECT DISTINCT + 49 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-2163
SELECT DISTINCT 7 DIV - + col0 AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2163
SELECT DISTINCT 7 / - + col0 AS col2 FROM tab0 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 >= - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2165
SELECT - SUM( + + 75 ) FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN 71 AND + col1 - + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2165
SELECT - SUM ( + + 75 ) FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN 71 AND + col1 - + col1
----
NULL

query I rowsort
SELECT 36 * - col0 * + col0 AS col2 FROM tab2
----
-147456
-202500
-76176

onlyif mysql # aggregate syntax: 
query I rowsort label-2167
SELECT ALL + COUNT( * ) + - - COUNT( * ) AS col1 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-2167
SELECT ALL + COUNT ( * ) + - - COUNT ( * ) AS col1 FROM tab1
----
6

query I rowsort
SELECT DISTINCT + col1 + + 64 FROM tab2
----
115
131
141

onlyif mysql # aggregate syntax: 
query I rowsort label-2169
SELECT DISTINCT - 83 * + COUNT( * ) + - - 48 AS col1 FROM tab2
----
-201

skipif mysql # not compatible
query I rowsort label-2169
SELECT DISTINCT - 83 * + COUNT ( * ) + - - 48 AS col1 FROM tab2
----
-201

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2170
SELECT ALL - 39 * + - CAST( NULL AS DECIMAL ) + - col0 - 30 + - col2 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2170
SELECT ALL - 39 * + - CAST ( NULL AS REAL ) + - col0 - 30 + - col2 AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 + ( col2 ) + ( - - col1 ) FROM tab1
----
14
47
5

query III rowsort
SELECT * FROM tab1 WHERE + 25 * + col1 >= NULL
----

query I rowsort
SELECT col0 + - - ( 96 ) + + 61 + + col1 FROM tab1
----
222
247
295

query I rowsort
SELECT 92 + + 27 FROM tab2
----
119
119
119

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 35 col0, col1 AS col1 FROM tab2
----
-35
51
-35
67
-35
77

query I rowsort
SELECT ALL - 59 + - col2 FROM tab0
----
-106
-158
-69

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 11 NOT IN ( - 8 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-2178
SELECT + 15 DIV + + 63 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2178
SELECT + 15 / + + 63 AS col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2179
SELECT - col1 DIV + + 1 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-2179
SELECT - col1 / + + 1 FROM tab1 AS cor0
----
-14
-47
-5

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT - 45 / 48 IS NOT NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + 45 col1 FROM tab1
----
2295
3825
4095

query I rowsort
SELECT - col2 - + + col1 + - + col0 * - 36 AS col0 FROM tab2
----
1582
2187
2575

onlyif mysql # DIV for integer division: 
query I rowsort label-2183
SELECT ( - col1 ) DIV + col2 - col0 * col0 * + + col2 + + - col2 AS col2 FROM tab0
----
-10623
-75702
-931590

skipif mysql # not compatible
query I rowsort label-2183
SELECT ( - col1 ) / + col2 - col0 * col0 * + + col2 + + - col2 AS col2 FROM tab0
----
-10623
-75702
-931590

query I rowsort
SELECT + col1 + + 48 * + + col1 AS col1 FROM tab1 AS cor0
----
2303
245
686

query I rowsort
SELECT ALL 5 - 17 AS col2 FROM tab0 AS cor0
----
-12
-12
-12

query I rowsort
SELECT ALL + col2 * - col2 - - col1 FROM tab2 AS cor0
----
-1523
-3297
-478

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - - 90 IS NOT NULL AND NOT 16 >= NULL
----

query I rowsort
SELECT - ( + col2 ) + col2 FROM tab0 cor0 WHERE NOT + col1 * + - 62 IS NOT NULL
----

query II rowsort
SELECT DISTINCT + col0 AS col1, - col2 FROM tab0 AS cor0
----
15
-47
87
-10
97
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2190
SELECT - COUNT( * ) * - 58 FROM tab1
----
174

skipif mysql # not compatible
query I rowsort label-2190
SELECT - COUNT ( * ) * - 58 FROM tab1
----
174

query I rowsort
SELECT + - col1 AS col0 FROM tab1 AS cor0 WHERE NOT + col2 <> + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2192
SELECT + + COUNT( * ) FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2192
SELECT + + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2193
SELECT ALL - - SUM( ALL + col0 ) FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-2193
SELECT ALL - - SUM ( ALL + col0 ) FROM tab0 AS cor0
----
199

query I rowsort
SELECT + + col0 * - + col2 FROM tab2 AS cor0 WHERE NOT - col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN 67 AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - col2 IS NOT NULL )
----

query I rowsort
SELECT DISTINCT 60 AS col2 FROM tab1 cor0
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2198
SELECT ALL * FROM tab0 cor0 WHERE - ( CAST( NULL AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2198
SELECT ALL * FROM tab0 cor0 WHERE - ( CAST ( NULL AS INTEGER ) ) IS NOT NULL
----

query II rowsort
SELECT ALL - col1, 41 AS col2 FROM tab1 AS cor0
----
-14
41
-47
41
-5
41

onlyif mysql # aggregate syntax: 
query I rowsort label-2200
SELECT ALL + MIN( - col0 ) + - - 60 FROM tab0 AS cor0
----
-37

skipif mysql # not compatible
query I rowsort label-2200
SELECT ALL + MIN ( - col0 ) + - - 60 FROM tab0 AS cor0
----
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2201
SELECT ALL - 86 + col2 + - + 29 * col2 + + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2201
SELECT ALL - 86 + col2 + - + 29 * col2 + + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 * - 59 + - - col0 AS col1 FROM tab2
----
-2668
-3712
-4350

query I rowsort
SELECT ALL col0 + - + col1 AS col1 FROM tab1
----
37
44
80

query I rowsort
SELECT 53 * - col1 * col0 FROM tab1
----
-22525
-226681
-37842

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2205
SELECT DISTINCT + col0 + + - col0 - + col2 FROM tab2 AS cor0 WHERE - + ( - + 40 ) * CAST( NULL AS SIGNED ) IS NOT NULL AND NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-2205
SELECT DISTINCT + col0 + + - col0 - + col2 FROM tab2 AS cor0 WHERE - + ( - + 40 ) * CAST ( NULL AS INTEGER ) IS NOT NULL AND NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2206
SELECT - col1 + + + col1 DIV + col2 + 76 FROM tab0 cor0
----
-4
57
75

skipif mysql # not compatible
query I rowsort label-2206
SELECT - col1 + + + col1 / + col2 + 76 FROM tab0 cor0
----
-4
57
75

onlyif mysql # DIV for integer division: 
query I rowsort label-2207
SELECT - col2 DIV 21 * + 47 AS col1 FROM tab2
----
-47
-47
-94

skipif mysql # not compatible
query I rowsort label-2207
SELECT - col2 / 21 * + 47 AS col1 FROM tab2
----
-47
-47
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-2208
SELECT DISTINCT + COUNT( ALL + 47 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2208
SELECT DISTINCT + COUNT ( ALL + 47 ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2209
SELECT DISTINCT - MAX( ALL col2 ) AS col1 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-2209
SELECT DISTINCT - MAX ( ALL col2 ) AS col1 FROM tab0 AS cor0
----
-99

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL <> + col2 * + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2211
SELECT + + CAST( ( ( + AVG ( - + col0 ) ) ) AS SIGNED ) FROM tab0 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-2211
SELECT + + CAST ( ( ( + AVG ( - + col0 ) ) ) AS INTEGER ) FROM tab0 AS cor0
----
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-2212
SELECT col0 DIV - 77 AS col1 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-2212
SELECT col0 / - 77 AS col1 FROM tab1
----
-1
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2213
SELECT ALL + MIN( DISTINCT + 66 ) col0 FROM tab0
----
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2213
SELECT ALL + MIN ( DISTINCT + 66 ) col0 FROM tab0
----
66

query II rowsort
SELECT ALL + col2, + 15 FROM tab2
----
23
15
40
15
58
15

query I rowsort
SELECT DISTINCT - 53 * col2 AS col1 FROM tab1
----
-3127
-3604
-5088

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL = - + col2 * col0 + + 93
----

query II rowsort
SELECT ALL 97 AS col1, 95 FROM tab1
----
97
95
97
95
97
95

onlyif mysql # aggregate syntax: 
query I rowsort label-2218
SELECT - COUNT( * ) * - 70 FROM tab0
----
210

skipif mysql # not compatible
query I rowsort label-2218
SELECT - COUNT ( * ) * - 70 FROM tab0
----
210

onlyif mysql # aggregate syntax: 
query I rowsort label-2219
SELECT - COUNT( * ) FROM tab0 WHERE NOT - col1 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2219
SELECT - COUNT ( * ) FROM tab0 WHERE NOT - col1 IS NULL
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2220
SELECT + CAST( - - AVG ( - 58 ) AS SIGNED ) AS col2 FROM tab1
----
-58

skipif mysql # not compatible
query I rowsort label-2220
SELECT + CAST ( - - AVG ( - 58 ) AS INTEGER ) AS col2 FROM tab1
----
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2, 38 + - col2 col0 FROM tab2
----
23
15
40
-2
58
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2222
SELECT ALL CAST( - COUNT( * ) AS SIGNED ) FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2222
SELECT ALL CAST ( - COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2223
SELECT - MIN( - 34 ) AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
34

skipif mysql # not compatible
query I rowsort label-2223
SELECT - MIN ( - 34 ) AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
34

query I rowsort
SELECT + 20 * - + 33 FROM tab0
----
-660
-660
-660

query II rowsort
SELECT - 47 * + col2 AS col2, col1 AS col0 FROM tab0
----
-2209
81
-4653
1
-470
21

query I rowsort
SELECT - 87 * + 80 * - col2 AS col2 FROM tab0
----
327120
689040
69600

query II rowsort
SELECT DISTINCT + 86 + - 51, + col0 FROM tab1
----
35
51
35
85
35
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2228
SELECT + 72 DIV + + COUNT( * ) + + 65 + + 25 AS col2 FROM tab0 AS cor0
----
114

skipif mysql # not compatible
query I rowsort label-2228
SELECT + 72 / + + COUNT ( * ) + + 65 + + 25 AS col2 FROM tab0 AS cor0
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-2229
SELECT DISTINCT - + 46 * + 60 * + + COUNT( DISTINCT - - col0 ) FROM tab2 AS cor0
----
-8280

skipif mysql # not compatible
query I rowsort label-2229
SELECT DISTINCT - + 46 * + 60 * + + COUNT ( DISTINCT - - col0 ) FROM tab2 AS cor0
----
-8280

onlyif mysql # aggregate syntax: 
query I rowsort label-2230
SELECT + ( + 60 ) * COUNT( * ) + COUNT( * ) FROM tab0 AS cor0
----
183

skipif mysql # not compatible
query I rowsort label-2230
SELECT + ( + 60 ) * COUNT ( * ) + COUNT ( * ) FROM tab0 AS cor0
----
183

query I rowsort
SELECT ALL + 21 * + col0 + - + col2 + + col1 FROM tab2 AS cor0
----
1381
1584
994

query I rowsort
SELECT DISTINCT col0 + 21 AS col0 FROM tab0
----
108
118
36

query I rowsort
SELECT + col2 + + 70 AS col2 FROM tab2
----
110
128
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 26 + + + 10 col1 FROM tab1
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-2235
SELECT + 53 + + COUNT( * ) FROM tab0
----
56

skipif mysql # not compatible
query I rowsort label-2235
SELECT + 53 + + COUNT ( * ) FROM tab0
----
56

query II rowsort
SELECT DISTINCT + 60 AS col0, 15 + - + col2 + - 91 / + col2 * - 37 / - + 28 FROM tab0 WHERE 49 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NOT NULL < 33 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2238
SELECT ALL - CAST( + + COUNT( * ) AS SIGNED ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-2238
SELECT ALL - CAST ( + + COUNT ( * ) AS INTEGER ) AS col1 FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2239
SELECT + ( SUM( 13 ) ) + + ( + 55 ) FROM tab2 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2239
SELECT + ( SUM ( 13 ) ) + + ( + 55 ) FROM tab2 WHERE NULL IS NOT NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col1 + - 20 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2241
SELECT MIN( - 68 ) AS col0 FROM tab1
----
-68

skipif mysql # not compatible
query I rowsort label-2241
SELECT MIN ( - 68 ) AS col0 FROM tab1
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-2242
SELECT - MAX( + col0 ) - + 47 FROM tab1 AS cor0
----
-138

skipif mysql # not compatible
query I rowsort label-2242
SELECT - MAX ( + col0 ) - + 47 FROM tab1 AS cor0
----
-138

onlyif mysql # DIV for integer division: 
query I rowsort label-2243
SELECT col0 DIV - 99 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2243
SELECT col0 / - 99 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2244
SELECT MAX( DISTINCT - col1 ) DIV 15 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2244
SELECT MAX ( DISTINCT - col1 ) / 15 FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2245
SELECT col2 DIV - col0 col2 FROM tab0
----
-1
-3
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2245
SELECT col2 / - col0 col2 FROM tab0
----
-1
-3
0

query I rowsort
SELECT - col1 AS col1 FROM tab1 WHERE NOT + col2 >= col1
----

query I rowsort
SELECT col1 + + 83 / - col2 FROM tab2 WHERE NULL = ( - col2 )
----

query I rowsort
SELECT ALL 87 FROM tab1 WHERE ( - 89 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + col0 col0 FROM tab0
----
108
96
98

onlyif mysql # aggregate syntax: 
query I rowsort label-2250
SELECT + COUNT( * ) + + 33 FROM tab0
----
36

skipif mysql # not compatible
query I rowsort label-2250
SELECT + COUNT ( * ) + + 33 FROM tab0
----
36

query I rowsort
SELECT DISTINCT - 9 AS col2 FROM tab1 WHERE NOT col1 NOT IN ( - 50 )
----

query I rowsort
SELECT ( 63 ) AS col0 FROM tab1
----
63
63
63

query I rowsort
SELECT ALL ( - col1 ) FROM tab1 WHERE NOT NULL > ( col1 )
----

query III rowsort
SELECT * FROM tab2 WHERE - col2 / + col2 <= + col1 * + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ( 56 ) FROM tab1 WHERE NOT - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2256
SELECT DISTINCT COUNT( * ) + CAST( COUNT( ALL + col1 ) AS SIGNED ) AS col0 FROM tab0 WHERE NOT + 63 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2256
SELECT DISTINCT COUNT ( * ) + CAST ( COUNT ( ALL + col1 ) AS INTEGER ) AS col0 FROM tab0 WHERE NOT + 63 IS NOT NULL
----
0

query I rowsort
SELECT col1 + + col0 FROM tab1 WHERE NOT ( NULL ) BETWEEN ( + 37 ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col0 FROM tab2 WHERE NOT ( NULL ) BETWEEN - col0 AND ( NULL )
----

query I rowsort
SELECT ALL 53 / + 75 FROM tab0 WHERE NOT NULL NOT BETWEEN + 78 AND + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2260
SELECT - 9 - col0 AS col2 FROM tab1 WHERE CAST( NULL AS SIGNED ) IS NULL
----
-100
-60
-94

skipif mysql # not compatible
query I rowsort label-2260
SELECT - 9 - col0 AS col2 FROM tab1 WHERE CAST ( NULL AS INTEGER ) IS NULL
----
-100
-60
-94

query I rowsort
SELECT ALL - col1 * + col0 + 12 * 4 AS col1 FROM tab0
----
-1167
-1779
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-2262
SELECT DISTINCT - COUNT( * ) FROM tab2 WHERE ( NULL ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2262
SELECT DISTINCT - COUNT ( * ) FROM tab2 WHERE ( NULL ) IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2263
SELECT DISTINCT - MAX( 40 ) FROM tab1
----
-40

skipif mysql # not compatible
query I rowsort label-2263
SELECT DISTINCT - MAX ( 40 ) FROM tab1
----
-40

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 69 * col0 IS NULL
----

query I rowsort
SELECT ALL - col1 + 79 AS col1 FROM tab0
----
-2
58
78

onlyif mysql # aggregate syntax: 
query I rowsort label-2266
SELECT DISTINCT - COUNT( ( col0 ) ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2266
SELECT DISTINCT - COUNT ( ( col0 ) ) AS col2 FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2267
SELECT DISTINCT + col0 AS col0 FROM tab2 WHERE + CAST( NULL AS SIGNED ) IS NULL
----
46
64
75

skipif mysql # not compatible
query I rowsort label-2267
SELECT DISTINCT + col0 AS col0 FROM tab2 WHERE + CAST ( NULL AS INTEGER ) IS NULL
----
46
64
75

query III rowsort
SELECT * FROM tab0 WHERE + 48 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 20 * 51 AS col1 FROM tab0
----
1020
1020
1020

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2270
SELECT - 15 + - CAST( col2 AS SIGNED ) FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-38
-55
-73

skipif mysql # not compatible
query I rowsort label-2270
SELECT - 15 + - CAST ( col2 AS INTEGER ) FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-38
-55
-73

query I rowsort
SELECT + col0 * - col0 + - col1 AS col2 FROM tab1 cor0
----
-2615
-7230
-8328

onlyif mysql # DIV for integer division: 
query I rowsort label-2272
SELECT 81 DIV 57 AS col0 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2272
SELECT 81 / 57 AS col0 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT ALL col0 AS col2 FROM tab0 AS cor0 WHERE NOT NULL >= col1
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 + - 61 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - 76 + col2 FROM tab2 AS cor0
----
-18
-36
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-2276
SELECT COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE + col2 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-2276
SELECT COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE + col2 = NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 53 * + col0 < NULL
----

query I rowsort
SELECT + - 36 * + col2 AS col0 FROM tab0 AS cor0
----
-1692
-3564
-360

onlyif mysql # DIV for integer division: 
query I rowsort label-2279
SELECT ALL col2 + 54 DIV col2 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-2279
SELECT ALL col2 + 54 / col2 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2280
SELECT ALL MIN( ALL - 58 ) * 14 + + COUNT( * ) * + 1 AS col2 FROM tab0 AS cor0
----
-809

skipif mysql # not compatible
query I rowsort label-2280
SELECT ALL MIN ( ALL - 58 ) * 14 + + COUNT ( * ) * + 1 AS col2 FROM tab0 AS cor0
----
-809

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col1 NOT IN ( 30 )
----

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab2 WHERE + col0 NOT IN ( ( col2 ) )
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2283
SELECT ALL + COUNT( * ) * + COUNT( * ) + + COUNT( * ) FROM tab2
----
12

skipif mysql # not compatible
query I rowsort label-2283
SELECT ALL + COUNT ( * ) * + COUNT ( * ) + + COUNT ( * ) FROM tab2
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-2284
SELECT + col2 DIV + col2 FROM tab2 WHERE ( - col1 ) IS NOT NULL
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2284
SELECT + col2 / + col2 FROM tab2 WHERE ( - col1 ) IS NOT NULL
----
1
1
1

query I rowsort
SELECT col1 FROM tab1 WHERE - 32 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2286
SELECT ALL - CAST( NULL AS DECIMAL ) - + 40 + - ( + 73 + 41 * COUNT( * ) ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2286
SELECT ALL - CAST ( NULL AS REAL ) - + 40 + - ( + 73 + 41 * COUNT ( * ) ) AS col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2287
SELECT 3 * - COUNT( * ) - - 85 AS col2 FROM tab2
----
76

skipif mysql # not compatible
query I rowsort label-2287
SELECT 3 * - COUNT ( * ) - - 85 AS col2 FROM tab2
----
76

query I rowsort
SELECT ALL - ( - col0 ) * col0 + + col1 AS col0 FROM tab0
----
306
7590
9410

query I rowsort
SELECT - - col1 + + ( col0 ) + - col1 * 30 FROM tab2 AS cor0
----
-1433
-1868
-2169

query I rowsort
SELECT - + col2 + + col2 + + col2 AS col0 FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT - - col2 + + col1 AS col0 FROM tab2 cor0
----
117
125
74

query I rowsort
SELECT DISTINCT - col1 * col1 + col2 * - col1 FROM tab0 AS cor0
----
-100
-10368
-651

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2293
SELECT * FROM tab2 AS cor0 WHERE + 24 BETWEEN 16 - 17 AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2293
SELECT * FROM tab2 AS cor0 WHERE + 24 BETWEEN 16 - 17 AND CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2294
SELECT - COUNT( * ) + + 14 AS col2 FROM tab2 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-2294
SELECT - COUNT ( * ) + + 14 AS col2 FROM tab2 AS cor0
----
11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 52 * - + col0 col0 FROM tab2 AS cor0
----
-2392
-3328
-3900

query I rowsort
SELECT + - ( - 44 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2297
SELECT DISTINCT * FROM tab0 WHERE NOT NULL BETWEEN CAST( NULL AS SIGNED ) AND + col1
----

skipif mysql # not compatible
query III rowsort label-2297
SELECT DISTINCT * FROM tab0 WHERE NOT NULL BETWEEN CAST ( NULL AS INTEGER ) AND + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2298
SELECT ALL 3 DIV - - col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2298
SELECT ALL 3 / - - col2 FROM tab0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - 43 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2300
SELECT + MAX( + CAST( - - col0 AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-2300
SELECT + MAX ( + CAST ( - - col0 AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
75

query II rowsort
SELECT + 53 AS col2, col2 AS col0 FROM tab2 AS cor0
----
53
23
53
40
53
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2302
SELECT DISTINCT + MAX( + - col1 ) * - + MIN( - 71 ) FROM tab2 AS cor0
----
-3621

skipif mysql # not compatible
query I rowsort label-2302
SELECT DISTINCT + MAX ( + - col1 ) * - + MIN ( - 71 ) FROM tab2 AS cor0
----
-3621

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2303
SELECT DISTINCT + + COUNT( * ) DIV + - 10 * - 87 col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2303
SELECT DISTINCT + + COUNT ( * ) / + - 10 * - 87 col1 FROM tab1 AS cor0
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 41 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 94 IN ( 33 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2306
SELECT - col2 * + col1 AS col2 FROM tab0 AS cor0 WHERE NOT ( - CAST( NULL AS DECIMAL ) ) NOT BETWEEN 69 AND 45 * 28
----

skipif mysql # not compatible
query I rowsort label-2306
SELECT - col2 * + col1 AS col2 FROM tab0 AS cor0 WHERE NOT ( - CAST ( NULL AS REAL ) ) NOT BETWEEN 69 AND 45 * 28
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( col1 ) * col0 - col1 BETWEEN ( - col2 * - col0 ) AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2308
SELECT + COUNT( * ) / + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2308
SELECT + COUNT ( * ) / + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2309
SELECT - CAST( - COUNT( * ) AS SIGNED ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2309
SELECT - CAST ( - COUNT ( * ) AS INTEGER ) AS col1 FROM tab1
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2310
SELECT + CAST( + + COUNT( * ) AS SIGNED ) + - - 95 col1 FROM tab2
----
98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2310
SELECT + CAST ( + + COUNT ( * ) AS INTEGER ) + - - 95 col1 FROM tab2
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-2311
SELECT 44 + COUNT( * ) FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-2311
SELECT 44 + COUNT ( * ) FROM tab1
----
47

query I rowsort
SELECT - 35 AS col2 FROM tab2 WHERE NOT - + 16 * + col1 / - col2 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2313
SELECT DISTINCT + COUNT( + 83 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2313
SELECT DISTINCT + COUNT ( + 83 ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2314
SELECT - 34 * 16 + + MIN( ALL - col1 ) FROM tab2 cor0
----
-621

skipif mysql # not compatible
query I rowsort label-2314
SELECT - 34 * 16 + + MIN ( ALL - col1 ) FROM tab2 cor0
----
-621

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( col0 ) < - 18 / - 80
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2316
SELECT DISTINCT COUNT( DISTINCT + 22 ) * - 60 + - 19 FROM tab0
----
-79

skipif mysql # not compatible
query I rowsort label-2316
SELECT DISTINCT COUNT ( DISTINCT + 22 ) * - 60 + - 19 FROM tab0
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-2317
SELECT COUNT( * ) * + 85 * - 78 AS col1 FROM tab1
----
-19890

skipif mysql # not compatible
query I rowsort label-2317
SELECT COUNT ( * ) * + 85 * - 78 AS col1 FROM tab1
----
-19890

query I rowsort
SELECT DISTINCT + 88 AS col2 FROM tab2 cor0 CROSS JOIN tab1 cor1
----
88

query I rowsort
SELECT DISTINCT + 56 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-2320
SELECT ALL + - SUM( DISTINCT col1 ) AS col0 FROM tab1 cor0
----
-66

skipif mysql # not compatible
query I rowsort label-2320
SELECT ALL + - SUM ( DISTINCT col1 ) AS col0 FROM tab1 cor0
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2321
SELECT 83 AS col0 FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) * - ( col1 ) IN ( - col0 )
----

skipif mysql # not compatible
query I rowsort label-2321
SELECT 83 AS col0 FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) * - ( col1 ) IN ( - col0 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL IN ( ( col0 ) + - + 14 / + col2 )
----

query I rowsort
SELECT - 89 FROM tab2 AS cor0 WHERE col1 * + col1 BETWEEN - - col2 * - col1 * col0 + col1 * col0 AND 55
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT IN ( - 62 + + + ( + col0 ) - + - 22 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2325
SELECT - + COUNT( * ) + - - 45 col0 FROM tab2 AS cor0
----
42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2325
SELECT - + COUNT ( * ) + - - 45 col0 FROM tab2 AS cor0
----
42

query I rowsort
SELECT ALL col0 AS col2 FROM tab1 AS cor0 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT + col1 + col1 * + col2 * + col1 * + - 58 FROM tab2
----
-13755203
-15100929
-3469683

query I rowsort
SELECT DISTINCT + 63 * + col0 * + ( col0 ) AS col1 FROM tab1
----
163863
455175
521703

onlyif mysql # aggregate syntax: 
query I rowsort label-2329
SELECT - 79 + + - SUM( ALL - + col0 ) FROM tab1
----
148

skipif mysql # not compatible
query I rowsort label-2329
SELECT - 79 + + - SUM ( ALL - + col0 ) FROM tab1
----
148

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2330
SELECT DISTINCT COUNT( * ) DIV + 28 AS col1 FROM tab2 WHERE NULL <> ( - 22 )
----
0

skipif mysql # not compatible
query I rowsort label-2330
SELECT DISTINCT COUNT ( * ) / + 28 AS col1 FROM tab2 WHERE NULL <> ( - 22 )
----
0

query II rowsort
SELECT - col2, - col0 AS col1 FROM tab0
----
-10
-87
-47
-15
-99
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2332
SELECT DISTINCT - col2 + - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2332
SELECT DISTINCT - col2 + - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab2
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE - 62 * - col2 >= + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col2 - - col1 + - 50 * - + col2 AS col1 FROM tab0
----
2384
4852
511

onlyif mysql # aggregate syntax: 
query I rowsort label-2335
SELECT DISTINCT COUNT( * ) * + 47 FROM tab1 cor0
----
141

skipif mysql # not compatible
query I rowsort label-2335
SELECT DISTINCT COUNT ( * ) * + 47 FROM tab1 cor0
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-2336
SELECT + - ( + COUNT( ALL - 64 ) ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2336
SELECT + - ( + COUNT ( ALL - 64 ) ) AS col0 FROM tab1 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( col2 - 49 ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2338
SELECT - ( + COUNT( * ) ) AS col2 FROM tab1 AS cor0 WHERE NOT col0 + - 78 NOT IN ( - col0 ) OR NULL < + 97
----
0

skipif mysql # not compatible
query I rowsort label-2338
SELECT - ( + COUNT ( * ) ) AS col2 FROM tab1 AS cor0 WHERE NOT col0 + - 78 NOT IN ( - col0 ) OR NULL < + 97
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2339
SELECT ( - + 4 ) DIV - 73 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2339
SELECT ( - + 4 ) / - 73 FROM tab0
----
0
0
0

query II rowsort
SELECT col0 * 21 AS col0, + 60 AS col0 FROM tab1
----
1071
60
1785
60
1911
60

onlyif mysql # aggregate syntax: 
query I rowsort label-2341
SELECT DISTINCT 41 * - COUNT( * ) * + 26 col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9594

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2341
SELECT DISTINCT 41 * - COUNT ( * ) * + 26 col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9594

query I rowsort
SELECT DISTINCT col0 FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( - - 61 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 28 col0 FROM tab0 AS cor0 WHERE ( col1 * + col0 * - 6 ) IS NULL
----

query I rowsort
SELECT DISTINCT + col2 * + - col0 FROM tab1 AS cor0
----
-4896
-5015
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-2345
SELECT + + MAX( ALL - - ( + 77 ) ) AS col0 FROM tab1 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-2345
SELECT + + MAX ( ALL - - ( + 77 ) ) AS col0 FROM tab1 AS cor0
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2346
SELECT DISTINCT - CAST( NULL AS SIGNED ) * col0 AS col2, 33 col2 FROM tab2 AS cor0
----
NULL
33

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2346
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * col0 AS col2, 33 col2 FROM tab2 AS cor0
----
NULL
33

query I rowsort
SELECT ALL ( + 98 ) FROM tab1 cor0 WHERE ( NOT + col2 + - + col0 IS NULL )
----
98
98
98

query I rowsort
SELECT - + 51 * col1 AS col0 FROM tab0 AS cor0
----
-1071
-4131
-51

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( ( NOT col2 * + - col2 IS NOT NULL ) )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2350
SELECT + CAST( NULL AS DECIMAL ) AS col1, col1 FROM tab2
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-2350
SELECT + CAST ( NULL AS REAL ) AS col1, col1 FROM tab2
----
NULL
51
NULL
67
NULL
77

query II rowsort
SELECT ALL + 31 AS col0, 81 + 15 FROM tab1
----
31
96
31
96
31
96

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2352
SELECT DISTINCT COUNT( * ) + + CAST( NULL AS DECIMAL ) col2 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2352
SELECT DISTINCT COUNT ( * ) + + CAST ( NULL AS REAL ) col2 FROM tab2
----
NULL

query II rowsort
SELECT ALL - col1, 24 AS col1 FROM tab0
----
-1
24
-21
24
-81
24

query I rowsort
SELECT - 50 FROM tab1 WHERE NOT + col2 * 68 < + col2
----
-50
-50
-50

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT IN ( - 28, - 49 )
----

query I rowsort
SELECT - col0 * + col0 + - - col2 * 8 FROM tab0 AS cor0
----
-7489
-8617
151

query I rowsort
SELECT ALL + 47 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

onlyif mysql # aggregate syntax: 
query I rowsort label-2358
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-2358
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-9

query I rowsort
SELECT DISTINCT + - 64 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-64

query I rowsort
SELECT ALL - 25 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-25
-25
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-2361
SELECT + ( + + SUM( DISTINCT - - col2 ) ) FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-2361
SELECT + ( + + SUM ( DISTINCT - - col2 ) ) FROM tab2 AS cor0
----
121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2362
SELECT + 91 + col1 + - - 85 * + col1 FROM tab2 AS cor0 WHERE + 47 IN ( CAST( - ( - - col1 ) AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-2362
SELECT + 91 + col1 + - - 85 * + col1 FROM tab2 AS cor0 WHERE + 47 IN ( CAST ( - ( - - col1 ) AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2363
SELECT + COUNT( ALL - col0 ) col1 FROM tab0 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2363
SELECT + COUNT ( ALL - col0 ) col1 FROM tab0 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2364
SELECT ALL - SUM( DISTINCT - col1 ) FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-2364
SELECT ALL - SUM ( DISTINCT - col1 ) FROM tab0 AS cor0
----
103

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 col1, - col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT col2 + - + col1 * - col1 + - 26 FROM tab0 AS cor0
----
425
6582
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2367
SELECT DISTINCT - COUNT( - ( + col0 ) ) AS col2 FROM tab0 AS cor0 WHERE NOT CAST( - col1 AS SIGNED ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2367
SELECT DISTINCT - COUNT ( - ( + col0 ) ) AS col2 FROM tab0 AS cor0 WHERE NOT CAST ( - col1 AS INTEGER ) IS NULL
----
-3

query II rowsort
SELECT + 75 - - col0 + + + ( - + 16 ), + col1 FROM tab0 cor0
----
146
21
156
1
74
81

query II rowsort
SELECT DISTINCT + col0, col2 + - col0 AS col1 FROM tab0 WHERE NULL IS NULL
----
15
32
87
-77
97
2

query II rowsort
SELECT col1 AS col2, 6 AS col0 FROM tab2
----
51
6
67
6
77
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2371
SELECT COUNT( DISTINCT col1 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2371
SELECT COUNT ( DISTINCT col1 ) AS col1 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2372
SELECT DISTINCT - COUNT( DISTINCT + col1 ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2372
SELECT DISTINCT - COUNT ( DISTINCT + col1 ) AS col0 FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2373
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IN ( + col1, CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-2373
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IN ( + col1, CAST ( NULL AS REAL ) )
----

query I rowsort
SELECT - 10 * + - 80 AS col2 FROM tab0
----
800
800
800

onlyif mysql # aggregate syntax: 
query I rowsort label-2375
SELECT + COUNT( * ) * + 65 FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-2375
SELECT + COUNT ( * ) * + 65 FROM tab2
----
195

query I rowsort
SELECT ALL ( col0 ) * - + col0 * + col2 + - + col2 FROM tab2 AS cor0
----
-163880
-326308
-48691

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col2 BETWEEN + col2 + + 23 AND - col0
----

query I rowsort
SELECT - - ( - ( + + col2 ) ) FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2379
SELECT DISTINCT col2 + + CAST( NULL AS SIGNED ) AS col1 FROM tab0 WHERE NOT ( - + 12 / + 48 * - + 8 + + 24 + + col0 + + col2 + - - col1 * + - col0 * - col1 ) < col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2379
SELECT DISTINCT col2 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 WHERE NOT ( - + 12 / + 48 * - + 8 + + 24 + + col0 + + col2 + - - col1 * + - col0 * - col1 ) < col2
----
NULL

query I rowsort
SELECT col2 + 92 AS col2 FROM tab0
----
102
139
191

query I rowsort
SELECT DISTINCT 16 + col1 AS col1 FROM tab2
----
67
83
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col2 + col0 * col0 col1 FROM tab1
----
2711
7289
8396

query II rowsort
SELECT ALL + 13 * col2, col2 - 37 AS col0 FROM tab1
----
1248
59
767
22
884
31

onlyif mysql # DIV for integer division: 
query I rowsort label-2384
SELECT DISTINCT + 19 * col2 DIV + col1 FROM tab0
----
11
1881
9

skipif mysql # not compatible
query I rowsort label-2384
SELECT DISTINCT + 19 * col2 / + col1 FROM tab0
----
11
1881
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2385
SELECT - + COUNT( * ) + + 9 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-2385
SELECT - + COUNT ( * ) + + 9 FROM tab1 AS cor0
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-2386
SELECT ALL - + ( col2 ) DIV col0 + - 46 FROM tab0 AS cor0
----
-46
-47
-49

skipif mysql # not compatible
query I rowsort label-2386
SELECT ALL - + ( col2 ) / col0 + - 46 FROM tab0 AS cor0
----
-46
-47
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2387
SELECT + - 79 * 6 + + - ( SUM( ALL CAST( + col2 AS SIGNED ) ) ) FROM tab1 AS cor0
----
-697

skipif mysql # not compatible
query I rowsort label-2387
SELECT + - 79 * 6 + + - ( SUM ( ALL CAST ( + col2 AS INTEGER ) ) ) FROM tab1 AS cor0
----
-697

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 0 / + 44 NOT IN ( + + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + + 69 * - + 93 AS col2 FROM tab0 AS cor0
----
-6417
-6417
-6417

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2390
SELECT ALL + col0 + - CAST( - 65 AS SIGNED ) FROM tab0 cor0
----
152
162
80

skipif mysql # not compatible
query I rowsort label-2390
SELECT ALL + col0 + - CAST ( - 65 AS INTEGER ) FROM tab0 cor0
----
152
162
80

query I rowsort
SELECT + 51 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2392
SELECT + CAST( 48 AS SIGNED ) AS col1 FROM tab0
----
48
48
48

skipif mysql # not compatible
query I rowsort label-2392
SELECT + CAST ( 48 AS INTEGER ) AS col1 FROM tab0
----
48
48
48

query I rowsort
SELECT + 48 - - - 44 FROM tab0
----
4
4
4

query I rowsort
SELECT ALL col0 * 68 - - col1 FROM tab1
----
3482
5785
6235

onlyif mysql # aggregate syntax: 
query I rowsort label-2395
SELECT ALL + + COUNT( * ) * - - 15 AS col0 FROM tab0 AS cor0 WHERE NOT + 10 + - 73 >= - col0 / - col0 - 67 + - col1
----
0

skipif mysql # not compatible
query I rowsort label-2395
SELECT ALL + + COUNT ( * ) * - - 15 AS col0 FROM tab0 AS cor0 WHERE NOT + 10 + - 73 >= - col0 / - col0 - 67 + - col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2396
SELECT ALL + col1 col1, col2 * CAST( NULL AS SIGNED ) FROM tab2 cor0
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2396
SELECT ALL + col1 col1, col2 * CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
51
NULL
67
NULL
77
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + 64 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2398
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 <> + col0 * - - col1 / - 25 + + + CAST( + col2 AS SIGNED ) + + col2 * + col2 * + col1 + - - CAST( col0 AS SIGNED ) * - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2398
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 <> + col0 * - - col1 / - 25 + + + CAST ( + col2 AS INTEGER ) + + col2 * + col2 * + col1 + - - CAST ( col0 AS INTEGER ) * - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT + col0 + col2 FROM tab1 AS cor0 WHERE + col1 IS NOT NULL
----
144
147
159

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col1 / - 58 * 11 > ( NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2401
SELECT 40 DIV - + MIN( ALL 64 ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2401
SELECT 40 / - + MIN ( ALL 64 ) AS col1 FROM tab0
----
0

query I rowsort
SELECT + col2 AS col0 FROM tab2 WHERE NOT + col0 / + ( + - col1 ) * - col1 - + - col1 >= ( + col1 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col2 BETWEEN - col1 * col0 AND 53
----
75
67
58

query III rowsort
SELECT * FROM tab1 WHERE NOT + + col2 NOT BETWEEN ( NULL ) AND + 84
----

query III rowsort
SELECT ALL * FROM tab2 WHERE + - col2 + 2 * + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2406
SELECT - COUNT( * ) * - - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-2406
SELECT - COUNT ( * ) * - - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2407
SELECT ALL - - COUNT( * ) AS col0 FROM tab2, tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2407
SELECT ALL - - COUNT ( * ) AS col0 FROM tab2, tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2408
SELECT ALL CAST( NULL AS SIGNED ) * 13 + + ( + - 82 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2408
SELECT ALL CAST ( NULL AS INTEGER ) * 13 + + ( + - 82 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT col2 AS col1 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2410
SELECT 88 + COUNT( * ) AS col2 FROM tab2 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-2410
SELECT 88 + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
91

query I rowsort
SELECT ALL + col0 FROM tab1 AS cor0 WHERE NOT 80 IN ( + + col1 )
----
51
85
91

query I rowsort
SELECT - ( - - 87 ) AS col0 FROM tab0 AS cor0
----
-87
-87
-87

query II rowsort
SELECT + col2 AS col2, col2 * - col0 + + col1 * + 78 * col0 + + 47 FROM tab1 AS cor0
----
59
28182
68
327465
96
50843

query I rowsort
SELECT ALL - - 36 AS col0 FROM tab0 AS cor0
----
36
36
36

onlyif mysql # aggregate syntax: 
query I rowsort label-2415
SELECT MIN( - - ( + col0 ) ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-2415
SELECT MIN ( - - ( + col0 ) ) FROM tab1 AS cor0
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2416
SELECT * FROM tab0 WHERE NULL BETWEEN + col1 / 40 AND CAST( col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2416
SELECT * FROM tab0 WHERE NULL BETWEEN + col1 / 40 AND CAST ( col2 AS INTEGER )
----

query II rowsort
SELECT DISTINCT + col1, + col0 * - col2 FROM tab2
----
51
-1058
67
-4350
77
-2560

onlyif mysql # aggregate syntax: 
query I rowsort label-2418
SELECT ALL - 57 * MAX( + 30 ) AS col0 FROM tab1 WHERE - col1 * + 18 - - - col2 IS NOT NULL
----
-1710

skipif mysql # not compatible
query I rowsort label-2418
SELECT ALL - 57 * MAX ( + 30 ) AS col0 FROM tab1 WHERE - col1 * + 18 - - - col2 IS NOT NULL
----
-1710

query II rowsort
SELECT DISTINCT + col1 AS col2, ( + - ( 21 ) ) * col0 * - + 19 FROM tab1
----
14
20349
47
36309
5
33915

query I rowsort
SELECT + 1 + - + col0 * + + 62 FROM tab1 WHERE - - col1 IS NOT NULL
----
-3161
-5269
-5641

onlyif mysql # aggregate syntax: 
query I rowsort label-2421
SELECT ALL - MAX( DISTINCT + 79 ) + + SUM( ALL + + col2 ) AS col1 FROM tab0
----
77

skipif mysql # not compatible
query I rowsort label-2421
SELECT ALL - MAX ( DISTINCT + 79 ) + + SUM ( ALL + + col2 ) AS col1 FROM tab0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2422
SELECT DISTINCT 81 * + COUNT( * ) + COUNT( * ) AS col1 FROM tab2
----
246

skipif mysql # not compatible
query I rowsort label-2422
SELECT DISTINCT 81 * + COUNT ( * ) + COUNT ( * ) AS col1 FROM tab2
----
246

onlyif mysql # aggregate syntax: 
query I rowsort label-2423
SELECT - 87 * + SUM( DISTINCT 15 ) + + 90 * + - COUNT( + col2 ) * - MAX( - - col1 ) FROM tab1 AS cor0
----
11385

skipif mysql # not compatible
query I rowsort label-2423
SELECT - 87 * + SUM ( DISTINCT 15 ) + + 90 * + - COUNT ( + col2 ) * - MAX ( - - col1 ) FROM tab1 AS cor0
----
11385

query II rowsort
SELECT ALL + col2 AS col0, + col2 AS col2 FROM tab1 AS cor0
----
59
59
68
68
96
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2425
SELECT - - MAX( DISTINCT col0 ) + MIN( DISTINCT + col0 ) AS col2 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-2425
SELECT - - MAX ( DISTINCT col0 ) + MIN ( DISTINCT + col0 ) AS col2 FROM tab2 AS cor0
----
121

query I rowsort
SELECT 92 + - 54 + + + col0 FROM tab1 AS cor0
----
123
129
89

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL BETWEEN - 4 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2428
SELECT - MIN( CAST( col0 AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-2428
SELECT - MIN ( CAST ( col0 AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
-46

query II rowsort
SELECT - + col0 * col2 + + col1 AS col1, 30 + col1 - 93 AS col1 FROM tab0 AS cor0 WHERE col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2430
SELECT - + CAST( + + col2 AS SIGNED ) * + col0, + col1 AS col0 FROM tab1 AS cor0
----
-4896
14
-5015
5
-6188
47

skipif mysql # not compatible
query II rowsort label-2430
SELECT - + CAST ( + + col2 AS INTEGER ) * + col0, + col1 AS col0 FROM tab1 AS cor0
----
-4896
14
-5015
5
-6188
47

onlyif mysql # DIV for integer division: 
query II rowsort label-2431
SELECT 14 * col1, 12 DIV - col2 col1 FROM tab1 AS cor0
----
196
0
658
0
70
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2431
SELECT 14 * col1, 12 / - col2 col1 FROM tab1 AS cor0
----
196
0
658
0
70
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2432
SELECT - + CAST( COUNT( * ) AS SIGNED ) col1 FROM tab2 cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2432
SELECT - + CAST ( COUNT ( * ) AS INTEGER ) col1 FROM tab2 cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 96 < NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 23 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2435
SELECT ALL + 52 DIV + ( + 69 ) FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2435
SELECT ALL + 52 / + ( + 69 ) FROM tab0
----
0
0
0

query III rowsort
SELECT * FROM tab0 WHERE NOT - + 49 + 36 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2437
SELECT DISTINCT - 19 DIV + - 87 AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2437
SELECT DISTINCT - 19 / + - 87 AS col2 FROM tab0
----
0

query I rowsort
SELECT ALL ( + - col2 ) * + col0 FROM tab0
----
-705
-870
-9603

query II rowsort
SELECT ALL - col0 AS col0, + col1 FROM tab2
----
-46
51
-64
77
-75
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col0 FROM tab0 WHERE NOT - col2 IS NOT NULL
----

query I rowsort
SELECT 68 AS col2 FROM tab2 WHERE NOT - col1 IS NULL
----
68
68
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2442
SELECT ALL - SUM( DISTINCT CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2442
SELECT ALL - SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

query I rowsort
SELECT ( - ( + 62 ) ) FROM tab1
----
-62
-62
-62

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2444
SELECT + 87 / + COUNT( * ) * - + 30 + - - CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2444
SELECT + 87 / + COUNT ( * ) * - + 30 + - - CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2445
SELECT + MIN( ALL + + 91 ) AS col0 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-2445
SELECT + MIN ( ALL + + 91 ) AS col0 FROM tab1 AS cor0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2446
SELECT ALL - + COUNT( * ) col1 FROM tab1 cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2446
SELECT ALL - + COUNT ( * ) col1 FROM tab1 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2447
SELECT ALL - MAX( DISTINCT - - 41 ) FROM tab0 cor0
----
-41

skipif mysql # not compatible
query I rowsort label-2447
SELECT ALL - MAX ( DISTINCT - - 41 ) FROM tab0 cor0
----
-41

query I rowsort
SELECT ALL + 21 + - 3 + + - col1 FROM tab2
----
-33
-49
-59

query I rowsort
SELECT DISTINCT ( + - 86 ) AS col2 FROM tab2 AS cor0
----
-86

query I rowsort
SELECT - + 58 AS col2 FROM tab1 cor0
----
-58
-58
-58

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 83 = NULL
----

query I rowsort
SELECT ALL + ( + 57 ) FROM tab2 AS cor0
----
57
57
57

query II rowsort
SELECT ALL col0 + + col1 AS col0, col0 FROM tab1 AS cor0
----
138
91
65
51
90
85

onlyif mysql # aggregate syntax: 
query I rowsort label-2454
SELECT - MIN( ALL + 66 ) + 74 FROM tab1 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-2454
SELECT - MIN ( ALL + 66 ) + 74 FROM tab1 AS cor0
----
8

query I rowsort
SELECT ALL col0 + - col0 * 28 * - col2 + - 81 FROM tab0
----
19674
24366
268900

query I rowsort
SELECT - col0 + col2 - + col2 FROM tab1
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2457
SELECT DISTINCT CAST( 70 AS SIGNED ) + - col0 AS col2 FROM tab2
----
-5
24
6

skipif mysql # not compatible
query I rowsort label-2457
SELECT DISTINCT CAST ( 70 AS INTEGER ) + - col0 AS col2 FROM tab2
----
-5
24
6

query I rowsort
SELECT DISTINCT ( + - col1 ) FROM tab1 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2459
SELECT COUNT( * ) * COUNT( * ) * - 84 + - 57 FROM tab0
----
-813

skipif mysql # not compatible
query I rowsort label-2459
SELECT COUNT ( * ) * COUNT ( * ) * - 84 + - 57 FROM tab0
----
-813

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 8 + + col0 + + + col1 col0 FROM tab2
----
105
149
150

onlyif mysql # aggregate syntax: 
query I rowsort label-2461
SELECT ALL ( + + COUNT( * ) ) + + COUNT( * ) FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-2461
SELECT ALL ( + + COUNT ( * ) ) + + COUNT ( * ) FROM tab1
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + col2 col1 FROM tab1
----
118
136
192

query I rowsort
SELECT col1 + - - col1 * - + col0 * + + col0 AS col1 FROM tab0
----
-158928
-18144
-9408

onlyif mysql # DIV for integer division: 
query I rowsort label-2464
SELECT - 68 DIV + col1 + - col2 FROM tab1
----
-100
-69
-72

skipif mysql # not compatible
query I rowsort label-2464
SELECT - 68 / + col1 + - col2 FROM tab1
----
-100
-69
-72

query I rowsort
SELECT - 88 + + col1 AS col2 FROM tab1
----
-41
-74
-83

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2466
SELECT * FROM tab0 AS cor0 WHERE + CAST( NULL AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2466
SELECT * FROM tab0 AS cor0 WHERE + CAST ( NULL AS REAL ) IS NOT NULL
----

query I rowsort
SELECT 2 * 59 FROM tab0 AS cor0 WHERE NULL > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL <= ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2469
SELECT - COUNT( * ) * + + 56 col2 FROM tab2 AS cor0
----
-168

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2469
SELECT - COUNT ( * ) * + + 56 col2 FROM tab2 AS cor0
----
-168

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN + col1 AND NULL
----

query I rowsort
SELECT ALL + col0 + - 55 + col0 FROM tab0
----
-25
119
139

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( ( ( + col2 BETWEEN + + ( col2 ) AND col2 + + + 88 ) ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2473
SELECT 43 + - + CAST( NULL AS SIGNED ) col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2473
SELECT 43 + - + CAST ( NULL AS INTEGER ) col2 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE - - col2 * - 96 - + col1 + col1 IS NULL
----

query I rowsort
SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE col1 <= + 89 + - 54
----

query I rowsort
SELECT + - AVG ( DISTINCT + col2 ) FROM tab0 AS cor0 WHERE NOT NULL = + col1 * + 31
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2477
SELECT + 91 * + COUNT( * ) col1 FROM tab2 AS cor0
----
273

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2477
SELECT + 91 * + COUNT ( * ) col1 FROM tab2 AS cor0
----
273

onlyif mysql # aggregate syntax: 
query I rowsort label-2478
SELECT ALL - - MAX( ALL + col2 ) col1 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2478
SELECT ALL - - MAX ( ALL + col2 ) col1 FROM tab2 AS cor0
----
58

query I rowsort
SELECT ALL + - ( - col1 ) AS col2 FROM tab0 AS cor0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2480
SELECT MAX( DISTINCT 96 ) AS col1 FROM tab2 cor0
----
96

skipif mysql # not compatible
query I rowsort label-2480
SELECT MAX ( DISTINCT 96 ) AS col1 FROM tab2 cor0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2481
SELECT DISTINCT 72 * - - MIN( ALL - col2 ) AS col2 FROM tab0 AS cor0
----
-7128

skipif mysql # not compatible
query I rowsort label-2481
SELECT DISTINCT 72 * - - MIN ( ALL - col2 ) AS col2 FROM tab0 AS cor0
----
-7128

query I rowsort
SELECT + ( - 41 ) FROM tab2 AS cor0
----
-41
-41
-41

query II rowsort
SELECT - col0 * + col1, 44 + - - col1 * - ( + - col0 ) AS col1 FROM tab0 AS cor0
----
-1215
1259
-1827
1871
-97
141

query III rowsort
SELECT ALL * FROM tab0 WHERE + col2 / + ( + col0 ) + + 97 + + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-2485
SELECT ALL - 59 DIV col1 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2485
SELECT ALL - 59 / col1 FROM tab2
----
-1
0
0

query I rowsort
SELECT - 25 * + - 28 FROM tab1
----
700
700
700

query I rowsort
SELECT ALL - col0 * 36 * - col2 AS col2 FROM tab0 cor0
----
25380
31320
345708

onlyif mysql # aggregate syntax: 
query I rowsort label-2488
SELECT - SUM( DISTINCT 37 ) AS col2 FROM tab2 AS cor0
----
-37

skipif mysql # not compatible
query I rowsort label-2488
SELECT - SUM ( DISTINCT 37 ) AS col2 FROM tab2 AS cor0
----
-37

query I rowsort
SELECT DISTINCT col0 + col2 + + - 8 FROM tab2 AS cor0
----
125
61
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2490
SELECT - MIN( ALL - col0 ) col2 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2490
SELECT - MIN ( ALL - col0 ) col2 FROM tab2 AS cor0
----
75

query I rowsort
SELECT ALL + 88 FROM tab2 AS cor0 WHERE - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2492
SELECT SUM( + col2 ) col2 FROM tab1 cor0
----
223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2492
SELECT SUM ( + col2 ) col2 FROM tab1 cor0
----
223

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL IN ( - col1, - 53 * + - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2494
SELECT DISTINCT MAX( - 7 ) AS col2 FROM tab0
----
-7

skipif mysql # not compatible
query I rowsort label-2494
SELECT DISTINCT MAX ( - 7 ) AS col2 FROM tab0
----
-7

query I rowsort
SELECT + + col1 + - - ( - col1 ) AS col0 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 77 AS col1, ( - col2 ) col0 FROM tab2 AS cor0
----
-77
-23
-77
-40
-77
-58

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2497
SELECT * FROM tab2 cor0 WHERE + 49 * - CAST( NULL AS DECIMAL ) BETWEEN + ( + col0 ) AND + col0 + 15 + col0 * - col0
----

skipif mysql # not compatible
query III rowsort label-2497
SELECT * FROM tab2 cor0 WHERE + 49 * - CAST ( NULL AS REAL ) BETWEEN + ( + col0 ) AND + col0 + 15 + col0 * - col0
----

query I rowsort
SELECT - + col0 FROM tab0 cor0 WHERE 77 * - col1 >= - + 92
----
-97

query I rowsort
SELECT ALL + + 66 + - - 76 * + 58 FROM tab0 AS cor0
----
4474
4474
4474

query I rowsort
SELECT 71 + + - col1 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN - col1 - + 83 AND + 2
----

query I rowsort
SELECT - col2 AS col0 FROM tab1 AS cor0 WHERE - col2 NOT BETWEEN NULL AND ( col1 / + - ( - + col0 ) )
----

query I rowsort
SELECT ALL + + col2 + - - col0 AS col2 FROM tab2 AS cor0
----
104
133
69

query II rowsort
SELECT ALL col1, + col2 AS col1 FROM tab0 cor0
----
1
99
21
10
81
47

query I rowsort
SELECT - col2 FROM tab1 WHERE - 43 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2505
SELECT + 29 + - - MAX( DISTINCT col2 ) * + 24 - - 59 FROM tab2 cor0
----
1480

skipif mysql # not compatible
query I rowsort label-2505
SELECT + 29 + - - MAX ( DISTINCT col2 ) * + 24 - - 59 FROM tab2 cor0
----
1480

query I rowsort
SELECT + col2 + 80 FROM tab2 AS cor0
----
103
120
138

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2507
SELECT - - col2 * + + col0 DIV + + col0 + col0 + 8 * + + col0 * + CAST( - col1 AS SIGNED ) FROM tab0 AS cor0
----
-14519
-580
-9658

skipif mysql # not compatible
query I rowsort label-2507
SELECT - - col2 * + + col0 / + + col0 + col0 + 8 * + + col0 * + CAST ( - col1 AS INTEGER ) FROM tab0 AS cor0
----
-14519
-580
-9658

query I rowsort
SELECT ALL - col1 * - col2 * + 66 + 95 FROM tab1 AS cor0
----
19565
211031
88799

onlyif mysql # aggregate syntax: 
query I rowsort label-2509
SELECT COUNT( - + col1 ) + - COUNT( * ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2509
SELECT COUNT ( - + col1 ) + - COUNT ( * ) FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2510
SELECT ALL - SUM( ALL - col2 ) * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2510
SELECT ALL - SUM ( ALL - col2 ) * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + + ( 2 ) ) * + col2 - + col2 + - - col0 col2 FROM tab0 cor0
----
196
62
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + + col0 ) col0 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
46
64
75

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 * + - col1 = NULL
----

query I rowsort
SELECT - ( - - col0 ) AS col1 FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT ALL - - ( 74 ) * 93 AS col2 FROM tab1 AS cor0
----
6882
6882
6882

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE ( NOT NULL IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL + - 16 - col2 - - col0 + col2 + 12 * + 55 - col2 * - col0 * + col0 * - - col0 * + + 23 AS col1, 29 * - col0 AS col1 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - col2 AND - + col2 + + 30
----

query II rowsort
SELECT + 42 * 54, col1 + 54 AS col0 FROM tab1
----
2268
101
2268
59
2268
68

query I rowsort
SELECT + ( - col1 ) * + col0 FROM tab1 WHERE NOT + 42 IS NULL
----
-425
-4277
-714

query I rowsort
SELECT ( 13 ) * + col0 AS col0 FROM tab0
----
1131
1261
195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 AS col2, - 13 col0 FROM tab2 WHERE NOT NULL = - col1 + - col1 + - 79
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2522
SELECT - col0 + + col2 * - + ( - col0 ) DIV - ( col0 ) col0 FROM tab1 AS cor0
----
-144
-147
-159

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2522
SELECT - col0 + + col2 * - + ( - col0 ) / - ( col0 ) col0 FROM tab1 AS cor0
----
-144
-147
-159

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + ( + - 54 ) * - + 42 IS NULL
----

query I rowsort
SELECT DISTINCT - col2 * col2 * - 94 FROM tab2 AS cor0
----
150400
316216
49726

onlyif mysql # aggregate syntax: 
query I rowsort label-2525
SELECT + ( - + MAX( - - col1 ) ) + - COUNT( * ) FROM tab1 AS cor0 WHERE 44 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2525
SELECT + ( - + MAX ( - - col1 ) ) + - COUNT ( * ) FROM tab1 AS cor0 WHERE 44 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2526
SELECT ALL - + COUNT( * ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-2526
SELECT ALL - + COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-9

query I rowsort
SELECT ALL + ( ( col0 ) ) FROM tab1
----
51
85
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * + - col0 col2 FROM tab0 cor0
----
705
870
9603

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE + 83 / + col2 NOT IN ( col0 - - col1, - 29, + - col1 + + - col2 * col2 * + col2 )
----
51
67
77

onlyif mysql # DIV for integer division: 
query I rowsort label-2530
SELECT DISTINCT col2 DIV + ( + col1 ) + - col0 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-2530
SELECT DISTINCT col2 / + ( + col1 ) + - col0 FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2531
SELECT DISTINCT - COUNT( * ) + + 11 * CAST( 70 AS SIGNED ) + - 71 FROM tab1 AS cor0 WHERE NULL IS NULL
----
696

skipif mysql # not compatible
query I rowsort label-2531
SELECT DISTINCT - COUNT ( * ) + + 11 * CAST ( 70 AS INTEGER ) + - 71 FROM tab1 AS cor0 WHERE NULL IS NULL
----
696

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE 37 IS NOT NULL
----
51
85
91

query I rowsort
SELECT ALL + 99 FROM tab1 AS cor0 WHERE NOT col1 * - 48 IS NULL
----
99
99
99

query I rowsort
SELECT DISTINCT + col2 + + col2 * - 40 + - col2 FROM tab0 AS cor0
----
-1880
-3960
-400

query I rowsort
SELECT + + col2 * + 44 + ( 77 ) FROM tab1 AS cor0
----
2673
3069
4301

query I rowsort
SELECT + 15 + + + col1 * 66 FROM tab0
----
1401
5361
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2537
SELECT DISTINCT 94 + MAX( ALL col1 ) FROM tab0
----
175

skipif mysql # not compatible
query I rowsort label-2537
SELECT DISTINCT 94 + MAX ( ALL col1 ) FROM tab0
----
175

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 0 + col1 * ( + col2 ) col1 FROM tab1
----
1344
295
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-2539
SELECT ALL - COUNT( * ) - + COUNT( * ) AS col1 FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-2539
SELECT ALL - COUNT ( * ) - + COUNT ( * ) AS col1 FROM tab0
----
-6

query III rowsort
SELECT * FROM tab2 WHERE NULL >= - 80
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2541
SELECT DISTINCT col2 * + col1 - + - col2, ( CAST( NULL AS SIGNED ) ) + col2 + 26 AS col1 FROM tab2
----
1196
NULL
3120
NULL
3944
NULL

skipif mysql # not compatible
query II rowsort label-2541
SELECT DISTINCT col2 * + col1 - + - col2, ( CAST ( NULL AS INTEGER ) ) + col2 + 26 AS col1 FROM tab2
----
1196
NULL
3120
NULL
3944
NULL

query I rowsort
SELECT ALL 28 + - col2 FROM tab0
----
-19
-71
18

onlyif mysql # aggregate syntax: 
query I rowsort label-2543
SELECT DISTINCT - COUNT( * ) - - ( ( - 72 ) ) AS col0 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-2543
SELECT DISTINCT - COUNT ( * ) - - ( ( - 72 ) ) AS col0 FROM tab2
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2544
SELECT COUNT( * ) * + + 10 AS col1 FROM tab2 AS cor0 WHERE + col1 / + - col1 / col2 * - col1 + + 69 NOT IN ( + col0, 27 )
----
30

skipif mysql # not compatible
query I rowsort label-2544
SELECT COUNT ( * ) * + + 10 AS col1 FROM tab2 AS cor0 WHERE + col1 / + - col1 / col2 * - col1 + + 69 NOT IN ( + col0, 27 )
----
30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 * - 18 * + 30 col0, 76 col0 FROM tab0 AS cor0
----
-11340
76
-43740
76
-540
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2546
SELECT MIN( - - col0 ) AS col0, CAST( NULL AS SIGNED ) FROM tab2
----
46
NULL

skipif mysql # not compatible
query II rowsort label-2546
SELECT MIN ( - - col0 ) AS col0, CAST ( NULL AS INTEGER ) FROM tab2
----
46
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2547
SELECT DISTINCT + 12 DIV - 85 FROM tab2 cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2547
SELECT DISTINCT + 12 / - 85 FROM tab2 cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2548
SELECT COUNT( DISTINCT - - 71 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-2548
SELECT COUNT ( DISTINCT - - 71 ) FROM tab0
----
1

query I rowsort
SELECT ALL col1 FROM tab2 AS cor0 WHERE ( + + col0 ) > ( - ( col0 ) )
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2550
SELECT - + CAST( - - 27 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-27
-27
-27

skipif mysql # not compatible
query I rowsort label-2550
SELECT - + CAST ( - - 27 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-27
-27
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-2551
SELECT DISTINCT MIN( ALL - col1 ) AS col1 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-2551
SELECT DISTINCT MIN ( ALL - col1 ) AS col1 FROM tab2 AS cor0
----
-77

query I rowsort
SELECT - + 25 AS col2 FROM tab1 cor0
----
-25
-25
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-2553
SELECT - MAX( + - 20 ) * - 66 FROM tab2 AS cor0
----
-1320

skipif mysql # not compatible
query I rowsort label-2553
SELECT - MAX ( + - 20 ) * - 66 FROM tab2 AS cor0
----
-1320

query I rowsort
SELECT ALL - 98 + + 3 * - col1 * - + ( 35 ) + + 48 FROM tab0 cor0 WHERE NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2555
SELECT ALL MAX( DISTINCT + col1 ) AS col0 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-2555
SELECT ALL MAX ( DISTINCT + col1 ) AS col0 FROM tab2
----
77

query I rowsort
SELECT DISTINCT ( col2 ) * + 61 * col2 AS col1 FROM tab1
----
212341
282064
562176

onlyif mysql # aggregate syntax: 
query I rowsort label-2557
SELECT DISTINCT ( + MIN( ALL - col2 ) ) AS col1 FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-2557
SELECT DISTINCT ( + MIN ( ALL - col2 ) ) AS col1 FROM tab1
----
-96

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN - 72 AND NULL
----

query I rowsort
SELECT 40 * col0 AS col2 FROM tab2
----
1840
2560
3000

query III rowsort
SELECT * FROM tab2 WHERE NOT + 15 <= + 17
----

query I rowsort
SELECT ALL - col0 * - 29 * - 30 AS col1 FROM tab1
----
-44370
-73950
-79170

query I rowsort
SELECT DISTINCT 85 * - col0 AS col0 FROM tab2
----
-3910
-5440
-6375

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE col0 * col0 * + + col1 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2564
SELECT ALL - col1 * + - CAST( NULL AS SIGNED ) + - 56 + + - col1 FROM tab0 AS cor0 WHERE - 33 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2564
SELECT ALL - col1 * + - CAST ( NULL AS INTEGER ) + - 56 + + - col1 FROM tab0 AS cor0 WHERE - 33 IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 + ( - + 48 ) FROM tab0
----
-147
-58
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col0, col2 * 21 col2 FROM tab2 AS cor0
----
51
483
67
1218
77
840

onlyif mysql # aggregate syntax: 
query I rowsort label-2567
SELECT ( MAX( - col0 ) ) col1 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2567
SELECT ( MAX ( - col0 ) ) col1 FROM tab1 AS cor0
----
-51

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab1 AS cor0 WHERE NOT NULL <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2569
SELECT ALL SUM( + - col1 ) AS col1 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-2569
SELECT ALL SUM ( + - col1 ) AS col1 FROM tab1 AS cor0
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2570
SELECT - MIN( - - CAST( NULL AS SIGNED ) ) / - 52 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2570
SELECT - MIN ( - - CAST ( NULL AS INTEGER ) ) / - 52 AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + - 38 * - - col2 + col2 AS col2 FROM tab2 AS cor0
----
-1480
-2146
-851

query I rowsort
SELECT ALL + ( - - col1 ) + + col2 FROM tab1 cor0
----
110
115
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2573
SELECT - - MIN( col0 ) col1 FROM tab2 WHERE NULL NOT BETWEEN + - col2 AND - 87
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2573
SELECT - - MIN ( col0 ) col1 FROM tab2 WHERE NULL NOT BETWEEN + - col2 AND - 87
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2574
SELECT - CAST( NULL AS SIGNED ) + col2 - - col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2574
SELECT - CAST ( NULL AS INTEGER ) + col2 - - col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT 26 * col0 + + col0 * - col2 * + 91 * + ( - 67 ) FROM tab0
----
4298775
5306652
58552013

query I rowsort
SELECT ALL col2 - col0 - + + 50 FROM tab0
----
-127
-18
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-2577
SELECT DISTINCT MIN( 23 ) FROM tab1
----
23

skipif mysql # not compatible
query I rowsort label-2577
SELECT DISTINCT MIN ( 23 ) FROM tab1
----
23

query II rowsort
SELECT DISTINCT - col1 AS col1, 75 * - + col2 AS col2 FROM tab1 AS cor0
----
-14
-7200
-47
-5100
-5
-4425

query I rowsort
SELECT DISTINCT - - 14 AS col2 FROM tab0 AS cor0
----
14

onlyif mysql # DIV for integer division: 
query II rowsort label-2580
SELECT DISTINCT col0 AS col2, + col0 DIV - col0 AS col1 FROM tab2 AS cor0
----
46
-1
64
-1
75
-1

skipif mysql # not compatible
query II rowsort label-2580
SELECT DISTINCT col0 AS col2, + col0 / - col0 AS col1 FROM tab2 AS cor0
----
46
-1
64
-1
75
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2581
SELECT DISTINCT + - MIN( ALL - - col0 ) FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-2581
SELECT DISTINCT + - MIN ( ALL - - col0 ) FROM tab2 AS cor0
----
-46

onlyif mysql # aggregate syntax: 
query II rowsort label-2582
SELECT ALL - COUNT( * ) AS col0, COUNT( * ) * MAX( ALL col2 ) FROM tab1 cor0
----
-3
288

skipif mysql # not compatible
query II rowsort label-2582
SELECT ALL - COUNT ( * ) AS col0, COUNT ( * ) * MAX ( ALL col2 ) FROM tab1 cor0
----
-3
288

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2583
SELECT ALL COUNT( * ) + + COUNT( * ) AS col0, + MIN( + - 58 ) DIV 66 + + COUNT( * ) * - COUNT( DISTINCT - 60 ) FROM tab2
----
6
-3

skipif mysql # not compatible
query II rowsort label-2583
SELECT ALL COUNT ( * ) + + COUNT ( * ) AS col0, + MIN ( + - 58 ) / 66 + + COUNT ( * ) * - COUNT ( DISTINCT - 60 ) FROM tab2
----
6
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2584
SELECT + COUNT( ALL CAST( NULL AS SIGNED ) ) + - 90 + + 59 * + - 13 FROM tab0
----
-857

skipif mysql # not compatible
query I rowsort label-2584
SELECT + COUNT ( ALL CAST ( NULL AS INTEGER ) ) + - 90 + + 59 * + - 13 FROM tab0
----
-857

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col0 + - col1 BETWEEN + - col1 AND + col1 - ( col0 )
----
87
21
10
97
1
99

query I rowsort
SELECT 9 + - - 45 + - col0 + + 14 + + - col1 + - + col2 + + - 5 * + + col0 FROM tab2
----
-282
-433
-507

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN - + ( - col1 ) AND col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2588
SELECT + col1 + - CAST( - col1 AS SIGNED ) AS col2 FROM tab0
----
162
2
42

skipif mysql # not compatible
query I rowsort label-2588
SELECT + col1 + - CAST ( - col1 AS INTEGER ) AS col2 FROM tab0
----
162
2
42

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( NULL NOT BETWEEN - + ( + + col2 ) - + col2 AND NULL )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 26 <> + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col1 + - 66 FROM tab1 cor0
----
-19
-52
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-2592
SELECT SUM( - + ( + ( - + 79 ) ) ) FROM tab0
----
237

skipif mysql # not compatible
query I rowsort label-2592
SELECT SUM ( - + ( + ( - + 79 ) ) ) FROM tab0
----
237

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2593
SELECT DISTINCT + CAST( NULL AS SIGNED ) - CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2593
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2594
SELECT DISTINCT - ( + COUNT( * ) ) col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2594
SELECT DISTINCT - ( + COUNT ( * ) ) col0 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT DISTINCT - col1 - + col0 AS col0 FROM tab2 AS cor0
----
-141
-142
-97

query I rowsort
SELECT DISTINCT - - ( + col1 ) * col1 AS col0 FROM tab0 AS cor0
----
1
441
6561

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + ( - col0 ) < + + col0 * - - 27
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2598
SELECT + MIN( - 44 ) + - MAX( col2 ) FROM tab1 AS cor0
----
-140

skipif mysql # not compatible
query I rowsort label-2598
SELECT + MIN ( - 44 ) + - MAX ( col2 ) FROM tab1 AS cor0
----
-140

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 61 + ( col0 ) col1 FROM tab2 AS cor0
----
107
125
136

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2600
SELECT - CAST( NULL AS SIGNED ) * COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2600
SELECT - CAST ( NULL AS INTEGER ) * COUNT ( * ) FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2601
SELECT - 35 DIV - col1 AS col1 FROM tab0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-2601
SELECT - 35 / - col1 AS col1 FROM tab0
----
0
1
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + col2 ) + - - col1 * + - col2 - + - col0 col0 FROM tab1
----
-1197
-151
-3037

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2603
SELECT ALL - COUNT( ALL - 73 ) - CAST( MAX( + + 95 ) AS SIGNED ) FROM tab0
----
-98

skipif mysql # not compatible
query I rowsort label-2603
SELECT ALL - COUNT ( ALL - 73 ) - CAST ( MAX ( + + 95 ) AS INTEGER ) FROM tab0
----
-98

query III rowsort
SELECT ALL * FROM tab0 WHERE + col1 + - + ( - col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2605
SELECT - COUNT( DISTINCT + - col0 ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-2605
SELECT - COUNT ( DISTINCT + - col0 ) AS col1 FROM tab1
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 57 NOT BETWEEN + col1 AND col2 / + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 58 + + col0 + - col2 * 28 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-2608
SELECT 21, + 44 DIV + col1 AS col1 FROM tab0 cor0
----
21
0
21
2
21
44

skipif mysql # not compatible
query II rowsort label-2608
SELECT 21, + 44 / + col1 AS col1 FROM tab0 cor0
----
21
0
21
2
21
44

query II rowsort
SELECT ALL col1 AS col0, col0 * + 98 - + col1 AS col0 FROM tab0 AS cor0
----
1
9505
21
8505
81
1389

query II rowsort
SELECT - col0 * - + col1 AS col2, 44 AS col1 FROM tab0
----
1215
44
1827
44
97
44

onlyif mysql # aggregate syntax: 
query I rowsort label-2611
SELECT ALL + ( - COUNT( * ) ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-2611
SELECT ALL + ( - COUNT ( * ) ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 col0 FROM tab0 AS cor0 WHERE NOT - 82 IS NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2613
SELECT + MIN( + - col0 ) + - - 42 FROM tab2 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-2613
SELECT + MIN ( + - col0 ) + - - 42 FROM tab2 AS cor0
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2614
SELECT + CAST( - 44 AS SIGNED ) AS col0 FROM tab0 cor0 WHERE NOT NULL >= NULL
----

skipif mysql # not compatible
query I rowsort label-2614
SELECT + CAST ( - 44 AS INTEGER ) AS col0 FROM tab0 cor0 WHERE NOT NULL >= NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 61 NOT BETWEEN NULL AND + - 80 + 18
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col1 * col1 * - 35 + col1 FROM tab2 AS cor0
----
157182
207592
91086

query I rowsort
SELECT DISTINCT 2 + - 96 AS col1 FROM tab2 AS cor0
----
-94

onlyif mysql # aggregate syntax: 
query II rowsort label-2618
SELECT ALL SUM( col2 ), SUM( - 97 ) AS col1 FROM tab2 AS cor0
----
121
-291

skipif mysql # not compatible
query II rowsort label-2618
SELECT ALL SUM ( col2 ), SUM ( - 97 ) AS col1 FROM tab2 AS cor0
----
121
-291

query I rowsort
SELECT ALL - - AVG ( ALL - col0 ) AS col0 FROM tab1 AS cor0 WHERE NULL > ( NULL )
----
NULL

query II rowsort
SELECT 28 AS col2, + 76 FROM tab2
----
28
76
28
76
28
76

onlyif mysql # aggregate syntax: 
query I rowsort label-2621
SELECT DISTINCT ( - - 52 ) + + ( + COUNT( * ) ) FROM tab0
----
55

skipif mysql # not compatible
query I rowsort label-2621
SELECT DISTINCT ( - - 52 ) + + ( + COUNT ( * ) ) FROM tab0
----
55

query III rowsort
SELECT * FROM tab1 WHERE 3 * 56 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE + col2 + - col0 * + + col1 BETWEEN NULL AND 85
----

query I rowsort
SELECT ALL - col0 AS col0 FROM tab1 WHERE NOT + + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2625
SELECT + 47 * + ( - + COUNT( * ) ) * + COUNT( * ) AS col0 FROM tab0
----
-423

skipif mysql # not compatible
query I rowsort label-2625
SELECT + 47 * + ( - + COUNT ( * ) ) * + COUNT ( * ) AS col0 FROM tab0
----
-423

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2626
SELECT + 34 * ( + CAST( + 6 AS SIGNED ) ) + - col2 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2626
SELECT + 34 * ( + CAST ( + 6 AS INTEGER ) ) + - col2 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + col0 + - col2 + - col0 FROM tab0 AS cor0
----
-10
-47
-99

query I rowsort
SELECT 63 AS col2 FROM tab0 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

query I rowsort
SELECT ALL - 81 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 205b3ff2d7b1817c98d7980b8c17e6c1

onlyif mysql # aggregate syntax: 
query I rowsort label-2630
SELECT - - AVG ( + + ( + col2 ) ) / - - COUNT( * ) FROM tab0 WHERE - - 99 * + col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2630
SELECT - - AVG ( + + ( + col2 ) ) / - - COUNT ( * ) FROM tab0 WHERE - - 99 * + col0 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2631
SELECT - 58 * - + COUNT( * ) - - + 99 - - + COUNT( * ) col1, + COUNT( * ) AS col1 FROM tab1 AS cor0
----
276
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2631
SELECT - 58 * - + COUNT ( * ) - - + 99 - - + COUNT ( * ) col1, + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
276
3

query I rowsort
SELECT - - col1 - - col1 AS col0 FROM tab0 AS cor0
----
162
2
42

query I rowsort
SELECT DISTINCT - ( - - ( col2 ) ) * + col0 FROM tab0
----
-705
-870
-9603

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2634
SELECT - CAST( - - ( + COUNT( * ) ) AS SIGNED ) col1 FROM tab1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2634
SELECT - CAST ( - - ( + COUNT ( * ) ) AS INTEGER ) col1 FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2635
SELECT + COUNT( * ) col0 FROM tab1 AS cor0 WHERE NOT + col0 * + - 23 NOT BETWEEN NULL AND - col0 + - col2 - + 24 / 34 * - col0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2635
SELECT + COUNT ( * ) col0 FROM tab1 AS cor0 WHERE NOT + col0 * + - 23 NOT BETWEEN NULL AND - col0 + - col2 - + 24 / 34 * - col0
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT - + 84 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2637
SELECT col2 DIV - 97 AS col0, col1 DIV + col0 - + col0 DIV + col0 FROM tab1
----
0
-1
0
-1
0
-1

skipif mysql # not compatible
query II rowsort label-2637
SELECT col2 / - 97 AS col0, col1 / + col0 - + col0 / + col0 FROM tab1
----
0
-1
0
-1
0
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2638
SELECT 63 DIV + - ( + - col2 ) FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2638
SELECT 63 / + - ( + - col2 ) FROM tab1
----
0
0
1

query I rowsort
SELECT + 78 * col1 + - - 30 FROM tab0 AS cor0
----
108
1668
6348

onlyif mysql # DIV for integer division: 
query I rowsort label-2640
SELECT DISTINCT + 39 * + col2 DIV + col2 FROM tab2 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-2640
SELECT DISTINCT + 39 * + col2 / + col2 FROM tab2 AS cor0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-2641
SELECT ALL + + 73 + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
76

skipif mysql # not compatible
query I rowsort label-2641
SELECT ALL + + 73 + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2642
SELECT + + col2, + col0 AS col2 FROM tab1 cor0 WHERE + CAST( NULL AS SIGNED ) * + col0 * - col2 NOT BETWEEN - - 99 * - ( - - col2 ) + col0 AND NULL
----

skipif mysql # not compatible
query II rowsort label-2642
SELECT + + col2, + col0 AS col2 FROM tab1 cor0 WHERE + CAST ( NULL AS INTEGER ) * + col0 * - col2 NOT BETWEEN - - 99 * - ( - - col2 ) + col0 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0, col0 col0 FROM tab0 AS cor0 WHERE + 40 + + 84 + - 23 * + + col1 IS NOT NULL
----
15
15
87
87
97
97

query I rowsort
SELECT + col2 FROM tab2 WHERE + 67 + + col2 IS NOT NULL
----
23
40
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 63 * - 83 + - - 91 + col1 col1 FROM tab0
----
-5057
-5117
-5137

query I rowsort
SELECT ALL + ( col0 ) + 63 FROM tab0
----
150
160
78

onlyif mysql # DIV for integer division: 
query II rowsort label-2647
SELECT ALL col1 + + col1 + 44 DIV col2 * + - col0, + 4 AS col1 FROM tab0
----
-306
4
162
4
2
4

skipif mysql # not compatible
query II rowsort label-2647
SELECT ALL col1 + + col1 + 44 / col2 * + - col0, + 4 AS col1 FROM tab0
----
-306
4
162
4
2
4

onlyif mysql # aggregate syntax: 
query II rowsort label-2648
SELECT ALL COUNT( * ) * + 47 AS col0, + 6 AS col1 FROM tab1
----
141
6

skipif mysql # not compatible
query II rowsort label-2648
SELECT ALL COUNT ( * ) * + 47 AS col0, + 6 AS col1 FROM tab1
----
141
6

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2649
SELECT DISTINCT + col1 / - col2 - + 92 + - col1 * 78 * - CAST( NULL AS DECIMAL ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2649
SELECT DISTINCT + col1 / - col2 - + 92 + - col1 * 78 * - CAST ( NULL AS REAL ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2650
SELECT ALL MIN( DISTINCT - col2 ) AS col2 FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-2650
SELECT ALL MIN ( DISTINCT - col2 ) AS col2 FROM tab1
----
-96

query I rowsort
SELECT + col1 * + 59 * + + 43 AS col0 FROM tab0 AS cor0
----
205497
2537
53277

query II rowsort
SELECT ALL + col1 + - col1 * - col1 AS col0, col2 FROM tab2 AS cor0
----
2652
23
4556
58
6006
40

query I rowsort
SELECT ALL 8 + + col1 + - 23 - 76 + - col1 AS col1 FROM tab2
----
-91
-91
-91

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IN ( - col0 * + col1, col2 / + col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2655
SELECT + 65 DIV col1 FROM tab1 AS cor0
----
1
13
4

skipif mysql # not compatible
query I rowsort label-2655
SELECT + 65 / col1 FROM tab1 AS cor0
----
1
13
4

onlyif mysql # DIV for integer division: 
query I rowsort label-2656
SELECT + col2 DIV - + col2 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2656
SELECT + col2 / - + col2 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT 23 * - col2 FROM tab1
----
-1357
-1564
-2208

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2658
SELECT - COUNT( * ) DIV + - 20 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2658
SELECT - COUNT ( * ) / + - 20 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2659
SELECT ALL + COUNT( * ) * - 67 * - + 44 AS col1 FROM tab0
----
8844

skipif mysql # not compatible
query I rowsort label-2659
SELECT ALL + COUNT ( * ) * - 67 * - + 44 AS col1 FROM tab0
----
8844

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col1 / - - col2 AND NULL
----

query I rowsort
SELECT + + 96 * 10 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8bc4e161682a69058c1ad77cfa6786a8

query II rowsort
SELECT ALL - 62 AS col1, + 62 * - + col1 FROM tab2 AS cor0
----
-62
-3162
-62
-4154
-62
-4774

onlyif mysql # aggregate syntax: 
query I rowsort label-2663
SELECT DISTINCT + MAX( col1 ) AS col2 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-2663
SELECT DISTINCT + MAX ( col1 ) AS col2 FROM tab0 AS cor0
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-2664
SELECT ALL - 4 DIV + col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2664
SELECT ALL - 4 / + col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2665
SELECT - COUNT( * ) + - 61 FROM tab0 AS cor0
----
-64

skipif mysql # not compatible
query I rowsort label-2665
SELECT - COUNT ( * ) + - 61 FROM tab0 AS cor0
----
-64

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2666
SELECT ALL + 42 / - CAST( NULL AS DECIMAL ) * - AVG ( DISTINCT + + 24 ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2666
SELECT ALL + 42 / - CAST ( NULL AS REAL ) * - AVG ( DISTINCT + + 24 ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + + col2 * - + col2 AS col2 FROM tab1 cor0
----
-3481
-4624
-9216

query I rowsort
SELECT DISTINCT - + 59 FROM tab2 AS cor0 WHERE - col1 + + + col0 IS NOT NULL
----
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-2669
SELECT + 57 DIV + col1 AS col2 FROM tab0 AS cor0
----
0
2
57

skipif mysql # not compatible
query I rowsort label-2669
SELECT + 57 / + col1 AS col2 FROM tab0 AS cor0
----
0
2
57

onlyif mysql # DIV for integer division: 
query I rowsort label-2670
SELECT ALL - col2 DIV - col1 - 88 AS col1 FROM tab0 AS cor0
----
-88
-88
11

skipif mysql # not compatible
query I rowsort label-2670
SELECT ALL - col2 / - col1 - 88 AS col1 FROM tab0 AS cor0
----
-88
-88
11

onlyif mysql # DIV for integer division: 
query I rowsort label-2671
SELECT ALL - - 2 DIV - - col2 + - col2 AS col1 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-2671
SELECT ALL - - 2 / - - col2 + - col2 AS col1 FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2672
SELECT ALL + col2 + - - CAST( NULL AS DECIMAL ) - - col1 * + - col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2672
SELECT ALL + col2 + - - CAST ( NULL AS REAL ) - - col1 * + - col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab0 cor0 WHERE NULL IS NULL
----
15
87
97

onlyif mysql # DIV for integer division: 
query I rowsort label-2674
SELECT DISTINCT col0 + 12 DIV - + col0 FROM tab0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-2674
SELECT DISTINCT col0 + 12 / - + col0 FROM tab0
----
15
87
97

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2675
SELECT ALL - 44 + - col2 * - + ( - - CAST( NULL AS DECIMAL ) ) + + - 44 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2675
SELECT ALL - 44 + - col2 * - + ( - - CAST ( NULL AS REAL ) ) + + - 44 AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2676
SELECT DISTINCT + col2 DIV - col0 AS col2 FROM tab2 WHERE - - col0 NOT BETWEEN + col0 AND - 5
----
0

skipif mysql # not compatible
query I rowsort label-2676
SELECT DISTINCT + col2 / - col0 AS col2 FROM tab2 WHERE - - col0 NOT BETWEEN + col0 AND - 5
----
0

query I rowsort
SELECT col2 FROM tab1 WHERE - col0 NOT BETWEEN NULL AND ( + col1 )
----

query I rowsort
SELECT DISTINCT 0 + + - col1 FROM tab1
----
-14
-47
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2679
SELECT DISTINCT ( CAST( NULL AS SIGNED ) ) / + COUNT( * ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2679
SELECT DISTINCT ( CAST ( NULL AS INTEGER ) ) / + COUNT ( * ) AS col1 FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE + - col0 NOT BETWEEN NULL AND + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2681
SELECT COUNT( * ) + + 46 AS col1 FROM tab2 cor0
----
49

skipif mysql # not compatible
query I rowsort label-2681
SELECT COUNT ( * ) + + 46 AS col1 FROM tab2 cor0
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2682
SELECT ALL col1 + - + CAST( + col1 AS SIGNED ) / + 57 FROM tab1 AS cor0 WHERE NOT NULL <= NULL
----

skipif mysql # not compatible
query I rowsort label-2682
SELECT ALL col1 + - + CAST ( + col1 AS INTEGER ) / + 57 FROM tab1 AS cor0 WHERE NOT NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2683
SELECT + ( - COUNT( * ) ) + + MIN( - col2 ) FROM tab1 cor0
----
-99

skipif mysql # not compatible
query I rowsort label-2683
SELECT + ( - COUNT ( * ) ) + + MIN ( - col2 ) FROM tab1 cor0
----
-99

query I rowsort
SELECT DISTINCT - - col0 FROM tab1 AS cor0 WHERE col0 IS NULL
----

query I rowsort
SELECT + + 56 AS col0 FROM tab2 AS cor0
----
56
56
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( 1 ) col1 FROM tab2 cor0 WHERE NOT ( NULL ) BETWEEN - - col2 AND 27
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2687
SELECT MAX( + col2 ) AS col0 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-2687
SELECT MAX ( + col2 ) AS col0 FROM tab2 AS cor0
----
58

query I rowsort
SELECT + - ( + - 75 ) AS col2 FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
75
75
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2689
SELECT + 24 * - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-2689
SELECT + 24 * - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-72

query I rowsort
SELECT 92 * + + col0 FROM tab1
----
4692
7820
8372

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2691
SELECT CAST( + 63 AS SIGNED ) AS col1 FROM tab2
----
63
63
63

skipif mysql # not compatible
query I rowsort label-2691
SELECT CAST ( + 63 AS INTEGER ) AS col1 FROM tab2
----
63
63
63

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2692
SELECT 28 col2, CAST( NULL AS SIGNED ) FROM tab0
----
28
NULL
28
NULL
28
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2692
SELECT 28 col2, CAST ( NULL AS INTEGER ) FROM tab0
----
28
NULL
28
NULL
28
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2693
SELECT + 89 * COUNT( * ) * - - 71 + + 97 AS col1 FROM tab2 AS cor0
----
19054

skipif mysql # not compatible
query I rowsort label-2693
SELECT + 89 * COUNT ( * ) * - - 71 + + 97 AS col1 FROM tab2 AS cor0
----
19054

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2694
SELECT DISTINCT MIN( ALL - - ( col1 ) ) * - 25 * CAST( + COUNT( * ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-375

skipif mysql # not compatible
query I rowsort label-2694
SELECT DISTINCT MIN ( ALL - - ( col1 ) ) * - 25 * CAST ( + COUNT ( * ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-375

query I rowsort
SELECT + col0 AS col1 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2696
SELECT DISTINCT CAST( - 73 AS SIGNED ) FROM tab0 cor0
----
-73

skipif mysql # not compatible
query I rowsort label-2696
SELECT DISTINCT CAST ( - 73 AS INTEGER ) FROM tab0 cor0
----
-73

query I rowsort
SELECT ALL + + 29 + + + col2 FROM tab1 AS cor0
----
125
88
97

query I rowsort
SELECT 32 + col2 * col2 FROM tab0
----
132
2241
9833

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col1 >= - col2 + + col2
----

query I rowsort
SELECT col2 * + col0 + 75 FROM tab1
----
4971
5090
6263

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col0 + - col2 NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT col1 FROM tab1 WHERE NOT - 22 + - 90 IS NULL
----
14
47
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 37 col2 FROM tab0
----
37
37
37

onlyif mysql # aggregate syntax: 
query I rowsort label-2704
SELECT + 82 + MAX( DISTINCT 29 ) FROM tab2
----
111

skipif mysql # not compatible
query I rowsort label-2704
SELECT + 82 + MAX ( DISTINCT 29 ) FROM tab2
----
111

query I rowsort
SELECT DISTINCT + 12 - col2 FROM tab2 WHERE NOT col2 > ( - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2706
SELECT COUNT( * ) + ( - 95 ) * - 93 FROM tab1
----
8838

skipif mysql # not compatible
query I rowsort label-2706
SELECT COUNT ( * ) + ( - 95 ) * - 93 FROM tab1
----
8838

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 72 + 84 col1 FROM tab2
----
156
156
156

query I rowsort
SELECT 48 + + col2 FROM tab1
----
107
116
144

query I rowsort
SELECT ALL + 60 + + col1 AS col0 FROM tab0
----
141
61
81

query I rowsort
SELECT ALL ( + 3 ) * + 65 AS col1 FROM tab0 WHERE NULL NOT IN ( - col1 * + 81 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2711
SELECT DISTINCT col0 + + col2 DIV col0 AS col1 FROM tab0
----
18
87
98

skipif mysql # not compatible
query I rowsort label-2711
SELECT DISTINCT col0 + + col2 / col0 AS col1 FROM tab0
----
18
87
98

onlyif mysql # aggregate syntax: 
query I rowsort label-2712
SELECT COUNT( * ) * 22 - MIN( DISTINCT col1 ) AS col0 FROM tab2
----
15

skipif mysql # not compatible
query I rowsort label-2712
SELECT COUNT ( * ) * 22 - MIN ( DISTINCT col1 ) AS col0 FROM tab2
----
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 65 * 96 col0 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT col2 * col1 + col2 * col0 FROM tab0
----
1080
4512
9702

onlyif mysql # aggregate syntax: 
query I rowsort label-2715
SELECT ALL COUNT( * ) * 23 FROM tab0 WHERE ( 93 + + 32 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2715
SELECT ALL COUNT ( * ) * 23 FROM tab0 WHERE ( 93 + + 32 ) IS NULL
----
0

query I rowsort
SELECT DISTINCT col0 + + col1 * + 90 AS col1 FROM tab0
----
187
1977
7305

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( 8 ) BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE 95 BETWEEN NULL AND 77 + - 85
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 <= ( - col1 * + 47 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE NULL <= col2 + + col0
----

query I rowsort
SELECT 4 FROM tab0 WHERE NULL = 90
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2722
SELECT COUNT( ALL col0 ) AS col0 FROM tab2 WHERE ( NULL ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2722
SELECT COUNT ( ALL col0 ) AS col0 FROM tab2 WHERE ( NULL ) IS NULL
----
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col1 NOT IN ( - 59 )
----

query I rowsort
SELECT DISTINCT col0 * + col2 AS col2 FROM tab0 cor0
----
705
870
9603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2725
SELECT - 97 - + CAST( 7 + + 78 AS SIGNED ) * + 16 FROM tab2 cor0
----
-1457
-1457
-1457

skipif mysql # not compatible
query I rowsort label-2725
SELECT - 97 - + CAST ( 7 + + 78 AS INTEGER ) * + 16 FROM tab2 cor0
----
-1457
-1457
-1457

onlyif mysql # aggregate syntax: 
query I rowsort label-2726
SELECT SUM( ALL 92 ) AS col0 FROM tab1
----
276

skipif mysql # not compatible
query I rowsort label-2726
SELECT SUM ( ALL 92 ) AS col0 FROM tab1
----
276

query III rowsort
SELECT ALL * FROM tab1 WHERE col2 * 2 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2728
SELECT DISTINCT + MIN( CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2728
SELECT DISTINCT + MIN ( CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN 22 AND - 66
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col0 ) IN ( + ( col1 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2731
SELECT MAX( DISTINCT - col0 ) AS col0 FROM tab2 cor0 WHERE NOT ( + ( - ( + col1 ) ) ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2731
SELECT MAX ( DISTINCT - col0 ) AS col0 FROM tab2 cor0 WHERE NOT ( + ( - ( + col1 ) ) ) IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2732
SELECT + - CAST( NULL AS SIGNED ) * + 88 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2732
SELECT + - CAST ( NULL AS INTEGER ) * + 88 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2733
SELECT DISTINCT + SUM( DISTINCT + col1 ) AS col2 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-2733
SELECT DISTINCT + SUM ( DISTINCT + col1 ) AS col2 FROM tab2 AS cor0
----
195

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2734
SELECT COUNT( * ) DIV MIN( DISTINCT + col1 ) FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2734
SELECT COUNT ( * ) / MIN ( DISTINCT + col1 ) FROM tab2 cor0
----
0

query I rowsort
SELECT - ( col1 ) * 19 FROM tab2 AS cor0
----
-1273
-1463
-969

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 - col2 BETWEEN NULL AND ( + col1 * col2 )
----

query I rowsort
SELECT DISTINCT + ( ( 65 ) ) AS col2 FROM tab0 AS cor0
----
65

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT IN ( 31 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2739
SELECT DISTINCT 55 * MIN( DISTINCT col1 * + 94 ) FROM tab0 WHERE col0 - + col2 BETWEEN NULL AND ( col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2739
SELECT DISTINCT 55 * MIN ( DISTINCT col1 * + 94 ) FROM tab0 WHERE col0 - + col2 BETWEEN NULL AND ( col2 )
----
NULL

query I rowsort
SELECT ALL + col0 - 69 AS col0 FROM tab0 WHERE NOT col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) NOT IN ( + 97 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2742
SELECT 13 DIV + col0 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2742
SELECT 13 / + col0 AS col0 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 53 col2 FROM tab2 WHERE NOT ( NULL ) = + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2744
SELECT + col2 / - 40 AS col2 FROM tab0 WHERE NOT NULL NOT IN ( - CAST( col2 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-2744
SELECT + col2 / - 40 AS col2 FROM tab0 WHERE NOT NULL NOT IN ( - CAST ( col2 AS INTEGER ) )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 56 / + col0 - - 5 BETWEEN ( col2 ) AND 44 * col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 52 * 72 NOT BETWEEN ( ( + ( col0 ) ) ) AND + ( col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NOT col0 BETWEEN NULL AND - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 12 col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e698dd57d3aac30af14ce35da434bb45

query I rowsort
SELECT ALL 60 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

query I rowsort
SELECT DISTINCT + col2 + + col2 + col0 FROM tab1 AS cor0
----
203
227
243

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2751
SELECT DISTINCT - CAST( NULL AS SIGNED ), 79 AS col0 FROM tab0 AS cor0
----
NULL
79

skipif mysql # not compatible
query II rowsort label-2751
SELECT DISTINCT - CAST ( NULL AS INTEGER ), 79 AS col0 FROM tab0 AS cor0
----
NULL
79

query II rowsort
SELECT ALL - - col0 AS col2, col2 * + ( - 21 ) * + 4 FROM tab0 AS cor0
----
15
-3948
87
-840
97
-8316

query I rowsort
SELECT + col1 * + col2 + 14 FROM tab0 AS cor0
----
113
224
3821

query I rowsort
SELECT DISTINCT + ( - 50 ) AS col0 FROM tab2 AS cor0
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-2755
SELECT 71 * + + COUNT( * ) col0 FROM tab1 AS cor0
----
213

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2755
SELECT 71 * + + COUNT ( * ) col0 FROM tab1 AS cor0
----
213

query I rowsort
SELECT ALL + 99 * + col1 * 20 + col2 FROM tab1 AS cor0
----
27816
93128
9959

onlyif mysql # DIV for integer division: 
query I rowsort label-2757
SELECT + 98 DIV col2 FROM tab0 AS cor0
----
0
2
9

skipif mysql # not compatible
query I rowsort label-2757
SELECT + 98 / col2 FROM tab0 AS cor0
----
0
2
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2758
SELECT ALL - + MIN( + - 77 ) AS col0 FROM tab1 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-2758
SELECT ALL - + MIN ( + - 77 ) AS col0 FROM tab1 AS cor0
----
77

query I rowsort
SELECT - col0 * - + col2 AS col2 FROM tab2 AS cor0
----
1058
2560
4350

query I rowsort
SELECT ALL col0 * + 14 * + + col0 - col0 + + 31 AS col2 FROM tab0 cor0
----
105910
131660
3166

query I rowsort
SELECT 14 * + col2 AS col0 FROM tab2
----
322
560
812

onlyif mysql # aggregate syntax: 
query I rowsort label-2762
SELECT DISTINCT COUNT( * ) + + 7 + 1 FROM tab1
----
11

skipif mysql # not compatible
query I rowsort label-2762
SELECT DISTINCT COUNT ( * ) + + 7 + 1 FROM tab1
----
11

query I rowsort
SELECT DISTINCT 94 + col2 * + - col2 + col0 + 77 FROM tab1
----
-3225
-4362
-8994

query I rowsort
SELECT + col1 + + col2 AS col2 FROM tab1 WHERE ( + col1 ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2765
SELECT CAST( NULL AS SIGNED ) + - col1 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2765
SELECT CAST ( NULL AS INTEGER ) + - col1 AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2766
SELECT DISTINCT - 2 * + + ( + col2 ) DIV col2 + - col0 * - 95 AS col1 FROM tab2
----
4368
6078
7123

skipif mysql # not compatible
query I rowsort label-2766
SELECT DISTINCT - 2 * + + ( + col2 ) / col2 + - col0 * - 95 AS col1 FROM tab2
----
4368
6078
7123

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2767
SELECT DISTINCT - CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) * + + ( - MAX( ALL + col1 ) ) + + MAX( col2 ) col1 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2767
SELECT DISTINCT - CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) * + + ( - MAX ( ALL + col1 ) ) + + MAX ( col2 ) col1 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 58 col0 FROM tab1 AS cor0
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2769
SELECT - 35 + col2 / - + ( CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2769
SELECT - 35 + col2 / - + ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2770
SELECT ALL + 45 DIV 39 AS col1, 79 * + col2 + col1 FROM tab1 AS cor0
----
1
4666
1
5419
1
7598

skipif mysql # not compatible
query II rowsort label-2770
SELECT ALL + 45 / 39 AS col1, 79 * + col2 + col1 FROM tab1 AS cor0
----
1
4666
1
5419
1
7598

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT IN ( + ( + 89 ) )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2772
SELECT + + COUNT( * ), COUNT( * ) + SUM( 10 ) AS col1 FROM tab0 AS cor0
----
3
33

skipif mysql # not compatible
query II rowsort label-2772
SELECT + + COUNT ( * ), COUNT ( * ) + SUM ( 10 ) AS col1 FROM tab0 AS cor0
----
3
33

onlyif mysql # aggregate syntax: 
query II rowsort label-2773
SELECT 82 * - COUNT( * ), COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-2773
SELECT 82 * - COUNT ( * ), COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0
0

query I rowsort
SELECT DISTINCT - - 88 AS col2 FROM tab1 AS cor0
----
88

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE col2 <= ( + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 83 AS col2 FROM tab2 AS cor0 WHERE NOT - col0 * - col1 + + col0 + col1 IS NULL
----
-83
-83
-83

onlyif mysql # aggregate syntax: 
query II rowsort label-2777
SELECT ALL 52, ( + COUNT( * ) ) AS col0 FROM tab0
----
52
3

skipif mysql # not compatible
query II rowsort label-2777
SELECT ALL 52, ( + COUNT ( * ) ) AS col0 FROM tab0
----
52
3

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( - 96 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 60 col1 FROM tab2, tab0 AS cor0
----
60

query I rowsort
SELECT col2 + + 76 AS col1 FROM tab0
----
123
175
86

onlyif mysql # aggregate syntax: 
query I rowsort label-2781
SELECT DISTINCT + SUM( DISTINCT - 78 ) - + 75 FROM tab1 WHERE NOT col0 BETWEEN NULL AND + 54
----
-153

skipif mysql # not compatible
query I rowsort label-2781
SELECT DISTINCT + SUM ( DISTINCT - 78 ) - + 75 FROM tab1 WHERE NOT col0 BETWEEN NULL AND + 54
----
-153

query I rowsort
SELECT - col1 * + 0 + 21 AS col1 FROM tab1
----
21
21
21

query I rowsort
SELECT ALL - 40 + - col1 FROM tab1 AS cor0
----
-45
-54
-87

query I rowsort
SELECT ALL col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT - + col0 AS col0 FROM tab0 cor0 WHERE NULL BETWEEN ( NULL ) AND - - 62 * + - col2 / - col0
----

query I rowsort
SELECT - 18 * + + 12 FROM tab1
----
-216
-216
-216

onlyif mysql # aggregate syntax: 
query I rowsort label-2787
SELECT + MAX( DISTINCT - + col0 ) FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-2787
SELECT + MAX ( DISTINCT - + col0 ) FROM tab1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-2788
SELECT ALL COUNT( ALL 86 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-2788
SELECT ALL COUNT ( ALL 86 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + col1 * + 61 ) <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2790
SELECT DISTINCT col2 * - col0 + + - col2 * col1 + + 79 / + col2 / + CAST( NULL AS SIGNED ) + col1 * col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-2790
SELECT DISTINCT col2 * - col0 + + - col2 * col1 + + 79 / + col2 / + CAST ( NULL AS INTEGER ) + col1 * col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 97 * - 18 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 * + 5 + - - col1 FROM tab1 AS cor0
----
300
387
494

query I rowsort
SELECT ALL + + col0 * col0 FROM tab0 AS cor0 WHERE NOT + ( + - 86 ) IS NOT NULL
----

query I rowsort
SELECT ALL + - col0 + col1 * - 24 FROM tab2 AS cor0
----
-1270
-1683
-1912

query I rowsort
SELECT ALL - + 76 FROM tab1 AS cor0 WHERE NOT ( NOT 79 IS NOT NULL )
----
-76
-76
-76

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( ( NOT ( NOT ( NOT - col1 IS NOT NULL ) ) ) )
----

query I rowsort
SELECT col2 * 52 AS col2 FROM tab0
----
2444
5148
520

query I rowsort
SELECT DISTINCT 4 - + 76 + + + 15 + + + col0 FROM tab1
----
-6
28
34

onlyif mysql # aggregate syntax: 
query I rowsort label-2799
SELECT ALL + COUNT( * ) + + 72 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-2799
SELECT ALL + COUNT ( * ) + + 72 FROM tab2
----
75

query I rowsort
SELECT ALL col0 - - - col2 + + + 67 * col2 FROM tab1
----
3979
4579
6387

query I rowsort
SELECT ALL - + col0 FROM tab1 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col1 * - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + - 79 FROM tab1 WHERE + - 61 IS NOT NULL
----
-79
-79
-79

query I rowsort
SELECT + ( + + 84 ) FROM tab0
----
84
84
84

query I rowsort
SELECT ALL - 36 * - col0 FROM tab2 AS cor0
----
1656
2304
2700

query I rowsort
SELECT + col1 * + 90 FROM tab2 AS cor0
----
4590
6030
6930

query I rowsort
SELECT ALL + 58 * + ( + col2 ) FROM tab0 AS cor0
----
2726
5742
580

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2808
SELECT + CAST( NULL AS DECIMAL ) FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2808
SELECT + CAST ( NULL AS REAL ) FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 JOIN tab0 AS cor1 ON NULL IS NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

onlyif mysql # aggregate syntax: 
query II rowsort label-2810
SELECT MIN( ALL 91 ) AS col2, 35 AS col0 FROM tab1 AS cor0
----
91
35

skipif mysql # not compatible
query II rowsort label-2810
SELECT MIN ( ALL 91 ) AS col2, 35 AS col0 FROM tab1 AS cor0
----
91
35

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 + - - col2 >= NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2812
SELECT ALL + 3 DIV - - COUNT( * ) FROM tab1 cor0
----
1

skipif mysql # not compatible
query I rowsort label-2812
SELECT ALL + 3 / - - COUNT ( * ) FROM tab1 cor0
----
1

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 * + + 33 <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2814
SELECT ALL + col1 DIV + + col0 * - col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2814
SELECT ALL + col1 / + + col0 * - col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - 39 * + - col0 FROM tab1 cor0
----
1989
3315
3549

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2816
SELECT - - 52 * - COUNT( * ) DIV - 93 AS col1 FROM tab0 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) + col2 + 97 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2816
SELECT - - 52 * - COUNT ( * ) / - 93 AS col1 FROM tab0 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) + col2 + 97 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2817
SELECT + + COUNT( * ) AS col1 FROM tab2 WHERE NOT col0 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2817
SELECT + + COUNT ( * ) AS col1 FROM tab2 WHERE NOT col0 IS NULL
----
3

query I rowsort
SELECT ALL col0 + - + col2 FROM tab2
----
17
23
24

onlyif mysql # aggregate syntax: 
query I rowsort label-2819
SELECT - MIN( ALL + col0 ) col2 FROM tab1
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2819
SELECT - MIN ( ALL + col0 ) col2 FROM tab1
----
-51

query II rowsort
SELECT + 33 AS col1, - col2 AS col2 FROM tab0
----
33
-10
33
-47
33
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-2821
SELECT - 98 * - col1 - - col2 DIV + col2 AS col2 FROM tab1 AS cor0
----
1373
4607
491

skipif mysql # not compatible
query I rowsort label-2821
SELECT - 98 * - col1 - - col2 / + col2 AS col2 FROM tab1 AS cor0
----
1373
4607
491

onlyif mysql # aggregate syntax: 
query I rowsort label-2822
SELECT DISTINCT + + MIN( DISTINCT 64 ) FROM tab0 AS cor0
----
64

skipif mysql # not compatible
query I rowsort label-2822
SELECT DISTINCT + + MIN ( DISTINCT 64 ) FROM tab0 AS cor0
----
64

onlyif mysql # DIV for integer division: 
query II rowsort label-2823
SELECT ALL + 76 AS col1, ( - + 62 ) DIV + col1 - + col0 AS col0 FROM tab0 AS cor0
----
76
-15
76
-159
76
-89

skipif mysql # not compatible
query II rowsort label-2823
SELECT ALL + 76 AS col1, ( - + 62 ) / + col1 - + col0 AS col0 FROM tab0 AS cor0
----
76
-15
76
-159
76
-89

query I rowsort
SELECT DISTINCT + 77 + + - 15 + col1 AS col1 FROM tab0
----
143
63
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2825
SELECT col0 + + + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2825
SELECT col0 + + + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + col0 + + - 37 col2 FROM tab0
----
188
7532
9372

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 91 col1 FROM tab1
----
-91
-91
-91

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 0 IN ( col1 * - 11 )
----

query II rowsort
SELECT ( col2 ) AS col1, col0 FROM tab0 AS cor0
----
10
87
47
15
99
97

query I rowsort
SELECT ALL - + 43 - col2 FROM tab2 AS cor0
----
-101
-66
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-2831
SELECT DISTINCT + MAX( ALL col0 ) AS col1 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-2831
SELECT DISTINCT + MAX ( ALL col0 ) AS col1 FROM tab0 AS cor0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2832
SELECT + 33 - - COUNT( * ) AS col0 FROM tab1 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-2832
SELECT + 33 - - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
36

query I rowsort
SELECT + + col0 - - col1 AS col2 FROM tab1 cor0
----
138
65
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2834
SELECT + - 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-2834
SELECT + - col0 - - CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2835
SELECT - ( COUNT( DISTINCT + 2 ) ) - + MAX( col1 ) FROM tab2
----
-78

skipif mysql # not compatible
query I rowsort label-2835
SELECT - ( COUNT ( DISTINCT + 2 ) ) - + MAX ( col1 ) FROM tab2
----
-78

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2836
SELECT ALL * FROM tab1 WHERE NOT + col0 NOT IN ( + col0 - - col0 + CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-2836
SELECT ALL * FROM tab1 WHERE NOT + col0 NOT IN ( + col0 - - col0 + CAST ( NULL AS REAL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2837
SELECT ALL - COUNT( ALL + - col1 ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2837
SELECT ALL - COUNT ( ALL + - col1 ) AS col0 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2838
SELECT ALL + - ( - - COUNT( * ) ) * + MAX( - + 59 ) FROM tab2 AS cor0
----
177

skipif mysql # not compatible
query I rowsort label-2838
SELECT ALL + - ( - - COUNT ( * ) ) * + MAX ( - + 59 ) FROM tab2 AS cor0
----
177

query I rowsort
SELECT ALL + col0 * + col0 * - 5 * col1 FROM tab0 AS cor0
----
-47045
-794745
-91125

query I rowsort
SELECT - col2 * col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IN ( col0 * - col2 * ( 42 ) * + - col0 - - - 52, + col1 + - 69 + 99 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2841
SELECT DISTINCT - + MAX( ALL 75 ) DIV COUNT( * ) + 81 FROM tab1 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-2841
SELECT DISTINCT - + MAX ( ALL 75 ) / COUNT ( * ) + 81 FROM tab1 AS cor0
----
56

query I rowsort
SELECT DISTINCT - 6 AS col1 FROM tab0 cor0
----
-6

query I rowsort
SELECT + col1 FROM tab2 WHERE NOT NULL = + col1 * - - col1
----

query I rowsort
SELECT - + col1 * - col0 FROM tab2 cor0 WHERE NOT NULL NOT IN ( 42, + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2845
SELECT DISTINCT - + MIN( - - 31 ) * + 19 AS col1 FROM tab1 AS cor0
----
-589

skipif mysql # not compatible
query I rowsort label-2845
SELECT DISTINCT - + MIN ( - - 31 ) * + 19 AS col1 FROM tab1 AS cor0
----
-589

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 AS col2, col2 col0 FROM tab0 AS cor0 WHERE - col0 IS NOT NULL
----
-1
99
-21
10
-81
47

query I rowsort
SELECT DISTINCT + 85 * - col1 AS col0 FROM tab0 AS cor0
----
-1785
-6885
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2848
SELECT ALL ( + COUNT( * ) ) DIV - COUNT( * ) + - 90, - 77 + - 77 - + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) AS col2 FROM tab0 cor0
----
-91
NULL

skipif mysql # not compatible
query II rowsort label-2848
SELECT ALL ( + COUNT ( * ) ) / - COUNT ( * ) + - 90, - 77 + - 77 - + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2 FROM tab0 cor0
----
-91
NULL

query I rowsort
SELECT DISTINCT - - col0 + - col0 * col2 - + col1 + + + col1 * - 24 * - col2 + 96 FROM tab1 cor0
----
2241
27493
70656

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - col1 + col0 col0 FROM tab1
----
-1293
-210
-3105

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL <> + col0 OR - col2 * - col1 * + + col2 NOT BETWEEN NULL AND - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 10 FROM tab0 WHERE - col2 * + col0 IS NOT NULL
----
-10
-10
-10

query I rowsort
SELECT - + col2 FROM tab2 WHERE - col1 <> + col0
----
-23
-40
-58

query II rowsort
SELECT DISTINCT + 38 * - 37 AS col1, ( + col2 ) FROM tab1
----
-1406
59
-1406
68
-1406
96

onlyif mysql # DIV for integer division: 
query I rowsort label-2855
SELECT col0 + col0 + col2 DIV - 55 AS col1 FROM tab1
----
101
169
181

skipif mysql # not compatible
query I rowsort label-2855
SELECT col0 + col0 + col2 / - 55 AS col1 FROM tab1
----
101
169
181

query III rowsort
SELECT * FROM tab1 WHERE + 40 - col0 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2857
SELECT + 72 + - 78 + COUNT( * ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2857
SELECT + 72 + - 78 + COUNT ( * ) AS col1 FROM tab0
----
-3

query I rowsort
SELECT col1 + - 47 AS col2 FROM tab1
----
-33
-42
0

query I rowsort
SELECT ALL + - col2 + - 59 FROM tab2 cor0
----
-117
-82
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2860
SELECT DISTINCT - MIN( DISTINCT + col0 ) FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-2860
SELECT DISTINCT - MIN ( DISTINCT + col0 ) FROM tab0 AS cor0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-2861
SELECT DISTINCT + - SUM( 61 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-549

skipif mysql # not compatible
query I rowsort label-2861
SELECT DISTINCT + - SUM ( 61 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-549

onlyif mysql # DIV for integer division: 
query II rowsort label-2862
SELECT 81 - - + col0 DIV - col1 AS col1, 93 DIV - col2 - - + col2 FROM tab0
----
-16
99
77
1
81
46

skipif mysql # not compatible
query II rowsort label-2862
SELECT 81 - - + col0 / - col1 AS col1, 93 / - col2 - - + col2 FROM tab0
----
-16
99
77
1
81
46

query I rowsort
SELECT + col2 FROM tab0 WHERE NULL > - + col2 + - - col2
----

query I rowsort
SELECT DISTINCT + 19 AS col2 FROM ( tab1 cor0 CROSS JOIN tab0 AS cor1 )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-2865
SELECT ALL - ( - ( + COUNT( * ) ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2865
SELECT ALL - ( - ( + COUNT ( * ) ) ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2866
SELECT + - COUNT( * ) * - ( + 92 ) AS col0 FROM tab1 AS cor0
----
276

skipif mysql # not compatible
query I rowsort label-2866
SELECT + - COUNT ( * ) * - ( + 92 ) AS col0 FROM tab1 AS cor0
----
276

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2867
SELECT - COUNT( - col0 ) DIV - MAX( ALL col1 ) - - COUNT( * ) DIV 81 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2867
SELECT - COUNT ( - col0 ) / - MAX ( ALL col1 ) - - COUNT ( * ) / 81 AS col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT 89 * + + col2 AS col2 FROM tab0 AS cor0
----
4183
8811
890

onlyif mysql # aggregate syntax: 
query I rowsort label-2869
SELECT DISTINCT - MIN( - - 21 ) FROM tab0 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-2869
SELECT DISTINCT - MIN ( - - 21 ) FROM tab0 AS cor0
----
-21

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 84 <= ( NULL )
----

query I rowsort
SELECT - col2 * + - col0 + - ( + col0 ) AS col2 FROM tab2 AS cor0
----
1012
2496
4275

query II rowsort
SELECT DISTINCT + col0, - 21 FROM tab1
----
51
-21
85
-21
91
-21

query II rowsort
SELECT 61, 4 AS col1 FROM tab1
----
61
4
61
4
61
4

query I rowsort
SELECT - col2 * + - 49 FROM tab2
----
1127
1960
2842

query I rowsort
SELECT + 43 * - - 94 AS col1 FROM tab0
----
4042
4042
4042

query I rowsort
SELECT + - col0 FROM tab2 WHERE NOT 64 = 15
----
-46
-64
-75

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

query II rowsort
SELECT - + col1 AS col0, + 76 FROM tab2 AS cor0
----
-51
76
-67
76
-77
76

onlyif mysql # aggregate syntax: 
query II rowsort label-2879
SELECT + + COUNT( * ) AS col1, 1 FROM tab0 AS cor0
----
3
1

skipif mysql # not compatible
query II rowsort label-2879
SELECT + + COUNT ( * ) AS col1, 1 FROM tab0 AS cor0
----
3
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2880
SELECT - + 54 * - + COUNT( * ) FROM tab1 cor0
----
162

skipif mysql # not compatible
query I rowsort label-2880
SELECT - + 54 * - + COUNT ( * ) FROM tab1 cor0
----
162

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2881
SELECT - CAST( NULL AS SIGNED ) * 95 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2881
SELECT - CAST ( NULL AS INTEGER ) * 95 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( - + 96 ) * + + 89 AS col0 FROM tab1
----
-8544

query I rowsort
SELECT + col2 + + + 23 + + - col1 * - + 41 AS col2 FROM tab0
----
163
3391
894

onlyif mysql # aggregate syntax: 
query I rowsort label-2884
SELECT ALL MIN( DISTINCT + col2 ) AS col1 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-2884
SELECT ALL MIN ( DISTINCT + col2 ) AS col1 FROM tab1
----
59

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 31 + - col2 - - col2 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2886
SELECT ALL - 67 * 3 DIV col2 FROM tab0 cor0
----
-2
-20
-4

skipif mysql # not compatible
query I rowsort label-2886
SELECT ALL - 67 * 3 / col2 FROM tab0 cor0
----
-2
-20
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2887
SELECT ALL + ( + CAST( + ( - col1 ) AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-2887
SELECT ALL + ( + CAST ( + ( - col1 ) AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
-51
-67
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * + col0 + + col0 col0 FROM tab1 AS cor0
----
-340
-4186
-663

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 + - col0, - ( ( - - 5 ) ) col0 FROM tab2 AS cor0
----
-8
-5
13
-5
5
-5

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + + 35 + col1 IS NULL
----

query I rowsort
SELECT DISTINCT col2 + - col2 * - 98 * 20 FROM tab0
----
194139
19610
92167

query I rowsort
SELECT - + col1 - + col2 FROM tab1 WHERE ( - col0 ) > col0 / - col1
----

query II rowsort
SELECT DISTINCT + col0 * + - ( + col1 ), + col0 + col2 * + - ( + col1 ) AS col2 FROM tab2
----
-2346
-1127
-4928
-3016
-5025
-3811

query II rowsort
SELECT col2 + col2 AS col1, - col0 AS col1 FROM tab2 WHERE ( - - col0 * 25 + col2 / + col1 + - col2 * col1 ) NOT IN ( 58, 46, - 45 )
----
116
-75
46
-46
80
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-2895
SELECT - 28 * SUM( col2 ) + COUNT( * ) AS col1 FROM tab2 cor0
----
-3385

skipif mysql # not compatible
query I rowsort label-2895
SELECT - 28 * SUM ( col2 ) + COUNT ( * ) AS col1 FROM tab2 cor0
----
-3385

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT - 19 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2897
SELECT DISTINCT col2 + + col1 AS col1 FROM tab2 AS cor0 WHERE NOT + ( - - col0 ) >= CAST( col0 AS SIGNED ) * 34
----
117
125
74

skipif mysql # not compatible
query I rowsort label-2897
SELECT DISTINCT col2 + + col1 AS col1 FROM tab2 AS cor0 WHERE NOT + ( - - col0 ) >= CAST ( col0 AS INTEGER ) * 34
----
117
125
74

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 52 >= ( + col2 ) + + - col1 + col1 / - 36 - - 56
----

query I rowsort
SELECT ALL 16 + - col1 FROM tab2
----
-35
-51
-61

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col1 * 99 + - - 18 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - - 70 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-2902
SELECT 43 - + - 82 DIV + col2 FROM tab0 AS cor0
----
43
44
51

skipif mysql # not compatible
query I rowsort label-2902
SELECT 43 - + - 82 / + col2 FROM tab0 AS cor0
----
43
44
51

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL > 49
----

query II rowsort
SELECT + ( + col0 ) AS col1, 84 + + - ( + - col2 ) * - + 26 * + col0 + - + col2 FROM tab2 AS cor0
----
46
-27447
64
-66516
75
-113074

query I rowsort
SELECT - col2 * 86 FROM tab1 AS cor0
----
-5074
-5848
-8256

onlyif mysql # aggregate syntax: 
query I rowsort label-2906
SELECT DISTINCT MAX( ALL + col0 ) FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-2906
SELECT DISTINCT MAX ( ALL + col0 ) FROM tab2 AS cor0
----
75

query I rowsort
SELECT DISTINCT 9 * + - 45 FROM tab1 AS cor0
----
-405

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - 34 >= - col0 )
----

query II rowsort
SELECT DISTINCT col1 AS col0, - col1 * ( + + col0 ) AS col0 FROM tab0
----
1
-97
21
-1827
81
-1215

query II rowsort
SELECT ( - ( 3 ) ) * + 49 * + col0, col1 AS col0 FROM tab1
----
-12495
5
-13377
47
-7497
14

query I rowsort
SELECT + 71 * + 12 AS col0 FROM tab2 WHERE NOT + + col0 NOT BETWEEN NULL AND - + col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2912
SELECT ALL 31, COUNT( + - col0 ) * - 74 - + 86 AS col1 FROM tab0
----
31
-308

skipif mysql # not compatible
query II rowsort label-2912
SELECT ALL 31, COUNT ( + - col0 ) * - 74 - + 86 AS col1 FROM tab0
----
31
-308

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2913
SELECT + ( 50 ) * - CAST( + - col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
1150
2000
2900

skipif mysql # not compatible
query I rowsort label-2913
SELECT + ( 50 ) * - CAST ( + - col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
1150
2000
2900

onlyif mysql # DIV for integer division: 
query II rowsort label-2914
SELECT + col2 AS col1, + col2 DIV col0 FROM tab0 AS cor0
----
10
0
47
3
99
1

skipif mysql # not compatible
query II rowsort label-2914
SELECT + col2 AS col1, + col2 / col0 FROM tab0 AS cor0
----
10
0
47
3
99
1

query I rowsort
SELECT DISTINCT + ( - - col0 ) AS col1 FROM tab0 cor0
----
15
87
97

query I rowsort
SELECT + col1 * - 60 FROM tab2
----
-3060
-4020
-4620

query I rowsort
SELECT 13 * 62 FROM tab2
----
806
806
806

onlyif mysql # aggregate syntax: 
query I rowsort label-2918
SELECT DISTINCT - - SUM( DISTINCT + col1 ) AS col0 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-2918
SELECT DISTINCT - - SUM ( DISTINCT + col1 ) AS col0 FROM tab2 AS cor0
----
195

query II rowsort
SELECT DISTINCT + col2 AS col2, - 95 + + + col1 FROM tab2 AS cor0
----
23
-44
40
-18
58
-28

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col2 < + col2 + + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 72 + - col0 FROM tab1 AS cor0
----
-13
-19
21

onlyif mysql # DIV for integer division: 
query I rowsort label-2922
SELECT DISTINCT + 0 + + col2 DIV + - col1 * - col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2922
SELECT DISTINCT + 0 + + col2 / + - col1 * - col1 FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 + + col0 AS col1, - col1 * - - 35 * + 41 col2 FROM tab1
----
102
-20090
170
-7175
182
-67445

query I rowsort
SELECT + 38 AS col0 FROM tab2 WHERE + - col1 IS NULL
----

query I rowsort
SELECT ALL - 54 * - - col1 + - - col1 FROM tab2
----
-2703
-3551
-4081

onlyif mysql # aggregate syntax: 
query I rowsort label-2926
SELECT ALL + COUNT( * ) + + + 52 FROM tab1
----
55

skipif mysql # not compatible
query I rowsort label-2926
SELECT ALL + COUNT ( * ) + + + 52 FROM tab1
----
55

query II rowsort
SELECT ALL + col0 - - + col1, - col0 + + + col0 AS col1 FROM tab0
----
108
0
96
0
98
0

query II rowsort
SELECT - col0 + - col0 AS col0, - 17 + + col0 AS col1 FROM tab1
----
-102
34
-170
68
-182
74

query I rowsort
SELECT DISTINCT ( col2 ) * - + col2 + ( col2 ) + - - ( - 79 ) * + 30 FROM tab1
----
-11490
-5792
-6926

query I rowsort
SELECT ALL 11 + + col1 AS col0 FROM tab0
----
12
32
92

query I rowsort
SELECT - - col1 FROM tab2 WHERE + - ( + 80 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2932
SELECT + - 40 + - ( COUNT( * ) ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
-40

skipif mysql # not compatible
query I rowsort label-2932
SELECT + - 40 + - ( COUNT ( * ) ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
-40

query I rowsort
SELECT + col0 * + col2 FROM tab0 AS cor0 WHERE NULL <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2934
SELECT ALL - COUNT( * ) * - 71 AS col1 FROM tab1
----
213

skipif mysql # not compatible
query I rowsort label-2934
SELECT ALL - COUNT ( * ) * - 71 AS col1 FROM tab1
----
213

query I rowsort
SELECT - + 48 * + 4 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2936
SELECT 53 DIV + + col0 FROM tab0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-2936
SELECT 53 / + + col0 FROM tab0
----
0
0
3

query II rowsort
SELECT ALL - col1, + col0 * - col2 + - + col0 AS col1 FROM tab1
----
-14
-4947
-47
-6279
-5
-5100

query I rowsort
SELECT ALL - ( - 37 ) AS col0 FROM tab1 AS cor0
----
37
37
37

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 33 BETWEEN NULL AND + 18
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2940
SELECT ALL CAST( + + 74 AS SIGNED ) FROM tab2 AS cor0
----
74
74
74

skipif mysql # not compatible
query I rowsort label-2940
SELECT ALL CAST ( + + 74 AS INTEGER ) FROM tab2 AS cor0
----
74
74
74

query I rowsort
SELECT col1 * + col2 + + col1 FROM tab1 cor0
----
1358
300
3243

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + col2 <= + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2943
SELECT DISTINCT - - 79 * - 42 - - + ( + COUNT( - + 26 ) ) AS col2 FROM tab0 AS cor0
----
-3315

skipif mysql # not compatible
query I rowsort label-2943
SELECT DISTINCT - - 79 * - 42 - - + ( + COUNT ( - + 26 ) ) AS col2 FROM tab0 AS cor0
----
-3315

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2944
SELECT DISTINCT + SUM( + 60 ) DIV + COUNT( * ) FROM tab2
----
60

skipif mysql # not compatible
query I rowsort label-2944
SELECT DISTINCT + SUM ( + 60 ) / + COUNT ( * ) FROM tab2
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2945
SELECT CAST( - col2 AS SIGNED ) * + col2 FROM tab2
----
-1600
-3364
-529

skipif mysql # not compatible
query I rowsort label-2945
SELECT CAST ( - col2 AS INTEGER ) * + col2 FROM tab2
----
-1600
-3364
-529

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col0 NOT IN ( col1, col1, - + 63 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL > + col2 / 8
----

query I rowsort
SELECT + col0 * + 73 * + col2 AS col2 FROM tab2 cor0
----
186880
317550
77234

query I rowsort
SELECT - 55 * - 61 AS col0 FROM tab0 cor0
----
3355
3355
3355

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2950
SELECT - CAST( + + AVG ( DISTINCT + 94 ) AS SIGNED ) FROM tab2 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-2950
SELECT - CAST ( + + AVG ( DISTINCT + 94 ) AS INTEGER ) FROM tab2 AS cor0
----
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2951
SELECT + 74 * SUM( CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2951
SELECT + 74 * SUM ( CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2952
SELECT - - col2 DIV + - col1 AS col1 FROM tab0 AS cor0
----
-99
0
0

skipif mysql # not compatible
query I rowsort label-2952
SELECT - - col2 / + - col1 AS col1 FROM tab0 AS cor0
----
-99
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2953
SELECT - - CAST( + COUNT( - + col2 ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2953
SELECT - - CAST ( + COUNT ( - + col2 ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - - col2 * - - col0 col0 FROM tab2 AS cor0 WHERE 54 + + col2 * + 47 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE 11 <= col2 * - col0 + 67 * - col2
----

query I rowsort
SELECT DISTINCT col2 * col2 AS col1 FROM tab2 WHERE NULL <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2957
SELECT - CAST( NULL AS SIGNED ) * - 25 * - 5 + ( + 40 ) + - 36 * - col1 col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2957
SELECT - CAST ( NULL AS INTEGER ) * - 25 * - 5 + ( + 40 ) + - 36 * - col1 col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2958
SELECT DISTINCT COUNT( 65 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2958
SELECT DISTINCT COUNT ( 65 ) FROM tab0
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2959
SELECT 14 * - CAST( NULL AS DECIMAL ) * + col1 + - - 53 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2959
SELECT 14 * - CAST ( NULL AS REAL ) * + col1 + - - 53 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 * - col2 * + 79 AS col2 FROM tab2
----
-202240
-343650
-83582

query I rowsort
SELECT - 73 * 73 AS col1 FROM tab0 AS cor0
----
-5329
-5329
-5329

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 + - 57 >= - 18
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab0 cor0 WHERE 53 IS NOT NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2964
SELECT ALL - COUNT( * ) * - 19 col1 FROM tab0 AS cor0
----
57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2964
SELECT ALL - COUNT ( * ) * - 19 col1 FROM tab0 AS cor0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-2965
SELECT MIN( - 2 ) AS col0 FROM tab0 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-2965
SELECT MIN ( - 2 ) AS col0 FROM tab0 AS cor0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2966
SELECT MAX( ALL + col2 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
58

skipif mysql # not compatible
query I rowsort label-2966
SELECT MAX ( ALL + col2 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
58

query I rowsort
SELECT col1 * 36 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2968
SELECT ALL - 96 + + + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE NOT col2 <> NULL
----

skipif mysql # not compatible
query I rowsort label-2968
SELECT ALL - 96 + + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE NOT col2 <> NULL
----

query I rowsort
SELECT - col2 AS col0 FROM tab0 WHERE NOT - col1 * - 44 + - 37 - - col0 IS NOT NULL
----

query I rowsort
SELECT + col0 AS col1 FROM tab1 WHERE NOT + + col0 + + ( + col0 ) <= - col1
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2971
SELECT ( CAST( NULL AS SIGNED ) ) * - - col1 + - CAST( + 76 AS DECIMAL ) + + + CAST( ( + col0 ) AS SIGNED ) + - - 8 - + col2 + + col1 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2971
SELECT ( CAST ( NULL AS INTEGER ) ) * - - col1 + - CAST ( + 76 AS REAL ) + + + CAST ( ( + col0 ) AS INTEGER ) + - - 8 - + col2 + + col1 AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2972
SELECT DISTINCT SUM( DISTINCT + col2 ) * + - 95 AS col1 FROM tab0
----
-14820

skipif mysql # not compatible
query I rowsort label-2972
SELECT DISTINCT SUM ( DISTINCT + col2 ) * + - 95 AS col1 FROM tab0
----
-14820

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2973
SELECT 26 * + + CAST( + col2 AS SIGNED ) AS col0, col1 AS col0 FROM tab0
----
1222
81
2574
1
260
21

skipif mysql # not compatible
query II rowsort label-2973
SELECT 26 * + + CAST ( + col2 AS INTEGER ) AS col0, col1 AS col0 FROM tab0
----
1222
81
2574
1
260
21

query I rowsort
SELECT + col2 + + 13 AS col0 FROM tab0
----
112
23
60

onlyif mysql # aggregate syntax: 
query I rowsort label-2975
SELECT DISTINCT + COUNT( * ) * - + 21 * - 79 col1 FROM tab0
----
4977

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2975
SELECT DISTINCT + COUNT ( * ) * - + 21 * - 79 col1 FROM tab0
----
4977

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2976
SELECT ( + CAST( - col2 AS SIGNED ) ) + - + 93 FROM tab0
----
-103
-140
-192

skipif mysql # not compatible
query I rowsort label-2976
SELECT ( + CAST ( - col2 AS INTEGER ) ) + - + 93 FROM tab0
----
-103
-140
-192

query I rowsort
SELECT - 13 + - + col0 AS col1 FROM tab0
----
-100
-110
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2978
SELECT ALL col2 * - + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2978
SELECT ALL col2 * - + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + 95 + - 54 * + + col1 FROM tab0 AS cor0
----
-1039
-4279
41

onlyif mysql # DIV for integer division: 
query I rowsort label-2980
SELECT DISTINCT + 16 DIV + col1 FROM tab1 AS cor0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-2980
SELECT DISTINCT + 16 / + col1 FROM tab1 AS cor0
----
0
1
3

query II rowsort
SELECT 47 AS col2, - col0 + + 8 FROM tab1 AS cor0
----
47
-43
47
-77
47
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2982
SELECT + + ( + - col2 ) col0 FROM tab2 AS cor0 WHERE NULL IN ( 50, - col2 * + 47, - col2, + + col2, + CAST( - 99 AS SIGNED ) )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2982
SELECT + + ( + - col2 ) col0 FROM tab2 AS cor0 WHERE NULL IN ( 50, - col2 * + 47, - col2, + + col2, + CAST ( - 99 AS INTEGER ) )
----

query I rowsort
SELECT ALL + + col0 AS col1 FROM tab2 WHERE NOT 17 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2984
SELECT + ( + - SUM( DISTINCT - col0 ) ) col1 FROM tab2
----
185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2984
SELECT + ( + - SUM ( DISTINCT - col0 ) ) col1 FROM tab2
----
185

query I rowsort
SELECT 41 + + col2 AS col1 FROM tab2 AS cor0
----
64
81
99

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL BETWEEN + col2 AND NULL AND col1 < ( + + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2987
SELECT CAST( NULL AS SIGNED ) + col2 + + CAST( NULL AS DECIMAL ) * - 64 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2987
SELECT CAST ( NULL AS INTEGER ) + col2 + + CAST ( NULL AS REAL ) * - 64 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL + col2 AS col1, - 84 * + + 94 * 13 + - - col0 FROM tab1 AS cor0 WHERE NOT NULL > NULL
----

query I rowsort
SELECT ALL + col2 + - 44 * 38 AS col2 FROM tab2 AS cor0
----
-1614
-1632
-1649

query I rowsort
SELECT DISTINCT + 66 - - - col1 AS col0 FROM tab0
----
-15
45
65

query I rowsort
SELECT + 85 * - - 96 FROM tab0
----
8160
8160
8160

query I rowsort
SELECT DISTINCT col0 * - 96 - - 89 AS col2 FROM tab0
----
-1351
-8263
-9223

onlyif mysql # aggregate syntax: 
query I rowsort label-2993
SELECT DISTINCT 4 + - COUNT( * ) AS col1 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-2993
SELECT DISTINCT 4 + - COUNT ( * ) AS col1 FROM tab2
----
1

query I rowsort
SELECT DISTINCT + + col1 - - + 58 AS col1 FROM tab1 AS cor0
----
105
63
72

query I rowsort
SELECT - ( + + 76 ) * + col1 FROM tab2
----
-3876
-5092
-5852

query I rowsort
SELECT DISTINCT - col2 * + 7 AS col1 FROM tab1
----
-413
-476
-672

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2997
SELECT 16, + CAST( - + MAX( ALL + col1 ) AS SIGNED ) AS col1 FROM tab2
----
16
-77

skipif mysql # not compatible
query II rowsort label-2997
SELECT 16, + CAST ( - + MAX ( ALL + col1 ) AS INTEGER ) AS col1 FROM tab2
----
16
-77

query I rowsort
SELECT DISTINCT + - 18 AS col0 FROM tab1 cor0
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-2999
SELECT ALL - 28 * MIN( col2 ) FROM tab1 AS cor0
----
-1652

skipif mysql # not compatible
query I rowsort label-2999
SELECT ALL - 28 * MIN ( col2 ) FROM tab1 AS cor0
----
-1652

query I rowsort
SELECT DISTINCT - + col2 * - 97 FROM tab0 AS cor0 WHERE - 89 - col1 + col2 IS NOT NULL
----
4559
9603
970

query I rowsort
SELECT ALL + + ( - 88 ) FROM tab0 AS cor0
----
-88
-88
-88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - - col2 ) col2 FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3003
SELECT - - CAST( 11 AS SIGNED ) col0 FROM tab0 AS cor0
----
11
11
11

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3003
SELECT - - CAST ( 11 AS INTEGER ) col0 FROM tab0 AS cor0
----
11
11
11

onlyif mysql # aggregate syntax: 
query I rowsort label-3004
SELECT ALL - SUM( ALL + 16 ) FROM tab1 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-3004
SELECT ALL - SUM ( ALL + 16 ) FROM tab1 AS cor0
----
-48

query I rowsort
SELECT DISTINCT ( - 63 ) FROM tab1
----
-63

query II rowsort
SELECT - col1 * + col1 AS col1, + ( - col1 ) FROM tab2
----
-2601
-51
-4489
-67
-5929
-77

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3007
SELECT DISTINCT - col2 * + ( - + CAST( NULL AS DECIMAL ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3007
SELECT DISTINCT - col2 * + ( - + CAST ( NULL AS REAL ) ) FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 < - col2
----
15
81
47
97
1
99

query I rowsort
SELECT + 71 * + col1 + 69 FROM tab0 WHERE NOT + ( + col0 ) <= NULL
----

query II rowsort
SELECT DISTINCT col2 * col1 AS col2, - col0 FROM tab1
----
1344
-51
295
-85
3196
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3011
SELECT DISTINCT MIN( col2 ) FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-3011
SELECT DISTINCT MIN ( col2 ) FROM tab1 AS cor0
----
59

query I rowsort
SELECT DISTINCT + 6 + col0 - + col0 + - - col0 * + ( + + col0 ) FROM tab2 AS cor0
----
2122
4102
5631

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab2 WHERE NULL NOT BETWEEN col2 AND NULL
----

query I rowsort
SELECT DISTINCT + 54 FROM tab1 WHERE + 6 IS NULL
----

query I rowsort
SELECT ALL + col2 + + 57 FROM tab2 AS cor0 WHERE 61 <> - 32
----
115
80
97

query I rowsort
SELECT ALL - col0 - + + 93 FROM tab2 AS cor0
----
-139
-157
-168

onlyif mysql # aggregate syntax: 
query I rowsort label-3017
SELECT ALL MIN( DISTINCT + - 71 ) FROM tab0 AS cor0
----
-71

skipif mysql # not compatible
query I rowsort label-3017
SELECT ALL MIN ( DISTINCT + - 71 ) FROM tab0 AS cor0
----
-71

query I rowsort
SELECT - ( 47 ) AS col0 FROM tab0 cor0
----
-47
-47
-47

onlyif mysql # aggregate syntax: 
query II rowsort label-3019
SELECT ALL + COUNT( * ), 52 AS col2 FROM tab0 AS cor0
----
3
52

skipif mysql # not compatible
query II rowsort label-3019
SELECT ALL + COUNT ( * ), 52 AS col2 FROM tab0 AS cor0
----
3
52

query I rowsort
SELECT - + 21 AS col0 FROM tab0 AS cor0
----
-21
-21
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-3021
SELECT DISTINCT - SUM( DISTINCT + + col1 ) FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-3021
SELECT DISTINCT - SUM ( DISTINCT + + col1 ) FROM tab2 AS cor0
----
-195

query I rowsort
SELECT ALL col1 + - + 91 FROM tab1 AS cor0
----
-44
-77
-86

query I rowsort
SELECT + - col1 - 89 FROM tab1 AS cor0
----
-103
-136
-94

query I rowsort
SELECT + + col0 - - 96 FROM tab0 AS cor0
----
111
183
193

onlyif mysql # aggregate syntax: 
query I rowsort label-3025
SELECT DISTINCT - - COUNT( * ) + 24 AS col0 FROM tab0 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-3025
SELECT DISTINCT - - COUNT ( * ) + 24 AS col0 FROM tab0 AS cor0
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3026
SELECT ALL col2 + CAST( NULL AS SIGNED ) - 85 + + + ( - col1 ) * col2 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3026
SELECT ALL col2 + CAST ( NULL AS INTEGER ) - 85 + + + ( - col1 ) * col2 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col2 + + 88 + + col2 + - col2 + + col1 * + + 79 AS col0 FROM tab1
----
1290
3869
542

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 43 col0 FROM tab2 WHERE + 54 < NULL
----

query I rowsort
SELECT col0 FROM tab0 WHERE NOT NULL NOT IN ( + + 39, + ( - col1 ), - 25 )
----

query I rowsort
SELECT ALL col0 / - col0 * + col2 FROM tab0 cor0 WHERE ( - + col1 ) < NULL
----

query I rowsort
SELECT ALL - 48 AS col0 FROM tab1 AS cor0 WHERE NOT + ( - col2 ) + + 27 IS NULL
----
-48
-48
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3032
SELECT + 67 * - COUNT( * ) DIV + - SUM( DISTINCT + col0 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3032
SELECT + 67 * - COUNT ( * ) / + - SUM ( DISTINCT + col0 ) FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3033
SELECT DISTINCT - SUM( ALL - 70 ) col0 FROM tab1 AS cor0
----
210

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3033
SELECT DISTINCT - SUM ( ALL - 70 ) col0 FROM tab1 AS cor0
----
210

query I rowsort
SELECT - col2 * + col0 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-4896
-5015
-6188

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3035
SELECT + + COUNT( ALL - ( col1 ) ) DIV + 94 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-3035
SELECT + + COUNT ( ALL - ( col1 ) ) / + 94 FROM tab1 cor0
----
0

query I rowsort
SELECT ALL col0 AS col2 FROM tab1 AS cor0 WHERE NULL < + col1 - + 75 * - col1 * + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3037
SELECT DISTINCT + - CAST( NULL AS SIGNED ) * + col1 col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3037
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * + col1 col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - - 1 AS col0 FROM tab0 cor0
----
1
1
1

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN + col2 + - col0 AND + 96
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3040
SELECT DISTINCT + MIN( - CAST( col0 AS SIGNED ) ) AS col0 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-3040
SELECT DISTINCT + MIN ( - CAST ( col0 AS INTEGER ) ) AS col0 FROM tab2
----
-75

query III rowsort
SELECT * FROM tab1 WHERE NOT - + col1 <= NULL
----

onlyif mysql # DIV for integer division: 
query III rowsort label-3042
SELECT DISTINCT - col1 + + 66 AS col2, + col0 DIV - - col2 col0, col0 FROM tab2
----
9 values hashing to 35fb6ed0aef93b6f3369f06e35f674a2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-3042
SELECT DISTINCT - col1 + + 66 AS col2, + col0 / - - col2 col0, col0 FROM tab2
----
9 values hashing to 35fb6ed0aef93b6f3369f06e35f674a2

query I rowsort
SELECT ALL col1 * + - 8 + + - col1 + + col2 + - + 79 AS col2 FROM tab1
----
-109
-434
-65

query II rowsort
SELECT ALL + col1 * + + col0, col0 AS col1 FROM tab0
----
1215
15
1827
87
97
97

query I rowsort
SELECT + col1 + - 53 + + col0 FROM tab1
----
12
37
85

query II rowsort
SELECT ALL - col0, - col0 AS col0 FROM tab2
----
-46
-46
-64
-64
-75
-75

query II rowsort
SELECT DISTINCT col2 AS col1, 43 FROM tab1
----
59
43
68
43
96
43

query I rowsort
SELECT col1 + - 20 FROM tab0
----
-19
1
61

query II rowsort
SELECT - col1, + col2 AS col2 FROM tab0 AS cor0
----
-1
99
-21
10
-81
47

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3050
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col0 IN ( + 54, CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3050
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col0 IN ( + 54, CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT 72 - - col1 FROM tab2
----
123
139
149

query II rowsort
SELECT + - col2 * - - col0 AS col2, col2 FROM tab2 WHERE col0 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + 10 * 89 AS col2 FROM tab2 AS cor0 WHERE NOT NULL <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3054
SELECT DISTINCT + CAST( AVG ( ALL - col1 ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-22

skipif mysql # not compatible
query I rowsort label-3054
SELECT DISTINCT + CAST ( AVG ( ALL - col1 ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-3055
SELECT ALL - MAX( + 59 ) FROM tab0 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-3055
SELECT ALL - MAX ( + 59 ) FROM tab0 AS cor0
----
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-3056
SELECT col1 DIV + ( + + col2 ) AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3056
SELECT col1 / + ( + + col2 ) AS col0 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3057
SELECT ALL COUNT( * ) DIV + - COUNT( * ) col2 FROM tab1
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3057
SELECT ALL COUNT ( * ) / + - COUNT ( * ) col2 FROM tab1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3058
SELECT 40 DIV + + COUNT( * ) FROM tab1
----
13

skipif mysql # not compatible
query I rowsort label-3058
SELECT 40 / + + COUNT ( * ) FROM tab1
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3059
SELECT SUM( DISTINCT + CAST( 54 AS SIGNED ) ) AS col0 FROM tab0
----
54

skipif mysql # not compatible
query I rowsort label-3059
SELECT SUM ( DISTINCT + CAST ( 54 AS INTEGER ) ) AS col0 FROM tab0
----
54

query I rowsort
SELECT - col0 * + + 60 AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - col2 * + col1 AS col2 FROM tab2 WHERE NOT col2 + col2 IS NULL
----
-1173
-3080
-3886

query II rowsort
SELECT ALL - col1, 31 * col1 * col0 * + + 1 AS col2 FROM tab0 AS cor0
----
-1
3007
-21
56637
-81
37665

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3063
SELECT ALL - - COUNT( * ) DIV + 2 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3063
SELECT ALL - - COUNT ( * ) / + 2 FROM tab1 AS cor0
----
1

query I rowsort
SELECT DISTINCT - col1 FROM tab0 AS cor0 WHERE - col1 NOT BETWEEN NULL AND + col1 + - + 91
----
-1
-21

onlyif mysql # aggregate syntax: 
query II rowsort label-3065
SELECT ALL - - 65, + COUNT( * ) AS col0 FROM tab0 AS cor0
----
65
3

skipif mysql # not compatible
query II rowsort label-3065
SELECT ALL - - 65, + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
65
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3066
SELECT DISTINCT - CAST( 46 AS SIGNED ) col0 FROM tab2 cor0
----
-46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3066
SELECT DISTINCT - CAST ( 46 AS INTEGER ) col0 FROM tab2 cor0
----
-46

query II rowsort
SELECT ALL col0 AS col2, 4 FROM tab1 cor0
----
51
4
85
4
91
4

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3068
SELECT col1 AS col1, CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-3068
SELECT col1 AS col1, CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

query I rowsort
SELECT 96 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3070
SELECT + + 88 DIV COUNT( * ) FROM tab1 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-3070
SELECT + + 88 / COUNT ( * ) FROM tab1 AS cor0
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-3071
SELECT + - col0 DIV ( - 24 ) FROM tab1 AS cor0
----
2
3
3

skipif mysql # not compatible
query I rowsort label-3071
SELECT + - col0 / ( - 24 ) FROM tab1 AS cor0
----
2
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3072
SELECT + - MAX( ALL - 15 ) AS col2 FROM tab1 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-3072
SELECT + - MAX ( ALL - 15 ) AS col2 FROM tab1 AS cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3073
SELECT MIN( ALL - col1 ) AS col2 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-3073
SELECT MIN ( ALL - col1 ) AS col2 FROM tab2 AS cor0
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3074
SELECT DISTINCT + CAST( - ( - COUNT( * ) ) AS SIGNED ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3074
SELECT DISTINCT + CAST ( - ( - COUNT ( * ) ) AS INTEGER ) FROM tab2 AS cor0
----
3

query II rowsort
SELECT ALL col0 + - 92, ( col2 ) AS col0 FROM tab1 AS cor0
----
-1
68
-41
96
-7
59

query III rowsort
SELECT * FROM tab2 WHERE - col2 * col1 + - col1 BETWEEN NULL AND col2
----

query I rowsort
SELECT DISTINCT + 35 + + - col2 AS col2 FROM tab0
----
-12
-64
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3078
SELECT ALL + CAST( NULL AS SIGNED ) + - col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3078
SELECT ALL + CAST ( NULL AS INTEGER ) + - col0 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 29 col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-3080
SELECT - MAX( - col2 ) AS col0 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-3080
SELECT - MAX ( - col2 ) AS col0 FROM tab0
----
10

query I rowsort
SELECT ALL - 20 + 65 AS col0 FROM tab0 AS cor0
----
45
45
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 14 + col0 + - col0 col0 FROM tab1 AS cor0
----
14
14
14

query I rowsort
SELECT + + col0 + - col0 - + - col0 FROM tab0 AS cor0
----
15
87
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - 73 col2 FROM tab2
----
-3723
-4891
-5621

onlyif mysql # aggregate syntax: 
query I rowsort label-3085
SELECT + + SUM( col2 ) FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-3085
SELECT + + SUM ( col2 ) FROM tab0 AS cor0
----
156

query I rowsort
SELECT + + 30 * col0 + col0 * + - 30 + - + col1 AS col2 FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3087
SELECT + COUNT( * ) - 85 AS col1 FROM tab0 AS cor0
----
-82

skipif mysql # not compatible
query I rowsort label-3087
SELECT + COUNT ( * ) - 85 AS col1 FROM tab0 AS cor0
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-3088
SELECT - COUNT( * ) - COUNT( * ) FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-3088
SELECT - COUNT ( * ) - COUNT ( * ) FROM tab1 AS cor0
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3089
SELECT DISTINCT + col2 - + - CAST( NULL AS SIGNED ) * - col1 * - - 32 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3089
SELECT DISTINCT + col2 - + - CAST ( NULL AS INTEGER ) * - col1 * - - 32 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - + 80 * 86 FROM tab1 AS cor0
----
-6880
-6880
-6880

query I rowsort
SELECT + col2 - + - 68 AS col0 FROM tab0 AS cor0
----
115
167
78

onlyif mysql # aggregate syntax: 
query I rowsort label-3092
SELECT ALL - COUNT( * ) * + - 16 + 80 + + COUNT( * ) * + 98 AS col1 FROM tab1 AS cor0
----
422

skipif mysql # not compatible
query I rowsort label-3092
SELECT ALL - COUNT ( * ) * + - 16 + 80 + + COUNT ( * ) * + 98 AS col1 FROM tab1 AS cor0
----
422

query I rowsort
SELECT DISTINCT 36 * 9 AS col0 FROM tab0
----
324

query I rowsort
SELECT 17 * - + col0 AS col2 FROM tab0
----
-1479
-1649
-255

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 53 > + col1 + + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3096
SELECT DISTINCT MIN( DISTINCT - col1 ) AS col0 FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-3096
SELECT DISTINCT MIN ( DISTINCT - col1 ) AS col0 FROM tab2
----
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3097
SELECT 58 DIV - + COUNT( * ) AS col0 FROM tab0
----
-19

skipif mysql # not compatible
query I rowsort label-3097
SELECT 58 / - + COUNT ( * ) AS col0 FROM tab0
----
-19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 94 col0 FROM tab1 AS cor0
----
94
94
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3099
SELECT DISTINCT + SUM( + 68 ) AS col1 FROM tab2
----
204

skipif mysql # not compatible
query I rowsort label-3099
SELECT DISTINCT + SUM ( + 68 ) AS col1 FROM tab2
----
204

query I rowsort
SELECT col1 - - ( - + col1 ) + + col2 FROM tab0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - + 90 / + 40 NOT BETWEEN + col2 AND NULL
----

query I rowsort
SELECT ALL col0 * - + col0 FROM tab2 AS cor0
----
-2116
-4096
-5625

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3103
SELECT ALL - col0 * + col0 + CAST( NULL AS SIGNED ) AS col0, - 13 - + col1 + + - col2, + + 35 AS col0 FROM tab2 AS cor0
----
9 values hashing to efec4b640fa30203ea416d9fc305658b

skipif mysql # not compatible
query III rowsort label-3103
SELECT ALL - col0 * + col0 + CAST ( NULL AS INTEGER ) AS col0, - 13 - + col1 + + - col2, + + 35 AS col0 FROM tab2 AS cor0
----
9 values hashing to efec4b640fa30203ea416d9fc305658b

onlyif mysql # aggregate syntax: 
query II rowsort label-3104
SELECT DISTINCT + 51 AS col2, COUNT( * ) FROM tab1 cor0
----
51
3

skipif mysql # not compatible
query II rowsort label-3104
SELECT DISTINCT + 51 AS col2, COUNT ( * ) FROM tab1 cor0
----
51
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT ( - col2 ) + + col1, col2 * - 73 col0 FROM tab2 AS cor0
----
28
-1679
37
-2920
9
-4234

query I rowsort
SELECT - col1 + + 34 + + + col1 AS col0 FROM tab2 AS cor0
----
34
34
34

query I rowsort
SELECT col0 AS col2 FROM tab0 WHERE NULL NOT BETWEEN NULL AND + - ( + 94 ) * - 28
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + ( ( + + 27 ) ) col0 FROM tab1
----
112
118
78

query I rowsort
SELECT DISTINCT col1 + - + ( + - col2 ) FROM tab0
----
100
128
31

onlyif mysql # aggregate syntax: 
query I rowsort label-3110
SELECT - COUNT( * ) + - + COUNT( * ) FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-3110
SELECT - COUNT ( * ) + - + COUNT ( * ) FROM tab2
----
-6

query I rowsort
SELECT col1 * - col0 * 35 AS col0 FROM tab0
----
-3395
-42525
-63945

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col1 - - + 68 / - + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3113
SELECT CAST( col1 AS SIGNED ) - col0 * + + 68 * - + 49 FROM tab2 AS cor0
----
153323
213325
249967

skipif mysql # not compatible
query I rowsort label-3113
SELECT CAST ( col1 AS INTEGER ) - col0 * + + 68 * - + 49 FROM tab2 AS cor0
----
153323
213325
249967

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3114
SELECT ALL + AVG ( - CAST( NULL AS SIGNED ) ) + + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3114
SELECT ALL + AVG ( - CAST ( NULL AS INTEGER ) ) + + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - 46 + - + 24 AS col1 FROM tab2
----
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3116
SELECT DISTINCT + CAST( NULL AS SIGNED ) - col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3116
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3117
SELECT COUNT( * ) col2 FROM tab0 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-3117
SELECT COUNT ( * ) col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT col2 * + 60 + - + col1 AS col2 FROM tab1 AS cor0
----
3535
4033
5746

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 83 col1 FROM tab1 AS cor0
----
83
83
83

query I rowsort
SELECT col0 FROM tab1 cor0 WHERE NOT NULL BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3121
SELECT DISTINCT - 9 * + COUNT( * ) + - 22 FROM tab0 AS cor0
----
-49

skipif mysql # not compatible
query I rowsort label-3121
SELECT DISTINCT - 9 * + COUNT ( * ) + - 22 FROM tab0 AS cor0
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-3122
SELECT DISTINCT COUNT( ALL - 1 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3122
SELECT DISTINCT COUNT ( ALL - 1 ) AS col2 FROM tab2 AS cor0
----
3

query I rowsort
SELECT col0 * - col1 * - ( col0 ) FROM tab1 AS cor0
----
36125
36414
389207

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3124
SELECT + CAST( + - COUNT( * ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3124
SELECT + CAST ( + - COUNT ( * ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-3

query II rowsort
SELECT + - col1 AS col0, col2 + + col1 + + col2 * - 54 * col2 AS col2 FROM tab2 AS cor0
----
-51
-28492
-67
-181531
-77
-86283

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 81 col2 FROM tab1 cor0
----
81
81
81

onlyif mysql # DIV for integer division: 
query I rowsort label-3127
SELECT - col0 DIV - ( - 61 ) AS col1 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-3127
SELECT - col0 / - ( - 61 ) AS col1 FROM tab1
----
-1
-1
0

query I rowsort
SELECT - col2 * - 64 AS col0 FROM tab2
----
1472
2560
3712

onlyif mysql # aggregate syntax: 
query I rowsort label-3129
SELECT SUM( DISTINCT + - 76 ) FROM tab2
----
-76

skipif mysql # not compatible
query I rowsort label-3129
SELECT SUM ( DISTINCT + - 76 ) FROM tab2
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-3130
SELECT DISTINCT - ( - - ( + - COUNT( * ) ) ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3130
SELECT DISTINCT - ( - - ( + - COUNT ( * ) ) ) AS col2 FROM tab1
----
3

query II rowsort
SELECT DISTINCT col0 AS col0, - 3 * + col2 FROM tab1
----
51
-288
85
-177
91
-204

query II rowsort
SELECT + ( + 65 ), col0 FROM tab2 AS cor0
----
65
46
65
64
65
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3133
SELECT - CAST( + 93 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-93
-93
-93

skipif mysql # not compatible
query I rowsort label-3133
SELECT - CAST ( + 93 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-93
-93
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-3134
SELECT ( - SUM( DISTINCT col2 ) ) FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-3134
SELECT ( - SUM ( DISTINCT col2 ) ) FROM tab0 AS cor0
----
-156

query II rowsort
SELECT + col2, col0 * col2 FROM tab2 AS cor0
----
23
1058
40
2560
58
4350

query I rowsort
SELECT ALL - col2 * - - col0 FROM tab0 AS cor0
----
-705
-870
-9603

query I rowsort
SELECT ALL - - col0 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3138
SELECT - ( 91 ) * + COUNT( * ) FROM tab1
----
-273

skipif mysql # not compatible
query I rowsort label-3138
SELECT - ( 91 ) * + COUNT ( * ) FROM tab1
----
-273

query I rowsort
SELECT ALL 91 + - col2 + 10 * + - col1 FROM tab2
----
-442
-637
-719

onlyif mysql # aggregate syntax: 
query I rowsort label-3140
SELECT 16 + COUNT( * ) FROM tab0
----
19

skipif mysql # not compatible
query I rowsort label-3140
SELECT 16 + COUNT ( * ) FROM tab0
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3141
SELECT DISTINCT + 34 DIV - SUM( ALL col0 ) FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-3141
SELECT DISTINCT + 34 / - SUM ( ALL col0 ) FROM tab2 cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3142
SELECT + + CAST( + COUNT( * ) AS SIGNED ) col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3142
SELECT + + CAST ( + COUNT ( * ) AS INTEGER ) col2 FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT - col2 + + + col1 + col1 AS col1 FROM tab2 AS cor0
----
114
76
79

query I rowsort
SELECT 4 - col2 + + col1 FROM tab2 WHERE NULL <= 40 / 87 + - col0 * 70
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + col0 - - 45 col2 FROM tab2
----
-2071
-4051
-5580

onlyif mysql # aggregate syntax: 
query I rowsort label-3146
SELECT ( + COUNT( * ) ) + + + 27 - + + ( - + 9 ) FROM tab0, tab2 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-3146
SELECT ( + COUNT ( * ) ) + + + 27 - + + ( - + 9 ) FROM tab0, tab2 AS cor0
----
45

query I rowsort
SELECT + col1 + - col1 * + 97 AS col2 FROM tab2
----
-4896
-6432
-7392

query III rowsort
SELECT ALL * FROM tab0 WHERE ( ( col2 ) ) BETWEEN - 3 / + - 33 AND + col2 * + ( col0 ) + 57 * - + col1
----
97
1
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3149
SELECT - 11 + - - 2 - - CAST( NULL AS SIGNED ) + + col1 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3149
SELECT - 11 + - - 2 - - CAST ( NULL AS INTEGER ) + + col1 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - 90 + + + col0 FROM tab2 AS cor0
----
-15
-26
-44

query I rowsort
SELECT ALL - col2 * - col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
1344
295
3196

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3152
SELECT + - CAST( NULL AS DECIMAL ) + 59 / - + 95 * - col1 + col1 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3152
SELECT + - CAST ( NULL AS REAL ) + 59 / - + 95 * - col1 + col1 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 + - - col2 AS col2 FROM tab2 AS cor0
----
-17
-23
-24

query I rowsort
SELECT - + 66 + + col0 * + + col0 FROM tab0 AS cor0
----
159
7503
9343

onlyif mysql # aggregate syntax: 
query I rowsort label-3155
SELECT - COUNT( * ) + + 44 AS col1 FROM tab2 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-3155
SELECT - COUNT ( * ) + + 44 AS col1 FROM tab2 AS cor0
----
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 83 + + 2 col1 FROM tab2 AS cor0 WHERE NOT NULL > ( NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + 53 < - col1 * col1 + 87 * col0
----
64
77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3158
SELECT ALL + COUNT( * ) * MAX( + 93 ) FROM tab0
----
279

skipif mysql # not compatible
query I rowsort label-3158
SELECT ALL + COUNT ( * ) * MAX ( + 93 ) FROM tab0
----
279

onlyif mysql # aggregate syntax: 
query I rowsort label-3159
SELECT 24 + COUNT( * ) FROM tab2
----
27

skipif mysql # not compatible
query I rowsort label-3159
SELECT 24 + COUNT ( * ) FROM tab2
----
27

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3160
SELECT ALL * FROM tab1 WHERE NOT NULL <> ( - 38 + CAST( - col0 AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-3160
SELECT ALL * FROM tab1 WHERE NOT NULL <> ( - 38 + CAST ( - col0 AS REAL ) )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) > col0
----

query III rowsort
SELECT * FROM tab1 WHERE - col1 * - col2 BETWEEN ( col0 * + col2 ) AND 81
----

query I rowsort
SELECT col1 FROM tab0 WHERE NOT col2 > - 64
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3164
SELECT * FROM tab1 WHERE - col1 / col0 + + 25 / col0 <= ( CAST( NULL AS SIGNED ) * - 90 )
----

skipif mysql # not compatible
query III rowsort label-3164
SELECT * FROM tab1 WHERE - col1 / col0 + + 25 / col0 <= ( CAST ( NULL AS INTEGER ) * - 90 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3165
SELECT ALL - SUM( DISTINCT + col0 ) AS col1 FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-3165
SELECT ALL - SUM ( DISTINCT + col0 ) AS col1 FROM tab2
----
-185

query I rowsort
SELECT col0 * + 68 + - col2 AS col2 FROM tab0
----
5906
6497
973

query III rowsort
SELECT * FROM tab0 WHERE col2 / + col2 > ( NULL )
----

query I rowsort
SELECT col2 + ( 17 ) FROM tab1
----
113
76
85

onlyif mysql # DIV for integer division: 
query I rowsort label-3169
SELECT 28 + - 56 DIV - col0 AS col0 FROM tab0
----
28
28
31

skipif mysql # not compatible
query I rowsort label-3169
SELECT 28 + - 56 / - col0 AS col0 FROM tab0
----
28
28
31

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3170
SELECT - CAST( NULL AS SIGNED ) + 66 AS col0 FROM tab2 WHERE CAST( NULL AS SIGNED ) / - CAST( NULL AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3170
SELECT - CAST ( NULL AS INTEGER ) + 66 AS col0 FROM tab2 WHERE CAST ( NULL AS INTEGER ) / - CAST ( NULL AS REAL ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE 93 * + col2 + - col0 IN ( 92 + ( col1 ) / + ( - col2 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3172
SELECT DISTINCT + SUM( - col1 ) + + 12 FROM tab1
----
-54

skipif mysql # not compatible
query I rowsort label-3172
SELECT DISTINCT + SUM ( - col1 ) + + 12 FROM tab1
----
-54

query I rowsort
SELECT DISTINCT col0 * - col1 FROM tab1 WHERE - col0 * col0 IS NULL
----

query I rowsort
SELECT ALL ( col0 ) AS col0 FROM tab1 WHERE ( col1 ) IS NULL
----

query I rowsort
SELECT ALL col0 + + col2 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3176
SELECT * FROM tab0 WHERE NOT ( - col1 + CAST( NULL AS DECIMAL ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-3176
SELECT * FROM tab0 WHERE NOT ( - col1 + CAST ( NULL AS REAL ) ) IS NULL
----

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab2 WHERE NOT ( 47 ) >= NULL
----

query III rowsort
SELECT * FROM tab0 WHERE ( - 99 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3179
SELECT 69 - COUNT( * ) FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-3179
SELECT 69 - COUNT ( * ) FROM tab1
----
66

query I rowsort
SELECT DISTINCT col2 + + col1 * + 72 FROM tab2 WHERE NOT ( - col2 * - col0 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN ( NULL ) AND ( - 52 )
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( NULL ) < col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 74 col0 FROM tab1 AS cor0 WHERE - col0 * 39 BETWEEN + col2 / - ( col1 ) AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col2 + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 61 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3186
SELECT - 15 DIV 30 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3186
SELECT - 15 / 30 AS col2 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3187
SELECT ALL - 1 + COUNT( col0 ) AS col1 FROM tab0
----
2

skipif mysql # not compatible
query I rowsort label-3187
SELECT ALL - 1 + COUNT ( col0 ) AS col1 FROM tab0
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3188
SELECT 96 + col2 / + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3188
SELECT 96 + col2 / + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3189
SELECT ALL - col1 + + col1 DIV + 4 AS col2 FROM tab2 AS cor0
----
-39
-51
-58

skipif mysql # not compatible
query I rowsort label-3189
SELECT ALL - col1 + + col1 / + 4 AS col2 FROM tab2 AS cor0
----
-39
-51
-58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3190
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 * CAST( NULL AS SIGNED ) > + 67 - - ( col2 )
----

skipif mysql # not compatible
query III rowsort label-3190
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 * CAST ( NULL AS INTEGER ) > + 67 - - ( col2 )
----

query I rowsort
SELECT ALL 72 + 48 * - col2 FROM tab2 AS cor0 WHERE 68 NOT BETWEEN ( 47 ) AND NULL
----

query I rowsort
SELECT 98 FROM tab1 cor0 WHERE NULL IN ( + col0 - + 72 * + 9 )
----

query I rowsort
SELECT + AVG ( DISTINCT - 76 ) AS col0 FROM tab0 AS cor0 WHERE col2 IS NULL
----
NULL

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE NULL <= ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3195
SELECT ALL + 22 DIV 67 + col1 FROM tab1 cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-3195
SELECT ALL + 22 / 67 + col1 FROM tab1 cor0
----
14
47
5

query I rowsort
SELECT + 54 + + 76 * 68 FROM tab2
----
5222
5222
5222

query III rowsort
SELECT * FROM tab0 WHERE + col0 < + col0 + 42
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3198
SELECT - MIN( + 42 ) + - 46 AS col2 FROM tab0
----
-88

skipif mysql # not compatible
query I rowsort label-3198
SELECT - MIN ( + 42 ) + - 46 AS col2 FROM tab0
----
-88

query I rowsort
SELECT - col0 * col2 * 75 FROM tab2
----
-192000
-326250
-79350

query I rowsort
SELECT DISTINCT 74 + + col1 AS col1 FROM tab2
----
125
141
151

query I rowsort
SELECT ALL + col2 + 88 AS col2 FROM tab2
----
111
128
146

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL >= col0 * col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3203
SELECT MAX( 3 ) FROM tab2 WHERE col0 + 10 < col1 * + col0 + - col2
----
3

skipif mysql # not compatible
query I rowsort label-3203
SELECT MAX ( 3 ) FROM tab2 WHERE col0 + 10 < col1 * + col0 + - col2
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3204
SELECT DISTINCT col1 FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL AND - CAST( - col1 AS DECIMAL ) + - col1 NOT BETWEEN col0 AND NULL
----

skipif mysql # not compatible
query I rowsort label-3204
SELECT DISTINCT col1 FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL AND - CAST ( - col1 AS REAL ) + - col1 NOT BETWEEN col0 AND NULL
----

query I rowsort
SELECT + col0 - + + col0 * col0 FROM tab0 cor0
----
-210
-7482
-9312

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3206
SELECT ALL + CAST( + MAX( col2 ) AS SIGNED ) FROM tab1 AS cor0 WHERE - col2 BETWEEN - col1 * - col1 AND col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3206
SELECT ALL + CAST ( + MAX ( col2 ) AS INTEGER ) FROM tab1 AS cor0 WHERE - col2 BETWEEN - col1 * - col1 AND col0
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 + - 94 > NULL
----

query I rowsort
SELECT - col1 * + col0 * - 24 AS col0 FROM tab0
----
2328
29160
43848

query I rowsort
SELECT DISTINCT ( + 33 ) AS col0 FROM tab1 cor0
----
33

query II rowsort
SELECT DISTINCT + col1, 25 + - 64 FROM tab2 AS cor0
----
51
-39
67
-39
77
-39

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3211
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN - CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-3211
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN - CAST ( NULL AS INTEGER ) AND NULL
----

query II rowsort
SELECT - col0 AS col0, 55 AS col1 FROM tab0 AS cor0
----
-15
55
-87
55
-97
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3213
SELECT DISTINCT - SUM( ALL - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3213
SELECT DISTINCT - SUM ( ALL - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3214
SELECT - COUNT( - 65 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3214
SELECT - COUNT ( - 65 ) FROM tab0 AS cor0
----
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - col0 ) >= 12
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ( ( + 57 ) ) AS col0 FROM tab2
----
57
57
57

query III rowsort
SELECT * FROM tab1 WHERE NOT + 17 <> NULL
----

query II rowsort
SELECT col1 * - 2, + col1 FROM tab1
----
-10
5
-28
14
-94
47

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col0 - - col2 * + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - 24 * + + col1 + - col2 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col1 BETWEEN NULL AND ( + + col0 * - 46 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3222
SELECT DISTINCT - COUNT( ( ( - 83 ) ) ) AS col0 FROM tab0 WHERE NOT + + 81 + col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3222
SELECT DISTINCT - COUNT ( ( ( - 83 ) ) ) AS col0 FROM tab0 WHERE NOT + + 81 + col1 IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT - - 56 NOT IN ( + - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3224
SELECT ALL + COUNT( DISTINCT col2 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3224
SELECT ALL + COUNT ( DISTINCT col2 ) AS col0 FROM tab2
----
3

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( - 14 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 / + + 60 - + + col1 col0 FROM tab1 AS cor0 WHERE NULL >= NULL
----

query I rowsort
SELECT DISTINCT + col0 + 5 AS col1 FROM tab2 AS cor0
----
51
69
80

query II rowsort
SELECT ALL - col2 + + col1 AS col0, col2 - col1 + - 22 * col2 FROM tab1 AS cor0
----
-21
-1475
-54
-1244
-82
-2030

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3229
SELECT * FROM tab1 AS cor0 WHERE 12 * - - col1 / + + CAST( NULL AS SIGNED ) <= NULL
----

skipif mysql # not compatible
query III rowsort label-3229
SELECT * FROM tab1 AS cor0 WHERE 12 * - - col1 / + + CAST ( NULL AS INTEGER ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3230
SELECT ALL + MIN( - + 55 ) AS col0 FROM tab0 WHERE NULL IS NULL
----
-55

skipif mysql # not compatible
query I rowsort label-3230
SELECT ALL + MIN ( - + 55 ) AS col0 FROM tab0 WHERE NULL IS NULL
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-3231
SELECT DISTINCT + COUNT( ALL + - col2 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3231
SELECT DISTINCT + COUNT ( ALL + - col2 ) FROM tab2
----
3

query I rowsort
SELECT 73 * + - col0 * + col2 + 94 AS col1 FROM tab0
----
-51371
-63416
-700925

onlyif mysql # aggregate syntax: 
query I rowsort label-3233
SELECT DISTINCT - 30 + + COUNT( * ) * + 78 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
672

skipif mysql # not compatible
query I rowsort label-3233
SELECT DISTINCT - 30 + + COUNT ( * ) * + 78 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
672

query I rowsort
SELECT ALL - 45 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 71160abf09589695379a70558726f0ba

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3235
SELECT + CAST( NULL AS SIGNED ) * + 32 * - - COUNT( * ) + + SUM( DISTINCT + col2 ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3235
SELECT + CAST ( NULL AS INTEGER ) * + 32 * - - COUNT ( * ) + + SUM ( DISTINCT + col2 ) AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3236
SELECT - + col0 DIV - col0 AS col1 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3236
SELECT - + col0 / - col0 AS col1 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT + + 3 AS col1 FROM tab0 AS cor0
----
3
3
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3238
SELECT + col1 DIV - col0 col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3238
SELECT + col1 / - col0 col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT col0 * - + col1 * col2 * - + ( - col2 ) AS col2 FROM tab0 AS cor0
----
-182700
-2683935
-950697

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3240
SELECT + MAX( col0 ) DIV SUM( + + col0 ) DIV + COUNT( DISTINCT - col1 ) + + 6 * + COUNT( * ) AS col1 FROM tab1 cor0
----
18

skipif mysql # not compatible
query I rowsort label-3240
SELECT + MAX ( col0 ) / SUM ( + + col0 ) / + COUNT ( DISTINCT - col1 ) + + 6 * + COUNT ( * ) AS col1 FROM tab1 cor0
----
18

query I rowsort
SELECT DISTINCT - - 62 FROM tab0 AS cor0 WHERE ( NULL ) <> + - col1
----

query I rowsort
SELECT - + 6 * + 90 AS col0 FROM tab0 cor0
----
-540
-540
-540

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 <= + 37
----
87
21
10
97
1
99

query I rowsort
SELECT ALL col0 FROM tab2 AS cor0 WHERE 67 + - col2 NOT IN ( + + col1 + + - col0 + - col2 )
----
46
64
75

query I rowsort
SELECT + - col1 * - 28 AS col2 FROM tab0 AS cor0
----
2268
28
588

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3246
SELECT ALL * FROM tab1 WHERE NULL IN ( 87 + + CAST( - + col2 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3246
SELECT ALL * FROM tab1 WHERE NULL IN ( 87 + + CAST ( - + col2 AS INTEGER ) )
----

query III rowsort
SELECT * FROM tab1 WHERE ( - 70 * + col1 + + col0 + 59 * col0 ) = + ( 8 )
----

query I rowsort
SELECT col0 FROM tab0 WHERE col0 * - 30 + + col1 + + - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3249
SELECT + 53 + + MIN( ALL + col1 ) AS col2 FROM tab0
----
54

skipif mysql # not compatible
query I rowsort label-3249
SELECT + 53 + + MIN ( ALL + col1 ) AS col2 FROM tab0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-3250
SELECT + COUNT( * ) AS col2 FROM tab2 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3250
SELECT + COUNT ( * ) AS col2 FROM tab2 WHERE NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3251
SELECT SUM( DISTINCT col0 ) AS col2 FROM tab0 WHERE + - 5 * col1 IN ( + col0 * + col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3251
SELECT SUM ( DISTINCT col0 ) AS col2 FROM tab0 WHERE + - 5 * col1 IN ( + col0 * + col1 )
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 * - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3253
SELECT col0 AS col0 FROM tab1 AS cor0 WHERE NOT col1 + + + col2 + col2 - - 10 < + 77 + + CAST( 75 AS SIGNED ) OR NOT NULL NOT IN ( + 58 )
----
51
91

skipif mysql # not compatible
query I rowsort label-3253
SELECT col0 AS col0 FROM tab1 AS cor0 WHERE NOT col1 + + + col2 + col2 - - 10 < + 77 + + CAST ( 75 AS INTEGER ) OR NOT NULL NOT IN ( + 58 )
----
51
91

query I rowsort
SELECT ( + 95 ) AS col1 FROM tab0 AS cor0
----
95
95
95

onlyif mysql # aggregate syntax: 
query I rowsort label-3255
SELECT 11 - SUM( DISTINCT - col0 + col1 * + 11 ) FROM tab2 AS cor0 WHERE ( 20 * + col2 ) NOT BETWEEN ( NULL ) AND 50 OR NULL IS NULL
----
-1949

skipif mysql # not compatible
query I rowsort label-3255
SELECT 11 - SUM ( DISTINCT - col0 + col1 * + 11 ) FROM tab2 AS cor0 WHERE ( 20 * + col2 ) NOT BETWEEN ( NULL ) AND 50 OR NULL IS NULL
----
-1949

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + col1 * col2 ) BETWEEN NULL AND + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3257
SELECT CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3257
SELECT CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-3258
SELECT - SUM( ALL - 35 ) AS col0 FROM tab1
----
105

skipif mysql # not compatible
query I rowsort label-3258
SELECT - SUM ( ALL - 35 ) AS col0 FROM tab1
----
105

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( col0 ) * col0 * ( + col1 ) - - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 48 * - + ( + 2 ) AS col2 FROM tab1 AS cor0
----
-96
-96
-96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 21 NOT BETWEEN + 1 AND - col2
----

query II rowsort
SELECT ALL + 62 AS col1, ( + 33 ) AS col0 FROM tab2 AS cor0 WHERE NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3263
SELECT ALL COUNT( * ) AS col0 FROM tab0 WHERE + col0 >= ( - col0 )
----
3

skipif mysql # not compatible
query I rowsort label-3263
SELECT ALL COUNT ( * ) AS col0 FROM tab0 WHERE + col0 >= ( - col0 )
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-3264
SELECT DISTINCT - 9 col2, SUM( + 6 ) FROM tab0
----
-9
18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3264
SELECT DISTINCT - 9 col2, SUM ( + 6 ) FROM tab0
----
-9
18

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( + - col2, col1, + 81 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + col1 * + col2 * col2 * - col1 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col2 BETWEEN - col1 AND + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 + + col1 + - col2 + ( - + 26 ) FROM tab0
----
-27
23
72

query I rowsort
SELECT DISTINCT col2 FROM tab0 WHERE NOT - 29 NOT BETWEEN + col0 AND ( + col0 / + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3270
SELECT MAX( DISTINCT - - ( + col1 ) ) AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
81

skipif mysql # not compatible
query I rowsort label-3270
SELECT MAX ( DISTINCT - - ( + col1 ) ) AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
81

query I rowsort
SELECT + 69 + col2 FROM tab2
----
109
127
92

query I rowsort
SELECT ALL col0 FROM tab2 AS cor0 WHERE - 0 >= ( 23 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3273
SELECT ALL - 74 + + + COUNT( * ) AS col1 FROM tab1
----
-71

skipif mysql # not compatible
query I rowsort label-3273
SELECT ALL - 74 + + + COUNT ( * ) AS col1 FROM tab1
----
-71

query II rowsort
SELECT ALL + col2 - + col1, - 96 AS col1 FROM tab2
----
-28
-96
-37
-96
-9
-96

query I rowsort
SELECT + col1 FROM tab2 WHERE - col0 * - ( - col1 ) IS NOT NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query II rowsort label-3276
SELECT ALL + COUNT( * ) + - - COUNT( * ) AS col2, MAX( DISTINCT + col2 ) FROM tab2
----
6
58

skipif mysql # not compatible
query II rowsort label-3276
SELECT ALL + COUNT ( * ) + - - COUNT ( * ) AS col2, MAX ( DISTINCT + col2 ) FROM tab2
----
6
58

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col1 * - 26 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 92 < - col0 / - + 9
----

query I rowsort
SELECT ALL col2 / - - 6 / - + col2 * + col1 * - col1 AS col1 FROM tab1 AS cor0 WHERE NOT - 38 IS NOT NULL
----

query I rowsort
SELECT ALL - col2 * + 66 * 1 + + col2 AS col1 FROM tab1 AS cor0
----
-3835
-4420
-6240

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3281
SELECT DISTINCT CAST( + col1 AS SIGNED ) + - col0 FROM tab0 cor0
----
-66
-96
66

skipif mysql # not compatible
query I rowsort label-3281
SELECT DISTINCT CAST ( + col1 AS INTEGER ) + - col0 FROM tab0 cor0
----
-66
-96
66

query I rowsort
SELECT + 38 + + col2 FROM tab0 cor0
----
137
48
85

query I rowsort
SELECT + ( col1 ) * col0 AS col2 FROM tab1 AS cor0
----
425
4277
714

query I rowsort
SELECT ALL - 64 + - 89 FROM tab2
----
-153
-153
-153

onlyif mysql # DIV for integer division: 
query I rowsort label-3285
SELECT DISTINCT + 67 DIV col1 + 36 AS col1 FROM tab2
----
36
37

skipif mysql # not compatible
query I rowsort label-3285
SELECT DISTINCT + 67 / col1 + 36 AS col1 FROM tab2
----
36
37

query I rowsort
SELECT ALL + - 27 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3287
SELECT + SUM( DISTINCT + + col2 ) FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-3287
SELECT + SUM ( DISTINCT + + col2 ) FROM tab1
----
223

onlyif mysql # DIV for integer division: 
query I rowsort label-3288
SELECT - 41 DIV col2 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3288
SELECT - 41 / col2 AS col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3289
SELECT + COUNT( * ) * + - 69 FROM tab2
----
-207

skipif mysql # not compatible
query I rowsort label-3289
SELECT + COUNT ( * ) * + - 69 FROM tab2
----
-207

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 21 AS col2, - col1 col0 FROM tab1
----
21
-14
21
-47
21
-5

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3291
SELECT DISTINCT + ( - AVG ( DISTINCT - col1 ) ) FROM tab1 AS cor0 WHERE ( - + col0 - - CAST( NULL AS DECIMAL ) IS NOT NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3291
SELECT DISTINCT + ( - AVG ( DISTINCT - col1 ) ) FROM tab1 AS cor0 WHERE ( - + col0 - - CAST ( NULL AS REAL ) IS NOT NULL )
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL >= col0 + + col0
----

query I rowsort
SELECT DISTINCT col2 * - 42 + + 19 + col0 AS col0 FROM tab2 AS cor0
----
-1597
-2342
-901

onlyif mysql # aggregate syntax: 
query I rowsort label-3294
SELECT ALL - AVG ( DISTINCT + ( - col2 ) ) * + MAX( ALL col1 ) - MAX( ALL + + col0 ) AS col0 FROM tab2 AS cor0 WHERE NOT - col0 <= col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3294
SELECT ALL - AVG ( DISTINCT + ( - col2 ) ) * + MAX ( ALL col1 ) - MAX ( ALL + + col0 ) AS col0 FROM tab2 AS cor0 WHERE NOT - col0 <= col2
----
NULL

query I rowsort
SELECT DISTINCT - 52 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-3296
SELECT - COUNT( * ) * + - SUM( - 10 ) AS col1 FROM tab2
----
-90

skipif mysql # not compatible
query I rowsort label-3296
SELECT - COUNT ( * ) * + - SUM ( - 10 ) AS col1 FROM tab2
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-3297
SELECT DISTINCT COUNT( * ) * + - 5 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-45

skipif mysql # not compatible
query I rowsort label-3297
SELECT DISTINCT COUNT ( * ) * + - 5 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-45

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 61 * - 43 <> NULL
----

query II rowsort
SELECT 37 AS col2, col2 FROM tab0 AS cor0
----
37
10
37
47
37
99

query I rowsort
SELECT DISTINCT + 65 * - - col2 * - col0 AS col2 FROM tab2 cor0
----
-166400
-282750
-68770

query II rowsort
SELECT 45, - 49 AS col0 FROM tab0 AS cor0
----
45
-49
45
-49
45
-49

query I rowsort
SELECT ALL + + 54 * - col0 FROM tab1 AS cor0
----
-2754
-4590
-4914

onlyif mysql # aggregate syntax: 
query I rowsort label-3303
SELECT COUNT( - 60 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3303
SELECT COUNT ( - 60 ) FROM tab2 cor0
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 NOT BETWEEN - col0 - + 79 + col2 + + - 4 AND NULL
----

query II rowsort
SELECT DISTINCT + 99, + col2 AS col1 FROM tab0 AS cor0
----
99
10
99
47
99
99

query I rowsort
SELECT DISTINCT + + ( col0 ) + + col2 * + - 79 AS col0 FROM tab2 AS cor0
----
-1771
-3096
-4507

query I rowsort
SELECT DISTINCT - col0 FROM tab0 cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + col1 FROM tab2 WHERE NOT - col2 IS NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3309
SELECT DISTINCT COUNT( * ) AS col2 FROM tab2 WHERE col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3309
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab2 WHERE col1 IS NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3310
SELECT DISTINCT - col1 DIV - + col1 + + 30 * 69 + col0 AS col0 FROM tab2
----
2117
2135
2146

skipif mysql # not compatible
query I rowsort label-3310
SELECT DISTINCT - col1 / - + col1 + + 30 * 69 + col0 AS col0 FROM tab2
----
2117
2135
2146

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 99 col2 FROM tab1
----
99

query I rowsort
SELECT ( + - ( - 42 ) ) FROM tab2
----
42
42
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 99 * + 39 col0, 85 FROM tab0, tab1 AS cor0
----
18 values hashing to dde9c765c56354cb8ff4fe9eca334dcd

query I rowsort
SELECT col0 FROM tab1 cor0 WHERE 98 BETWEEN ( - col2 + + 93 ) AND NULL
----

query I rowsort
SELECT + + col1 + - ( - 41 ) * col0 FROM tab1 cor0
----
2105
3490
3778

query I rowsort
SELECT - + 12 + - - 97 FROM tab1 AS cor0
----
85
85
85

onlyif mysql # aggregate syntax: 
query I rowsort label-3317
SELECT - COUNT( * ) + - 29 FROM tab2
----
-32

skipif mysql # not compatible
query I rowsort label-3317
SELECT - COUNT ( * ) + - 29 FROM tab2
----
-32

query IIIIII rowsort
SELECT * FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 ) WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT DISTINCT - col2 * + - col2 + - col2 FROM tab0 AS cor0
----
2162
90
9702

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE col0 NOT BETWEEN col0 AND col1
----
59
68
96

query I rowsort
SELECT ALL 15 - col0 FROM tab2 AS cor0
----
-31
-49
-60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 - - + col2 * col1, - col1 col0 FROM tab0 AS cor0
----
196
-1
297
-21
3822
-81

query I rowsort
SELECT col0 - + 35 + + - col1 * + col1 AS col1 FROM tab1 cor0
----
-180
-2153
25

onlyif mysql # aggregate syntax: 
query I rowsort label-3324
SELECT + MAX( + col2 ) - + COUNT( * ) * 55 FROM tab0 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-3324
SELECT + MAX ( + col2 ) - + COUNT ( * ) * 55 FROM tab0 AS cor0
----
-66

query I rowsort
SELECT 92 + + 25 + - col0 / + - col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT 44 - 74 FROM tab0 AS cor0
----
-30
-30
-30

query I rowsort
SELECT DISTINCT + col2 * 42 * + col1 * + col2 FROM tab0 AS cor0
----
411642
7515018
88200

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL < 5
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3329
SELECT ALL + - 24 + + - COUNT( * ) col2 FROM tab1 AS cor0
----
-27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3329
SELECT ALL + - 24 + + - COUNT ( * ) col2 FROM tab1 AS cor0
----
-27

query I rowsort
SELECT 59 - + 41 AS col2 FROM tab2 AS cor0
----
18
18
18

query I rowsort
SELECT DISTINCT 92 AS col2 FROM tab0 WHERE NULL BETWEEN + col1 AND + 93 * + + ( - col2 ) + - + col2
----

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab0 WHERE - - ( - - 54 ) = ( - - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3333
SELECT ALL + 89 * + CAST( NULL AS SIGNED ), - col0 FROM tab1 WHERE col1 = NULL
----

skipif mysql # not compatible
query II rowsort label-3333
SELECT ALL + 89 * + CAST ( NULL AS INTEGER ), - col0 FROM tab1 WHERE col1 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3334
SELECT ALL + CAST( col2 AS SIGNED ) + - + col1 FROM tab2 WHERE + - col0 + col0 + + - 51 >= + + col2 * + + col1 * col0 * col1
----

skipif mysql # not compatible
query I rowsort label-3334
SELECT ALL + CAST ( col2 AS INTEGER ) + - + col1 FROM tab2 WHERE + - col0 + col0 + + - 51 >= + + col2 * + + col1 * col0 * col1
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + - 31 <> col0
----

query II rowsort
SELECT ALL - 2 * - col0, col0 FROM tab1
----
102
51
170
85
182
91

query I rowsort
SELECT ( - - 75 ) AS col2 FROM tab0
----
75
75
75

onlyif mysql # DIV for integer division: 
query I rowsort label-3338
SELECT ALL + 61 DIV col0 + + col0 FROM tab2 AS cor0
----
47
64
75

skipif mysql # not compatible
query I rowsort label-3338
SELECT ALL + 61 / col0 + + col0 FROM tab2 AS cor0
----
47
64
75

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 46 * - + col1 <> + col0
----

query I rowsort
SELECT - - 2 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN 41 AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 NOT IN ( - + col1 + - col2, 20 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3342
SELECT - COUNT( DISTINCT - col2 ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3342
SELECT - COUNT ( DISTINCT - col2 ) AS col1 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT - 11 * - + 61 FROM tab2
----
671
671
671

query I rowsort
SELECT DISTINCT col2 * + + col2 FROM tab1 AS cor0
----
3481
4624
9216

query I rowsort
SELECT - 46 * col2 + + + col2 AS col2 FROM tab0 AS cor0
----
-2115
-4455
-450

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 * col1 + + col2 / + col0, 47 col2 FROM tab0 AS cor0 WHERE + ( + - ( + col0 ) ) IN ( + col2 * col2 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 99 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + ( - + ( - col0 ) ) FROM tab0 AS cor0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3349
SELECT ALL + COUNT( * ) + + - 10 col2 FROM tab2 cor0
----
-7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3349
SELECT ALL + COUNT ( * ) + + - 10 col2 FROM tab2 cor0
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3350
SELECT ALL * FROM tab1 AS cor0 WHERE - CAST( - - 9 AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3350
SELECT ALL * FROM tab1 AS cor0 WHERE - CAST ( - - 9 AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-3351
SELECT DISTINCT + + 80 DIV - 67 AS col2 FROM tab2 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3351
SELECT DISTINCT + + 80 / - 67 AS col2 FROM tab2 cor0
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3352
SELECT DISTINCT + CAST( NULL AS DECIMAL ) + - - 84 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3352
SELECT DISTINCT + CAST ( NULL AS REAL ) + - - 84 AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3353
SELECT DISTINCT 55 * - + col0 * ( - ( - col2 ) ) + - + col2 / - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3353
SELECT DISTINCT 55 * - + col0 * ( - ( - col2 ) ) + - + col2 / - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT + 29 * + col1 * col2 * col0 AS col0 FROM tab2
----
1564782
5716480
8452050

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + + + col1 col0 FROM tab0
----
108
96
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3356
SELECT + ( + 46 ) + - - COUNT( * ) AS col1 FROM tab2
----
49

skipif mysql # not compatible
query I rowsort label-3356
SELECT + ( + 46 ) + - - COUNT ( * ) AS col1 FROM tab2
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-3357
SELECT ALL 15 * COUNT( + 63 ) col2 FROM tab1
----
45

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3357
SELECT ALL 15 * COUNT ( + 63 ) col2 FROM tab1
----
45

query I rowsort
SELECT 50 + + + col2 + - col1 AS col0 FROM tab1
----
104
132
71

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3359
SELECT - ( - CAST( NULL AS DECIMAL ) ) + - 53 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3359
SELECT - ( - CAST ( NULL AS REAL ) ) + - 53 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3360
SELECT DISTINCT + SUM( DISTINCT + col0 ) AS col1 FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-3360
SELECT DISTINCT + SUM ( DISTINCT + col0 ) AS col1 FROM tab0
----
199

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3361
SELECT DISTINCT CAST( + 91 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-3361
SELECT DISTINCT CAST ( + 91 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3362
SELECT DISTINCT + MAX( ALL + + col1 ) - - + 27 AS col1 FROM tab2 AS cor0 WHERE NOT ( NOT NULL <> ( 30 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3362
SELECT DISTINCT + MAX ( ALL + + col1 ) - - + 27 AS col1 FROM tab2 AS cor0 WHERE NOT ( NOT NULL <> ( 30 ) )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + - - 32 col1 FROM tab1 cor0
----
-19
-53
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 17 col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3365
SELECT SUM( - CAST( NULL AS SIGNED ) ) + - 89 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3365
SELECT SUM ( - CAST ( NULL AS INTEGER ) ) + - 89 AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3366
SELECT DISTINCT - 53 - 55, - CAST( + ( col1 ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-108
-1
-108
-21
-108
-81

skipif mysql # not compatible
query II rowsort label-3366
SELECT DISTINCT - 53 - 55, - CAST ( + ( col1 ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-108
-1
-108
-21
-108
-81

query I rowsort
SELECT ALL + + ( + col2 ) FROM tab2 cor0
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3368
SELECT ALL col2 * - col0 / CAST( CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab1 AS cor0 WHERE NOT NULL <= NULL
----

skipif mysql # not compatible
query I rowsort label-3368
SELECT ALL col2 * - col0 / CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab1 AS cor0 WHERE NOT NULL <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3369
SELECT ALL - CAST( - + 88 AS SIGNED ) FROM tab1 AS cor0
----
88
88
88

skipif mysql # not compatible
query I rowsort label-3369
SELECT ALL - CAST ( - + 88 AS INTEGER ) FROM tab1 AS cor0
----
88
88
88

query I rowsort
SELECT col1 + - + col0 AS col1 FROM tab2 AS cor0 WHERE NOT + 9 IS NULL
----
-8
13
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3371
SELECT MAX( ALL + col0 ) * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3371
SELECT MAX ( ALL + col0 ) * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-3372
SELECT DISTINCT + + ( 18 ) col2, - 81, + + 50 * + COUNT( * ) * COUNT( * ) AS col0 FROM tab1 cor0
----
18
-81
450

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-3372
SELECT DISTINCT + + ( 18 ) col2, - 81, + + 50 * + COUNT ( * ) * COUNT ( * ) AS col0 FROM tab1 cor0
----
18
-81
450

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - col0, col0 col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + - col0 ) col0 FROM tab1
----
51
85
91

query II rowsort
SELECT DISTINCT + col2, 43 * ( + - col0 ) + col1 FROM tab0
----
10
-3720
47
-564
99
-4170

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3376
SELECT + col2 * + + CAST( NULL AS DECIMAL ) + col1 AS col0 FROM tab2 WHERE NOT ( NOT + col1 NOT BETWEEN + - col1 + 92 AND col2 + col1 )
----

skipif mysql # not compatible
query I rowsort label-3376
SELECT + col2 * + + CAST ( NULL AS REAL ) + col1 AS col0 FROM tab2 WHERE NOT ( NOT + col1 NOT BETWEEN + - col1 + 92 AND col2 + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3377
SELECT DISTINCT 38 col2, + AVG ( ALL - CAST( NULL AS SIGNED ) ) col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
38
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3377
SELECT DISTINCT 38 col2, + AVG ( ALL - CAST ( NULL AS INTEGER ) ) col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
38
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3378
SELECT DISTINCT + COUNT( 67 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3378
SELECT DISTINCT + COUNT ( 67 ) AS col2 FROM tab0
----
3

query I rowsort
SELECT DISTINCT col1 * col1 * col1 * + - ( - col1 ) FROM tab2 WHERE col2 BETWEEN - - ( + col0 ) AND col2
----

query I rowsort
SELECT ALL + col1 + col0 FROM tab2 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL - + 79 + + - col2 * + col2 AS col0 FROM tab0 AS cor0 WHERE 48 + 29 <> col2 + + col1 / - 75
----
-179
-2288
-9880

query II rowsort
SELECT DISTINCT + col0 AS col2, 1 AS col1 FROM tab1 AS cor0
----
51
1
85
1
91
1

query I rowsort
SELECT ALL col0 * ( - 39 ) FROM tab1
----
-1989
-3315
-3549

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3384
SELECT * FROM tab0 AS cor0 WHERE + col2 + + col2 * - CAST( NULL AS SIGNED ) - - - col1 <= - + 97
----

skipif mysql # not compatible
query III rowsort label-3384
SELECT * FROM tab0 AS cor0 WHERE + col2 + + col2 * - CAST ( NULL AS INTEGER ) - - - col1 <= - + 97
----

query II rowsort
SELECT + ( - col0 ) AS col0, - 34 FROM tab0 AS cor0
----
-15
-34
-87
-34
-97
-34

query I rowsort
SELECT DISTINCT - 86 * + col0 AS col0 FROM tab0
----
-1290
-7482
-8342

onlyif mysql # DIV for integer division: 
query I rowsort label-3387
SELECT ALL col0 DIV + - 97 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3387
SELECT ALL col0 / + - 97 AS col2 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + - 31 + 52 col0 FROM tab0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 18 col0 FROM tab2 WHERE - + col1 <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - + 6 > + - col2 * + 74
----

query I rowsort
SELECT - - col0 + 76 FROM tab2 WHERE NULL IN ( ( - - col0 ), 94, - - col1 + col1 )
----

query I rowsort
SELECT + ( - col1 ) + + - col1 AS col2 FROM tab0 AS cor0
----
-162
-2
-42

query I rowsort
SELECT DISTINCT - + ( + ( - + col1 ) ) AS col0 FROM tab2 AS cor0
----
51
67
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 84 col1 FROM tab1 AS cor0
----
84

query III rowsort
SELECT ALL * FROM tab2 WHERE - col1 = - 38 * + + col1
----

query I rowsort
SELECT 59 AS col1 FROM tab0 WHERE ( - 10 ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3397
SELECT + - COUNT( + col1 ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3397
SELECT + - COUNT ( + col1 ) FROM tab2 cor0
----
-3

query I rowsort
SELECT ALL + col2 * 87 * 67 AS col1 FROM tab2 cor0
----
134067
233160
338082

onlyif mysql # aggregate syntax: 
query I rowsort label-3399
SELECT - + MAX( ALL - 99 ) FROM tab2 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-3399
SELECT - + MAX ( ALL - 99 ) FROM tab2 AS cor0
----
99

onlyif mysql # aggregate syntax: 
query II rowsort label-3400
SELECT DISTINCT 51 AS col0, - 37 * + - ( - COUNT( * ) ) FROM tab1 AS cor0
----
51
-111

skipif mysql # not compatible
query II rowsort label-3400
SELECT DISTINCT 51 AS col0, - 37 * + - ( - COUNT ( * ) ) FROM tab1 AS cor0
----
51
-111

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3401
SELECT - col1 AS col1, + col0 * 15 * - - col2 FROM tab1 cor0 WHERE NOT - CAST( NULL AS SIGNED ) * - col0 > NULL
----

skipif mysql # not compatible
query II rowsort label-3401
SELECT - col1 AS col1, + col0 * 15 * - - col2 FROM tab1 cor0 WHERE NOT - CAST ( NULL AS INTEGER ) * - col0 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3402
SELECT ( + - COUNT( DISTINCT - 83 ) ) AS col2 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-3402
SELECT ( + - COUNT ( DISTINCT - 83 ) ) AS col2 FROM tab2
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 58 AS col1, col2 col2 FROM tab0 WHERE NOT + 44 > + - col2
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3404
SELECT CAST( + col1 AS SIGNED ) DIV + 78 * - col1 * - 60 * - ( - + 22 ) + - col2 + - + col2 + - col1 + 45 col1 FROM tab2
----
-112
-138
-52

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3404
SELECT CAST ( + col1 AS INTEGER ) / + 78 * - col1 * - 60 * - ( - + 22 ) + - col2 + - + col2 + - col1 + 45 col1 FROM tab2
----
-112
-138
-52

query II rowsort
SELECT + ( + + col2 ), + 41 AS col1 FROM tab1
----
59
41
68
41
96
41

onlyif mysql # aggregate syntax: 
query I rowsort label-3406
SELECT DISTINCT + MAX( col2 ) AS col0 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-3406
SELECT DISTINCT + MAX ( col2 ) AS col0 FROM tab1
----
96

query I rowsort
SELECT + 18 * + + col2 AS col1 FROM tab0
----
1782
180
846

query I rowsort
SELECT DISTINCT - ( - 39 ) FROM tab2 AS cor0
----
39

query I rowsort
SELECT ALL col1 + + ( col2 ) + - col2 * + 99 FROM tab2 AS cor0
----
-2203
-3843
-5617

onlyif mysql # DIV for integer division: 
query I rowsort label-3410
SELECT DISTINCT + 4 * - ( - 38 ) + 47 DIV ( - col0 ) AS col0 FROM tab1 cor0
----
152

skipif mysql # not compatible
query I rowsort label-3410
SELECT DISTINCT + 4 * - ( - 38 ) + 47 / ( - col0 ) AS col0 FROM tab1 cor0
----
152

onlyif mysql # aggregate syntax: 
query I rowsort label-3411
SELECT + ( - + SUM( + 18 ) ) FROM tab2
----
-54

skipif mysql # not compatible
query I rowsort label-3411
SELECT + ( - + SUM ( + 18 ) ) FROM tab2
----
-54

query II rowsort
SELECT + 85 AS col0, 47 + + - 31 FROM tab2 WHERE NULL IS NULL
----
85
16
85
16
85
16

query II rowsort
SELECT - col1, + col0 AS col0 FROM tab2 AS cor0
----
-51
46
-67
75
-77
64

query I rowsort
SELECT - + 89 + col0 AS col2 FROM tab2 AS cor0
----
-14
-25
-43

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 <= + - col0
----

query III rowsort
SELECT * FROM tab0 WHERE + 7 + + col2 IS NULL
----

query I rowsort
SELECT ALL ( + - col2 ) + - - 26 FROM tab1
----
-33
-42
-70

query I rowsort
SELECT ALL + col1 + 78 - + - 76 AS col0 FROM tab1
----
159
168
201

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3419
SELECT ALL - col2 - + col1 AS col1 FROM tab2 WHERE ( NOT CAST( NULL AS SIGNED ) IS NULL )
----

skipif mysql # not compatible
query I rowsort label-3419
SELECT ALL - col2 - + col1 AS col1 FROM tab2 WHERE ( NOT CAST ( NULL AS INTEGER ) IS NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( col1 * + + col2 < + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3421
SELECT DISTINCT - CAST( + col0 AS SIGNED ) * + CAST( + 16 AS SIGNED ) + col1 FROM tab0 WHERE NOT col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3421
SELECT DISTINCT - CAST ( + col0 AS INTEGER ) * + CAST ( + 16 AS INTEGER ) + col1 FROM tab0 WHERE NOT col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE + - 84 * + - col0 IS NULL
----

query I rowsort
SELECT DISTINCT 17 + + col1 + + col1 AS col0 FROM tab0
----
179
19
59

query I rowsort
SELECT ALL 35 - - col2 + + col1 * + col1 * + + col2 AS col0 FROM tab2
----
237235
260455
59881

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3425
SELECT DISTINCT CAST( + ( col1 ) AS SIGNED ) FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-3425
SELECT DISTINCT CAST ( + ( col1 ) AS INTEGER ) FROM tab2
----
51
67
77

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3426
SELECT ALL - col0 * - CAST( NULL AS DECIMAL ) + + 92 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-3426
SELECT ALL - col0 * - CAST ( NULL AS REAL ) + + 92 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3427
SELECT ALL CAST( + + 61 AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 07149905a72bd87553381f34d19ed290

skipif mysql # not compatible
query I rowsort label-3427
SELECT ALL CAST ( + + 61 AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 07149905a72bd87553381f34d19ed290

onlyif mysql # aggregate syntax: 
query I rowsort label-3428
SELECT + - MIN( ALL col1 ) col2 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3428
SELECT + - MIN ( ALL col1 ) col2 FROM tab2 AS cor0
----
-51

query I rowsort
SELECT + + col0 * + 41 FROM tab0 AS cor0
----
3567
3977
615

query I rowsort
SELECT ALL + 36 * 29 AS col1 FROM tab1 AS cor0
----
1044
1044
1044

onlyif mysql # DIV for integer division: 
query I rowsort label-3431
SELECT DISTINCT col0 DIV - + col0 AS col1 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3431
SELECT DISTINCT col0 / - + col0 AS col1 FROM tab2 AS cor0
----
-1

query I rowsort
SELECT - 68 * - - col0 FROM tab2 AS cor0
----
-3128
-4352
-5100

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3433
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( CAST( + 67 AS SIGNED ) <= NULL )
----

skipif mysql # not compatible
query III rowsort label-3433
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( CAST ( + 67 AS INTEGER ) <= NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3434
SELECT ALL + COUNT( * ) * 56 col1 FROM tab0 AS cor0
----
168

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3434
SELECT ALL + COUNT ( * ) * 56 col1 FROM tab0 AS cor0
----
168

query I rowsort
SELECT - col1 * - col2 + col1 FROM tab0 AS cor0 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT + 86 + + col1 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
137
153
163

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 75 * - col0 col1 FROM tab1
----
-3825
-6375
-6825

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3438
SELECT DISTINCT * FROM tab1 WHERE NULL < + 77 / + 63 OR NOT - col0 - - + col0 NOT BETWEEN + col2 AND - + CAST( + - col1 AS SIGNED ) + + + col0 / - col1
----

skipif mysql # not compatible
query III rowsort label-3438
SELECT DISTINCT * FROM tab1 WHERE NULL < + 77 / + 63 OR NOT - col0 - - + col0 NOT BETWEEN + col2 AND - + CAST ( + - col1 AS INTEGER ) + + + col0 / - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3439
SELECT ALL + MAX( - 68 ) AS col0 FROM tab0
----
-68

skipif mysql # not compatible
query I rowsort label-3439
SELECT ALL + MAX ( - 68 ) AS col0 FROM tab0
----
-68

query I rowsort
SELECT + col1 * + ( - 67 ) FROM tab1
----
-3149
-335
-938

onlyif mysql # DIV for integer division: 
query II rowsort label-3441
SELECT + ( + col0 ) * - ( - col1 ) AS col0, col1 DIV + - col2 FROM tab2
----
2346
-2
4928
-1
5025
-1

skipif mysql # not compatible
query II rowsort label-3441
SELECT + ( + col0 ) * - ( - col1 ) AS col0, col1 / + - col2 FROM tab2
----
2346
-2
4928
-1
5025
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3442
SELECT DISTINCT - col0 * + ( 19 ) * col0 * - CAST( NULL AS SIGNED ) col0 FROM tab1 WHERE - col1 BETWEEN NULL AND NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3442
SELECT DISTINCT - col0 * + ( 19 ) * col0 * - CAST ( NULL AS INTEGER ) col0 FROM tab1 WHERE - col1 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3443
SELECT DISTINCT COUNT( * ), + COUNT( * ) FROM tab1
----
3
3

skipif mysql # not compatible
query II rowsort label-3443
SELECT DISTINCT COUNT ( * ), + COUNT ( * ) FROM tab1
----
3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 28 col1 FROM tab0
----
28

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3445
SELECT ALL + + col0 DIV col0 * - col1 * + - CAST( - - col2 AS SIGNED ) + - - col1 AS col2 FROM tab1 AS cor0
----
1358
300
3243

skipif mysql # not compatible
query I rowsort label-3445
SELECT ALL + + col0 / col0 * - col1 * + - CAST ( - - col2 AS INTEGER ) + - - col1 AS col2 FROM tab1 AS cor0
----
1358
300
3243

onlyif mysql # aggregate syntax: 
query I rowsort label-3446
SELECT + MIN( - col1 ) * - 42 FROM tab0 AS cor0
----
3402

skipif mysql # not compatible
query I rowsort label-3446
SELECT + MIN ( - col1 ) * - 42 FROM tab0 AS cor0
----
3402

query I rowsort
SELECT + col2 + + + 6 FROM tab0 AS cor0
----
105
16
53

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3448
SELECT - CAST( NULL AS SIGNED ) * + col1 + + 61, + col0 FROM tab2
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-3448
SELECT - CAST ( NULL AS INTEGER ) * + col1 + + 61, + col0 FROM tab2
----
NULL
46
NULL
64
NULL
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3449
SELECT ALL + MIN( + - col1 ) AS col2 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-3449
SELECT ALL + MIN ( + - col1 ) AS col2 FROM tab1 AS cor0
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3450
SELECT DISTINCT + - CAST( - col2 AS SIGNED ) FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-3450
SELECT DISTINCT + - CAST ( - col2 AS INTEGER ) FROM tab2 AS cor0
----
23
40
58

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL >= + col0 * + - col0
----

query I rowsort
SELECT DISTINCT + - col0 - + col0 * 11 FROM tab0 AS cor0 WHERE NOT - col0 * col1 * - col1 IS NULL
----
-1044
-1164
-180

query I rowsort
SELECT - + ( + + col2 ) * + - 48 AS col1 FROM tab2 AS cor0
----
1104
1920
2784

onlyif mysql # DIV for integer division: 
query I rowsort label-3454
SELECT - + ( + 12 ) DIV + col2 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3454
SELECT - + ( + 12 ) / + col2 AS col0 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN - ( ( + 22 ) ) + col2 AND 17 * - col0
----

query I rowsort
SELECT ALL - col0 + - + col0 AS col2 FROM tab0 AS cor0
----
-174
-194
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-3457
SELECT 96 - + - COUNT( * ) FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-3457
SELECT 96 - + - COUNT ( * ) FROM tab0
----
99

query I rowsort
SELECT ALL + col2 * - col0 + + + col2 - col2 * - + col0 FROM tab1
----
59
68
96

query I rowsort
SELECT col0 + - col1 + - col1 AS col0 FROM tab0
----
-147
45
95

query I rowsort
SELECT ALL - + col2 - + col0 AS col2 FROM tab0 AS cor0
----
-196
-62
-97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN ( - + col1 ) AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) > col0 * + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 8 + + 13 col2 FROM tab0 cor0
----
5
5
5

query I rowsort
SELECT col0 * 84 FROM tab1 AS cor0
----
4284
7140
7644

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3465
SELECT ALL - col2 * - + CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3465
SELECT ALL - col2 * - + CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3466
SELECT + SUM( ALL - 1 ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-3466
SELECT + SUM ( ALL - 1 ) AS col0 FROM tab1
----
-3

query I rowsort
SELECT DISTINCT - 58 * + - 35 * + col2 FROM tab2 AS cor0
----
117740
46690
81200

query I rowsort
SELECT ALL + 4 * + col1 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
204
268
308

query I rowsort
SELECT ( - 16 ) FROM tab1 AS cor0
----
-16
-16
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-3470
SELECT DISTINCT + SUM( + + 76 ) * + 63 AS col0 FROM tab2 AS cor0
----
14364

skipif mysql # not compatible
query I rowsort label-3470
SELECT DISTINCT + SUM ( + + 76 ) * + 63 AS col0 FROM tab2 AS cor0
----
14364

onlyif mysql # DIV for integer division: 
query I rowsort label-3471
SELECT DISTINCT + col0 DIV - ( + 56 ) FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-3471
SELECT DISTINCT + col0 / - ( + 56 ) FROM tab1 AS cor0
----
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - 24 + 46 col2 FROM tab2 cor0
----
-1178
-1562
-1802

onlyif mysql # DIV for integer division: 
query I rowsort label-3473
SELECT ALL - + col2 DIV col0 + - col2 + ( - - ( col1 ) ) AS col0 FROM tab1 AS cor0
----
-21
-54
-83

skipif mysql # not compatible
query I rowsort label-3473
SELECT ALL - + col2 / col0 + - col2 + ( - - ( col1 ) ) AS col0 FROM tab1 AS cor0
----
-21
-54
-83

query I rowsort
SELECT DISTINCT + ( - 56 ) AS col2 FROM tab2
----
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-3475
SELECT ALL col0 DIV + ( - ( - 76 ) ) AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3475
SELECT ALL col0 / + ( - ( - 76 ) ) AS col0 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3476
SELECT SUM( + col1 ) + - ( + 40 ) AS col1 FROM tab0
----
63

skipif mysql # not compatible
query I rowsort label-3476
SELECT SUM ( + col1 ) + - ( + 40 ) AS col1 FROM tab0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3477
SELECT DISTINCT - MIN( ALL - 7 ) col0 FROM tab0
----
7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3477
SELECT DISTINCT - MIN ( ALL - 7 ) col0 FROM tab0
----
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col1 * 4 + + col0 + - ( + - col0 ) col1 FROM tab2
----
-10312
-17806
-23588

query II rowsort
SELECT ALL - 25, col1 FROM tab2
----
-25
51
-25
67
-25
77

query I rowsort
SELECT + 92 * 73 AS col0 FROM tab0 AS cor0
----
6716
6716
6716

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3481
SELECT DISTINCT COUNT( * ) DIV COUNT( * ) AS col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3481
SELECT DISTINCT COUNT ( * ) / COUNT ( * ) AS col2 FROM tab0 AS cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3482
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 94 / + CAST( NULL AS SIGNED ) NOT BETWEEN + col1 AND - + col0 + + col0
----

skipif mysql # not compatible
query III rowsort label-3482
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 94 / + CAST ( NULL AS INTEGER ) NOT BETWEEN + col1 AND - + col0 + + col0
----

query I rowsort
SELECT - col1 AS col2 FROM tab0 AS cor0 WHERE - ( - + col0 ) IS NULL
----

query I rowsort
SELECT ALL col2 + + 76 FROM tab1 AS cor0
----
135
144
172

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL IN ( 83, - 78 )
----

query I rowsort
SELECT + col2 FROM tab1 WHERE 50 IS NULL
----

query II rowsort
SELECT - col2 AS col1, col0 FROM tab0
----
-10
87
-47
15
-99
97

onlyif mysql # DIV for integer division: 
query II rowsort label-3488
SELECT col1 col1, + col2 * col2 DIV - - col1 FROM tab0
----
1
9801
21
4
81
27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3488
SELECT col1 col1, + col2 * col2 / - - col1 FROM tab0
----
1
9801
21
4
81
27

query I rowsort
SELECT ALL 12 + + col0 AS col2 FROM tab1
----
103
63
97

query I rowsort
SELECT col0 * 67 + 97 FROM tab2
----
3179
4385
5122

query I rowsort
SELECT - 41 + + + 95 FROM tab0 AS cor0
----
54
54
54

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3492
SELECT ALL + col1 * + 91 + - 72, + 52 AS col0 FROM tab0 AS cor0 WHERE - CAST( NULL AS SIGNED ) * + col0 + col1 = ( col0 + + col1 )
----

skipif mysql # not compatible
query II rowsort label-3492
SELECT ALL + col1 * + 91 + - 72, + 52 AS col0 FROM tab0 AS cor0 WHERE - CAST ( NULL AS INTEGER ) * + col0 + col1 = ( col0 + + col1 )
----

query II rowsort
SELECT ALL + + col1 AS col0, + col2 + + + col1 * + + 80 FROM tab2 AS cor0
----
51
4103
67
5418
77
6200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
59
68
96

query I rowsort
SELECT ALL - + 29 * + + col2 * - ( col0 ) - + + col2 + - + col0 AS col2 FROM tab0 cor0
----
20383
25133
278291

query I rowsort
SELECT + col2 * - + col2 + + col1 * - + col0 AS col1 FROM tab1 AS cor0
----
-3906
-8901
-9930

onlyif mysql # aggregate syntax: 
query I rowsort label-3497
SELECT ( MIN( DISTINCT - 2 ) ) * - COUNT( * ) FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-3497
SELECT ( MIN ( DISTINCT - 2 ) ) * - COUNT ( * ) FROM tab1
----
6

query I rowsort
SELECT DISTINCT - ( 77 ) - - - col1 FROM tab1
----
-124
-82
-91

query III rowsort
SELECT * FROM tab2 WHERE - - col0 <= + col0 + + + 15
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 14 - - + col0 FROM tab1
----
105
65
99

query I rowsort
SELECT col1 - + - 46 FROM tab0 AS cor0
----
127
47
67

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( + col2 ) + - + col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3503
SELECT 41 DIV + col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3503
SELECT 41 / + col0 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3504
SELECT DISTINCT COUNT( + col2 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3504
SELECT DISTINCT COUNT ( + col2 ) AS col1 FROM tab0
----
3

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN + - ( - 42 ) AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3506
SELECT ALL - + COUNT( * ) * + CAST( ( COUNT( * ) ) AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-81

skipif mysql # not compatible
query I rowsort label-3506
SELECT ALL - + COUNT ( * ) * + CAST ( ( COUNT ( * ) ) AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-81

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 <> 52
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE 41 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-3509
SELECT + + 18, + COUNT( * ) AS col0 FROM tab1 AS cor0
----
18
3

skipif mysql # not compatible
query II rowsort label-3509
SELECT + + 18, + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
18
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3510
SELECT + CAST( + + MAX( DISTINCT - 27 ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-3510
SELECT + CAST ( + + MAX ( DISTINCT - 27 ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3511
SELECT col1 * + CAST( NULL AS SIGNED ) / + + col0 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3511
SELECT col1 * + CAST ( NULL AS INTEGER ) / + + col0 AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3512
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 74 AS col0, - col0 * - + col1 * - col2 AS col0 FROM tab2
----
NULL
-197120
NULL
-291450
NULL
-53958

skipif mysql # not compatible
query II rowsort label-3512
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 74 AS col0, - col0 * - + col1 * - col2 AS col0 FROM tab2
----
NULL
-197120
NULL
-291450
NULL
-53958

query I rowsort
SELECT DISTINCT 87 * + + col1 AS col1 FROM tab2
----
4437
5829
6699

query I rowsort
SELECT + - col0 + - 67 - - 5 * + col1 AS col2 FROM tab2 AS cor0 WHERE ( NOT - ( - col2 ) IS NULL )
----
142
193
254

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 * - 14 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 29 + + + col2 FROM tab2 AS cor0
----
-6
11
29

query I rowsort
SELECT DISTINCT 69 * - col2 + + - col2 AS col2 FROM tab0
----
-3290
-6930
-700

onlyif mysql # aggregate syntax: 
query II rowsort label-3518
SELECT + 1 col1, - 76 * + + COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
1
-684

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3518
SELECT + 1 col1, - 76 * + + COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
1
-684

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * - col1 col0 FROM tab1 cor0
----
196
2209
25

query I rowsort
SELECT + col0 * + col2 + - - col0 AS col1 FROM tab0 AS cor0
----
720
957
9700

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 41 col1 FROM tab2 AS cor0
----
41
41
41

query I rowsort
SELECT - 31 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
-31
-31
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-3523
SELECT COUNT( * ) - 8 FROM tab0 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-3523
SELECT COUNT ( * ) - 8 FROM tab0 AS cor0
----
-5

query I rowsort
SELECT ALL + col1 + + 27 + - col0 FROM tab0 AS cor0
----
-39
-69
93

query III rowsort
SELECT ALL * FROM tab2 WHERE - 21 * + col0 + 78 BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - col0 + + - ( + + ( + + col0 ) ) AS col0 FROM tab2
----
-128
-150
-92

query III rowsort
SELECT * FROM tab0 WHERE + 48 > + - 53
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col0 + - col1 + + + col0 FROM tab2
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3529
SELECT DISTINCT * FROM tab1 WHERE NULL IN ( + 79 * 83 * - CAST( + 49 AS SIGNED ), + 99 + - + 84, + 1, - 24, + - 44 + 41 + - - 35 * - 25 * - col0 * - + col2 )
----

skipif mysql # not compatible
query III rowsort label-3529
SELECT DISTINCT * FROM tab1 WHERE NULL IN ( + 79 * 83 * - CAST ( + 49 AS INTEGER ), + 99 + - + 84, + 1, - 24, + - 44 + 41 + - - 35 * - 25 * - col0 * - + col2 )
----

query I rowsort
SELECT ( - - 53 ) + ( - 11 ) AS col1 FROM tab2
----
42
42
42

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN 61 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( ( NOT 75 IS NULL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 32 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to d30a2acbf33c88274474306936d3227b

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 16 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3535
SELECT COUNT( * ) AS col1, 1 FROM tab2
----
3
1

skipif mysql # not compatible
query II rowsort label-3535
SELECT COUNT ( * ) AS col1, 1 FROM tab2
----
3
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3536
SELECT ALL col2 DIV + + col2 col2 FROM tab0
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3536
SELECT ALL col2 / + + col2 col2 FROM tab0
----
1
1
1

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE + col2 NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT - col1, + col1 AS col0 FROM tab0 AS cor0
----
-1
1
-21
21
-81
81

query II rowsort
SELECT ALL col2, - 20 FROM tab1 AS cor0 WHERE + col0 / 11 IN ( - col2, - 90 )
----

query I rowsort
SELECT ALL + col0 * - 30 + - 12 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-2622
-2922
-462

onlyif mysql # aggregate syntax: 
query II rowsort label-3541
SELECT ALL + MAX( ALL + col0 ) col0, - ( COUNT( * ) ) FROM tab1
----
91
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3541
SELECT ALL + MAX ( ALL + col0 ) col0, - ( COUNT ( * ) ) FROM tab1
----
91
-3

query I rowsort
SELECT DISTINCT 12 * 87 FROM tab1
----
1044

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3543
SELECT ALL - CAST( - + col2 AS SIGNED ) * col2 + + + 68 FROM tab0 AS cor0
----
168
2277
9869

skipif mysql # not compatible
query I rowsort label-3543
SELECT ALL - CAST ( - + col2 AS INTEGER ) * col2 + + + 68 FROM tab0 AS cor0
----
168
2277
9869

onlyif mysql # DIV for integer division: 
query I rowsort label-3544
SELECT 88 DIV + 97 col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3544
SELECT 88 / + 97 col1 FROM tab0 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 + ( + + col1 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 35 * + 75 + - - 74 - - ( 11 ) * - col1 FROM tab2 AS cor0
----
-3112
-3288
-3398

query I rowsort
SELECT ALL + 55 FROM tab1 WHERE - 39 NOT BETWEEN NULL AND 55
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3548
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab1 WHERE NOT + + CAST( NULL AS SIGNED ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3548
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab1 WHERE NOT + + CAST ( NULL AS INTEGER ) IS NULL
----
0

query I rowsort
SELECT DISTINCT - 20 * + col1 * - col0 FROM tab0
----
1940
24300
36540

query I rowsort
SELECT ALL col2 + - 85 AS col1 FROM tab1
----
-17
-26
11

query I rowsort
SELECT ALL - ( + col1 ) * - 96 * - 90 AS col2 FROM tab0
----
-181440
-699840
-8640

query I rowsort
SELECT + ( + ( + col0 ) ) + col0 AS col0 FROM tab1
----
102
170
182

query I rowsort
SELECT + 79 + - 3 FROM tab0
----
76
76
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3554
SELECT - COUNT( * ) DIV - 70 col1 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3554
SELECT - COUNT ( * ) / - 70 col1 FROM tab1
----
0

query I rowsort
SELECT col1 * - 22 AS col2 FROM tab2
----
-1122
-1474
-1694

query II rowsort
SELECT col2, + col1 + - col0 AS col0 FROM tab2
----
23
5
40
13
58
-8

query I rowsort
SELECT 82 * + + 89 FROM tab0
----
7298
7298
7298

query I rowsort
SELECT ALL - 0 + col1 * - - 93 AS col0 FROM tab1 AS cor0
----
1302
4371
465

query I rowsort
SELECT DISTINCT 27 + - col1 FROM tab1 cor0
----
-20
13
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3560
SELECT - ( col1 ) - CAST( 34 AS SIGNED ) * + 71 AS col1 FROM tab0
----
-2415
-2435
-2495

skipif mysql # not compatible
query I rowsort label-3560
SELECT - ( col1 ) - CAST ( 34 AS INTEGER ) * + 71 AS col1 FROM tab0
----
-2415
-2435
-2495

onlyif mysql # aggregate syntax: 
query I rowsort label-3561
SELECT DISTINCT COUNT( * ) * 23 - - - COUNT( * ) col1 FROM tab0
----
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3561
SELECT DISTINCT COUNT ( * ) * 23 - - - COUNT ( * ) col1 FROM tab0
----
66

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 66 NOT BETWEEN 5 * - + ( - col0 ) AND NULL
----

query I rowsort
SELECT - 16 * + col1 AS col0 FROM tab1
----
-224
-752
-80

query II rowsort
SELECT col0 AS col0, col2 AS col1 FROM tab2
----
46
23
64
40
75
58

onlyif mysql # DIV for integer division: 
query I rowsort label-3565
SELECT - col0 DIV - 59 FROM tab0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-3565
SELECT - col0 / - 59 FROM tab0
----
0
1
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3566
SELECT ALL COUNT( * ) DIV - 97 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3566
SELECT ALL COUNT ( * ) / - 97 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3567
SELECT DISTINCT + MIN( ALL + ( - - ( col2 ) ) ) + COUNT( * ) AS col1 FROM tab0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3567
SELECT DISTINCT + MIN ( ALL + ( - - ( col2 ) ) ) + COUNT ( * ) AS col1 FROM tab0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3568
SELECT ALL - + MAX( - col0 ) FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-3568
SELECT ALL - + MAX ( - col0 ) FROM tab2 AS cor0
----
46

query II rowsort
SELECT DISTINCT + 85 AS col1, + 29 FROM tab1 AS cor0
----
85
29

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 80 * + ( + 75 ) + + 83 <> col2
----

query II rowsort
SELECT ALL + col1, - 38 FROM tab2
----
51
-38
67
-38
77
-38

query II rowsort
SELECT col0 AS col2, + 26 + col2 FROM tab2
----
46
49
64
66
75
84

onlyif mysql # DIV for integer division: 
query I rowsort label-3573
SELECT 49 DIV col0 col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3573
SELECT 49 / col0 col1 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3574
SELECT DISTINCT col0 * + - ( CAST( NULL AS SIGNED ) ) * + col1 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3574
SELECT DISTINCT col0 * + - ( CAST ( NULL AS INTEGER ) ) * + col1 AS col1 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 26, col1 col2 FROM tab0 AS cor0
----
-26
1
-26
21
-26
81

query II rowsort
SELECT ALL col1 AS col2, 10 * + 92 AS col1 FROM tab1 AS cor0
----
14
920
47
920
5
920

query II rowsort
SELECT + - col1 AS col2, col0 AS col0 FROM tab0 AS cor0
----
-1
97
-21
87
-81
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3578
SELECT - COUNT( * ) DIV MIN( + col0 ) AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3578
SELECT - COUNT ( * ) / MIN ( + col0 ) AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT + - 10 * - 56 + + col0 FROM tab1 AS cor0
----
611
645
651

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 * - + ( - col2 ) > - - ( + - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3581
SELECT ALL 99 * + 22 + col0 * 77 + + 9 - - - col2 + + col1 * col1 + + col1, + 52 * - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
9338
NULL
9559
NULL
9937
NULL

skipif mysql # not compatible
query II rowsort label-3581
SELECT ALL 99 * + 22 + col0 * 77 + + 9 - - - col2 + + col1 * col1 + + col1, + 52 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
9338
NULL
9559
NULL
9937
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - - col2 ) + col2 col2 FROM tab2
----
116
46
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3583
SELECT ALL MAX( ALL 92 ) * COUNT( * ) + - 32 FROM tab0
----
244

skipif mysql # not compatible
query I rowsort label-3583
SELECT ALL MAX ( ALL 92 ) * COUNT ( * ) + - 32 FROM tab0
----
244

onlyif mysql # aggregate syntax: 
query II rowsort label-3584
SELECT ALL - MIN( DISTINCT - col0 ) AS col1, + MIN( DISTINCT + 75 ) * - 34 AS col2 FROM tab2
----
75
-2550

skipif mysql # not compatible
query II rowsort label-3584
SELECT ALL - MIN ( DISTINCT - col0 ) AS col1, + MIN ( DISTINCT + 75 ) * - 34 AS col2 FROM tab2
----
75
-2550

onlyif mysql # aggregate syntax: 
query II rowsort label-3585
SELECT DISTINCT - - SUM( ALL + + col1 ), - COUNT( * ) AS col1 FROM tab2 AS cor0
----
195
-3

skipif mysql # not compatible
query II rowsort label-3585
SELECT DISTINCT - - SUM ( ALL + + col1 ), - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
195
-3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND col0 OR ( - col0 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT - col1 AS col1, col1 AS col2 FROM tab1 AS cor0 WHERE NOT ( NOT ( NULL ) IS NULL ) OR ( NOT ( ( NOT NULL IS NOT NULL ) ) )
----
-14
14
-47
47
-5
5

onlyif mysql # DIV for integer division: 
query I rowsort label-3588
SELECT col1 + - col0 DIV - 57 FROM tab2 AS cor0
----
51
68
78

skipif mysql # not compatible
query I rowsort label-3588
SELECT col1 + - col0 / - 57 FROM tab2 AS cor0
----
51
68
78

query I rowsort
SELECT ALL - 28 + 45 * + ( + ( col2 ) ) AS col2 FROM tab2 AS cor0
----
1007
1772
2582

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 77 IS NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3591
SELECT DISTINCT - col0 - + col2 + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3591
SELECT DISTINCT - col0 - + col2 + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query II rowsort
SELECT ALL + col2 - ( + col2 ) + - - ( ( 86 ) ) AS col0, + col2 AS col2 FROM tab2 AS cor0
----
86
23
86
40
86
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3593
SELECT + CAST( NULL AS SIGNED ) * col2 - col2 * - col1 + - - 18 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-3593
SELECT + CAST ( NULL AS INTEGER ) * col2 - col2 * - col1 + - - 18 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 - 11 AS col0 FROM tab1 AS cor0
----
-6
3
36

onlyif mysql # aggregate syntax: 
query I rowsort label-3595
SELECT COUNT( * ) * - + 22 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-3595
SELECT COUNT ( * ) * - + 22 FROM tab1 AS cor0
----
-66

query I rowsort
SELECT ALL - 49 * - + 47 FROM tab0 AS cor0
----
2303
2303
2303

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3597
SELECT + COUNT( * ) DIV + 1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3597
SELECT + COUNT ( * ) / + 1 FROM tab1 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3598
SELECT DISTINCT + + 62 DIV - 48 AS col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3598
SELECT DISTINCT + + 62 / - 48 AS col1 FROM tab0 AS cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 26 * col2 AS col0, + col0 col0 FROM tab1
----
-1534
85
-1768
91
-2496
51

query I rowsort
SELECT ALL - - col0 * + + col2 FROM tab2 AS cor0
----
1058
2560
4350

query I rowsort
SELECT 72 * + 17 FROM tab2
----
1224
1224
1224

onlyif mysql # aggregate syntax: 
query I rowsort label-3602
SELECT ALL 32 * - + COUNT( * ) FROM tab2
----
-96

skipif mysql # not compatible
query I rowsort label-3602
SELECT ALL 32 * - + COUNT ( * ) FROM tab2
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3603
SELECT - COUNT( * ) * - 75 + + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
228

skipif mysql # not compatible
query I rowsort label-3603
SELECT - COUNT ( * ) * - 75 + + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
228

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 9 <> - ( - - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3605
SELECT ALL - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3605
SELECT ALL - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-3

query I rowsort
SELECT + 38 + - 30 AS col1 FROM tab1
----
8
8
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3607
SELECT ALL col0 + - + CAST( + - col2 AS SIGNED ) * + + col1 FROM tab1
----
1395
3287
380

skipif mysql # not compatible
query I rowsort label-3607
SELECT ALL col0 + - + CAST ( + - col2 AS INTEGER ) * + + col1 FROM tab1
----
1395
3287
380

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3608
SELECT MAX( - - col2 ) * + SUM( DISTINCT CAST( + 28 AS SIGNED ) ) + - 1 AS col1 FROM tab0
----
2771

skipif mysql # not compatible
query I rowsort label-3608
SELECT MAX ( - - col2 ) * + SUM ( DISTINCT CAST ( + 28 AS INTEGER ) ) + - 1 AS col1 FROM tab0
----
2771

query I rowsort
SELECT DISTINCT ( + 39 ) + + 61 + col1 + - - col1 FROM tab0
----
102
142
262

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 + - col2 + col1 * + col1 col0, col1 FROM tab0
----
-197
1
421
21
6467
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3611
SELECT ALL col0 + CAST( + col1 AS SIGNED ) - - 50 * - 80 AS col2 FROM tab2
----
-3858
-3859
-3903

skipif mysql # not compatible
query I rowsort label-3611
SELECT ALL col0 + CAST ( + col1 AS INTEGER ) - - 50 * - 80 AS col2 FROM tab2
----
-3858
-3859
-3903

query II rowsort
SELECT ALL - 74, + col1 AS col1 FROM tab0
----
-74
1
-74
21
-74
81

query II rowsort
SELECT + col1, + 86 FROM tab1
----
14
86
47
86
5
86

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 BETWEEN - col2 / col1 * - col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3615
SELECT ALL - SUM( + 13 ) FROM tab0 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-3615
SELECT ALL - SUM ( + 13 ) FROM tab0 AS cor0
----
-39

query I rowsort
SELECT - col1 AS col1 FROM tab2 AS cor0 WHERE 25 * + col1 = NULL
----

query I rowsort
SELECT col0 + - + col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
0
0
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 35 * + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3619
SELECT ALL - COUNT( + 81 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3619
SELECT ALL - COUNT ( + 81 ) FROM tab1 AS cor0
----
-3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 21 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3621
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN + CAST( + + 1 AS SIGNED ) * - col0 AND NULL
----

skipif mysql # not compatible
query III rowsort label-3621
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN + CAST ( + + 1 AS INTEGER ) * - col0 AND NULL
----

query I rowsort
SELECT DISTINCT + ( 42 ) AS col1 FROM tab0 AS cor0
----
42

query I rowsort
SELECT + - 38 * col0 FROM tab0 AS cor0
----
-3306
-3686
-570

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3624
SELECT CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3624
SELECT CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3625
SELECT - MIN( DISTINCT + 35 ) FROM tab1
----
-35

skipif mysql # not compatible
query I rowsort label-3625
SELECT - MIN ( DISTINCT + 35 ) FROM tab1
----
-35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + 44 ) col0 FROM tab1
----
44
44
44

query I rowsort
SELECT DISTINCT - 65 * + col1 AS col0 FROM tab0
----
-1365
-5265
-65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 col1, - col1 - col1 AS col0 FROM tab1 AS cor0
----
51
-28
85
-10
91
-94

query I rowsort
SELECT 48 * - + 59 AS col2 FROM tab2 AS cor0
----
-2832
-2832
-2832

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 24 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3631
SELECT DISTINCT - MAX( DISTINCT - 6 ) + 25 AS col1 FROM tab0
----
31

skipif mysql # not compatible
query I rowsort label-3631
SELECT DISTINCT - MAX ( DISTINCT - 6 ) + 25 AS col1 FROM tab0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-3632
SELECT - ( - COUNT( * ) ) AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-3632
SELECT - ( - COUNT ( * ) ) AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3633
SELECT DISTINCT - 90 + + 60 * + SUM( col2 + + 35 ) FROM tab0
----
15570

skipif mysql # not compatible
query I rowsort label-3633
SELECT DISTINCT - 90 + + 60 * + SUM ( col2 + + 35 ) FROM tab0
----
15570

onlyif mysql # aggregate syntax: 
query I rowsort label-3634
SELECT DISTINCT MAX( 45 ) + COUNT( * ) AS col1 FROM tab0
----
48

skipif mysql # not compatible
query I rowsort label-3634
SELECT DISTINCT MAX ( 45 ) + COUNT ( * ) AS col1 FROM tab0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3635
SELECT ALL - COUNT( - col0 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3635
SELECT ALL - COUNT ( - col0 ) FROM tab0
----
-3

query I rowsort
SELECT 47 + - 68 FROM tab0
----
-21
-21
-21

query I rowsort
SELECT col1 * + 69 FROM tab2
----
3519
4623
5313

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3638
SELECT + COUNT( * ) + + CAST( 1 AS SIGNED ) FROM tab0
----
4

skipif mysql # not compatible
query I rowsort label-3638
SELECT + COUNT ( * ) + + CAST ( 1 AS INTEGER ) FROM tab0
----
4

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL IN ( - 60 * - 66 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3640
SELECT COUNT( * ) + MAX( DISTINCT col0 ) * - MAX( col1 ) FROM tab0
----
-7854

skipif mysql # not compatible
query I rowsort label-3640
SELECT COUNT ( * ) + MAX ( DISTINCT col0 ) * - MAX ( col1 ) FROM tab0
----
-7854

onlyif mysql # aggregate syntax: 
query I rowsort label-3641
SELECT DISTINCT + COUNT( ALL col1 ) AS col2 FROM tab2 WHERE NOT ( 52 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3641
SELECT DISTINCT + COUNT ( ALL col1 ) AS col2 FROM tab2 WHERE NOT ( 52 ) IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3642
SELECT ALL * FROM tab2 WHERE NOT col1 * CAST( NULL AS SIGNED ) + col0 = col2 + + col2 * col1
----

skipif mysql # not compatible
query III rowsort label-3642
SELECT ALL * FROM tab2 WHERE NOT col1 * CAST ( NULL AS INTEGER ) + col0 = col2 + + col2 * col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3643
SELECT 26 + - 48 DIV 32 FROM tab1
----
25
25
25

skipif mysql # not compatible
query I rowsort label-3643
SELECT 26 + - 48 / 32 FROM tab1
----
25
25
25

query I rowsort
SELECT ALL + 21 FROM tab0 WHERE NOT - 0 * + col0 NOT BETWEEN ( col2 ) AND col1
----

query III rowsort
SELECT * FROM tab2 WHERE col1 * 10 >= NULL
----

query I rowsort
SELECT col0 FROM tab0 WHERE NOT ( - 33 ) >= col2 + - 36
----
15
87
97

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN 52 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3648
SELECT ALL - 56 * - COUNT( * ) FROM tab0
----
168

skipif mysql # not compatible
query I rowsort label-3648
SELECT ALL - 56 * - COUNT ( * ) FROM tab0
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-3649
SELECT COUNT( * ) FROM tab0 WHERE ( - ( + col2 ) ) <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-3649
SELECT COUNT ( * ) FROM tab0 WHERE ( - ( + col2 ) ) <> NULL
----
0

query I rowsort
SELECT ( - 52 ) AS col0 FROM tab1
----
-52
-52
-52

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col2 = + col2 * col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - ( + 55 ) + col1 * 90 FROM tab0
----
1835
35
7235

query I rowsort
SELECT ALL col1 AS col0 FROM tab1 WHERE col2 IS NOT NULL
----
14
47
5

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN - 86 / + col0 AND - 9 + col2
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) BETWEEN - 21 / 29 AND ( - 86 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3656
SELECT - COUNT( * ) FROM tab2 WHERE NULL IN ( + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-3656
SELECT - COUNT ( * ) FROM tab2 WHERE NULL IN ( + col0 )
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col1 / 85 BETWEEN - col2 * col1 + ( 82 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3658
SELECT ALL CAST( + col2 AS SIGNED ) - col0 FROM tab0
----
-77
2
32

skipif mysql # not compatible
query I rowsort label-3658
SELECT ALL CAST ( + col2 AS INTEGER ) - col0 FROM tab0
----
-77
2
32

query I rowsort
SELECT 55 * - 79 FROM tab1
----
-4345
-4345
-4345

onlyif mysql # aggregate syntax: 
query I rowsort label-3660
SELECT + COUNT( * ) FROM tab1 WHERE NULL NOT BETWEEN + col0 * col2 AND ( - col2 ) + col0
----
0

skipif mysql # not compatible
query I rowsort label-3660
SELECT + COUNT ( * ) FROM tab1 WHERE NULL NOT BETWEEN + col0 * col2 AND ( - col2 ) + col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3661
SELECT COUNT( ALL - col2 ) * + MIN( DISTINCT 53 ) AS col0 FROM tab0
----
159

skipif mysql # not compatible
query I rowsort label-3661
SELECT COUNT ( ALL - col2 ) * + MIN ( DISTINCT 53 ) AS col0 FROM tab0
----
159

query I rowsort
SELECT ( - col1 ) * + col1 AS col0 FROM tab0
----
-1
-441
-6561

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + ( col1 ) > 2 * + 11
----
15
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3664
SELECT ALL MIN( ALL 76 ) + + 92 AS col0 FROM tab2 AS cor0
----
168

skipif mysql # not compatible
query I rowsort label-3664
SELECT ALL MIN ( ALL 76 ) + + 92 AS col0 FROM tab2 AS cor0
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-3665
SELECT + 82 * + COUNT( * ) FROM tab1 AS cor0
----
246

skipif mysql # not compatible
query I rowsort label-3665
SELECT + 82 * + COUNT ( * ) FROM tab1 AS cor0
----
246

query I rowsort
SELECT - 48 * col2 AS col0 FROM tab1 AS cor0
----
-2832
-3264
-4608

onlyif mysql # aggregate syntax: 
query I rowsort label-3667
SELECT DISTINCT COUNT( * ) AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab1 )
----
9

skipif mysql # not compatible
query I rowsort label-3667
SELECT DISTINCT COUNT ( * ) AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab1 )
----
9

query I rowsort
SELECT 48 AS col1 FROM ( tab0 cor0 CROSS JOIN tab0 )
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

query I rowsort
SELECT - 26 AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab0 )
----
9 values hashing to 47d0574274146de273829785364ada39

query I rowsort
SELECT ALL + ( + 17 ) FROM tab0
----
17
17
17

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3671
SELECT - ( 60 ) FROM tab2 WHERE NOT - 70 BETWEEN + col2 * CAST( col2 AS SIGNED ) AND 30 * CAST( - 28 AS DECIMAL )
----
-60
-60
-60

skipif mysql # not compatible
query I rowsort label-3671
SELECT - ( 60 ) FROM tab2 WHERE NOT - 70 BETWEEN + col2 * CAST ( col2 AS INTEGER ) AND 30 * CAST ( - 28 AS REAL )
----
-60
-60
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-3672
SELECT DISTINCT + COUNT( - 78 ) * - 92 FROM tab2 AS cor0
----
-276

skipif mysql # not compatible
query I rowsort label-3672
SELECT DISTINCT + COUNT ( - 78 ) * - 92 FROM tab2 AS cor0
----
-276

query I rowsort
SELECT + + 15 AS col0 FROM tab1 cor0
----
15
15
15

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( NULL ) NOT BETWEEN + 33 + col0 AND NULL
----

query I rowsort
SELECT ALL - 13 AS col1 FROM tab0 AS cor0 WHERE - col2 > ( + 63 )
----

query I rowsort
SELECT DISTINCT + col1 * - 89 FROM tab2 AS cor0
----
-4539
-5963
-6853

query I rowsort
SELECT DISTINCT + ( - 20 ) AS col2 FROM tab1 AS cor0
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3678
SELECT ALL col2 + - CAST( - 44 AS SIGNED ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
103
112
140

skipif mysql # not compatible
query I rowsort label-3678
SELECT ALL col2 + - CAST ( - 44 AS INTEGER ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
103
112
140

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 26 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 55 * ( + col0 ) * 57 AS col1 FROM tab2
----
144210
200640
235125

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3681
SELECT COUNT( * ) DIV - 69 * ( 56 ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3681
SELECT COUNT ( * ) / - 69 * ( 56 ) AS col1 FROM tab1
----
0

query I rowsort
SELECT 38 AS col2 FROM tab2 WHERE NOT ( - col1 + - col2 * col2 ) < col1 * 30
----

query I rowsort
SELECT ALL + col2 AS col2 FROM tab1 AS cor0 WHERE ( col2 + - 11 * + col0 ) > col1 + - 32
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3684
SELECT ( CAST( - ( + col1 ) AS SIGNED ) ) FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-3684
SELECT ( CAST ( - ( + col1 ) AS INTEGER ) ) FROM tab2
----
-51
-67
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 col2 FROM tab2 WHERE NULL IS NULL
----
-23
-40
-58

query I rowsort
SELECT DISTINCT 93 * + col1 FROM tab2
----
4743
6231
7161

onlyif mysql # aggregate syntax: 
query I rowsort label-3687
SELECT COUNT( * ) + - COUNT( * ) * COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-72

skipif mysql # not compatible
query I rowsort label-3687
SELECT COUNT ( * ) + - COUNT ( * ) * COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-3688
SELECT - COUNT( * ) + + 19 + + 34 FROM tab1 cor0
----
50

skipif mysql # not compatible
query I rowsort label-3688
SELECT - COUNT ( * ) + + 19 + + 34 FROM tab1 cor0
----
50

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 66 * + 68 * col2 IS NULL
----

query I rowsort
SELECT + 87 + + - 81 FROM tab2 cor0
----
6
6
6

onlyif mysql # DIV for integer division: 
query I rowsort label-3691
SELECT ALL + + 13 + - col1 - - col2 DIV + 68 FROM tab2 AS cor0
----
-38
-54
-64

skipif mysql # not compatible
query I rowsort label-3691
SELECT ALL + + 13 + - col1 - - col2 / + 68 FROM tab2 AS cor0
----
-38
-54
-64

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab2 AS cor0 WHERE NOT - 41 NOT BETWEEN ( + col0 ) AND ( NULL )
----

query I rowsort
SELECT ALL - col0 FROM tab2 AS cor0 WHERE NOT - col0 IS NULL
----
-46
-64
-75

query I rowsort
SELECT ALL col1 + + col0 AS col0 FROM tab1 AS cor0 WHERE 74 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3695
SELECT ALL MAX( DISTINCT col0 ) AS col0 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-3695
SELECT ALL MAX ( DISTINCT col0 ) AS col0 FROM tab2 AS cor0
----
75

query I rowsort
SELECT ALL col0 + col0 * + 57 FROM tab0
----
5046
5626
870

query I rowsort
SELECT DISTINCT - col0 FROM tab0 WHERE NOT ( col1 ) BETWEEN NULL AND - 73
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-3698
SELECT ALL COUNT( * ) - + + 89, MIN( - 29 ) AS col0 FROM tab1
----
-86
-29

skipif mysql # not compatible
query II rowsort label-3698
SELECT ALL COUNT ( * ) - + + 89, MIN ( - 29 ) AS col0 FROM tab1
----
-86
-29

query I rowsort
SELECT DISTINCT + 96 FROM tab1 WHERE col1 IS NOT NULL
----
96

query III rowsort
SELECT * FROM tab2 WHERE - + col2 >= + col0
----

query I rowsort
SELECT - col1 + 21 AS col0 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 3 + 54 * - col0 FROM tab0
----
-4701
-5241
-813

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 - col0, 92 + - - col1 col2 FROM tab0 AS cor0
----
-77
113
2
93
32
173

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3704
SELECT ALL + + col2 * + 74 * - CAST( + col0 AS SIGNED ) * + 70 - - col0 * - 22 FROM tab2 AS cor0
----
-13262208
-22534650
-5481452

skipif mysql # not compatible
query I rowsort label-3704
SELECT ALL + + col2 * + 74 * - CAST ( + col0 AS INTEGER ) * + 70 - - col0 * - 22 FROM tab2 AS cor0
----
-13262208
-22534650
-5481452

query I rowsort
SELECT - col1 * 74 FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( + - col2 / - + col1 * - 49 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 >= ( + 15 - + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3707
SELECT CAST( + 32 AS SIGNED ) * + col2 FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3707
SELECT CAST ( + 32 AS INTEGER ) * + col2 FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT 45 * 93 AS col0 FROM tab1
----
4185
4185
4185

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( - col1 + - - 41 * - col1 )
----

query I rowsort
SELECT 68 * + 46 FROM tab0 AS cor0 WHERE NOT ( - 55 - - col1 * - col0 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 32 <> ( + - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3712
SELECT - COUNT( * ) FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3712
SELECT - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3713
SELECT ALL MIN( - col0 ) AS col0 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-3713
SELECT ALL MIN ( - col0 ) AS col0 FROM tab1 AS cor0
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3714
SELECT + + CAST( ( col2 ) AS SIGNED ) * 61 * + col0 FROM tab2 AS cor0
----
156160
265350
64538

skipif mysql # not compatible
query I rowsort label-3714
SELECT + + CAST ( ( col2 ) AS INTEGER ) * 61 * + col0 FROM tab2 AS cor0
----
156160
265350
64538

query I rowsort
SELECT - col0 * + 28 AS col1 FROM tab0 AS cor0
----
-2436
-2716
-420

query II rowsort
SELECT - 31 * + 62, col2 AS col2 FROM tab0
----
-1922
10
-1922
47
-1922
99

query I rowsort
SELECT + 52 FROM tab1 WHERE NOT + - col2 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3718
SELECT ALL + MAX( + + col0 ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-3718
SELECT ALL + MAX ( + + col0 ) FROM tab0
----
97

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( col1 + - col2 IS NOT NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + + col1 + + col0 col2 FROM tab1 AS cor0
----
4368
510
765

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col2 + - 89 <> - col2 * - + col2 - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3722
SELECT + + COUNT( + 52 ) + - CAST( - COUNT( * ) AS SIGNED ) * MIN( - + 2 ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3722
SELECT + + COUNT ( + 52 ) + - CAST ( - COUNT ( * ) AS INTEGER ) * MIN ( - + 2 ) AS col1 FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3723
SELECT ALL - ( AVG ( + - CAST( NULL AS SIGNED ) ) ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3723
SELECT ALL - ( AVG ( + - CAST ( NULL AS INTEGER ) ) ) AS col0 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 * col1 <> 61
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3725
SELECT col0 + + + col0, CAST( NULL AS SIGNED ) / ( + - col2 ) / + col1 AS col0 FROM tab1
----
102
NULL
170
NULL
182
NULL

skipif mysql # not compatible
query II rowsort label-3725
SELECT col0 + + + col0, CAST ( NULL AS INTEGER ) / ( + - col2 ) / + col1 AS col0 FROM tab1
----
102
NULL
170
NULL
182
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3726
SELECT ( + col0 ) DIV col1 + col0 AS col1 FROM tab1 AS cor0
----
102
54
92

skipif mysql # not compatible
query I rowsort label-3726
SELECT ( + col0 ) / col1 + col0 AS col1 FROM tab1 AS cor0
----
102
54
92

query I rowsort
SELECT ALL 80 - + + col1 AS col2 FROM tab2 AS cor0
----
13
29
3

query I rowsort
SELECT col1 + - col1 AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ( col1 ) * col0 * + col0 + - 90 FROM tab0 AS cor0
----
158859
18135
9319

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab0 cor0 WHERE NOT NULL < - col1 + col2 + col1 * + - col2 / + ( col2 ) / 34
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3731
SELECT + + 14 - - 73 DIV - col0 AS col1 FROM tab2 AS cor0
----
13
13
14

skipif mysql # not compatible
query I rowsort label-3731
SELECT + + 14 - - 73 / - col0 AS col1 FROM tab2 AS cor0
----
13
13
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3732
SELECT 41 DIV - COUNT( DISTINCT + col1 ) - - 43 + + - MIN( col0 ) + - 84 * - MAX( - col2 ) AS col2 FROM tab0
----
-825

skipif mysql # not compatible
query I rowsort label-3732
SELECT 41 / - COUNT ( DISTINCT + col1 ) - - 43 + + - MIN ( col0 ) + - 84 * - MAX ( - col2 ) AS col2 FROM tab0
----
-825

query I rowsort
SELECT col2 - + + 87 - 59 FROM tab1
----
-50
-78
-87

query I rowsort
SELECT ALL + col2 FROM tab1 WHERE ( NULL ) < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( 1 ) - + col1 col2, - ( col0 ) FROM tab2
----
-50
-46
-66
-75
-76
-64

query I rowsort
SELECT - AVG ( - - 70 ) FROM tab2 WHERE col2 + 90 >= - 9 * - + col2
----
NULL

query I rowsort
SELECT DISTINCT + col1 * + - col1 + col1 - - col1 + col0 AS col2 FROM tab1
----
-117
-2024
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 78 + + col2 col2 FROM tab1 AS cor0
----
-10
-19
18

query I rowsort
SELECT - + ( + 0 ) AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - col1 FROM tab0 AS cor0 WHERE NOT NULL >= - col2 * + 20
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 15 * col1 * + col1 * + col2 + + col0 * 37 * - col2 col2 FROM tab1 AS cor0
----
-207680
-2482136
-463392

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + col0 + 75 col1 FROM tab0 AS cor0 WHERE NOT ( col1 * + 94 * + ( 17 ) ) <= + 92
----
137
172
271

query I rowsort
SELECT DISTINCT + 14 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
14

query I rowsort
SELECT + 60 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

onlyif mysql # aggregate syntax: 
query I rowsort label-3745
SELECT DISTINCT - SUM( ALL + 27 ) FROM tab0 cor0 CROSS JOIN tab0 cor1
----
-243

skipif mysql # not compatible
query I rowsort label-3745
SELECT DISTINCT - SUM ( ALL + 27 ) FROM tab0 cor0 CROSS JOIN tab0 cor1
----
-243

onlyif mysql # DIV for integer division: 
query II rowsort label-3746
SELECT + + col1 DIV - 83 col0, + 96 FROM tab2 AS cor0
----
0
96
0
96
0
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3746
SELECT + + col1 / - 83 col0, + 96 FROM tab2 AS cor0
----
0
96
0
96
0
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3747
SELECT + + ( - MIN( col2 ) ) col2 FROM tab0 cor0
----
-10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3747
SELECT + + ( - MIN ( col2 ) ) col2 FROM tab0 cor0
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3748
SELECT + + CAST( + col0 AS SIGNED ) AS col2, - col2 * - + col0 - col0 AS col1 FROM tab2 cor0
----
46
1012
64
2496
75
4275

skipif mysql # not compatible
query II rowsort label-3748
SELECT + + CAST ( + col0 AS INTEGER ) AS col2, - col2 * - + col0 - col0 AS col1 FROM tab2 cor0
----
46
1012
64
2496
75
4275

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 74 col2 FROM tab0 AS cor0
----
74

query I rowsort
SELECT col0 AS col0 FROM tab2 AS cor0 WHERE NOT - 59 * + col0 <> ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3751
SELECT DISTINCT - SUM( + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3751
SELECT DISTINCT - SUM ( + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( - ( col0 ) / - col0, col0, + col0 * + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3753
SELECT - col0 + - - col1 - 37 DIV col1 FROM tab0
----
-133
-67
66

skipif mysql # not compatible
query I rowsort label-3753
SELECT - col0 + - - col1 - 37 / col1 FROM tab0
----
-133
-67
66

query I rowsort
SELECT 1 * ( - + col2 ) + + col0 FROM tab1
----
-45
23
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3755
SELECT + col1 + + col2 * CAST( + col0 AS SIGNED ) AS col2 FROM tab1
----
4910
5020
6235

skipif mysql # not compatible
query I rowsort label-3755
SELECT + col1 + + col2 * CAST ( + col0 AS INTEGER ) AS col2 FROM tab1
----
4910
5020
6235

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3756
SELECT - col0 * col2 * + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3756
SELECT - col0 * col2 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 64, 17 col1 FROM tab1 AS cor0
----
-64
17
-64
17
-64
17

query II rowsort
SELECT DISTINCT - col0 AS col1, col1 AS col1 FROM tab2 cor0
----
-46
51
-64
77
-75
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - - ( - - col1 ) + - col2 * - + col0 + + col2 col1 FROM tab2
----
1155
2717
4533

query I rowsort
SELECT DISTINCT + ( + 99 ) FROM tab1
----
99

query I rowsort
SELECT - 48 * - 65 + col0 AS col2 FROM tab1 cor0
----
3171
3205
3211

query I rowsort
SELECT + col1 + 17 FROM tab1 AS cor0
----
22
31
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3763
SELECT DISTINCT 49 - + COUNT( * ) FROM tab1 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-3763
SELECT DISTINCT 49 - + COUNT ( * ) FROM tab1 AS cor0
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3764
SELECT - CAST( NULL AS SIGNED ) / + 2 + - col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3764
SELECT - CAST ( NULL AS INTEGER ) / + 2 + - col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 BETWEEN NULL AND col0 / col2 + - - col1
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 / + col1 > - - col1
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) >= + + col0 + + col0
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 + + 12 + + 73 NOT BETWEEN + col2 AND - ( + 8 ) + + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3769
SELECT ALL - 42 * + - COUNT( * ) col1 FROM tab1 cor0
----
126

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3769
SELECT ALL - 42 * + - COUNT ( * ) col1 FROM tab1 cor0
----
126

query I rowsort
SELECT DISTINCT - + 71 + - - 26 AS col0 FROM tab0 AS cor0
----
-45

query I rowsort
SELECT ALL 14 * + col0 + col2 AS col2 FROM tab0 cor0
----
1228
1457
257

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3772
SELECT DISTINCT 55 AS col0, CAST( - 64 AS SIGNED ) * col0 FROM tab0 AS cor0
----
55
-5568
55
-6208
55
-960

skipif mysql # not compatible
query II rowsort label-3772
SELECT DISTINCT 55 AS col0, CAST ( - 64 AS INTEGER ) * col0 FROM tab0 AS cor0
----
55
-5568
55
-6208
55
-960

query III rowsort
SELECT * FROM tab2 WHERE ( NOT ( 97 IS NULL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ( + col0 ), + col2, - col2 FROM tab2
----
9 values hashing to 07f4d5785b161b1fdf2cce5e95bba1fd

query I rowsort
SELECT ALL col1 * - col0 * - 71 FROM tab1
----
30175
303667
50694

query I rowsort
SELECT ALL - 93 * - + 82 FROM tab0, tab2 AS cor0
----
9 values hashing to 71b8faa38b4f840b213fea2756e25066

onlyif mysql # aggregate syntax: 
query I rowsort label-3777
SELECT ALL MAX( ALL 58 ) FROM tab0
----
58

skipif mysql # not compatible
query I rowsort label-3777
SELECT ALL MAX ( ALL 58 ) FROM tab0
----
58

query I rowsort
SELECT - + ( + AVG ( - col1 ) ) / - 44 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT ALL - col0 * - col0 * + col2 FROM tab0 cor0
----
10575
75690
931491

onlyif mysql # DIV for integer division: 
query I rowsort label-3780
SELECT DISTINCT + - col0 DIV 55 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-3780
SELECT DISTINCT + - col0 / 55 FROM tab1 AS cor0
----
-1
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3781
SELECT DISTINCT + - COUNT( * ) DIV + COUNT( * ) AS col1, SUM( DISTINCT col0 ) AS col0 FROM tab1 AS cor0
----
-1
227

skipif mysql # not compatible
query II rowsort label-3781
SELECT DISTINCT + - COUNT ( * ) / + COUNT ( * ) AS col1, SUM ( DISTINCT col0 ) AS col0 FROM tab1 AS cor0
----
-1
227

query III rowsort
SELECT * FROM tab2 WHERE NOT + - col0 - + + col1 BETWEEN 36 + ( - col1 ) AND 47
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - ( 57 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 520dc393896969e02a72ab6c5d92126b

query I rowsort
SELECT - - col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3785
SELECT + - MAX( col1 ) AS col1 FROM tab1 AS cor0 WHERE NOT - 33 < col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3785
SELECT + - MAX ( col1 ) AS col1 FROM tab1 AS cor0 WHERE NOT - 33 < col2
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 * - + col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3787
SELECT ALL + col0 DIV - + col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-3787
SELECT ALL + col0 / - + col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-8
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3788
SELECT ALL + ( - + CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3788
SELECT ALL + ( - + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3789
SELECT + col1 * + col2 + + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT + col1 + + + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-3789
SELECT + col1 * + col2 + + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT + col1 + + + CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3790
SELECT + col2 DIV CAST( + 64 AS SIGNED ) AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3790
SELECT + col2 / CAST ( + 64 AS INTEGER ) AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT - 12 / - 72 AS col1 FROM tab0 WHERE NOT NULL <= - col0 + col1
----

query I rowsort
SELECT ALL ( col1 ) + ( - col0 ) AS col1 FROM tab1
----
-37
-44
-80

query III rowsort
SELECT * FROM tab1 WHERE + + col2 + col2 * + + col1 IS NULL
----

query I rowsort
SELECT DISTINCT 25 + + - col2 FROM tab0
----
-22
-74
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 11 col1 FROM tab1
----
-11
-11
-11

query I rowsort
SELECT DISTINCT + + col0 AS col2 FROM tab1 WHERE NOT ( ( 20 ) ) BETWEEN NULL AND - col2
----
51
85
91

query I rowsort
SELECT DISTINCT - col1 + ( - col1 ) - - + col2 FROM tab2
----
-114
-76
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3798
SELECT - 75 + + CAST( + col2 AS SIGNED ) - + col1 AS col2 FROM tab0 AS cor0
----
-109
-86
23

skipif mysql # not compatible
query I rowsort label-3798
SELECT - 75 + + CAST ( + col2 AS INTEGER ) - + col1 AS col2 FROM tab0 AS cor0
----
-109
-86
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3799
SELECT DISTINCT + + MAX( ALL + col2 ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-3799
SELECT DISTINCT + + MAX ( ALL + col2 ) FROM tab1 AS cor0
----
96

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 / - col0 IS NULL
----

query I rowsort
SELECT + col2 AS col2 FROM tab2 WHERE - 80 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3802
SELECT DISTINCT 9 + + col2 DIV - col0 AS col2 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-3802
SELECT DISTINCT 9 + + col2 / - col0 AS col2 FROM tab2
----
9

query I rowsort
SELECT DISTINCT + - 15 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-15

query I rowsort
SELECT ALL - + col2 * + - 77 AS col1 FROM tab1 AS cor0
----
4543
5236
7392

query I rowsort
SELECT + col1 - col0 * + col1 FROM tab1 AS cor0
----
-420
-4230
-700

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3806
SELECT * FROM tab2 cor0 WHERE CAST( col2 AS SIGNED ) + + ( - col2 ) - + col1 / + - col1 >= ( NULL )
----

skipif mysql # not compatible
query III rowsort label-3806
SELECT * FROM tab2 cor0 WHERE CAST ( col2 AS INTEGER ) + + ( - col2 ) - + col1 / + - col1 >= ( NULL )
----

query I rowsort
SELECT - ( 99 ) - col2 AS col2 FROM tab2 AS cor0
----
-122
-139
-157

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3808
SELECT + 0 - - COUNT( * ) * + - CAST( 36 AS SIGNED ) FROM tab2 cor0
----
-108

skipif mysql # not compatible
query I rowsort label-3808
SELECT + 0 - - COUNT ( * ) * + - CAST ( 36 AS INTEGER ) FROM tab2 cor0
----
-108

query I rowsort
SELECT DISTINCT + col1 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
51
67
77

query I rowsort
SELECT + 5 - - col2 FROM tab2 AS cor0
----
28
45
63

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3811
SELECT DISTINCT * FROM tab0 WHERE - CAST( NULL AS SIGNED ) * 78 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3811
SELECT DISTINCT * FROM tab0 WHERE - CAST ( NULL AS INTEGER ) * 78 IS NOT NULL
----

query I rowsort
SELECT - col0 * + - col1 FROM tab2
----
2346
4928
5025

onlyif mysql # aggregate syntax: 
query II rowsort label-3813
SELECT DISTINCT - 61, COUNT( 71 ) AS col1 FROM tab0
----
-61
3

skipif mysql # not compatible
query II rowsort label-3813
SELECT DISTINCT - 61, COUNT ( 71 ) AS col1 FROM tab0
----
-61
3

query I rowsort
SELECT ALL + 68 * + col1 - + col0 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - col0 FROM tab2 WHERE + col0 IN ( col1 + 74 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col0 + - + 38 - - col2 < + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3817
SELECT DISTINCT SUM( DISTINCT - col1 ) FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-3817
SELECT DISTINCT SUM ( DISTINCT - col1 ) FROM tab1
----
-66

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - col2 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - + col1 * + + col2 AS col1 FROM tab2 AS cor0
----
-1173
-3080
-3886

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3820
SELECT ALL - ( - col0 ) + - 75 AS col2 FROM tab2 AS cor0 WHERE NOT - col0 + + + col0 BETWEEN - - CAST( - + col2 AS SIGNED ) AND col2
----

skipif mysql # not compatible
query I rowsort label-3820
SELECT ALL - ( - col0 ) + - 75 AS col2 FROM tab2 AS cor0 WHERE NOT - col0 + + + col0 BETWEEN - - CAST ( - + col2 AS INTEGER ) AND col2
----

query I rowsort
SELECT ALL + col0 AS col0 FROM tab1 WHERE NOT ( - + 74 ) = + 41 / - + 66 + + + col2
----
51
85
91

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL <> - col0
----

query I rowsort
SELECT ALL - ( 30 ) * - 37 AS col0 FROM tab1 AS cor0
----
1110
1110
1110

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 + col2 IN ( - + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - - 93 AS col0 FROM tab2 cor0
----
93

query II rowsort
SELECT ALL - col0, + ( + 45 ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + col1 + 23 FROM tab1 AS cor0
----
28
37
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3828
SELECT DISTINCT CAST( - col1 AS SIGNED ) + + col2 * col2 * - + 90 + 67 AS col1 FROM tab2
----
-144010
-302760
-47594

skipif mysql # not compatible
query I rowsort label-3828
SELECT DISTINCT CAST ( - col1 AS INTEGER ) + + col2 * col2 * - + 90 + 67 AS col1 FROM tab2
----
-144010
-302760
-47594

onlyif mysql # aggregate syntax: 
query I rowsort label-3829
SELECT ALL 73 + + COUNT( ALL 73 ) AS col1 FROM tab1
----
76

skipif mysql # not compatible
query I rowsort label-3829
SELECT ALL 73 + + COUNT ( ALL 73 ) AS col1 FROM tab1
----
76

onlyif mysql # DIV for integer division: 
query I rowsort label-3830
SELECT col0 DIV + ( - col1 ) AS col2 FROM tab1
----
-1
-17
-3

skipif mysql # not compatible
query I rowsort label-3830
SELECT col0 / + ( - col1 ) AS col2 FROM tab1
----
-1
-17
-3

query I rowsort
SELECT DISTINCT - 59 * - col2 AS col0 FROM tab2
----
1357
2360
3422

query I rowsort
SELECT 39 * + ( + 43 ) AS col1 FROM tab2
----
1677
1677
1677

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3833
SELECT ALL - COUNT( * ) DIV + COUNT( col1 ) AS col2 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3833
SELECT ALL - COUNT ( * ) / + COUNT ( col1 ) AS col2 FROM tab1 AS cor0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3834
SELECT - + col2 * col0 - + col0 DIV - col0 - - - col0 FROM tab0 AS cor0
----
-719
-956
-9699

skipif mysql # not compatible
query I rowsort label-3834
SELECT - + col2 * col0 - + col0 / - col0 - - - col0 FROM tab0 AS cor0
----
-719
-956
-9699

query I rowsort
SELECT + col2 + - + 70 AS col2 FROM tab1
----
-11
-2
26

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3836
SELECT col1 + - CAST( NULL AS SIGNED ) col2, 86 FROM tab0
----
NULL
86
NULL
86
NULL
86

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3836
SELECT col1 + - CAST ( NULL AS INTEGER ) col2, 86 FROM tab0
----
NULL
86
NULL
86
NULL
86

query I rowsort
SELECT ALL col2 + 34 AS col2 FROM tab2 AS cor0 WHERE NOT col0 > NULL
----

query I rowsort
SELECT DISTINCT + - 10 FROM tab2 AS cor0 WHERE NOT + col0 IS NULL
----
-10

query I rowsort
SELECT 76 * + col1 AS col0 FROM tab0 AS cor0
----
1596
6156
76

query I rowsort
SELECT - + 98 * + 1 AS col2 FROM tab1 AS cor0
----
-98
-98
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-3841
SELECT + - MIN( DISTINCT - 96 ) FROM tab0 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-3841
SELECT + - MIN ( DISTINCT - 96 ) FROM tab0 AS cor0
----
96

query I rowsort
SELECT + 45 * + 93 * - - col0 AS col2 FROM tab2
----
192510
267840
313875

query I rowsort
SELECT ALL + col0 FROM tab1 WHERE NOT - col1 IS NULL
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3844
SELECT - AVG ( col0 ) / CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3844
SELECT - AVG ( col0 ) / CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL

query II rowsort
SELECT col1, + col1 - - col1 + - col1 FROM tab2
----
51
51
67
67
77
77

onlyif mysql # aggregate syntax: 
query II rowsort label-3846
SELECT DISTINCT + 63, COUNT( * ) AS col1 FROM tab1 AS cor0
----
63
3

skipif mysql # not compatible
query II rowsort label-3846
SELECT DISTINCT + 63, COUNT ( * ) AS col1 FROM tab1 AS cor0
----
63
3

query II rowsort
SELECT ALL - col2, - col1 AS col2 FROM tab1 AS cor0
----
-59
-5
-68
-47
-96
-14

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 74 IS NOT NULL
----

query I rowsort
SELECT + col0 * + - 43 AS col2 FROM tab2 AS cor0
----
-1978
-2752
-3225

query II rowsort
SELECT + col2 AS col2, - 60 FROM tab2 cor0
----
23
-60
40
-60
58
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-3851
SELECT 74 * - COUNT( * ) + 31 + - SUM( col0 ) + 16 AS col2 FROM tab2
----
-360

skipif mysql # not compatible
query I rowsort label-3851
SELECT 74 * - COUNT ( * ) + 31 + - SUM ( col0 ) + 16 AS col2 FROM tab2
----
-360

query I rowsort
SELECT ALL - - 18 * + col1 FROM tab1 AS cor0
----
252
846
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3853
SELECT DISTINCT + - MAX( + - CAST( + - col0 AS SIGNED ) ) FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-3853
SELECT DISTINCT + - MAX ( + - CAST ( + - col0 AS INTEGER ) ) FROM tab0 AS cor0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3854
SELECT - COUNT( * ) * - - COUNT( * ) FROM tab0 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3854
SELECT - COUNT ( * ) * - - COUNT ( * ) FROM tab0 cor0
----
-9

query I rowsort
SELECT ALL + + ( 68 ) FROM tab2 AS cor0
----
68
68
68

query II rowsort
SELECT - ( col0 ) AS col0, ( - col2 ) - - col0 + - 86 AS col0 FROM tab2
----
-46
-63
-64
-62
-75
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-3857
SELECT ALL - col1 + 73 + + - col1 DIV + 47 AS col2 FROM tab1
----
25
59
68

skipif mysql # not compatible
query I rowsort label-3857
SELECT ALL - col1 + 73 + + - col1 / + 47 AS col2 FROM tab1
----
25
59
68

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3858
SELECT ALL col1 + + CAST( NULL AS SIGNED ), - col1 AS col1 FROM tab0
----
NULL
-1
NULL
-21
NULL
-81

skipif mysql # not compatible
query II rowsort label-3858
SELECT ALL col1 + + CAST ( NULL AS INTEGER ), - col1 AS col1 FROM tab0
----
NULL
-1
NULL
-21
NULL
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-3859
SELECT - ( + + COUNT( * ) ) FROM tab1 WHERE NULL <= ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-3859
SELECT - ( + + COUNT ( * ) ) FROM tab1 WHERE NULL <= ( NULL )
----
0

query I rowsort
SELECT DISTINCT 17 + col2 + col0 FROM tab0
----
114
213
79

query I rowsort
SELECT ALL + col2 * + - col1 AS col1 FROM tab0 AS cor0 WHERE ( + - col0 IS NOT NULL )
----
-210
-3807
-99

query I rowsort
SELECT DISTINCT + 26 + + 31 AS col0 FROM tab1 AS cor0
----
57

query I rowsort
SELECT ALL 71 - + + col2 AS col1 FROM tab0
----
-28
24
61

query I rowsort
SELECT - col0 - 57 FROM tab1
----
-108
-142
-148

onlyif mysql # DIV for integer division: 
query I rowsort label-3865
SELECT ALL + col1 DIV - + col1 AS col0 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3865
SELECT ALL + col1 / - + col1 AS col0 FROM tab1 AS cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + 77 col1, 33 AS col2 FROM tab0 AS cor0
----
77
33

query II rowsort
SELECT ALL + 99 AS col1, 1 AS col0 FROM tab0 AS cor0
----
99
1
99
1
99
1

query II rowsort
SELECT + col0 AS col0, col0 AS col2 FROM tab0 AS cor0
----
15
15
87
87
97
97

query I rowsort
SELECT - col1 * + col1 * - col0 * - col1 FROM tab1 AS cor0
----
-10625
-139944
-9447893

onlyif mysql # DIV for integer division: 
query II rowsort label-3870
SELECT DISTINCT col1 AS col2, col0 DIV + + col2 AS col0 FROM tab1 AS cor0
----
14
0
47
1
5
1

skipif mysql # not compatible
query II rowsort label-3870
SELECT DISTINCT col1 AS col2, col0 / + + col2 AS col0 FROM tab1 AS cor0
----
14
0
47
1
5
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3871
SELECT - - COUNT( DISTINCT - + 59 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3871
SELECT - - COUNT ( DISTINCT - + 59 ) FROM tab0 AS cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3872
SELECT DISTINCT + CAST( CAST( + 12 AS SIGNED ) AS SIGNED ) FROM tab1 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-3872
SELECT DISTINCT + CAST ( CAST ( + 12 AS INTEGER ) AS INTEGER ) FROM tab1 AS cor0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-3873
SELECT + COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL > NULL
----
0

skipif mysql # not compatible
query I rowsort label-3873
SELECT + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL > NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 col2, col1 FROM tab0 AS cor0
----
10
21
47
81
99
1

query I rowsort
SELECT ALL + col0 * - - 52 FROM tab1
----
2652
4420
4732

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + - col0 col2 FROM tab1
----
-2601
-7225
-8281

query II rowsort
SELECT + ( - col1 ) AS col1, col2 FROM tab1
----
-14
96
-47
68
-5
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3878
SELECT - - SUM( ALL - col0 ) col0 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3878
SELECT - - SUM ( ALL - col0 ) col0 FROM tab0 AS cor0
----
-199

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3879
SELECT DISTINCT - COUNT( * ) + - + CAST( NULL AS SIGNED ) + COUNT( * ) col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3879
SELECT DISTINCT - COUNT ( * ) + - + CAST ( NULL AS INTEGER ) + COUNT ( * ) col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + - 78 AS col0 FROM tab0 AS cor0
----
-78
-78
-78

query II rowsort
SELECT DISTINCT + 59 AS col0, - 78 FROM tab2 AS cor0
----
59
-78

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col2 AND col1 + + 90
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3883
SELECT ALL COUNT( * ) AS col1, - 63 DIV + + MIN( + + 7 ) + + + MIN( col2 ) + + ( - ( + + 55 ) ) FROM tab1 AS cor0
----
3
-5

skipif mysql # not compatible
query II rowsort label-3883
SELECT ALL COUNT ( * ) AS col1, - 63 / + + MIN ( + + 7 ) + + + MIN ( col2 ) + + ( - ( + + 55 ) ) FROM tab1 AS cor0
----
3
-5

query I rowsort
SELECT + col1 * col0 + + - col0 + + 4 AS col0 FROM tab0 AS cor0 WHERE NULL = ( NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3885
SELECT ALL COUNT( * ) col1, 59 AS col2 FROM tab0 AS cor0
----
3
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3885
SELECT ALL COUNT ( * ) col1, 59 AS col2 FROM tab0 AS cor0
----
3
59

query I rowsort
SELECT ALL - 3 + + 71 FROM tab2 AS cor0
----
68
68
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3887
SELECT DISTINCT - 17 + + - ( col1 ) + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3887
SELECT DISTINCT - 17 + + - ( col1 ) + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query II rowsort
SELECT 92 AS col0, + col1 AS col1 FROM tab2
----
92
51
92
67
92
77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3889
SELECT DISTINCT CAST( NULL AS SIGNED ) + - col2 + + - 90 / - 74 * - 44 * 97 AS col0, + col0 + - - col0 + + col2 AS col2 FROM tab0
----
NULL
184
NULL
293
NULL
77

skipif mysql # not compatible
query II rowsort label-3889
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - col2 + + - 90 / - 74 * - 44 * 97 AS col0, + col0 + - - col0 + + col2 AS col2 FROM tab0
----
NULL
184
NULL
293
NULL
77

query III rowsort
SELECT * FROM tab2 WHERE - - col2 / - col1 + + + 5 + col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col1, + 30 AS col2 FROM tab2
----
46
30
64
30
75
30

query I rowsort
SELECT ALL 99 - - col2 AS col1 FROM tab1 AS cor0
----
158
167
195

query I rowsort
SELECT + 94 + + - col1 AS col1 FROM tab0 AS cor0
----
13
73
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 16 * col0 col2 FROM tab1 AS cor0
----
-1360
-1456
-816

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3895
SELECT * FROM tab2 WHERE NOT 40 + + CAST( - col0 AS SIGNED ) + - ( + col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3895
SELECT * FROM tab2 WHERE NOT 40 + + CAST ( - col0 AS INTEGER ) + - ( + col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col0 = - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 79 AS col2 FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
79

query II rowsort
SELECT ALL + - col0 * + col0 AS col2, - col0 * - col2 * - col2 AS col1 FROM tab1 AS cor0
----
-2601
-470016
-7225
-295885
-8281
-420784

query I rowsort
SELECT DISTINCT + - 38 FROM tab0 cor0
----
-38

query I rowsort
SELECT - col2 * + 36 FROM tab2 AS cor0
----
-1440
-2088
-828

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IN ( + + 14 )
----

query I rowsort
SELECT col0 * 72 FROM tab2
----
3312
4608
5400

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 94 col0 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3904
SELECT DISTINCT 92 AS col1, + COUNT( * ) * - COUNT( * ) + - 70 - COUNT( * ) FROM tab0
----
92
-82

skipif mysql # not compatible
query II rowsort label-3904
SELECT DISTINCT 92 AS col1, + COUNT ( * ) * - COUNT ( * ) + - 70 - COUNT ( * ) FROM tab0
----
92
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3905
SELECT COUNT( DISTINCT + col0 ) * CAST( NULL AS SIGNED ) col2 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3905
SELECT COUNT ( DISTINCT + col0 ) * CAST ( NULL AS INTEGER ) col2 FROM tab0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL > + 17 + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3907
SELECT CAST( - + 24 AS SIGNED ) * + col2 AS col1 FROM tab1
----
-1416
-1632
-2304

skipif mysql # not compatible
query I rowsort label-3907
SELECT CAST ( - + 24 AS INTEGER ) * + col2 AS col1 FROM tab1
----
-1416
-1632
-2304

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 31 BETWEEN + - 54 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3909
SELECT + SUM( ALL + 16 ) FROM tab2
----
48

skipif mysql # not compatible
query I rowsort label-3909
SELECT + SUM ( ALL + 16 ) FROM tab2
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3910
SELECT ALL - SUM( DISTINCT col0 ) AS col0 FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-3910
SELECT ALL - SUM ( DISTINCT col0 ) AS col0 FROM tab1
----
-227

onlyif mysql # aggregate syntax: 
query I rowsort label-3911
SELECT ALL - COUNT( * ) * - - COUNT( * ) - - ( + COUNT( * ) ) + + COUNT( * ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3911
SELECT ALL - COUNT ( * ) * - - COUNT ( * ) - - ( + COUNT ( * ) ) + + COUNT ( * ) FROM tab2 cor0
----
-3

query I rowsort
SELECT + + 99 + - col1 AS col1 FROM tab0 cor0
----
18
78
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3913
SELECT - + 30 + - SUM( ALL + + col2 ) FROM tab0 AS cor0
----
-186

skipif mysql # not compatible
query I rowsort label-3913
SELECT - + 30 + - SUM ( ALL + + col2 ) FROM tab0 AS cor0
----
-186

query I rowsort
SELECT ALL - + col0 AS col2 FROM tab1 WHERE + - col1 BETWEEN - ( - + 84 ) * - col1 + col2 AND NULL
----

query I rowsort
SELECT DISTINCT + col0 * - col0 + + col1 FROM tab0 WHERE NOT - - col0 * - col2 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL 85 AS col1 FROM tab0 AS cor0
----
85
85
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 64 col0 FROM tab1 AS cor0
----
64
64
64

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 BETWEEN - - col2 AND + - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col0 AS col2 FROM tab0 cor0 WHERE - 14 <> NULL
----

query I rowsort
SELECT DISTINCT - col2 * + + 12 + - - col1 FROM tab1 AS cor0
----
-1138
-703
-769

query I rowsort
SELECT col2 - - 58 FROM tab0
----
105
157
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3922
SELECT ALL col2 - + + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3922
SELECT ALL col2 - + + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 * - 14 / + 38 + + col1 / + col1 / - + 58 AS col1 FROM tab2 WHERE + - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3924
SELECT + COUNT( * ) * - COUNT( DISTINCT + 90 ) AS col1 FROM tab0, tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3924
SELECT + COUNT ( * ) * - COUNT ( DISTINCT + 90 ) AS col1 FROM tab0, tab1 AS cor0
----
-9

query I rowsort
SELECT ALL 52 FROM tab1, tab2 cor0
----
9 values hashing to 7f4ae30893ab330784829711032ae599

query I rowsort
SELECT - col0 + + col0 + col1 FROM tab0
----
1
21
81

query I rowsort
SELECT DISTINCT col0 - - 97 AS col2 FROM tab2 AS cor0
----
143
161
172

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NULL > + col1
----

query II rowsort
SELECT DISTINCT - col1, col2 + col2 AS col1 FROM tab0
----
-1
198
-21
20
-81
94

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3930
SELECT ALL + ( col2 ), ( - 58 ) * 26 + 45 * 68 + - col0 + + CAST( NULL AS SIGNED ) + - col1 FROM tab1
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-3930
SELECT ALL + ( col2 ), ( - 58 ) * 26 + 45 * 68 + - col0 + + CAST ( NULL AS INTEGER ) + - col1 FROM tab1
----
59
NULL
68
NULL
96
NULL

query II rowsort
SELECT col1 * - col1, col0 FROM tab1
----
-196
51
-2209
91
-25
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3932
SELECT + + CAST( col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-3932
SELECT + + CAST ( col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
23
40
58

query II rowsort
SELECT DISTINCT + col1 * 49, - col0 AS col0 FROM tab2 AS cor0
----
2499
-46
3283
-75
3773
-64

onlyif mysql # DIV for integer division: 
query II rowsort label-3934
SELECT + col2, col0 DIV + col1 AS col0 FROM tab1 AS cor0
----
59
17
68
1
96
3

skipif mysql # not compatible
query II rowsort label-3934
SELECT + col2, col0 / + col1 AS col0 FROM tab1 AS cor0
----
59
17
68
1
96
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3935
SELECT ALL - + SUM( - col1 ) FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-3935
SELECT ALL - + SUM ( - col1 ) FROM tab1 AS cor0
----
66

query I rowsort
SELECT + - 24 FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT ALL col2 AS col2 FROM tab0 WHERE NOT + 18 <= NULL
----

query I rowsort
SELECT - ( - + 21 ) AS col0 FROM tab0
----
21
21
21

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3939
SELECT 99 * - 26 AS col2, CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
-2574
NULL
-2574
NULL
-2574
NULL

skipif mysql # not compatible
query II rowsort label-3939
SELECT 99 * - 26 AS col2, CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
-2574
NULL
-2574
NULL
-2574
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT - 41 BETWEEN NULL AND 44
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3941
SELECT - 62 DIV + col2 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3941
SELECT - 62 / + col2 FROM tab1 AS cor0
----
-1
0
0

query I rowsort
SELECT ALL ( - 99 ) FROM tab1 AS cor0
----
-99
-99
-99

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 + col1 NOT BETWEEN + 60 AND 85
----

query I rowsort
SELECT 23 AS col1 FROM tab2 AS cor0 WHERE - col2 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 26 * 64 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 + col1 > NULL
----

query I rowsort
SELECT - col1 FROM tab1 AS cor0 WHERE NULL BETWEEN + col1 * - col0 AND col0
----

query I rowsort
SELECT + col2 + 87 * col2 FROM tab0 AS cor0
----
4136
8712
880

query I rowsort
SELECT col0 * + 67 + - col1 + col2 - - col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
3077
4291
5074

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3951
SELECT DISTINCT - SUM( + + col1 ) FROM tab2 cor0
----
-195

skipif mysql # not compatible
query I rowsort label-3951
SELECT DISTINCT - SUM ( + + col1 ) FROM tab2 cor0
----
-195

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col2 <= + 91
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3953
SELECT - 86 DIV + 50 AS col0 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3953
SELECT - 86 / + 50 AS col0 FROM tab1
----
-1
-1
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3954
SELECT DISTINCT - col2 + + col0 DIV 65 + - col0 * + + 99 * + col2 AS col2 FROM tab0
----
-69842
-86139
-950795

skipif mysql # not compatible
query I rowsort label-3954
SELECT DISTINCT - col2 + + col0 / 65 + - col0 * + + 99 * + col2 AS col2 FROM tab0
----
-69842
-86139
-950795

query II rowsort
SELECT DISTINCT - col1 - 1 AS col0, 9 FROM tab2
----
-52
9
-68
9
-78
9

query I rowsort
SELECT DISTINCT col0 + + + 82 FROM tab2
----
128
146
157

query III rowsort
SELECT * FROM tab2 WHERE NULL < 54
----

query I rowsort
SELECT col2 * - 25 - - col1 + col2 + 90 + + 16 FROM tab2
----
-1219
-395
-777

onlyif mysql # aggregate syntax: 
query I rowsort label-3959
SELECT DISTINCT - COUNT( ALL + + col0 ) - MAX( ALL + 42 ) FROM tab1
----
-45

skipif mysql # not compatible
query I rowsort label-3959
SELECT DISTINCT - COUNT ( ALL + + col0 ) - MAX ( ALL + 42 ) FROM tab1
----
-45

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 >= + ( - col2 ) AND NOT NULL > NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 NOT BETWEEN ( 44 ) AND + col2 * - - col1 * - - col0 / - col0
----

query I rowsort
SELECT + col2 * + 66 FROM tab2 AS cor0
----
1518
2640
3828

onlyif mysql # DIV for integer division: 
query I rowsort label-3963
SELECT - ( - ( + 15 ) ) DIV col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3963
SELECT - ( - ( + 15 ) ) / col0 FROM tab1
----
0
0
0

query IIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab0 AS cor1 WHERE 10 - + 24 <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3965
SELECT - col0 DIV - + ( + col0 ) FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3965
SELECT - col0 / - + ( + col0 ) FROM tab2
----
1
1
1

query I rowsort
SELECT + 96 * + 80 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 690e03fe6f7e67f6bdc265eec3cdfe64

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL BETWEEN col1 * - - 71 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3968
SELECT ALL + + CAST( + col2 AS SIGNED ) DIV - col0 AS col2, CAST( - 12 AS SIGNED ) * - col1 + 75 col1 FROM tab0 AS cor0
----
-1
87
-3
1047
0
327

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3968
SELECT ALL + + CAST ( + col2 AS INTEGER ) / - col0 AS col2, CAST ( - 12 AS INTEGER ) * - col1 + 75 col1 FROM tab0 AS cor0
----
-1
87
-3
1047
0
327

query I rowsort
SELECT ALL + col0 * + 1 AS col0 FROM tab2 AS cor0
----
46
64
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 28 * + - col0 - col2 - + ( + ( - + col1 ) ) + - 68 + - col0 col0 FROM tab2 AS cor0 WHERE NULL BETWEEN ( NULL ) AND + col1 + ( - ( - 67 ) ) * + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3971
SELECT DISTINCT + ( - CAST( - col0 AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-3971
SELECT DISTINCT + ( - CAST ( - col0 AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT - 75 * col0 AS col0 FROM tab2 AS cor0
----
-3450
-4800
-5625

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3973
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - 57 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3973
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - 57 AS col2 FROM tab2
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 15 - - 58 + - col1 <> - + col2
----

query I rowsort
SELECT ALL 6 * + col0 AS col0 FROM tab1
----
306
510
546

query II rowsort
SELECT - ( col2 ), col1 AS col0 FROM tab1
----
-59
5
-68
47
-96
14

query I rowsort
SELECT - AVG ( + col0 ) FROM tab2 WHERE NULL <> - + 96
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 BETWEEN - col2 AND NULL
----

query I rowsort
SELECT DISTINCT + col1 + + 1 FROM tab0 AS cor0
----
2
22
82

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( + col1, - 29, col2 * 33 + 79 * + + ( + col1 ) / + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3981
SELECT ALL + col0 / + CAST( NULL AS SIGNED ) * + - col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3981
SELECT ALL + col0 / + CAST ( NULL AS INTEGER ) * + - col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 + ( 34 ) AS col0 FROM tab2 AS cor0
----
101
111
85

query II rowsort
SELECT + col0 * + 99 AS col0, + col2 FROM tab2 AS cor0
----
4554
23
6336
40
7425
58

query I rowsort
SELECT DISTINCT ( - col1 ) FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
-1
-21
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3985
SELECT DISTINCT - + col2 + + col1 - - 69 + - CAST( - + 41 AS SIGNED ) * + 96 * - col2 - + + col1 * - - col1 AS col2 FROM tab0 AS cor0
----
-191450
-389694
-39721

skipif mysql # not compatible
query I rowsort label-3985
SELECT DISTINCT - + col2 + + col1 - - 69 + - CAST ( - + 41 AS INTEGER ) * + 96 * - col2 - + + col1 * - - col1 AS col2 FROM tab0 AS cor0
----
-191450
-389694
-39721

query I rowsort
SELECT - col0 + + - 77 FROM tab2
----
-123
-141
-152

onlyif mysql # aggregate syntax: 
query II rowsort label-3987
SELECT DISTINCT - 75 * - COUNT( DISTINCT 91 ), 27 AS col2 FROM tab0 AS cor0
----
75
27

skipif mysql # not compatible
query II rowsort label-3987
SELECT DISTINCT - 75 * - COUNT ( DISTINCT 91 ), 27 AS col2 FROM tab0 AS cor0
----
75
27

query I rowsort
SELECT + 45 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - col2 * - col1 * 57 AS col1 FROM tab0 AS cor0
----
11970
216999
5643

query II rowsort
SELECT col2, col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
59
85
68
91
96
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3991
SELECT - + MAX( ALL + col2 ) AS col1 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-3991
SELECT - + MAX ( ALL + col2 ) AS col1 FROM tab2 AS cor0
----
-58

query II rowsort
SELECT - + ( + col1 ) AS col2, + col2 AS col2 FROM tab1 AS cor0
----
-14
96
-47
68
-5
59

query I rowsort
SELECT ( - col0 ) + + - ( - - col2 ) * - + col1 * + col1 FROM tab0
----
2
308352
4323

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 63 ) col1 FROM tab1 WHERE + col2 = col1 * col2
----

query I rowsort
SELECT ALL + col2 * - ( - - 62 ) * 98 - + 79 + - col2 + + + col0 AS col2 FROM tab0 WHERE NOT + 94 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3996
SELECT 24 + 28 DIV + - MIN( - - col2 ) AS col0 FROM tab1
----
24

skipif mysql # not compatible
query I rowsort label-3996
SELECT 24 + 28 / + - MIN ( - - col2 ) AS col0 FROM tab1
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-3997
SELECT MIN( DISTINCT + 7 ) FROM tab0
----
7

skipif mysql # not compatible
query I rowsort label-3997
SELECT MIN ( DISTINCT + 7 ) FROM tab0
----
7

query I rowsort
SELECT ALL - 83 * - + col0 AS col2 FROM tab1
----
4233
7055
7553

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 <= - col0 * + 47
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4000
SELECT + 8 DIV COUNT( * ) AS col1 FROM tab1 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-4000
SELECT + 8 / COUNT ( * ) AS col1 FROM tab1 AS cor0
----
2

query I rowsort
SELECT DISTINCT - 70 AS col0 FROM tab1 cor0
----
-70

query I rowsort
SELECT ALL - col0 + + - col0 * + col0 * - 31 FROM tab0 AS cor0
----
234552
291582
6960

query I rowsort
SELECT ALL - + ( - col1 ) AS col2 FROM tab0 cor0
----
1
21
81

query I rowsort
SELECT ALL col2 * + 28 + + - col0 AS col2 FROM tab2
----
1056
1549
598

query III rowsort
SELECT * FROM tab0 WHERE + 53 NOT BETWEEN + - col0 * 97 + + ( col0 ) + - col1 AND - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col2 * col1 + - 73 * - + 77 AS col0 FROM tab0
----
1814
5411
5522

onlyif mysql # aggregate syntax: 
query I rowsort label-4007
SELECT + 73 + - MAX( DISTINCT - col1 ) FROM tab0
----
74

skipif mysql # not compatible
query I rowsort label-4007
SELECT + 73 + - MAX ( DISTINCT - col1 ) FROM tab0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4008
SELECT DISTINCT MAX( ( + 89 ) ) FROM tab0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4008
SELECT DISTINCT MAX ( ( + 89 ) ) FROM tab0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4009
SELECT - COUNT( * ) + + COUNT( DISTINCT - col0 ) - + - 38 col0 FROM tab1
----
38

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4009
SELECT - COUNT ( * ) + + COUNT ( DISTINCT - col0 ) - + - 38 col0 FROM tab1
----
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 57 + col1 col2 FROM tab2 AS cor0
----
-6
10
20

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE + 16 IN ( col1 + - + col2 / - + col1 * + + ( col1 ) )
----

query II rowsort
SELECT ALL + col1, - col0 FROM tab0 AS cor0
----
1
-97
21
-87
81
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-4013
SELECT DISTINCT - COUNT( * ) - + COUNT( * ) FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-4013
SELECT DISTINCT - COUNT ( * ) - + COUNT ( * ) FROM tab1 AS cor0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4014
SELECT ALL COUNT( * ) * + + 59 + COUNT( * ) AS col0 FROM tab2 AS cor0
----
180

skipif mysql # not compatible
query I rowsort label-4014
SELECT ALL COUNT ( * ) * + + 59 + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
180

query I rowsort
SELECT DISTINCT + AVG ( ALL - - col0 ) FROM tab1 AS cor0 WHERE NOT NULL > NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4016
SELECT DISTINCT CAST( NULL AS SIGNED ) * - + ( - col1 ) * + col1 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4016
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - + ( - col1 ) * + col1 AS col0 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4017
SELECT CAST( + col0 AS SIGNED ) AS col1, col1 FROM tab0
----
15
81
87
21
97
1

skipif mysql # not compatible
query II rowsort label-4017
SELECT CAST ( + col0 AS INTEGER ) AS col1, col1 FROM tab0
----
15
81
87
21
97
1

query I rowsort
SELECT - + 75 + col0 AS col1 FROM tab2 WHERE NOT ( + col0 + col0 IS NULL )
----
-11
-29
0

query I rowsort
SELECT DISTINCT - ( + - col0 ) * col1 FROM tab2
----
2346
4928
5025

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4020
SELECT DISTINCT - col1 DIV - col0 col0, CAST( NULL AS SIGNED ) * + + col2 AS col1 FROM tab1
----
0
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4020
SELECT DISTINCT - col1 / - col0 col0, CAST ( NULL AS INTEGER ) * + + col2 AS col1 FROM tab1
----
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4021
SELECT MAX( ALL + 3 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4021
SELECT MAX ( ALL + 3 ) AS col2 FROM tab0
----
3

query I rowsort
SELECT 21 * - - col2 AS col0 FROM tab0
----
2079
210
987

onlyif mysql # aggregate syntax: 
query I rowsort label-4023
SELECT DISTINCT COUNT( * ) AS col2 FROM tab0 WHERE - 95 * + 4 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4023
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab0 WHERE - 95 * + 4 IS NULL
----
0

query I rowsort
SELECT DISTINCT - 78 FROM tab2 cor0 WHERE + col1 >= + 16
----
-78

query II rowsort
SELECT - col1, + 11 AS col2 FROM tab0
----
-1
11
-21
11
-81
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4026
SELECT - MIN( ALL + 35 ) AS col0 FROM tab2
----
-35

skipif mysql # not compatible
query I rowsort label-4026
SELECT - MIN ( ALL + 35 ) AS col0 FROM tab2
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-4027
SELECT MIN( - 15 ) FROM tab2
----
-15

skipif mysql # not compatible
query I rowsort label-4027
SELECT MIN ( - 15 ) FROM tab2
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4028
SELECT + + CAST( NULL AS SIGNED ) / + COUNT( * ) / 87 / + COUNT( * ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4028
SELECT + + CAST ( NULL AS INTEGER ) / + COUNT ( * ) / 87 / + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - - 59 + - ( + + col2 ) AS col2 FROM tab1 AS cor0
----
-37
-9
0

query II rowsort
SELECT - col0, 51 AS col1 FROM tab0 AS cor0
----
-15
51
-87
51
-97
51

query I rowsort
SELECT DISTINCT + - ( - 37 ) FROM tab2 AS cor0
----
37

query I rowsort
SELECT ALL 35 + - col2 + + col0 FROM tab0 AS cor0
----
112
3
33

query I rowsort
SELECT DISTINCT + col0 + + + col0 AS col2 FROM tab0 AS cor0
----
174
194
30

query I rowsort
SELECT ALL col0 + - 64 FROM tab1
----
-13
21
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4035
SELECT 94 * + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4035
SELECT 94 * + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT ALL + ( ( 76 ) ) + 37, + col0 + - - 42 AS col1 FROM tab1
----
113
127
113
133
113
93

query II rowsort
SELECT DISTINCT ( col1 ), col2 AS col0 FROM tab2
----
51
23
67
58
77
40

query I rowsort
SELECT col2 + col1 AS col1 FROM tab0 WHERE - + col0 IS NOT NULL
----
100
128
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4039
SELECT + - CAST( + 73 AS SIGNED ) + - - COUNT( * ) + + SUM( ( col0 ) ) FROM tab2 AS cor0
----
115

skipif mysql # not compatible
query I rowsort label-4039
SELECT + - CAST ( + 73 AS INTEGER ) + - - COUNT ( * ) + + SUM ( ( col0 ) ) FROM tab2 AS cor0
----
115

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4040
SELECT + - CAST( NULL AS SIGNED ) + - - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4040
SELECT + - CAST ( NULL AS INTEGER ) + - - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + 86 + + col2 * + col2 AS col2 FROM tab2 AS cor0
----
1514
3278
443

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 26 < + col2
----
64
77
40
75
67
58

query I rowsort
SELECT - ( - - 82 ) FROM tab1 AS cor0
----
-82
-82
-82

query I rowsort
SELECT DISTINCT - 99 FROM tab1 WHERE NOT + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4045
SELECT COUNT( DISTINCT 58 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-4045
SELECT COUNT ( DISTINCT 58 ) FROM tab2
----
1

query III rowsort
SELECT * FROM tab0 WHERE + - col1 / - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4047
SELECT ALL col2 - col1 + + ( - - col0 ) * + col2 + + CAST( NULL AS SIGNED ) / + CAST( NULL AS DECIMAL ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4047
SELECT ALL col2 - col1 + + ( - - col0 ) * + col2 + + CAST ( NULL AS INTEGER ) / + CAST ( NULL AS REAL ) FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4048
SELECT - 46 - - + COUNT( * ) + - COUNT( - - 52 ) FROM tab0 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-4048
SELECT - 46 - - + COUNT ( * ) + - COUNT ( - - 52 ) FROM tab0 AS cor0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-4049
SELECT + + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) < - col2
----
0

skipif mysql # not compatible
query I rowsort label-4049
SELECT + + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) < - col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4050
SELECT DISTINCT + CAST( col0 AS SIGNED ) * - col0 AS col1, ( - 50 ) + ( 38 ) FROM tab2 AS cor0
----
-2116
-12
-4096
-12
-5625
-12

skipif mysql # not compatible
query II rowsort label-4050
SELECT DISTINCT + CAST ( col0 AS INTEGER ) * - col0 AS col1, ( - 50 ) + ( 38 ) FROM tab2 AS cor0
----
-2116
-12
-4096
-12
-5625
-12

query I rowsort
SELECT ALL - 31 * 6 * + + col2 FROM tab1 AS cor0
----
-10974
-12648
-17856

query I rowsort
SELECT + col1 * - - 42 AS col2 FROM tab2 AS cor0
----
2142
2814
3234

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4053
SELECT ALL - 87 * + col1 + + col0 AS col0 FROM tab0 AS cor0 WHERE NOT ( 65 ) NOT IN ( CAST( - - col1 AS SIGNED ), 55, - col2, - col0 + - - 13 )
----

skipif mysql # not compatible
query I rowsort label-4053
SELECT ALL - 87 * + col1 + + col0 AS col0 FROM tab0 AS cor0 WHERE NOT ( 65 ) NOT IN ( CAST ( - - col1 AS INTEGER ), 55, - col2, - col0 + - - 13 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4054
SELECT ALL - COUNT( * ) * - - 2 AS col0 FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-4054
SELECT ALL - COUNT ( * ) * - - 2 AS col0 FROM tab2 AS cor0
----
-6

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL < - col0 * + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4056
SELECT DISTINCT - 16 DIV - - 97 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4056
SELECT DISTINCT - 16 / - - 97 AS col2 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4057
SELECT - MAX( 94 ) AS col2 FROM tab0
----
-94

skipif mysql # not compatible
query I rowsort label-4057
SELECT - MAX ( 94 ) AS col2 FROM tab0
----
-94

onlyif mysql # aggregate syntax: 
query II rowsort label-4058
SELECT ALL + 0 AS col2, - MIN( - col0 ) AS col0 FROM tab2
----
0
75

skipif mysql # not compatible
query II rowsort label-4058
SELECT ALL + 0 AS col2, - MIN ( - col0 ) AS col0 FROM tab2
----
0
75

query II rowsort
SELECT + col1 * + + col2, col2 AS col1 FROM tab1
----
1344
96
295
59
3196
68

query II rowsort
SELECT col1, 61 * col0 + - + col1 FROM tab0 AS cor0
----
1
5916
21
5286
81
834

query II rowsort
SELECT - - col0, - col0 AS col0 FROM tab0 AS cor0
----
15
-15
87
-87
97
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4062
SELECT - - ( + - ( + COUNT( * ) ) ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4062
SELECT - - ( + - ( + COUNT ( * ) ) ) AS col0 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT + - col2 * + - 58 FROM tab2 cor0
----
1334
2320
3364

query I rowsort
SELECT ALL + + col2 * 47 FROM tab1 cor0
----
2773
3196
4512

query III rowsort
SELECT * FROM tab2 WHERE NOT - 20 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4066
SELECT ALL - + 32 / - + CAST( NULL AS DECIMAL ) * + col2 + + col2 * + - 84 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4066
SELECT ALL - + 32 / - + CAST ( NULL AS REAL ) * + col2 + + col2 * + - 84 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 26 + - + 49 AS col0 FROM tab2 AS cor0
----
-23
-23
-23

query I rowsort
SELECT DISTINCT + col0 * - col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-1058
-2560
-4350

query I rowsort
SELECT - col2 + ( - - col0 ) FROM tab2 AS cor0
----
17
23
24

query I rowsort
SELECT DISTINCT - AVG ( - - col1 ) FROM tab2 AS cor0 WHERE NULL >= NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 82 <> - - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 14 + + col2 AS col1 FROM tab1 AS cor0
----
45
54
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4073
SELECT - 96 + COUNT( * ) AS col1 FROM tab0
----
-93

skipif mysql # not compatible
query I rowsort label-4073
SELECT - 96 + COUNT ( * ) AS col1 FROM tab0
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-4074
SELECT ( + ( - COUNT( * ) ) ) AS col2 FROM tab2, tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4074
SELECT ( + ( - COUNT ( * ) ) ) AS col2 FROM tab2, tab0 AS cor0
----
-9

query I rowsort
SELECT ALL + 56 + - - 42 + - col2 FROM tab1
----
2
30
39

query I rowsort
SELECT ALL - 22 AS col0 FROM tab0
----
-22
-22
-22

query I rowsort
SELECT - 59 - + - col2 AS col2 FROM tab1 AS cor0
----
0
37
9

query I rowsort
SELECT + 74 * col1 AS col2 FROM tab1
----
1036
3478
370

query I rowsort
SELECT + col1 + col1 * + 80 FROM tab1 WHERE NOT ( NULL ) = col1 * 6 + + col0
----

query I rowsort
SELECT DISTINCT - 60 + col2 AS col1 FROM tab1
----
-1
36
8

query I rowsort
SELECT - 8 * + col1 AS col0 FROM tab1
----
-112
-376
-40

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) <= col1 + - 14
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4083
SELECT DISTINCT * FROM tab1 WHERE NOT 74 * - ( CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) ) + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4083
SELECT DISTINCT * FROM tab1 WHERE NOT 74 * - ( CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) ) + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4084
SELECT SUM( + 24 ) col2 FROM tab0
----
72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4084
SELECT SUM ( + 24 ) col2 FROM tab0
----
72

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col0 * + col0 - - 4 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col1 + - ( + col2 ) AS col1 FROM tab2
----
-117
-125
-74

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 43 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 80 NOT BETWEEN 9 AND ( ( - col1 ) )
----

query III rowsort
SELECT * FROM tab1 WHERE ( 2 ) + - col2 IN ( + col2 )
----

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN NULL AND - col2 - col0 * + col2
----

query I rowsort
SELECT col2 FROM tab2 WHERE NOT - col1 * col2 NOT BETWEEN NULL AND col2 * 63
----

query I rowsort
SELECT col0 + - 52 FROM tab1
----
-1
33
39

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4093
SELECT DISTINCT * FROM tab1 WHERE NOT 59 NOT IN ( - ( + 22 ) + - col0 * + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-4093
SELECT DISTINCT * FROM tab1 WHERE NOT 59 NOT IN ( - ( + 22 ) + - col0 * + CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT - col2 * 53 + col2 FROM tab0
----
-2444
-5148
-520

query I rowsort
SELECT DISTINCT + 24 * col0 + col0 FROM tab2
----
1150
1600
1875

query III rowsort
SELECT ALL * FROM tab0 WHERE - col0 + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 27 * 35 col2 FROM tab0 WHERE NOT - col1 IS NOT NULL
----

query I rowsort
SELECT ( - col0 ) * col1 FROM tab0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 * col2 + col2 AS col1 FROM tab1
----
3540
4692
9312

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 / - 80 - col0 NOT IN ( - 18 )
----

query I rowsort
SELECT - 57 - col0 * + 10 FROM tab2
----
-517
-697
-807

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col1 ) + - col0 * - 34 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 2 + ( col2 ) FROM tab2
----
25
42
60

onlyif mysql # aggregate syntax: 
query I rowsort label-4104
SELECT - COUNT( * ) - - 88 AS col0 FROM tab1
----
85

skipif mysql # not compatible
query I rowsort label-4104
SELECT - COUNT ( * ) - - 88 AS col0 FROM tab1
----
85

query I rowsort
SELECT ALL + 39 AS col2 FROM tab2 WHERE NULL NOT BETWEEN + col2 AND ( NULL )
----

query I rowsort
SELECT DISTINCT + 72 + - 96 AS col2 FROM tab1
----
-24

query I rowsort
SELECT + col1 + 40 AS col0 FROM tab2
----
107
117
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4108
SELECT + SUM( ALL 35 ) AS col2 FROM tab2
----
105

skipif mysql # not compatible
query I rowsort label-4108
SELECT + SUM ( ALL 35 ) AS col2 FROM tab2
----
105

query I rowsort
SELECT col0 + + col1 FROM tab1 WHERE NOT ( NULL ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4110
SELECT DISTINCT 81 + COUNT( * ) FROM tab1
----
84

skipif mysql # not compatible
query I rowsort label-4110
SELECT DISTINCT 81 + COUNT ( * ) FROM tab1
----
84

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab2 WHERE NOT + col1 * - col2 = NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col1 < ( NULL )
----

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col1 * + 2 + 70 AND + 71
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4114
SELECT DISTINCT + ( 67 ) DIV + COUNT( 80 ) FROM tab0 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-4114
SELECT DISTINCT + ( 67 ) / + COUNT ( 80 ) FROM tab0 AS cor0
----
22

query I rowsort
SELECT DISTINCT + 28 * - 10 AS col0 FROM tab1 AS cor0
----
-280

onlyif mysql # aggregate syntax: 
query I rowsort label-4116
SELECT + ( COUNT( * ) ) * 5 + 91 AS col2 FROM tab0 AS cor0
----
106

skipif mysql # not compatible
query I rowsort label-4116
SELECT + ( COUNT ( * ) ) * 5 + 91 AS col2 FROM tab0 AS cor0
----
106

query I rowsort
SELECT col2 * - 36 + - col1 AS col2 FROM tab2
----
-1517
-2155
-879

query III rowsort
SELECT ALL * FROM tab2 WHERE + 32 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4119
SELECT COUNT( + col2 ) FROM tab1 WHERE + col0 + - 96 * col0 NOT BETWEEN NULL AND ( 68 )
----
0

skipif mysql # not compatible
query I rowsort label-4119
SELECT COUNT ( + col2 ) FROM tab1 WHERE + col0 + - 96 * col0 NOT BETWEEN NULL AND ( 68 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4120
SELECT DISTINCT * FROM tab0 WHERE NOT CAST( NULL AS SIGNED ) IN ( CAST( NULL AS SIGNED ) / col0 )
----

skipif mysql # not compatible
query III rowsort label-4120
SELECT DISTINCT * FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) IN ( CAST ( NULL AS INTEGER ) / col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4121
SELECT + COUNT( col2 ) * CAST( + 62 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
186

skipif mysql # not compatible
query I rowsort label-4121
SELECT + COUNT ( col2 ) * CAST ( + 62 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
186

onlyif mysql # aggregate syntax: 
query I rowsort label-4122
SELECT DISTINCT MIN( ALL + col1 ) AS col1 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-4122
SELECT DISTINCT MIN ( ALL + col1 ) AS col1 FROM tab2 AS cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4123
SELECT DISTINCT + MIN( ALL - 36 ) * COUNT( * ) AS col1 FROM tab2 AS cor0
----
-108

skipif mysql # not compatible
query I rowsort label-4123
SELECT DISTINCT + MIN ( ALL - 36 ) * COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-108

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4124
SELECT - 92 DIV SUM( ALL col0 ) col2 FROM tab1 cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4124
SELECT - 92 / SUM ( ALL col0 ) col2 FROM tab1 cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4125
SELECT ALL * FROM tab0 AS cor0 WHERE col0 BETWEEN col0 * - CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-4125
SELECT ALL * FROM tab0 AS cor0 WHERE col0 BETWEEN col0 * - CAST ( NULL AS INTEGER ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4126
SELECT ALL MAX( DISTINCT col1 ) + MAX( + col0 + col2 * - 25 ) FROM tab0 AS cor0
----
-82

skipif mysql # not compatible
query I rowsort label-4126
SELECT ALL MAX ( DISTINCT col1 ) + MAX ( + col0 + col2 * - 25 ) FROM tab0 AS cor0
----
-82

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + 80 - - col0 ) BETWEEN 89 AND + col0 + + 28
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4128
SELECT MAX( 46 ) col2 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4128
SELECT MAX ( 46 ) col2 FROM tab2 AS cor0
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4129
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - AVG ( col2 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4129
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - AVG ( col2 ) FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4130
SELECT ALL - col1 - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4130
SELECT ALL - col1 - CAST ( NULL AS REAL ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col1 + 36 FROM tab2 AS cor0
----
-15
-31
-41

onlyif mysql # DIV for integer division: 
query I rowsort label-4132
SELECT ALL - + col1 DIV + col1 + col2 AS col0 FROM tab1 AS cor0
----
58
67
95

skipif mysql # not compatible
query I rowsort label-4132
SELECT ALL - + col1 / + col1 + col2 AS col0 FROM tab1 AS cor0
----
58
67
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4133
SELECT ALL col2 AS col2 FROM tab1 WHERE 93 NOT BETWEEN col1 + CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-4133
SELECT ALL col2 AS col2 FROM tab1 WHERE 93 NOT BETWEEN col1 + CAST ( NULL AS INTEGER ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4134
SELECT - COUNT( * ) + + COUNT( * ) * COUNT( * ) AS col2 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-4134
SELECT - COUNT ( * ) + + COUNT ( * ) * COUNT ( * ) AS col2 FROM tab2
----
6

query I rowsort
SELECT DISTINCT + 0 AS col1 FROM tab0 WHERE 12 * + col2 IN ( 19 )
----

query I rowsort
SELECT - col1 * - 89 + col0 AS col2 FROM tab0
----
186
1956
7224

onlyif mysql # aggregate syntax: 
query I rowsort label-4137
SELECT ALL 78 + - - ( COUNT( * ) ) * 76 FROM tab0
----
306

skipif mysql # not compatible
query I rowsort label-4137
SELECT ALL 78 + - - ( COUNT ( * ) ) * 76 FROM tab0
----
306

onlyif mysql # DIV for integer division: 
query I rowsort label-4138
SELECT ALL - 72 DIV + - col1 - - 94 FROM tab1
----
108
95
99

skipif mysql # not compatible
query I rowsort label-4138
SELECT ALL - 72 / + - col1 - - 94 FROM tab1
----
108
95
99

query I rowsort
SELECT DISTINCT 36 - + - col1 * - col2 FROM tab0 AS cor0
----
-174
-3771
-63

query I rowsort
SELECT DISTINCT col2 * + 54 * col1 AS col1 FROM tab2 AS cor0
----
166320
209844
63342

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col1 * col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4142
SELECT + 26 * COUNT( * ) + + 62 * COUNT( * ) AS col1 FROM tab1 cor0
----
264

skipif mysql # not compatible
query I rowsort label-4142
SELECT + 26 * COUNT ( * ) + + 62 * COUNT ( * ) AS col1 FROM tab1 cor0
----
264

query I rowsort
SELECT DISTINCT - ( - + 89 ) AS col0 FROM tab0
----
89

query I rowsort
SELECT 9 FROM tab1 cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) NOT IN ( + 44 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4145
SELECT 80 * - - COUNT( * ) FROM tab0
----
240

skipif mysql # not compatible
query I rowsort label-4145
SELECT 80 * - - COUNT ( * ) FROM tab0
----
240

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 12 * + + col1 col2 FROM tab2 AS cor0
----
612
804
924

query I rowsort
SELECT DISTINCT - - 83 AS col1 FROM tab0 AS cor0
----
83

query I rowsort
SELECT ALL + ( - + 62 ) FROM tab1 AS cor0
----
-62
-62
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-4149
SELECT MAX( DISTINCT + 32 ) FROM tab1 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-4149
SELECT MAX ( DISTINCT + 32 ) FROM tab1 AS cor0
----
32

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 * - - col0 + 4 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT 87, col2 AS col0 FROM tab2 AS cor0
----
87
23
87
40
87
58

query I rowsort
SELECT DISTINCT 68 * - - ( col1 ) - col2 FROM tab0 AS cor0
----
-31
1418
5461

onlyif mysql # aggregate syntax: 
query I rowsort label-4153
SELECT ALL - - 26 * - ( + + ( - COUNT( 24 ) ) ) FROM tab2 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-4153
SELECT ALL - - 26 * - ( + + ( - COUNT ( 24 ) ) ) FROM tab2 AS cor0
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4154
SELECT ALL + CAST( + 90 AS SIGNED ) FROM tab1 AS cor0
----
90
90
90

skipif mysql # not compatible
query I rowsort label-4154
SELECT ALL + CAST ( + 90 AS INTEGER ) FROM tab1 AS cor0
----
90
90
90

query I rowsort
SELECT DISTINCT + col0 * - col1 - 52 * - 87 FROM tab2 WHERE NOT NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4156
SELECT ALL MIN( DISTINCT + col1 ) AS col0 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-4156
SELECT ALL MIN ( DISTINCT + col1 ) AS col0 FROM tab2
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4157
SELECT + 65 DIV - - COUNT( * ) AS col0 FROM tab2
----
21

skipif mysql # not compatible
query I rowsort label-4157
SELECT + 65 / - - COUNT ( * ) AS col0 FROM tab2
----
21

query I rowsort
SELECT 56 * + - 61 AS col1 FROM tab1
----
-3416
-3416
-3416

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 64 <> ( - + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4160
SELECT - CAST( NULL AS SIGNED ) * COUNT( * ) + + COUNT( * ) FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4160
SELECT - CAST ( NULL AS INTEGER ) * COUNT ( * ) + + COUNT ( * ) FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4161
SELECT ALL - COUNT( * ) * MAX( ALL - + col0 ) AS col1 FROM tab2
----
138

skipif mysql # not compatible
query I rowsort label-4161
SELECT ALL - COUNT ( * ) * MAX ( ALL - + col0 ) AS col1 FROM tab2
----
138

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col2 * + col2 ) IN ( - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-4163
SELECT DISTINCT + + COUNT( * ) * + COUNT( * ), 57 + - 16 AS col1 FROM tab0 AS cor0
----
9
41

skipif mysql # not compatible
query II rowsort label-4163
SELECT DISTINCT + + COUNT ( * ) * + COUNT ( * ), 57 + - 16 AS col1 FROM tab0 AS cor0
----
9
41

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL > - col1 + + 98
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( col2 ) IN ( col0 / - col2 * col2 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( - col2 ) IN ( 34 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + - 92 + - 4 + + - col0 ) NOT BETWEEN NULL AND - 55
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4168
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN + - 27 AND - CAST( + - col0 AS SIGNED ) * col2
----

skipif mysql # not compatible
query III rowsort label-4168
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN + - 27 AND - CAST ( + - col0 AS INTEGER ) * col2
----

query I rowsort
SELECT col1 + + 62 FROM tab1
----
109
67
76

query I rowsort
SELECT + - col1 + 16 AS col1 FROM tab0 AS cor0
----
-5
-65
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4171
SELECT ALL - ( 88 ) / CAST( NULL AS SIGNED ) * - col1 * + + 47 * + 74 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4171
SELECT ALL - ( 88 ) / CAST ( NULL AS INTEGER ) * - col1 * + + 47 * + 74 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 * + + col2 AS col0 FROM tab0 AS cor0
----
-210
-3807
-99

query I rowsort
SELECT ALL + col0 AS col1 FROM tab0 AS cor0 WHERE NOT - 32 * - - col0 NOT IN ( + + col1 / 97 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4174
SELECT ALL + 28 DIV - col2 col2 FROM tab0 AS cor0
----
-2
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4174
SELECT ALL + 28 / - col2 col2 FROM tab0 AS cor0
----
-2
0
0

query I rowsort
SELECT ALL - col1 - + col2 - + col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4176
SELECT ALL CAST( - 90 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-90
-90
-90

skipif mysql # not compatible
query I rowsort label-4176
SELECT ALL CAST ( - 90 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-90
-90
-90

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4177
SELECT * FROM tab1 AS cor0 WHERE CAST( + 72 AS SIGNED ) * + col2 IS NULL
----

skipif mysql # not compatible
query III rowsort label-4177
SELECT * FROM tab1 AS cor0 WHERE CAST ( + 72 AS INTEGER ) * + col2 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 72 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4179
SELECT + SUM( DISTINCT + 3 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4179
SELECT + SUM ( DISTINCT + 3 ) FROM tab2
----
3

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + col0 / - col2 + - col1 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + AVG ( DISTINCT + col0 ) col0 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT col0 + col2 + + - col1 FROM tab2
----
18
27
66

query I rowsort
SELECT DISTINCT 2 - + 38 FROM tab1
----
-36

query III rowsort
SELECT * FROM tab2 WHERE ( col0 + + + 99 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE NULL <> + - 73 + - - col1
----

query I rowsort
SELECT DISTINCT - col0 - - 66 FROM tab1
----
-19
-25
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 94 + + 46 * + col0 col2 FROM tab1
----
2252
3816
4092

onlyif mysql # aggregate syntax: 
query I rowsort label-4188
SELECT ALL + 61 + + COUNT( * ) col2 FROM tab1
----
64

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4188
SELECT ALL + 61 + + COUNT ( * ) col2 FROM tab1
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4189
SELECT DISTINCT col0 FROM tab0 WHERE ( ( - CAST( col1 AS SIGNED ) ) <> col2 )
----
15
87
97

skipif mysql # not compatible
query I rowsort label-4189
SELECT DISTINCT col0 FROM tab0 WHERE ( ( - CAST ( col1 AS INTEGER ) ) <> col2 )
----
15
87
97

query I rowsort
SELECT ( + ( 95 ) ) AS col2 FROM tab2
----
95
95
95

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4191
SELECT DISTINCT * FROM tab0 WHERE - CAST( 0 AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4191
SELECT DISTINCT * FROM tab0 WHERE - CAST ( 0 AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE col2 IN ( + 32 )
----

query II rowsort
SELECT DISTINCT col0, + col1 AS col2 FROM tab1 cor0
----
51
14
85
5
91
47

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( 70 ) BETWEEN NULL AND col1
----
46
51
23
75
67
58

query I rowsort
SELECT ALL - + 82 AS col1 FROM tab1 AS cor0 WHERE NOT col0 - col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT 31 <> ( NULL )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - + col1 * + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 JOIN tab1 AS cor1 ON NULL BETWEEN 7 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 * - 51 / + 16 NOT BETWEEN col2 * - - 69 * col2 - + col0 * + 31 AND ( col0 + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4200
SELECT ALL * FROM tab2 AS cor0 WHERE + CAST( NULL AS SIGNED ) > + CAST( + + 20 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4200
SELECT ALL * FROM tab2 AS cor0 WHERE + CAST ( NULL AS INTEGER ) > + CAST ( + + 20 AS INTEGER )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 45 * + - 72 NOT IN ( - col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + + 21 ) + 37 + - 73 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4203
SELECT - SUM( ALL 50 ) FROM tab1 AS cor0
----
-150

skipif mysql # not compatible
query I rowsort label-4203
SELECT - SUM ( ALL 50 ) FROM tab1 AS cor0
----
-150

onlyif mysql # aggregate syntax: 
query I rowsort label-4204
SELECT DISTINCT COUNT( * ) AS col0 FROM tab2 WHERE NOT - + 9 / 79 * + - 12 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4204
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab2 WHERE NOT - + 9 / 79 * + - 12 IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT col0 * 71 * - col2 FROM tab2
----
-181760
-308850
-75118

onlyif mysql # aggregate syntax: 
query II rowsort label-4206
SELECT DISTINCT COUNT( * ) AS col0, + 95 FROM tab1
----
3
95

skipif mysql # not compatible
query II rowsort label-4206
SELECT DISTINCT COUNT ( * ) AS col0, + 95 FROM tab1
----
3
95

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <> + - col0
----

query II rowsort
SELECT DISTINCT col2, col0 AS col2 FROM tab0
----
10
87
47
15
99
97

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 58 + col0 BETWEEN ( col0 ) AND ( NULL )
----

query I rowsort
SELECT ALL col2 + 10 AS col0 FROM tab1 AS cor0
----
106
69
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4211
SELECT DISTINCT + - CAST( NULL AS SIGNED ) + + + COUNT( * ) col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4211
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) + + + COUNT ( * ) col2 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + 73 ) + + col1 * + 0 + 38 col1 FROM tab1 AS cor0
----
111
111
111

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4213
SELECT SUM( ALL - CAST( col0 AS SIGNED ) ) + MIN( + + 13 ) AS col1 FROM tab1
----
-214

skipif mysql # not compatible
query I rowsort label-4213
SELECT SUM ( ALL - CAST ( col0 AS INTEGER ) ) + MIN ( + + 13 ) AS col1 FROM tab1
----
-214

query I rowsort
SELECT ALL + 12 AS col1 FROM tab2, tab0 AS cor0 WHERE - 47 * - - 70 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) < - 75
----

query I rowsort
SELECT DISTINCT 78 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( + ( 21 ) ) IS NULL
----
78

query I rowsort
SELECT + 53 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to fede6033dee346dbd272085c05724fda

onlyif mysql # aggregate syntax: 
query I rowsort label-4218
SELECT - SUM( DISTINCT - col0 ) FROM tab2 AS cor0 WHERE 51 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4218
SELECT - SUM ( DISTINCT - col0 ) FROM tab2 AS cor0 WHERE 51 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4219
SELECT DISTINCT COUNT( * ) + - - COUNT( * ) * - COUNT( * ) col1 FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4219
SELECT DISTINCT COUNT ( * ) + - - COUNT ( * ) * - COUNT ( * ) col1 FROM tab1 AS cor0
----
-6

query I rowsort
SELECT + col2 + + - 86 FROM tab0 AS cor0
----
-39
-76
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 51 + - col2 col2 FROM tab2
----
-7
11
28

query I rowsort
SELECT ALL + 12 - + col2 FROM tab0
----
-35
-87
2

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL <= - + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4224
SELECT ALL + ( - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0 WHERE NULL > - col0
----

skipif mysql # not compatible
query I rowsort label-4224
SELECT ALL + ( - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0 WHERE NULL > - col0
----

query I rowsort
SELECT + 7 * col1 * col0 AS col1 FROM tab2 AS cor0
----
16422
34496
35175

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4226
SELECT - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT + ( + + col1 ) = CAST( - 72 AS SIGNED )
----
-3

skipif mysql # not compatible
query I rowsort label-4226
SELECT - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT + ( + + col1 ) = CAST ( - 72 AS INTEGER )
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-4227
SELECT DISTINCT COUNT( * ), 77 * 29 AS col1 FROM tab1
----
3
2233

skipif mysql # not compatible
query II rowsort label-4227
SELECT DISTINCT COUNT ( * ), 77 * 29 AS col1 FROM tab1
----
3
2233

query I rowsort
SELECT DISTINCT - col0 FROM tab1 WHERE + + col0 / + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4229
SELECT DISTINCT - MAX( - - col0 ) AS col0 FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-4229
SELECT DISTINCT - MAX ( - - col0 ) AS col0 FROM tab1
----
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-4230
SELECT - - 33 DIV - ( - col0 ) col0 FROM tab0 AS cor0 WHERE NOT + 66 IS NULL
----
0
0
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4230
SELECT - - 33 / - ( - col0 ) col0 FROM tab0 AS cor0 WHERE NOT + 66 IS NULL
----
0
0
2

onlyif mysql # aggregate syntax: 
query II rowsort label-4231
SELECT - 32, - 64 - - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-32
-61

skipif mysql # not compatible
query II rowsort label-4231
SELECT - 32, - 64 - - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-32
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4232
SELECT - + CAST( + - MIN( ALL - + 59 ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-4232
SELECT - + CAST ( + - MIN ( ALL - + 59 ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-59

query I rowsort
SELECT - col2 AS col1 FROM tab0 AS cor0 WHERE NOT + 14 + - - col0 <= NULL
----

query I rowsort
SELECT - col1 + - col1 * 96 AS col2 FROM tab1 AS cor0
----
-1358
-4559
-485

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col1 + ( 52 ) IS NOT NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4236
SELECT col1 + - + col2 + + + col2 + + - col1 DIV col1 AS col2 FROM tab0
----
0
20
80

skipif mysql # not compatible
query I rowsort label-4236
SELECT col1 + - + col2 + + + col2 + + - col1 / col1 AS col2 FROM tab0
----
0
20
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4237
SELECT MIN( 14 ) AS col2, CAST( NULL AS SIGNED ) * + 67 / + + 65 AS col0 FROM tab1
----
14
NULL

skipif mysql # not compatible
query II rowsort label-4237
SELECT MIN ( 14 ) AS col2, CAST ( NULL AS INTEGER ) * + 67 / + + 65 AS col0 FROM tab1
----
14
NULL

query I rowsort
SELECT + 85 * 7 FROM tab2
----
595
595
595

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 * - + col2 * - + col0 * + col1 IS NULL
----

query II rowsort
SELECT DISTINCT col0 AS col1, + 70 AS col2 FROM tab1
----
51
70
85
70
91
70

query II rowsort
SELECT ALL + 43, + col1 * - + col0 * - col2 + + + 95 AS col1 FROM tab0
----
43
18365
43
57200
43
9698

onlyif mysql # aggregate syntax: 
query I rowsort label-4242
SELECT - MIN( DISTINCT - + 67 ) * COUNT( * ) + - + COUNT( * ) AS col2 FROM tab0 cor0
----
198

skipif mysql # not compatible
query I rowsort label-4242
SELECT - MIN ( DISTINCT - + 67 ) * COUNT ( * ) + - + COUNT ( * ) AS col2 FROM tab0 cor0
----
198

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - - ( - 57 ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col2 * 71 FROM tab1 cor0
----
4189
4828
6816

onlyif mysql # aggregate syntax: 
query I rowsort label-4245
SELECT DISTINCT COUNT( * ) * - + 92 FROM tab2
----
-276

skipif mysql # not compatible
query I rowsort label-4245
SELECT DISTINCT COUNT ( * ) * - + 92 FROM tab2
----
-276

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4246
SELECT DISTINCT + COUNT( * ) DIV 2 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-4246
SELECT DISTINCT + COUNT ( * ) / 2 FROM tab1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4247
SELECT + COUNT( ALL - CAST( NULL AS SIGNED ) ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4247
SELECT + COUNT ( ALL - CAST ( NULL AS INTEGER ) ) FROM tab1
----
0

query I rowsort
SELECT - - 54 * + 61 / + col2 + + - col1 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4249
SELECT DISTINCT * FROM tab2 WHERE + CAST( + col1 AS DECIMAL ) NOT BETWEEN NULL AND ( - - 14 ) - - + 9
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4249
SELECT DISTINCT * FROM tab2 WHERE + CAST ( + col1 AS REAL ) NOT BETWEEN NULL AND ( - - 14 ) - - + 9
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4250
SELECT DISTINCT + MIN( ALL + 18 ) AS col0 FROM tab2
----
18

skipif mysql # not compatible
query I rowsort label-4250
SELECT DISTINCT + MIN ( ALL + 18 ) AS col0 FROM tab2
----
18

query I rowsort
SELECT DISTINCT col2 FROM tab1 cor0 WHERE 43 / - - 85 * + + 28 IS NOT NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4252
SELECT DISTINCT + COUNT( DISTINCT 28 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4252
SELECT DISTINCT + COUNT ( DISTINCT 28 ) FROM tab1 AS cor0
----
1

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 57 NOT BETWEEN NULL AND + ( - ( col2 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col0 * + col0 AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4255
SELECT DISTINCT + 41 DIV + COUNT( * ) AS col0 FROM tab1 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-4255
SELECT DISTINCT + 41 / + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
13

query I rowsort
SELECT col0 * 53 FROM tab2
----
2438
3392
3975

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4257
SELECT * FROM tab2 WHERE NOT ( + col2 NOT IN ( - - CAST( NULL AS SIGNED ) + + ( + 74 ), - col0 + 98, - 6 - - col0 ) )
----

skipif mysql # not compatible
query III rowsort label-4257
SELECT * FROM tab2 WHERE NOT ( + col2 NOT IN ( - - CAST ( NULL AS INTEGER ) + + ( + 74 ), - col0 + 98, - 6 - - col0 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4258
SELECT ALL - ( - ( - MAX( - 7 ) ) ) AS col1 FROM tab1
----
7

skipif mysql # not compatible
query I rowsort label-4258
SELECT ALL - ( - ( - MAX ( - 7 ) ) ) AS col1 FROM tab1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4259
SELECT DISTINCT - ( - COUNT( * ) ) * + + 75 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
675

skipif mysql # not compatible
query I rowsort label-4259
SELECT DISTINCT - ( - COUNT ( * ) ) * + + 75 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
675

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 col1, + col2 FROM tab2 AS cor0
----
46
23
64
40
75
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4261
SELECT ALL - col1 * + CAST( + col1 AS SIGNED ) + - 44 AS col0 FROM tab1 AS cor0
----
-2253
-240
-69

skipif mysql # not compatible
query I rowsort label-4261
SELECT ALL - col1 * + CAST ( + col1 AS INTEGER ) + - 44 AS col0 FROM tab1 AS cor0
----
-2253
-240
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-4262
SELECT DISTINCT - 46 * 83 * - COUNT( * ) AS col1 FROM tab0 cor0
----
11454

skipif mysql # not compatible
query I rowsort label-4262
SELECT DISTINCT - 46 * 83 * - COUNT ( * ) AS col1 FROM tab0 cor0
----
11454

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 52 + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4264
SELECT + + SUM( ALL - col1 ) FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-4264
SELECT + + SUM ( ALL - col1 ) FROM tab1 AS cor0
----
-66

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab2 AS cor0 WHERE 71 * + col0 + col2 IS NULL
----

query I rowsort
SELECT ALL col0 + - col1 + - + 11 * - ( - - ( + col2 ) ) + - col2 FROM tab1
----
670
724
997

onlyif mysql # aggregate syntax: 
query I rowsort label-4267
SELECT ALL SUM( ALL + col0 ) AS col0 FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-4267
SELECT ALL SUM ( ALL + col0 ) AS col0 FROM tab1
----
227

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 53 + col2, + col0 col2 FROM tab2
----
111
75
76
46
93
64

onlyif mysql # aggregate syntax: 
query II rowsort label-4269
SELECT ALL + COUNT( * ) AS col1, - 34 FROM tab0
----
3
-34

skipif mysql # not compatible
query II rowsort label-4269
SELECT ALL + COUNT ( * ) AS col1, - 34 FROM tab0
----
3
-34

query I rowsort
SELECT ALL col2 * + ( col1 ) * col2 + - 90 + - 67 FROM tab1 AS cor0 WHERE + col2 < NULL
----

query I rowsort
SELECT - 42 + + col1 AS col2 FROM tab0 AS cor0
----
-21
-41
39

query I rowsort
SELECT 78 + + - col1 FROM tab2 AS cor0
----
1
11
27

query I rowsort
SELECT DISTINCT + col2 FROM tab0 AS cor0 WHERE NOT - 59 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4274
SELECT DISTINCT + 6 * - ( + COUNT( * ) ) * - 26 FROM tab0 AS cor0
----
468

skipif mysql # not compatible
query I rowsort label-4274
SELECT DISTINCT + 6 * - ( + COUNT ( * ) ) * - 26 FROM tab0 AS cor0
----
468

query II rowsort
SELECT DISTINCT - col1 - col2 + col0, col1 AS col2 FROM tab1 AS cor0
----
-24
47
-59
14
21
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4276
SELECT ALL COUNT( - 52 ) * CAST( NULL AS SIGNED ) + - 56 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4276
SELECT ALL COUNT ( - 52 ) * CAST ( NULL AS INTEGER ) + - 56 AS col0 FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT col1, col1 * + 37 FROM tab0
----
1
37
21
777
81
2997

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4278
SELECT DISTINCT * FROM tab0 WHERE col0 * + CAST( 54 AS SIGNED ) > - - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4278
SELECT DISTINCT * FROM tab0 WHERE col0 * + CAST ( 54 AS INTEGER ) > - - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4279
SELECT ( - ( - COUNT( * ) ) ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4279
SELECT ( - ( - COUNT ( * ) ) ) AS col2 FROM tab2
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4280
SELECT DISTINCT - 73 DIV - col1 + - col2 AS col2 FROM tab0 AS cor0
----
-26
-47
-7

skipif mysql # not compatible
query I rowsort label-4280
SELECT DISTINCT - 73 / - col1 + - col2 AS col2 FROM tab0 AS cor0
----
-26
-47
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-4281
SELECT ALL - - 21 DIV + col1 * + + ( col1 ) AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4281
SELECT ALL - - 21 / + col1 * + + ( col1 ) AS col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4282
SELECT + col0 * CAST( col2 AS SIGNED ) FROM tab2
----
1058
2560
4350

skipif mysql # not compatible
query I rowsort label-4282
SELECT + col0 * CAST ( col2 AS INTEGER ) FROM tab2
----
1058
2560
4350

query I rowsort
SELECT DISTINCT - col1 * + - 38 FROM tab1
----
1786
190
532

query II rowsort
SELECT ( - 43 ), + col2 AS col2 FROM tab0 AS cor0
----
-43
10
-43
47
-43
99

query I rowsort
SELECT ALL + col2 * + + 98 AS col0 FROM tab0 AS cor0
----
4606
9702
980

query I rowsort
SELECT - col0 * + 34 AS col2 FROM tab0 AS cor0
----
-2958
-3298
-510

query I rowsort
SELECT ALL + col0 * + + 50 + col1 - + 64 * + - 6 * 93 FROM tab2 AS cor0
----
38063
38989
39529

onlyif mysql # aggregate syntax: 
query II rowsort label-4288
SELECT + 71 * 31 + - - COUNT( * ) + - COUNT( * ) AS col0, ( - + ( - COUNT( ALL - col2 ) ) ) AS col1 FROM tab0 AS cor0
----
2201
3

skipif mysql # not compatible
query II rowsort label-4288
SELECT + 71 * 31 + - - COUNT ( * ) + - COUNT ( * ) AS col0, ( - + ( - COUNT ( ALL - col2 ) ) ) AS col1 FROM tab0 AS cor0
----
2201
3

onlyif mysql # aggregate syntax: 
query II rowsort label-4289
SELECT ALL - COUNT( * ) + 2 AS col2, COUNT( * ) FROM tab0 cor0
----
-1
3

skipif mysql # not compatible
query II rowsort label-4289
SELECT ALL - COUNT ( * ) + 2 AS col2, COUNT ( * ) FROM tab0 cor0
----
-1
3

query I rowsort
SELECT 27 + - 94 AS col2 FROM tab1 AS cor0
----
-67
-67
-67

query I rowsort
SELECT DISTINCT + - col2 + + 42 AS col1 FROM tab0 AS cor0
----
-5
-57
32

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4292
SELECT ALL + CAST( NULL AS SIGNED ) AS col0, + 52 + + col0 AS col1 FROM tab0
----
NULL
139
NULL
149
NULL
67

skipif mysql # not compatible
query II rowsort label-4292
SELECT ALL + CAST ( NULL AS INTEGER ) AS col0, + 52 + + col0 AS col1 FROM tab0
----
NULL
139
NULL
149
NULL
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4293
SELECT DISTINCT - COUNT( * ) + + + MIN( + col2 ) AS col2 FROM tab1
----
56

skipif mysql # not compatible
query I rowsort label-4293
SELECT DISTINCT - COUNT ( * ) + + + MIN ( + col2 ) AS col2 FROM tab1
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-4294
SELECT - COUNT( ALL + 33 ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-4294
SELECT - COUNT ( ALL + 33 ) AS col0 FROM tab2
----
-3

query I rowsort
SELECT + col1 * - 74 FROM tab2
----
-3774
-4958
-5698

query I rowsort
SELECT DISTINCT col0 * - 93 AS col1 FROM tab0
----
-1395
-8091
-9021

query I rowsort
SELECT DISTINCT - col2 * col0 + - col1 AS col0 FROM tab0 WHERE - - col2 * - col2 IS NOT NULL
----
-786
-891
-9604

onlyif mysql # aggregate syntax: 
query I rowsort label-4298
SELECT - MIN( ALL - col2 ) col2 FROM tab0
----
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4298
SELECT - MIN ( ALL - col2 ) col2 FROM tab0
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-4299
SELECT + col2 * 22 DIV col1 col0 FROM tab0 AS cor0
----
10
12
2178

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4299
SELECT + col2 * 22 / col1 col0 FROM tab0 AS cor0
----
10
12
2178

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 29 + + col1 + + + 30 col0, + col1 FROM tab2 AS cor0
----
52
51
68
67
78
77

query I rowsort
SELECT ALL col1 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL AND NULL = col0
----

query I rowsort
SELECT DISTINCT col1 FROM tab0 WHERE NOT col0 NOT BETWEEN + + col0 AND + + ( + col1 ) + - - ( + 85 )
----
21
81

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 17 * + 63 + 59 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT - col2 AS col2, col0 FROM tab2 AS cor0
----
-23
46
-40
64
-58
75

query II rowsort
SELECT DISTINCT + 11 * 55 AS col2, col2 FROM tab0 AS cor0 WHERE NOT ( 12 * ( - ( + - 95 ) ) ) IN ( col0, - 79 )
----
605
10
605
47
605
99

onlyif mysql # aggregate syntax: 
query II rowsort label-4306
SELECT + SUM( + col2 ) AS col0, - SUM( ALL - col2 ) FROM tab2 AS cor0 WHERE NOT + col1 IS NOT NULL
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4306
SELECT + SUM ( + col2 ) AS col0, - SUM ( ALL - col2 ) FROM tab2 AS cor0 WHERE NOT + col1 IS NOT NULL
----
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 0 = col0 + - 46 + - col0 - ( col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL + col0 AS col0, + col2 + col0 * - + col1 AS col0 FROM tab2 AS cor0
----
46
-2323
64
-4888
75
-4967

query I rowsort
SELECT + ( - 83 ) AS col1 FROM tab0
----
-83
-83
-83

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 66 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4311
SELECT DISTINCT col0 AS col0 FROM tab0 WHERE NOT ( + + CAST( 96 AS SIGNED ) + + 0 ) IS NULL
----
15
87
97

skipif mysql # not compatible
query I rowsort label-4311
SELECT DISTINCT col0 AS col0 FROM tab0 WHERE NOT ( + + CAST ( 96 AS INTEGER ) + + 0 ) IS NULL
----
15
87
97

query I rowsort
SELECT - + 82 FROM tab0 WHERE NOT + - col1 * - - ( - 67 ) * + col0 >= col1
----

query II rowsort
SELECT ALL + ( + 76 ), 72 AS col2 FROM tab1
----
76
72
76
72
76
72

onlyif mysql # aggregate syntax: 
query I rowsort label-4314
SELECT ALL 0 + - COUNT( * ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4314
SELECT ALL 0 + - COUNT ( * ) FROM tab0 AS cor0
----
-3

query II rowsort
SELECT ALL col1 AS col2, - 33 FROM tab2
----
51
-33
67
-33
77
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-4316
SELECT - col2 * 87 + col1 DIV - col2 FROM tab1
----
-5133
-5916
-8352

skipif mysql # not compatible
query I rowsort label-4316
SELECT - col2 * 87 + col1 / - col2 FROM tab1
----
-5133
-5916
-8352

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4317
SELECT - - CAST( NULL AS SIGNED ) AS col0 FROM tab1 WHERE NOT - col0 <> ( + 66 )
----

skipif mysql # not compatible
query I rowsort label-4317
SELECT - - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 WHERE NOT - col0 <> ( + 66 )
----

query I rowsort
SELECT DISTINCT - col1 * - + 33 AS col1 FROM tab1 AS cor0
----
1551
165
462

query II rowsort
SELECT - 0 AS col2, 85 FROM tab1 AS cor0
----
0
85
0
85
0
85

onlyif mysql # DIV for integer division: 
query I rowsort label-4320
SELECT - 23 DIV - col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
0
1
23

skipif mysql # not compatible
query I rowsort label-4320
SELECT - 23 / - col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
0
1
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4321
SELECT - - COUNT( * ) DIV COUNT( * ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4321
SELECT - - COUNT ( * ) / COUNT ( * ) FROM tab1 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4322
SELECT - + ( - COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4322
SELECT - + ( - COUNT ( * ) ) AS col0 FROM tab0 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 WHERE - - 0 > + + col0 + - col0
----

query I rowsort
SELECT ALL ( + col2 ) + col2 FROM tab1
----
118
136
192

query I rowsort
SELECT DISTINCT + col2 * + col0 + + 84 AS col1 FROM tab2
----
1142
2644
4434

query II rowsort
SELECT DISTINCT 9 + - + col0, - col2 AS col1 FROM tab0
----
-6
-47
-78
-10
-88
-99

query I rowsort
SELECT ALL - col2 + - ( col1 ) + ( col0 ) AS col1 FROM tab2
----
-28
-50
-53

query I rowsort
SELECT + col0 * + 67 + - + col1 FROM tab0
----
5808
6498
924

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( ( NOT NULL IS NULL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 81 * - col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4331
SELECT DISTINCT COUNT( * ) AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab0 cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-4331
SELECT DISTINCT COUNT ( * ) AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab0 cor1 )
----
9

query I rowsort
SELECT + ( 95 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL = - - col0 + + - ( - 17 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + 11 + - - col0 )
----

query I rowsort
SELECT - + col1 * - - 34 AS col1 FROM tab2 AS cor0
----
-1734
-2278
-2618

query I rowsort
SELECT - - col0 FROM tab1 AS cor0 WHERE NOT + col0 IS NOT NULL
----

query I rowsort
SELECT + 61 * - - col2 AS col0 FROM tab0 AS cor0
----
2867
6039
610

query II rowsort
SELECT DISTINCT - col0, col0 FROM tab1 AS cor0
----
-51
51
-85
85
-91
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 37 col2 FROM tab1 AS cor0
----
37
37
37

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL <> col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4341
SELECT - COUNT( * ) * - + COUNT( * ) - + COUNT( + - col2 ) FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-4341
SELECT - COUNT ( * ) * - + COUNT ( * ) - + COUNT ( + - col2 ) FROM tab2 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4342
SELECT ALL + + COUNT( * ) FROM tab1 WHERE NOT col2 * - + col0 * + - 66 - + col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4342
SELECT ALL + + COUNT ( * ) FROM tab1 WHERE NOT col2 * - + col0 * + - 66 - + col0 IS NOT NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4343
SELECT CAST( COUNT( + 68 ) AS SIGNED ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4343
SELECT CAST ( COUNT ( + 68 ) AS INTEGER ) FROM tab0
----
3

query I rowsort
SELECT ALL + col2 * - 14 AS col2 FROM tab2
----
-322
-560
-812

onlyif mysql # aggregate syntax: 
query I rowsort label-4345
SELECT + COUNT( * ) * + MIN( + col1 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4345
SELECT + COUNT ( * ) * + MIN ( + col1 ) FROM tab0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4346
SELECT + CAST( + ( - MAX( DISTINCT + + 3 ) ) AS SIGNED ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4346
SELECT + CAST ( + ( - MAX ( DISTINCT + + 3 ) ) AS INTEGER ) FROM tab0 cor0
----
-3

query II rowsort
SELECT ALL - 0 AS col1, + ( - col1 ) * + + 26 AS col2 FROM tab0 AS cor0
----
0
-2106
0
-26
0
-546

query I rowsort
SELECT 99 FROM tab2 AS cor0 WHERE NOT NULL = - ( + 32 )
----

query II rowsort
SELECT DISTINCT + + 59 AS col2, + col0 AS col2 FROM tab2 AS cor0
----
59
46
59
64
59
75

query I rowsort
SELECT DISTINCT - 64 + + 87 FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL IS NOT NULL )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4351
SELECT DISTINCT COUNT( * ) * 99 * - 66 + 87 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-58719

skipif mysql # not compatible
query I rowsort label-4351
SELECT DISTINCT COUNT ( * ) * 99 * - 66 + 87 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-58719

onlyif mysql # aggregate syntax: 
query II rowsort label-4352
SELECT - COUNT( ALL 81 ) * COUNT( - - col1 ), COUNT( * ) AS col2 FROM tab0 WHERE ( NOT NULL <= NULL )
----
0
0

skipif mysql # not compatible
query II rowsort label-4352
SELECT - COUNT ( ALL 81 ) * COUNT ( - - col1 ), COUNT ( * ) AS col2 FROM tab0 WHERE ( NOT NULL <= NULL )
----
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4353
SELECT ALL - col0, - col0 AS col2 FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) - col2 <> - 2 + 10 * - - 55
----

skipif mysql # not compatible
query II rowsort label-4353
SELECT ALL - col0, - col0 AS col2 FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) - col2 <> - 2 + 10 * - - 55
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4354
SELECT + col2 + 20 AS col0 FROM tab2 AS cor0 WHERE - col1 + - CAST( NULL AS SIGNED ) IS NULL
----
43
60
78

skipif mysql # not compatible
query I rowsort label-4354
SELECT + col2 + 20 AS col0 FROM tab2 AS cor0 WHERE - col1 + - CAST ( NULL AS INTEGER ) IS NULL
----
43
60
78

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 <> + 36
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4356
SELECT DISTINCT + COUNT( * ) DIV 6 col2 FROM tab2 AS cor0 WHERE - col2 + ( + col1 ) BETWEEN NULL AND - 5
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4356
SELECT DISTINCT + COUNT ( * ) / 6 col2 FROM tab2 AS cor0 WHERE - col2 + ( + col1 ) BETWEEN NULL AND - 5
----
0

query I rowsort
SELECT ALL col1 AS col2 FROM tab1 WHERE - - col2 IS NOT NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4358
SELECT COUNT( ALL + - col1 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4358
SELECT COUNT ( ALL + - col1 ) AS col0 FROM tab2
----
3

query I rowsort
SELECT DISTINCT + col2 - + ( + 17 ) * - 44 + + 87 FROM tab0
----
845
882
934

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( 63 ) * - col1 col2, col1 FROM tab0
----
-1323
21
-5103
81
-63
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4361
SELECT DISTINCT + COUNT( * ), + SUM( DISTINCT - + col0 ) AS col2 FROM tab1
----
3
-227

skipif mysql # not compatible
query II rowsort label-4361
SELECT DISTINCT + COUNT ( * ), + SUM ( DISTINCT - + col0 ) AS col2 FROM tab1
----
3
-227

query I rowsort
SELECT ALL col2 + col2 + + col0 + + - col2 FROM tab1
----
144
147
159

onlyif mysql # aggregate syntax: 
query II rowsort label-4363
SELECT ALL COUNT( * ) AS col1, 27 FROM tab0
----
3
27

skipif mysql # not compatible
query II rowsort label-4363
SELECT ALL COUNT ( * ) AS col1, 27 FROM tab0
----
3
27

query I rowsort
SELECT DISTINCT col1 - + 38 + - 52 * col1 AS col2 FROM tab1 AS cor0
----
-2435
-293
-752

query II rowsort
SELECT DISTINCT col2 + - - col1 + - col1, col1 FROM tab1 AS cor0
----
59
5
68
47
96
14

query II rowsort
SELECT 35 * - 5 AS col0, - 25 AS col0 FROM tab1
----
-175
-25
-175
-25
-175
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-4367
SELECT + + ( + - SUM( DISTINCT + - 4 ) ) FROM tab2 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-4367
SELECT + + ( + - SUM ( DISTINCT + - 4 ) ) FROM tab2 AS cor0
----
4

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL 5 * col2 * col2 AS col1 FROM tab2 cor0
----
16820
2645
8000

query I rowsort
SELECT - col1 * - col2 + - 29 FROM tab0 AS cor0
----
181
3778
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4371
SELECT - - 67 DIV SUM( DISTINCT + col1 ) FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-4371
SELECT - - 67 / SUM ( DISTINCT + col1 ) FROM tab2 cor0
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 70 BETWEEN NULL AND NULL
----

query II rowsort
SELECT DISTINCT + col0 AS col0, 93 AS col2 FROM tab1
----
51
93
85
93
91
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4374
SELECT ALL SUM( + col1 ) AS col2 FROM tab2 cor0
----
195

skipif mysql # not compatible
query I rowsort label-4374
SELECT ALL SUM ( + col1 ) AS col2 FROM tab2 cor0
----
195

query I rowsort
SELECT ALL + 76 + - 62 FROM tab0 AS cor0
----
14
14
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4376
SELECT CAST( NULL AS SIGNED ) + + + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4376
SELECT CAST ( NULL AS INTEGER ) + + + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 77 + - - col0 AS col0 FROM tab2 AS cor0
----
-13
-2
-31

query I rowsort
SELECT + col0 + - ( - - ( col1 ) ) + + col0 FROM tab1 AS cor0
----
135
165
88

query I rowsort
SELECT + 37 + + + 75 AS col0 FROM tab0 AS cor0 WHERE NULL <= col1 * + + col1 * - col1
----

query I rowsort
SELECT - - 16 * 2 AS col1 FROM tab1 AS cor0
----
32
32
32

onlyif mysql # aggregate syntax: 
query I rowsort label-4381
SELECT ALL - MIN( + + col0 ) AS col0 FROM tab0 cor0
----
-15

skipif mysql # not compatible
query I rowsort label-4381
SELECT ALL - MIN ( + + col0 ) AS col0 FROM tab0 cor0
----
-15

query I rowsort
SELECT ALL + 67 + - - col0 FROM tab2 AS cor0
----
113
131
142

query I rowsort
SELECT - - ( + + col2 ) AS col1 FROM tab0 AS cor0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4384
SELECT - + COUNT( DISTINCT - + col2 ) - + 67 FROM tab2 cor0
----
-70

skipif mysql # not compatible
query I rowsort label-4384
SELECT - + COUNT ( DISTINCT - + col2 ) - + 67 FROM tab2 cor0
----
-70

query I rowsort
SELECT + - col1 + + - col2 * + - 6 AS col0 FROM tab1 AS cor0
----
349
361
562

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL BETWEEN - col2 + + + col1 AND NULL
----

query I rowsort
SELECT DISTINCT col0 - 4 * - - 54 FROM tab0
----
-119
-129
-201

query III rowsort
SELECT * FROM tab1 WHERE + col1 + + col1 / col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL ( - - col1 ) * - - col2 - 31 AS col1 FROM tab2
----
1142
3049
3855

query I rowsort
SELECT ALL 1 - ( - - 30 ) + 54 FROM tab1
----
25
25
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col0 FROM tab0 AS cor0 WHERE NOT col1 * 76 + + col1 + - 79 - + - col0 IS NULL
----
10
47
99

onlyif mysql # DIV for integer division: 
query I rowsort label-4392
SELECT ALL - - col2 - + col2 * - col1 + - - col2 + 23 DIV + - 93 * + + 34 + col1 + - 32 + + col1 * - col2 FROM tab1 AS cor0
----
151
174
91

skipif mysql # not compatible
query I rowsort label-4392
SELECT ALL - - col2 - + col2 * - col1 + - - col2 + 23 / + - 93 * + + 34 + col1 + - 32 + + col1 * - col2 FROM tab1 AS cor0
----
151
174
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4393
SELECT ALL COUNT( * ) * COUNT( * ) AS col2 FROM tab0 cor0
----
9

skipif mysql # not compatible
query I rowsort label-4393
SELECT ALL COUNT ( * ) * COUNT ( * ) AS col2 FROM tab0 cor0
----
9

query I rowsort
SELECT DISTINCT - 3 - - - col0 * + col1 AS col0 FROM tab1 AS cor0
----
-428
-4280
-717

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 10 col1 FROM tab1 AS cor0
----
10
10
10

query I rowsort
SELECT DISTINCT + col1 * 23 + 68 AS col0 FROM tab2 AS cor0
----
1241
1609
1839

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 NOT BETWEEN + + col1 + + col1 AND col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4398
SELECT DISTINCT + + CAST( NULL AS SIGNED ) * col1, col0 * ( - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4398
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * col1, col0 * ( - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4399
SELECT - COUNT( DISTINCT - - col0 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-4399
SELECT - COUNT ( DISTINCT - - col0 ) FROM tab1
----
-3

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( + 0 ) NOT BETWEEN 31 * col2 AND + col2
----

query I rowsort
SELECT + 6 * - 75 * col2 AS col2 FROM tab2 AS cor0
----
-10350
-18000
-26100

onlyif mysql # aggregate syntax: 
query II rowsort label-4402
SELECT DISTINCT + - COUNT( - col2 ) * 92 AS col0, MAX( ALL 24 ) FROM tab0 AS cor0
----
-276
24

skipif mysql # not compatible
query II rowsort label-4402
SELECT DISTINCT + - COUNT ( - col2 ) * 92 AS col0, MAX ( ALL 24 ) FROM tab0 AS cor0
----
-276
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4403
SELECT - CAST( NULL AS SIGNED ) * - - CAST( - col2 AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4403
SELECT - CAST ( NULL AS INTEGER ) * - - CAST ( - col2 AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4404
SELECT DISTINCT + col0 DIV - 86 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4404
SELECT DISTINCT + col0 / - 86 AS col0 FROM tab2 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4405
SELECT DISTINCT col2 + - col0 + + + col0 * col0 * + - col2 DIV - col2 - - + ( - col1 ) * + 39 FROM tab1
----
2100
6425
7004

skipif mysql # not compatible
query I rowsort label-4405
SELECT DISTINCT col2 + - col0 + + + col0 * col0 * + - col2 / - col2 - - + ( - col1 ) * + 39 FROM tab1
----
2100
6425
7004

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4406
SELECT + - CAST( + - col2 AS SIGNED ), col2 FROM tab1 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query II rowsort label-4406
SELECT + - CAST ( + - col2 AS INTEGER ), col2 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT 74 * - col0 FROM tab1
----
-3774
-6290
-6734

onlyif mysql # aggregate syntax: 
query I rowsort label-4408
SELECT SUM( ALL + col1 ) AS col1 FROM tab1 cor0
----
66

skipif mysql # not compatible
query I rowsort label-4408
SELECT SUM ( ALL + col1 ) AS col1 FROM tab1 cor0
----
66

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - ( col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col1 + - 27 FROM tab0 AS cor0
----
-26
-6
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4411
SELECT ALL - 7 - COUNT( * ) FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-4411
SELECT ALL - 7 - COUNT ( * ) FROM tab0
----
-10

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 * + - 58 - + + ( + - col2 ) * + col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - ( + - 24 ) AS col0 FROM tab2 cor0
----
24

query I rowsort
SELECT ALL 9 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
9
9
9

query II rowsort
SELECT + col1 * col1 + + col0, + 50 FROM tab2 AS cor0 WHERE col0 BETWEEN ( NULL ) AND 7
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 79 + - col2 col2, - ( - - col2 ) FROM tab1
----
-17
-96
11
-68
20
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4417
SELECT ALL CAST( NULL AS SIGNED ) / + + col1 + - col2 * - col0 - - + 74 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4417
SELECT ALL CAST ( NULL AS INTEGER ) / + + col1 + - col2 * - col0 - - + 74 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4418
SELECT 92 AS col2, CAST( NULL AS SIGNED ) * + - col2 FROM tab1
----
92
NULL
92
NULL
92
NULL

skipif mysql # not compatible
query II rowsort label-4418
SELECT 92 AS col2, CAST ( NULL AS INTEGER ) * + - col2 FROM tab1
----
92
NULL
92
NULL
92
NULL

query II rowsort
SELECT ALL + col2, col0 + - 30 FROM tab1
----
59
55
68
61
96
21

query I rowsort
SELECT ALL + col1 * + col0 + - 71 AS col0 FROM tab1 cor0
----
354
4206
643

onlyif mysql # aggregate syntax: 
query I rowsort label-4421
SELECT DISTINCT COUNT( ALL col1 ) col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4421
SELECT DISTINCT COUNT ( ALL col1 ) col2 FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL + + col2 * - 53 AS col0 FROM tab2 AS cor0
----
-1219
-2120
-3074

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 IN ( + col2, 68 * col0 + - 21, + col1, col2 * 62 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 56 col0 FROM tab2 cor0
----
-56

query II rowsort
SELECT ALL col2 AS col2, col0 - - col0 AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4426
SELECT ALL - - 74 * COUNT( * ) col1, + 60 AS col2 FROM tab0 cor0
----
222
60

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4426
SELECT ALL - - 74 * COUNT ( * ) col1, + 60 AS col2 FROM tab0 cor0
----
222
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4427
SELECT - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4427
SELECT - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4428
SELECT ALL - CAST( + + col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-4428
SELECT ALL - CAST ( + + col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-59
-68
-96

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + col0 / 51 + - col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + col0 * - + 71 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4431
SELECT COUNT( DISTINCT - col2 ) * - 28 AS col1 FROM tab0 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-4431
SELECT COUNT ( DISTINCT - col2 ) * - 28 AS col1 FROM tab0 AS cor0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-4432
SELECT + MIN( DISTINCT - col1 ) FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-4432
SELECT + MIN ( DISTINCT - col1 ) FROM tab2
----
-77

query I rowsort
SELECT ALL + col1 + - col2 - - col1 * - col2 FROM tab2
----
-1145
-3043
-3877

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4434
SELECT ALL 29 * ( CAST( 22 AS SIGNED ) ) * - - col1 FROM tab0
----
13398
51678
638

skipif mysql # not compatible
query I rowsort label-4434
SELECT ALL 29 * ( CAST ( 22 AS INTEGER ) ) * - - col1 FROM tab0
----
13398
51678
638

query I rowsort
SELECT 19 * - col0 AS col1 FROM tab1
----
-1615
-1729
-969

query II rowsort
SELECT ALL 26, col0 FROM tab1
----
26
51
26
85
26
91

query I rowsort
SELECT DISTINCT - 61 + - col1 + + col2 * - + col2 - - - 1 * - 61 * col0 * 15 - 97 AS col0 FROM tab1 AS cor0
----
37277
74131
78436

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 36 = - 38
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4439
SELECT + COUNT( * ) * - + 49 + 74 FROM tab0 AS cor0
----
-73

skipif mysql # not compatible
query I rowsort label-4439
SELECT + COUNT ( * ) * - + 49 + 74 FROM tab0 AS cor0
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-4440
SELECT ALL SUM( + - 55 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-495

skipif mysql # not compatible
query I rowsort label-4440
SELECT ALL SUM ( + - 55 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-495

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col0 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4442
SELECT 35 - + 43 AS col0, COUNT( * ) AS col2 FROM tab1 AS cor0
----
-8
3

skipif mysql # not compatible
query II rowsort label-4442
SELECT 35 - + 43 AS col0, COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-8
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4443
SELECT DISTINCT + COUNT( * ) - + - 91 FROM tab2 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-4443
SELECT DISTINCT + COUNT ( * ) - + - 91 FROM tab2 AS cor0
----
94

query II rowsort
SELECT col2 * col0 * + col1 - - col2 AS col2, col0 - + + 15 AS col1 FROM tab0 AS cor0
----
18280
72
57152
0
9702
82

query I rowsort
SELECT DISTINCT + - col1 FROM tab0 AS cor0 WHERE NOT - 44 IS NULL
----
-1
-21
-81

query I rowsort
SELECT - 95 * - col2 + - - 3 FROM tab2 cor0
----
2188
3803
5513

query I rowsort
SELECT + 42 + ( ( + + 44 ) ) AS col1 FROM tab1 AS cor0
----
86
86
86

query I rowsort
SELECT col0 + + - col0 - + ( - col2 ) FROM tab1
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4449
SELECT DISTINCT SUM( DISTINCT 34 ) AS col0 FROM tab0
----
34

skipif mysql # not compatible
query I rowsort label-4449
SELECT DISTINCT SUM ( DISTINCT 34 ) AS col0 FROM tab0
----
34

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE NOT col2 * + + ( - col2 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4451
SELECT ALL - col2 * 73 DIV 67 * + + 47 FROM tab0 AS cor0
----
-2397
-470
-5029

skipif mysql # not compatible
query I rowsort label-4451
SELECT ALL - col2 * 73 / 67 * + + 47 FROM tab0 AS cor0
----
-2397
-470
-5029

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4452
SELECT - 78 DIV - - MIN( DISTINCT col2 ) FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4452
SELECT - 78 / - - MIN ( DISTINCT col2 ) FROM tab1 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4453
SELECT - + COUNT( DISTINCT - - col0 ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4453
SELECT - + COUNT ( DISTINCT - - col0 ) AS col0 FROM tab0 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE col1 < - + 64
----

query II rowsort
SELECT + col1, + 25 FROM tab2 AS cor0
----
51
25
67
25
77
25

query I rowsort
SELECT DISTINCT col1 * - - col2 + col1 AS col0 FROM tab1 cor0
----
1358
300
3243

onlyif mysql # aggregate syntax: 
query I rowsort label-4457
SELECT DISTINCT - COUNT( * ) FROM tab1 AS cor0 WHERE NULL IN ( - col2, col2 )
----
0

skipif mysql # not compatible
query I rowsort label-4457
SELECT DISTINCT - COUNT ( * ) FROM tab1 AS cor0 WHERE NULL IN ( - col2, col2 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4458
SELECT DISTINCT MIN( col0 ) AS col2 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND - 18
----
NULL

skipif mysql # not compatible
query I rowsort label-4458
SELECT DISTINCT MIN ( col0 ) AS col2 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND - 18
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 75 / + col1 + col2 IS NOT NULL
----

query I rowsort
SELECT + 47 * + - ( - + 35 ) FROM tab2
----
1645
1645
1645

onlyif mysql # DIV for integer division: 
query I rowsort label-4461
SELECT ALL col2 DIV + - col2 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4461
SELECT ALL col2 / + - col2 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT 88 * + + col2 FROM tab2
----
2024
3520
5104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4463
SELECT ALL col0 + + + col0 * + - col2 + + CAST( - col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-4859
-4935
-6144

skipif mysql # not compatible
query I rowsort label-4463
SELECT ALL col0 + + + col0 * + - col2 + + CAST ( - col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-4859
-4935
-6144

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 5 + - + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4465
SELECT ALL col2 + - CAST( + + 71 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-13
-31
-48

skipif mysql # not compatible
query I rowsort label-4465
SELECT ALL col2 + - CAST ( + + 71 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-13
-31
-48

query II rowsort
SELECT 26 + - col0 * col0 AS col0, 5 FROM tab1
----
-2575
5
-7199
5
-8255
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4467
SELECT + SUM( - 40 ) + - 74 AS col1 FROM tab2
----
-194

skipif mysql # not compatible
query I rowsort label-4467
SELECT + SUM ( - 40 ) + - 74 AS col1 FROM tab2
----
-194

query I rowsort
SELECT col2 + - col0 - - col1 FROM tab2
----
28
50
53

query II rowsort
SELECT ALL col1 * + 98 + + col0 AS col2, + 68 AS col0 FROM tab1
----
1423
68
4697
68
575
68

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4470
SELECT DISTINCT CAST( NULL AS SIGNED ) * 86 - - 72, col1 * - col1 + col1 AS col0 FROM tab2
----
NULL
-2550
NULL
-4422
NULL
-5852

skipif mysql # not compatible
query II rowsort label-4470
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 86 - - 72, col1 * - col1 + col1 AS col0 FROM tab2
----
NULL
-2550
NULL
-4422
NULL
-5852

onlyif mysql # DIV for integer division: 
query I rowsort label-4471
SELECT ALL 84 DIV col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4471
SELECT ALL 84 / col1 FROM tab2
----
1
1
1

query I rowsort
SELECT DISTINCT + col0 * + col2 - + - col1 FROM tab1
----
4910
5020
6235

query I rowsort
SELECT 43 + + + col1 FROM tab0
----
124
44
64

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4474
SELECT ALL * FROM tab1 AS cor0 WHERE col2 * + CAST( + col2 AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4474
SELECT ALL * FROM tab1 AS cor0 WHERE col2 * + CAST ( + col2 AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 + col1 <= + col2
----
85
5
59
91
47
68

query I rowsort
SELECT + - ( + 14 ) AS col0 FROM tab1 AS cor0
----
-14
-14
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-4477
SELECT - 11 DIV - col0 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4477
SELECT - 11 / - col0 AS col1 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( ( NOT NULL IS NULL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 60 col1 FROM tab1
----
60
60
60

query I rowsort
SELECT 63 * + ( col0 ) FROM tab1
----
3213
5355
5733

query I rowsort
SELECT - col0 * + - col0 AS col2 FROM tab1
----
2601
7225
8281

onlyif mysql # aggregate syntax: 
query I rowsort label-4482
SELECT ( SUM( + col0 ) ) AS col1 FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-4482
SELECT ( SUM ( + col0 ) ) AS col1 FROM tab0
----
199

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 37 + + col0 * + + col0 col0 FROM tab2 AS cor0 WHERE ( NULL ) < + 34
----

query I rowsort
SELECT - - col2 * + + col1 AS col1 FROM tab0 AS cor0
----
210
3807
99

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4485
SELECT ALL - 71 + - 82 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( + + CAST( NULL AS DECIMAL ) BETWEEN CAST( NULL AS SIGNED ) * 80 AND NULL )
----

skipif mysql # not compatible
query I rowsort label-4485
SELECT ALL - 71 + - 82 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( + + CAST ( NULL AS REAL ) BETWEEN CAST ( NULL AS INTEGER ) * 80 AND NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4486
SELECT COUNT( * ) AS col1, + COUNT( * ) AS col2 FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-4486
SELECT COUNT ( * ) AS col1, + COUNT ( * ) AS col2 FROM tab0
----
3
3

query I rowsort
SELECT 77 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
77
77
77

query II rowsort
SELECT 4 AS col1, + col0 FROM tab2 cor0
----
4
46
4
64
4
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 84 + 43 col2 FROM tab0 cor0
----
127

query I rowsort
SELECT + ( + - 71 ) FROM tab0 AS cor0
----
-71
-71
-71

query I rowsort
SELECT ALL + 7 + col2 + - - col2 AS col1 FROM tab2
----
123
53
87

query I rowsort
SELECT + col2 * + col1 + + 88 AS col2 FROM tab1
----
1432
3284
383

onlyif mysql # aggregate syntax: 
query I rowsort label-4493
SELECT DISTINCT COUNT( * ) + - + 87 FROM tab0
----
-84

skipif mysql # not compatible
query I rowsort label-4493
SELECT DISTINCT COUNT ( * ) + - + 87 FROM tab0
----
-84

query III rowsort
SELECT * FROM tab2 WHERE ( - col1 + + col1 * - - col2 * col2 * + col2 * + col2 ) IS NULL
----

query I rowsort
SELECT DISTINCT - - 58 FROM tab1 AS cor0 WHERE - 99 BETWEEN NULL AND - 72
----

query I rowsort
SELECT + 48 + 73 + 26 FROM tab1 AS cor0
----
147
147
147

query I rowsort
SELECT - 49 + + col0 - - 50 AS col2 FROM tab2 AS cor0
----
47
65
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4498
SELECT - COUNT( * ) col1, AVG ( CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
-3
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4498
SELECT - COUNT ( * ) col1, AVG ( CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
-3
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4499
SELECT ALL COUNT( * ) col2, CAST( - 25 AS SIGNED ) + + - COUNT( * ) FROM tab2 AS cor0
----
3
-28

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4499
SELECT ALL COUNT ( * ) col2, CAST ( - 25 AS INTEGER ) + + - COUNT ( * ) FROM tab2 AS cor0
----
3
-28

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 36 + + col2 NOT BETWEEN NULL AND - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL col1 * - col2 + + - 39, + col2 FROM tab1 cor0 WHERE + col1 IS NOT NULL
----
-1383
96
-3235
68
-334
59

query II rowsort
SELECT + col0 * col2 AS col2, 54 AS col2 FROM tab1 AS cor0
----
4896
54
5015
54
6188
54

query II rowsort
SELECT + - ( 61 ), col0 FROM tab2 AS cor0
----
-61
46
-61
64
-61
75

query I rowsort
SELECT 44 * 69 FROM tab1 AS cor0
----
3036
3036
3036

onlyif mysql # aggregate syntax: 
query I rowsort label-4505
SELECT MAX( - 75 ) FROM tab0 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-4505
SELECT MAX ( - 75 ) FROM tab0 AS cor0
----
-75

query II rowsort
SELECT DISTINCT - col1 * + - 98, + col0 AS col1 FROM tab2 AS cor0
----
4998
46
6566
75
7546
64

query I rowsort
SELECT DISTINCT + + 53 * col0 AS col0 FROM tab1 AS cor0
----
2703
4505
4823

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 = - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4509
SELECT - 43 FROM tab0 WHERE NOT ( NOT CAST( NULL AS SIGNED ) + + col2 IS NULL )
----
-43
-43
-43

skipif mysql # not compatible
query I rowsort label-4509
SELECT - 43 FROM tab0 WHERE NOT ( NOT CAST ( NULL AS INTEGER ) + + col2 IS NULL )
----
-43
-43
-43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 43 col1, 2 * col1 FROM tab2
----
-43
102
-43
134
-43
154

onlyif mysql # aggregate syntax: 
query I rowsort label-4511
SELECT DISTINCT - MIN( - col2 ) FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-4511
SELECT DISTINCT - MIN ( - col2 ) FROM tab0
----
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col0, col1 + + col2 AS col1 FROM tab0
----
1
100
21
31
81
128

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 91 NOT IN ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4514
SELECT ALL - MAX( ALL col1 ) * MAX( ALL ( - col1 ) ) AS col2 FROM tab2
----
3927

skipif mysql # not compatible
query I rowsort label-4514
SELECT ALL - MAX ( ALL col1 ) * MAX ( ALL ( - col1 ) ) AS col2 FROM tab2
----
3927

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 37 <> 7
----

query I rowsort
SELECT ALL 14 * - col2 + - col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-1020
-1440
-885

query I rowsort
SELECT + col0 AS col0 FROM tab2 WHERE NOT col0 / col2 + - 7 * - 68 IS NULL
----
46
64
75

onlyif mysql # DIV for integer division: 
query I rowsort label-4518
SELECT - ( 49 ) DIV 48 + 69 FROM tab1
----
68
68
68

skipif mysql # not compatible
query I rowsort label-4518
SELECT - ( 49 ) / 48 + 69 FROM tab1
----
68
68
68

onlyif mysql # DIV for integer division: 
query I rowsort label-4519
SELECT ALL col0 + - 90 DIV 33 FROM tab1
----
49
83
89

skipif mysql # not compatible
query I rowsort label-4519
SELECT ALL col0 + - 90 / 33 FROM tab1
----
49
83
89

query I rowsort
SELECT 87 * + 33 AS col2 FROM tab2
----
2871
2871
2871

query I rowsort
SELECT DISTINCT col1 FROM tab2 WHERE col0 IS NULL
----

query I rowsort
SELECT col2 * 29 AS col1 FROM tab0
----
1363
2871
290

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + col2 + col1 ) NOT BETWEEN NULL AND col0 + - 2
----
51
14
96
91
47
68

query I rowsort
SELECT + 65 * + col1 AS col0 FROM tab1
----
3055
325
910

query I rowsort
SELECT col2 * - ( ( col1 ) * col0 ) FROM tab2
----
-197120
-291450
-53958

query I rowsort
SELECT DISTINCT 54 * 70 AS col2 FROM tab1
----
3780

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4527
SELECT ALL - COUNT( DISTINCT col2 ) DIV - COUNT( * ) + 6 AS col1 FROM tab0
----
7

skipif mysql # not compatible
query I rowsort label-4527
SELECT ALL - COUNT ( DISTINCT col2 ) / - COUNT ( * ) + 6 AS col1 FROM tab0
----
7

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4528
SELECT * FROM tab1 WHERE NOT - CAST( NULL AS DECIMAL ) > - col2
----

skipif mysql # not compatible
query III rowsort label-4528
SELECT * FROM tab1 WHERE NOT - CAST ( NULL AS REAL ) > - col2
----

query I rowsort
SELECT DISTINCT - AVG ( + col1 ) AS col0 FROM tab2 WHERE NOT NULL IN ( 40 + col0 )
----
NULL

query I rowsort
SELECT ALL - col0 * - ( + ( + col2 ) * col1 ) AS col1 FROM tab2
----
197120
291450
53958

query I rowsort
SELECT ALL col0 * col2 + - col0 * + 77 AS col2 FROM tab0
----
-450
-5829
2134

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4532
SELECT - CAST( NULL AS SIGNED ) + + COUNT( DISTINCT + col1 + 95 * col0 ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4532
SELECT - CAST ( NULL AS INTEGER ) + + COUNT ( DISTINCT + col1 + 95 * col0 ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT - col1 + - col1 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4534
SELECT ALL - SUM( + col1 ) DIV - 88 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4534
SELECT ALL - SUM ( + col1 ) / - 88 FROM tab1
----
0

query I rowsort
SELECT DISTINCT col0 * 73 AS col2 FROM tab1
----
3723
6205
6643

query I rowsort
SELECT DISTINCT 68 * col2 FROM tab1
----
4012
4624
6528

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4537
SELECT DISTINCT + COUNT( * ) DIV - MAX( DISTINCT + col0 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4537
SELECT DISTINCT + COUNT ( * ) / - MAX ( DISTINCT + col0 ) FROM tab0
----
0

query I rowsort
SELECT + ( 77 ) AS col0 FROM tab0
----
77
77
77

query I rowsort
SELECT ALL col2 AS col1 FROM tab0 cor0 WHERE NOT col2 + 3 IN ( - col0 * col2 )
----
10
47
99

query I rowsort
SELECT DISTINCT 87 AS col1 FROM tab0 cor0 CROSS JOIN tab0 WHERE - 37 IS NOT NULL
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4541
SELECT COUNT( * ) FROM tab1 WHERE NOT ( - 90 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4541
SELECT COUNT ( * ) FROM tab1 WHERE NOT ( - 90 ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4542
SELECT COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0
----
9

skipif mysql # not compatible
query I rowsort label-4542
SELECT COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 11 * col2 col2 FROM tab0 AS cor0
----
1089
110
517

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 / col1 + + col0 * + col1 <= NULL
----

query I rowsort
SELECT ALL 89 * - 6 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN 2 AND NULL
----

query I rowsort
SELECT ALL 72 * + 10 AS col1 FROM tab0 AS cor0
----
720
720
720

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 15 NOT BETWEEN ( col0 + + col0 ) AND ( - col1 ) - + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4548
SELECT MAX( - 12 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4548
SELECT MAX ( - 12 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4549
SELECT MIN( + col1 ) DIV - 23 AS col2 FROM tab2
----
-2

skipif mysql # not compatible
query I rowsort label-4549
SELECT MIN ( + col1 ) / - 23 AS col2 FROM tab2
----
-2

query I rowsort
SELECT col0 * - 39 AS col0 FROM tab1
----
-1989
-3315
-3549

onlyif mysql # DIV for integer division: 
query I rowsort label-4551
SELECT + col1 DIV + + col0 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4551
SELECT + col1 / + + col0 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT col0 * col2 * col2 AS col2 FROM tab1
----
295885
420784
470016

query I rowsort
SELECT ALL 79 * col2 * - col0 FROM tab2
----
-202240
-343650
-83582

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4554
SELECT * FROM tab2 WHERE NOT + ( + 92 ) + CAST( col1 - + 82 AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4554
SELECT * FROM tab2 WHERE NOT + ( + 92 ) + CAST ( col1 - + 82 AS REAL ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4555
SELECT + COUNT( * ) col2 FROM tab0 WHERE NOT - col1 NOT IN ( - col0 * + CAST( NULL AS SIGNED ) ) OR NOT ( + 22 ) > NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4555
SELECT + COUNT ( * ) col2 FROM tab0 WHERE NOT - col1 NOT IN ( - col0 * + CAST ( NULL AS INTEGER ) ) OR NOT ( + 22 ) > NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4556
SELECT DISTINCT - COUNT( * ) * - + CAST( NULL AS SIGNED ) / + 59 + + MIN( ALL col2 + 48 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4556
SELECT DISTINCT - COUNT ( * ) * - + CAST ( NULL AS INTEGER ) / + 59 + + MIN ( ALL col2 + 48 ) FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + col0 col0 FROM tab0 AS cor0 WHERE + 55 + 54 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4558
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL = ( + ( - CAST( NULL AS SIGNED ) ) )
----

skipif mysql # not compatible
query III rowsort label-4558
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL = ( + ( - CAST ( NULL AS INTEGER ) ) )
----

query I rowsort
SELECT - col0 + - 66 AS col0 FROM tab0 AS cor0
----
-153
-163
-81

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 24 * + col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4561
SELECT 91 DIV col2 + - 92 FROM tab2
----
-89
-90
-91

skipif mysql # not compatible
query I rowsort label-4561
SELECT 91 / col2 + - 92 FROM tab2
----
-89
-90
-91

query II rowsort
SELECT - 8 AS col1, col1 - 73 * + 70 FROM tab1
----
-8
-5063
-8
-5096
-8
-5105

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 10 * + col1 col1 FROM tab0
----
10
210
810

onlyif mysql # DIV for integer division: 
query I rowsort label-4564
SELECT ALL + ( - col0 ) DIV - col0 AS col2 FROM tab2 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4564
SELECT ALL + ( - col0 ) / - col0 AS col2 FROM tab2 cor0
----
1
1
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4565
SELECT + COUNT( * ) DIV - - ( - - 47 ) * MIN( - 35 ) AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4565
SELECT + COUNT ( * ) / - - ( - - 47 ) * MIN ( - 35 ) AS col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT col0 * - 19 * + 97 AS col1 FROM tab2 AS cor0
----
-117952
-138225
-84778

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( 26 * + - 57 ) NOT BETWEEN NULL AND col1
----

query I rowsort
SELECT ALL - col2 * + 98 FROM tab1 cor0
----
-5782
-6664
-9408

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4569
SELECT - 7 FROM tab1 cor0 WHERE ( CAST( NULL AS SIGNED ) ) BETWEEN 99 AND NULL
----

skipif mysql # not compatible
query I rowsort label-4569
SELECT - 7 FROM tab1 cor0 WHERE ( CAST ( NULL AS INTEGER ) ) BETWEEN 99 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4570
SELECT DISTINCT - col2 AS col2, + col0 * + col2 + CAST( ( col0 ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-10
957
-47
720
-99
9700

skipif mysql # not compatible
query II rowsort label-4570
SELECT DISTINCT - col2 AS col2, + col0 * + col2 + CAST ( ( col0 ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-10
957
-47
720
-99
9700

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 43 * - - col0 IS NULL
----

query I rowsort
SELECT ( - 74 ) AS col1 FROM tab2 AS cor0
----
-74
-74
-74

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 61 + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4574
SELECT SUM( ALL 87 ) + + 29 FROM tab2
----
290

skipif mysql # not compatible
query I rowsort label-4574
SELECT SUM ( ALL 87 ) + + 29 FROM tab2
----
290

onlyif mysql # aggregate syntax: 
query I rowsort label-4575
SELECT ALL + 73 - + 25 - - + COUNT( * ) AS col2 FROM tab0
----
51

skipif mysql # not compatible
query I rowsort label-4575
SELECT ALL + 73 - + 25 - - + COUNT ( * ) AS col2 FROM tab0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4576
SELECT DISTINCT MIN( ALL 91 ) AS col0 FROM tab2 WHERE 84 + - col2 IS NOT NULL AND NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4576
SELECT DISTINCT MIN ( ALL 91 ) AS col0 FROM tab2 WHERE 84 + - col2 IS NOT NULL AND NULL IS NOT NULL
----
NULL

query I rowsort
SELECT ALL col0 + - 9 AS col2 FROM tab2
----
37
55
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 80 - - col0 col1 FROM tab2
----
126
144
155

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4579
SELECT ALL col0 - - + col1 + + col0 + + + col0 + + CAST( col1 AS SIGNED ) DIV - 7 FROM tab1
----
165
260
314

skipif mysql # not compatible
query I rowsort label-4579
SELECT ALL col0 - - + col1 + + col0 + + + col0 + + CAST ( col1 AS INTEGER ) / - 7 FROM tab1
----
165
260
314

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL IN ( + 51 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col2 NOT BETWEEN col2 AND NULL
----

query I rowsort
SELECT DISTINCT - 65 FROM tab1 AS cor0 WHERE NOT 24 NOT BETWEEN ( + 19 + col0 ) AND + col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col1 IN ( + - col2 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 15 + - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT col1 AS col1, - col0 + - col2 AS col2 FROM tab0 cor0
----
1
-196
21
-97
81
-62

query II rowsort
SELECT DISTINCT - col0, - col1 AS col1 FROM tab1 AS cor0
----
-51
-14
-85
-5
-91
-47

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4587
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + 96 * - + CAST( - - 41 AS DECIMAL ) AND + col2
----

skipif mysql # not compatible
query III rowsort label-4587
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + 96 * - + CAST ( - - 41 AS REAL ) AND + col2
----

query II rowsort
SELECT ALL + col1 * + - col0 + - + col2, ( + - col2 ) AS col0 FROM tab0 AS cor0
----
-1262
-47
-1837
-10
-196
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 37 col1, 97 FROM tab2 AS cor0
----
37
97
37
97
37
97

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 * col2 IN ( - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-4591
SELECT + COUNT( * ) AS col2, + MIN( DISTINCT 63 ) AS col0 FROM tab2 AS cor0
----
3
63

skipif mysql # not compatible
query II rowsort label-4591
SELECT + COUNT ( * ) AS col2, + MIN ( DISTINCT 63 ) AS col0 FROM tab2 AS cor0
----
3
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4592
SELECT DISTINCT + 45 * + MAX( DISTINCT col0 ) * + 93 AS col1 FROM tab0 AS cor0
----
405945

skipif mysql # not compatible
query I rowsort label-4592
SELECT DISTINCT + 45 * + MAX ( DISTINCT col0 ) * + 93 AS col1 FROM tab0 AS cor0
----
405945

onlyif mysql # DIV for integer division: 
query I rowsort label-4593
SELECT col0 DIV 45 AS col1 FROM tab0 AS cor0 WHERE NOT + col0 * 69 + - - 96 + - + col0 IS NULL
----
0
1
2

skipif mysql # not compatible
query I rowsort label-4593
SELECT col0 / 45 AS col1 FROM tab0 AS cor0 WHERE NOT + col0 * 69 + - - 96 + - + col0 IS NULL
----
0
1
2

onlyif mysql # aggregate syntax: 
query II rowsort label-4594
SELECT + + 95 * + - MAX( col2 ) AS col1, ( + + 60 ) FROM tab1 AS cor0
----
-9120
60

skipif mysql # not compatible
query II rowsort label-4594
SELECT + + 95 * + - MAX ( col2 ) AS col1, ( + + 60 ) FROM tab1 AS cor0
----
-9120
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 43 col2 FROM tab1 AS cor0
----
43
43
43

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4596
SELECT ALL + CAST( + + 98 AS SIGNED ) DIV + - col1 AS col2 FROM tab2 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4596
SELECT ALL + CAST ( + + 98 AS INTEGER ) / + - col1 AS col2 FROM tab2 cor0
----
-1
-1
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4597
SELECT DISTINCT + 36 DIV 69 + - + 73 FROM tab1 AS cor0
----
-73

skipif mysql # not compatible
query I rowsort label-4597
SELECT DISTINCT + 36 / 69 + - + 73 FROM tab1 AS cor0
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-4598
SELECT - COUNT( * ) * + COUNT( * ) FROM tab2, tab2 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-4598
SELECT - COUNT ( * ) * + COUNT ( * ) FROM tab2, tab2 AS cor0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4599
SELECT DISTINCT + COUNT( * ) FROM tab0 WHERE NOT + + col0 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4599
SELECT DISTINCT + COUNT ( * ) FROM tab0 WHERE NOT + + col0 IS NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 * - col0 * - - col0 * - 72 AS col2, col2 col0 FROM tab1
----
2601000
59
2621808
96
28022904
68

query I rowsort
SELECT ALL - col2 * + col2 * col0 FROM tab0
----
-33135
-8700
-950697

query IIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0 WHERE 78 BETWEEN NULL AND 53 OR NOT NULL IS NOT NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

query I rowsort
SELECT col2 AS col2 FROM tab0 WHERE NOT ( ( NOT ( + 75 / - col0 + 78 * 22 IS NOT NULL ) ) )
----
10
47
99

query I rowsort
SELECT + col1 FROM tab1 cor0 WHERE NOT - 40 * ( - + 18 ) / + - 88 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4605
SELECT ALL - MIN( ( + col0 ) ) + + COUNT( * ) AS col2 FROM tab1
----
-48

skipif mysql # not compatible
query I rowsort label-4605
SELECT ALL - MIN ( ( + col0 ) ) + + COUNT ( * ) AS col2 FROM tab1
----
-48

query I rowsort
SELECT DISTINCT - - 53 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
53

query I rowsort
SELECT DISTINCT col0 + - - ( - 38 ) FROM tab0
----
-23
49
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4608
SELECT DISTINCT + + COUNT( * ) * COUNT( * ) AS col2 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-4608
SELECT DISTINCT + + COUNT ( * ) * COUNT ( * ) AS col2 FROM tab1 AS cor0
----
9

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( 10 <> col2 * col1 + - col0 * - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + col1 + col0 AS col2, - 69 * - col1 FROM tab2 AS cor0
----
141
5313
142
4623
97
3519

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col2 * - col2 * col2 * + + col2 * - - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4612
SELECT DISTINCT + ( COUNT( * ) ) AS col0 FROM tab2 AS cor0 WHERE ( - 90 * + ( + col1 ) * + - 16 * + 50 - - - col2 * + 32 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4612
SELECT DISTINCT + ( COUNT ( * ) ) AS col0 FROM tab2 AS cor0 WHERE ( - 90 * + ( + col1 ) * + - 16 * + 50 - - - col2 * + 32 ) IS NULL
----
0

query I rowsort
SELECT col1 * ( + col0 ) AS col1 FROM tab0
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4614
SELECT + SUM( - + 88 ) col1 FROM tab2
----
-264

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4614
SELECT + SUM ( - + 88 ) col1 FROM tab2
----
-264

query I rowsort
SELECT DISTINCT col0 + + - col2 - + col0 AS col2 FROM tab2
----
-23
-40
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4616
SELECT ALL - CAST( NULL AS SIGNED ) - + COUNT( * ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4616
SELECT ALL - CAST ( NULL AS INTEGER ) - + COUNT ( * ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT col0 - + + 86 + + 99 FROM tab0
----
100
110
28

query II rowsort
SELECT col1, 5 AS col0 FROM tab1
----
14
5
47
5
5
5

query I rowsort
SELECT - 93 - 61 AS col1 FROM tab2
----
-154
-154
-154

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4620
SELECT + 60 - - + CAST( - 4 AS SIGNED ) FROM tab0
----
56
56
56

skipif mysql # not compatible
query I rowsort label-4620
SELECT + 60 - - + CAST ( - 4 AS INTEGER ) FROM tab0
----
56
56
56

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col0 NOT BETWEEN + 6 - col1 AND col1 + col2
----
64
77
40

query I rowsort
SELECT ALL - col2 * + 6 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-354
-408
-576

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4623
SELECT + 32 DIV COUNT( * ) FROM tab2
----
10

skipif mysql # not compatible
query I rowsort label-4623
SELECT + 32 / COUNT ( * ) FROM tab2
----
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 82 col2 FROM tab2, tab2 AS cor0
----
82

query I rowsort
SELECT ALL 47 * - col1 AS col0 FROM tab2 AS cor0
----
-2397
-3149
-3619

query I rowsort
SELECT DISTINCT - + col0 * - ( col2 ) FROM tab1 AS cor0
----
4896
5015
6188

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 / col0 * + col2 / col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4628
SELECT 15 * + - 4 FROM tab2 AS cor0 WHERE NOT ( - col0 * + + CAST( NULL AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-4628
SELECT 15 * + - 4 FROM tab2 AS cor0 WHERE NOT ( - col0 * + + CAST ( NULL AS INTEGER ) ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4629
SELECT + + MAX( - CAST( - - col1 AS SIGNED ) ) * - CAST( NULL AS SIGNED ) + - 56 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4629
SELECT + + MAX ( - CAST ( - - col1 AS INTEGER ) ) * - CAST ( NULL AS INTEGER ) + - 56 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ( + col2 ) * 5 FROM tab2 AS cor0
----
115
200
290

onlyif mysql # aggregate syntax: 
query I rowsort label-4631
SELECT COUNT( DISTINCT - + col2 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4631
SELECT COUNT ( DISTINCT - + col2 ) AS col0 FROM tab2
----
3

query I rowsort
SELECT ALL + 99 AS col2 FROM tab0 WHERE NOT + - col2 * 91 IS NULL
----
99
99
99

query I rowsort
SELECT DISTINCT col2 * ( - - col1 ) AS col2 FROM tab0
----
210
3807
99

query I rowsort
SELECT - col1 * - + 94 * 27 AS col0 FROM tab1
----
119286
12690
35532

onlyif mysql # aggregate syntax: 
query I rowsort label-4635
SELECT ALL COUNT( * ) * - - ( + MIN( + col1 ) ) FROM tab2
----
153

skipif mysql # not compatible
query I rowsort label-4635
SELECT ALL COUNT ( * ) * - - ( + MIN ( + col1 ) ) FROM tab2
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-4636
SELECT DISTINCT - MAX( DISTINCT + col2 ) AS col1 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-4636
SELECT DISTINCT - MAX ( DISTINCT + col2 ) AS col1 FROM tab2 AS cor0
----
-58

query I rowsort
SELECT - col0 + + 91 AS col2 FROM tab2 AS cor0
----
16
27
45

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE - col1 * - - col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4639
SELECT DISTINCT + - CAST( + col1 AS SIGNED ) * + 85 FROM tab1 AS cor0 WHERE - 31 < col2 + - col2
----
-1190
-3995
-425

skipif mysql # not compatible
query I rowsort label-4639
SELECT DISTINCT + - CAST ( + col1 AS INTEGER ) * + 85 FROM tab1 AS cor0 WHERE - 31 < col2 + - col2
----
-1190
-3995
-425

query I rowsort
SELECT 95 + - + 69 FROM tab0 cor0
----
26
26
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4641
SELECT ALL col1 - + - CAST( col2 AS SIGNED ) FROM tab2 AS cor0
----
117
125
74

skipif mysql # not compatible
query I rowsort label-4641
SELECT ALL col1 - + - CAST ( col2 AS INTEGER ) FROM tab2 AS cor0
----
117
125
74

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4642
SELECT + + col0 * + CAST( NULL AS DECIMAL ) * - + col2 - - - col1, + col2 AS col2 FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-4642
SELECT + + col0 * + CAST ( NULL AS REAL ) * - + col2 - - - col1, + col2 AS col2 FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

query I rowsort
SELECT col0 - - 99 FROM tab2 AS cor0
----
145
163
174

query III rowsort
SELECT * FROM tab2 cor0 WHERE + 7 * + + 26 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4645
SELECT DISTINCT + SUM( - 33 ) AS col2 FROM tab2 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-4645
SELECT DISTINCT + SUM ( - 33 ) AS col2 FROM tab2 AS cor0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4646
SELECT 51 - MAX( ALL + - col0 ) FROM tab0 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-4646
SELECT 51 - MAX ( ALL + - col0 ) FROM tab0 AS cor0
----
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + 9 AS col1, + col0 col2 FROM tab2 AS cor0
----
-9
46
-9
64
-9
75

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL > + - col2 AND col0 IS NOT NULL
----

query I rowsort
SELECT - col1 + + col1 + - 6 AS col0 FROM tab0 cor0
----
-6
-6
-6

query I rowsort
SELECT - - 95 + 80 AS col0 FROM tab2 cor0
----
175
175
175

query I rowsort
SELECT - - 38 AS col0 FROM tab0 WHERE ( NOT ( NULL ) > + - col0 )
----

query I rowsort
SELECT col2 + + 23 + col1 AS col1 FROM tab2
----
140
148
97

query I rowsort
SELECT - col1 + + col2 + + col0 * - 39 FROM tab1
----
-1907
-3261
-3528

query I rowsort
SELECT ALL col0 / + col2 AS col0 FROM tab0 WHERE - - col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4655
SELECT DISTINCT - col2 DIV col1 * col1 DIV + - 9 AS col0 FROM tab0 AS cor0
----
0
11

skipif mysql # not compatible
query I rowsort label-4655
SELECT DISTINCT - col2 / col1 * col1 / + - 9 AS col0 FROM tab0 AS cor0
----
0
11

query I rowsort
SELECT - - ( + col0 ) * + col0 AS col0 FROM tab1 AS cor0
----
2601
7225
8281

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4657
SELECT - + CAST( + + AVG ( - 84 ) AS SIGNED ) col1, COUNT( * ) AS col1 FROM tab0 AS cor0
----
84
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4657
SELECT - + CAST ( + + AVG ( - 84 ) AS INTEGER ) col1, COUNT ( * ) AS col1 FROM tab0 AS cor0
----
84
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4658
SELECT DISTINCT - COUNT( - - col1 ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4658
SELECT DISTINCT - COUNT ( - - col1 ) FROM tab2 cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2, 20 col0 FROM tab2
----
23
20
40
20
58
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4660
SELECT DISTINCT - + SUM( + col2 ) FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-4660
SELECT DISTINCT - + SUM ( + col2 ) FROM tab2 AS cor0
----
-121

onlyif mysql # aggregate syntax: 
query II rowsort label-4661
SELECT + COUNT( * ) AS col0, 30 FROM tab2 AS cor0
----
3
30

skipif mysql # not compatible
query II rowsort label-4661
SELECT + COUNT ( * ) AS col0, 30 FROM tab2 AS cor0
----
3
30

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 64 IS NOT NULL
----

query II rowsort
SELECT + 19, - col0 AS col2 FROM tab1 cor0
----
19
-51
19
-85
19
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4664
SELECT - ( - CAST( NULL AS SIGNED ) ) * - 43 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4664
SELECT - ( - CAST ( NULL AS INTEGER ) ) * - 43 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + 89 + 66 AS col2 FROM tab1 AS cor0
----
155
155
155

query I rowsort
SELECT + - col2 + - - 63 AS col2 FROM tab2 cor0
----
23
40
5

query I rowsort
SELECT + - col1 * - - col0 * - + col2 * col1 + + 42 + + col2 FROM tab0 AS cor0
----
383722
4625594
9744

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + col2 = + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4669
SELECT DISTINCT col0 * + - 75 + 39 * + col1 + - CAST( NULL AS SIGNED ) * - 80 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4669
SELECT DISTINCT col0 * + - 75 + 39 * + col1 + - CAST ( NULL AS INTEGER ) * - 80 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4670
SELECT DISTINCT * FROM tab1 WHERE NOT ( - + 5 ) IN ( - col1, + 78, - col2 * CAST( 11 AS SIGNED ) )
----
51
14
96
91
47
68

skipif mysql # not compatible
query III rowsort label-4670
SELECT DISTINCT * FROM tab1 WHERE NOT ( - + 5 ) IN ( - col1, + 78, - col2 * CAST ( 11 AS INTEGER ) )
----
51
14
96
91
47
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + - col1 ) col0 FROM tab1
----
-14
-47
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4672
SELECT + col1 * + col0 / CAST( NULL AS SIGNED ) / - col2 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4672
SELECT + col1 * + col0 / CAST ( NULL AS INTEGER ) / - col2 AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4673
SELECT - COUNT( * ) * 72 AS col1, - MAX( + col1 ) FROM tab2
----
-216
-77

skipif mysql # not compatible
query II rowsort label-4673
SELECT - COUNT ( * ) * 72 AS col1, - MAX ( + col1 ) FROM tab2
----
-216
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4674
SELECT ALL - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NULL <= 21
----
0

skipif mysql # not compatible
query I rowsort label-4674
SELECT ALL - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NULL <= 21
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4675
SELECT DISTINCT - - col2 + - + CAST( col0 AS SIGNED ) + + col2 AS col0 FROM tab2 AS cor0
----
0
16
41

skipif mysql # not compatible
query I rowsort label-4675
SELECT DISTINCT - - col2 + - + CAST ( col0 AS INTEGER ) + + col2 AS col0 FROM tab2 AS cor0
----
0
16
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4676
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab1 WHERE NOT NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-4676
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab1 WHERE NOT NULL <> NULL
----
0

query I rowsort
SELECT - col2 FROM tab0 WHERE NULL IN ( - 21 )
----

query I rowsort
SELECT - 27 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 90b76caf54a4e48ee4a9784f52997a6a

query III rowsort
SELECT * FROM tab1 WHERE + 11 NOT IN ( + + ( - + ( col2 ) ) - + col1 - 59 * + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 23 - - 37 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
60

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 / + 2 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 36 <= col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 36 - 75 FROM tab2 AS cor0
----
-39

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4684
SELECT DISTINCT + + ( + - 17 ) * - COUNT( * ) + + - CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4684
SELECT DISTINCT + + ( + - 17 ) * - COUNT ( * ) + + - CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 73 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col1 + - + 23 FROM tab2 cor0
----
28
44
54

query I rowsort
SELECT + col0 * + + 62 FROM tab2 cor0
----
2852
3968
4650

onlyif mysql # aggregate syntax: 
query I rowsort label-4688
SELECT DISTINCT - COUNT( * ) FROM tab1 WHERE NOT NULL > NULL AND + + col0 * - - ( - col1 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4688
SELECT DISTINCT - COUNT ( * ) FROM tab1 WHERE NOT NULL > NULL AND + + col0 * - - ( - col1 ) IS NOT NULL
----
0

query II rowsort
SELECT + col0, - 78 FROM tab2
----
46
-78
64
-78
75
-78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4690
SELECT DISTINCT - COUNT( * ) DIV + 68 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4690
SELECT DISTINCT - COUNT ( * ) / + 68 AS col0 FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 AS col1, + col0 col2 FROM tab0
----
1
97
21
87
81
15

onlyif mysql # DIV for integer division: 
query II rowsort label-4692
SELECT ALL col2, col1 DIV 56 AS col1 FROM tab2
----
23
0
40
1
58
1

skipif mysql # not compatible
query II rowsort label-4692
SELECT ALL col2, col1 / 56 AS col1 FROM tab2
----
23
0
40
1
58
1

query III rowsort
SELECT * FROM tab2 WHERE NOT 6 - - + col2 * - 42 / + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4694
SELECT ALL CAST( - - CAST( NULL AS SIGNED ) AS DECIMAL ) col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4694
SELECT ALL CAST ( - - CAST ( NULL AS INTEGER ) AS REAL ) col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4695
SELECT 82 DIV + - col0 AS col1 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4695
SELECT 82 / + - col0 AS col1 FROM tab1
----
-1
0
0

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE NOT col1 = 10 * + col0 + + + col2 + + 61 * 99 + col2
----
59
68
96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - + col1 * col1 AND - + col1 / + 73
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4698
SELECT DISTINCT - MIN( + 96 ) FROM tab2 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-4698
SELECT DISTINCT - MIN ( + 96 ) FROM tab2 AS cor0
----
-96

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 * 78 * 66 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col1 + col0 * - col2 AS col1 FROM tab0
----
-624
-849
-9602

query I rowsort
SELECT 17 AS col2 FROM tab2 WHERE - col1 * + col2 + - 85 + 86 / col0 IS NOT NULL
----
17
17
17

onlyif mysql # aggregate syntax: 
query II rowsort label-4702
SELECT - COUNT( * ) AS col1, + ( + COUNT( * ) ) col0 FROM tab0
----
-3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4702
SELECT - COUNT ( * ) AS col1, + ( + COUNT ( * ) ) col0 FROM tab0
----
-3
3

query I rowsort
SELECT ( ( + + 90 ) ) AS col0 FROM tab1
----
90
90
90

query III rowsort
SELECT ALL * FROM tab2 WHERE - 78 > - + col1 / + col1
----

query I rowsort
SELECT + 72 + - 14 AS col1 FROM tab2
----
58
58
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4706
SELECT DISTINCT COUNT( + - col2 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4706
SELECT DISTINCT COUNT ( + - col2 ) AS col2 FROM tab1
----
3

query I rowsort
SELECT col1 + - col1 + + col0 FROM tab0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4708
SELECT + COUNT( * ) AS col2 FROM tab2 WHERE ( NOT NULL IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-4708
SELECT + COUNT ( * ) AS col2 FROM tab2 WHERE ( NOT NULL IS NULL )
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 + - ( - col1 ) BETWEEN - col0 AND - ( 92 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col2 * col2 + col0 * col0 + - col1 FROM tab1 cor0
----
-6629
3610
3739

query I rowsort
SELECT ALL - ( - 30 ) AS col0 FROM tab1 cor0
----
30
30
30

query I rowsort
SELECT + + col2 + - col2 + - col0 FROM tab0 AS cor0
----
-15
-87
-97

query I rowsort
SELECT DISTINCT col0 + + - 74 * + + col1 FROM tab0
----
-1467
-5979
23

query I rowsort
SELECT - - col2 - - - ( + + col0 ) + + - col0 AS col2 FROM tab2 AS cor0
----
-69
-88
-92

query I rowsort
SELECT + 80 - - col1 FROM tab1 AS cor0
----
127
85
94

query I rowsort
SELECT DISTINCT + col2 FROM tab0 AS cor0 WHERE 72 IS NULL
----

query I rowsort
SELECT - col2 - + + col0 FROM tab2 AS cor0
----
-104
-133
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-4718
SELECT ALL COUNT( DISTINCT - - 40 ) * + ( + 65 ) FROM tab2 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-4718
SELECT ALL COUNT ( DISTINCT - - 40 ) * + ( + 65 ) FROM tab2 AS cor0
----
65

query I rowsort
SELECT - col1 * + + col0 + + col0 AS col0 FROM tab1 cor0
----
-340
-4186
-663

onlyif mysql # aggregate syntax: 
query I rowsort label-4720
SELECT + COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( NOT ( - + col2 + col1 ) IS NOT NULL )
----
3

skipif mysql # not compatible
query I rowsort label-4720
SELECT + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( NOT ( - + col2 + col1 ) IS NOT NULL )
----
3

query III rowsort
SELECT ALL * FROM tab2 WHERE + col0 = + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4722
SELECT DISTINCT 84 DIV + 47 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-4722
SELECT DISTINCT 84 / + 47 FROM tab2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4723
SELECT - CAST( 85 AS SIGNED ) AS col2 FROM tab2
----
-85
-85
-85

skipif mysql # not compatible
query I rowsort label-4723
SELECT - CAST ( 85 AS INTEGER ) AS col2 FROM tab2
----
-85
-85
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-4724
SELECT DISTINCT SUM( col0 ) col0 FROM tab2
----
185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4724
SELECT DISTINCT SUM ( col0 ) col0 FROM tab2
----
185

query I rowsort
SELECT ALL + col0 * - + 59 AS col2 FROM tab2 cor0
----
-2714
-3776
-4425

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4726
SELECT + CAST( - - col0 AS SIGNED ) FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-4726
SELECT + CAST ( - - col0 AS INTEGER ) FROM tab2 AS cor0
----
46
64
75

query II rowsort
SELECT + col0 AS col2, col2 * + ( + 96 ) * + col1 * 89 AS col0 FROM tab0 AS cor0
----
15
32527008
87
1794240
97
845856

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 41 NOT BETWEEN col2 * - + col2 * - col2 + - col2 + - + 57 + - 85 / - ( - col2 ) AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 66 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
66

query I rowsort
SELECT DISTINCT - + 43 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-43

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 NOT IN ( - col2 )
----

query II rowsort
SELECT ALL - 51, col2 AS col2 FROM tab1
----
-51
59
-51
68
-51
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * 88 col0 FROM tab0
----
1848
7128
88

query I rowsort
SELECT - + 51 AS col2 FROM tab1 AS cor0 WHERE NOT 26 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4735
SELECT DISTINCT COUNT( * ) + - 78 AS col1 FROM tab1 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-4735
SELECT DISTINCT COUNT ( * ) + - 78 AS col1 FROM tab1 AS cor0
----
-75

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 * + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - + 65 AS col2 FROM tab1 cor0
----
-65

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN ( NULL ) AND - col2
----

query I rowsort
SELECT ALL - + col1 + - col2 AS col2 FROM tab0 cor0
----
-100
-128
-31

query III rowsort
SELECT * FROM tab1 WHERE col2 / - col0 + + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - ( + 8 ) col1, + col0 AS col1 FROM tab2
----
-8
46
-8
64
-8
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4742
SELECT CAST( 36 AS SIGNED ) * - 10 col2 FROM tab1
----
-360
-360
-360

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4742
SELECT CAST ( 36 AS INTEGER ) * - 10 col2 FROM tab1
----
-360
-360
-360

onlyif mysql # aggregate syntax: 
query II rowsort label-4743
SELECT MAX( DISTINCT - 59 ), - 1 AS col1 FROM tab0
----
-59
-1

skipif mysql # not compatible
query II rowsort label-4743
SELECT MAX ( DISTINCT - 59 ), - 1 AS col1 FROM tab0
----
-59
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4744
SELECT DISTINCT - 77 DIV - + col1 AS col0 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4744
SELECT DISTINCT - 77 / - + col1 AS col0 FROM tab2 AS cor0
----
1

query I rowsort
SELECT - + 96 AS col1 FROM tab2 AS cor0 WHERE col2 - 54 - + + col0 IS NOT NULL
----
-96
-96
-96

query I rowsort
SELECT ALL + + ( col1 ) + - + 70 / - col0 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND + col2 * + col2 / + - col2 + col0 + + col1
----

query I rowsort
SELECT - col0 + + - col0 * - ( - + col2 ) FROM tab0
----
-720
-957
-9700

query II rowsort
SELECT - col0 AS col2, - col1 FROM tab1 AS cor0
----
-51
-14
-85
-5
-91
-47

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4749
SELECT CAST( NULL AS DECIMAL ) col1, 85 AS col2 FROM tab1 AS cor0
----
NULL
85
NULL
85
NULL
85

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4749
SELECT CAST ( NULL AS REAL ) col1, 85 AS col2 FROM tab1 AS cor0
----
NULL
85
NULL
85
NULL
85

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND + - col2
----

query I rowsort
SELECT ALL 66 * - - col1 FROM tab0 AS cor0
----
1386
5346
66

query II rowsort
SELECT + col1 AS col1, 83 AS col2 FROM tab1 AS cor0
----
14
83
47
83
5
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4753
SELECT - CAST( MAX( DISTINCT + col2 ) AS SIGNED ) DIV + COUNT( ALL - col1 ) FROM tab1
----
-32

skipif mysql # not compatible
query I rowsort label-4753
SELECT - CAST ( MAX ( DISTINCT + col2 ) AS INTEGER ) / + COUNT ( ALL - col1 ) FROM tab1
----
-32

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT col0 * - 43 < + - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4755
SELECT ALL CAST( NULL AS SIGNED ) * col0 * - 8 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4755
SELECT ALL CAST ( NULL AS INTEGER ) * col0 * - 8 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4756
SELECT ALL - col1 DIV + + 44 AS col2 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4756
SELECT ALL - col1 / + + 44 AS col2 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT DISTINCT 97 * + + col1 AS col0 FROM tab0 AS cor0
----
2037
7857
97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - 79 ) / - 46 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT 61 * ( col0 ), + col0 * col2 * - + col1 + - 98 - + col0 * col2 * + 76 + 56 FROM tab2 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL 66 * + col2 AS col0 FROM tab0
----
3102
6534
660

query I rowsort
SELECT DISTINCT + 81 FROM tab2 WHERE NOT 59 * col0 + ( + + col2 ) - col2 BETWEEN NULL AND + - 14
----
81

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col1 IN ( - col2 + - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col2 * - col0 AS col1 FROM tab2 AS cor0 WHERE NULL <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4764
SELECT - COUNT( * ) AS col1, COUNT( * ) FROM tab2 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-4764
SELECT - COUNT ( * ) AS col1, COUNT ( * ) FROM tab2 AS cor0
----
-3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4765
SELECT ALL + - COUNT( * ) * + 50 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-150

skipif mysql # not compatible
query I rowsort label-4765
SELECT ALL + - COUNT ( * ) * + 50 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-150

query I rowsort
SELECT 93 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4767
SELECT DISTINCT + CAST( - - col0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-4767
SELECT DISTINCT + CAST ( - - col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
51
85
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4768
SELECT ALL - 29 * + + CAST( NULL AS SIGNED ) + - MIN( 10 ) - - COUNT( - col1 ) AS col0, ( COUNT( * ) ) AS col0 FROM tab2
----
NULL
3

skipif mysql # not compatible
query II rowsort label-4768
SELECT ALL - 29 * + + CAST ( NULL AS INTEGER ) + - MIN ( 10 ) - - COUNT ( - col1 ) AS col0, ( COUNT ( * ) ) AS col0 FROM tab2
----
NULL
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4769
SELECT col0 * + CAST( NULL AS SIGNED ) + + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4769
SELECT col0 * + CAST ( NULL AS INTEGER ) + + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4770
SELECT COUNT( - 67 ) + COUNT( * ) FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-4770
SELECT COUNT ( - 67 ) + COUNT ( * ) FROM tab1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4771
SELECT ALL COUNT( * ) + 44 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-4771
SELECT ALL COUNT ( * ) + 44 FROM tab1
----
47

query II rowsort
SELECT DISTINCT 61 AS col0, + col2 FROM tab2
----
61
23
61
40
61
58

onlyif mysql # DIV for integer division: 
query I rowsort label-4773
SELECT - col1 DIV - + 20 AS col1 FROM tab2 cor0
----
2
3
3

skipif mysql # not compatible
query I rowsort label-4773
SELECT - col1 / - + 20 AS col1 FROM tab2 cor0
----
2
3
3

query II rowsort
SELECT + col2, 8 FROM tab2 AS cor0
----
23
8
40
8
58
8

query II rowsort
SELECT DISTINCT - col2 + col2 + - 56 + - col0 * - 16 * col1 AS col1, + col2 AS col0 FROM tab2 AS cor0
----
37480
23
78792
40
80344
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 26 + 33 * - 74 col1 FROM tab1 AS cor0
----
-2468
-2468
-2468

query I rowsort
SELECT ALL + 64 * - - 99 FROM tab2 cor0 WHERE NOT ( NULL ) = - ( col0 ) + + 59
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4778
SELECT + - 95 * + - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4778
SELECT + - 95 * + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4779
SELECT + SUM( ALL 18 ) AS col2 FROM tab1 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-4779
SELECT + SUM ( ALL 18 ) AS col2 FROM tab1 AS cor0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4780
SELECT + + MAX( ALL - + col0 ) * + 43 - - + 33 AS col1 FROM tab2 AS cor0
----
-1945

skipif mysql # not compatible
query I rowsort label-4780
SELECT + + MAX ( ALL - + col0 ) * + 43 - - + 33 AS col1 FROM tab2 AS cor0
----
-1945

query I rowsort
SELECT DISTINCT 29 * - + col1 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col2 * + col0 * + 56 FROM tab1 AS cor0
----
274176
280840
346528

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - - 19 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4784
SELECT DISTINCT COUNT( * ) * + 94 AS col2 FROM tab0
----
282

skipif mysql # not compatible
query I rowsort label-4784
SELECT DISTINCT COUNT ( * ) * + 94 AS col2 FROM tab0
----
282

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 38 * col0 col0 FROM tab2
----
-1748
-2432
-2850

query I rowsort
SELECT DISTINCT + col0 * - + col2 FROM tab2
----
-1058
-2560
-4350

query I rowsort
SELECT DISTINCT col0 + col0 + + col0 * - + col2 * + - col1 AS col2 FROM tab1 AS cor0
----
25245
291018
68646

query I rowsort
SELECT DISTINCT col2 * + 79 + + + col2 FROM tab0 AS cor0
----
3760
7920
800

onlyif mysql # aggregate syntax: 
query I rowsort label-4789
SELECT ALL - ( + 0 ) + + + COUNT( * ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4789
SELECT ALL - ( + 0 ) + + + COUNT ( * ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4790
SELECT ALL ( - COUNT( DISTINCT + - ( col1 ) ) ) col0 FROM tab1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4790
SELECT ALL ( - COUNT ( DISTINCT + - ( col1 ) ) ) col0 FROM tab1
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 + + 69 AS col2, + ( col0 ) + + col2 + + col0 + + col2 * + col2 col0 FROM tab2
----
109
1768
127
3572
92
644

query I rowsort
SELECT DISTINCT col2 * 27 AS col2 FROM tab0
----
1269
2673
270

query I rowsort
SELECT - col0 * + col2 + - + col1 + - col1 AS col1 FROM tab1
----
-4924
-5025
-6282

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 IN ( - col2, - col0 / col0, - - col1, - + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col1 BETWEEN + 72 * - col0 + - + col1 * col1 AND + 28
----
91
47
68

query I rowsort
SELECT - 20 + + col1 AS col2 FROM tab0 AS cor0
----
-19
1
61

query I rowsort
SELECT + 29 * - col2 * ( + col2 ) + - 81 - + col0 * + col2 * + + 42 FROM tab2 cor0
----
-154001
-280337
-59858

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - 82 ) + + + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE + - 19 / - 91 + - 47 + + col1 >= + col1 + - + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 FROM tab0 WHERE - - col1 + 32 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4801
SELECT ALL - col0 + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4801
SELECT ALL - col0 + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 5 - + - 18 + 20 + - 46 * col1 col1 FROM tab1
----
-197
-2129
-611

onlyif mysql # aggregate syntax: 
query I rowsort label-4803
SELECT + MIN( col1 ) - - COUNT( * ) FROM tab2
----
54

skipif mysql # not compatible
query I rowsort label-4803
SELECT + MIN ( col1 ) - - COUNT ( * ) FROM tab2
----
54

query I rowsort
SELECT DISTINCT col0 - - - col2 - - ( - 4 ) FROM tab0 AS cor0
----
-36
-6
73

onlyif mysql # aggregate syntax: 
query I rowsort label-4805
SELECT ALL - MAX( + col2 ) - + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-61

skipif mysql # not compatible
query I rowsort label-4805
SELECT ALL - MAX ( + col2 ) - + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 col1, 90 AS col1 FROM tab1 cor0
----
51
90
85
90
91
90

query I rowsort
SELECT DISTINCT - 72 FROM tab2 AS cor0 WHERE NOT + 81 * - + ( 84 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - + col2 <> col1 - - - col1 * + + col1 / + + 90
----

query I rowsort
SELECT DISTINCT + - 1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-4810
SELECT DISTINCT - COUNT( * ), - 61 * - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-3
183

skipif mysql # not compatible
query II rowsort label-4810
SELECT DISTINCT - COUNT ( * ), - 61 * - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-3
183

query II rowsort
SELECT DISTINCT + + col0, + col2 AS col2 FROM tab0 AS cor0
----
15
47
87
10
97
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4812
SELECT ALL * FROM tab0 AS cor0 WHERE ( col0 * + CAST( - col2 AS SIGNED ) * col1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4812
SELECT ALL * FROM tab0 AS cor0 WHERE ( col0 * + CAST ( - col2 AS INTEGER ) * col1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 98 * + col2 + - col1 * - col0 * col0 FROM tab1 AS cor0
----
395871
41907
45822

onlyif mysql # aggregate syntax: 
query I rowsort label-4814
SELECT DISTINCT + + COUNT( - col0 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4814
SELECT DISTINCT + + COUNT ( - col0 ) AS col2 FROM tab1 AS cor0
----
3

query II rowsort
SELECT DISTINCT + col0 AS col0, col0 + col0 * + ( col1 ) * - col2 + col0 AS col2 FROM tab0 AS cor0
----
15
-57075
87
-18096
97
-9409

onlyif mysql # aggregate syntax: 
query I rowsort label-4816
SELECT + COUNT( * ) * + + MAX( DISTINCT 56 ) * + - 19 FROM tab2 AS cor0
----
-3192

skipif mysql # not compatible
query I rowsort label-4816
SELECT + COUNT ( * ) * + + MAX ( DISTINCT 56 ) * + - 19 FROM tab2 AS cor0
----
-3192

onlyif mysql # DIV for integer division: 
query II rowsort label-4817
SELECT - col0 * col2 DIV + col0, 25 DIV + col2 col1 FROM tab0
----
-10
2
-47
0
-99
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4817
SELECT - col0 * col2 / + col0, 25 / + col2 col1 FROM tab0
----
-10
2
-47
0
-99
0

query I rowsort
SELECT col1 * - 11 * - col0 AS col0 FROM tab1
----
4675
47047
7854

query I rowsort
SELECT 36 * + + col2 FROM tab2
----
1440
2088
828

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 6 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4821
SELECT DISTINCT + MIN( DISTINCT + col0 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4821
SELECT DISTINCT + MIN ( DISTINCT + col0 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4822
SELECT 20 DIV + 33 - - + 9 + + CAST( COUNT( * ) AS SIGNED ) + 82 col1 FROM tab0 AS cor0
----
94

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4822
SELECT 20 / + 33 - - + 9 + + CAST ( COUNT ( * ) AS INTEGER ) + 82 col1 FROM tab0 AS cor0
----
94

query I rowsort
SELECT DISTINCT + ( + col2 ) + - col0 AS col2 FROM tab2 cor0
----
-17
-23
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-4824
SELECT + 29 + SUM( ALL + col0 ) AS col2 FROM tab2 AS cor0
----
214

skipif mysql # not compatible
query I rowsort label-4824
SELECT + 29 + SUM ( ALL + col0 ) AS col2 FROM tab2 AS cor0
----
214

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4825
SELECT + CAST( NULL AS DECIMAL ) + - + 90 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4825
SELECT + CAST ( NULL AS REAL ) + - + 90 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 * - col2 + - - 1 FROM tab1 WHERE ( ( + 74 >= NULL ) )
----

query III rowsort
SELECT * FROM tab0 WHERE - 39 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 40 AS col2, - 91 col1 FROM ( tab1 AS cor0 CROSS JOIN tab1 cor1 )
----
18 values hashing to 8fa8e88c029c899bab446972d9d45790

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4829
SELECT + CAST( NULL AS SIGNED ) AS col0, col0 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-4829
SELECT + CAST ( NULL AS INTEGER ) AS col0, col0 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4830
SELECT DISTINCT - SUM( 58 ) AS col2 FROM tab2 cor0
----
-174

skipif mysql # not compatible
query I rowsort label-4830
SELECT DISTINCT - SUM ( 58 ) AS col2 FROM tab2 cor0
----
-174

query I rowsort
SELECT DISTINCT + 75 + + col1 * - col2 * - - col0 FROM tab1 AS cor0
----
-25000
-290761
-68469

query II rowsort
SELECT ALL + - 69, + col2 FROM tab1 AS cor0
----
-69
59
-69
68
-69
96

query I rowsort
SELECT - 9 * - 51 FROM tab2 AS cor0 WHERE col2 NOT BETWEEN - col0 / + ( + col0 ) * - 95 * + + col1 AND + 13 * - 13
----
459
459
459

query I rowsort
SELECT + ( - 83 ) + col2 + col0 + - col0 * + col1 FROM tab1 AS cor0
----
-364
-4201
-650

onlyif mysql # aggregate syntax: 
query I rowsort label-4835
SELECT ALL 79 + - 38 * - - COUNT( * ) FROM tab0 AS cor0
----
-35

skipif mysql # not compatible
query I rowsort label-4835
SELECT ALL 79 + - 38 * - - COUNT ( * ) FROM tab0 AS cor0
----
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-4836
SELECT - col0 + + ( - + col1 ) + - col0 - + 62 * col0 * + col2 DIV - - col2 AS col2 FROM tab1
----
-3278
-5445
-5871

skipif mysql # not compatible
query I rowsort label-4836
SELECT - col0 + + ( - + col1 ) + - col0 - + 62 * col0 * + col2 / - - col2 AS col2 FROM tab1
----
-3278
-5445
-5871

query I rowsort
SELECT DISTINCT col0 + + 84 AS col1 FROM tab2
----
130
148
159

query I rowsort
SELECT ALL - 77 + + 19 AS col1 FROM tab1
----
-58
-58
-58

query I rowsort
SELECT ( col0 ) AS col2 FROM tab2 WHERE + 83 NOT BETWEEN ( col1 ) AND + col2
----
46
64
75

query I rowsort
SELECT ALL - col2 + + + col1 AS col2 FROM tab2
----
28
37
9

onlyif mysql # DIV for integer division: 
query I rowsort label-4841
SELECT + col1 * 58 DIV - 98 FROM tab2 AS cor0
----
-30
-39
-45

skipif mysql # not compatible
query I rowsort label-4841
SELECT + col1 * 58 / - 98 FROM tab2 AS cor0
----
-30
-39
-45

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4842
SELECT ALL - col1 DIV - col2, - CAST( col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
1
-64
1
-75
2
-46

skipif mysql # not compatible
query II rowsort label-4842
SELECT ALL - col1 / - col2, - CAST ( col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
1
-64
1
-75
2
-46

query I rowsort
SELECT DISTINCT + col1 * ( - 11 ) AS col2 FROM tab0
----
-11
-231
-891

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 45 + + 8 col1 FROM ( tab0 AS cor0 CROSS JOIN tab0 cor1 )
----
9 values hashing to fede6033dee346dbd272085c05724fda

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4845
SELECT DISTINCT - CAST( - col1 AS SIGNED ) * 8 + - col2 AS col1 FROM tab1 AS cor0
----
-19
16
308

skipif mysql # not compatible
query I rowsort label-4845
SELECT DISTINCT - CAST ( - col1 AS INTEGER ) * 8 + - col2 AS col1 FROM tab1 AS cor0
----
-19
16
308

onlyif mysql # aggregate syntax: 
query I rowsort label-4846
SELECT + + MIN( DISTINCT + + col2 ) AS col0 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-4846
SELECT + + MIN ( DISTINCT + + col2 ) AS col0 FROM tab2 AS cor0
----
23

query I rowsort
SELECT + ( + 51 ) FROM tab1 cor0
----
51
51
51

query I rowsort
SELECT DISTINCT + + col0 * 75 FROM tab1 AS cor0
----
3825
6375
6825

onlyif mysql # aggregate syntax: 
query I rowsort label-4849
SELECT - + COUNT( * ) * + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4849
SELECT - + COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-4850
SELECT DISTINCT + 62 DIV col0 FROM tab0 AS cor0
----
0
4

skipif mysql # not compatible
query I rowsort label-4850
SELECT DISTINCT + 62 / col0 FROM tab0 AS cor0
----
0
4

query I rowsort
SELECT ALL + + col0 * + - col2 FROM tab2 AS cor0 WHERE col2 + - + col1 BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 76 ) col2 FROM tab1 AS cor0
----
-76
-76
-76

onlyif mysql # aggregate syntax: 
query II rowsort label-4853
SELECT COUNT( * ), + MIN( - col1 ) AS col2 FROM tab2 AS cor0
----
3
-77

skipif mysql # not compatible
query II rowsort label-4853
SELECT COUNT ( * ), + MIN ( - col1 ) AS col2 FROM tab2 AS cor0
----
3
-77

query II rowsort
SELECT - 15 AS col2, 50 FROM tab1, tab2 AS cor0
----
18 values hashing to a84e01507f5ac2681f183302cf001f09

query I rowsort
SELECT - + 48 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-48
-48
-48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 / + 20 col0 FROM tab1 WHERE NOT ( 0 <= ( + col1 ) )
----

query II rowsort
SELECT ALL col2 + - + col2, + col1 - 71 AS col1 FROM tab0
----
0
-50
0
-70
0
10

query II rowsort
SELECT DISTINCT + col2, 30 FROM tab2
----
23
30
40
30
58
30

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col2 ) + 36 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4860
SELECT MIN( DISTINCT col1 ) FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
1

skipif mysql # not compatible
query I rowsort label-4860
SELECT MIN ( DISTINCT col1 ) FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
1

query I rowsort
SELECT DISTINCT + + col1 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
1
21
81

query II rowsort
SELECT 70 * + col2 * col2 + 70, ( + 57 ) + - - col0 AS col0 FROM tab2 cor0
----
112070
121
235550
132
37100
103

onlyif mysql # aggregate syntax: 
query I rowsort label-4863
SELECT MIN( - + col2 ) AS col0 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-4863
SELECT MIN ( - + col2 ) AS col0 FROM tab1 AS cor0
----
-96

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 63 <> + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 * + - 78 + - - 68 + - col2 IS NOT NULL
----

query I rowsort
SELECT col1 * 14 + + col0 AS col0 FROM tab2
----
1013
1142
760

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4867
SELECT + col1 * - - CAST( NULL AS SIGNED ) * col2 + - 50 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4867
SELECT + col1 * - - CAST ( NULL AS INTEGER ) * col2 + - 50 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 + - - col2 + col0 + + col0 * - 97 AS col0 FROM tab2
----
-4342
-6027
-7075

onlyif mysql # aggregate syntax: 
query I rowsort label-4869
SELECT ALL - - ( COUNT( * ) ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-4869
SELECT ALL - - ( COUNT ( * ) ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query I rowsort
SELECT col1 + + - 54 FROM tab0
----
-33
-53
27

onlyif mysql # DIV for integer division: 
query I rowsort label-4871
SELECT - 73 DIV col2 + + + col2 col1 FROM tab2
----
20
39
57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4871
SELECT - 73 / col2 + + + col2 col1 FROM tab2
----
20
39
57

query I rowsort
SELECT + ( - + col0 ) + + col2 + - col1 FROM tab0 AS cor0
----
-49
-98
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4873
SELECT DISTINCT + - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND + col1 / 54
----

skipif mysql # not compatible
query I rowsort label-4873
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND + col1 / 54
----

query I rowsort
SELECT DISTINCT 48 * col1 * - - col1 + - + col1 FROM tab1 AS cor0
----
105985
1195
9394

query I rowsort
SELECT ALL col1 / + ( + col0 ) / col1 * + 81 AS col0 FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4876
SELECT + CAST( NULL AS SIGNED ) * 39 - AVG ( ALL col0 ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4876
SELECT + CAST ( NULL AS INTEGER ) * 39 - AVG ( ALL col0 ) AS col1 FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE col1 - + - col0 IS NULL
----

query I rowsort
SELECT ALL col2 * + + col1 - - col2 FROM tab1
----
1440
3264
354

onlyif mysql # aggregate syntax: 
query I rowsort label-4879
SELECT 88 - + + COUNT( * ) col1 FROM tab0
----
85

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4879
SELECT 88 - + + COUNT ( * ) col1 FROM tab0
----
85

query I rowsort
SELECT DISTINCT - 60 * - col0 FROM tab0
----
5220
5820
900

query I rowsort
SELECT DISTINCT - + AVG ( DISTINCT + 6 ) FROM tab2 WHERE NULL IS NOT NULL
----
NULL

query II rowsort
SELECT col0 AS col2, 4 FROM tab1
----
51
4
85
4
91
4

query I rowsort
SELECT DISTINCT - 97 * + col1 FROM tab1 AS cor0
----
-1358
-4559
-485

query I rowsort
SELECT ALL col2 * ( + ( - + col0 ) ) + - 11 AS col0 FROM tab2 AS cor0
----
-1069
-2571
-4361

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 94 <> + 69 * col1
----

query I rowsort
SELECT ALL 97 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
97
97
97

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN - + col0 + - col1 AND - 65
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4888
SELECT - col0 DIV + - CAST( - - 92 AS SIGNED ) AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4888
SELECT - col0 / + - CAST ( - - 92 AS INTEGER ) AS col1 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4889
SELECT DISTINCT + - MAX( + 26 ) + - COUNT( * ) FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-35

skipif mysql # not compatible
query I rowsort label-4889
SELECT DISTINCT + - MAX ( + 26 ) + - COUNT ( * ) FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-4890
SELECT DISTINCT COUNT( * ) * 73 FROM tab0 AS cor0
----
219

skipif mysql # not compatible
query I rowsort label-4890
SELECT DISTINCT COUNT ( * ) * 73 FROM tab0 AS cor0
----
219

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4891
SELECT ALL + CAST( NULL AS SIGNED ) * 70 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4891
SELECT ALL + CAST ( NULL AS INTEGER ) * 70 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + col0 * + 2 FROM tab0 AS cor0 WHERE NOT + col2 * + col2 IS NULL
----
-174
-194
-30

query II rowsort
SELECT - col1 AS col2, - 0 AS col0 FROM tab0
----
-1
0
-21
0
-81
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) NOT IN ( + col1, - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - - 92 * + col0 col1 FROM tab2
----
-235520
-400200
-97336

query II rowsort
SELECT - 86 AS col1, 52 * + 69 + + col1 AS col2 FROM tab1
----
-86
3593
-86
3602
-86
3635

onlyif mysql # DIV for integer division: 
query I rowsort label-4897
SELECT DISTINCT - col2 + - - col1 DIV - + col2 AS col1 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-4897
SELECT DISTINCT - col2 + - - col1 / - + col2 AS col1 FROM tab1
----
-59
-68
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-4898
SELECT DISTINCT - 70 + col0 DIV col0 * + col1 FROM tab0 AS cor0
----
-49
-69
11

skipif mysql # not compatible
query I rowsort label-4898
SELECT DISTINCT - 70 + col0 / col0 * + col1 FROM tab0 AS cor0
----
-49
-69
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4899
SELECT DISTINCT COUNT( * ) + - - COUNT( * ) AS col2 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-4899
SELECT DISTINCT COUNT ( * ) + - - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4900
SELECT DISTINCT 12 * + CAST( 66 AS SIGNED ) AS col1 FROM tab1
----
792

skipif mysql # not compatible
query I rowsort label-4900
SELECT DISTINCT 12 * + CAST ( 66 AS INTEGER ) AS col1 FROM tab1
----
792

query I rowsort
SELECT + 31 - 62 + col2 FROM tab2
----
-8
27
9

query II rowsort
SELECT ALL + 79, col1 AS col2 FROM tab2 AS cor0
----
79
51
79
67
79
77

query I rowsort
SELECT ALL col0 AS col1 FROM tab1 AS cor0 WHERE NOT col1 + - col0 / - - col1 IS NOT NULL AND col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4904
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0, col1 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-4904
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0, col1 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

query II rowsort
SELECT ALL 75 AS col0, 54 AS col0 FROM tab0 AS cor0
----
75
54
75
54
75
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4906
SELECT - 34 + + COUNT( * ) FROM tab1 AS cor0
----
-31

skipif mysql # not compatible
query I rowsort label-4906
SELECT - 34 + + COUNT ( * ) FROM tab1 AS cor0
----
-31

query I rowsort
SELECT col1 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT col0 - + col0 AS col0 FROM tab0 AS cor0 WHERE - col2 IS NOT NULL
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4909
SELECT DISTINCT + 45, + COUNT( * ) col0 FROM tab2 AS cor0
----
45
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4909
SELECT DISTINCT + 45, + COUNT ( * ) col0 FROM tab2 AS cor0
----
45
3

query I rowsort
SELECT - col1 FROM tab2 WHERE NOT NULL NOT BETWEEN + - col0 * + 83 * - col1 * - - 12 AND + col2
----

query II rowsort
SELECT DISTINCT ( - 45 ) AS col0, + col0 AS col0 FROM tab2
----
-45
46
-45
64
-45
75

query I rowsort
SELECT - 20 / - + col0 + + + col1 AS col0 FROM tab2 WHERE NOT col2 < NULL
----

query I rowsort
SELECT ALL 99 * - ( 17 ) AS col0 FROM tab1
----
-1683
-1683
-1683

onlyif mysql # aggregate syntax: 
query I rowsort label-4914
SELECT DISTINCT - COUNT( * ) * - - 90 FROM tab1
----
-270

skipif mysql # not compatible
query I rowsort label-4914
SELECT DISTINCT - COUNT ( * ) * - - 90 FROM tab1
----
-270

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL <= + col0
----

query I rowsort
SELECT col1 * - - col2 AS col1 FROM tab0 AS cor0
----
210
3807
99

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 + - col2 + - col1 / - 49 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4918
SELECT - col0 * - CAST( NULL AS SIGNED ) - + + 80 - - ( + - col2 ) * col1 / col0 * 88 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4918
SELECT - col0 * - CAST ( NULL AS INTEGER ) - + + 80 - - ( + - col2 ) * col1 / col0 * 88 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * - col0 * + + 90 * - 16 FROM tab1 AS cor0
----
10404000
11924640
3745440

query I rowsort
SELECT - AVG ( ALL + - 51 ) FROM tab2 WHERE NOT + + col2 <> ( NULL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4921
SELECT - CAST( + - col1 AS SIGNED ) DIV - col0 + col1 + - 1 - - + 95 * + - col1 * - 61 AS col0 FROM tab2
----
295594
388331
446290

skipif mysql # not compatible
query I rowsort label-4921
SELECT - CAST ( + - col1 AS INTEGER ) / - col0 + col1 + - 1 - - + 95 * + - col1 * - 61 AS col0 FROM tab2
----
295594
388331
446290

query II rowsort
SELECT ( + + ( + col0 ) ) AS col1, ( 46 ) FROM tab0
----
15
46
87
46
97
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4923
SELECT COUNT( * ) * + + 71 FROM tab1
----
213

skipif mysql # not compatible
query I rowsort label-4923
SELECT COUNT ( * ) * + + 71 FROM tab1
----
213

onlyif mysql # aggregate syntax: 
query I rowsort label-4924
SELECT ALL + 76 * - MIN( - - ( col1 ) ) FROM tab2
----
-3876

skipif mysql # not compatible
query I rowsort label-4924
SELECT ALL + 76 * - MIN ( - - ( col1 ) ) FROM tab2
----
-3876

query I rowsort
SELECT DISTINCT - - col1 * - - col2 * col2 + - - 63 * + col2 FROM tab2 AS cor0
----
125720
229042
28428

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4926
SELECT * FROM tab0 AS cor0 WHERE NOT CAST( + - col2 AS SIGNED ) * + 69 + + - ( - 80 ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4926
SELECT * FROM tab0 AS cor0 WHERE NOT CAST ( + - col2 AS INTEGER ) * + 69 + + - ( - 80 ) IS NOT NULL
----

query I rowsort
SELECT ALL - 93 + - col2 AS col2 FROM tab1 AS cor0
----
-152
-161
-189

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 93 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col2 + + 34 AS col2 FROM tab1 AS cor0
----
102
130
93

query I rowsort
SELECT DISTINCT - col1 + 23 AS col2 FROM tab0
----
-58
2
22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + - col0 col2 FROM tab2
----
2346
4928
5025

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4932
SELECT 49 * + 58, - col0 - + CAST( - col0 AS SIGNED ) AS col2 FROM tab0
----
2842
0
2842
0
2842
0

skipif mysql # not compatible
query II rowsort label-4932
SELECT 49 * + 58, - col0 - + CAST ( - col0 AS INTEGER ) AS col2 FROM tab0
----
2842
0
2842
0
2842
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4933
SELECT ALL 18 + + + COUNT( * ) FROM tab2
----
21

skipif mysql # not compatible
query I rowsort label-4933
SELECT ALL 18 + + + COUNT ( * ) FROM tab2
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4934
SELECT ALL - 66 * - col1 AS col1, CAST( - + col2 AS SIGNED ) FROM tab1
----
3102
-68
330
-59
924
-96

skipif mysql # not compatible
query II rowsort label-4934
SELECT ALL - 66 * - col1 AS col1, CAST ( - + col2 AS INTEGER ) FROM tab1
----
3102
-68
330
-59
924
-96

query I rowsort
SELECT 89 * col2 AS col1 FROM tab0
----
4183
8811
890

onlyif mysql # DIV for integer division: 
query I rowsort label-4936
SELECT DISTINCT + col1 DIV + + col1 AS col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-4936
SELECT DISTINCT + col1 / + + col1 AS col2 FROM tab0
----
1

query I rowsort
SELECT col1 * - - 39 FROM tab1
----
1833
195
546

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4938
SELECT DISTINCT - 98 * - col0 col2, + ( + CAST( NULL AS SIGNED ) ) AS col0 FROM tab0
----
1470
NULL
8526
NULL
9506
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4938
SELECT DISTINCT - 98 * - col0 col2, + ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0
----
1470
NULL
8526
NULL
9506
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4939
SELECT + col0 * - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4939
SELECT + col0 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL - + col0 * + col0 * + - ( - - col1 ) AS col1, + 11 AS col2 FROM tab2 AS cor0
----
107916
11
315392
11
376875
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4941
SELECT MIN( col1 ) AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4941
SELECT MIN ( col1 ) AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT col0 + + - col1 + col1 AS col1 FROM tab1
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4943
SELECT ALL 91 + - COUNT( * ) AS col1 FROM tab0
----
88

skipif mysql # not compatible
query I rowsort label-4943
SELECT ALL 91 + - COUNT ( * ) AS col1 FROM tab0
----
88

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 77 - 85 * + - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4945
SELECT DISTINCT + - MAX( 41 ) AS col1 FROM tab0 AS cor0
----
-41

skipif mysql # not compatible
query I rowsort label-4945
SELECT DISTINCT + - MAX ( 41 ) AS col1 FROM tab0 AS cor0
----
-41

query I rowsort
SELECT DISTINCT 41 + 2 FROM tab0 AS cor0 WHERE 10 <= - - 22
----
43

onlyif mysql # DIV for integer division: 
query I rowsort label-4947
SELECT DISTINCT + col1 - 52 + + - col0 DIV - col0 FROM tab0 AS cor0
----
-30
-50
30

skipif mysql # not compatible
query I rowsort label-4947
SELECT DISTINCT + col1 - 52 + + - col0 / - col0 FROM tab0 AS cor0
----
-30
-50
30

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4948
SELECT * FROM tab2 AS cor0 WHERE NOT CAST( ( - col2 ) AS SIGNED ) + + + CAST( col0 AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4948
SELECT * FROM tab2 AS cor0 WHERE NOT CAST ( ( - col2 ) AS INTEGER ) + + + CAST ( col0 AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col0 + - 19 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 63 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - ( col1 ) FROM tab0 WHERE NOT NULL <> - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4952
SELECT MAX( DISTINCT + 24 ) AS col1 FROM tab0
----
24

skipif mysql # not compatible
query I rowsort label-4952
SELECT MAX ( DISTINCT + 24 ) AS col1 FROM tab0
----
24

query II rowsort
SELECT col1, + col0 * - - col0 + + col1 - - col2 AS col2 FROM tab0
----
1
9509
21
7600
81
353

query II rowsort
SELECT ALL 90, col2 AS col2 FROM tab1
----
90
59
90
68
90
96

query I rowsort
SELECT ALL + col0 * + - 71 FROM tab2
----
-3266
-4544
-5325

onlyif mysql # aggregate syntax: 
query I rowsort label-4956
SELECT ALL + - 61 * + ( - COUNT( * ) ) FROM tab0 WHERE NOT + 72 * + 17 + col0 IS NULL
----
183

skipif mysql # not compatible
query I rowsort label-4956
SELECT ALL + - 61 * + ( - COUNT ( * ) ) FROM tab0 WHERE NOT + 72 * + 17 + col0 IS NULL
----
183

query III rowsort
SELECT 99, col0 AS col2, - col0 + - col1 AS col1 FROM tab0
----
9 values hashing to 301768ce63b9eed4161eaa1e88b2a29f

query II rowsort
SELECT ALL col2 AS col1, + col1 AS col2 FROM tab2
----
23
51
40
77
58
67

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - - ( - 5 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT col0 AS col2, + col1 AS col1 FROM tab2 AS cor0
----
46
51
64
77
75
67

query II rowsort
SELECT - - col2 AS col1, col1 AS col1 FROM tab0 AS cor0
----
10
21
47
81
99
1

query I rowsort
SELECT ALL + col0 * - 41 * + col2 + - + col0 * - 1 - - - ( + 3 ) AS col0 FROM tab0 AS cor0
----
-28893
-35586
-393629

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + ( + 14 ) col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
1078
714
938

onlyif mysql # aggregate syntax: 
query II rowsort label-4964
SELECT + COUNT( * ) AS col0, 69 FROM tab0 AS cor0 WHERE 87 IS NOT NULL
----
3
69

skipif mysql # not compatible
query II rowsort label-4964
SELECT + COUNT ( * ) AS col0, 69 FROM tab0 AS cor0 WHERE 87 IS NOT NULL
----
3
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4965
SELECT ALL MIN( ALL + CAST( - col1 AS SIGNED ) ) FROM tab2 cor0
----
-77

skipif mysql # not compatible
query I rowsort label-4965
SELECT ALL MIN ( ALL + CAST ( - col1 AS INTEGER ) ) FROM tab2 cor0
----
-77

query I rowsort
SELECT - col1 * col1 * col2 + - col0 FROM tab2 AS cor0
----
-237224
-260437
-59869

query I rowsort
SELECT ALL + 4 AS col2 FROM tab0 AS cor0 WHERE ( - col2 ) > NULL
----

query II rowsort
SELECT DISTINCT + - ( - + 90 ), col0 + - + 3 AS col0 FROM tab0 AS cor0
----
90
12
90
84
90
94

query I rowsort
SELECT ALL + col2 + + col1 + ( - col2 ) FROM tab0 AS cor0
----
1
21
81

query I rowsort
SELECT - ( + 27 ) AS col2 FROM tab2 AS cor0
----
-27
-27
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4971
SELECT CAST( - 11 AS SIGNED ) FROM tab1 AS cor0
----
-11
-11
-11

skipif mysql # not compatible
query I rowsort label-4971
SELECT CAST ( - 11 AS INTEGER ) FROM tab1 AS cor0
----
-11
-11
-11

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN + 26 AND + 44
----

query III rowsort
SELECT * FROM tab0 WHERE - 81 <= + ( - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 * col1 FROM tab2 WHERE - col0 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4975
SELECT DISTINCT + 6 + - + COUNT( * ) + - - MIN( - - col2 ) FROM tab0
----
13

skipif mysql # not compatible
query I rowsort label-4975
SELECT DISTINCT + 6 + - + COUNT ( * ) + - - MIN ( - - col2 ) FROM tab0
----
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0, - 83 * + col1 col2 FROM tab2
----
46
-4233
64
-6391
75
-5561

query I rowsort
SELECT - + col0 * col2 AS col0 FROM tab0 WHERE - - col0 IS NOT NULL
----
-705
-870
-9603

onlyif mysql # aggregate syntax: 
query II rowsort label-4978
SELECT ALL + ( - COUNT( + col1 ) ) AS col1, COUNT( * ) AS col2 FROM tab0 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-4978
SELECT ALL + ( - COUNT ( + col1 ) ) AS col1, COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4979
SELECT + COUNT( * ) + 74 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-4979
SELECT + COUNT ( * ) + 74 FROM tab2 AS cor0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4980
SELECT - 49 * + COUNT( * ) FROM tab2 AS cor0
----
-147

skipif mysql # not compatible
query I rowsort label-4980
SELECT - 49 * + COUNT ( * ) FROM tab2 AS cor0
----
-147

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4981
SELECT DISTINCT col1 AS col1, - CAST( NULL AS SIGNED ) - 52 + + + col1 FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-4981
SELECT DISTINCT col1 AS col1, - CAST ( NULL AS INTEGER ) - 52 + + + col1 FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL IN ( - 54 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4983
SELECT DISTINCT MIN( DISTINCT - ( col1 ) ) * + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4983
SELECT DISTINCT MIN ( DISTINCT - ( col1 ) ) * + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT 1 + - col1 * + col0 FROM tab2
----
-2345
-4927
-5024

query I rowsort
SELECT col1 + + 51 FROM tab1
----
56
65
98

onlyif mysql # DIV for integer division: 
query I rowsort label-4986
SELECT 44 DIV ( col1 ) FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4986
SELECT 44 / ( col1 ) FROM tab2
----
0
0
0

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT IN ( - ( + col1 ) )
----

query I rowsort
SELECT - 47 AS col2 FROM tab2 WHERE ( + col1 * + col1 ) <= - col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 39 NOT IN ( - ( - col2 ) + + col0 * + 86 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 59 * + 3 FROM tab2 WHERE - col2 NOT IN ( - col2 * - col0 )
----
177

query I rowsort
SELECT ALL col0 * ( + col1 ) FROM tab0
----
1215
1827
97

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL > ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4993
SELECT ALL + COUNT( * ) + 6 AS col0 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-4993
SELECT ALL + COUNT ( * ) + 6 AS col0 FROM tab1
----
9

query III rowsort
SELECT * FROM tab2 WHERE col0 NOT IN ( - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN NULL AND 59
----

query I rowsort
SELECT + 52 + - 75 AS col0 FROM tab2
----
-23
-23
-23

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab2 WHERE NOT ( NULL ) NOT IN ( 32 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 86 + - 77 col2 FROM tab0
----
9
9
9

query I rowsort
SELECT - col1 * - col1 FROM tab0 WHERE 31 + - 98 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - 70 - + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5001
SELECT + 21 + COUNT( * ) FROM tab0
----
24

skipif mysql # not compatible
query I rowsort label-5001
SELECT + 21 + COUNT ( * ) FROM tab0
----
24

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab1 WHERE - ( - 94 ) NOT IN ( - col0 + - col2 )
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5003
SELECT - col1 + CAST( - col1 AS SIGNED ) FROM tab0 WHERE NULL NOT BETWEEN col0 + col0 AND NULL
----

skipif mysql # not compatible
query I rowsort label-5003
SELECT - col1 + CAST ( - col1 AS INTEGER ) FROM tab0 WHERE NULL NOT BETWEEN col0 + col0 AND NULL
----

query I rowsort
SELECT + 72 * - 46 + - col1 * + 99 FROM tab1
----
-3807
-4698
-7965

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab0 WHERE + col0 / 28 NOT IN ( - col1 )
----
-1
-21
-81

query III rowsort
SELECT * FROM tab0 WHERE NOT ( 49 ) <= ( col1 )
----
87
21
10
97
1
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5007
SELECT ALL CAST( 47 AS SIGNED ) + 53 * - 84 col0 FROM tab2
----
-4405
-4405
-4405

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5007
SELECT ALL CAST ( 47 AS INTEGER ) + 53 * - 84 col0 FROM tab2
----
-4405
-4405
-4405

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( 21 * col1 + - col1 ) >= ( NULL )
----

query I rowsort
SELECT 59 / + 21 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col0 * 10 + + col2 )
----

query I rowsort
SELECT DISTINCT col1 * col1 FROM tab2 AS cor0 WHERE NOT 72 * - col1 >= 52 + col2 * - col0
----
2601
4489
5929

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5011
SELECT MIN( DISTINCT + CAST( NULL AS SIGNED ) ) * COUNT( * ) col1 FROM tab2 WHERE NOT - col0 BETWEEN NULL AND col2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5011
SELECT MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) * COUNT ( * ) col1 FROM tab2 WHERE NOT - col0 BETWEEN NULL AND col2
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col2 * + col1 ) NOT BETWEEN 82 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5013
SELECT DISTINCT - MIN( 33 ) FROM tab2
----
-33

skipif mysql # not compatible
query I rowsort label-5013
SELECT DISTINCT - MIN ( 33 ) FROM tab2
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5014
SELECT COUNT( * ) + AVG ( 42 + - col1 / - CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5014
SELECT COUNT ( * ) + AVG ( 42 + - col1 / - CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE ( + 19 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 85 + + 36 FROM tab1 AS cor0
----
-49
-49
-49

query I rowsort
SELECT 68 + 45 FROM tab1 AS cor0
----
113
113
113

query I rowsort
SELECT col1 AS col2 FROM tab1 AS cor0 WHERE + col2 * + 26 > col1
----
14
47
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 67 + + col0 col0 FROM tab1 AS cor0
----
118
152
158

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5020
SELECT * FROM tab0 cor0 WHERE - ( - 51 ) NOT BETWEEN col1 AND ( + CAST( NULL AS SIGNED ) )
----
15
81
47

skipif mysql # not compatible
query III rowsort label-5020
SELECT * FROM tab0 cor0 WHERE - ( - 51 ) NOT BETWEEN col1 AND ( + CAST ( NULL AS INTEGER ) )
----
15
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5021
SELECT + COUNT( * ) + 18 AS col1 FROM tab0 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-5021
SELECT + COUNT ( * ) + 18 AS col1 FROM tab0 AS cor0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-5022
SELECT + COUNT( * ) + - MAX( ALL - col0 ) AS col2 FROM tab2 cor0
----
49

skipif mysql # not compatible
query I rowsort label-5022
SELECT + COUNT ( * ) + - MAX ( ALL - col0 ) AS col2 FROM tab2 cor0
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5023
SELECT ALL - + CAST( + MIN( DISTINCT + col0 ) AS SIGNED ) * COUNT( * ) + 86 FROM tab0 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-5023
SELECT ALL - + CAST ( + MIN ( DISTINCT + col0 ) AS INTEGER ) * COUNT ( * ) + 86 FROM tab0 AS cor0
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-5024
SELECT DISTINCT + 96 DIV + ( + col1 ) + col2 FROM tab1 AS cor0
----
102
70
78

skipif mysql # not compatible
query I rowsort label-5024
SELECT DISTINCT + 96 / + ( + col1 ) + col2 FROM tab1 AS cor0
----
102
70
78

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5025
SELECT * FROM tab2 WHERE col2 IN ( - CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-5025
SELECT * FROM tab2 WHERE col2 IN ( - CAST ( NULL AS REAL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5026
SELECT DISTINCT + COUNT( + col2 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5026
SELECT DISTINCT + COUNT ( + col2 ) AS col2 FROM tab0
----
3

query I rowsort
SELECT DISTINCT - 71 - - col1 + - col2 FROM tab0
----
-169
-37
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-5028
SELECT - MAX( - + col2 ) AS col2 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-5028
SELECT - MAX ( - + col2 ) AS col2 FROM tab0
----
10

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab2 WHERE NOT 28 * + col2 IS NULL
----
23
40
58

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND 4
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5031
SELECT ALL - 77 - + + COUNT( * ) * COUNT( * ) FROM tab2
----
-86

skipif mysql # not compatible
query I rowsort label-5031
SELECT ALL - 77 - + + COUNT ( * ) * COUNT ( * ) FROM tab2
----
-86

query I rowsort
SELECT DISTINCT col2 * + 67 AS col2 FROM tab1 AS cor0
----
3953
4556
6432

query I rowsort
SELECT - col2 - - col0 - col1 AS col1 FROM tab2 AS cor0
----
-28
-50
-53

query I rowsort
SELECT - - 99 + col1 FROM tab0 AS cor0
----
100
120
180

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5035
SELECT col0 + col2 FROM tab1 AS cor0 WHERE ( + col2 * - col0 ) NOT BETWEEN - CAST( + col1 AS SIGNED ) * + col1 AND + ( col2 )
----
144
147
159

skipif mysql # not compatible
query I rowsort label-5035
SELECT col0 + col2 FROM tab1 AS cor0 WHERE ( + col2 * - col0 ) NOT BETWEEN - CAST ( + col1 AS INTEGER ) * + col1 AND + ( col2 )
----
144
147
159

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE NULL >= NULL
----

query I rowsort
SELECT ALL + col1 AS col1 FROM tab0 WHERE NOT ( col1 + col1 = - col2 * col0 )
----
1
21
81

query I rowsort
SELECT 18 FROM tab1 AS cor0 JOIN tab0 AS cor1 ON - 36 IS NULL
----

query I rowsort
SELECT DISTINCT + - 99 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT col1 FROM tab1 WHERE NOT ( - + col2 ) <= 83
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE - col2 * + 41 * - 22 IS NULL
----

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab1 AS cor0 WHERE ( 61 ) IS NOT NULL
----
51
85
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5043
SELECT ALL - COUNT( * ) AS col2, CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-5043
SELECT ALL - COUNT ( * ) AS col2, CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-3
NULL

query I rowsort
SELECT - col0 FROM tab2 AS cor0 WHERE NOT - col0 + - col0 * col1 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5045
SELECT DISTINCT MAX( ALL + 39 ) AS col2 FROM tab2 AS cor0 WHERE NOT + col2 - col0 + 50 * - 68 >= ( 68 + col2 )
----
39

skipif mysql # not compatible
query I rowsort label-5045
SELECT DISTINCT MAX ( ALL + 39 ) AS col2 FROM tab2 AS cor0 WHERE NOT + col2 - col0 + 50 * - 68 >= ( 68 + col2 )
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-5046
SELECT DISTINCT col2 DIV - + ( + 42 ) AS col0 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-5046
SELECT DISTINCT col2 / - + ( + 42 ) AS col0 FROM tab0 AS cor0
----
-1
-2
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5047
SELECT CAST( + 72 AS SIGNED ) col0 FROM tab2 AS cor0
----
72
72
72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5047
SELECT CAST ( + 72 AS INTEGER ) col0 FROM tab2 AS cor0
----
72
72
72

query I rowsort
SELECT DISTINCT - col2 * 51 FROM tab2
----
-1173
-2040
-2958

query I rowsort
SELECT + 14 FROM tab2 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT 11 * + - col1 FROM tab0
----
-11
-231
-891

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5051
SELECT + 50 DIV + MAX( + + col2 ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5051
SELECT + 50 / + MAX ( + + col2 ) AS col0 FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5052
SELECT - 16 DIV col1 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5052
SELECT - 16 / col1 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT col2 * 9 FROM tab1
----
531
612
864

query I rowsort
SELECT ALL col2 FROM tab0 WHERE ( + + 3 ) IS NOT NULL
----
10
47
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + col2 col2 FROM tab2 WHERE NOT NULL = ( + - col2 )
----

query I rowsort
SELECT + col0 * col0 - col1 FROM tab0 WHERE NOT - col2 * - col2 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 col1 FROM tab2 AS cor0 WHERE 25 IS NOT NULL
----
-23
-40
-58

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( + 43 * ( - col2 ) + 22 ) AND - 29
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5059
SELECT DISTINCT - COUNT( * ) FROM tab2 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
-3

skipif mysql # not compatible
query I rowsort label-5059
SELECT DISTINCT - COUNT ( * ) FROM tab2 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
-3

query I rowsort
SELECT ALL col2 * - 89 + - col0 FROM tab1 AS cor0 WHERE NULL <> col1
----

query I rowsort
SELECT 70 + - col0 AS col2 FROM tab1 cor0
----
-15
-21
19

query I rowsort
SELECT DISTINCT + col2 + + ( + + col0 ) FROM tab0 AS cor0
----
196
62
97

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5063
SELECT DISTINCT - col1 + - - CAST( NULL AS DECIMAL ) / 22 / + - col1 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5063
SELECT DISTINCT - col1 + - - CAST ( NULL AS REAL ) / 22 / + - col1 AS col0 FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5064
SELECT col2 DIV - + col2 AS col0 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5064
SELECT col2 / - + col2 AS col0 FROM tab2
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5065
SELECT DISTINCT + CAST( + - 62 AS SIGNED ) AS col2 FROM tab2
----
-62

skipif mysql # not compatible
query I rowsort label-5065
SELECT DISTINCT + CAST ( + - 62 AS INTEGER ) AS col2 FROM tab2
----
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 52 col2 FROM tab1 cor0
----
52
52
52

query I rowsort
SELECT + + 85 * - col1 AS col1 FROM tab2 cor0
----
-4335
-5695
-6545

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col2, col1 FROM tab1 cor0 WHERE NULL NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT DISTINCT - 51 + col2 AS col2 FROM tab2 cor0
----
-11
-28
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5070
SELECT - COUNT( * ) - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-5070
SELECT - COUNT ( * ) - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-5071
SELECT + COUNT( * ) + - - 14 col1 FROM tab2 AS cor0
----
17

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5071
SELECT + COUNT ( * ) + - - 14 col1 FROM tab2 AS cor0
----
17

query I rowsort
SELECT + 19 + + 31 AS col2 FROM tab2 AS cor0
----
50
50
50

query I rowsort
SELECT ALL + 31 + col1 + - col1 FROM tab0
----
31
31
31

query I rowsort
SELECT + col2 + + 64 AS col1 FROM tab2
----
104
122
87

query I rowsort
SELECT ALL + 36 AS col2 FROM tab0 WHERE + - col0 <= ( + col1 / col0 + col0 )
----
36
36
36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 AS col2, + col0 col1 FROM tab2 AS cor0
----
51
46
67
75
77
64

query I rowsort
SELECT ALL + 21 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

onlyif mysql # aggregate syntax: 
query I rowsort label-5078
SELECT 66 - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
57

skipif mysql # not compatible
query I rowsort label-5078
SELECT 66 - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
57

query I rowsort
SELECT ALL + 49 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 * - 65 NOT BETWEEN 90 * 5 * - col2 + + ( + col0 ) * + col0 + + 4 AND col1
----
15
81
47
97
1
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5081
SELECT ALL + SUM( DISTINCT - col2 ) col0 FROM tab0 AS cor0 WHERE ( NOT - 39 * + CAST( NULL AS SIGNED ) + + col2 + - 66 BETWEEN + 16 * 10 + col0 AND + col2 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5081
SELECT ALL + SUM ( DISTINCT - col2 ) col0 FROM tab0 AS cor0 WHERE ( NOT - 39 * + CAST ( NULL AS INTEGER ) + + col2 + - 66 BETWEEN + 16 * 10 + col0 AND + col2 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5082
SELECT DISTINCT - + CAST( NULL AS SIGNED ) * - 42 FROM tab0 AS cor0 WHERE ( NULL IS NOT NULL )
----

skipif mysql # not compatible
query I rowsort label-5082
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * - 42 FROM tab0 AS cor0 WHERE ( NULL IS NOT NULL )
----

query I rowsort
SELECT DISTINCT col2 + - ( + - col0 ) * + ( - + col0 ) * - col0 AS col1 FROM tab2 AS cor0 WHERE - col0 IS NOT NULL
----
262184
421933
97359

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT + 46 * + - col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 10 + + 63 FROM tab2
----
53

onlyif mysql # DIV for integer division: 
query I rowsort label-5086
SELECT + col0 DIV 84 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5086
SELECT + col0 / 84 AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT ( 59 ) * + col2 * + col0 + + 25 FROM tab0
----
41620
51355
566602

query I rowsort
SELECT ALL 13 * + 55 FROM tab2
----
715
715
715

query I rowsort
SELECT DISTINCT col2 FROM tab1 cor0 WHERE - col2 IS NULL
----

query I rowsort
SELECT DISTINCT + col1 * - col1 + - ( 78 ) + ( + + 32 ) FROM tab1 AS cor0
----
-2255
-242
-71

query I rowsort
SELECT col2 AS col1 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5092
SELECT ALL + COUNT( * ) + + ( - 54 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-45

skipif mysql # not compatible
query I rowsort label-5092
SELECT ALL + COUNT ( * ) + + ( - 54 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-45

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) < 95
----

query I rowsort
SELECT ALL - 85 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 8ebc8ffafb1517ea04e3a6fc4059d88a

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5095
SELECT ALL - 56 + + + 37 DIV + + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-52

skipif mysql # not compatible
query I rowsort label-5095
SELECT ALL - 56 + + + 37 / + + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-52

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5096
SELECT * FROM tab1 WHERE ( NULL ) NOT BETWEEN ( NULL ) AND - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-5096
SELECT * FROM tab1 WHERE ( NULL ) NOT BETWEEN ( NULL ) AND - CAST ( NULL AS REAL )
----

query I rowsort
SELECT - + col2 + + col2 + - 90 FROM tab1 AS cor0
----
-90
-90
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + col2 col1 FROM tab2 AS cor0
----
117
125
74

onlyif mysql # aggregate syntax: 
query II rowsort label-5099
SELECT + SUM( DISTINCT - col0 ) + - + 68 * + + 59 AS col1, 52 FROM tab1 AS cor0
----
-4239
52

skipif mysql # not compatible
query II rowsort label-5099
SELECT + SUM ( DISTINCT - col0 ) + - + 68 * + + 59 AS col1, 52 FROM tab1 AS cor0
----
-4239
52

query I rowsort
SELECT - 31 * + col0 FROM tab1 cor0
----
-1581
-2635
-2821

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE - 14 IS NULL
----

query I rowsort
SELECT ALL 65 * + - 25 * + + col1 AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-108875
-125125
-82875

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5103
SELECT col2 FROM tab0 AS cor0 WHERE CAST( + col2 AS DECIMAL ) IS NOT NULL
----
10
47
99

skipif mysql # not compatible
query I rowsort label-5103
SELECT col2 FROM tab0 AS cor0 WHERE CAST ( + col2 AS REAL ) IS NOT NULL
----
10
47
99

query II rowsort
SELECT ALL col1 * + col1 + - ( - + col0 ) * + col2, + col2 AS col0 FROM tab2
----
3659
23
8489
40
8839
58

query I rowsort
SELECT + ( + 80 ) AS col2 FROM tab2
----
80
80
80

query II rowsort
SELECT ALL 32 + + - 15 * + col0, col1 AS col2 FROM tab1
----
-1243
5
-1333
47
-733
14

query I rowsort
SELECT col1 - col2 * 54 FROM tab0
----
-2457
-519
-5345

query I rowsort
SELECT ALL col1 + 43 AS col0 FROM tab0
----
124
44
64

onlyif mysql # aggregate syntax: 
query I rowsort label-5109
SELECT COUNT( * ) - - 88 FROM tab2
----
91

skipif mysql # not compatible
query I rowsort label-5109
SELECT COUNT ( * ) - - 88 FROM tab2
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-5110
SELECT DISTINCT + col1 DIV - 32 - - col1 * 53 AS col0 FROM tab2
----
2702
3549
4079

skipif mysql # not compatible
query I rowsort label-5110
SELECT DISTINCT + col1 / - 32 - - col1 * 53 AS col0 FROM tab2
----
2702
3549
4079

query I rowsort
SELECT DISTINCT - 26 - - ( + + col2 ) FROM tab1
----
33
42
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5112
SELECT 13 DIV + COUNT( * ) FROM tab2 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-5112
SELECT 13 / + COUNT ( * ) FROM tab2 AS cor0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5113
SELECT ALL COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT ( + col1 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5113
SELECT ALL COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT ( + col1 ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5114
SELECT DISTINCT - SUM( + 51 ) AS col0 FROM tab2
----
-153

skipif mysql # not compatible
query I rowsort label-5114
SELECT DISTINCT - SUM ( + 51 ) AS col0 FROM tab2
----
-153

onlyif mysql # DIV for integer division: 
query I rowsort label-5115
SELECT 24 DIV col2 * + 82 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5115
SELECT 24 / col2 * + 82 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5116
SELECT ALL - 29 * - col0 * - ( + + CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5116
SELECT ALL - 29 * - col0 * - ( + + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5117
SELECT ALL * FROM tab1 AS cor0 WHERE - CAST( + - col1 AS SIGNED ) >= - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5117
SELECT ALL * FROM tab1 AS cor0 WHERE - CAST ( + - col1 AS INTEGER ) >= - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5118
SELECT DISTINCT - SUM( ALL + 6 ) FROM tab0 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-5118
SELECT DISTINCT - SUM ( ALL + 6 ) FROM tab0 AS cor0
----
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-5119
SELECT - - ( 97 ), - COUNT( * ) AS col2 FROM tab1 cor0
----
97
-3

skipif mysql # not compatible
query II rowsort label-5119
SELECT - - ( 97 ), - COUNT ( * ) AS col2 FROM tab1 cor0
----
97
-3

query I rowsort
SELECT DISTINCT col2 / - col0 * + col0 AS col1 FROM tab2 AS cor0 WHERE + ( + ( - col1 ) ) * + - ( - col2 ) <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 17 * - col2 * - - 15 * + + 37 col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
217005
377400
547230

query I rowsort
SELECT ALL - col2 + col2 - - 93 AS col2 FROM tab2 AS cor0
----
93
93
93

onlyif mysql # aggregate syntax: 
query I rowsort label-5123
SELECT + MAX( DISTINCT 67 ) FROM tab0
----
67

skipif mysql # not compatible
query I rowsort label-5123
SELECT + MAX ( DISTINCT 67 ) FROM tab0
----
67

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL BETWEEN - 6 AND NULL
----

query I rowsort
SELECT col1 * - + col1 * - col0 FROM tab2
----
119646
336675
379456

onlyif mysql # DIV for integer division: 
query I rowsort label-5126
SELECT ALL col2 DIV + ( - + col2 ) FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5126
SELECT ALL col2 / + ( - + col2 ) FROM tab1
----
-1
-1
-1

query I rowsort
SELECT 19 * - col0 * + col2 FROM tab0
----
-13395
-16530
-182457

query I rowsort
SELECT col2 + 34 + - col0 + col0 AS col1 FROM tab2
----
57
74
92

query I rowsort
SELECT ( + 84 ) AS col1 FROM tab0 WHERE col2 + - col0 IS NOT NULL
----
84
84
84

onlyif mysql # aggregate syntax: 
query I rowsort label-5130
SELECT ALL - COUNT( + 93 ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5130
SELECT ALL - COUNT ( + 93 ) AS col0 FROM tab2 AS cor0
----
-3

query II rowsort
SELECT + - col2 * + - col0 + - col1, ( - col2 ) * + col0 AS col1 FROM tab2 AS cor0
----
1007
-1058
2483
-2560
4283
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-5132
SELECT ALL - COUNT( * ) + - COUNT( * ) FROM tab0 cor0
----
-6

skipif mysql # not compatible
query I rowsort label-5132
SELECT ALL - COUNT ( * ) + - COUNT ( * ) FROM tab0 cor0
----
-6

query I rowsort
SELECT - + col1 + - + col0 + + 16 * - - col1 * 58 * + col0 FROM tab2 AS cor0
----
2176991
4573043
4663058

query I rowsort
SELECT DISTINCT + 65 + - col0 * - col1 * 66 + + - 50 AS col0 FROM tab1
----
28065
282297
47139

query I rowsort
SELECT ALL - col0 * + - col2 * - col0 / 53 * - - 23 FROM tab2 WHERE NOT col1 NOT BETWEEN ( NULL ) AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5136
SELECT MAX( + 51 ) FROM tab0
----
51

skipif mysql # not compatible
query I rowsort label-5136
SELECT MAX ( + 51 ) FROM tab0
----
51

query I rowsort
SELECT + 95 - + ( - - col2 ) * + - col0 * + col2 FROM tab0 AS cor0
----
33230
8795
950792

onlyif mysql # DIV for integer division: 
query I rowsort label-5138
SELECT DISTINCT - col2 DIV + + col1 FROM tab0 AS cor0
----
-99
0

skipif mysql # not compatible
query I rowsort label-5138
SELECT DISTINCT - col2 / + + col1 FROM tab0 AS cor0
----
-99
0

query I rowsort
SELECT ALL - 12 + + + 70 FROM tab2 AS cor0
----
58
58
58

query I rowsort
SELECT col0 * - col2 + + - ( + + 37 ) AS col2 FROM tab2 AS cor0
----
-1095
-2597
-4387

query I rowsort
SELECT - col1 + 46 AS col1 FROM tab0 AS cor0
----
-35
25
45

onlyif mysql # aggregate syntax: 
query I rowsort label-5142
SELECT - 10 + + COUNT( ALL 15 ) FROM tab1 cor0
----
-7

skipif mysql # not compatible
query I rowsort label-5142
SELECT - 10 + + COUNT ( ALL 15 ) FROM tab1 cor0
----
-7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 58 * - col2 * - col2 + + + col1 col0 FROM tab1 AS cor0
----
201903
268239
534542

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) >= - + 5
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5145
SELECT DISTINCT 10 * col2 + - col1 DIV col0 * col0 * col2 * + - CAST( - + 88 AS SIGNED ) FROM tab2
----
-224880
-92874
580

skipif mysql # not compatible
query I rowsort label-5145
SELECT DISTINCT 10 * col2 + - col1 / col0 * col0 * col2 * + - CAST ( - + 88 AS INTEGER ) FROM tab2
----
-224880
-92874
580

onlyif mysql # DIV for integer division: 
query I rowsort label-5146
SELECT DISTINCT col0 DIV - - col0 AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-5146
SELECT DISTINCT col0 / - - col0 AS col0 FROM tab0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 65 * - - col0 col2 FROM tab1
----
-3315
-5525
-5915

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5148
SELECT + MAX( col2 ) AS col1 FROM tab2 WHERE NOT CAST( NULL AS SIGNED ) IS NOT NULL
----
58

skipif mysql # not compatible
query I rowsort label-5148
SELECT + MAX ( col2 ) AS col1 FROM tab2 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5149
SELECT - CAST( - ( col1 ) AS SIGNED ) FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-5149
SELECT - CAST ( - ( col1 ) AS INTEGER ) FROM tab1 AS cor0
----
14
47
5

query II rowsort
SELECT ALL ( + + col0 ) AS col0, 98 FROM tab1 AS cor0
----
51
98
85
98
91
98

query II rowsort
SELECT + 34 * col0 AS col1, col1 FROM tab0 AS cor0
----
2958
21
3298
1
510
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5152
SELECT DISTINCT - MIN( - 27 ) AS col1 FROM tab1
----
27

skipif mysql # not compatible
query I rowsort label-5152
SELECT DISTINCT - MIN ( - 27 ) AS col1 FROM tab1
----
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 53 col1 FROM tab2
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5154
SELECT DISTINCT - - COUNT( ALL + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5154
SELECT DISTINCT - - COUNT ( ALL + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5155
SELECT DISTINCT + col2 DIV col1 - 55 + + 66 FROM tab0 AS cor0
----
11
110

skipif mysql # not compatible
query I rowsort label-5155
SELECT DISTINCT + col2 / col1 - 55 + + 66 FROM tab0 AS cor0
----
11
110

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + + col0 col0 FROM tab1
----
4896
5015
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-5157
SELECT ALL MAX( ALL + col2 ) * 46 + + 84 FROM tab1
----
4500

skipif mysql # not compatible
query I rowsort label-5157
SELECT ALL MAX ( ALL + col2 ) * 46 + + 84 FROM tab1
----
4500

query II rowsort
SELECT ALL + 57, col2 AS col2 FROM tab0
----
57
10
57
47
57
99

query III rowsort
SELECT * FROM tab0 WHERE - 44 + + 34 + + - col0 * - 61 NOT IN ( 0, ( - col1 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 * - ( + col0 ) FROM tab0
----
-225
-7569
-9409

onlyif mysql # aggregate syntax: 
query I rowsort label-5161
SELECT COUNT( * ) FROM tab1 WHERE + + col0 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-5161
SELECT COUNT ( * ) FROM tab1 WHERE + + col0 IS NOT NULL
----
3

query III rowsort
SELECT * FROM tab2 WHERE col0 NOT IN ( col1 * col2 / - col0 * + 77 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 58 * - col2 * + 49 AS col2 FROM tab1 AS cor0
----
-167678
-193256
-272832

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5164
SELECT DISTINCT + AVG ( CAST( NULL AS DECIMAL ) ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5164
SELECT DISTINCT + AVG ( CAST ( NULL AS REAL ) ) AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5165
SELECT DISTINCT COUNT( * ) FROM tab2 cor0 WHERE - 82 - + col1 > + 28 * + col1 + col0 * - - 1
----
0

skipif mysql # not compatible
query I rowsort label-5165
SELECT DISTINCT COUNT ( * ) FROM tab2 cor0 WHERE - 82 - + col1 > + 28 * + col1 + col0 * - - 1
----
0

query II rowsort
SELECT DISTINCT ( + 25 ) * col1 + - col2, - col1 AS col1 FROM tab1 AS cor0
----
1107
-47
254
-14
66
-5

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN - col0 AND NULL
----

query I rowsort
SELECT col1 + - 4 AS col2 FROM tab0
----
-3
17
77

query I rowsort
SELECT DISTINCT + + col2 AS col2 FROM tab2 AS cor0 WHERE - col1 IS NOT NULL
----
23
40
58

onlyif mysql # DIV for integer division: 
query I rowsort label-5170
SELECT ALL - ( col1 ) - - col2 * + col1 + - + 40 DIV - col1 FROM tab2 AS cor0
----
1122
3003
3819

skipif mysql # not compatible
query I rowsort label-5170
SELECT ALL - ( col1 ) - - col2 * + col1 + - + 40 / - col1 FROM tab2 AS cor0
----
1122
3003
3819

onlyif mysql # aggregate syntax: 
query I rowsort label-5171
SELECT + 86 * + AVG ( - col0 ) + ( COUNT( * ) ) AS col0 FROM tab2 cor0 WHERE NULL = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5171
SELECT + 86 * + AVG ( - col0 ) + ( COUNT ( * ) ) AS col0 FROM tab2 cor0 WHERE NULL = NULL
----
NULL

query I rowsort
SELECT DISTINCT - + col0 * 17 + - + col0 AS col2 FROM tab0 AS cor0
----
-1566
-1746
-270

query I rowsort
SELECT DISTINCT + 85 * col1 * - col0 AS col0 FROM tab2 cor0
----
-199410
-418880
-427125

query I rowsort
SELECT ALL col0 AS col0 FROM tab1 AS cor0 WHERE NOT NULL < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5175
SELECT DISTINCT + - 34 DIV col1 col1 FROM tab1 AS cor0
----
-2
-6
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5175
SELECT DISTINCT + - 34 / col1 col1 FROM tab1 AS cor0
----
-2
-6
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5176
SELECT ALL - SUM( ALL + 54 ) FROM tab0
----
-162

skipif mysql # not compatible
query I rowsort label-5176
SELECT ALL - SUM ( ALL + 54 ) FROM tab0
----
-162

query I rowsort
SELECT 53 * - col0 * + - 76 AS col1 FROM tab1
----
205428
342380
366548

onlyif mysql # aggregate syntax: 
query I rowsort label-5178
SELECT DISTINCT 25 * + + COUNT( * ) AS col2 FROM tab0
----
75

skipif mysql # not compatible
query I rowsort label-5178
SELECT DISTINCT 25 * + + COUNT ( * ) AS col2 FROM tab0
----
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 71 col2 FROM tab2
----
-71

query III rowsort
SELECT * FROM tab1 WHERE NOT + 0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 73 AS col0 FROM tab0, tab1 cor0
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

onlyif mysql # aggregate syntax: 
query I rowsort label-5182
SELECT - MIN( ALL + 99 ) col0 FROM tab1
----
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5182
SELECT - MIN ( ALL + 99 ) col0 FROM tab1
----
-99

query II rowsort
SELECT ALL col2 AS col1, + 62 FROM tab1
----
59
62
68
62
96
62

query I rowsort
SELECT DISTINCT 24 * - col2 AS col2 FROM tab0
----
-1128
-2376
-240

onlyif mysql # DIV for integer division: 
query I rowsort label-5185
SELECT DISTINCT col2 * + col2 + + - col0 DIV - col0 AS col2 FROM tab1 AS cor0
----
3482
4625
9217

skipif mysql # not compatible
query I rowsort label-5185
SELECT DISTINCT col2 * + col2 + + - col0 / - col0 AS col2 FROM tab1 AS cor0
----
3482
4625
9217

query I rowsort
SELECT DISTINCT + - 18 AS col0 FROM tab1 AS cor0
----
-18

query II rowsort
SELECT ALL + col1 * - ( col2 ) AS col0, 15 AS col1 FROM tab0 AS cor0
----
-210
15
-3807
15
-99
15

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 - - 96 * + col0 > NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5189
SELECT + - ( + - 49 ) DIV - + MIN( DISTINCT + - col0 ) AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5189
SELECT + - ( + - 49 ) / - + MIN ( DISTINCT + - col0 ) AS col2 FROM tab0 AS cor0
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL < - 11
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 col1 FROM tab1 AS cor0 WHERE NOT - ( + + col0 ) * - col2 + + - 44 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 28 col2 FROM tab0 AS cor0
----
-28
-28
-28

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NOT + - ( + col0 ) * col1 + - col2 + + 51 NOT BETWEEN NULL AND NULL )
----

query I rowsort
SELECT DISTINCT 16 + - + col0 AS col1 FROM tab2
----
-30
-48
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + + 59 + + col1 + col1 - + + 73 * + - col2 col2 FROM tab2
----
1817
3093
4369

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 45 < + 52
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5197
SELECT - ( + MAX( + + CAST( + col0 AS SIGNED ) ) ) + - - COUNT( * ) AS col2 FROM tab1
----
-88

skipif mysql # not compatible
query I rowsort label-5197
SELECT - ( + MAX ( + + CAST ( + col0 AS INTEGER ) ) ) + - - COUNT ( * ) AS col2 FROM tab1
----
-88

query I rowsort
SELECT DISTINCT ( + - col0 ) AS col1 FROM tab1
----
-51
-85
-91

query I rowsort
SELECT + 23 FROM tab2 WHERE - col2 IS NOT NULL
----
23
23
23

query I rowsort
SELECT col1 + - + 64 FROM tab1
----
-17
-50
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-5201
SELECT DISTINCT col0 DIV - col1 + - col0 FROM tab1
----
-102
-54
-92

skipif mysql # not compatible
query I rowsort label-5201
SELECT DISTINCT col0 / - col1 + - col0 FROM tab1
----
-102
-54
-92

query I rowsort
SELECT - + ( col2 ) + + + col0 * col2 * - col0 AS col2 FROM tab1 AS cor0
----
-249792
-426334
-563176

onlyif mysql # aggregate syntax: 
query I rowsort label-5203
SELECT + - 82 * + COUNT( * ) * + COUNT( * ) FROM tab2 AS cor0
----
-738

skipif mysql # not compatible
query I rowsort label-5203
SELECT + - 82 * + COUNT ( * ) * + COUNT ( * ) FROM tab2 AS cor0
----
-738

query I rowsort
SELECT + 39 + - col2 FROM tab0 AS cor0 WHERE NULL < 41
----

query I rowsort
SELECT DISTINCT - ( + 90 ) FROM tab2 AS cor0
----
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 4 col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
4

query I rowsort
SELECT DISTINCT + col2 - 96 + - col1 FROM tab0
----
-107
-130
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5208
SELECT + 79 / MAX( DISTINCT + + col1 ) AS col0 FROM tab2 WHERE + col1 * - col2 - - 72 / + - col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5208
SELECT + 79 / MAX ( DISTINCT + + col1 ) AS col0 FROM tab2 WHERE + col1 * - col2 - - 72 / + - col0 IS NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5209
SELECT DISTINCT + COUNT( * ) / - CAST( NULL AS SIGNED ) + 60 + + + 88 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-5209
SELECT DISTINCT + COUNT ( * ) / - CAST ( NULL AS INTEGER ) + 60 + + + 88 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

query I rowsort
SELECT ALL - - 41 * - + 85 * - col1 FROM tab2 AS cor0
----
177735
233495
268345

query I rowsort
SELECT DISTINCT 65 * col1 * - 92 * - 84 AS col1 FROM tab1 AS cor0
----
23609040
2511600
7032480

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5212
SELECT + COUNT( * ) * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5212
SELECT + COUNT ( * ) * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5213
SELECT DISTINCT CAST( col2 AS SIGNED ) DIV col1 AS col1 FROM tab0 AS cor0
----
0
99

skipif mysql # not compatible
query I rowsort label-5213
SELECT DISTINCT CAST ( col2 AS INTEGER ) / col1 AS col1 FROM tab0 AS cor0
----
0
99

query II rowsort
SELECT ALL col1, col0 + + col0 FROM tab2 AS cor0
----
51
92
67
150
77
128

query I rowsort
SELECT col2 FROM tab1 WHERE NOT + col1 IS NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5216
SELECT DISTINCT + COUNT( * ) + - + MAX( - 80 ) col0 FROM tab2 WHERE NOT 3 BETWEEN col2 AND NULL
----
83

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5216
SELECT DISTINCT + COUNT ( * ) + - + MAX ( - 80 ) col0 FROM tab2 WHERE NOT 3 BETWEEN col2 AND NULL
----
83

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 99 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5218
SELECT ALL + MAX( ALL - col1 ) * - COUNT( * ) col1 FROM tab2
----
153

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5218
SELECT ALL + MAX ( ALL - col1 ) * - COUNT ( * ) col1 FROM tab2
----
153

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5219
SELECT + CAST( + 96 AS SIGNED ) AS col1, 68 + + col2 AS col1 FROM tab2
----
96
108
96
126
96
91

skipif mysql # not compatible
query II rowsort label-5219
SELECT + CAST ( + 96 AS INTEGER ) AS col1, 68 + + col2 AS col1 FROM tab2
----
96
108
96
126
96
91

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL = col1 * - - ( + col2 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 >= col2 * - 18
----

query I rowsort
SELECT - - col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND 3 * - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5223
SELECT SUM( + 45 ) AS col2 FROM tab1 AS cor0
----
135

skipif mysql # not compatible
query I rowsort label-5223
SELECT SUM ( + 45 ) AS col2 FROM tab1 AS cor0
----
135

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5224
SELECT DISTINCT 4 AS col0, CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
4
NULL

skipif mysql # not compatible
query II rowsort label-5224
SELECT DISTINCT 4 AS col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
4
NULL

query I rowsort
SELECT - 45 AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab2 cor1 )
----
9 values hashing to 71160abf09589695379a70558726f0ba

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 17 * - + 38 col1 FROM tab0
----
-646
-646
-646

query I rowsort
SELECT DISTINCT + 22 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-5228
SELECT ALL + COUNT( 53 ) * COUNT( * ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-5228
SELECT ALL + COUNT ( 53 ) * COUNT ( * ) FROM tab0
----
9

query I rowsort
SELECT 86 + - + col2 AS col0 FROM tab1
----
-10
18
27

onlyif mysql # aggregate syntax: 
query I rowsort label-5230
SELECT ALL COUNT( * ) * 27 FROM tab2 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-5230
SELECT ALL COUNT ( * ) * 27 FROM tab2 AS cor0
----
81

query I rowsort
SELECT + + col2 + - + col0 * - 31 AS col0 FROM tab1 cor0
----
1677
2694
2889

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 16 IS NULL
----

query I rowsort
SELECT - col1 + - - col2 AS col1 FROM tab1 AS cor0
----
21
54
82

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 1 * - - 23 * - - 74 IS NULL
----

query I rowsort
SELECT ALL - - 42 FROM tab1 WHERE NULL = NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE col1 BETWEEN col0 AND col2 / col1
----

query I rowsort
SELECT DISTINCT - ( + col0 ) + - - col2 AS col1 FROM tab0
----
-77
2
32

query III rowsort
SELECT * FROM tab0 WHERE + + col0 + - 8 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 * + col0 * - col0 + + col1 * + col1 * + - ( - col1 ) * + + col1 AS col1 FROM tab2 WHERE - ( col0 ) IS NULL
----

query I rowsort
SELECT DISTINCT + ( 4 ) - - - 14 AS col2 FROM tab2
----
-10

query I rowsort
SELECT DISTINCT + ( ( 81 ) ) FROM tab0
----
81

query II rowsort
SELECT - col0 * - col2 AS col0, + 86 FROM tab2
----
1058
86
2560
86
4350
86

query I rowsort
SELECT + + 54 - 82 AS col1 FROM tab1 AS cor0
----
-28
-28
-28

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( col1 * - col2 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + + 93 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
93

query I rowsort
SELECT DISTINCT - 56 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-56

query I rowsort
SELECT ALL 98 - + col2 AS col2 FROM tab0
----
-1
51
88

onlyif mysql # aggregate syntax: 
query I rowsort label-5248
SELECT DISTINCT COUNT( * ) - + 4 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-5248
SELECT DISTINCT COUNT ( * ) - + 4 FROM tab2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5249
SELECT + MAX( + col1 ) AS col0 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-5249
SELECT + MAX ( + col1 ) AS col0 FROM tab2 AS cor0
----
77

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 67 / + 9 IS NOT NULL
----

query I rowsort
SELECT ALL 27 AS col0 FROM tab2 cor0
----
27
27
27

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 * col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT - + col0 > - 50 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 * + + ( + + col2 ) * + + col1 * - col2 IS NOT NULL
----

query I rowsort
SELECT - AVG ( - + col2 ) FROM tab0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5256
SELECT ALL + COUNT( col2 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5256
SELECT ALL + COUNT ( col2 ) AS col1 FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5257
SELECT + CAST( col1 AS DECIMAL ) * CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5257
SELECT + CAST ( col1 AS REAL ) * CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + 56 FROM tab0 WHERE NOT + 75 + + + col2 < + col2 * + col1
----
56

query II rowsort
SELECT + col1, + 32 AS col2 FROM tab0
----
1
32
21
32
81
32

query I rowsort
SELECT DISTINCT 85 * + + ( - col2 ) * col0 FROM tab0
----
-59925
-73950
-816255

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + - 68 ) col1 FROM tab1
----
68

query I rowsort
SELECT DISTINCT + + ( + col2 ) * - ( + 9 ) * - + 55 * + + 85 * - 46 FROM tab0 AS cor0
----
-191609550
-19354500
-90966150

query I rowsort
SELECT ALL - + 82 * - - col0 FROM tab2 AS cor0
----
-3772
-5248
-6150

query II rowsort
SELECT + + 28 AS col1, - col1 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5265
SELECT DISTINCT col1 DIV + col0 * + - 66 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5265
SELECT DISTINCT col1 / + col0 * + - 66 AS col2 FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5266
SELECT + - col2 + + col0 + + + col0 DIV + 26 col1 FROM tab1 AS cor0
----
-44
26
29

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5266
SELECT + - col2 + + col0 + + + col0 / + 26 col1 FROM tab1 AS cor0
----
-44
26
29

onlyif mysql # DIV for integer division: 
query I rowsort label-5267
SELECT DISTINCT 69 DIV + - col2 + - - col0 DIV - - 92 AS col2 FROM tab2
----
-1
-3

skipif mysql # not compatible
query I rowsort label-5267
SELECT DISTINCT 69 / + - col2 + - - col0 / - - 92 AS col2 FROM tab2
----
-1
-3

query II rowsort
SELECT col1 * + + 1 + + col0, - 83 AS col2 FROM tab1
----
138
-83
65
-83
90
-83

query III rowsort
SELECT * FROM tab2 WHERE - col0 * - col1 + col1 <= NULL
----

query I rowsort
SELECT ALL + col2 - - - 33 AS col2 FROM tab0
----
-23
14
66

onlyif mysql # aggregate syntax: 
query III rowsort label-5271
SELECT ALL 70 AS col2, MAX( - + ( - 40 ) ) AS col0, - - ( - 5 ) + MIN( col1 ) FROM tab2 WHERE NULL IS NOT NULL
----
70
NULL
NULL

skipif mysql # not compatible
query III rowsort label-5271
SELECT ALL 70 AS col2, MAX ( - + ( - 40 ) ) AS col0, - - ( - 5 ) + MIN ( col1 ) FROM tab2 WHERE NULL IS NOT NULL
----
70
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5272
SELECT ALL 47 * + 0 - COUNT( * ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-5272
SELECT ALL 47 * + 0 - COUNT ( * ) FROM tab2
----
-3

query II rowsort
SELECT ALL - - 70, ( col1 ) FROM tab1 AS cor0
----
70
14
70
47
70
5

query I rowsort
SELECT - + col2 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
-10
-47
-99

query I rowsort
SELECT ALL + col1 - + 62 FROM tab1 AS cor0
----
-15
-48
-57

query III rowsort
SELECT * FROM tab0 WHERE NOT + - 41 BETWEEN col2 AND ( + - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5277
SELECT + 19, col0 FROM tab1 AS cor0 WHERE NOT + CAST( - col0 AS SIGNED ) IS NULL
----
19
51
19
85
19
91

skipif mysql # not compatible
query II rowsort label-5277
SELECT + 19, col0 FROM tab1 AS cor0 WHERE NOT + CAST ( - col0 AS INTEGER ) IS NULL
----
19
51
19
85
19
91

onlyif mysql # aggregate syntax: 
query II rowsort label-5278
SELECT ALL - 22 * - + ( - COUNT( * ) ) + 4 AS col0, COUNT( ALL + 82 ) col0 FROM tab2 AS cor0
----
-62
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5278
SELECT ALL - 22 * - + ( - COUNT ( * ) ) + 4 AS col0, COUNT ( ALL + 82 ) col0 FROM tab2 AS cor0
----
-62
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5279
SELECT DISTINCT + + ( SUM( ALL 55 ) ) AS col2 FROM tab2 AS cor0
----
165

skipif mysql # not compatible
query I rowsort label-5279
SELECT DISTINCT + + ( SUM ( ALL 55 ) ) AS col2 FROM tab2 AS cor0
----
165

query I rowsort
SELECT - - 64 * - col2 * + 3 FROM tab2 AS cor0
----
-11136
-4416
-7680

onlyif mysql # aggregate syntax: 
query I rowsort label-5281
SELECT + + 94 * + MAX( DISTINCT col0 ) col0 FROM tab0 AS cor0
----
9118

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5281
SELECT + + 94 * + MAX ( DISTINCT col0 ) col0 FROM tab0 AS cor0
----
9118

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) <= - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 86 * - col0 + + 63 col0 FROM tab2 AS cor0
----
4019
5567
6513

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 53, - col2 * + + 91 + col1 col0 FROM tab1
----
53
-5364
53
-6141
53
-8722

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + 23 <> NULL )
----

query I rowsort
SELECT DISTINCT + 96 * + + col2 FROM tab0
----
4512
9504
960

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT + col2 NOT BETWEEN 64 AND NULL )
----
85
5
59

query III rowsort
SELECT col0, + 56 * - col0, col1 FROM tab1
----
9 values hashing to dbd61afbe7d9c8dbe2420d970c752c09

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 * - col0 + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5290
SELECT 40 DIV - COUNT( * ) FROM tab0
----
-13

skipif mysql # not compatible
query I rowsort label-5290
SELECT 40 / - COUNT ( * ) FROM tab0
----
-13

query I rowsort
SELECT + col0 * + ( - - col0 ) * col2 FROM tab0
----
10575
75690
931491

onlyif mysql # DIV for integer division: 
query I rowsort label-5292
SELECT ( - - col0 ) DIV - - 94 + + col1 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-5292
SELECT ( - - col0 ) / - - 94 + + col1 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5293
SELECT DISTINCT + COUNT( DISTINCT + 14 ) AS col2 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5293
SELECT DISTINCT + COUNT ( DISTINCT + 14 ) AS col2 FROM tab1 AS cor0
----
1

query I rowsort
SELECT ALL + + 6 FROM tab2 WHERE 45 IS NULL
----

query I rowsort
SELECT + 35 + col0 * - - 59 * - col1 FROM tab2
----
-138379
-290717
-296440

query I rowsort
SELECT DISTINCT col1 * col0 - + 37 + - - ( + col1 ) FROM tab2 AS cor0
----
2360
4968
5055

onlyif mysql # aggregate syntax: 
query I rowsort label-5297
SELECT ALL - - COUNT( + col1 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5297
SELECT ALL - - COUNT ( + col1 ) FROM tab1 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5298
SELECT - 88 DIV - col1 AS col0 FROM tab0 AS cor0
----
1
4
88

skipif mysql # not compatible
query I rowsort label-5298
SELECT - 88 / - col1 AS col0 FROM tab0 AS cor0
----
1
4
88

query II rowsort
SELECT ALL 86 + col0 AS col0, + 95 FROM tab0
----
101
95
173
95
183
95

query II rowsort
SELECT ( + col2 ) AS col2, - col0 * + 77 AS col0 FROM tab0
----
10
-6699
47
-1155
99
-7469

onlyif mysql # aggregate syntax: 
query I rowsort label-5301
SELECT + 59 * - 48 - - 56 * + COUNT( * ) FROM tab1
----
-2664

skipif mysql # not compatible
query I rowsort label-5301
SELECT + 59 * - 48 - - 56 * + COUNT ( * ) FROM tab1
----
-2664

query I rowsort
SELECT - col1 FROM tab2 WHERE - - col2 IS NOT NULL
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-5303
SELECT DISTINCT 20 - + 65 - COUNT( * ) * 21 FROM tab0
----
-108

skipif mysql # not compatible
query I rowsort label-5303
SELECT DISTINCT 20 - + 65 - COUNT ( * ) * 21 FROM tab0
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-5304
SELECT SUM( ALL - - col1 ) - 20 FROM tab2
----
175

skipif mysql # not compatible
query I rowsort label-5304
SELECT SUM ( ALL - - col1 ) - 20 FROM tab2
----
175

query I rowsort
SELECT col0 - - 15 + - - col2 + + + col1 AS col0 FROM tab0
----
133
158
212

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - 63 AND + col0
----

query I rowsort
SELECT - + 19 + 32 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

query I rowsort
SELECT DISTINCT ( - + col1 ) AS col1 FROM tab2
----
-51
-67
-77

query II rowsort
SELECT ALL col1 AS col2, col0 FROM tab1
----
14
51
47
91
5
85

query I rowsort
SELECT 5 - - 52 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5311
SELECT DISTINCT + COUNT( * ) col0, - COUNT( ALL CAST( col0 AS SIGNED ) ) FROM tab0 AS cor0
----
3
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5311
SELECT DISTINCT + COUNT ( * ) col0, - COUNT ( ALL CAST ( col0 AS INTEGER ) ) FROM tab0 AS cor0
----
3
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * 85 col1 FROM tab0 cor0
----
1785
6885
85

query I rowsort
SELECT ( 30 ) FROM tab0
----
30
30
30

onlyif mysql # aggregate syntax: 
query I rowsort label-5314
SELECT COUNT( * ) * - + COUNT( * ) col0 FROM tab1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5314
SELECT COUNT ( * ) * - + COUNT ( * ) col0 FROM tab1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5315
SELECT DISTINCT * FROM tab2 WHERE NOT NULL BETWEEN + - col1 AND + + CAST( NULL AS SIGNED ) + col2
----

skipif mysql # not compatible
query III rowsort label-5315
SELECT DISTINCT * FROM tab2 WHERE NOT NULL BETWEEN + - col1 AND + + CAST ( NULL AS INTEGER ) + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5316
SELECT ALL + SUM( + - 16 ) FROM tab0
----
-48

skipif mysql # not compatible
query I rowsort label-5316
SELECT ALL + SUM ( + - 16 ) FROM tab0
----
-48

query I rowsort
SELECT DISTINCT 44 AS col0 FROM tab2 AS cor0 WHERE NULL <= 22 / col2 * + 41 + 63
----

query I rowsort
SELECT DISTINCT + - col0 + - - col2 FROM tab2 AS cor0
----
-17
-23
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5319
SELECT - + MAX( DISTINCT + col2 ) + - CAST( + 96 AS SIGNED ) FROM tab2 AS cor0
----
-154

skipif mysql # not compatible
query I rowsort label-5319
SELECT - + MAX ( DISTINCT + col2 ) + - CAST ( + 96 AS INTEGER ) FROM tab2 AS cor0
----
-154

onlyif mysql # aggregate syntax: 
query I rowsort label-5320
SELECT ALL + MAX( ALL 70 ) + - 62 AS col2 FROM tab0 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-5320
SELECT ALL + MAX ( ALL 70 ) + - 62 AS col2 FROM tab0 AS cor0
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5321
SELECT DISTINCT col2 * 19 * + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5321
SELECT DISTINCT col2 * 19 * + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT + 71 + + 68 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ec60c4a1fe63bc8e6608e204b0ee0405

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IS NULL OR NOT - col2 = ( + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5324
SELECT ALL - ( + ( 86 ) ) * - COUNT( * ) AS col0 FROM tab2
----
258

skipif mysql # not compatible
query I rowsort label-5324
SELECT ALL - ( + ( 86 ) ) * - COUNT ( * ) AS col0 FROM tab2
----
258

onlyif mysql # aggregate syntax: 
query I rowsort label-5325
SELECT ALL + SUM( DISTINCT 0 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-5325
SELECT ALL + SUM ( DISTINCT 0 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col1 BETWEEN NULL AND + col2
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-5327
SELECT DISTINCT - MAX( col2 ) AS col0 FROM tab2 cor0
----
-58

skipif mysql # not compatible
query I rowsort label-5327
SELECT DISTINCT - MAX ( col2 ) AS col0 FROM tab2 cor0
----
-58

query I rowsort
SELECT 17 + 11 AS col2 FROM tab2 AS cor0
----
28
28
28

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL > 59
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5330
SELECT - COUNT( * ) + + - 36 * - - COUNT( * ) FROM tab2 AS cor0
----
-111

skipif mysql # not compatible
query I rowsort label-5330
SELECT - COUNT ( * ) + + - 36 * - - COUNT ( * ) FROM tab2 AS cor0
----
-111

query III rowsort
SELECT ALL * FROM tab1 WHERE - + 98 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 2 AS col2 FROM tab1 WHERE ( NULL NOT BETWEEN 70 AND 62 * col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5333
SELECT DISTINCT COUNT( * ) + 38 + ( 46 ) AS col1 FROM tab0
----
87

skipif mysql # not compatible
query I rowsort label-5333
SELECT DISTINCT COUNT ( * ) + 38 + ( 46 ) AS col1 FROM tab0
----
87

query I rowsort
SELECT DISTINCT 84 - + - 95 FROM tab2
----
179

onlyif mysql # aggregate syntax: 
query I rowsort label-5335
SELECT DISTINCT - 64 + SUM( ( - 80 ) ) FROM tab2, tab2 AS cor0
----
-784

skipif mysql # not compatible
query I rowsort label-5335
SELECT DISTINCT - 64 + SUM ( ( - 80 ) ) FROM tab2, tab2 AS cor0
----
-784

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5336
SELECT ALL * FROM tab2 WHERE + + 50 / - + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5336
SELECT ALL * FROM tab2 WHERE + + 50 / - + CAST ( NULL AS INTEGER ) IS NOT NULL
----

query II rowsort
SELECT - + col1 AS col1, - col2 FROM tab1 AS cor0
----
-14
-96
-47
-68
-5
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-5338
SELECT - COUNT( ALL col0 ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5338
SELECT - COUNT ( ALL col0 ) AS col1 FROM tab0 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - 18 - col1 col0 FROM tab1 cor0
----
-1535
-1685
-932

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5341
SELECT DISTINCT + COUNT( * ) * - 93 FROM tab1 AS cor0
----
-279

skipif mysql # not compatible
query I rowsort label-5341
SELECT DISTINCT + COUNT ( * ) * - 93 FROM tab1 AS cor0
----
-279

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col1, 29 + + col0 AS col2 FROM tab1 AS cor0
----
-14
80
-47
120
-5
114

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5343
SELECT ALL - + col0 + - col1 DIV - - 19 FROM tab0 AS cor0 WHERE + col0 * - - CAST( NULL AS SIGNED ) + - col2 IS NOT NULL OR + + col1 <= - - col0
----
-88
-97

skipif mysql # not compatible
query I rowsort label-5343
SELECT ALL - + col0 + - col1 / - - 19 FROM tab0 AS cor0 WHERE + col0 * - - CAST ( NULL AS INTEGER ) + - col2 IS NOT NULL OR + + col1 <= - - col0
----
-88
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5344
SELECT + + 58 * COUNT( * ) + COUNT( * ) + - 76 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
455

skipif mysql # not compatible
query I rowsort label-5344
SELECT + + 58 * COUNT ( * ) + COUNT ( * ) + - 76 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
455

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 61 col2 FROM tab2 AS cor0
----
-61
-61
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-5346
SELECT SUM( DISTINCT + col0 ) + COUNT( + col1 ) FROM tab1 AS cor0
----
230

skipif mysql # not compatible
query I rowsort label-5346
SELECT SUM ( DISTINCT + col0 ) + COUNT ( + col1 ) FROM tab1 AS cor0
----
230

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 42 col0 FROM tab2 AS cor0
----
42
42
42

query I rowsort
SELECT DISTINCT 47 + + 35 FROM tab2 cor0
----
82

query III rowsort
SELECT * FROM tab2 WHERE NOT - 89 * + 45 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col0 * col2 * + col0 + 35 * + + 94 FROM tab1
----
252986
429565
566398

query II rowsort
SELECT DISTINCT - col0, col0 AS col1 FROM tab0
----
-15
15
-87
87
-97
97

query I rowsort
SELECT ALL ( + 99 ) * + 63 + + col2 AS col2 FROM tab0
----
6247
6284
6336

query I rowsort
SELECT DISTINCT + col1 FROM tab1 WHERE NOT - - ( + + col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5354
SELECT DISTINCT MIN( ALL - + col2 ) FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-5354
SELECT DISTINCT MIN ( ALL - + col2 ) FROM tab0 AS cor0
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5355
SELECT - CAST( NULL AS SIGNED ) / + + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5355
SELECT - CAST ( NULL AS INTEGER ) / + + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5356
SELECT ALL + - 17 AS col0, COUNT( * ) - + 46 AS col0 FROM tab1 cor0
----
-17
-43

skipif mysql # not compatible
query II rowsort label-5356
SELECT ALL + - 17 AS col0, COUNT ( * ) - + 46 AS col0 FROM tab1 cor0
----
-17
-43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 68 + + 30 + + - col1 col1 FROM tab1
----
51
84
93

query I rowsort
SELECT DISTINCT + 93 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
93

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( - - col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5360
SELECT ALL + COUNT( * ) * - + 73 FROM tab2 AS cor0
----
-219

skipif mysql # not compatible
query I rowsort label-5360
SELECT ALL + COUNT ( * ) * - + 73 FROM tab2 AS cor0
----
-219

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5361
SELECT ALL + CAST( + - col1 AS SIGNED ) AS col2, + col1 * 76 - - col2 FROM tab0 AS cor0
----
-1
175
-21
1606
-81
6203

skipif mysql # not compatible
query II rowsort label-5361
SELECT ALL + CAST ( + - col1 AS INTEGER ) AS col2, + col1 * 76 - - col2 FROM tab0 AS cor0
----
-1
175
-21
1606
-81
6203

query I rowsort
SELECT ALL + ( + col0 ) FROM tab1 AS cor0 WHERE NOT 58 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5363
SELECT ALL MAX( + col1 ) + + 17 FROM tab2
----
94

skipif mysql # not compatible
query I rowsort label-5363
SELECT ALL MAX ( + col1 ) + + 17 FROM tab2
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-5364
SELECT DISTINCT + 85 * - - COUNT( * ) FROM tab2
----
255

skipif mysql # not compatible
query I rowsort label-5364
SELECT DISTINCT + 85 * - - COUNT ( * ) FROM tab2
----
255

query I rowsort
SELECT - ( - 21 ) FROM tab0
----
21
21
21

query I rowsort
SELECT ALL - col1 AS col2 FROM tab2 WHERE NULL IN ( + col0, 45 + - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5367
SELECT - MAX( DISTINCT - - col2 ) AS col2 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-5367
SELECT - MAX ( DISTINCT - - col2 ) AS col2 FROM tab2
----
-58

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( NULL ) >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) > + col2
----

query I rowsort
SELECT DISTINCT + 96 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 col0, - 16 + - 50 col0 FROM tab2
----
-23
-66
-40
-66
-58
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-5372
SELECT DISTINCT - + 8 DIV - col2 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5372
SELECT DISTINCT - + 8 / - col2 AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT col0 AS col0 FROM tab1 cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND + + col0
----

query II rowsort
SELECT + + col1, + col0 * + 76 AS col2 FROM tab1 AS cor0
----
14
3876
47
6916
5
6460

query I rowsort
SELECT - col2 FROM tab2 AS cor0 WHERE NOT + col0 + + + 59 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - - col2 ) col2 FROM tab1
----
59
68
96

query III rowsort
SELECT * FROM tab2 WHERE + col1 + - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5378
SELECT COUNT( * ) * - + 83 FROM tab0
----
-249

skipif mysql # not compatible
query I rowsort label-5378
SELECT COUNT ( * ) * - + 83 FROM tab0
----
-249

query I rowsort
SELECT + col2 + 89 AS col2 FROM tab2
----
112
129
147

query II rowsort
SELECT - 12 + - 77 AS col1, col0 - - 47 + - + col1 * + - 9 * 84 AS col0 FROM tab0
----
-89
16010
-89
61298
-89
900

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col1 ) + - col2 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 * + col0 col1 FROM tab0 cor0
----
1215
1827
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5383
SELECT col0 * + 21 * + CAST( + 12 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
11592
16128
18900

skipif mysql # not compatible
query I rowsort label-5383
SELECT col0 * + 21 * + CAST ( + 12 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
11592
16128
18900

query I rowsort
SELECT DISTINCT + 34 + - 32 FROM tab0 AS cor0
----
2

query I rowsort
SELECT DISTINCT col2 * + 51 * + + col0 + + 96 AS col1 FROM tab0 AS cor0
----
36051
44466
489849

query I rowsort
SELECT - + col2 FROM tab1 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 / col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5388
SELECT - COUNT( * ) + + 68 col1 FROM tab1 AS cor0
----
65

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5388
SELECT - COUNT ( * ) + + 68 col1 FROM tab1 AS cor0
----
65

onlyif mysql # aggregate syntax: 
query II rowsort label-5389
SELECT DISTINCT - 74 AS col1, - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-74
-3

skipif mysql # not compatible
query II rowsort label-5389
SELECT DISTINCT - 74 AS col1, - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-74
-3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 63 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * + 52 col1 FROM tab2 AS cor0
----
-1196
-2080
-3016

query I rowsort
SELECT DISTINCT + - 21 FROM tab2 cor0
----
-21

query II rowsort
SELECT DISTINCT + + ( - col0 ), 0 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-51
0
-85
0
-91
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5394
SELECT - COUNT( * ) DIV + COUNT( * ) col2 FROM tab2
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5394
SELECT - COUNT ( * ) / + COUNT ( * ) col2 FROM tab2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5395
SELECT + col1 DIV + - 66 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5395
SELECT + col1 / + - 66 AS col1 FROM tab1
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL BETWEEN col2 AND + col0
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - + 64 NOT BETWEEN NULL AND 18
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5398
SELECT ALL - col2 FROM tab0 WHERE NULL NOT BETWEEN + CAST( NULL AS SIGNED ) AND - - 92
----

skipif mysql # not compatible
query I rowsort label-5398
SELECT ALL - col2 FROM tab0 WHERE NULL NOT BETWEEN + CAST ( NULL AS INTEGER ) AND - - 92
----

query I rowsort
SELECT DISTINCT + + 57 AS col1 FROM tab0 cor0
----
57

query I rowsort
SELECT + 45 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

query I rowsort
SELECT DISTINCT - 1 * + + col2 FROM tab2
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5402
SELECT + 17 + COUNT( * ) AS col1 FROM tab0 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-5402
SELECT + 17 + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
20

query I rowsort
SELECT ALL - 9 * - col2 FROM tab1 AS cor0
----
531
612
864

query I rowsort
SELECT + ( 90 ) + + 96 FROM tab1 cor0
----
186
186
186

onlyif mysql # aggregate syntax: 
query I rowsort label-5405
SELECT DISTINCT - 60 - + COUNT( * ) FROM tab2 AS cor0 WHERE NULL <> ( NULL )
----
-60

skipif mysql # not compatible
query I rowsort label-5405
SELECT DISTINCT - 60 - + COUNT ( * ) FROM tab2 AS cor0 WHERE NULL <> ( NULL )
----
-60

query I rowsort
SELECT DISTINCT - 84 * + + 44 + + + ( - + col2 ) AS col1 FROM tab0 AS cor0
----
-3706
-3743
-3795

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5407
SELECT ALL CAST( NULL AS DECIMAL ) * + 60 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5407
SELECT ALL CAST ( NULL AS REAL ) * + 60 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 83 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-83
-83
-83

query I rowsort
SELECT ALL + - col2 * col1 * + col2 + + col0 FROM tab0 AS cor0
----
-178914
-2013
-9704

query I rowsort
SELECT ALL 94 + + 93 AS col2 FROM tab2
----
187
187
187

onlyif mysql # aggregate syntax: 
query I rowsort label-5411
SELECT ALL 95 * + - COUNT( * ) AS col1 FROM tab0
----
-285

skipif mysql # not compatible
query I rowsort label-5411
SELECT ALL 95 * + - COUNT ( * ) AS col1 FROM tab0
----
-285

query I rowsort
SELECT ALL - 56 * + ( ( - - col2 ) ) * + + col2 + + - col0 * + + col2 AS col1 FROM tab0
----
-124409
-558459
-6470

onlyif mysql # aggregate syntax: 
query I rowsort label-5413
SELECT + COUNT( * ) * + SUM( ALL - + 6 ) AS col2 FROM tab2
----
-54

skipif mysql # not compatible
query I rowsort label-5413
SELECT + COUNT ( * ) * + SUM ( ALL - + 6 ) AS col2 FROM tab2
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-5414
SELECT + COUNT( DISTINCT col0 ) * + MAX( DISTINCT + ( - col1 ) ) col2 FROM tab1 WHERE ( + col0 ) IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5414
SELECT + COUNT ( DISTINCT col0 ) * + MAX ( DISTINCT + ( - col1 ) ) col2 FROM tab1 WHERE ( + col0 ) IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5415
SELECT col1 DIV - CAST( + 60 AS SIGNED ) FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-5415
SELECT col1 / - CAST ( + 60 AS INTEGER ) FROM tab2
----
-1
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5416
SELECT - - MAX( ALL + - 77 ) * + 32 - + COUNT( ALL - col1 ) col1 FROM tab2 AS cor0
----
-2467

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5416
SELECT - - MAX ( ALL + - 77 ) * + 32 - + COUNT ( ALL - col1 ) col1 FROM tab2 AS cor0
----
-2467

query II rowsort
SELECT DISTINCT col1, + 70 FROM tab0 AS cor0
----
1
70
21
70
81
70

query I rowsort
SELECT ALL + + 60 + 48 - - + 20 - - col2 * + + col2 FROM tab1 AS cor0
----
3609
4752
9344

query I rowsort
SELECT ALL ( + 87 ) + 16 AS col2 FROM tab0
----
103
103
103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5420
SELECT CAST( NULL AS SIGNED ) / col2 + col2 * + 42 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5420
SELECT CAST ( NULL AS INTEGER ) / col2 + col2 * + 42 AS col1 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( 56, + 88 )
----

query I rowsort
SELECT DISTINCT - col0 * - col1 + - + col1 * + col0 FROM tab0 AS cor0 WHERE 83 * col2 NOT BETWEEN + col0 AND col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5423
SELECT 43 * MIN( + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5423
SELECT 43 * MIN ( + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5424
SELECT - CAST( NULL AS SIGNED ) * + + COUNT( * ) col1, ( 91 ) FROM tab1 AS cor0
----
NULL
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5424
SELECT - CAST ( NULL AS INTEGER ) * + + COUNT ( * ) col1, ( 91 ) FROM tab1 AS cor0
----
NULL
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5425
SELECT DISTINCT + - COUNT( * ) + 4 AS col0 FROM tab1 AS cor0 WHERE NOT col2 IN ( - + col2 DIV col1 * - col1, - col0 )
----
1

skipif mysql # not compatible
query I rowsort label-5425
SELECT DISTINCT + - COUNT ( * ) + 4 AS col0 FROM tab1 AS cor0 WHERE NOT col2 IN ( - + col2 / col1 * - col1, - col0 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5426
SELECT ALL - MIN( col2 ), ( + + 13 ) AS col2 FROM tab0 AS cor0
----
-10
13

skipif mysql # not compatible
query II rowsort label-5426
SELECT ALL - MIN ( col2 ), ( + + 13 ) AS col2 FROM tab0 AS cor0
----
-10
13

onlyif mysql # aggregate syntax: 
query I rowsort label-5427
SELECT ALL MIN( DISTINCT - + col0 ) FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-5427
SELECT ALL MIN ( DISTINCT - + col0 ) FROM tab2 AS cor0
----
-75

query II rowsort
SELECT - 44, col0 FROM tab1
----
-44
51
-44
85
-44
91

query III rowsort
SELECT * FROM tab2 WHERE NOT 6 >= NULL
----

query I rowsort
SELECT col1 * - 66 * - 17 FROM tab1
----
15708
52734
5610

onlyif mysql # DIV for integer division: 
query I rowsort label-5431
SELECT + 20 DIV - 64 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5431
SELECT + 20 / - 64 AS col0 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5432
SELECT ALL - 9 - - COUNT( * ) AS col0 FROM tab0 WHERE - col0 IS NULL
----
-9

skipif mysql # not compatible
query I rowsort label-5432
SELECT ALL - 9 - - COUNT ( * ) AS col0 FROM tab0 WHERE - col0 IS NULL
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5433
SELECT MIN( DISTINCT col1 ) col2 FROM tab0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5433
SELECT MIN ( DISTINCT col1 ) col2 FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5434
SELECT ALL + COUNT( DISTINCT + col1 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5434
SELECT ALL + COUNT ( DISTINCT + col1 ) AS col1 FROM tab0
----
3

query I rowsort
SELECT DISTINCT + + 51 * 76 * - ( + col0 ) AS col0 FROM tab1 cor0
----
-197676
-329460
-352716

onlyif mysql # aggregate syntax: 
query I rowsort label-5436
SELECT DISTINCT - SUM( 82 ) FROM tab0 AS cor0
----
-246

skipif mysql # not compatible
query I rowsort label-5436
SELECT DISTINCT - SUM ( 82 ) FROM tab0 AS cor0
----
-246

query I rowsort
SELECT ALL - 88 + + + col0 AS col1 FROM tab1 AS cor0
----
-3
-37
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL >= - col0 * col2
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5439
SELECT ALL ( + CAST( ( 52 ) AS SIGNED ) ) DIV 14 AS col1 FROM tab1 WHERE + col0 BETWEEN ( col2 DIV - col0 ) AND + 47 + col0
----
3
3
3

skipif mysql # not compatible
query I rowsort label-5439
SELECT ALL ( + CAST ( ( 52 ) AS INTEGER ) ) / 14 AS col1 FROM tab1 WHERE + col0 BETWEEN ( col2 / - col0 ) AND + 47 + col0
----
3
3
3

query I rowsort
SELECT DISTINCT - 36 AS col0 FROM tab0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-5441
SELECT ALL COUNT( * ) FROM tab2 WHERE NOT NULL BETWEEN + 22 AND - col0 + 23
----
0

skipif mysql # not compatible
query I rowsort label-5441
SELECT ALL COUNT ( * ) FROM tab2 WHERE NOT NULL BETWEEN + 22 AND - col0 + 23
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col0 FROM tab2 WHERE NOT col0 >= - 53
----

query I rowsort
SELECT col2 * - 27 AS col1 FROM tab1 WHERE ( NULL ) > col1
----

query III rowsort
SELECT * FROM tab1 WHERE NOT 68 * + col0 > ( + col0 )
----

query I rowsort
SELECT - ( col1 ) - + 39 * + col0 AS col0 FROM tab2
----
-1845
-2573
-2992

query I rowsort
SELECT col0 FROM tab2 WHERE 77 = ( + col1 * - 56 + + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col1 ) + + 39 col1 FROM tab0
----
-42
18
38

query I rowsort
SELECT + 73 * - col2 FROM tab0
----
-3431
-7227
-730

query I rowsort
SELECT DISTINCT col0 - col1 * + col1 FROM tab1
----
-145
-2118
60

onlyif mysql # aggregate syntax: 
query I rowsort label-5450
SELECT - COUNT( * ) + - 84 AS col1 FROM tab2
----
-87

skipif mysql # not compatible
query I rowsort label-5450
SELECT - COUNT ( * ) + - 84 AS col1 FROM tab2
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-5451
SELECT ALL - 76 * COUNT( * ) col2 FROM tab2
----
-228

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5451
SELECT ALL - 76 * COUNT ( * ) col2 FROM tab2
----
-228

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5452
SELECT ALL CAST( NULL AS SIGNED ) / - col0 + col0 col1 FROM tab0 WHERE ( 23 * - 80 ) NOT BETWEEN - 25 + - 42 / - col0 AND 73 + - CAST( NULL AS SIGNED )
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5452
SELECT ALL CAST ( NULL AS INTEGER ) / - col0 + col0 col1 FROM tab0 WHERE ( 23 * - 80 ) NOT BETWEEN - 25 + - 42 / - col0 AND 73 + - CAST ( NULL AS INTEGER )
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 38 + ( - col2 ) col0 FROM tab1
----
-21
-30
-58

query I rowsort
SELECT ALL col2 FROM tab0 WHERE ( col2 ) < + 94 * col1
----
10
47

query I rowsort
SELECT col2 + 27 AS col1 FROM tab1
----
123
86
95

query I rowsort
SELECT DISTINCT 42 * + col2 AS col1 FROM tab2
----
1680
2436
966

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col1 * - 52 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 87 + - col2 AS col0 FROM tab0
----
-12
40
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 81 * - col0 col1 FROM tab2
----
-3726
-5184
-6075

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * 25 col1 FROM tab2
----
-1150
-1600
-1875

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5461
SELECT DISTINCT + 12 + 96 DIV MIN( + col0 ) col2 FROM tab0 AS cor0
----
18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5461
SELECT DISTINCT + 12 + 96 / MIN ( + col0 ) col2 FROM tab0 AS cor0
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5462
SELECT COUNT( * ) DIV + 81 AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5462
SELECT COUNT ( * ) / + 81 AS col1 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5463
SELECT DISTINCT + MAX( ALL CAST( - col0 AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-5463
SELECT DISTINCT + MAX ( ALL CAST ( - col0 AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
-15

query III rowsort
SELECT * FROM tab1 WHERE 88 BETWEEN - 40 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5465
SELECT DISTINCT ( - COUNT( * ) ) * 60 + 60 FROM tab1
----
-120

skipif mysql # not compatible
query I rowsort label-5465
SELECT DISTINCT ( - COUNT ( * ) ) * 60 + 60 FROM tab1
----
-120

query I rowsort
SELECT 15 - col1 AS col1 FROM tab1 WHERE + ( + col1 ) + col2 <= 96 + 17
----
1
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5467
SELECT DISTINCT col1 + CAST( - 86 AS SIGNED ) col1 FROM tab1
----
-39
-72
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5467
SELECT DISTINCT col1 + CAST ( - 86 AS INTEGER ) col1 FROM tab1
----
-39
-72
-81

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5469
SELECT + COUNT( * ) AS col1 FROM tab0 cor0 CROSS JOIN tab2
----
9

skipif mysql # not compatible
query I rowsort label-5469
SELECT + COUNT ( * ) AS col1 FROM tab0 cor0 CROSS JOIN tab2
----
9

query I rowsort
SELECT + ( 62 ) AS col0 FROM tab1
----
62
62
62

onlyif mysql # aggregate syntax: 
query I rowsort label-5471
SELECT DISTINCT COUNT( * ) AS col1 FROM tab1 WHERE ( col2 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5471
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab1 WHERE ( col2 ) IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 17 col2 FROM tab1 AS cor0
----
-17
-17
-17

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 * + 12 NOT BETWEEN col2 AND 70
----
51
14
96
91
47
68

query I rowsort
SELECT ALL + - 66 AS col1 FROM tab2 AS cor0
----
-66
-66
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-5475
SELECT MIN( 79 ) FROM tab0 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-5475
SELECT MIN ( 79 ) FROM tab0 AS cor0
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5476
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - CAST( - col0 AS SIGNED ) NOT IN ( - col1 )
----

skipif mysql # not compatible
query III rowsort label-5476
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - CAST ( - col0 AS INTEGER ) NOT IN ( - col1 )
----

query I rowsort
SELECT DISTINCT + col1 + col0 AS col0 FROM tab2 AS cor0 WHERE NULL >= ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 + 2 <= ( + col2 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 39 = + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( + col1 ) NOT IN ( col2 / - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5481
SELECT + ( + - col2 ) DIV ( - 9 + 84 * col1 ) AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5481
SELECT + ( + - col2 ) / ( - 9 + 84 * col1 ) AS col1 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5482
SELECT - MAX( - col1 ) FROM tab2 WHERE NOT ( + col1 * - 79 ) NOT IN ( 73 / ( - col2 ) + 45 * + ( + col2 * 8 + + col2 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5482
SELECT - MAX ( - col1 ) FROM tab2 WHERE NOT ( + col1 * - 79 ) NOT IN ( 73 / ( - col2 ) + 45 * + ( + col2 * 8 + + col2 ) )
----
NULL

query I rowsort
SELECT ALL 11 * + 18 FROM tab0
----
198
198
198

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN + col1 AND - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5485
SELECT DISTINCT 29 DIV - - 20 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-5485
SELECT DISTINCT 29 / - - 20 FROM tab2
----
1

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 55 / col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5487
SELECT ALL MIN( - col1 ) col0 FROM tab1
----
-47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5487
SELECT ALL MIN ( - col1 ) col0 FROM tab1
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5488
SELECT - MIN( ALL - CAST( + col1 AS SIGNED ) ) / + 36 + CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT - 2 - - col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5488
SELECT - MIN ( ALL - CAST ( + col1 AS INTEGER ) ) / + 36 + CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT - 2 - - col1 IS NOT NULL
----
NULL

query I rowsort
SELECT + col0 FROM tab1 WHERE NOT ( + col0 + col0 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN + col0 AND ( col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col0 + - col0 NOT IN ( - ( 28 ) ) OR NOT col0 BETWEEN ( - 62 ) AND col0
----

query I rowsort
SELECT - ( - ( 85 ) ) AS col2 FROM tab2 AS cor0
----
85
85
85

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 80 * - 50 = NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5494
SELECT DISTINCT * FROM tab1 cor0 WHERE + CAST( col1 AS DECIMAL ) BETWEEN ( 31 * 43 ) AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-5494
SELECT DISTINCT * FROM tab1 cor0 WHERE + CAST ( col1 AS REAL ) BETWEEN ( 31 * 43 ) AND ( NULL )
----

query I rowsort
SELECT ALL 99 FROM tab0 AS cor0 WHERE col2 * 94 + 64 IS NULL
----

query I rowsort
SELECT ALL - col2 * + 87 + - 56 * + col0 FROM tab2 AS cor0
----
-4577
-7064
-9246

query I rowsort
SELECT col1 FROM tab2 cor0 WHERE NOT - ( + col1 ) * - col1 IN ( + 58 )
----
51
67
77

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab1 WHERE NOT ( 58 ) NOT IN ( col1 )
----

query I rowsort
SELECT ALL - col1 + - 72 AS col1 FROM tab1
----
-119
-77
-86

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL IN ( - col2 * col2 + 41 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5501
SELECT - col2 + - 89 - - CAST( + CAST( ( - col0 ) AS SIGNED ) AS SIGNED ) col1 FROM tab1
----
-233
-236
-248

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5501
SELECT - col2 + - 89 - - CAST ( + CAST ( ( - col0 ) AS INTEGER ) AS INTEGER ) col1 FROM tab1
----
-233
-236
-248

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5502
SELECT 45 * 89 + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5502
SELECT 45 * 89 + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - - 76 ) NOT BETWEEN ( 42 ) AND + ( col2 )
----
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5504
SELECT ALL - COUNT( * ) AS col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-5504
SELECT ALL - COUNT ( * ) AS col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5505
SELECT DISTINCT + + ( - + COUNT( * ) ) col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5505
SELECT DISTINCT + + ( - + COUNT ( * ) ) col0 FROM tab0 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-5506
SELECT ( - 7 ) * - + ( + 15 ) * col0 + - 44 * + ( - col2 DIV - 82 + 60 ) FROM tab1 AS cor0
----
2671
6285
6915

skipif mysql # not compatible
query I rowsort label-5506
SELECT ( - 7 ) * - + ( + 15 ) * col0 + - 44 * + ( - col2 / - 82 + 60 ) FROM tab1 AS cor0
----
2671
6285
6915

query I rowsort
SELECT + + col0 * - col2 + + 55 + col1 FROM tab1 AS cor0
----
-4827
-4955
-6086

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col0 * - + 64 ) < ( - 57 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 57 + - col2 AS col0 FROM tab0 AS cor0
----
-104
-156
-67

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) <> col1 + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col1 ) col1 FROM tab0 cor0 WHERE col0 * - col1 * 30 <= 9
----
-1
-21
-81

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 / col1 + 59 * 31 > ( NULL ) OR NOT ( NULL ) <= col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5513
SELECT DISTINCT + COUNT( * ) FROM tab2 AS cor0 WHERE NULL < 19 * - - 21 * ( + 39 * col0 )
----
0

skipif mysql # not compatible
query I rowsort label-5513
SELECT DISTINCT + COUNT ( * ) FROM tab2 AS cor0 WHERE NULL < 19 * - - 21 * ( + 39 * col0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5514
SELECT DISTINCT + 23 + + COUNT( ALL + col1 ) AS col2 FROM tab1
----
26

skipif mysql # not compatible
query I rowsort label-5514
SELECT DISTINCT + 23 + + COUNT ( ALL + col1 ) AS col2 FROM tab1
----
26

query I rowsort
SELECT ALL + 29 + - 67 FROM tab1
----
-38
-38
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-5516
SELECT DISTINCT MAX( ALL col1 ) FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-5516
SELECT DISTINCT MAX ( ALL col1 ) FROM tab2
----
77

query I rowsort
SELECT 8 * - col2 - col0 FROM tab2
----
-230
-384
-539

query I rowsort
SELECT DISTINCT - col0 * - 8 AS col2 FROM tab0 AS cor0
----
120
696
776

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( NOT 38 > ( col2 / - col0 ) )
----

query I rowsort
SELECT ALL - col0 FROM tab1 AS cor0 WHERE NOT ( col1 IS NOT NULL )
----

query I rowsort
SELECT DISTINCT + 91 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
91

query III rowsort
SELECT * FROM tab2 WHERE NOT + 77 * + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col0 * 36 * - + col1 FROM tab1
----
-15300
-153972
-25704

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * - col0 col2 FROM tab2 AS cor0
----
1058
2560
4350

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( ( - col1 ) ) <= + 44 * + col0 - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5526
SELECT ALL + CAST( col2 AS DECIMAL ) AS col0 FROM tab1 AS cor0 WHERE NOT + 58 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5526
SELECT ALL + CAST ( col2 AS REAL ) AS col0 FROM tab1 AS cor0 WHERE NOT + 58 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5527
SELECT DISTINCT ( + col1 ) DIV col1, + col2 - col1 AS col2 FROM tab0 AS cor0
----
1
-11
1
-34
1
98

skipif mysql # not compatible
query II rowsort label-5527
SELECT DISTINCT ( + col1 ) / col1, + col2 - col1 AS col2 FROM tab0 AS cor0
----
1
-11
1
-34
1
98

query I rowsort
SELECT ALL + + col0 * + col2 FROM tab1 cor0
----
4896
5015
6188

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( ( - col1 ) + + + col0 ) > NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 60 NOT IN ( 13 )
----

query I rowsort
SELECT ALL 44 * + + col1 AS col0 FROM tab2 AS cor0
----
2244
2948
3388

query I rowsort
SELECT ALL 79 + 44 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5533
SELECT DISTINCT - 43 DIV + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-14

skipif mysql # not compatible
query I rowsort label-5533
SELECT DISTINCT - 43 / + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-14

query III rowsort
SELECT * FROM tab0 WHERE NOT 78 * - + col2 - - col1 BETWEEN - 95 * col2 AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5535
SELECT COUNT( * ) DIV - 90 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5535
SELECT COUNT ( * ) / - 90 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5536
SELECT DISTINCT col0, + CAST( NULL AS SIGNED ) FROM tab2
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-5536
SELECT DISTINCT col0, + CAST ( NULL AS INTEGER ) FROM tab2
----
46
NULL
64
NULL
75
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col2 * + 34 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + 62 FROM tab0 WHERE NOT ( - 53 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - ( col0 ), + col2 col1 FROM tab2
----
-46
23
-64
40
-75
58

query I rowsort
SELECT ALL - + col1 * 87 FROM tab2 WHERE NOT - col1 NOT IN ( - 14, - col2 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + - col0 - col0 / - 37 IS NOT NULL
----

query I rowsort
SELECT 43 * 41 AS col0 FROM tab1
----
1763
1763
1763

onlyif mysql # aggregate syntax: 
query I rowsort label-5543
SELECT + + COUNT( * ) + + 70 FROM tab1 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-5543
SELECT + + COUNT ( * ) + + 70 FROM tab1 AS cor0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-5544
SELECT + + SUM( - 44 ) + - - 64 AS col2 FROM tab2 AS cor0
----
-68

skipif mysql # not compatible
query I rowsort label-5544
SELECT + + SUM ( - 44 ) + - - 64 AS col2 FROM tab2 AS cor0
----
-68

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col0 + - 20 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5546
SELECT COUNT( * ) FROM tab1 WHERE col0 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-5546
SELECT COUNT ( * ) FROM tab1 WHERE col0 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5547
SELECT + COUNT( * ) DIV - - 71 - - COUNT( * ) col0 FROM tab0 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5547
SELECT + COUNT ( * ) / - - 71 - - COUNT ( * ) col0 FROM tab0 cor0
----
3

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( + + col2 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( ( NULL ) IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + + col2, col2 AS col0 FROM tab1 AS cor0 WHERE ( ( NULL ) < - 7 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5551
SELECT CAST( NULL AS SIGNED ) - - col0 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-5551
SELECT CAST ( NULL AS INTEGER ) - - col0 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL + + col2 + - 76 AS col1, col0 FROM tab2 cor0
----
-18
75
-36
64
-53
46

query I rowsort
SELECT col1 + 31 + col1 + + col1 * - col2 * + col2 + - col2 FROM tab2 AS cor0
----
-123055
-225281
-26869

query I rowsort
SELECT ALL 59 FROM tab2 AS cor0 WHERE 27 IS NOT NULL
----
59
59
59

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col2 + - col0 <> - 80
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5556
SELECT ALL + - 27 + COUNT( ALL CAST( - col0 AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-5556
SELECT ALL + - 27 + COUNT ( ALL CAST ( - col0 AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
-24

query III rowsort
SELECT * FROM tab1 WHERE - 70 * - 45 + - 10 + col1 NOT IN ( - 98 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5558
SELECT - - COUNT( * ) AS col2 FROM tab1 WHERE 11 + - col0 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-5558
SELECT - - COUNT ( * ) AS col2 FROM tab1 WHERE 11 + - col0 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5559
SELECT 17 + + - COUNT( ALL + col2 ) FROM tab0
----
14

skipif mysql # not compatible
query I rowsort label-5559
SELECT 17 + + - COUNT ( ALL + col2 ) FROM tab0
----
14

query I rowsort
SELECT ALL 85 - - col0 AS col2 FROM tab0
----
100
172
182

query I rowsort
SELECT DISTINCT - - 20 * + - col0 AS col1 FROM tab0 AS cor0
----
-1740
-1940
-300

onlyif mysql # aggregate syntax: 
query I rowsort label-5562
SELECT DISTINCT COUNT( ALL 14 ) FROM tab2 AS cor0 WHERE NOT + ( + col2 ) / - 83 * 76 = + 55
----
3

skipif mysql # not compatible
query I rowsort label-5562
SELECT DISTINCT COUNT ( ALL 14 ) FROM tab2 AS cor0 WHERE NOT + ( + col2 ) / - 83 * 76 = + 55
----
3

query I rowsort
SELECT DISTINCT col0 * - - col1 AS col0 FROM tab0 AS cor0
----
1215
1827
97

query I rowsort
SELECT ALL - col1 * + 22 AS col2 FROM tab2 AS cor0
----
-1122
-1474
-1694

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND 35
----

query I rowsort
SELECT ALL 71 * - + 60 FROM tab2 AS cor0
----
-4260
-4260
-4260

onlyif mysql # DIV for integer division: 
query I rowsort label-5567
SELECT DISTINCT - col2 DIV - + col0 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-5567
SELECT DISTINCT - col2 / - + col0 FROM tab1
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5568
SELECT DISTINCT + - COUNT( * ) + - COUNT( * ) + + 3 + - 47 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-62

skipif mysql # not compatible
query I rowsort label-5568
SELECT DISTINCT + - COUNT ( * ) + - COUNT ( * ) + + 3 + - 47 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-62

query I rowsort
SELECT + + 55 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

query I rowsort
SELECT ALL col1 * + 55 * - 37 FROM tab2 AS cor0
----
-103785
-136345
-156695

onlyif mysql # DIV for integer division: 
query I rowsort label-5571
SELECT DISTINCT + 20 DIV - col2 col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5571
SELECT DISTINCT + 20 / - col2 col2 FROM tab2 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 72 NOT BETWEEN + 9 AND - col2 * + - col2 + col1 + + - col0 - + col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5573
SELECT + 32 * ( MIN( + 0 ) ) DIV COUNT( + - 32 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5573
SELECT + 32 * ( MIN ( + 0 ) ) / COUNT ( + - 32 ) FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5574
SELECT ALL - SUM( DISTINCT + - 17 ) FROM tab1 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-5574
SELECT ALL - SUM ( DISTINCT + - 17 ) FROM tab1 AS cor0
----
17

query II rowsort
SELECT DISTINCT - col0 * + 27, col2 FROM tab1 cor0
----
-1377
96
-2295
59
-2457
68

query I rowsort
SELECT ALL - + 20 AS col2 FROM tab2 AS cor0
----
-20
-20
-20

query III rowsort
SELECT * FROM tab1 WHERE NOT - 32 * 48 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5578
SELECT - MAX( ( + col0 ) ) * + 19 FROM tab2
----
-1425

skipif mysql # not compatible
query I rowsort label-5578
SELECT - MAX ( ( + col0 ) ) * + 19 FROM tab2
----
-1425

query I rowsort
SELECT DISTINCT + col2 * - 75 AS col0 FROM tab2
----
-1725
-3000
-4350

query I rowsort
SELECT DISTINCT - 56 + col2 + + col2 AS col0 FROM tab2
----
-10
24
60

query I rowsort
SELECT DISTINCT - - ( - 44 ) FROM tab2 AS cor0
----
-44

query I rowsort
SELECT col1 * 86 AS col1 FROM tab0 AS cor0
----
1806
6966
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5583
SELECT ALL col1 / CAST( NULL AS SIGNED ) * + col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5583
SELECT ALL col1 / CAST ( NULL AS INTEGER ) * + col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5584
SELECT + COUNT( * ) FROM tab1 AS cor0 WHERE ( - col2 + + + col0 + - col1 ) NOT BETWEEN col2 AND col0 + + + 29
----
3

skipif mysql # not compatible
query I rowsort label-5584
SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE ( - col2 + + + col0 + - col1 ) NOT BETWEEN col2 AND col0 + + + 29
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5585
SELECT + CAST( NULL AS SIGNED ) * + ( - - 73 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5585
SELECT + CAST ( NULL AS INTEGER ) * + ( - - 73 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5586
SELECT CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE NULL NOT IN ( 25, 64 + col0 + + + col2 + + col0 )
----

skipif mysql # not compatible
query I rowsort label-5586
SELECT CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE NULL NOT IN ( 25, 64 + col0 + + + col2 + + col0 )
----

query I rowsort
SELECT - col1 * + 18 * col1 FROM tab1 AS cor0
----
-3528
-39762
-450

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col2 BETWEEN ( NULL ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT AVG ( ALL + - col2 ) col2 FROM tab0 WHERE ( NULL ) IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT + col2 + + ( + + 47 ) * - 72 FROM tab1
----
-3288
-3316
-3325

query I rowsort
SELECT ALL + 97 * - + col1 + - col1 * - + col1 FROM tab0
----
-1296
-1596
-96

query I rowsort
SELECT + col1 - - ( col0 ) AS col0 FROM tab2
----
141
142
97

query III rowsort
SELECT * FROM tab2 WHERE + 34 + - + 67 + + 82 * col2 / - + 14 + + col0 = + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5594
SELECT + 75 - + COUNT( * ) FROM tab0
----
72

skipif mysql # not compatible
query I rowsort label-5594
SELECT + 75 - + COUNT ( * ) FROM tab0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-5595
SELECT 86 - COUNT( * ) FROM tab1
----
83

skipif mysql # not compatible
query I rowsort label-5595
SELECT 86 - COUNT ( * ) FROM tab1
----
83

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NULL > ( NULL )
----

query I rowsort
SELECT col2 * + col2 * + + col2 * - col1 AS col2 FROM tab0
----
-21000
-8409663
-970299

onlyif mysql # aggregate syntax: 
query I rowsort label-5598
SELECT MIN( + ( 64 ) ) FROM tab2
----
64

skipif mysql # not compatible
query I rowsort label-5598
SELECT MIN ( + ( 64 ) ) FROM tab2
----
64

query I rowsort
SELECT 81 * - - 25 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e618225230e6e6e5555047be6b72cb70

onlyif mysql # aggregate syntax: 
query I rowsort label-5600
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE ( 94 / - col0 NOT IN ( 69 ) )
----
-3

skipif mysql # not compatible
query I rowsort label-5600
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE ( 94 / - col0 NOT IN ( 69 ) )
----
-3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 53 = NULL
----

query II rowsort
SELECT - col1, col0 AS col0 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
-1
97
-21
87
-81
15

query I rowsort
SELECT - - ( + - ( - col0 ) ) FROM tab1 AS cor0
----
51
85
91

onlyif mysql # aggregate syntax: 
query II rowsort label-5604
SELECT DISTINCT + + COUNT( * ) AS col1, + MAX( ALL - col2 ) AS col1 FROM tab2 WHERE NOT + col1 IS NULL
----
3
-23

skipif mysql # not compatible
query II rowsort label-5604
SELECT DISTINCT + + COUNT ( * ) AS col1, + MAX ( ALL - col2 ) AS col1 FROM tab2 WHERE NOT + col1 IS NULL
----
3
-23

query I rowsort
SELECT - ( - col1 ) * col0 AS col2 FROM tab0
----
1215
1827
97

onlyif mysql # DIV for integer division: 
query I rowsort label-5606
SELECT DISTINCT col2 * + + col2 DIV - col2 AS col2 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-5606
SELECT DISTINCT col2 * + + col2 / - col2 AS col2 FROM tab2
----
-23
-40
-58

query I rowsort
SELECT + 48 * + col1 FROM tab0
----
1008
3888
48

query I rowsort
SELECT + col2 * - 54 AS col1 FROM tab1
----
-3186
-3672
-5184

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5609
SELECT + 66 DIV - CAST( - col2 AS SIGNED ) AS col1 FROM tab2
----
1
1
2

skipif mysql # not compatible
query I rowsort label-5609
SELECT + 66 / - CAST ( - col2 AS INTEGER ) AS col1 FROM tab2
----
1
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5610
SELECT + 79 + - - 85 + + COUNT( * ) FROM tab1
----
167

skipif mysql # not compatible
query I rowsort label-5610
SELECT + 79 + - - 85 + + COUNT ( * ) FROM tab1
----
167

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5611
SELECT ALL + col1 * + + CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5611
SELECT ALL + col1 * + + CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 + - ( - - col0 ) FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-5613
SELECT * FROM tab1 cor0 WHERE - col2 / - col2 * + col2 NOT IN ( - - CAST( + ( + - CAST( NULL AS DECIMAL ) ) AS SIGNED ), 9 )
----

skipif mysql # not compatible
query III rowsort label-5613
SELECT * FROM tab1 cor0 WHERE - col2 / - col2 * + col2 NOT IN ( - - CAST ( + ( + - CAST ( NULL AS REAL ) ) AS INTEGER ), 9 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5614
SELECT - ( MIN( ALL col0 ) ) FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-5614
SELECT - ( MIN ( ALL col0 ) ) FROM tab2 AS cor0
----
-46

query I rowsort
SELECT - 90 FROM tab1 AS cor0 WHERE - col0 IS NULL
----

query I rowsort
SELECT - 2 AS col2 FROM tab1, tab2 cor0
----
9 values hashing to ec11209ab257030053484fc13a1f6d17

query III rowsort
SELECT * FROM tab0 WHERE + + col2 IN ( - col1 * - col2 * col1 * + col1, col1 * - + col2 )
----
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5618
SELECT DISTINCT - - COUNT( * ) FROM tab0 AS cor0 WHERE NOT - col0 >= + col0
----
3

skipif mysql # not compatible
query I rowsort label-5618
SELECT DISTINCT - - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT - col0 >= + col0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5619
SELECT DISTINCT CAST( NULL AS SIGNED ) - + - SUM( ALL + col0 ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5619
SELECT DISTINCT CAST ( NULL AS INTEGER ) - + - SUM ( ALL + col0 ) AS col1 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - - col2 ) col0 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5621
SELECT + - col1 + 30 * + ( + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5621
SELECT + - col1 + 30 * + ( + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5622
SELECT ALL COUNT( + 39 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5622
SELECT ALL COUNT ( + 39 ) FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5623
SELECT ALL 95 + + - ( + + CAST( - col2 AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
154
163
191

skipif mysql # not compatible
query I rowsort label-5623
SELECT ALL 95 + + - ( + + CAST ( - col2 AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
154
163
191

onlyif mysql # aggregate syntax: 
query I rowsort label-5624
SELECT ALL + MAX( + col1 ) AS col2 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-5624
SELECT ALL + MAX ( + col1 ) AS col2 FROM tab1 AS cor0
----
47

query I rowsort
SELECT - col2 + col0 * + - col0 + + col1 * + col2 FROM tab0 AS cor0
----
-7369
-9409
3535

query I rowsort
SELECT - ( + col0 ) + + col0 + - 70 AS col0 FROM tab2
----
-70
-70
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5627
SELECT ALL col2 + - CAST( NULL AS SIGNED ) + + col1 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5627
SELECT ALL col2 + - CAST ( NULL AS INTEGER ) + + col1 AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5628
SELECT ALL ( CAST( NULL AS SIGNED ) ) AS col0, col0 AS col0 FROM tab1
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-5628
SELECT ALL ( CAST ( NULL AS INTEGER ) ) AS col0, col0 AS col0 FROM tab1
----
NULL
51
NULL
85
NULL
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5629
SELECT DISTINCT CAST( ( + col1 ) AS SIGNED ) FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-5629
SELECT DISTINCT CAST ( ( + col1 ) AS INTEGER ) FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT + col1 * - 89 FROM tab0 AS cor0
----
-1869
-7209
-89

query I rowsort
SELECT ALL + col1 AS col1 FROM tab2 AS cor0 WHERE ( ( + col1 ) * - + 34 + + + 92 ) > - 11
----

query I rowsort
SELECT col1 * + col1 * col1 AS col0 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + col1, + col0 ) AND NOT - 96 IS NOT NULL
----

query I rowsort
SELECT + 24 * - 53 * + col2 + + col1 AS col0 FROM tab0 AS cor0
----
-125927
-12699
-59703

query I rowsort
SELECT - 71 + - - 88 AS col2 FROM tab0 AS cor0
----
17
17
17

onlyif mysql # aggregate syntax: 
query I rowsort label-5635
SELECT - + COUNT( * ) * - - 89 + - - 47 FROM tab0 AS cor0
----
-220

skipif mysql # not compatible
query I rowsort label-5635
SELECT - + COUNT ( * ) * - - 89 + - - 47 FROM tab0 AS cor0
----
-220

onlyif mysql # aggregate syntax: 
query I rowsort label-5636
SELECT - ( - SUM( DISTINCT - 89 ) ) col2 FROM tab0 AS cor0
----
-89

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5636
SELECT - ( - SUM ( DISTINCT - 89 ) ) col2 FROM tab0 AS cor0
----
-89

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 49 * + 80 + - col0 + + + col1 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + col2 + - col1 col1 FROM tab2
----
18
27
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5639
SELECT 31 * - COUNT( * ) AS col1 FROM tab1
----
-93

skipif mysql # not compatible
query I rowsort label-5639
SELECT 31 * - COUNT ( * ) AS col1 FROM tab1
----
-93

onlyif mysql # aggregate syntax: 
query II rowsort label-5640
SELECT + 62 AS col2, COUNT( * ) AS col1 FROM tab0 AS cor0
----
62
3

skipif mysql # not compatible
query II rowsort label-5640
SELECT + 62 AS col2, COUNT ( * ) AS col1 FROM tab0 AS cor0
----
62
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 23 + col1 < col2
----
51
14
96
85
5
59

query I rowsort
SELECT + col1 - - + col0 + + col1 * - 81 AS col1 FROM tab1 AS cor0
----
-1069
-315
-3669

query I rowsort
SELECT ALL - 76 + - 98 * - - col1 + + col1 FROM tab2 AS cor0
----
-5023
-6575
-7545

query I rowsort
SELECT ALL ( - col1 ) AS col0 FROM tab1 cor0
----
-14
-47
-5

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL IN ( - col0, - col0 )
----

query I rowsort
SELECT DISTINCT + ( 34 ) + + col2 FROM tab1
----
102
130
93

query I rowsort
SELECT DISTINCT col1 + + col0 +