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 + + + col2 * col1 FROM tab0
----
197
318
3903

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5649
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND CAST( NULL AS DECIMAL ) * col0 + 67
----

skipif mysql # not compatible
query III rowsort label-5649
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND CAST ( NULL AS REAL ) * col0 + 67
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - ( - col1 ) AS col1, 89 col2 FROM tab0 AS cor0
----
1
89
21
89
81
89

onlyif mysql # DIV for integer division: 
query I rowsort label-5651
SELECT - + 56 * - + col1 + + 18 + - 78 DIV ( - col2 ) * + + col2 + 41 * col2 + - + 59 AS col1 FROM tab2 AS cor0
----
3827
5951
6147

skipif mysql # not compatible
query I rowsort label-5651
SELECT - + 56 * - + col1 + + 18 + - 78 / ( - col2 ) * + + col2 + 41 * col2 + - + 59 AS col1 FROM tab2 AS cor0
----
3827
5951
6147

onlyif mysql # aggregate syntax: 
query I rowsort label-5652
SELECT ALL + COUNT( * ) - + ( + 19 ) * - 29 FROM tab1 AS cor0
----
554

skipif mysql # not compatible
query I rowsort label-5652
SELECT ALL + COUNT ( * ) - + ( + 19 ) * - 29 FROM tab1 AS cor0
----
554

query II rowsort
SELECT DISTINCT - + ( - col0 ) AS col2, + col0 + col1 + - col2 + + col1 + + 33 FROM tab0 AS cor0
----
15
163
87
152
97
33

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

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

query I rowsort
SELECT DISTINCT + - col1 * + col2 * + 18 FROM tab0 AS cor0
----
-1782
-3780
-68526

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + + 21 col1 FROM tab0
----
-2079
-210
-987

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5658
SELECT DISTINCT + - col0 AS col0 FROM tab2 WHERE - ( - + CAST( - ( + col0 ) AS SIGNED ) ) <= NULL
----

skipif mysql # not compatible
query I rowsort label-5658
SELECT DISTINCT + - col0 AS col0 FROM tab2 WHERE - ( - + CAST ( - ( + col0 ) AS INTEGER ) ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5659
SELECT + 36 * - MAX( DISTINCT col0 ) FROM tab1
----
-3276

skipif mysql # not compatible
query I rowsort label-5659
SELECT + 36 * - MAX ( DISTINCT col0 ) FROM tab1
----
-3276

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5660
SELECT CAST( NULL AS SIGNED ) / + 13 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5660
SELECT CAST ( NULL AS INTEGER ) / + 13 AS col1 FROM tab2
----
NULL
NULL
NULL

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT 30 + 13 IN ( col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

query I rowsort
SELECT DISTINCT + - 99 FROM tab2 cor0
----
-99

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( 6 <> ( NULL ) )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5669
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 5 IN ( + CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-5669
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 5 IN ( + CAST ( NULL AS REAL ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5670
SELECT ALL CAST( + + SUM( - 73 ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-219

skipif mysql # not compatible
query I rowsort label-5670
SELECT ALL CAST ( + + SUM ( - 73 ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-219

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5671
SELECT ALL - CAST( NULL AS SIGNED ), col1 * + col1 AS col0 FROM tab0 AS cor0
----
NULL
1
NULL
441
NULL
6561

skipif mysql # not compatible
query II rowsort label-5671
SELECT ALL - CAST ( NULL AS INTEGER ), col1 * + col1 AS col0 FROM tab0 AS cor0
----
NULL
1
NULL
441
NULL
6561

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 50 < NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col1 * - col1 + + 66 IS NOT NULL ) OR NOT - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT 91 AS col0, 39 FROM tab0 cor0
----
91
39
91
39
91
39

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5676
SELECT + - 95 + ( COUNT( * ) ) + + 90 AS col0 FROM tab2 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-5676
SELECT + - 95 + ( COUNT ( * ) ) + + 90 AS col0 FROM tab2 AS cor0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5677
SELECT ALL 3 * - COUNT( * ) + - 78 AS col1 FROM tab2
----
-87

skipif mysql # not compatible
query I rowsort label-5677
SELECT ALL 3 * - COUNT ( * ) + - 78 AS col1 FROM tab2
----
-87

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5679
SELECT ALL - CAST( NULL AS SIGNED ) * + 82 * - + 52 * 83 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5679
SELECT ALL - CAST ( NULL AS INTEGER ) * + 82 * - + 52 * 83 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5680
SELECT - 7 - - COUNT( * ) FROM tab1
----
-4

skipif mysql # not compatible
query I rowsort label-5680
SELECT - 7 - - COUNT ( * ) FROM tab1
----
-4

query II rowsort
SELECT DISTINCT col1 AS col0, - 27 * - + col1 * col2 AS col2 FROM tab2 AS cor0
----
51
31671
67
104922
77
83160

query I rowsort
SELECT - 56 * - - col1 AS col0 FROM tab0 AS cor0
----
-1176
-4536
-56

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

query I rowsort
SELECT DISTINCT 22 AS col1 FROM tab1 AS cor0 WHERE NOT col2 >= + col1 * + + 97
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-5685
SELECT ( + 97 ) * - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-291

skipif mysql # not compatible
query I rowsort label-5685
SELECT ( + 97 ) * - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-291

onlyif mysql # aggregate syntax: 
query I rowsort label-5686
SELECT - COUNT( * ) * + 97 FROM tab1 AS cor0
----
-291

skipif mysql # not compatible
query I rowsort label-5686
SELECT - COUNT ( * ) * + 97 FROM tab1 AS cor0
----
-291

query I rowsort
SELECT DISTINCT - col2 * + 94 FROM tab2 AS cor0
----
-2162
-3760
-5452

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5688
SELECT ALL col2 / - + col2 col0 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT DISTINCT col0 * - col2 * + col1 + - col1 + + 25 FROM tab0 cor0
----
-18266
-57161
-9579

query I rowsort
SELECT ALL + col0 * + - col0 AS col0 FROM tab0 AS cor0
----
-225
-7569
-9409

onlyif mysql # aggregate syntax: 
query II rowsort label-5691
SELECT - MAX( ALL + 70 ), 48 AS col1 FROM tab0 AS cor0
----
-70
48

skipif mysql # not compatible
query II rowsort label-5691
SELECT - MAX ( ALL + 70 ), 48 AS col1 FROM tab0 AS cor0
----
-70
48

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5693
SELECT MIN( ALL - - col0 ) FROM tab1 cor0
----
51

skipif mysql # not compatible
query I rowsort label-5693
SELECT MIN ( ALL - - col0 ) FROM tab1 cor0
----
51

query I rowsort
SELECT 26 * + + col2 + 81 * 97 AS col0 FROM tab0 AS cor0
----
10431
8117
9079

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

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

query I rowsort
SELECT DISTINCT - - col0 * ( + col2 ) AS col2 FROM tab0 AS cor0
----
705
870
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-5697
SELECT DISTINCT + 52 + + - ( SUM( DISTINCT - col1 ) ) FROM tab1 AS cor0
----
118

skipif mysql # not compatible
query I rowsort label-5697
SELECT DISTINCT + 52 + + - ( SUM ( DISTINCT - col1 ) ) FROM tab1 AS cor0
----
118

query I rowsort
SELECT ALL + + 38 + - - col0 AS col1 FROM tab1 AS cor0
----
123
129
89

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5700
SELECT DISTINCT 10 DIV + 71 + - ( + COUNT( * ) ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-5700
SELECT DISTINCT 10 / + 71 + - ( + COUNT ( * ) ) AS col2 FROM tab0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5701
SELECT ALL - col0 + - CAST( + - 11 AS SIGNED ) FROM tab2
----
-35
-53
-64

skipif mysql # not compatible
query I rowsort label-5701
SELECT ALL - col0 + - CAST ( + - 11 AS INTEGER ) FROM tab2
----
-35
-53
-64

query II rowsort
SELECT ALL + col2, col2 AS col0 FROM tab0
----
10
10
47
47
99
99

query I rowsort
SELECT 74 * + - 69 - + 58 AS col1 FROM tab1
----
-5164
-5164
-5164

onlyif mysql # DIV for integer division: 
query I rowsort label-5704
SELECT DISTINCT + 56 DIV col0 - + + col2 AS col2 FROM tab1
----
-59
-68
-95

skipif mysql # not compatible
query I rowsort label-5704
SELECT DISTINCT + 56 / col0 - + + col2 AS col2 FROM tab1
----
-59
-68
-95

query I rowsort
SELECT ALL - col0 - - 55 AS col0 FROM tab0 AS cor0
----
-32
-42
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5706
SELECT + COUNT( * ) + - CAST( - ( + SUM( DISTINCT - col0 ) ) AS SIGNED ) FROM tab0 cor0
----
-196

skipif mysql # not compatible
query I rowsort label-5706
SELECT + COUNT ( * ) + - CAST ( - ( + SUM ( DISTINCT - col0 ) ) AS INTEGER ) FROM tab0 cor0
----
-196

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

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - 29 * - - col2 AS col0, + col0 col1 FROM tab0 AS cor0
----
-1363
15
-2871
97
-290
87

query I rowsort
SELECT DISTINCT - - 96 AS col1 FROM tab2 AS cor0
----
96

query I rowsort
SELECT ALL - 20 FROM tab2 AS cor0 WHERE NOT - col1 > col2
----
-20
-20
-20

query I rowsort
SELECT ALL - 69 * + + col2 FROM tab1 AS cor0
----
-4071
-4692
-6624

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5716
SELECT + col2 / + + col1 * + + CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5716
SELECT + col2 / + + col1 * + + CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5718
SELECT + 56 DIV 50 AS col2 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5718
SELECT + 56 / 50 AS col2 FROM tab0
----
1
1
1

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5720
SELECT 46 col1, SUM( DISTINCT col0 ) FROM tab2
----
46
185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5720
SELECT 46 col1, SUM ( DISTINCT col0 ) FROM tab2
----
46
185

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col1 > + + 92
----

query I rowsort
SELECT DISTINCT col1 FROM tab1 AS cor0 WHERE ( NULL >= NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5723
SELECT DISTINCT - COUNT( * ) * + 85 FROM tab1 cor0
----
-255

skipif mysql # not compatible
query I rowsort label-5723
SELECT DISTINCT - COUNT ( * ) * + 85 FROM tab1 cor0
----
-255

query I rowsort
SELECT - 51 + + 6 FROM tab0 AS cor0
----
-45
-45
-45

query II rowsort
SELECT + col0 * - 70, col0 * col2 * - col2 * + + col2 AS col0 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
-3220
-559682
-4480
-4096000
-5250
-14633400

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

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

query I rowsort
SELECT ALL col0 + + - 11 * + + col1 FROM tab2 AS cor0
----
-515
-662
-783

query I rowsort
SELECT col1 + + col2 + + col0 FROM tab2 AS cor0
----
120
181
200

query II rowsort
SELECT ALL col2 + - ( + 6 ) AS col0, col1 FROM tab2
----
17
51
34
77
52
67

onlyif mysql # DIV for integer division: 
query I rowsort label-5730
SELECT DISTINCT col0 + + ( - col0 ) + col2 DIV + col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5730
SELECT DISTINCT col0 + + ( - col0 ) + col2 / + col1 FROM tab2
----
0

query I rowsort
SELECT ALL + col1 AS col2 FROM tab1 WHERE + 76 IS NULL
----

query I rowsort
SELECT ALL + 87 + 1 + - - ( - + col0 ) - col2 FROM tab1
----
-56
-59
-71

query I rowsort
SELECT col2 + - + col1 * - 10 * - col2 FROM tab1
----
-13344
-2891
-31892

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5734
SELECT ALL - col2 FROM tab0 WHERE NULL NOT BETWEEN + CAST( NULL AS DECIMAL ) * + col2 + + col0 + col1 + col2 * + + 43 * + ( - 94 ) / - col0 AND - col2
----

skipif mysql # not compatible
query I rowsort label-5734
SELECT ALL - col2 FROM tab0 WHERE NULL NOT BETWEEN + CAST ( NULL AS REAL ) * + col2 + + col0 + col1 + col2 * + + 43 * + ( - 94 ) / - col0 AND - col2
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5736
SELECT ALL COUNT( * ) + + 5 col2 FROM tab0
----
8

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

query II rowsort
SELECT col2 / col2, col0 FROM tab2 WHERE NULL >= - + 60
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5739
SELECT DISTINCT col2 DIV 7 FROM tab1
----
13
8
9

skipif mysql # not compatible
query I rowsort label-5739
SELECT DISTINCT col2 / 7 FROM tab1
----
13
8
9

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col0 BETWEEN - col1 AND - - col1 * - 69
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5741
SELECT 90 DIV MIN( ALL + col0 ) AS col2 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-5741
SELECT 90 / MIN ( ALL + col0 ) AS col2 FROM tab0 AS cor0
----
6

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

query I rowsort
SELECT ALL + 82 * + col1 AS col2 FROM tab0
----
1722
6642
82

query III rowsort
SELECT * FROM tab0 WHERE NOT 38 NOT BETWEEN - 91 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 AS col1, - 37 col0 FROM tab2
----
-51
-37
-67
-37
-77
-37

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

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

query I rowsort
SELECT + 1 * + col2 + - 69 + - - col2 AS col1 FROM tab0 AS cor0
----
-49
129
25

query I rowsort
SELECT + ( col1 ) + - 10 AS col0 FROM tab0 AS cor0 WHERE NOT 99 / + 14 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( col1 ) >= - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT 32 AS col0, - 16 AS col0 FROM tab2 AS cor0
----
32
-16

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5753
SELECT * FROM tab0 WHERE NOT NULL BETWEEN - 66 AND + + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-5753
SELECT * FROM tab0 WHERE NOT NULL BETWEEN - 66 AND + + CAST ( NULL AS REAL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5754
SELECT DISTINCT + 54 * SUM( DISTINCT + col2 ) AS col0 FROM tab0
----
8424

skipif mysql # not compatible
query I rowsort label-5754
SELECT DISTINCT + 54 * SUM ( DISTINCT + col2 ) AS col0 FROM tab0
----
8424

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

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

query I rowsort
SELECT DISTINCT col0 * + 0 FROM tab1
----
0

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

skipif mysql # not compatible
query I rowsort label-5758
SELECT ALL + COUNT ( * ) * + ( + + 20 ) AS col2 FROM tab0 AS cor0
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5759
SELECT DISTINCT - + CAST( - col0 AS SIGNED ) + - 54, - 11 col2 FROM tab0 cor0
----
-39
-11
33
-11
43
-11

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5759
SELECT DISTINCT - + CAST ( - col0 AS INTEGER ) + - 54, - 11 col2 FROM tab0 cor0
----
-39
-11
33
-11
43
-11

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

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL < - ( + col0 ) * + - col1 + + 37
----

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

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

query I rowsort
SELECT ALL 9 + - 75 AS col2 FROM tab2
----
-66
-66
-66

query I rowsort
SELECT DISTINCT + col1 - 17 - 37 FROM tab2
----
-3
13
23

onlyif mysql # aggregate syntax: 
query I rowsort label-5766
SELECT + COUNT( * ) - + 48 + - SUM( col2 ) + - COUNT( * ) * - 45 FROM tab1
----
-133

skipif mysql # not compatible
query I rowsort label-5766
SELECT + COUNT ( * ) - + 48 + - SUM ( col2 ) + - COUNT ( * ) * - 45 FROM tab1
----
-133

onlyif mysql # aggregate syntax: 
query I rowsort label-5767
SELECT 61 - - COUNT( * ) AS col1 FROM tab2
----
64

skipif mysql # not compatible
query I rowsort label-5767
SELECT 61 - - COUNT ( * ) AS col1 FROM tab2
----
64

query I rowsort
SELECT - ( + col2 ) - - 5 * 68 AS col0 FROM tab1
----
244
272
281

query I rowsort
SELECT + col2 + - + col2 FROM tab2
----
0
0
0

query I rowsort
SELECT 31 * - 37 + + ( - + col2 ) + col1 AS col0 FROM tab0
----
-1113
-1136
-1245

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5774
SELECT ALL * FROM tab2 AS cor0 WHERE NULL < + col0 * CAST( + col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5774
SELECT ALL * FROM tab2 AS cor0 WHERE NULL < + col0 * CAST ( + col1 AS INTEGER )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5775
SELECT + CAST( - col1 AS DECIMAL ) * + + col0 * + 41 FROM tab0 AS cor0 WHERE NOT NULL <> NULL
----

skipif mysql # not compatible
query I rowsort label-5775
SELECT + CAST ( - col1 AS REAL ) * + + col0 * + 41 FROM tab0 AS cor0 WHERE NOT NULL <> NULL
----

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

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

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE NOT NULL > col0 * + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5778
SELECT + SUM( - 44 ) FROM tab1 AS cor0
----
-132

skipif mysql # not compatible
query I rowsort label-5778
SELECT + SUM ( - 44 ) FROM tab1 AS cor0
----
-132

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

query II rowsort
SELECT - col0 * col2 AS col2, col0 FROM tab0
----
-705
15
-870
87
-9603
97

query I rowsort
SELECT ALL - 83 * - col0 FROM tab0 WHERE NOT NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5782
SELECT COUNT( * ) * + + 78 col2 FROM tab2
----
234

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5782
SELECT COUNT ( * ) * + + 78 col2 FROM tab2
----
234

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5784
SELECT - COUNT( * ) * - + COUNT( * ) * 63 FROM tab0
----
567

skipif mysql # not compatible
query I rowsort label-5784
SELECT - COUNT ( * ) * - + COUNT ( * ) * 63 FROM tab0
----
567

query II rowsort
SELECT DISTINCT + col2, + 54 AS col0 FROM tab1 cor0
----
59
54
68
54
96
54

query I rowsort
SELECT DISTINCT - ( + - 26 ) * + col1 * col0 * - + ( + + col2 ) FROM tab1
----
-1782144
-651950
-7561736

onlyif mysql # aggregate syntax: 
query I rowsort label-5787
SELECT DISTINCT MAX( ALL - + 66 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-66

skipif mysql # not compatible
query I rowsort label-5787
SELECT DISTINCT MAX ( ALL - + 66 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-66

query I rowsort
SELECT DISTINCT + col2 + 43 * - ( - col1 ) AS col0 FROM tab1 AS cor0
----
2089
274
698

onlyif mysql # aggregate syntax: 
query II rowsort label-5789
SELECT ALL + 84 col1, - COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
84
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5789
SELECT ALL + 84 col1, - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
84
-3

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

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

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

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

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

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

query I rowsort
SELECT - + col2 + - + 30 AS col2 FROM tab0 AS cor0
----
-129
-40
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-5795
SELECT ALL + col0 * + col0 + + col1 DIV - col1 AS col0 FROM tab0 AS cor0
----
224
7568
9408

skipif mysql # not compatible
query I rowsort label-5795
SELECT ALL + col0 * + col0 + + col1 / - col1 AS col0 FROM tab0 AS cor0
----
224
7568
9408

query I rowsort
SELECT + col2 + 4 * + col1 AS col2 FROM tab1 AS cor0
----
152
256
79

query I rowsort
SELECT + 21 + col1 FROM tab2 AS cor0
----
72
88
98

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5800
SELECT DISTINCT 88 * - + COUNT( * ) FROM tab1
----
-264

skipif mysql # not compatible
query I rowsort label-5800
SELECT DISTINCT 88 * - + COUNT ( * ) FROM tab1
----
-264

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

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

query I rowsort
SELECT + ( 71 ) AS col1 FROM tab0 WHERE NULL IN ( 14 * - - col2 + - col0 + - 87, 42 - + col1, - ( col1 ), col1 * + col2 + 3 + col1 )
----

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

query I rowsort
SELECT ALL - 9 - col1 AS col2 FROM tab1
----
-14
-23
-56

query I rowsort
SELECT DISTINCT ( 98 ) AS col1 FROM tab1
----
98

onlyif mysql # DIV for integer division: 
query II rowsort label-5806
SELECT ALL - 81 AS col2, col2 DIV + - col2 FROM tab0
----
-81
-1
-81
-1
-81
-1

skipif mysql # not compatible
query II rowsort label-5806
SELECT ALL - 81 AS col2, col2 / + - col2 FROM tab0
----
-81
-1
-81
-1
-81
-1

query I rowsort
SELECT - 7 * - col1 AS col2 FROM tab0 AS cor0
----
147
567
7

onlyif mysql # aggregate syntax: 
query II rowsort label-5808
SELECT - - COUNT( * ) AS col0, 16 + - + COUNT( ALL - 85 ) FROM tab2 AS cor0
----
3
13

skipif mysql # not compatible
query II rowsort label-5808
SELECT - - COUNT ( * ) AS col0, 16 + - + COUNT ( ALL - 85 ) FROM tab2 AS cor0
----
3
13

query I rowsort
SELECT - col1 * + 23 FROM tab1 AS cor0
----
-1081
-115
-322

query I rowsort
SELECT - 59 FROM tab2 AS cor0 WHERE NOT - ( col0 ) > - + col0
----
-59
-59
-59

query I rowsort
SELECT ALL + 83 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

onlyif mysql # DIV for integer division: 
query I rowsort label-5812
SELECT ALL 7 DIV + ( + col1 ) FROM tab0
----
0
0
7

skipif mysql # not compatible
query I rowsort label-5812
SELECT ALL 7 / + ( + col1 ) FROM tab0
----
0
0
7

query I rowsort
SELECT ALL + 77 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

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

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

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

query I rowsort
SELECT - - col0 * + col2 + + col2 * + ( col1 ) FROM tab0 AS cor0
----
1080
4512
9702

query I rowsort
SELECT DISTINCT col1 + + 44 AS col0 FROM tab2 AS cor0
----
111
121
95

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5819
SELECT + col1 * - col1 + + ( + col1 ) AS col1, CAST( - col0 AS SIGNED ) FROM tab0 AS cor0
----
-420
-87
-6480
-15
0
-97

skipif mysql # not compatible
query II rowsort label-5819
SELECT + col1 * - col1 + + ( + col1 ) AS col1, CAST ( - col0 AS INTEGER ) FROM tab0 AS cor0
----
-420
-87
-6480
-15
0
-97

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

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

query I rowsort
SELECT - + col0 * ( - col1 ) FROM tab0 AS cor0
----
1215
1827
97

query I rowsort
SELECT ALL - col1 + - - 60 AS col0 FROM tab1 AS cor0
----
13
46
55

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

query I rowsort
SELECT DISTINCT 79 + col2 AS col0 FROM tab1
----
138
147
175

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5826
SELECT ALL + COUNT( * ) / - COUNT( * ) * + 57 * - CAST( NULL AS SIGNED ) + + SUM( ALL - 81 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5826
SELECT ALL + COUNT ( * ) / - COUNT ( * ) * + 57 * - CAST ( NULL AS INTEGER ) + + SUM ( ALL - 81 ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5827
SELECT ALL + 46 DIV - 67 + + COUNT( * ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5827
SELECT ALL + 46 / - 67 + + COUNT ( * ) FROM tab2
----
3

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

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

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

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

query I rowsort
SELECT ALL - 9 * + - col1 + - 1 + 79 AS col2 FROM tab2 AS cor0
----
537
681
771

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

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

query I rowsort
SELECT + col1 + + 58 AS col2 FROM tab0
----
139
59
79

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

query I rowsort
SELECT + col2 * - 52 AS col2 FROM tab2 cor0
----
-1196
-2080
-3016

onlyif mysql # aggregate syntax: 
query I rowsort label-5837
SELECT ALL + - COUNT( * ) - 86 FROM tab0 AS cor0
----
-89

skipif mysql # not compatible
query I rowsort label-5837
SELECT ALL + - COUNT ( * ) - 86 FROM tab0 AS cor0
----
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5838
SELECT DISTINCT - 63 * ( col2 ) + - CAST( + 96 AS SIGNED ) FROM tab2 AS cor0
----
-1545
-2616
-3750

skipif mysql # not compatible
query I rowsort label-5838
SELECT DISTINCT - 63 * ( col2 ) + - CAST ( + 96 AS INTEGER ) FROM tab2 AS cor0
----
-1545
-2616
-3750

query I rowsort
SELECT - 28 * - col1 FROM tab2 AS cor0
----
1428
1876
2156

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5841
SELECT DISTINCT CAST( - - 43 AS SIGNED ) DIV col0 + + col2 AS col1, - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
10
NULL
49
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-5841
SELECT DISTINCT CAST ( - - 43 AS INTEGER ) / col0 + + col2 AS col1, - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
10
NULL
49
NULL
99
NULL

query I rowsort
SELECT DISTINCT + - col2 * - col2 * ( 12 ) * - col2 FROM tab0 AS cor0
----
-11643588
-12000
-1245876

query I rowsort
SELECT DISTINCT + col1 * - 87 AS col0 FROM tab2 WHERE - - 57 IS NOT NULL
----
-4437
-5829
-6699

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

onlyif mysql # DIV for integer division: 
query II rowsort label-5845
SELECT DISTINCT - - 68 * - + col0 DIV col0 col2, + 32 FROM tab1 AS cor0
----
-68
32

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5845
SELECT DISTINCT - - 68 * - + col0 / col0 col2, + 32 FROM tab1 AS cor0
----
-68
32

query I rowsort
SELECT ALL col2 * + col0 * + 95 FROM tab2 AS cor0
----
100510
243200
413250

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5848
SELECT - 4 DIV - - ( - col2 ) FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5848
SELECT - 4 / - - ( - col2 ) FROM tab2
----
0
0
0

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

query I rowsort
SELECT ALL - 64 * col0 FROM tab1 cor0
----
-3264
-5440
-5824

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

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

query I rowsort
SELECT - 10 * - + col1 FROM tab1 AS cor0
----
140
470
50

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 17 * col2 + ( + ( + col1 ) ) <> 60
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5855
SELECT col0 DIV - col2 + - + ( 91 ) FROM tab1
----
-91
-92
-92

skipif mysql # not compatible
query I rowsort label-5855
SELECT col0 / - col2 + - + ( 91 ) FROM tab1
----
-91
-92
-92

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

query I rowsort
SELECT 42 + - col2 FROM tab1
----
-17
-26
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-5858
SELECT ALL COUNT( DISTINCT + 46 ) AS col0 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-5858
SELECT ALL COUNT ( DISTINCT + 46 ) AS col0 FROM tab2
----
1

query I rowsort
SELECT col2 * col2 * - - col0 + + col0 AS col0 FROM tab2
----
102464
24380
252375

query III rowsort
SELECT * FROM tab0 WHERE ( - 54 ) <> col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-5861
SELECT DISTINCT - - 69 AS col2, ( + MIN( + - ( + col0 ) ) ) FROM tab2 AS cor0 WHERE NOT col0 BETWEEN NULL AND - col0
----
69
-75

skipif mysql # not compatible
query II rowsort label-5861
SELECT DISTINCT - - 69 AS col2, ( + MIN ( + - ( + col0 ) ) ) FROM tab2 AS cor0 WHERE NOT col0 BETWEEN NULL AND - col0
----
69
-75

query I rowsort
SELECT - - 97 AS col2 FROM tab2 AS cor0
----
97
97
97

query I rowsort
SELECT DISTINCT + 42 + + + 35 AS col1 FROM tab2 AS cor0
----
77

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

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

query I rowsort
SELECT DISTINCT - 19 + 29 AS col0 FROM tab2
----
10

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

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

query I rowsort
SELECT - - 4 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

onlyif mysql # aggregate syntax: 
query I rowsort label-5868
SELECT - - 5 + - - MIN( DISTINCT + + col2 ) FROM tab0 cor0
----
15

skipif mysql # not compatible
query I rowsort label-5868
SELECT - - 5 + - - MIN ( DISTINCT + + col2 ) FROM tab0 cor0
----
15

query I rowsort
SELECT - 2 + + 89 FROM tab0 AS cor0
----
87
87
87

onlyif mysql # DIV for integer division: 
query I rowsort label-5870
SELECT col0 DIV - - col0 + 47 AS col1 FROM tab2 AS cor0
----
48
48
48

skipif mysql # not compatible
query I rowsort label-5870
SELECT col0 / - - col0 + 47 AS col1 FROM tab2 AS cor0
----
48
48
48

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5872
SELECT - COUNT( ALL - col0 ) FROM tab1 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5872
SELECT - COUNT ( ALL - col0 ) FROM tab1 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-3

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

query I rowsort
SELECT ALL - 95 + + + 51 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

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

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 = - - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5881
SELECT DISTINCT - SUM( 38 ) col2 FROM tab2 AS cor0
----
-114

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5881
SELECT DISTINCT - SUM ( 38 ) col2 FROM tab2 AS cor0
----
-114

query I rowsort
SELECT ALL - + ( 15 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1172c9a62bdad7db0def9205c06ee1f2

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE + 67 NOT BETWEEN NULL AND + 3
----
54 values hashing to 375f372843089b03f23b00160007527a

query I rowsort
SELECT DISTINCT + ( - - ( - 18 ) ) * 61 * + 43 AS col0 FROM tab0
----
-47214

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

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

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

query II rowsort
SELECT ( + + 70 ) + - col0, - col2 * - 3 AS col0 FROM tab2 cor0
----
-5
174
24
69
6
120

query I rowsort
SELECT col0 + + 78 + + + 32 * - - col0 * + + col1 AS col0 FROM tab0 AS cor0
----
3279
38973
58629

query I rowsort
SELECT - - col0 * + + 4 + - - ( col2 ) FROM tab2 AS cor0
----
207
296
358

query I rowsort
SELECT ALL + - col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5891
SELECT - SUM( + - 13 ) + COUNT( * ) AS col2 FROM tab0 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-5891
SELECT - SUM ( + - 13 ) + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
42

onlyif mysql # DIV for integer division: 
query II rowsort label-5892
SELECT DISTINCT + col2 DIV - ( + - 64 ) col0, - col0 * - col1 AS col0 FROM tab1 AS cor0
----
0
425
1
4277
1
714

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5892
SELECT DISTINCT + col2 / - ( + - 64 ) col0, - col0 * - col1 AS col0 FROM tab1 AS cor0
----
0
425
1
4277
1
714

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

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

query II rowsort
SELECT ALL col2, - col1 AS col2 FROM tab0 AS cor0 WHERE NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5895
SELECT 8 * - MIN( + - 4 ) FROM tab0 AS cor0 WHERE col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5895
SELECT 8 * - MIN ( + - 4 ) FROM tab0 AS cor0 WHERE col2 IS NULL
----
NULL

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

skipif mysql # not compatible
query I rowsort label-5896
SELECT ALL - - col2 AS col0 FROM tab1 WHERE NOT + + col2 * + CAST ( - col1 AS INTEGER ) + - col1 + + 90 IS NULL
----
59
68
96

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5899
SELECT DISTINCT - + COUNT( * ) + - MAX( DISTINCT + 80 ) AS col0, 92 AS col1 FROM tab0 WHERE NOT + col1 = NULL
----
NULL
92

skipif mysql # not compatible
query II rowsort label-5899
SELECT DISTINCT - + COUNT ( * ) + - MAX ( DISTINCT + 80 ) AS col0, 92 AS col1 FROM tab0 WHERE NOT + col1 = NULL
----
NULL
92

query IIIIII rowsort
SELECT ALL * FROM tab0, tab0 AS cor0 WHERE ( - 90 ) >= 78
----

query I rowsort
SELECT DISTINCT - 81 * col0 FROM tab0
----
-1215
-7047
-7857

onlyif mysql # aggregate syntax: 
query I rowsort label-5902
SELECT DISTINCT + ( COUNT( * ) ) col0 FROM tab0 WHERE NULL NOT BETWEEN col1 * + 52 AND - 96 + + 12 + - ( - col1 ) + col2 * - col0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5902
SELECT DISTINCT + ( COUNT ( * ) ) col0 FROM tab0 WHERE NULL NOT BETWEEN col1 * + 52 AND - 96 + + 12 + - ( - col1 ) + col2 * - col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5903
SELECT ALL - col1 DIV + 75 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5903
SELECT ALL - col1 / + 75 FROM tab2
----
-1
0
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5905
SELECT 20 - + COUNT( * ) FROM tab2 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-5905
SELECT 20 - + COUNT ( * ) FROM tab2 AS cor0
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-5906
SELECT ALL - 63 DIV - col1 + col2 FROM tab0 cor0
----
13
162
47

skipif mysql # not compatible
query I rowsort label-5906
SELECT ALL - 63 / - col1 + col2 FROM tab0 cor0
----
13
162
47

query I rowsort
SELECT + 78 FROM tab0 WHERE ( NULL ) > - col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5908
SELECT ALL 44 + COUNT( * ) FROM tab1 WHERE NOT - ( CAST( NULL AS SIGNED ) ) + + col2 * - col2 IS NOT NULL
----
47

skipif mysql # not compatible
query I rowsort label-5908
SELECT ALL 44 + COUNT ( * ) FROM tab1 WHERE NOT - ( CAST ( NULL AS INTEGER ) ) + + col2 * - col2 IS NOT NULL
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-5909
SELECT ALL 76 DIV col1 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-5909
SELECT ALL 76 / col1 FROM tab2
----
0
1
1

query I rowsort
SELECT col2 + 43 AS col2 FROM tab1
----
102
111
139

query I rowsort
SELECT col0 + 18 * + 34 FROM tab2
----
658
676
687

onlyif mysql # DIV for integer division: 
query I rowsort label-5912
SELECT DISTINCT 66 DIV - col1 col1 FROM tab2
----
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5912
SELECT DISTINCT 66 / - col1 col1 FROM tab2
----
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5913
SELECT - CAST( + col0 AS SIGNED ) + 33 FROM tab2
----
-13
-31
-42

skipif mysql # not compatible
query I rowsort label-5913
SELECT - CAST ( + col0 AS INTEGER ) + 33 FROM tab2
----
-13
-31
-42

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

skipif mysql # not compatible
query I rowsort label-5914
SELECT ALL COUNT ( * ) / 27 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5915
SELECT ALL - COUNT( * ) * + MAX( - col0 ) FROM tab2
----
138

skipif mysql # not compatible
query I rowsort label-5915
SELECT ALL - COUNT ( * ) * + MAX ( - col0 ) FROM tab2
----
138

query I rowsort
SELECT 78 + + col0 AS col2 FROM tab2
----
124
142
153

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

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 NOT BETWEEN - ( - col2 ) * + col2 - + col1 * 28 AND - col2 / col1
----
15
81
47
87
21
10

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5921
SELECT + 97 * 10 + col2 DIV col1 AS col0 FROM tab0
----
1069
970
970

skipif mysql # not compatible
query I rowsort label-5921
SELECT + 97 * 10 + col2 / col1 AS col0 FROM tab0
----
1069
970
970

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col0 + + col0 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 64 - + 8 col1 FROM tab1
----
-72
-72
-72

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5927
SELECT + MAX( - ( - 15 ) ) * CAST( + 85 AS SIGNED ) + COUNT( * ) FROM tab1
----
1278

skipif mysql # not compatible
query I rowsort label-5927
SELECT + MAX ( - ( - 15 ) ) * CAST ( + 85 AS INTEGER ) + COUNT ( * ) FROM tab1
----
1278

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5929
SELECT + 98 * col2 + - 12 DIV col0 FROM tab1
----
5782
6664
9408

skipif mysql # not compatible
query I rowsort label-5929
SELECT + 98 * col2 + - 12 / col0 FROM tab1
----
5782
6664
9408

query I rowsort
SELECT ALL col0 + - 61 FROM tab1
----
-10
24
30

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5932
SELECT ALL - SUM( - col1 ) + 56 FROM tab0
----
159

skipif mysql # not compatible
query I rowsort label-5932
SELECT ALL - SUM ( - col1 ) + 56 FROM tab0
----
159

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

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

query I rowsort
SELECT - col2 AS col0 FROM tab2 WHERE + col1 * - col2 BETWEEN col1 - col1 AND col1
----

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5941
SELECT + ( COUNT( * ) ) AS col2 FROM tab0 WHERE NOT + 80 + + col1 * 85 <= ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-5941
SELECT + ( COUNT ( * ) ) AS col2 FROM tab0 WHERE NOT + 80 + + col1 * 85 <= ( NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5942
SELECT ALL 29 * + MAX( col0 ) FROM tab0
----
2813

skipif mysql # not compatible
query I rowsort label-5942
SELECT ALL 29 * + MAX ( col0 ) FROM tab0
----
2813

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

query I rowsort
SELECT DISTINCT + 81 * col1 AS col0 FROM tab2
----
4131
5427
6237

query III rowsort
SELECT * FROM tab0 WHERE 73 NOT IN ( + 23 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5946
SELECT ALL col0 + col0 * + ( 33 ) FROM tab2 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) * CAST( 52 * col1 AS DECIMAL ) IS NOT NULL
----
1564
2176
2550

skipif mysql # not compatible
query I rowsort label-5946
SELECT ALL col0 + col0 * + ( 33 ) FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) * CAST ( 52 * col1 AS REAL ) IS NOT NULL
----
1564
2176
2550

query I rowsort
SELECT DISTINCT + + 75 * 35 FROM tab2 AS cor0
----
2625

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 56 * ( - col0 ) col2 FROM tab1 AS cor0
----
-2856
-4760
-5096

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5950
SELECT ALL AVG ( DISTINCT col2 ) + 4 * SUM( DISTINCT CAST( col1 AS SIGNED ) ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( + col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5950
SELECT ALL AVG ( DISTINCT col2 ) + 4 * SUM ( DISTINCT CAST ( col1 AS INTEGER ) ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( + col2 )
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col1 >= ( - col1 )
----

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

query I rowsort
SELECT ALL - + col0 * + 96 + col0 FROM tab0 AS cor0
----
-1425
-8265
-9215

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

skipif mysql # not compatible
query I rowsort label-5954
SELECT DISTINCT - + SUM ( - col1 ) + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
198

query I rowsort
SELECT ( + 33 ) * col2 + ( - col1 ) AS col0 FROM tab1 AS cor0
----
1942
2197
3154

query I rowsort
SELECT - + col1 * + 72 + + 94 FROM tab0 AS cor0
----
-1418
-5738
22

query I rowsort
SELECT + 56 + ( col2 ) AS col0 FROM tab1 cor0
----
115
124
152

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5959
SELECT + COUNT( ALL + 85 ) + - MAX( ALL col0 ) FROM tab1
----
-88

skipif mysql # not compatible
query I rowsort label-5959
SELECT + COUNT ( ALL + 85 ) + - MAX ( ALL col0 ) FROM tab1
----
-88

query I rowsort
SELECT ALL 53 * + 63 * 13 + - col1 FROM tab0
----
43326
43386
43406

query I rowsort
SELECT ALL 85 FROM tab0 WHERE 56 / col1 NOT IN ( 16 )
----
85
85
85

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

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

query I rowsort
SELECT DISTINCT + col1 * + + col0 AS col0 FROM tab2
----
2346
4928
5025

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col1 ) NOT BETWEEN - 61 + - 36 AND NULL
----

query I rowsort
SELECT ALL - 20 + + + col2 + 50 FROM tab2
----
53
70
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5966
SELECT - ( + CAST( - col1 AS SIGNED ) ) + - ( - col2 ) * ( col2 ) AS col0 FROM tab1
----
3486
4671
9230

skipif mysql # not compatible
query I rowsort label-5966
SELECT - ( + CAST ( - col1 AS INTEGER ) ) + - ( - col2 ) * ( col2 ) AS col0 FROM tab1
----
3486
4671
9230

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5967
SELECT DISTINCT CAST( col0 AS SIGNED ) - 63 AS col1 FROM tab1
----
-12
22
28

skipif mysql # not compatible
query I rowsort label-5967
SELECT DISTINCT CAST ( col0 AS INTEGER ) - 63 AS col1 FROM tab1
----
-12
22
28

query III rowsort
SELECT * FROM tab1 WHERE + col2 BETWEEN - 97 AND NULL
----

query I rowsort
SELECT - col0 AS col0 FROM tab2 WHERE 23 - col0 NOT IN ( - 71 )
----
-46
-64
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + + 61 ) * + col2 - + 29 col2 FROM tab1
----
3570
4119
5827

query I rowsort
SELECT DISTINCT col2 + - col0 / col1 FROM tab0 AS cor0 WHERE NULL >= col2 * + col0
----

query I rowsort
SELECT - - 2 - 19 FROM tab1 AS cor0
----
-17
-17
-17

query I rowsort
SELECT - - 87 - col2 AS col0 FROM tab0 AS cor0
----
-12
40
77

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE ( NULL ) <= col2 - - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5975
SELECT MIN( - 8 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5975
SELECT MIN ( - 8 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5976
SELECT DISTINCT 2 - - COUNT( * ) + + 68 * - 12 FROM tab0
----
-811

skipif mysql # not compatible
query I rowsort label-5976
SELECT DISTINCT 2 - - COUNT ( * ) + + 68 * - 12 FROM tab0
----
-811

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - col1 ) NOT IN ( + ( - 0 ) )
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5980
SELECT DISTINCT MIN( 31 ) AS col1 FROM tab2 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-5980
SELECT DISTINCT MIN ( 31 ) AS col1 FROM tab2 AS cor0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-5981
SELECT DISTINCT - SUM( + 30 ) col1 FROM tab0 AS cor0 WHERE NULL NOT IN ( - col2 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5981
SELECT DISTINCT - SUM ( + 30 ) col1 FROM tab0 AS cor0 WHERE NULL NOT IN ( - col2 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5982
SELECT - SUM( - - col1 ) FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-5982
SELECT - SUM ( - - col1 ) FROM tab2 AS cor0
----
-195

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

query I rowsort
SELECT - + col0 * 60 * - ( - col0 ) * col2 + col0 * - col1 AS col0 FROM tab0 cor0
----
-4543227
-55889557
-635715

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

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

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

skipif mysql # not compatible
query I rowsort label-5986
SELECT + + col2 / col0 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - col1 * - 72 FROM tab0 AS cor0
----
1512
5832
72

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5988
SELECT * FROM tab0 WHERE NOT - + CAST( NULL AS SIGNED ) <= 16
----

skipif mysql # not compatible
query III rowsort label-5988
SELECT * FROM tab0 WHERE NOT - + CAST ( NULL AS INTEGER ) <= 16
----

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 NOT IN ( + col0 + - ( col1 + + col1 * - 65 ) )
----

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

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

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

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

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

query I rowsort
SELECT - ( - 93 ) * + - col2 * ( + 28 ) + col0 + + ( col0 ) AS col2 FROM tab0
----
-122358
-257602
-25866

query I rowsort
SELECT + 52 + - - ( - col1 ) FROM tab2 AS cor0
----
-15
-25
1

query I rowsort
SELECT 47 AS col2 FROM tab0 cor0 WHERE col1 * - col1 >= - + col0 + - - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5998
SELECT - COUNT( DISTINCT - ( + col0 ) ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5998
SELECT - COUNT ( DISTINCT - ( + col0 ) ) AS col2 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT DISTINCT - 19 + col1 AS col0 FROM tab0 AS cor0
----
-18
2
62

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6001
SELECT DISTINCT - + MIN( DISTINCT - 57 ) FROM tab0 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-6001
SELECT DISTINCT - + MIN ( DISTINCT - 57 ) FROM tab0 AS cor0
----
57

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6003
SELECT ALL - COUNT( - col1 ) AS col0 FROM tab1 WHERE NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-6003
SELECT ALL - COUNT ( - col1 ) AS col0 FROM tab1 WHERE NULL <> NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 13 col0 FROM tab1 WHERE ( NULL ) BETWEEN ( NULL ) AND + - col1
----

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

skipif mysql # not compatible
query I rowsort label-6005
SELECT ALL - COUNT ( * ) - 79 FROM tab1
----
-82

query I rowsort
SELECT ALL 26 * + - 83 AS col0 FROM tab0 AS cor0 WHERE NOT col0 NOT BETWEEN ( - col0 ) AND NULL
----

query I rowsort
SELECT - 78 + + col2 FROM tab1 AS cor0
----
-10
-19
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - + col1 col1 FROM tab1 cor0
----
-425
-4277
-714

query I rowsort
SELECT ALL - ( + col2 ) FROM tab2 WHERE NOT NULL <> + col0 * 13 + + - 82
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6011
SELECT + COUNT( * ) FROM tab0 cor0 WHERE NOT + col0 + + 10 <> - - 10
----
0

skipif mysql # not compatible
query I rowsort label-6011
SELECT + COUNT ( * ) FROM tab0 cor0 WHERE NOT + col0 + + 10 <> - - 10
----
0

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT IN ( 17 + - 86 / + col0 * + ( + + 55 ) )
----

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 23 AS col0, - 53 * - + col1 col1 FROM tab0
----
-23
1113
-23
4293
-23
53

query I rowsort
SELECT ALL + 5 AS col0 FROM tab1 WHERE NOT NULL IN ( - 76, col1 )
----

query II rowsort
SELECT DISTINCT 7 AS col0, 22 FROM tab1
----
7
22

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) >= ( - 14 )
----

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 35 >= + 79
----

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

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

skipif mysql # not compatible
query I rowsort label-6026
SELECT DISTINCT - - COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

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

query I rowsort
SELECT DISTINCT + 54 + - 93 FROM tab0
----
-39

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

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

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

query I rowsort
SELECT ALL - 75 AS col2 FROM tab0 cor0
----
-75
-75
-75

query I rowsort
SELECT ALL - col1 + - - col2 * - - col1 * ( - - col0 ) FROM tab1 AS cor0
----
25070
290789
68530

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6033
SELECT + col2 * - CAST( + + col1 AS SIGNED ) * - - col2 + + col2 AS col0 FROM tab0 AS cor0
----
-178882
-2090
-9702

skipif mysql # not compatible
query I rowsort label-6033
SELECT + col2 * - CAST ( + + col1 AS INTEGER ) * - - col2 + + col2 AS col0 FROM tab0 AS cor0
----
-178882
-2090
-9702

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6036
SELECT ALL 34 - - CAST( 89 AS SIGNED ) + + col0 / + 65 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-6036
SELECT ALL 34 - - CAST ( 89 AS INTEGER ) + + col0 / + 65 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6037
SELECT ALL + col0 + 28 DIV - col2 FROM tab0 AS cor0
----
15
85
97

skipif mysql # not compatible
query I rowsort label-6037
SELECT ALL + col0 + 28 / - col2 FROM tab0 AS cor0
----
15
85
97

query I rowsort
SELECT + col1 + 16 * + ( col1 ) AS col0 FROM tab1
----
238
799
85

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6039
SELECT DISTINCT CAST( NULL AS SIGNED ) - + ( + 48 ), CAST( NULL AS SIGNED ) + - 70 * + + col1 AS col2 FROM tab0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6039
SELECT DISTINCT CAST ( NULL AS INTEGER ) - + ( + 48 ), CAST ( NULL AS INTEGER ) + - 70 * + + col1 AS col2 FROM tab0
----
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL >= + col2
----

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

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

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

query I rowsort
SELECT DISTINCT - - 55 * + col1 AS col2 FROM tab1 AS cor0
----
2585
275
770

query III rowsort
SELECT * FROM tab0 WHERE NOT - 56 + + 2 IS NOT NULL
----

query I rowsort
SELECT - 37 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ed4644af7729c2425ea6cc3d84c6504f

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6047
SELECT ALL - 57 * SUM( ALL - - col1 ) col0 FROM tab2 AS cor0
----
-11115

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6047
SELECT ALL - 57 * SUM ( ALL - - col1 ) col0 FROM tab2 AS cor0
----
-11115

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6048
SELECT 5 AS col2 FROM tab1 cor0 WHERE NOT 44 IN ( + CAST( - col1 AS SIGNED ), col1 + - - col2 + - col1 )
----
5
5
5

skipif mysql # not compatible
query I rowsort label-6048
SELECT 5 AS col2 FROM tab1 cor0 WHERE NOT 44 IN ( + CAST ( - col1 AS INTEGER ), col1 + - - col2 + - col1 )
----
5
5
5

onlyif mysql # aggregate syntax: 
query II rowsort label-6049
SELECT + 95 AS col1, MAX( + col0 ) + 73 AS col0 FROM tab1 AS cor0
----
95
164

skipif mysql # not compatible
query II rowsort label-6049
SELECT + 95 AS col1, MAX ( + col0 ) + 73 AS col0 FROM tab1 AS cor0
----
95
164

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6052
SELECT DISTINCT + + col1 DIV - 29 FROM tab0 AS cor0
----
-2
0

skipif mysql # not compatible
query I rowsort label-6052
SELECT DISTINCT + + col1 / - 29 FROM tab0 AS cor0
----
-2
0

query I rowsort
SELECT ALL - col1 * + 89 + + col1 FROM tab2
----
-4488
-5896
-6776

query I rowsort
SELECT DISTINCT + 68 FROM tab1, tab1 cor0
----
68

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

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

query I rowsort
SELECT ALL - - 87 + 89 * + + 94 FROM tab0 WHERE NOT ( - - col2 ) NOT IN ( - col0 + col0, col2 )
----
8453
8453
8453

onlyif mysql # DIV for integer division: 
query I rowsort label-6058
SELECT + 84 * + - col2 DIV - col2 FROM tab1 AS cor0
----
84
84
84

skipif mysql # not compatible
query I rowsort label-6058
SELECT + 84 * + - col2 / - col2 FROM tab1 AS cor0
----
84
84
84

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

skipif mysql # not compatible
query I rowsort label-6059
SELECT - - col0 / + + col0 AS col1 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT + col1 * + + col0 + 72 AS col0 FROM tab1 cor0
----
4349
497
786

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6062
SELECT - 3 * + col2 DIV + col2 FROM tab1 AS cor0
----
-3
-3
-3

skipif mysql # not compatible
query I rowsort label-6062
SELECT - 3 * + col2 / + col2 FROM tab1 AS cor0
----
-3
-3
-3

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

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

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

skipif mysql # not compatible
query I rowsort label-6065
SELECT COUNT ( - - col2 ) / + MIN ( ALL ( + col0 ) ) + - CAST ( NULL AS INTEGER ) + + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
NULL

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6068
SELECT ALL SUM( + col1 ) - - + MIN( - col0 ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-6068
SELECT ALL SUM ( + col1 ) - - + MIN ( - col0 ) FROM tab0
----
6

query I rowsort
SELECT ALL + 84 * col2 + + col2 FROM tab2
----
1955
3400
4930

onlyif mysql # DIV for integer division: 
query I rowsort label-6070
SELECT - col1 DIV 83 DIV + - col0 - - 36 AS col1 FROM tab0
----
36
36
36

skipif mysql # not compatible
query I rowsort label-6070
SELECT - col1 / 83 / + - col0 - - 36 AS col1 FROM tab0
----
36
36
36

query I rowsort
SELECT ALL 86 AS col0 FROM tab1 WHERE NULL NOT IN ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6072
SELECT ALL COUNT( * ) + + 81 * - COUNT( - 64 ) + + ( + COUNT( * ) ) FROM tab2
----
-237

skipif mysql # not compatible
query I rowsort label-6072
SELECT ALL COUNT ( * ) + + 81 * - COUNT ( - 64 ) + + ( + COUNT ( * ) ) FROM tab2
----
-237

query III rowsort
SELECT ALL * FROM tab1 WHERE - 52 <= ( col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 31 = - col0
----

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

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

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

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

query IIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0 WHERE NULL IS NOT NULL OR NOT NULL IS NOT NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6080
SELECT SUM( - 60 ) FROM tab0
----
-180

skipif mysql # not compatible
query I rowsort label-6080
SELECT SUM ( - 60 ) FROM tab0
----
-180

onlyif mysql # aggregate syntax: 
query II rowsort label-6081
SELECT - COUNT( * ) AS col2, MAX( - - col1 ) AS col2 FROM tab1 AS cor0 WHERE NOT - col2 BETWEEN - + 90 AND + + col0
----
-1
14

skipif mysql # not compatible
query II rowsort label-6081
SELECT - COUNT ( * ) AS col2, MAX ( - - col1 ) AS col2 FROM tab1 AS cor0 WHERE NOT - col2 BETWEEN - + 90 AND + + col0
----
-1
14

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - ( + 45 ) / - 41 + + 88 ) < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6083
SELECT ALL + CAST( + col1 AS SIGNED ) * - col1 FROM tab0 AS cor0
----
-1
-441
-6561

skipif mysql # not compatible
query I rowsort label-6083
SELECT ALL + CAST ( + col1 AS INTEGER ) * - col1 FROM tab0 AS cor0
----
-1
-441
-6561

query I rowsort
SELECT ALL + + col2 * - - ( + - 30 ) FROM tab0 AS cor0
----
-1410
-2970
-300

query I rowsort
SELECT DISTINCT 95 + col1 + + col0 + - + col2 * - + col2 * + + col0 * - col1 FROM tab2 AS cor0
----
-1240842
-16903863
-7884564

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

query I rowsort
SELECT DISTINCT + col1 * - col0 + col2 FROM tab2
----
-2323
-4888
-4967

query II rowsort
SELECT ALL - col2 + - col1 AS col2, ( - col2 ) * + + col0 FROM tab2
----
-117
-2560
-125
-4350
-74
-1058

onlyif mysql # aggregate syntax: 
query I rowsort label-6089
SELECT - 37 + - 37 * MIN( DISTINCT + 47 ) - + COUNT( + col2 ) FROM tab2
----
-1779

skipif mysql # not compatible
query I rowsort label-6089
SELECT - 37 + - 37 * MIN ( DISTINCT + 47 ) - + COUNT ( + col2 ) FROM tab2
----
-1779

query I rowsort
SELECT DISTINCT 77 * + 38 FROM tab0
----
2926

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

query I rowsort
SELECT 73 + + col1 FROM tab2
----
124
140
150

onlyif mysql # DIV for integer division: 
query I rowsort label-6093
SELECT ALL - ( + 39 ) DIV col2 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6093
SELECT ALL - ( + 39 ) / col2 FROM tab2
----
-1
0
0

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

query I rowsort
SELECT DISTINCT - + col0 * - ( - - 69 ) FROM tab1 cor0
----
3519
5865
6279

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + 81 col0, col2 FROM tab1 AS cor0
----
-81
59
-81
68
-81
96

onlyif mysql # DIV for integer division: 
query I rowsort label-6097
SELECT - - 88 DIV col2 * 88 + col1 FROM tab0 AS cor0
----
1
169
725

skipif mysql # not compatible
query I rowsort label-6097
SELECT - - 88 / col2 * 88 + col1 FROM tab0 AS cor0
----
1
169
725

query I rowsort
SELECT ( - - 19 ) FROM tab2
----
19
19
19

query I rowsort
SELECT ALL col2 * + 87 - - - col2 + + 61 * - col1 AS col0 FROM tab2
----
-1133
-1257
901

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6101
SELECT MAX( + - 85 ) + 31 + - + MIN( DISTINCT - col0 ) + - ( - 97 ) AS col1 FROM tab2 cor0
----
118

skipif mysql # not compatible
query I rowsort label-6101
SELECT MAX ( + - 85 ) + 31 + - + MIN ( DISTINCT - col0 ) + - ( - 97 ) AS col1 FROM tab2 cor0
----
118

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6103
SELECT - + col2 DIV + col2 + + col0 + - + 31 AS col0 FROM tab1 AS cor0
----
19
53
59

skipif mysql # not compatible
query I rowsort label-6103
SELECT - + col2 / + col2 + + col0 + - + 31 AS col0 FROM tab1 AS cor0
----
19
53
59

onlyif mysql # aggregate syntax: 
query I rowsort label-6104
SELECT ALL + COUNT( * ) + + - COUNT( ALL + 68 ) - - - COUNT( * ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6104
SELECT ALL + COUNT ( * ) + + - COUNT ( ALL + 68 ) - - - COUNT ( * ) FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-6105
SELECT SUM( DISTINCT - 28 ) * + + MIN( - + col2 ), - 23 AS col0 FROM tab1
----
2688
-23

skipif mysql # not compatible
query II rowsort label-6105
SELECT SUM ( DISTINCT - 28 ) * + + MIN ( - + col2 ), - 23 AS col0 FROM tab1
----
2688
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-6106
SELECT DISTINCT - SUM( DISTINCT - 87 ) FROM tab2
----
87

skipif mysql # not compatible
query I rowsort label-6106
SELECT DISTINCT - SUM ( DISTINCT - 87 ) FROM tab2
----
87

query II rowsort
SELECT DISTINCT 75 AS col2, 10 FROM tab0
----
75
10

query III rowsort
SELECT * FROM tab1 WHERE NOT - 1 <> NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6110
SELECT ALL 10 * + CAST( + + 73 AS SIGNED ) * - + col1 * CAST( col1 AS SIGNED ) DIV col1 FROM tab1
----
-10220
-34310
-3650

skipif mysql # not compatible
query I rowsort label-6110
SELECT ALL 10 * + CAST ( + + 73 AS INTEGER ) * - + col1 * CAST ( col1 AS INTEGER ) / col1 FROM tab1
----
-10220
-34310
-3650

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6111
SELECT DISTINCT - CAST( AVG ( - col1 ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-6111
SELECT DISTINCT - CAST ( AVG ( - col1 ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
34

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6113
SELECT ALL COUNT( DISTINCT - col1 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6113
SELECT ALL COUNT ( DISTINCT - col1 ) AS col2 FROM tab2
----
3

query I rowsort
SELECT - - 54 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 5 col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 6035628694bdea36f584f3649088551d

query II rowsort
SELECT - col1 + - col0, col1 FROM tab1 AS cor0
----
-138
47
-65
14
-90
5

query I rowsort
SELECT DISTINCT + col0 + - + 91 * 99 AS col1 FROM tab2 AS cor0
----
-8934
-8945
-8963

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6119
SELECT + SUM( DISTINCT col1 ) FROM tab2 cor0
----
195

skipif mysql # not compatible
query I rowsort label-6119
SELECT + SUM ( DISTINCT col1 ) FROM tab2 cor0
----
195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + + + 26 col1 FROM tab1
----
122
85
94

query I rowsort
SELECT - col0 * + - col1 FROM tab0
----
1215
1827
97

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6123
SELECT DISTINCT + ( + - 64 ) DIV + COUNT( * ) FROM tab1
----
-21

skipif mysql # not compatible
query I rowsort label-6123
SELECT DISTINCT + ( + - 64 ) / + COUNT ( * ) FROM tab1
----
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-6124
SELECT 63 DIV - col1 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6124
SELECT 63 / - col1 FROM tab2
----
-1
0
0

query I rowsort
SELECT 74 - - + ( col1 ) FROM tab0 WHERE NULL NOT IN ( - col0 * + col1 )
----

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

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

query I rowsort
SELECT ALL - 79 + col2 + - + 84 + col1 FROM tab2 AS cor0
----
-38
-46
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-6128
SELECT - - col2 + - col0 DIV 48 AS col2 FROM tab0 AS cor0
----
47
9
97

skipif mysql # not compatible
query I rowsort label-6128
SELECT - - col2 + - col0 / 48 AS col2 FROM tab0 AS cor0
----
47
9
97

query I rowsort
SELECT DISTINCT 88 + + col1 * col2 FROM tab1 AS cor0
----
1432
3284
383

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6131
SELECT ALL + 37 - + COUNT( * ) AS col1 FROM tab0
----
34

skipif mysql # not compatible
query I rowsort label-6131
SELECT ALL + 37 - + COUNT ( * ) AS col1 FROM tab0
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-6132
SELECT DISTINCT + COUNT( * ) - 21 FROM tab2
----
-18

skipif mysql # not compatible
query I rowsort label-6132
SELECT DISTINCT + COUNT ( * ) - 21 FROM tab2
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-6133
SELECT MIN( DISTINCT 85 ) FROM tab0
----
85

skipif mysql # not compatible
query I rowsort label-6133
SELECT MIN ( DISTINCT 85 ) FROM tab0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-6134
SELECT DISTINCT COUNT( * ) + COUNT( * ) + + SUM( ALL + col2 ) FROM tab2
----
127

skipif mysql # not compatible
query I rowsort label-6134
SELECT DISTINCT COUNT ( * ) + COUNT ( * ) + + SUM ( ALL + col2 ) FROM tab2
----
127

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

query II rowsort
SELECT + + 9, col1 FROM tab2 cor0
----
9
51
9
67
9
77

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6137
SELECT ALL + CAST( + + CAST( NULL AS SIGNED ) AS DECIMAL ) col1 FROM tab2 AS cor0 WHERE NOT - 65 * ( col1 ) + - 24 * - + col1 NOT BETWEEN + ( + - 13 ) AND NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6137
SELECT ALL + CAST ( + + CAST ( NULL AS INTEGER ) AS REAL ) col1 FROM tab2 AS cor0 WHERE NOT - 65 * ( col1 ) + - 24 * - + col1 NOT BETWEEN + ( + - 13 ) AND NULL
----

query I rowsort
SELECT DISTINCT + 66 * col2 AS col2 FROM tab0 AS cor0
----
3102
6534
660

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6139
SELECT - col2 AS col0 FROM tab2 WHERE NOT NULL NOT IN ( col0, CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-6139
SELECT - col2 AS col0 FROM tab2 WHERE NOT NULL NOT IN ( col0, CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT ( 11 ) FROM tab1
----
11

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

skipif mysql # not compatible
query I rowsort label-6141
SELECT ( CAST ( + - col1 AS INTEGER ) ) FROM tab1
----
-14
-47
-5

query III rowsort
SELECT * FROM tab0 WHERE NOT - + col0 BETWEEN - + col1 AND col0
----
87
21
10
97
1
99

onlyif mysql # DIV for integer division: 
query I rowsort label-6143
SELECT - 39 DIV + - ( - col0 ) AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6143
SELECT - 39 / + - ( - col0 ) AS col2 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6144
SELECT ALL 27 DIV - + col1 FROM tab0
----
-1
-27
0

skipif mysql # not compatible
query I rowsort label-6144
SELECT ALL 27 / - + col1 FROM tab0
----
-1
-27
0

query III rowsort
SELECT ALL * FROM tab1 WHERE - col0 * + col0 - + 77 - 34 = - + col2 / - col0
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 59 + + 55 NOT BETWEEN + 5 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6147
SELECT + SUM( ALL + 46 ) FROM tab1
----
138

skipif mysql # not compatible
query I rowsort label-6147
SELECT + SUM ( ALL + 46 ) FROM tab1
----
138

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

skipif mysql # not compatible
query I rowsort label-6148
SELECT - COUNT ( ALL 61 ) FROM tab1 AS cor0
----
-3

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

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

query II rowsort
SELECT DISTINCT + col1 AS col2, + col1 + + + col0 - - + 58 AS col0 FROM tab2 AS cor0
----
51
155
67
200
77
199

query I rowsort
SELECT + col0 AS col0 FROM tab0 cor0 WHERE ( NULL ) > - col0
----

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

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

query I rowsort
SELECT + - 92 + 63 * - + col2 * + col1 FROM tab2 AS cor0
----
-194132
-244910
-73991

query I rowsort
SELECT DISTINCT 84 + + col1 + + col1 + + col2 * + col0 * + + col0 AS col0 FROM tab2
----
164078
326468
48854

query III rowsort
SELECT * FROM tab2 WHERE 52 - - col1 + - col0 BETWEEN NULL AND NULL
----

query I rowsort
SELECT + col2 + - 12 AS col1 FROM tab2
----
11
28
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6158
SELECT - 89 * - ( - col2 ) + - ( - CAST( - col0 AS SIGNED ) ) * col1 * - ( col2 ) + col1 + col1 FROM tab1
----
19834
284878
60028

skipif mysql # not compatible
query I rowsort label-6158
SELECT - 89 * - ( - col2 ) + - ( - CAST ( - col0 AS INTEGER ) ) * col1 * - ( col2 ) + col1 + col1 FROM tab1
----
19834
284878
60028

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col0, - col0 col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) <= NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-6163
SELECT ALL - col0 * col0 * + 95 AS col0, + 76 DIV 52 FROM tab0 AS cor0
----
-21375
1
-719055
1
-893855
1

skipif mysql # not compatible
query II rowsort label-6163
SELECT ALL - col0 * col0 * + 95 AS col0, + 76 / 52 FROM tab0 AS cor0
----
-21375
1
-719055
1
-893855
1

query I rowsort
SELECT + 7 * + 77 AS col0 FROM tab0 AS cor0
----
539
539
539

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6166
SELECT DISTINCT - 89 * - COUNT( * ) AS col2 FROM tab2 AS cor0
----
267

skipif mysql # not compatible
query I rowsort label-6166
SELECT DISTINCT - 89 * - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
267

onlyif mysql # aggregate syntax: 
query I rowsort label-6167
SELECT - 17 * - - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-6167
SELECT - 17 * - - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-6168
SELECT ALL - ( col1 ) DIV + - col2 col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6168
SELECT ALL - ( col1 ) / + - col2 col2 FROM tab1
----
0
0
0

query I rowsort
SELECT 16 * + 89 AS col1 FROM tab0
----
1424
1424
1424

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6171
SELECT + 16 AS col2, 90 * COUNT( * ) * MIN( - col2 ) col1 FROM tab1 AS cor0
----
16
-25920

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6171
SELECT + 16 AS col2, 90 * COUNT ( * ) * MIN ( - col2 ) col1 FROM tab1 AS cor0
----
16
-25920

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - 13 <= col2
----

query I rowsort
SELECT - col0 * - 22 + + col2 FROM tab0 AS cor0
----
1924
2233
377

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6175
SELECT 34 DIV + + 69 * + + ( 3 ) + + MIN( ALL col2 ) AS col1 FROM tab0 cor0
----
10

skipif mysql # not compatible
query I rowsort label-6175
SELECT 34 / + + 69 * + + ( 3 ) + + MIN ( ALL col2 ) AS col1 FROM tab0 cor0
----
10

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

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

query I rowsort
SELECT DISTINCT - - ( + - col2 ) FROM tab0 AS cor0
----
-10
-47
-99

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 28 BETWEEN - - col0 + - col2 AND 91
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col0 * + col2 + - - col2 FROM tab1 AS cor0
----
4992
5074
6256

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 < - + 51 / - - col1 + + 63
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL - 75 + - - col2 + + col0 + + - 59 + - col2 AS col0, col1 AS col2 FROM tab1 AS cor0
----
-43
47
-49
5
-83
14

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

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

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

query I rowsort
SELECT ALL + 78 + - + 39 AS col2 FROM tab2
----
39
39
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6185
SELECT - ( + SUM( DISTINCT col0 ) ) AS col0, CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
-227
NULL

skipif mysql # not compatible
query II rowsort label-6185
SELECT - ( + SUM ( DISTINCT col0 ) ) AS col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
-227
NULL

query I rowsort
SELECT + 15 - - + col1 FROM tab1
----
20
29
62

onlyif mysql # aggregate syntax: 
query I rowsort label-6187
SELECT 94 - + 17 - ( + COUNT( * ) ) FROM tab2
----
74

skipif mysql # not compatible
query I rowsort label-6187
SELECT 94 - + 17 - ( + COUNT ( * ) ) FROM tab2
----
74

query I rowsort
SELECT 9 + - - col0 FROM tab2 AS cor0
----
55
73
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6189
SELECT ALL + + CAST( NULL AS SIGNED ) * - 47 FROM tab1 AS cor0 WHERE NOT NULL < 82 - - 62
----

skipif mysql # not compatible
query I rowsort label-6189
SELECT ALL + + CAST ( NULL AS INTEGER ) * - 47 FROM tab1 AS cor0 WHERE NOT NULL < 82 - - 62
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6190
SELECT ALL + MAX( 12 ) AS col1 FROM tab0 AS cor0 WHERE NOT + 8 * + col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6190
SELECT ALL + MAX ( 12 ) AS col1 FROM tab0 AS cor0 WHERE NOT + 8 * + col1 IS NOT NULL
----
NULL

query I rowsort
SELECT ALL + - 64 + col2 FROM tab2 cor0
----
-24
-41
-6

query I rowsort
SELECT - 57 * + 81 AS col1 FROM tab0 AS cor0 WHERE ( NOT + - 80 IS NOT NULL )
----

query I rowsort
SELECT DISTINCT col0 - 79 AS col0 FROM tab0
----
-64
18
8

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6195
SELECT DISTINCT + MIN( - + col2 ) * 15 col1 FROM tab2 AS cor0
----
-870

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6195
SELECT DISTINCT + MIN ( - + col2 ) * 15 col1 FROM tab2 AS cor0
----
-870

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6197
SELECT + CAST( + col0 AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE NOT + 28 / + - col0 BETWEEN - 39 AND - col1 - + col0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-6197
SELECT + CAST ( + col0 AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE NOT + 28 / + - col0 BETWEEN - 39 AND - col1 - + col0
----
46
64
75

query II rowsort
SELECT ALL col0 * + col2 AS col2, + col1 FROM tab1 AS cor0
----
4896
14
5015
5
6188
47

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6200
SELECT - 81 * + col1, ( col2 ) DIV 84 + - col0 AS col1 FROM tab1 cor0
----
-1134
-50
-3807
-91
-405
-85

skipif mysql # not compatible
query II rowsort label-6200
SELECT - 81 * + col1, ( col2 ) / 84 + - col0 AS col1 FROM tab1 cor0
----
-1134
-50
-3807
-91
-405
-85

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 64 * + 1 * - col0 / col0 + - + 18 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + - ( col0 ) * - col2 FROM tab0 AS cor0
----
705
870
9603

query I rowsort
SELECT + 34 * - col1 FROM tab2
----
-1734
-2278
-2618

query II rowsort
SELECT ALL col2 AS col1, 81 AS col2 FROM tab1
----
59
81
68
81
96
81

query II rowsort
SELECT DISTINCT col0 * - 6 * + 9 AS col2, + col1 AS col2 FROM tab0
----
-4698
21
-5238
1
-810
81

onlyif mysql # DIV for integer division: 
query I rowsort label-6206
SELECT col0 DIV + - 92 * col2 * - - 80 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6206
SELECT col0 / + - 92 * col2 * - - 80 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL + 93 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + col2 * - col2 AS col2 FROM tab0 cor0
----
-100
-2209
-9801

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

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

query I rowsort
SELECT ALL - col2 * + - col0 * col1 * - + ( - col1 ) * - 29 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-27828864
-3635875
-396409468

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6212
SELECT - COUNT( * ) + - - SUM( + + 99 ) AS col1 FROM tab1 AS cor0
----
294

skipif mysql # not compatible
query I rowsort label-6212
SELECT - COUNT ( * ) + - - SUM ( + + 99 ) AS col1 FROM tab1 AS cor0
----
294

query I rowsort
SELECT - 87 + + + col1 FROM tab0 AS cor0
----
-6
-66
-86

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

query I rowsort
SELECT ALL 3 + 98 + - + 74 FROM tab1
----
27
27
27

query II rowsort
SELECT ALL + col2 * col0 - - col2, + col2 FROM tab2
----
1081
23
2600
40
4408
58

query I rowsort
SELECT DISTINCT col1 * 0 - col1 FROM tab2
----
-51
-67
-77

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

query I rowsort
SELECT DISTINCT 24 - - col2 AS col1 FROM tab1
----
120
83
92

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) BETWEEN NULL AND col2
----

query I rowsort
SELECT - col2 * - col2 AS col1 FROM tab1 AS cor0 WHERE + ( col1 ) IS NOT NULL
----
3481
4624
9216

onlyif mysql # aggregate syntax: 
query II rowsort label-6222
SELECT - 40 col1, - 83 - ( - COUNT( * ) ) - - COUNT( * ) * + 19 - + 59 FROM tab1
----
-40
-82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6222
SELECT - 40 col1, - 83 - ( - COUNT ( * ) ) - - COUNT ( * ) * + 19 - + 59 FROM tab1
----
-40
-82

query IIIIII rowsort
SELECT * FROM tab0 cor0 JOIN tab0 AS cor1 ON NULL >= NULL
----

query I rowsort
SELECT DISTINCT - 3 AS col0 FROM tab0, tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6225
SELECT MIN( DISTINCT + col2 ) FROM tab0 cor0
----
10

skipif mysql # not compatible
query I rowsort label-6225
SELECT MIN ( DISTINCT + col2 ) FROM tab0 cor0
----
10

query I rowsort
SELECT col0 + - 33 FROM tab1 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
18
52
58

query I rowsort
SELECT - col1 * - + 27 AS col0 FROM tab1 AS cor0
----
1269
135
378

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6229
SELECT ALL + - 83 * MAX( + 78 ) FROM tab0 AS cor0
----
-6474

skipif mysql # not compatible
query I rowsort label-6229
SELECT ALL + - 83 * MAX ( + 78 ) FROM tab0 AS cor0
----
-6474

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6230
SELECT ALL + CAST ( NULL AS INTEGER ) col0, + ( - col1 ) FROM tab2 AS cor0
----
NULL
-51
NULL
-67
NULL
-77

query I rowsort
SELECT ALL - 10 * + 76 FROM tab1
----
-760
-760
-760

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6232
SELECT + col1 * + col2 FROM tab1 WHERE NOT ( - CAST( + + col0 AS SIGNED ) ) > 76
----
1344
295
3196

skipif mysql # not compatible
query I rowsort label-6232
SELECT + col1 * + col2 FROM tab1 WHERE NOT ( - CAST ( + + col0 AS INTEGER ) ) > 76
----
1344
295
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-6233
SELECT DISTINCT + SUM( DISTINCT + ( 74 ) ) FROM tab2
----
74

skipif mysql # not compatible
query I rowsort label-6233
SELECT DISTINCT + SUM ( DISTINCT + ( 74 ) ) FROM tab2
----
74

onlyif mysql # aggregate syntax: 
query II rowsort label-6234
SELECT ALL 15 * + COUNT( DISTINCT + + col0 ) * - - 10 AS col2, 69 AS col0 FROM tab0
----
450
69

skipif mysql # not compatible
query II rowsort label-6234
SELECT ALL 15 * + COUNT ( DISTINCT + + col0 ) * - - 10 AS col2, 69 AS col0 FROM tab0
----
450
69

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 85 >= - col0 * - col2
----

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

query II rowsort
SELECT ALL col1 * 25, - 69 AS col1 FROM tab2 AS cor0
----
1275
-69
1675
-69
1925
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6239
SELECT ALL + col0 * + CAST( NULL AS SIGNED ) * - + col2 + + col2 - + 74 / 1 + col1 FROM tab0 AS cor0 WHERE 34 IS NULL
----

skipif mysql # not compatible
query I rowsort label-6239
SELECT ALL + col0 * + CAST ( NULL AS INTEGER ) * - + col2 + + col2 - + 74 / 1 + col1 FROM tab0 AS cor0 WHERE 34 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6240
SELECT ALL + COUNT( * ) * + - COUNT( * ) AS col2 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-6240
SELECT ALL + COUNT ( * ) * + - COUNT ( * ) AS col2 FROM tab2
----
-9

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

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

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL > ( - 15 )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6245
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-6245
SELECT DISTINCT + ( - - COUNT ( * ) ) col0 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6246
SELECT SUM( ALL 8 ) FROM tab1 AS cor0 WHERE ( - col1 ) IS NOT NULL
----
24

skipif mysql # not compatible
query I rowsort label-6246
SELECT SUM ( ALL 8 ) FROM tab1 AS cor0 WHERE ( - col1 ) IS NOT NULL
----
24

query I rowsort
SELECT DISTINCT + col1 + - + 93 FROM tab1 cor0
----
-46
-79
-88

query I rowsort
SELECT ALL + + col2 AS col0 FROM tab1 AS cor0 WHERE col0 <= - - col2 + - col2 * - col0
----
59
68
96

query II rowsort
SELECT DISTINCT + + col2 AS col1, - 26 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

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

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

query I rowsort
SELECT ALL + col2 * - 64 - 87 + 58 FROM tab0 AS cor0
----
-3037
-6365
-669

query I rowsort
SELECT DISTINCT col1 - - 25 AS col0 FROM tab2 cor0
----
102
76
92

query I rowsort
SELECT 30 - - 33 FROM tab0
----
63
63
63

onlyif mysql # aggregate syntax: 
query I rowsort label-6254
SELECT DISTINCT 88 - COUNT( * ) AS col1 FROM tab0
----
85

skipif mysql # not compatible
query I rowsort label-6254
SELECT DISTINCT 88 - COUNT ( * ) AS col1 FROM tab0
----
85

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

query I rowsort
SELECT DISTINCT col1 * + col1 - - - 46 AS col2 FROM tab2
----
2555
4443
5883

query I rowsort
SELECT 86 + col1 * + col1 FROM tab2
----
2687
4575
6015

query II rowsort
SELECT ALL + col0, + 36 + - - 61 - - ( - - col1 ) * - ( - col2 ) AS col2 FROM tab2
----
46
1270
64
3177
75
3983

query I rowsort
SELECT col0 * - col0 * + ( - ( 23 ) ) + + + col0 * 93 FROM tab2
----
100160
136350
52946

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - ( 68 ) col2 FROM tab1 AS cor0
----
68
68
68

query II rowsort
SELECT DISTINCT - ( 52 ) AS col1, - col2 + - col1 + - col2 - - col1 + 7 AS col0 FROM tab0 AS cor0
----
-52
-13
-52
-191
-52
-87

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6265
SELECT ( - col1 ) * col0 + - col0 + - col1 DIV 59 FROM tab1
----
-4368
-510
-765

skipif mysql # not compatible
query I rowsort label-6265
SELECT ( - col1 ) * col0 + - col0 + - col1 / 59 FROM tab1
----
-4368
-510
-765

onlyif mysql # DIV for integer division: 
query I rowsort label-6266
SELECT ALL - 83 + + col0 DIV - 76 FROM tab1
----
-83
-84
-84

skipif mysql # not compatible
query I rowsort label-6266
SELECT ALL - 83 + + col0 / - 76 FROM tab1
----
-83
-84
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-6267
SELECT 59 * - + COUNT( * ) AS col0 FROM tab1
----
-177

skipif mysql # not compatible
query I rowsort label-6267
SELECT 59 * - + COUNT ( * ) AS col0 FROM tab1
----
-177

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL < + + 30 / - - col0
----

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

skipif mysql # not compatible
query I rowsort label-6269
SELECT DISTINCT - 0 * - - COUNT ( - col2 ) / - + 5 FROM tab0
----
0

query I rowsort
SELECT - 53 + + 12 FROM tab1
----
-41
-41
-41

query I rowsort
SELECT ALL + 56 * + col1 FROM tab0
----
1176
4536
56

query II rowsort
SELECT DISTINCT + col2, + col2 * col0 FROM tab0 AS cor0
----
10
870
47
705
99
9603

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL IN ( col2, + col0 / col2 * - col1, + + col1 + + - 80 * - - col2 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-6274
SELECT DISTINCT + ( - ( 0 ) ) + - col0 + - + 20 * + col0 * + col0 DIV - col0, col2 + ( - col0 ) AS col1 FROM tab1 cor0
----
1615
-26
1729
-23
969
45

skipif mysql # not compatible
query II rowsort label-6274
SELECT DISTINCT + ( - ( 0 ) ) + - col0 + - + 20 * + col0 * + col0 / - col0, col2 + ( - col0 ) AS col1 FROM tab1 cor0
----
1615
-26
1729
-23
969
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + - 32 col2 FROM tab1 cor0
----
19
53
59

query II rowsort
SELECT col0, - col2 * + 94 AS col0 FROM tab1 AS cor0
----
51
-9024
85
-5546
91
-6392

query I rowsort
SELECT DISTINCT - col0 + 41 FROM tab1 AS cor0
----
-10
-44
-50

query I rowsort
SELECT DISTINCT + 3 AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6279
SELECT DISTINCT - ( - CAST( + + 84 AS SIGNED ) ) * + col1 AS col2 FROM tab0
----
1764
6804
84

skipif mysql # not compatible
query I rowsort label-6279
SELECT DISTINCT - ( - CAST ( + + 84 AS INTEGER ) ) * + col1 AS col2 FROM tab0
----
1764
6804
84

query I rowsort
SELECT DISTINCT - + ( + 92 ) - col2 FROM tab2 AS cor0
----
-115
-132
-150

query I rowsort
SELECT - 32 + - + 38 + + col1 FROM tab1 AS cor0
----
-23
-56
-65

query I rowsort
SELECT col1 + ( 63 ) - + + col2 - col0 * - 66 AS col2 FROM tab1 cor0
----
3347
5619
6048

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

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

query I rowsort
SELECT DISTINCT 25 + + col0 FROM tab0
----
112
122
40

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

query I rowsort
SELECT ALL - col2 * 85 AS col1 FROM tab1 cor0
----
-5015
-5780
-8160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6287
SELECT ALL + CAST( NULL AS SIGNED ) * - 99 * - ( 32 ) / - - COUNT( * ) + 23 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6287
SELECT ALL + CAST ( NULL AS INTEGER ) * - 99 * - ( 32 ) / - - COUNT ( * ) + 23 FROM tab1 AS cor0
----
NULL

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

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

query I rowsort
SELECT + + 54 * + + col2 FROM tab2 AS cor0
----
1242
2160
3132

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6290
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 * + col2 + 6 / - CAST( NULL AS SIGNED ) <> NULL
----

skipif mysql # not compatible
query III rowsort label-6290
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 * + col2 + 6 / - CAST ( NULL AS INTEGER ) <> NULL
----

query I rowsort
SELECT - 81 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 205b3ff2d7b1817c98d7980b8c17e6c1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6292
SELECT col2, CAST( NULL AS SIGNED ) FROM tab2
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-6292
SELECT col2, CAST ( NULL AS INTEGER ) FROM tab2
----
23
NULL
40
NULL
58
NULL

query I rowsort
SELECT DISTINCT - 98 * + - 22 AS col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
2156

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6295
SELECT + + 2 DIV - col0 * col1 + + + col1 + - 51 + - + col1 FROM tab0 AS cor0
----
-51
-51
-51

skipif mysql # not compatible
query I rowsort label-6295
SELECT + + 2 / - col0 * col1 + + + col1 + - 51 + - + col1 FROM tab0 AS cor0
----
-51
-51
-51

query I rowsort
SELECT - 99 * col0 + + col1 * ( - 70 ) FROM tab1 AS cor0
----
-12299
-6029
-8765

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

query II rowsort
SELECT - + col1, + 95 * - 88 AS col1 FROM tab2 AS cor0
----
-51
-8360
-67
-8360
-77
-8360

query II rowsort
SELECT col0 AS col1, 34 - + col1 FROM tab1 cor0
----
51
20
85
29
91
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-6300
SELECT DISTINCT MAX( ALL - 43 ) FROM tab0
----
-43

skipif mysql # not compatible
query I rowsort label-6300
SELECT DISTINCT MAX ( ALL - 43 ) FROM tab0
----
-43

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6303
SELECT ALL - - col2 FROM tab1 WHERE + CAST( NULL AS SIGNED ) IS NULL
----
59
68
96

skipif mysql # not compatible
query I rowsort label-6303
SELECT ALL - - col2 FROM tab1 WHERE + CAST ( NULL AS INTEGER ) IS NULL
----
59
68
96

query II rowsort
SELECT ALL ( col1 ) AS col2, + ( 41 ) * ( + col0 ) * col2 * - 80 + - + col0 + - - col0 - + col1 - col2 AS col2 FROM tab2 AS cor0
----
51
-3470314
67
-14268125
77
-8396917

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col1 BETWEEN col0 AND + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col0 + - 80 AS col2 FROM tab0
----
-65
17
7

query I rowsort
SELECT ALL 90 + - 48 FROM tab0
----
42
42
42

query I rowsort
SELECT DISTINCT - col2 + 93 AS col1 FROM tab2
----
35
53
70

onlyif mysql # aggregate syntax: 
query I rowsort label-6312
SELECT ALL COUNT( * ) - + 69 FROM tab0
----
-66

skipif mysql # not compatible
query I rowsort label-6312
SELECT ALL COUNT ( * ) - + 69 FROM tab0
----
-66

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 49 < col2 - - 5
----
15
81
47
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6316
SELECT DISTINCT - 21 + - COUNT( * ) + COUNT( DISTINCT + col0 ) AS col1 FROM tab1 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-6316
SELECT DISTINCT - 21 + - COUNT ( * ) + COUNT ( DISTINCT + col0 ) AS col1 FROM tab1 AS cor0
----
-21

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

query I rowsort
SELECT + ( + col2 ) FROM tab0 cor0 WHERE ( ( NOT NULL IS NULL ) )
----

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6321
SELECT - + 22 DIV - + 29 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6321
SELECT - + 22 / - + 29 FROM tab0 AS cor0
----
0
0
0

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

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

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

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

query I rowsort
SELECT ALL - 99 * - col0 FROM tab1
----
5049
8415
9009

query III rowsort
SELECT * FROM tab2 WHERE NOT 6 / + - col0 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6326
SELECT DISTINCT col1, 12 / CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-6326
SELECT DISTINCT col1, 12 / CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
1
NULL
21
NULL
81
NULL

query I rowsort
SELECT + col0 FROM tab1 cor0 WHERE NOT 0 > NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6330
SELECT - CAST( + col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-6330
SELECT - CAST ( + col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-10
-47
-99

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6332
SELECT DISTINCT - ( COUNT ( * ) ) + - + 23 col2 FROM tab2 cor0
----
-26

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6334
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL IN ( - 54, + CAST( 73 AS SIGNED ), - 5 )
----

skipif mysql # not compatible
query III rowsort label-6334
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL IN ( - 54, + CAST ( 73 AS INTEGER ), - 5 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-6335
SELECT col1 DIV + 25 + + ( - col0 ) AS col0, + ( col1 ) + col1 FROM tab2
----
-44
102
-61
154
-73
134

skipif mysql # not compatible
query II rowsort label-6335
SELECT col1 / + 25 + + ( - col0 ) AS col0, + ( col1 ) + col1 FROM tab2
----
-44
102
-61
154
-73
134

query I rowsort
SELECT DISTINCT + 88 + 44 FROM tab1
----
132

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

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

query I rowsort
SELECT ( + - 30 ) * + 14 + + col1 FROM tab0
----
-339
-399
-419

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 80 + + col1 * 30 col1 FROM tab2
----
1610
2090
2390

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6340
SELECT ALL CAST( NULL AS SIGNED ), 74 - + - col2 + CAST( NULL AS SIGNED ) * - col0 / - 46 AS col2 FROM tab2
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6340
SELECT ALL CAST ( NULL AS INTEGER ), 74 - + - col2 + CAST ( NULL AS INTEGER ) * - col0 / - 46 AS col2 FROM tab2
----
NULL
NULL
NULL
NULL
NULL
NULL

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

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

skipif mysql # not compatible
query I rowsort label-6342
SELECT - 46 + + + COUNT ( * ) FROM tab0
----
-43

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( 54 = - col2 / + col0 * + 94 )
----

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

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

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

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

query I rowsort
SELECT - - col2 + - 27 FROM tab2 cor0
----
-4
13
31

query I rowsort
SELECT - ( + - ( + col2 ) ) + - + 42 AS col2 FROM tab2 AS cor0
----
-19
-2
16

query II rowsort
SELECT ALL col0 * + 93 AS col0, col1 AS col0 FROM tab2 AS cor0
----
4278
51
5952
77
6975
67

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6352
SELECT - col1 DIV + 40 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6352
SELECT - col1 / + 40 FROM tab2
----
-1
-1
-1

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6354
SELECT * FROM tab2 WHERE NOT NULL >= + 1 - CAST( NULL AS SIGNED ) + + + 75 * - col0
----

skipif mysql # not compatible
query III rowsort label-6354
SELECT * FROM tab2 WHERE NOT NULL >= + 1 - CAST ( NULL AS INTEGER ) + + + 75 * - col0
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6357
SELECT DISTINCT - 77 * - SUM( DISTINCT 38 ) FROM tab1
----
2926

skipif mysql # not compatible
query I rowsort label-6357
SELECT DISTINCT - 77 * - SUM ( DISTINCT 38 ) FROM tab1
----
2926

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + col1 + + 58 col2 FROM tab2
----
2404
4986
5083

onlyif mysql # aggregate syntax: 
query I rowsort label-6362
SELECT DISTINCT - SUM( DISTINCT + col1 ) FROM tab2 WHERE NULL NOT IN ( col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6362
SELECT DISTINCT - SUM ( DISTINCT + col1 ) FROM tab2 WHERE NULL NOT IN ( col1 )
----
NULL

query I rowsort
SELECT DISTINCT ( - col1 ) - col0 * - 50 FROM tab1
----
2536
4245
4503

query I rowsort
SELECT 64 * col2 FROM tab0
----
3008
6336
640

query I rowsort
SELECT 70 + 2 AS col2 FROM tab2
----
72
72
72

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

query I rowsort
SELECT col2 * 78 AS col0 FROM tab0
----
3666
7722
780

onlyif mysql # DIV for integer division: 
query I rowsort label-6368
SELECT col2 DIV col2 + 48 FROM tab2
----
49
49
49

skipif mysql # not compatible
query I rowsort label-6368
SELECT col2 / col2 + 48 FROM tab2
----
49
49
49

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

skipif mysql # not compatible
query I rowsort label-6369
SELECT DISTINCT - COUNT ( ALL + col1 ) + COUNT ( * ) AS col1 FROM tab1
----
0

query I rowsort
SELECT DISTINCT 68 * + col2 AS col1 FROM tab1
----
4012
4624
6528

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

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

skipif mysql # not compatible
query I rowsort label-6372
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab0 WHERE NOT ( col2 ) IS NOT NULL
----
0

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT BETWEEN ( + col0 * - ( + col1 ) ) AND col0 * 56
----

query I rowsort
SELECT + 47 + - ( + col2 ) FROM tab2
----
-11
24
7

query I rowsort
SELECT - 37 + col0 FROM tab1
----
14
48
54

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL IN ( + col0 - 77 )
----

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

query I rowsort
SELECT 86 * col0 FROM tab2 WHERE NULL IS NULL
----
3956
5504
6450

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6382
SELECT ALL + MIN( ( 57 ) ) AS col0 FROM tab2
----
57

skipif mysql # not compatible
query I rowsort label-6382
SELECT ALL + MIN ( ( 57 ) ) AS col0 FROM tab2
----
57

query I rowsort
SELECT - 22 * col1 + - 44 FROM tab1
----
-1078
-154
-352

onlyif mysql # DIV for integer division: 
query I rowsort label-6384
SELECT 53 DIV 73 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6384
SELECT 53 / 73 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL - 38 + col2 AS col0 FROM tab2 cor0
----
-15
2
20

query I rowsort
SELECT DISTINCT 9 + - col2 AS col0 FROM tab1 AS cor0
----
-50
-59
-87

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

query III rowsort
SELECT * FROM tab1 WHERE - col2 + col2 BETWEEN + col2 + - 23 AND col0
----

query I rowsort
SELECT DISTINCT - ( - col1 ) AS col0 FROM tab0 WHERE NULL IS NULL
----
1
21
81

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

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

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

skipif mysql # not compatible
query I rowsort label-6392
SELECT - COUNT ( DISTINCT + - 75 ) AS col2 FROM tab1
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 42 * + - 39 col0 FROM tab0
----
-1638
-1638
-1638

onlyif mysql # DIV for integer division: 
query I rowsort label-6394
SELECT - col0 DIV - 49 FROM tab0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-6394
SELECT - col0 / - 49 FROM tab0
----
0
1
1

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6396
SELECT + 68 DIV - col1 AS col1 FROM tab0
----
-3
-68
0

skipif mysql # not compatible
query I rowsort label-6396
SELECT + 68 / - col1 AS col1 FROM tab0
----
-3
-68
0

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

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

query I rowsort
SELECT DISTINCT col0 * - 44 * + col1 FROM tab1
----
-18700
-188188
-31416

query I rowsort
SELECT 91 * + 13 * col1 FROM tab1
----
16562
55601
5915

query I rowsort
SELECT ALL col1 * + - 58 AS col2 FROM tab0
----
-1218
-4698
-58

query I rowsort
SELECT ALL 87 * + + col0 FROM tab1
----
4437
7395
7917

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL = 32 / col0 + 17
----

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

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

query I rowsort
SELECT DISTINCT - col1 FROM tab1 AS cor0 WHERE NULL > col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6405
SELECT MAX( DISTINCT + col0 ) * + 61 AS col1 FROM tab0 AS cor0
----
5917

skipif mysql # not compatible
query I rowsort label-6405
SELECT MAX ( DISTINCT + col0 ) * + 61 AS col1 FROM tab0 AS cor0
----
5917

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6408
SELECT ALL COUNT( * ) DIV 64 AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6408
SELECT ALL COUNT ( * ) / 64 AS col1 FROM tab1 AS cor0
----
0

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

query I rowsort
SELECT - - col0 * 74 * - col2 + ( col0 ) FROM tab1 AS cor0
----
-362253
-371025
-457821

query I rowsort
SELECT + + col2 + - - col0 + col1 AS col2 FROM tab1 AS cor0
----
149
161
206

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6415
SELECT DISTINCT - + ( + 39 ) + - SUM( DISTINCT 74 ) col0 FROM tab1 AS cor0
----
-113

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6415
SELECT DISTINCT - + ( + 39 ) + - SUM ( DISTINCT 74 ) col0 FROM tab1 AS cor0
----
-113

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6417
SELECT COUNT( * ) + 81 DIV 13 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-6417
SELECT COUNT ( * ) + 81 / 13 FROM tab1
----
9

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

skipif mysql # not compatible
query I rowsort label-6418
SELECT DISTINCT COUNT ( * ) / - - 4 + COUNT ( * ) AS col1 FROM tab2
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) IN ( - 17 )
----

query I rowsort
SELECT ALL col1 FROM tab1 WHERE + 56 / 6 * 63 + 60 IS NOT NULL
----
14
47
5

query I rowsort
SELECT DISTINCT - - col2 - col1 AS col1 FROM tab0 WHERE - - col2 IS NOT NULL
----
-11
-34
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 92 - - - col1 AS col2, col1 col2 FROM tab2 AS cor0
----
15
77
25
67
41
51

query I rowsort
SELECT col0 - 21 FROM tab1 AS cor0
----
30
64
70

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

query II rowsort
SELECT 28 AS col1, - 95 AS col2 FROM tab2
----
28
-95
28
-95
28
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-6426
SELECT ALL SUM( ALL - + 5 ) FROM tab2
----
-15

skipif mysql # not compatible
query I rowsort label-6426
SELECT ALL SUM ( ALL - + 5 ) FROM tab2
----
-15

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6427
SELECT CAST( NULL AS DECIMAL ) AS col1 FROM tab2 WHERE NOT col2 + - + col0 IN ( - col1 )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6427
SELECT CAST ( NULL AS REAL ) AS col1 FROM tab2 WHERE NOT col2 + - + col0 IN ( - col1 )
----
NULL
NULL
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6429
SELECT DISTINCT 0 * col2 col1 FROM tab2 AS cor0 WHERE NOT + col1 * 79 > - + col1 + col1 - - CAST( NULL AS SIGNED ) * + col1
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6429
SELECT DISTINCT 0 * col2 col1 FROM tab2 AS cor0 WHERE NOT + col1 * 79 > - + col1 + col1 - - CAST ( NULL AS INTEGER ) * + col1
----

query I rowsort
SELECT - + 74 * - col2 * + col0 * - col0 FROM tab1 AS cor0
----
-18477504
-31544350
-41669992

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6431
SELECT ALL - CAST( NULL AS SIGNED ), 42 * COUNT( * ) AS col2 FROM tab2 AS cor0
----
NULL
126

skipif mysql # not compatible
query II rowsort label-6431
SELECT ALL - CAST ( NULL AS INTEGER ), 42 * COUNT ( * ) AS col2 FROM tab2 AS cor0
----
NULL
126

query II rowsort
SELECT ALL - col0, col0 + + - col1 - + col1 AS col0 FROM tab1 AS cor0
----
-51
23
-85
75
-91
-3

query I rowsort
SELECT + + 89 + 21 AS col1 FROM tab2 AS cor0 WHERE NOT 62 + + 43 * - - col0 IS NULL
----
110
110
110

query I rowsort
SELECT DISTINCT - 55 * - - col0 FROM tab1 AS cor0
----
-2805
-4675
-5005

onlyif mysql # aggregate syntax: 
query I rowsort label-6435
SELECT + 14 * - - SUM( col0 ) AS col1 FROM tab2 cor0
----
2590

skipif mysql # not compatible
query I rowsort label-6435
SELECT + 14 * - - SUM ( col0 ) AS col1 FROM tab2 cor0
----
2590

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 55 - + 30 * + 48 NOT IN ( + 48 + 21 )
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6438
SELECT * FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN CAST( NULL AS SIGNED ) AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-6438
SELECT * FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN CAST ( NULL AS INTEGER ) AND ( NULL )
----

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

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

query I rowsort
SELECT DISTINCT col1 * - col1 FROM tab1 WHERE NOT ( - 74 * - col2 * - 87 IS NULL )
----
-196
-2209
-25

query I rowsort
SELECT - 17 FROM tab2 WHERE NOT ( NOT col0 <> - col1 )
----
-17
-17
-17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 AS col2, col0 * - 43 col2 FROM tab2
----
23
-1978
40
-2752
58
-3225

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

query I rowsort
SELECT ALL - ( - + col1 ) AS col2 FROM tab0 AS cor0
----
1
21
81

query I rowsort
SELECT DISTINCT + - col2 + - - col0 * col1 FROM tab1 AS cor0
----
366
4209
618

query I rowsort
SELECT + 77 + + - col1 FROM tab1
----
30
63
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 79 col1, + 63 FROM tab0 WHERE - ( - 91 ) IS NOT NULL
----
-79
63
-79
63
-79
63

onlyif mysql # DIV for integer division: 
query I rowsort label-6448
SELECT + + ( + col0 ) DIV - - col1 FROM tab0 AS cor0
----
0
4
97

skipif mysql # not compatible
query I rowsort label-6448
SELECT + + ( + col0 ) / - - col1 FROM tab0 AS cor0
----
0
4
97

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

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

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( - + col2 + + col0 NOT BETWEEN 69 AND ( col0 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6451
SELECT ALL - SUM( + col1 ) AS col1 FROM tab0 AS cor0 WHERE NULL BETWEEN + col2 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6451
SELECT ALL - SUM ( + col1 ) AS col1 FROM tab0 AS cor0 WHERE NULL BETWEEN + col2 AND NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - col1 * col2 * - col0 col1 FROM tab1 AS cor0
----
-1479425
-19776848
-6580224

query I rowsort
SELECT DISTINCT - 26 AS col2 FROM tab0 cor0 WHERE NOT + 23 + + col2 * - col0 * + col0 - + col1 < NULL
----

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

query I rowsort
SELECT - col1 + 13 * - col1 AS col2 FROM tab1 AS cor0 WHERE ( ( - col0 * 91 + col0 ) IS NOT NULL )
----
-196
-658
-70

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

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

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

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

query I rowsort
SELECT ALL 85 AS col2 FROM tab0 WHERE col0 NOT IN ( + col0 / 12 * - - 21 )
----
85
85
85

query I rowsort
SELECT DISTINCT col1 + ( - + 0 ) + + col2 + + col2 AS col0 FROM tab2 WHERE - - col1 IS NOT NULL
----
157
183
97

query I rowsort
SELECT DISTINCT - col2 * + 94 + - col0 FROM tab0
----
-1027
-4433
-9403

query I rowsort
SELECT + col1 * + col1 - + col0 * col0 FROM tab0
----
-7128
-9408
6336

query I rowsort
SELECT col1 + + 83 FROM tab1
----
130
88
97

query I rowsort
SELECT - 83 * col1 + - - col1 FROM tab1 AS cor0
----
-1148
-3854
-410

query II rowsort
SELECT + col1 * - col1 + - + ( col2 ), col2 AS col0 FROM tab0 AS cor0
----
-100
99
-451
10
-6608
47

query I rowsort
SELECT ALL + 82 + - - col0 AS col2 FROM tab1 AS cor0
----
133
167
173

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6467
SELECT DISTINCT + MIN( - col2 ) FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-6467
SELECT DISTINCT + MIN ( - col2 ) FROM tab0
----
-99

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

query I rowsort
SELECT - - 77 * + 34 + + - col2 * col1 AS col0 FROM tab0 AS cor0
----
-1189
2408
2519

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

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

query I rowsort
SELECT DISTINCT col1 * + - col0 * - - col1 AS col0 FROM tab0 cor0
----
-38367
-97
-98415

query I rowsort
SELECT + col0 * + col1 FROM tab2 AS cor0 WHERE NOT NULL <> ( NULL )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6473
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + CAST( NULL AS DECIMAL ) IS NOT NULL OR col2 * + 62 >= NULL
----

skipif mysql # not compatible
query III rowsort label-6473
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + CAST ( NULL AS REAL ) IS NOT NULL OR col2 * + 62 >= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6474
SELECT DISTINCT + - COUNT( + 28 ), 93 AS col2 FROM tab1 AS cor0
----
-3
93

skipif mysql # not compatible
query II rowsort label-6474
SELECT DISTINCT + - COUNT ( + 28 ), 93 AS col2 FROM tab1 AS cor0
----
-3
93

query I rowsort
SELECT - - col2 * ( + col1 ) + - col2 * + 2 * + 62 AS col0 FROM tab1 WHERE NOT - 14 * - col0 <= NULL
----

query I rowsort
SELECT - col0 * - + col2 * + - col2 AS col2 FROM tab0
----
-33135
-8700
-950697

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6477
SELECT MIN( - 84 ) DIV - + 86 col2 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6477
SELECT MIN ( - 84 ) / - + 86 col2 FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6478
SELECT + CAST( + col0 AS SIGNED ) * + + col2 FROM tab1
----
4896
5015
6188

skipif mysql # not compatible
query I rowsort label-6478
SELECT + CAST ( + col0 AS INTEGER ) * + + col2 FROM tab1
----
4896
5015
6188

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 61 <= ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6480
SELECT DISTINCT ( COUNT( * ) ) DIV - CAST( + 60 AS SIGNED ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6480
SELECT DISTINCT ( COUNT ( * ) ) / - CAST ( + 60 AS INTEGER ) AS col0 FROM tab2
----
0

query I rowsort
SELECT - col2 * - - 45 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-2655
-3060
-4320

query I rowsort
SELECT - col2 AS col1 FROM tab0 WHERE NOT col1 * + - 87 - + - col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6483
SELECT - col0 + - 58 + - 46 - 72 DIV + col2 FROM tab2
----
-153
-169
-180

skipif mysql # not compatible
query I rowsort label-6483
SELECT - col0 + - 58 + - 46 - 72 / + col2 FROM tab2
----
-153
-169
-180

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6487
SELECT CAST ( 38 AS INTEGER ) FROM tab1 AS cor0
----
38
38
38

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

skipif mysql # not compatible
query II rowsort label-6488
SELECT DISTINCT - 74 AS col0, COUNT ( * ) FROM tab0 cor0
----
-74
3

query I rowsort
SELECT - + 90 + + ( 25 ) FROM tab1 AS cor0
----
-65
-65
-65

query I rowsort
SELECT ALL col0 + - col1 + + col0 FROM tab0
----
-51
153
193

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

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

query I rowsort
SELECT ALL 37 * - 7 + + 8 FROM tab1
----
-251
-251
-251

query I rowsort
SELECT DISTINCT col2 - - col2 + + col0 - + 55 FROM tab0
----
240
52
54

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6495
SELECT ALL * FROM tab1 WHERE NOT ( - col0 / - + CAST( - ( - + col2 ) AS DECIMAL ) * - col2 ) > col2 * - 63
----

skipif mysql # not compatible
query III rowsort label-6495
SELECT ALL * FROM tab1 WHERE NOT ( - col0 / - + CAST ( - ( - + col2 ) AS REAL ) * - col2 ) > col2 * - 63
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6496
SELECT DISTINCT + COUNT( * ) * - + 65 FROM tab0 AS cor0 WHERE - col0 BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-6496
SELECT DISTINCT + COUNT ( * ) * - + 65 FROM tab0 AS cor0 WHERE - col0 BETWEEN NULL AND NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6497
SELECT ALL + CAST( ( - + col0 ) AS SIGNED ) * - + col2 * + 13 AS col1, + col1 AS col1 FROM tab2 AS cor0
----
13754
51
33280
77
56550
67

skipif mysql # not compatible
query II rowsort label-6497
SELECT ALL + CAST ( ( - + col0 ) AS INTEGER ) * - + col2 * + 13 AS col1, + col1 AS col1 FROM tab2 AS cor0
----
13754
51
33280
77
56550
67

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - 83 ) * - + 75 - col0 + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6500
SELECT - - 91 * + MIN( ALL - col1 ) AS col1 FROM tab1 cor0
----
-4277

skipif mysql # not compatible
query I rowsort label-6500
SELECT - - 91 * + MIN ( ALL - col1 ) AS col1 FROM tab1 cor0
----
-4277

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

query II rowsort
SELECT ALL - col0, 33 AS col2 FROM tab2
----
-46
33
-64
33
-75
33

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

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

query I rowsort
SELECT DISTINCT + 40 * - col1 * + col0 AS col0 FROM tab1 cor0
----
-17000
-171080
-28560

onlyif mysql # DIV for integer division: 
query I rowsort label-6505
SELECT DISTINCT - + col0 DIV - - col2 FROM tab0 AS cor0
----
-8
0

skipif mysql # not compatible
query I rowsort label-6505
SELECT DISTINCT - + col0 / - - col2 FROM tab0 AS cor0
----
-8
0

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

query I rowsort
SELECT + - col0 * - 70 FROM tab1 AS cor0
----
3570
5950
6370

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

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT + - 34 = + 93 * - 44 + + + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col2 * + + 56 FROM tab2
----
1288
2240
3248

query II rowsort
SELECT ALL 4 * ( - ( - col2 ) ) * - col1 AS col0, col0 * - col1 + + col0 AS col1 FROM tab1
----
-1180
-340
-12784
-4186
-5376
-663

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6514
SELECT DISTINCT - CAST( + + col0 AS SIGNED ) AS col1 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-6514
SELECT DISTINCT - CAST ( + + col0 AS INTEGER ) AS col1 FROM tab2
----
-46
-64
-75

query I rowsort
SELECT + col2 * + 69 FROM tab2 cor0
----
1587
2760
4002

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

query I rowsort
SELECT - ( 24 ) AS col1 FROM tab2 AS cor0
----
-24
-24
-24

query I rowsort
SELECT ALL + - 71 * + - 27 AS col1 FROM tab2 AS cor0
----
1917
1917
1917

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 23 < + col1 * col2 / col2 * + 8
----
15
81
47
87
21
10

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6522
SELECT - + COUNT( * ) + - - MAX( DISTINCT + - col0 ) FROM tab2 cor0
----
-49

skipif mysql # not compatible
query I rowsort label-6522
SELECT - + COUNT ( * ) + - - MAX ( DISTINCT + - col0 ) FROM tab2 cor0
----
-49

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6524
SELECT DISTINCT COUNT( * ), 95 AS col0 FROM tab2
----
3
95

skipif mysql # not compatible
query II rowsort label-6524
SELECT DISTINCT COUNT ( * ), 95 AS col0 FROM tab2
----
3
95

query I rowsort
SELECT 94 * - + col2 FROM tab2 AS cor0
----
-2162
-3760
-5452

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6527
SELECT 29 DIV + MAX( + - ( + col0 ) ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6527
SELECT 29 / + MAX ( + - ( + col0 ) ) FROM tab2 AS cor0
----
0

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

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

query I rowsort
SELECT ALL + 61 - 7 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
54
54
54

query I rowsort
SELECT + col0 - - + ( - + col2 ) FROM tab1 AS cor0
----
-45
23
26

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

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

query I rowsort
SELECT ALL - col0 + - col0 + col0 FROM tab0
----
-15
-87
-97

query I rowsort
SELECT col2 * + + 16 * - - col0 - + col2 FROM tab1
----
78240
80181
98940

query I rowsort
SELECT ALL 77 - + + col1 FROM tab1
----
30
63
72

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

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

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

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

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

query II rowsort
SELECT ALL - + col1 * col0 AS col2, + ( - col2 ) + + col0 FROM tab0 cor0
----
-1215
-32
-1827
77
-97
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6540
SELECT COUNT( * ) * - + COUNT( * ) AS col1, - 61 * - MIN( ALL + CAST( col0 AS SIGNED ) ) AS col2 FROM tab0
----
-9
915

skipif mysql # not compatible
query II rowsort label-6540
SELECT COUNT ( * ) * - + COUNT ( * ) AS col1, - 61 * - MIN ( ALL + CAST ( col0 AS INTEGER ) ) AS col2 FROM tab0
----
-9
915

query I rowsort
SELECT ( - ( + + col0 ) ) AS col2 FROM tab0
----
-15
-87
-97

query I rowsort
SELECT col0 * + - 89 * - 30 FROM tab0
----
232290
258990
40050

query I rowsort
SELECT + 49 * - col0 FROM tab1 AS cor0 WHERE NOT 31 < col1
----
-2499
-4165

onlyif mysql # aggregate syntax: 
query I rowsort label-6544
SELECT DISTINCT COUNT( * ) * + MAX( DISTINCT + - col0 ) FROM tab0 cor0
----
-45

skipif mysql # not compatible
query I rowsort label-6544
SELECT DISTINCT COUNT ( * ) * + MAX ( DISTINCT + - col0 ) FROM tab0 cor0
----
-45

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6546
SELECT col2 FROM tab0 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) + + col0 + col2 IS NOT NULL
----
10
47
99

skipif mysql # not compatible
query I rowsort label-6546
SELECT col2 FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) + + col0 + col2 IS NOT NULL
----
10
47
99

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

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

query I rowsort
SELECT ALL 51 + - - col2 FROM tab0 AS cor0
----
150
61
98

query I rowsort
SELECT - + 73 FROM tab0 cor0
----
-73
-73
-73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + 47 col1 FROM tab1
----
52
61
94

query I rowsort
SELECT ALL + col1 * 85 AS col1 FROM tab0
----
1785
6885
85

onlyif mysql # aggregate syntax: 
query I rowsort label-6552
SELECT - 14 + + COUNT( * ) AS col2 FROM tab0
----
-11

skipif mysql # not compatible
query I rowsort label-6552
SELECT - 14 + + COUNT ( * ) AS col2 FROM tab0
----
-11

query I rowsort
SELECT DISTINCT col2 + - 2 FROM tab1
----
57
66
94

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6556
SELECT DISTINCT - 63 - - MIN( - + col2 ) FROM tab0
----
-162

skipif mysql # not compatible
query I rowsort label-6556
SELECT DISTINCT - 63 - - MIN ( - + col2 ) FROM tab0
----
-162

onlyif mysql # aggregate syntax: 
query I rowsort label-6557
SELECT - MAX( - 74 ) AS col1 FROM tab0
----
74

skipif mysql # not compatible
query I rowsort label-6557
SELECT - MAX ( - 74 ) AS col1 FROM tab0
----
74

query II rowsort
SELECT DISTINCT col0 - + 26 + + col0 - 74 AS col0, col0 + ( + + 21 ) FROM tab2
----
-8
67
28
85
50
96

query I rowsort
SELECT ALL - 34 - - ( - 96 ) * - - 61 AS col1 FROM tab1
----
-5890
-5890
-5890

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN + 5 AND + 38
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6561
SELECT + ( - COUNT( * ) ) FROM tab0 AS cor0 WHERE - 13 + + - 97 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6561
SELECT + ( - COUNT ( * ) ) FROM tab0 AS cor0 WHERE - 13 + + - 97 IS NULL
----
0

query I rowsort
SELECT + col0 * - - 67 + + col1 AS col0 FROM tab2 AS cor0
----
3133
4365
5092

onlyif mysql # DIV for integer division: 
query I rowsort label-6563
SELECT ALL 47 DIV + col1 AS col0 FROM tab0 AS cor0
----
0
2
47

skipif mysql # not compatible
query I rowsort label-6563
SELECT ALL 47 / + col1 AS col0 FROM tab0 AS cor0
----
0
2
47

onlyif mysql # aggregate syntax: 
query I rowsort label-6564
SELECT + MAX( ( 57 ) ) * - 31 col1 FROM tab2 AS cor0
----
-1767

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6564
SELECT + MAX ( ( 57 ) ) * - 31 col1 FROM tab2 AS cor0
----
-1767

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6566
SELECT ALL + SUM( - ( ( - + 32 ) ) ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-6566
SELECT ALL + SUM ( - ( ( - + 32 ) ) ) FROM tab1
----
96

query I rowsort
SELECT - 44 FROM tab0 WHERE NOT - ( + col1 ) + - ( - col1 ) + + 38 = 77
----
-44
-44
-44

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

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

query I rowsort
SELECT DISTINCT - ( + 88 ) FROM tab0
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-6571
SELECT - MIN( 84 ) * - + COUNT( * ) + + 24 AS col0 FROM tab2 AS cor0
----
276

skipif mysql # not compatible
query I rowsort label-6571
SELECT - MIN ( 84 ) * - + COUNT ( * ) + + 24 AS col0 FROM tab2 AS cor0
----
276

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 20 col2, col0 AS col0 FROM tab0 AS cor0
----
20
15
20
87
20
97

query I rowsort
SELECT - 53 * + + ( + - col0 ) FROM tab0
----
4611
5141
795

query I rowsort
SELECT 54 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09

query I rowsort
SELECT + 36 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

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

query I rowsort
SELECT DISTINCT 54 * + - col2 AS col1 FROM tab1 AS cor0
----
-3186
-3672
-5184

onlyif mysql # aggregate syntax: 
query I rowsort label-6578
SELECT + 60 * 45 + COUNT( - + 84 ) FROM tab2 cor0
----
2703

skipif mysql # not compatible
query I rowsort label-6578
SELECT + 60 * 45 + COUNT ( - + 84 ) FROM tab2 cor0
----
2703

query I rowsort
SELECT - col2 + col1 + - col1 + 83 - - col2 + col1 - + - col2 * + 56 AS col1 FROM tab2 AS cor0
----
1422
2400
3398

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

query I rowsort
SELECT ALL col0 * - col2 + + col1 AS col2 FROM tab2 AS cor0
----
-1007
-2483
-4283

onlyif mysql # aggregate syntax: 
query I rowsort label-6582
SELECT DISTINCT 11 + + SUM( DISTINCT - - col0 ) FROM tab1
----
238

skipif mysql # not compatible
query I rowsort label-6582
SELECT DISTINCT 11 + + SUM ( DISTINCT - - col0 ) FROM tab1
----
238

onlyif mysql # aggregate syntax: 
query I rowsort label-6583
SELECT ALL + COUNT( * ) * 19 FROM tab2
----
57

skipif mysql # not compatible
query I rowsort label-6583
SELECT ALL + COUNT ( * ) * 19 FROM tab2
----
57

query III rowsort
SELECT * FROM tab2 WHERE - col2 - col1 BETWEEN + 73 AND 25
----

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6589
SELECT COUNT( col1 ) FROM tab0 WHERE NULL IN ( - + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-6589
SELECT COUNT ( col1 ) FROM tab0 WHERE NULL IN ( - + col0 )
----
0

query I rowsort
SELECT 11 * + 65 * - - col1 FROM tab0
----
15015
57915
715

onlyif mysql # aggregate syntax: 
query I rowsort label-6591
SELECT DISTINCT + SUM( + col2 ) * - 10 FROM tab0
----
-1560

skipif mysql # not compatible
query I rowsort label-6591
SELECT DISTINCT + SUM ( + col2 ) * - 10 FROM tab0
----
-1560

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

query I rowsort
SELECT ALL col2 - + col1 * - col1 AS col0 FROM tab0
----
100
451
6608

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6595
SELECT DISTINCT - 21, - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-21
-3

skipif mysql # not compatible
query II rowsort label-6595
SELECT DISTINCT - 21, - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-21
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6596
SELECT ALL + CAST( col2 AS SIGNED ) AS col1 FROM tab2 cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-6596
SELECT ALL + CAST ( col2 AS INTEGER ) AS col1 FROM tab2 cor0
----
23
40
58

query I rowsort
SELECT DISTINCT - 48 * + 30 AS col1 FROM tab1 AS cor0
----
-1440

onlyif mysql # aggregate syntax: 
query II rowsort label-6598
SELECT DISTINCT 46, SUM( + 78 ) AS col2 FROM tab2 AS cor0
----
46
234

skipif mysql # not compatible
query II rowsort label-6598
SELECT DISTINCT 46, SUM ( + 78 ) AS col2 FROM tab2 AS cor0
----
46
234

query I rowsort
SELECT + col1 * 43 * + 24 FROM tab0 AS cor0
----
1032
21672
83592

onlyif mysql # aggregate syntax: 
query I rowsort label-6600
SELECT ALL - COUNT( + col0 ) * + 59 * + - COUNT( * ) AS col2 FROM tab1 cor0
----
531

skipif mysql # not compatible
query I rowsort label-6600
SELECT ALL - COUNT ( + col0 ) * + 59 * + - COUNT ( * ) AS col2 FROM tab1 cor0
----
531

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

query I rowsort
SELECT ALL col0 * + 48 AS col0 FROM tab1
----
2448
4080
4368

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

skipif mysql # not compatible
query I rowsort label-6603
SELECT ALL MAX ( DISTINCT - + 30 ) AS col0 FROM tab2
----
-30

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 + + 98 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col2 FROM tab2 AS cor0 WHERE col2 * - col1 > + 99 * + col2 + + 51
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6608
SELECT DISTINCT + MAX( ( - 80 ) ) FROM tab1 AS cor0 WHERE col1 + - 18 - col1 IS NOT NULL
----
-80

skipif mysql # not compatible
query I rowsort label-6608
SELECT DISTINCT + MAX ( ( - 80 ) ) FROM tab1 AS cor0 WHERE col1 + - 18 - col1 IS NOT NULL
----
-80

query I rowsort
SELECT DISTINCT col1 + + 19 + - col2 FROM tab2 AS cor0
----
28
47
56

query I rowsort
SELECT col1 + - + 24 AS col1 FROM tab1 AS cor0
----
-10
-19
23

query II rowsort
SELECT col0 + + + col0, - 58 + + + col0 + - - col1 AS col1 FROM tab2
----
128
83
150
84
92
39

query I rowsort
SELECT + 42 + - - col1 AS col0 FROM tab0
----
123
43
63

query I rowsort
SELECT DISTINCT col0 - - 61 * 6 * + col2 + - + col1 AS col0 FROM tab0 WHERE NOT - col1 IS NULL
----
17136
36330
3726

query I rowsort
SELECT - col1 + col2 - + 60 FROM tab1
----
-39
-6
22

onlyif mysql # aggregate syntax: 
query I rowsort label-6615
SELECT COUNT( * ) + - COUNT( * ) * + 31 AS col1 FROM tab0
----
-90

skipif mysql # not compatible
query I rowsort label-6615
SELECT COUNT ( * ) + - COUNT ( * ) * + 31 AS col1 FROM tab0
----
-90

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

query I rowsort
SELECT + col0 AS col0 FROM tab0 WHERE + - col1 * + 35 IS NULL
----

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

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

query I rowsort
SELECT ALL 4 * + 9 * + col1 * - col0 + + + col2 * + col0 + col2 AS col1 FROM tab0 AS cor0
----
-42988
-64892
6210

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6621
SELECT CAST( - 29 AS SIGNED ) - + - 72 + MIN( ALL col0 ) * ( - ( + 91 ) ) AS col2 FROM tab2
----
-4143

skipif mysql # not compatible
query I rowsort label-6621
SELECT CAST ( - 29 AS INTEGER ) - + - 72 + MIN ( ALL col0 ) * ( - ( + 91 ) ) AS col2 FROM tab2
----
-4143

query I rowsort
SELECT ALL - col2 + - + 16 AS col1 FROM tab0
----
-115
-26
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-6623
SELECT DISTINCT - COUNT( * ) + + SUM( + + col1 ) AS col2 FROM tab2
----
192

skipif mysql # not compatible
query I rowsort label-6623
SELECT DISTINCT - COUNT ( * ) + + SUM ( + + col1 ) AS col2 FROM tab2
----
192

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

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

query I rowsort
SELECT ALL + col1 + - - col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
10
28
94

onlyif mysql # aggregate syntax: 
query I rowsort label-6626
SELECT ALL + COUNT( DISTINCT + ( + 17 ) ) AS col1 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6626
SELECT ALL + COUNT ( DISTINCT + ( + 17 ) ) AS col1 FROM tab1 AS cor0
----
1

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

query II rowsort
SELECT - col1 + ( - col2 ) + + 20, - col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0, col1 col1 FROM tab2
----
46
51
64
77
75
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6630
SELECT ALL - CAST( col0 AS SIGNED ) AS col2 FROM tab1 WHERE + - col0 * col2 = + 88 + + col0
----

skipif mysql # not compatible
query I rowsort label-6630
SELECT ALL - CAST ( col0 AS INTEGER ) AS col2 FROM tab1 WHERE + - col0 * col2 = + 88 + + col0
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 / + 57 + + 48 + - col1 * + 2 + + - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6632
SELECT ALL + + AVG ( - col2 ) FROM tab0 WHERE + CAST( NULL AS DECIMAL ) + + 49 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6632
SELECT ALL + + AVG ( - col2 ) FROM tab0 WHERE + CAST ( NULL AS REAL ) + + 49 IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 57 * + col0 col0 FROM tab1 AS cor0
----
-2907
-4845
-5187

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 * - + col0 col0 FROM tab1 AS cor0
----
425
4277
714

query II rowsort
SELECT + 24, col0 AS col2 FROM tab1 AS cor0
----
24
51
24
85
24
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6636
SELECT + - CAST( - - col0 AS SIGNED ) + + ( + 76 ) FROM tab0 AS cor0
----
-11
-21
61

skipif mysql # not compatible
query I rowsort label-6636
SELECT + - CAST ( - - col0 AS INTEGER ) + + ( + 76 ) FROM tab0 AS cor0
----
-11
-21
61

onlyif mysql # aggregate syntax: 
query I rowsort label-6637
SELECT - SUM( + 52 ) FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-6637
SELECT - SUM ( + 52 ) FROM tab0 AS cor0
----
-156

query I rowsort
SELECT DISTINCT + col1 + + - col0 FROM tab2 AS cor0
----
-8
13
5

query I rowsort
SELECT + - col1 * 33 AS col1 FROM tab0 AS cor0
----
-2673
-33
-693

onlyif mysql # aggregate syntax: 
query I rowsort label-6640
SELECT ALL - 22 + MIN( + - 73 ) AS col0 FROM tab1 AS cor0 WHERE 94 IS NOT NULL
----
-95

skipif mysql # not compatible
query I rowsort label-6640
SELECT ALL - 22 + MIN ( + - 73 ) AS col0 FROM tab1 AS cor0 WHERE 94 IS NOT NULL
----
-95

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

query I rowsort
SELECT DISTINCT 31 + 5 FROM tab2
----
36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - 73 ) * - 83 * + 90 - - col2 col0 FROM tab0
----
545320
545357
545409

onlyif mysql # aggregate syntax: 
query I rowsort label-6644
SELECT ALL - COUNT( * ) AS col2 FROM tab1, tab0 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-6644
SELECT ALL - COUNT ( * ) AS col2 FROM tab1, tab0 cor0
----
-9

query I rowsort
SELECT ALL - ( + 32 ) FROM tab0
----
-32
-32
-32

query I rowsort
SELECT DISTINCT - ( - ( col2 ) ) FROM tab2
----
23
40
58

onlyif mysql # DIV for integer division: 
query I rowsort label-6647
SELECT + col1 DIV col2 + - 21 FROM tab0 AS cor0
----
-19
-20
-21

skipif mysql # not compatible
query I rowsort label-6647
SELECT + col1 / col2 + - 21 FROM tab0 AS cor0
----
-19
-20
-21

query I rowsort
SELECT + - col2 + - - 73 FROM tab2 AS cor0
----
15
33
50

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6649
SELECT * FROM tab1 cor0 WHERE col1 + col1 * + col0 >= + col0 * CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-6649
SELECT * FROM tab1 cor0 WHERE col1 + col1 * + col0 >= + col0 * CAST ( NULL AS REAL )
----

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

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

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

query II rowsort
SELECT + 49 AS col0, col2 AS col0 FROM tab1
----
49
59
49
68
49
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 18 * 63 * col2 col2 FROM tab2
----
-26082
-45360
-65772

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6655
SELECT ALL + - col0 * 75 + - + 62 DIV - - col1 FROM tab2 AS cor0
----
-3451
-4800
-5625

skipif mysql # not compatible
query I rowsort label-6655
SELECT ALL + - col0 * 75 + - + 62 / - - col1 FROM tab2 AS cor0
----
-3451
-4800
-5625

onlyif mysql # DIV for integer division: 
query I rowsort label-6656
SELECT ALL + col2 DIV - col2 FROM tab0 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6656
SELECT ALL + col2 / - col2 FROM tab0 cor0
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6657
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col2 + - - ( + 83 ) * + + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-6657
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col2 + - - ( + 83 ) * + + CAST ( NULL AS INTEGER ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 53 * + col0 col2 FROM tab0
----
4611
5141
795

query I rowsort
SELECT col0 AS col1 FROM tab1 WHERE NOT 41 IS NULL
----
51
85
91

query I rowsort
SELECT DISTINCT 4 * + 71 AS col1 FROM tab2
----
284

query II rowsort
SELECT DISTINCT ( - 46 ) AS col2, + col2 + + col0 FROM tab0
----
-46
196
-46
62
-46
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6662
SELECT - SUM( ALL + CAST( + 38 AS SIGNED ) ) FROM tab0
----
-114

skipif mysql # not compatible
query I rowsort label-6662
SELECT - SUM ( ALL + CAST ( + 38 AS INTEGER ) ) FROM tab0
----
-114

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 20 NOT IN ( - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col0, + ( - - col0 ) * + 60 FROM tab1 WHERE + col0 IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6670
SELECT + MIN( ALL - 68 ) FROM tab2
----
-68

skipif mysql # not compatible
query I rowsort label-6670
SELECT + MIN ( ALL - 68 ) FROM tab2
----
-68

query I rowsort
SELECT 70 * col1 FROM tab1
----
3290
350
980

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) <= - - 38
----

query I rowsort
SELECT DISTINCT 20 + ( - 22 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6674
SELECT ALL col1 * - col2 * - col2 + col2 + CAST( col1 AS SIGNED ) * + col0 AS col0 FROM tab2 cor0
----
128168
230471
29348

skipif mysql # not compatible
query I rowsort label-6674
SELECT ALL col1 * - col2 * - col2 + col2 + CAST ( col1 AS INTEGER ) * + col0 AS col0 FROM tab2 cor0
----
128168
230471
29348

query I rowsort
SELECT 98 + + + col1 AS col2 FROM tab0
----
119
179
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6676
SELECT DISTINCT 95 + COUNT( * ) FROM tab1
----
98

skipif mysql # not compatible
query I rowsort label-6676
SELECT DISTINCT 95 + COUNT ( * ) FROM tab1
----
98

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6678
SELECT ALL + 29 DIV - 9 - 40 AS col2 FROM tab1
----
-43
-43
-43

skipif mysql # not compatible
query I rowsort label-6678
SELECT ALL + 29 / - 9 - 40 AS col2 FROM tab1
----
-43
-43
-43

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

query I rowsort
SELECT ALL + col2 AS col2 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

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

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

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

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

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab0 cor1 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - 40 = + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col1 * 45 AS col0 FROM tab1
----
2115
225
630

onlyif mysql # aggregate syntax: 
query I rowsort label-6687
SELECT ALL - + COUNT( * ) FROM tab0 AS cor0 WHERE col0 + + 0 > - + 26
----
-3

skipif mysql # not compatible
query I rowsort label-6687
SELECT ALL - + COUNT ( * ) FROM tab0 AS cor0 WHERE col0 + + 0 > - + 26
----
-3

query I rowsort
SELECT ALL - - ( - + col0 ) AS col1 FROM tab2 AS cor0
----
-46
-64
-75

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6691
SELECT COUNT( * ) * + - 34 AS col1 FROM tab0 AS cor0
----
-102

skipif mysql # not compatible
query I rowsort label-6691
SELECT COUNT ( * ) * + - 34 AS col1 FROM tab0 AS cor0
----
-102

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

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 * 6 * - - col2 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6695
SELECT + ( + + COUNT( col2 ) ) * 23 + - COUNT( * ) AS col0 FROM tab2
----
66

skipif mysql # not compatible
query I rowsort label-6695
SELECT + ( + + COUNT ( col2 ) ) * 23 + - COUNT ( * ) AS col0 FROM tab2
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-6696
SELECT DISTINCT 7 * - COUNT( * ) FROM tab1
----
-21

skipif mysql # not compatible
query I rowsort label-6696
SELECT DISTINCT 7 * - COUNT ( * ) FROM tab1
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-6697
SELECT MAX( - - 78 ) AS col1 FROM tab0
----
78

skipif mysql # not compatible
query I rowsort label-6697
SELECT MAX ( - - 78 ) AS col1 FROM tab0
----
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * 55 col1 FROM tab0
----
1155
4455
55

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

skipif mysql # not compatible
query I rowsort label-6699
SELECT - col0 / + 94 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL + - 8 + - + 61 FROM tab0 AS cor0
----
-69
-69
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-6701
SELECT ALL + COUNT( * ) * - 92 AS col1 FROM tab1 AS cor0
----
-276

skipif mysql # not compatible
query I rowsort label-6701
SELECT ALL + COUNT ( * ) * - 92 AS col1 FROM tab1 AS cor0
----
-276

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

query IIIIII rowsort
SELECT * FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 ) WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6704
SELECT DISTINCT COUNT( * ) * 53 FROM tab2
----
159

skipif mysql # not compatible
query I rowsort label-6704
SELECT DISTINCT COUNT ( * ) * 53 FROM tab2
----
159

onlyif mysql # aggregate syntax: 
query I rowsort label-6705
SELECT ALL + ( + COUNT( + + col0 ) ) * - + 27 FROM tab1
----
-81

skipif mysql # not compatible
query I rowsort label-6705
SELECT ALL + ( + COUNT ( + + col0 ) ) * - + 27 FROM tab1
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6706
SELECT col0, CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE 54 IS NULL
----

skipif mysql # not compatible
query II rowsort label-6706
SELECT col0, CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE 54 IS NULL
----

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - + 19 NOT IN ( + col1, col1 / + 69 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6709
SELECT + + SUM( 94 ) FROM tab2 AS cor0
----
282

skipif mysql # not compatible
query I rowsort label-6709
SELECT + + SUM ( 94 ) FROM tab2 AS cor0
----
282

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( 28 * 54 BETWEEN NULL AND - 5 )
----

query I rowsort
SELECT ALL - 39 + + - 14 FROM tab2 AS cor0
----
-53
-53
-53

query II rowsort
SELECT DISTINCT - col0 + - - 48 + - + col0 AS col1, col0 AS col1 FROM tab1
----
-122
85
-134
91
-54
51

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 23 + - 58 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE col0 < + ( + 8 ) + - - col2
----

query I rowsort
SELECT ALL + ( - col1 ) + - col0 FROM tab0
----
-108
-96
-98

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6717
SELECT 71 col1, + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
71
NULL
71
NULL
71
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6717
SELECT 71 col1, + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
71
NULL
71
NULL
71
NULL

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6718
SELECT DISTINCT - + 76 AS col0, - COUNT ( * ) * - + ( + COUNT ( * ) ) col1 FROM tab0 AS cor0
----
-76
9

query II rowsort
SELECT DISTINCT 2 AS col2, - col1 AS col2 FROM tab0 AS cor0
----
2
-1
2
-21
2
-81

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 21 IS NOT NULL
----

query I rowsort
SELECT 65 FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NOT NULL
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

query I rowsort
SELECT col1 + - 82 * + col2 * - col0 * - + col0 AS col2 FROM tab2
----
-13434803
-26752433
-3990725

onlyif mysql # aggregate syntax: 
query II rowsort label-6724
SELECT ALL COUNT( * ) * - + COUNT( 19 ) AS col1, + 47 AS col2 FROM tab0
----
-9
47

skipif mysql # not compatible
query II rowsort label-6724
SELECT ALL COUNT ( * ) * - + COUNT ( 19 ) AS col1, + 47 AS col2 FROM tab0
----
-9
47

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

query I rowsort
SELECT col0 + - col2 * - 10 FROM tab0
----
1087
187
485

query I rowsort
SELECT - col2 + + + col0 * 69 + + col1 AS col2 FROM tab1
----
3437
5811
6258

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

query I rowsort
SELECT - col1 FROM tab0 WHERE NOT ( + ( col2 ) ) * 11 IS NULL AND + ( + col1 ) IS NOT NULL
----
-1
-21
-81

query I rowsort
SELECT - 31 + + 50 AS col2 FROM tab2
----
19
19
19

onlyif mysql # aggregate syntax: 
query I rowsort label-6731
SELECT DISTINCT + COUNT( * ) FROM tab0 WHERE - + col2 + + col1 * + + 77 * 83 - + + 39 + col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-6731
SELECT DISTINCT + COUNT ( * ) FROM tab0 WHERE - + col2 + + col1 * + + 77 * 83 - + + 39 + col2 IS NOT NULL
----
3

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

query I rowsort
SELECT ALL + col0 + - ( + 50 ) * 53 + + + col2 + col0 AS col0 FROM tab0 AS cor0
----
-2357
-2466
-2573

onlyif mysql # aggregate syntax: 
query I rowsort label-6734
SELECT SUM( 41 ) AS col1 FROM tab0 AS cor0
----
123

skipif mysql # not compatible
query I rowsort label-6734
SELECT SUM ( 41 ) AS col1 FROM tab0 AS cor0
----
123

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

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

query I rowsort
SELECT ALL col0 + + ( ( - - ( 39 ) ) ) AS col2 FROM tab1
----
124
130
90

query I rowsort
SELECT DISTINCT 54 AS col2 FROM tab0 cor0
----
54

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6739
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col0, - col1 AS col1 FROM tab0 AS cor0
----
NULL
-1
NULL
-21
NULL
-81

skipif mysql # not compatible
query II rowsort label-6739
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col0, - col1 AS col1 FROM tab0 AS cor0
----
NULL
-1
NULL
-21
NULL
-81

query I rowsort
SELECT DISTINCT - col2 + - col0 * + 69 AS col0 FROM tab2 AS cor0
----
-3197
-4456
-5233

query I rowsort
SELECT DISTINCT col2 + 86 * 11 AS col2 FROM tab1 cor0
----
1005
1014
1042

onlyif mysql # aggregate syntax: 
query I rowsort label-6742
SELECT + + COUNT( 16 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6742
SELECT + + COUNT ( 16 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL col1 + 23 * + - col2 AS col0 FROM tab0
----
-1000
-209
-2276

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

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

query I rowsort
SELECT ALL - 6 * - - col2 * - 86 * + 46 FROM tab2
----
1376688
545928
949440

onlyif mysql # DIV for integer division: 
query I rowsort label-6746
SELECT ALL col1 DIV + 95 * 49 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6746
SELECT ALL col1 / + 95 * 49 FROM tab1
----
0
0
0

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6747
SELECT DISTINCT - COUNT ( * ) * - COUNT ( * ) col0 FROM tab0 WHERE - CAST ( - col2 AS INTEGER ) NOT BETWEEN + col1 + - + col1 + + - 29 AND NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6748
SELECT - - SUM( ( 7 ) ) AS col0, 2 FROM tab2 WHERE NOT NULL IS NULL
----
NULL
2

skipif mysql # not compatible
query II rowsort label-6748
SELECT - - SUM ( ( 7 ) ) AS col0, 2 FROM tab2 WHERE NOT NULL IS NULL
----
NULL
2

query I rowsort
SELECT col2 * + - 10 * - col2 FROM tab2
----
16000
33640
5290

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

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

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6755
SELECT * FROM tab0 cor0 WHERE NOT - col1 - - CAST( NULL AS SIGNED ) >= - + col0 * + ( - col2 ) * col1 + - 90
----

skipif mysql # not compatible
query III rowsort label-6755
SELECT * FROM tab0 cor0 WHERE NOT - col1 - - CAST ( NULL AS INTEGER ) >= - + col0 * + ( - col2 ) * col1 + - 90
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6757
SELECT - + MIN( DISTINCT 79 ) FROM tab0 AS cor0
----
-79

skipif mysql # not compatible
query I rowsort label-6757
SELECT - + MIN ( DISTINCT 79 ) FROM tab0 AS cor0
----
-79

query I rowsort
SELECT DISTINCT - - 28 AS col1 FROM tab0 AS cor0 WHERE ( + + 91 ) <> + + col1
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6759
SELECT ALL - - col1 / CAST( NULL AS SIGNED ) + + + col2 + col0 * 90 * - - CAST( NULL AS SIGNED ) FROM tab2 WHERE NULL NOT IN ( - col0, 19 * - - ( + col2 ), - col2 )
----

skipif mysql # not compatible
query I rowsort label-6759
SELECT ALL - - col1 / CAST ( NULL AS INTEGER ) + + + col2 + col0 * 90 * - - CAST ( NULL AS INTEGER ) FROM tab2 WHERE NULL NOT IN ( - col0, 19 * - - ( + col2 ), - col2 )
----

query I rowsort
SELECT - 80 AS col2 FROM tab1 WHERE - 14 IS NOT NULL
----
-80
-80
-80

query I rowsort
SELECT DISTINCT ( - 28 ) AS col0 FROM tab0
----
-28

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

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

query I rowsort
SELECT col0 FROM tab1 WHERE NULL IN ( 40 + + col2, + col1 * + 82 )
----

query I rowsort
SELECT col2 + - + col2 AS col1 FROM tab2 AS cor0
----
0
0
0

query II rowsort
SELECT - + 15 AS col0, + 27 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
18 values hashing to e663ed1481b432f636500e816debb543

onlyif mysql # DIV for integer division: 
query I rowsort label-6766
SELECT 1 DIV + 7 col0 FROM tab0, tab1 cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6766
SELECT 1 / + 7 col0 FROM tab0, tab1 cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query II rowsort
SELECT 49, + col2 AS col2 FROM tab0
----
49
10
49
47
49
99

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

query I rowsort
SELECT col0 - - col0 + + + 12 AS col0 FROM tab1 cor0
----
114
182
194

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 79 ) - - + 69 col2 FROM tab2 AS cor0
----
148
148
148

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6773
SELECT - 9 - - CAST( NULL AS SIGNED ) * 25 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6773
SELECT - 9 - - CAST ( NULL AS INTEGER ) * 25 FROM tab1 cor0
----
NULL
NULL
NULL

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

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

skipif mysql # not compatible
query I rowsort label-6775
SELECT DISTINCT - + COUNT ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 cor0
----
0

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

query I rowsort
SELECT DISTINCT + 46 * - ( - col1 ) * col0 AS col2 FROM tab1
----
19550
196742
32844

onlyif mysql # aggregate syntax: 
query I rowsort label-6778
SELECT ALL 45 * + COUNT( col1 ) FROM tab1
----
135

skipif mysql # not compatible
query I rowsort label-6778
SELECT ALL 45 * + COUNT ( col1 ) FROM tab1
----
135

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6780
SELECT - COUNT( ALL - - col0 ) AS col0 FROM tab2 WHERE NOT col0 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-6780
SELECT - COUNT ( ALL - - col0 ) AS col0 FROM tab2 WHERE NOT col0 IS NULL
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6781
SELECT + col1 AS col2, + CAST( NULL AS DECIMAL ) AS col1 FROM tab0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-6781
SELECT + col1 AS col2, + CAST ( NULL AS REAL ) AS col1 FROM tab0
----
1
NULL
21
NULL
81
NULL

query I rowsort
SELECT ALL - 31 * + 27 AS col1 FROM tab0
----
-837
-837
-837

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

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

query I rowsort
SELECT ALL - - col2 * col2 + + col2 AS col1 FROM tab1 cor0
----
3540
4692
9312

onlyif mysql # DIV for integer division: 
query I rowsort label-6785
SELECT - col0 DIV 23 AS col2 FROM tab2
----
-2
-2
-3

skipif mysql # not compatible
query I rowsort label-6785
SELECT - col0 / 23 AS col2 FROM tab2
----
-2
-2
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6786
SELECT DISTINCT - + MAX( DISTINCT + 33 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-33

skipif mysql # not compatible
query I rowsort label-6786
SELECT DISTINCT - + MAX ( DISTINCT + 33 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-33

query I rowsort
SELECT 7 * - col2 + - + 2 FROM tab2 AS cor0
----
-163
-282
-408

query II rowsort
SELECT ALL - col1, - col1 * + 26 AS col0 FROM tab2
----
-51
-1326
-67
-1742
-77
-2002

query I rowsort
SELECT DISTINCT + col0 * - col0 + + - col2 + + - col1 - + col2 * + 36 FROM tab2
----
-3018
-5653
-7838

query I rowsort
SELECT DISTINCT - + col2 * 86 FROM tab1 WHERE + - col1 <> NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NULL <= + 60
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6794
SELECT 54 - + - COUNT( * ) FROM tab2 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-6794
SELECT 54 - + - COUNT ( * ) FROM tab2 AS cor0
----
57

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6796
SELECT - 61 DIV 30 AS col2 FROM tab2
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-6796
SELECT - 61 / 30 AS col2 FROM tab2
----
-2
-2
-2

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

query III rowsort
SELECT ALL * FROM tab1 WHERE col2 = col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-6799
SELECT ( - 8 ) DIV - 28 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6799
SELECT ( - 8 ) / - 28 AS col0 FROM tab1
----
0
0
0

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

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

query I rowsort
SELECT - col2 + col1 * - 37 FROM tab1
----
-1807
-244
-614

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 BETWEEN ( NULL ) AND - 77
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6803
SELECT ALL 30 DIV + 85 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6803
SELECT ALL 30 / + 85 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT + 74 + col0 FROM tab0
----
161
171
89

query I rowsort
SELECT - 85 AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col1 AS col2 FROM tab0 WHERE col2 IS NOT NULL
----
1
21
81

onlyif mysql # DIV for integer division: 
query I rowsort label-6807
SELECT col2 DIV col0 + + col0 DIV 96 FROM tab0
----
0
2
3

skipif mysql # not compatible
query I rowsort label-6807
SELECT col2 / col0 + + col0 / 96 FROM tab0
----
0
2
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6808
SELECT ALL - MAX( DISTINCT col1 ) AS col0 FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-6808
SELECT ALL - MAX ( DISTINCT col1 ) AS col0 FROM tab2
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-6809
SELECT MIN( + 8 ) FROM tab0
----
8

skipif mysql # not compatible
query I rowsort label-6809
SELECT MIN ( + 8 ) FROM tab0
----
8

query I rowsort
SELECT - col2 + + 34 AS col1 FROM tab0
----
-13
-65
24

query I rowsort
SELECT ALL - 16 - col2 FROM tab1
----
-112
-75
-84

query III rowsort
SELECT ALL * FROM tab2 WHERE col2 > + 50
----
75
67
58

query I rowsort
SELECT + col1 * col0 FROM tab0 WHERE + col1 * + col2 <> ( - 13 + - 73 )
----
1215
1827
97

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6815
SELECT CAST( 79 AS SIGNED ) FROM tab1
----
79
79
79

skipif mysql # not compatible
query I rowsort label-6815
SELECT CAST ( 79 AS INTEGER ) FROM tab1
----
79
79
79

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6818
SELECT + COUNT( * ) * COUNT( * ) FROM tab1 AS cor0 WHERE NOT + col2 < ( + col0 )
----
1

skipif mysql # not compatible
query I rowsort label-6818
SELECT + COUNT ( * ) * COUNT ( * ) FROM tab1 AS cor0 WHERE NOT + col2 < ( + col0 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6819
SELECT DISTINCT - COUNT( * ) * 24 FROM tab0 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-6819
SELECT DISTINCT - COUNT ( * ) * 24 FROM tab0 AS cor0
----
-72

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab0 cor0 WHERE NOT 80 + - 39 * col1 = NULL
----

query I rowsort
SELECT ALL - 25 + - col0 * col1 FROM tab1 AS cor0
----
-4302
-450
-739

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

query I rowsort
SELECT 99 + col2 AS col1 FROM tab2
----
122
139
157

onlyif mysql # DIV for integer division: 
query I rowsort label-6824
SELECT - col2 + - col2 DIV - col2 FROM tab0 AS cor0
----
-46
-9
-98

skipif mysql # not compatible
query I rowsort label-6824
SELECT - col2 + - col2 / - col2 FROM tab0 AS cor0
----
-46
-9
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-6825
SELECT ALL COUNT( - col2 ) + - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE - 6 * col1 <> ( + col1 * - 91 )
----
0

skipif mysql # not compatible
query I rowsort label-6825
SELECT ALL COUNT ( - col2 ) + - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE - 6 * col1 <> ( + col1 * - 91 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6826
SELECT ALL + COUNT( * ) * - SUM( - 52 ) FROM tab2 AS cor0
----
468

skipif mysql # not compatible
query I rowsort label-6826
SELECT ALL + COUNT ( * ) * - SUM ( - 52 ) FROM tab2 AS cor0
----
468

query I rowsort
SELECT ALL - 23 AS col0 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( col2 + - 85 * col2 ) AND ( 22 + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6828
SELECT 86 * COUNT( * ) AS col1 FROM tab2 AS cor0
----
258

skipif mysql # not compatible
query I rowsort label-6828
SELECT 86 * COUNT ( * ) AS col1 FROM tab2 AS cor0
----
258

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

query I rowsort
SELECT ALL - - col1 + - col0 * col2 FROM tab2 AS cor0
----
-1007
-2483
-4283

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

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

query I rowsort
SELECT DISTINCT + - col1 + + 28 AS col1 FROM tab0 AS cor0
----
-53
27
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6834
SELECT ALL + 2 + + + 89 + + CAST( + 67 + - col0 AS SIGNED ) AS col1 FROM tab2
----
112
83
94

skipif mysql # not compatible
query I rowsort label-6834
SELECT ALL + 2 + + + 89 + + CAST ( + 67 + - col0 AS INTEGER ) AS col1 FROM tab2
----
112
83
94

onlyif mysql # aggregate syntax: 
query I rowsort label-6835
SELECT ALL COUNT( * ) * 40 AS col0 FROM tab1 WHERE - 64 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6835
SELECT ALL COUNT ( * ) * 40 AS col0 FROM tab1 WHERE - 64 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6836
SELECT ALL SUM( ALL - 15 ) FROM tab0
----
-45

skipif mysql # not compatible
query I rowsort label-6836
SELECT ALL SUM ( ALL - 15 ) FROM tab0
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-6837
SELECT ALL ( - MAX( col2 ) ) + SUM( - col2 ) FROM tab0
----
-255

skipif mysql # not compatible
query I rowsort label-6837
SELECT ALL ( - MAX ( col2 ) ) + SUM ( - col2 ) FROM tab0
----
-255

query I rowsort
SELECT DISTINCT col1 * ( col0 ) AS col2 FROM tab0 WHERE ( - ( - col2 ) * 56 ) IS NOT NULL
----
1215
1827
97

query III rowsort
SELECT * FROM tab2 WHERE - 22 = ( + col0 )
----

query I rowsort
SELECT + col2 - - - col2 AS col2 FROM tab2
----
0
0
0

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

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

query I rowsort
SELECT DISTINCT col2 + col2 + 80 * ( - ( + col0 ) - - col2 ) FROM tab2
----
-1244
-1794
-1840

query I rowsort
SELECT DISTINCT 1 - + col0 FROM tab2
----
-45
-63
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-6844
SELECT DISTINCT - ( - + col0 ) * + ( + col2 DIV - col1 ) AS col2 FROM tab1
----
-306
-91
-935

skipif mysql # not compatible
query I rowsort label-6844
SELECT DISTINCT - ( - + col0 ) * + ( + col2 / - col1 ) AS col2 FROM tab1
----
-306
-91
-935

query I rowsort
SELECT + 68 + col0 FROM tab1
----
119
153
159

query I rowsort
SELECT + 5 + col0 - - col1 AS col0 FROM tab2 AS cor0
----
102
146
147

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 18 col0 FROM tab1, tab1 AS cor0
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

onlyif mysql # aggregate syntax: 
query I rowsort label-6850
SELECT DISTINCT COUNT( * ) * + ( COUNT( * ) ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6850
SELECT DISTINCT COUNT ( * ) * + ( COUNT ( * ) ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NULL
----
0

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col0, - 99 FROM tab1 AS cor0
----
-59
-99
-68
-99
-96
-99

query I rowsort
SELECT + col1 FROM tab0 cor0 WHERE NOT + col0 IS NULL
----
1
21
81

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6861
SELECT DISTINCT + MIN( ALL + 87 ) FROM tab1
----
87

skipif mysql # not compatible
query I rowsort label-6861
SELECT DISTINCT + MIN ( ALL + 87 ) FROM tab1
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6862
SELECT ALL * FROM tab2 WHERE ( + + col0 ) NOT BETWEEN 14 * - 69 AND ( + CAST( NULL AS SIGNED ) * col2 )
----

skipif mysql # not compatible
query III rowsort label-6862
SELECT ALL * FROM tab2 WHERE ( + + col0 ) NOT BETWEEN 14 * - 69 AND ( + CAST ( NULL AS INTEGER ) * col2 )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6863
SELECT col2 DIV + CAST( - - col0 AS SIGNED ) FROM tab0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-6863
SELECT col2 / + CAST ( - - col0 AS INTEGER ) FROM tab0
----
0
1
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6864
SELECT + MIN( - - 15 ) DIV + + 48 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6864
SELECT + MIN ( - - 15 ) / + + 48 FROM tab2
----
0

query I rowsort
SELECT - col0 AS col2 FROM tab1 WHERE NOT - ( - col1 ) NOT IN ( col0 + 60 / - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6866
SELECT ALL COUNT( * ) FROM tab0 WHERE ( + 69 ) = ( + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-6866
SELECT ALL COUNT ( * ) FROM tab0 WHERE ( + 69 ) = ( + col1 )
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6869
SELECT - CAST( + col2 AS SIGNED ) * - col0 * + col0 AS col1 FROM tab0
----
10575
75690
931491

skipif mysql # not compatible
query I rowsort label-6869
SELECT - CAST ( + col2 AS INTEGER ) * - col0 * + col0 AS col1 FROM tab0
----
10575
75690
931491

query I rowsort
SELECT + + ( + - col1 ) AS col1 FROM tab2 AS cor0 WHERE + col0 IS NOT NULL
----
-51
-67
-77

query I rowsort
SELECT DISTINCT 28 * - col0 AS col0 FROM tab0 AS cor0
----
-2436
-2716
-420

query I rowsort
SELECT + - col2 + + 95 AS col0 FROM tab1 cor0
----
-1
27
36

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6874
SELECT DISTINCT + CAST( - 99 AS SIGNED ) + + col2 FROM tab0 AS cor0
----
-52
-89
0

skipif mysql # not compatible
query I rowsort label-6874
SELECT DISTINCT + CAST ( - 99 AS INTEGER ) + + col2 FROM tab0 AS cor0
----
-52
-89
0

query I rowsort
SELECT - col0 * 95 + col2 FROM tab0
----
-1378
-8255
-9116

query I rowsort
SELECT 58 + + + col2 + + + col0 AS col0 FROM tab1
----
202
205
217

onlyif mysql # aggregate syntax: 
query I rowsort label-6877
SELECT COUNT( * ) FROM tab2 WHERE ( - col2 ) = ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-6877
SELECT COUNT ( * ) FROM tab2 WHERE ( - col2 ) = ( NULL )
----
0

query I rowsort
SELECT DISTINCT 25 + col1 * col0 FROM tab2 WHERE + col0 IS NOT NULL
----
2371
4953
5050

query I rowsort
SELECT - 11 + - col2 FROM tab0
----
-110
-21
-58

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6881
SELECT + 64 + - COUNT( * ) AS col0 FROM tab2
----
61

skipif mysql # not compatible
query I rowsort label-6881
SELECT + 64 + - COUNT ( * ) AS col0 FROM tab2
----
61

query I rowsort
SELECT ALL 83 - + + col0 FROM tab0
----
-14
-4
68

query II rowsort
SELECT 84 AS col2, - 91 + + 33 FROM tab1
----
84
-58
84
-58
84
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-6884
SELECT ALL 10 DIV - + col1 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6884
SELECT ALL 10 / - + col1 AS col0 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6885
SELECT ALL * FROM tab2 WHERE NOT - - col0 * - 20 + - col0 * CAST( 76 AS SIGNED ) BETWEEN - col0 AND 19 * col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6885
SELECT ALL * FROM tab2 WHERE NOT - - col0 * - 20 + - col0 * CAST ( 76 AS INTEGER ) BETWEEN - col0 AND 19 * col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6887
SELECT CAST( NULL AS SIGNED ) - - col0 FROM tab1 AS cor0 WHERE ( col1 + + 39 * + 94 + - col0 - - + col1 * - 6 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-6887
SELECT CAST ( NULL AS INTEGER ) - - col0 FROM tab1 AS cor0 WHERE ( col1 + + 39 * + 94 + - col0 - - + col1 * - 6 ) IS NULL
----

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

query I rowsort
SELECT + - col1 - + col2 AS col0 FROM tab2 AS cor0
----
-117
-125
-74

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + - col0 * + 49 > - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6893
SELECT DISTINCT COUNT( ALL - ( + + 10 ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6893
SELECT DISTINCT COUNT ( ALL - ( + + 10 ) ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6894
SELECT DISTINCT + COUNT( * ) col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6894
SELECT DISTINCT + COUNT ( * ) col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6895
SELECT + SUM( DISTINCT - + col0 ) * - 62 col1 FROM tab0 AS cor0
----
12338

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6895
SELECT + SUM ( DISTINCT - + col0 ) * - 62 col1 FROM tab0 AS cor0
----
12338

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6898
SELECT ALL - - COUNT( DISTINCT col1 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6898
SELECT ALL - - COUNT ( DISTINCT col1 ) AS col0 FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL - 29 * 97 * - col0 FROM tab1 WHERE NOT col2 > + col1 / - col0
----

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL ) IN ( col1 * - col1 + + col0 )
----

query IIIIII rowsort
SELECT ALL * FROM tab1 cor0 LEFT OUTER JOIN tab1 AS cor1 ON NULL IS NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

query I rowsort
SELECT DISTINCT - col1 * + 61 FROM tab1
----
-2867
-305
-854

onlyif mysql # aggregate syntax: 
query I rowsort label-6904
SELECT ALL - MAX( - col0 ) AS col0 FROM tab2 cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6904
SELECT ALL - MAX ( - col0 ) AS col0 FROM tab2 cor0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT + 24 * + - 44 * - 4 * - col2 + - col1 AS col0 FROM tab2 AS cor0
----
-169037
-245059
-97203

query I rowsort
SELECT + + 43 * - - col0 * 38 FROM tab2 cor0
----
104576
122550
75164

query I rowsort
SELECT - col2 * + - 0 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT ALL - col0 FROM tab0 cor0 WHERE NOT 45 <= ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 76 * + + col0 + - 76 AS col1, - col1 col2 FROM tab0 WHERE NULL >= NULL
----

query I rowsort
SELECT DISTINCT + 1 + - col2 + - col1 + + col0 AS col1 FROM tab0
----
-112
-2
57

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

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

query I rowsort
SELECT - col1 FROM tab1 WHERE - 49 NOT BETWEEN + - col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6913
SELECT MIN( - ( + col0 ) ) + + - 35 FROM tab1
----
-126

skipif mysql # not compatible
query I rowsort label-6913
SELECT MIN ( - ( + col0 ) ) + + - 35 FROM tab1
----
-126

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 - + col1 col1 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6915
SELECT 60 + - COUNT( * ) FROM tab2
----
57

skipif mysql # not compatible
query I rowsort label-6915
SELECT 60 + - COUNT ( * ) FROM tab2
----
57

query I rowsort
SELECT ALL col0 - - 71 FROM tab1
----
122
156
162

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6920
SELECT ALL + col1 DIV - 88 + - - col1 + col2 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
100
128
31

skipif mysql # not compatible
query I rowsort label-6920
SELECT ALL + col1 / - 88 + - - col1 + col2 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
100
128
31

onlyif mysql # aggregate syntax: 
query I rowsort label-6921
SELECT ALL + COUNT( DISTINCT - - 78 ) + - + 99 / + SUM( - + col1 ) col1 FROM tab2 AS cor0 WHERE NOT col2 > + 5
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6921
SELECT ALL + COUNT ( DISTINCT - - 78 ) + - + 99 / + SUM ( - + col1 ) col1 FROM tab2 AS cor0 WHERE NOT col2 > + 5
----
NULL

query I rowsort
SELECT - col0 * - 75 FROM tab1 AS cor0
----
3825
6375
6825

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6925
SELECT col1 AS col0, CAST( + - col1 AS SIGNED ) + 73 * + + 21 FROM tab0
----
1
1532
21
1512
81
1452

skipif mysql # not compatible
query II rowsort label-6925
SELECT col1 AS col0, CAST ( + - col1 AS INTEGER ) + 73 * + + 21 FROM tab0
----
1
1532
21
1512
81
1452

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6928
SELECT ALL + SUM( - col1 ) FROM tab0 cor0
----
-103

skipif mysql # not compatible
query I rowsort label-6928
SELECT ALL + SUM ( - col1 ) FROM tab0 cor0
----
-103

query II rowsort
SELECT ALL + col2, + 28 AS col0 FROM tab0 cor0
----
10
28
47
28
99
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6930
SELECT DISTINCT - + col0 AS col1 FROM tab2 AS cor0 WHERE ( 9 ) <> - col2 + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-6930
SELECT DISTINCT - + col0 AS col1 FROM tab2 AS cor0 WHERE ( 9 ) <> - col2 + - CAST ( NULL AS INTEGER )
----

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

query II rowsort
SELECT ALL col0 AS col2, col0 * + + col2 + ( col1 ) * ( - + ( 49 ) ) AS col1 FROM tab2 AS cor0
----
46
-1441
64
-1213
75
1067

query I rowsort
SELECT col2 + - 74 AS col2 FROM tab2
----
-16
-34
-51

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

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

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

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

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

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

query II rowsort
SELECT - 97 / - col0, + col2 FROM tab1 AS cor0 WHERE - 52 BETWEEN - + col0 AND NULL
----

query I rowsort
SELECT DISTINCT - + col1 + - col0 * + + col0 AS col0 FROM tab1 AS cor0
----
-2615
-7230
-8328

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 68 + - 97 col0 FROM tab2
----
-165
-165
-165

query I rowsort
SELECT DISTINCT ( 39 ) - - col2 FROM tab1
----
107
135
98

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6944
SELECT ALL - SUM( - + ( - 46 ) ) AS col2 FROM tab2 AS cor0
----
-138

skipif mysql # not compatible
query I rowsort label-6944
SELECT ALL - SUM ( - + ( - 46 ) ) AS col2 FROM tab2 AS cor0
----
-138

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6946
SELECT + 3 + + SUM( ALL 55 ) FROM tab2 cor0
----
168

skipif mysql # not compatible
query I rowsort label-6946
SELECT + 3 + + SUM ( ALL 55 ) FROM tab2 cor0
----
168

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 99 NOT BETWEEN NULL AND 69 * + 97
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6950
SELECT ALL - COUNT( * ) + 97 FROM tab2 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-6950
SELECT ALL - COUNT ( * ) + 97 FROM tab2 AS cor0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-6951
SELECT + SUM( 62 ) + - - 4 FROM tab2 cor0
----
190

skipif mysql # not compatible
query I rowsort label-6951
SELECT + SUM ( 62 ) + - - 4 FROM tab2 cor0
----
190

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

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

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

query I rowsort
SELECT ALL - 58 - 32 FROM tab0
----
-90
-90
-90

query I rowsort
SELECT ALL col0 - - - 46 FROM tab0
----
-31
41
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6956
SELECT DISTINCT 36 * 7 - + + CAST( NULL AS SIGNED ) * + 7 * 19 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6956
SELECT DISTINCT 36 * 7 - + + CAST ( NULL AS INTEGER ) * + 7 * 19 AS col0 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT 90 - + 88 FROM tab2
----
2

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

query I rowsort
SELECT DISTINCT - col2 * - col1 * col1 AS col2 FROM tab1 AS cor0
----
1475
150212
18816

query II rowsort
SELECT + col1 * ( - 60 ) - - col0 AS col0, - 85 * + 25 FROM tab0 AS cor0
----
-1173
-2125
-4845
-2125
37
-2125

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

query II rowsort
SELECT + - col2, + col2 * + col2 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-23
529
-40
1600
-58
3364

onlyif mysql # aggregate syntax: 
query I rowsort label-6963
SELECT DISTINCT MAX( DISTINCT - + col2 ) AS col0 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-6963
SELECT DISTINCT MAX ( DISTINCT - + col2 ) AS col0 FROM tab0
----
-10

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

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

query I rowsort
SELECT DISTINCT + col2 * - 84 * - - col2 * col2 - + 67 AS col2 FROM tab1 AS cor0
----
-17251903
-26412355
-74317891

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6966
SELECT CAST( NULL AS DECIMAL ), - col2 AS col1 FROM tab2 AS cor0
----
NULL
-23
NULL
-40
NULL
-58

skipif mysql # not compatible
query II rowsort label-6966
SELECT CAST ( NULL AS REAL ), - col2 AS col1 FROM tab2 AS cor0
----
NULL
-23
NULL
-40
NULL
-58

query II rowsort
SELECT col1 AS col1, - 91 AS col1 FROM tab0 AS cor0
----
1
-91
21
-91
81
-91

query I rowsort
SELECT ALL + 69 * col1 AS col0 FROM tab0 cor0
----
1449
5589
69

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6969
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 69 * + 7 + ( col2 ) NOT IN ( + - CAST( - 39 AS SIGNED ) * - 23 / - col0, - col2 + + + 18 / - col2 )
----

skipif mysql # not compatible
query III rowsort label-6969
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 69 * + 7 + ( col2 ) NOT IN ( + - CAST ( - 39 AS INTEGER ) * - 23 / - col0, - col2 + + + 18 / - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6970
SELECT ALL - 39 + - + col1 * 77 DIV 35 FROM tab2 AS cor0
----
-151
-186
-208

skipif mysql # not compatible
query I rowsort label-6970
SELECT ALL - 39 + - + col1 * 77 / 35 FROM tab2 AS cor0
----
-151
-186
-208

onlyif mysql # aggregate syntax: 
query I rowsort label-6971
SELECT DISTINCT 8 + - - MIN( - 55 ) FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-6971
SELECT DISTINCT 8 + - - MIN ( - 55 ) FROM tab1
----
-47

query II rowsort
SELECT - 41, + col2 AS col2 FROM tab2 WHERE NOT 25 IS NULL
----
-41
23
-41
40
-41
58

query I rowsort
SELECT col0 * - col0 * + - col1 AS col2 FROM tab0
----
158949
18225
9409

onlyif mysql # aggregate syntax: 
query II rowsort label-6974
SELECT DISTINCT + COUNT( * ), - 77 AS col0 FROM tab2
----
3
-77

skipif mysql # not compatible
query II rowsort label-6974
SELECT DISTINCT + COUNT ( * ), - 77 AS col0 FROM tab2
----
3
-77

query I rowsort
SELECT DISTINCT - ( - + 58 ) FROM tab1
----
58

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6977
SELECT col2 DIV + - ( 3 ) AS col2 FROM tab0
----
-15
-3
-33

skipif mysql # not compatible
query I rowsort label-6977
SELECT col2 / + - ( 3 ) AS col2 FROM tab0
----
-15
-3
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-6978
SELECT DISTINCT + SUM( DISTINCT - col0 ) FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-6978
SELECT DISTINCT + SUM ( DISTINCT - col0 ) FROM tab0
----
-199

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6980
SELECT + SUM( - 15 ) + COUNT( * ) FROM tab1 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-6980
SELECT + SUM ( - 15 ) + COUNT ( * ) FROM tab1 AS cor0
----
-42

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6982
SELECT ALL 16 + COUNT( * ) FROM tab1 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-6982
SELECT ALL 16 + COUNT ( * ) FROM tab1 AS cor0
----
19

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col2 FROM tab1 cor0 WHERE NOT NULL <= NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col1 + + 32 = 6 * - + col1 + + ( - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6986
SELECT - COUNT( * ) * COUNT( * ) - MAX( - col2 ) * + + SUM( DISTINCT - - ( + - col1 ) ) AS col2 FROM tab0 cor0
----
-1039

skipif mysql # not compatible
query I rowsort label-6986
SELECT - COUNT ( * ) * COUNT ( * ) - MAX ( - col2 ) * + + SUM ( DISTINCT - - ( + - col1 ) ) AS col2 FROM tab0 cor0
----
-1039

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 32 / + 5 >= ( ( col0 ) * + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-6988
SELECT - - 4 DIV - col1 - col0 AS col0 FROM tab0 AS cor0
----
-101
-15
-87

skipif mysql # not compatible
query I rowsort label-6988
SELECT - - 4 / - col1 - col0 AS col0 FROM tab0 AS cor0
----
-101
-15
-87

query I rowsort
SELECT - 65 * - 45 * - ( col0 ) FROM tab0 AS cor0
----
-254475
-283725
-43875

query II rowsort
SELECT col2 - 19, col2 AS col1 FROM tab2 AS cor0
----
21
40
39
58
4
23

query I rowsort
SELECT ALL - + 50 * - - col2 FROM tab2 AS cor0
----
-1150
-2000
-2900

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6992
SELECT COUNT( * ) + - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6992
SELECT COUNT ( * ) + - CAST ( NULL AS REAL ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT + 52 * 75 AS col0 FROM tab2 cor0 WHERE - col2 IS NOT NULL
----
3900
3900
3900

query I rowsort
SELECT + + 80 + + 35 + + 35 * - col0 FROM tab0 AS cor0 WHERE 15 IS NOT NULL
----
-2930
-3280
-410

query I rowsort
SELECT DISTINCT col1 * - col1 + col1 FROM tab0
----
-420
-6480
0

query I rowsort
SELECT DISTINCT col2 - - - 32 * - col1 FROM tab2
----
1655
2202
2504

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

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

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

query II rowsort
SELECT + col1, + 26 FROM tab2
----
51
26
67
26
77
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 59 col0, col2 AS col1 FROM tab1
----
59
59
59
68
59
96

query I rowsort
SELECT 50 * + 90 FROM tab0
----
4500
4500
4500

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

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

query I rowsort
SELECT DISTINCT col0 * + 86 FROM tab0 cor0
----
1290
7482
8342

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

query I rowsort
SELECT ALL ( + 54 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09

query I rowsort
SELECT - col2 * - + col0 * 16 FROM tab1
----
78336
80240
99008

onlyif mysql # aggregate syntax: 
query I rowsort label-7007
SELECT DISTINCT 88 * + + MAX( DISTINCT - col2 ) AS col1 FROM tab0
----
-880

skipif mysql # not compatible
query I rowsort label-7007
SELECT DISTINCT 88 * + + MAX ( DISTINCT - col2 ) AS col1 FROM tab0
----
-880

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

query I rowsort
SELECT DISTINCT - ( - + col0 ) - + col1 FROM tab1 AS cor0 WHERE ( NULL IS NULL )
----
37
44
80

onlyif mysql # DIV for integer division: 
query II rowsort label-7010
SELECT ALL 63 + col0, + col2 DIV + 82 AS col2 FROM tab1 AS cor0
----
114
1
148
0
154
0

skipif mysql # not compatible
query II rowsort label-7010
SELECT ALL 63 + col0, + col2 / + 82 AS col2 FROM tab1 AS cor0
----
114
1
148
0
154
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7011
SELECT ALL - - 22 + + COUNT( * ) FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
22

skipif mysql # not compatible
query I rowsort label-7011
SELECT ALL - - 22 + + COUNT ( * ) FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
22

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 31 * + + col2 BETWEEN 50 * - 57 + - + col1 AND - - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT ( - 4 ) * + col0 col0, col1 * + col2 * + 99 + 98 AS col2 FROM tab0
----
-348
20888
-388
9899
-60
376991

onlyif mysql # DIV for integer division: 
query I rowsort label-7017
SELECT - col1 + - 45 + - + 32 DIV - 86 FROM tab0
----
-126
-46
-66

skipif mysql # not compatible
query I rowsort label-7017
SELECT - col1 + - 45 + - + 32 / - 86 FROM tab0
----
-126
-46
-66

query I rowsort
SELECT DISTINCT 25 * col0 FROM tab2
----
1150
1600
1875

query I rowsort
SELECT + col0 + - 60 AS col2 FROM tab0
----
-45
27
37

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7020
SELECT CAST( NULL AS DECIMAL ) FROM tab1 WHERE NULL < - col1
----

skipif mysql # not compatible
query I rowsort label-7020
SELECT CAST ( NULL AS REAL ) FROM tab1 WHERE NULL < - col1
----

query I rowsort
SELECT 66 * - 74 FROM tab0
----
-4884
-4884
-4884

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7023
SELECT * FROM tab0 cor0 WHERE - 70 >= - + col2 + - col0 + + + ( - CAST( + 6 AS SIGNED ) )
----
87
21
10
97
1
99

skipif mysql # not compatible
query III rowsort label-7023
SELECT * FROM tab0 cor0 WHERE - 70 >= - + col2 + - col0 + + + ( - CAST ( + 6 AS INTEGER ) )
----
87
21
10
97
1
99

query I rowsort
SELECT DISTINCT + + 78 + + + ( + - 34 ) * + - col0 AS col1 FROM tab1 AS cor0
----
1812
2968
3172

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

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

skipif mysql # not compatible
query I rowsort label-7026
SELECT + ( + - MAX ( - ( 76 ) ) ) - + CAST ( + ( - COUNT ( * ) ) AS INTEGER ) + - - ( - COUNT ( DISTINCT + col2 ) ) FROM tab0
----
76

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 12 * + - col0 + + col2 col0 FROM tab1
----
-1024
-516
-961

query I rowsort
SELECT DISTINCT + col1 * - - col0 - 48 FROM tab0
----
1167
1779
49

query I rowsort
SELECT ALL col0 / - + 93 FROM tab2 AS cor0 WHERE NOT + col1 / + - col0 * + + col1 / - col1 IS NOT NULL
----

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

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

skipif mysql # not compatible
query I rowsort label-7032
SELECT ALL MAX ( - col1 ) FROM tab1 cor0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7033
SELECT ALL - 28 + - MIN( ALL - + 99 ) + + + COUNT( * ) - + COUNT( * ) * - - ( + - 98 ) AS col1 FROM tab0 AS cor0
----
368

skipif mysql # not compatible
query I rowsort label-7033
SELECT ALL - 28 + - MIN ( ALL - + 99 ) + + + COUNT ( * ) - + COUNT ( * ) * - - ( + - 98 ) AS col1 FROM tab0 AS cor0
----
368

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7036
SELECT + COUNT( * ) col1, + 55 FROM tab2 AS cor0
----
3
55

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

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

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

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

query I rowsort
SELECT + ( ( + col2 ) ) AS col1 FROM tab0
----
10
47
99

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7041
SELECT ALL 15 + - COUNT( * ) - + 3 AS col0 FROM tab1 AS cor0 WHERE NOT NULL > NULL
----
12

skipif mysql # not compatible
query I rowsort label-7041
SELECT ALL 15 + - COUNT ( * ) - + 3 AS col0 FROM tab1 AS cor0 WHERE NOT NULL > NULL
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7042
SELECT DISTINCT + CAST( - + 65 AS SIGNED ) * 99 * - + col0 FROM tab1 AS cor0
----
328185
546975
585585

skipif mysql # not compatible
query I rowsort label-7042
SELECT DISTINCT + CAST ( - + 65 AS INTEGER ) * 99 * - + col0 FROM tab1 AS cor0
----
328185
546975
585585

query I rowsort
SELECT DISTINCT - + col2 AS col0 FROM tab2 WHERE NOT + 49 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7044
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 * col2 NOT BETWEEN CAST( col2 AS SIGNED ) / - - 67 * col2 AND 29
----

skipif mysql # not compatible
query III rowsort label-7044
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 * col2 NOT BETWEEN CAST ( col2 AS INTEGER ) / - - 67 * col2 AND 29
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7045
SELECT ALL + CAST( - - col0 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-7045
SELECT ALL + CAST ( - - col0 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT - col1 * col0 * ( - col0 ) AS col1 FROM tab1 cor0 WHERE NOT + 68 IS NULL
----
36125
36414
389207

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

query II rowsort
SELECT ALL 0 AS col2, 45 AS col2 FROM tab0 AS cor0
----
0
45
0
45
0
45

query I rowsort
SELECT DISTINCT - 84 + - col2 * - - col1 + - - col1 FROM tab2 AS cor0
----
-1206
-3087
-3903

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7051
SELECT - 85 AS col2, ( - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
-85
NULL
-85
NULL
-85
NULL

skipif mysql # not compatible
query II rowsort label-7051
SELECT - 85 AS col2, ( - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
-85
NULL
-85
NULL
-85
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7053
SELECT ALL 62 DIV col2 + + + col0 * - col2 * + + col0 FROM tab1
----
-249696
-426274
-563108

skipif mysql # not compatible
query I rowsort label-7053
SELECT ALL 62 / col2 + + + col0 * - col2 * + + col0 FROM tab1
----
-249696
-426274
-563108

onlyif mysql # aggregate syntax: 
query I rowsort label-7054
SELECT + COUNT( * ) FROM tab2 WHERE + col2 / - 3 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7054
SELECT + COUNT ( * ) FROM tab2 WHERE + col2 / - 3 IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 20 * - col2 + + - 10 - + col1 col1 FROM tab0
----
-1031
-1991
-231

query I rowsort
SELECT 18 + - 41 FROM tab2
----
-23
-23
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-7057
SELECT DISTINCT - - 85 DIV + + 9 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-7057
SELECT DISTINCT - - 85 / + + 9 FROM tab2 AS cor0
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 86 * col2 + - 7 col1 FROM tab0 AS cor0
----
-4049
-8521
-867

query I rowsort
SELECT ALL - col2 * - 13 + - 90 AS col2 FROM tab2 AS cor0
----
209
430
664

onlyif mysql # aggregate syntax: 
query I rowsort label-7060
SELECT DISTINCT SUM( + 83 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
747

skipif mysql # not compatible
query I rowsort label-7060
SELECT DISTINCT SUM ( + 83 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
747

query II rowsort
SELECT 49, + col2 FROM tab0
----
49
10
49
47
49
99

query I rowsort
SELECT - 89 FROM tab2 WHERE NULL IS NULL
----
-89
-89
-89

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7063
SELECT DISTINCT col2 AS col1, + col0 col2 FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) = - col2 * - 98
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7063
SELECT DISTINCT col2 AS col1, + col0 col2 FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) = - col2 * - 98
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7065
SELECT DISTINCT + ( + 88 ) DIV - col2 AS col1 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-7065
SELECT DISTINCT + ( + 88 ) / - col2 AS col1 FROM tab1
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7066
SELECT DISTINCT ( + COUNT( * ) ) * - + MAX( - + col1 ) col0 FROM tab1
----
15

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 40 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7068
SELECT ( + - CAST( - col0 AS SIGNED ) ) AS col1 FROM tab0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-7068
SELECT ( + - CAST ( - col0 AS INTEGER ) ) AS col1 FROM tab0
----
15
87
97

onlyif mysql # aggregate syntax: 
query II rowsort label-7069
SELECT ALL - COUNT( * ), - 25 AS col2 FROM tab1
----
-3
-25

skipif mysql # not compatible
query II rowsort label-7069
SELECT ALL - COUNT ( * ), - 25 AS col2 FROM tab1
----
-3
-25

query II rowsort
SELECT DISTINCT col2 AS col1, col0 AS col2 FROM tab0
----
10
87
47
15
99
97

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7072
SELECT ALL col1, + ( CAST( NULL AS SIGNED ) ) FROM tab0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-7072
SELECT ALL col1, + ( CAST ( NULL AS INTEGER ) ) FROM tab0
----
1
NULL
21
NULL
81
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE - - 14 NOT BETWEEN - ( + 6 ) AND col1
----

query II rowsort
SELECT - 33 AS col2, + col2 + col2 FROM tab1
----
-33
118
-33
136
-33
192

onlyif mysql # aggregate syntax: 
query I rowsort label-7075
SELECT + MAX( ALL - + col2 ) FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-7075
SELECT + MAX ( ALL - + col2 ) FROM tab1
----
-59

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

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

query I rowsort
SELECT DISTINCT + 32 * - 89 FROM tab1
----
-2848

query I rowsort
SELECT + + 99 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 5 col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 74665fbb47d5b17da011bca567195b21

query I rowsort
SELECT ALL + 44 AS col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

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

skipif mysql # not compatible
query IIIIII rowsort label-7081
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

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

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

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

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

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

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

query I rowsort
SELECT + col0 * - 86 * - 72 + col1 AS col0 FROM tab2 AS cor0
----
284883
396365
464467

query I rowsort
SELECT - col0 + + 20 FROM tab2 AS cor0
----
-26
-44
-55

query II rowsort
SELECT DISTINCT + + col1 * + + 87 + + + 48, - 9 AS col1 FROM tab2 AS cor0
----
4485
-9
5877
-9
6747
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7088
SELECT DISTINCT CAST( 87 AS SIGNED ) FROM tab0
----
87

skipif mysql # not compatible
query I rowsort label-7088
SELECT DISTINCT CAST ( 87 AS INTEGER ) FROM tab0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-7089
SELECT + COUNT( * ) + + COUNT( DISTINCT ( - 92 ) ) + 76 FROM tab0
----
80

skipif mysql # not compatible
query I rowsort label-7089
SELECT + COUNT ( * ) + + COUNT ( DISTINCT ( - 92 ) ) + 76 FROM tab0
----
80

query I rowsort
SELECT - 99 * - 64 + + col1 AS col1 FROM tab1
----
6341
6350
6383

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7091
SELECT ALL CAST( 32 AS SIGNED ) AS col1 FROM tab2
----
32
32
32

skipif mysql # not compatible
query I rowsort label-7091
SELECT ALL CAST ( 32 AS INTEGER ) AS col1 FROM tab2
----
32
32
32

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

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

query I rowsort
SELECT + col1 * + ( + 0 ) * - 84 + - 9 + - col1 + - + col0 AS col0 FROM tab0
----
-105
-107
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-7095
SELECT ALL MIN( - col1 ) FROM tab2 cor0
----
-77

skipif mysql # not compatible
query I rowsort label-7095
SELECT ALL MIN ( - col1 ) FROM tab2 cor0
----
-77

query I rowsort
SELECT ALL col0 - + col1 * + col1 AS col2 FROM tab0
----
-354
-6546
96

query I rowsort
SELECT DISTINCT col0 FROM tab0 WHERE + 0 / col1 NOT IN ( col1, - col0 )
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7098
SELECT ALL MAX( + + col2 ) AS col1 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-7098
SELECT ALL MAX ( + + col2 ) AS col1 FROM tab1
----
96

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7100
SELECT + - 43 * + - ( ( - col2 ) ) AS col0, + col1 DIV + CAST( ( + col1 ) AS SIGNED ) FROM tab2 AS cor0
----
-1720
1
-2494
1
-989
1

skipif mysql # not compatible
query II rowsort label-7100
SELECT + - 43 * + - ( ( - col2 ) ) AS col0, + col1 / + CAST ( ( + col1 ) AS INTEGER ) FROM tab2 AS cor0
----
-1720
1
-2494
1
-989
1

query I rowsort
SELECT ALL 66 * + - col1 + col1 FROM tab2 AS cor0
----
-3315
-4355
-5005

onlyif mysql # aggregate syntax: 
query I rowsort label-7102
SELECT + COUNT( * ) * 64 + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
189

skipif mysql # not compatible
query I rowsort label-7102
SELECT + COUNT ( * ) * 64 + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
189

query I rowsort
SELECT DISTINCT - col1 * + 14 FROM tab0 AS cor0
----
-1134
-14
-294

query I rowsort
SELECT - + 73 * + - col1 + + col1 AS col2 FROM tab2 AS cor0
----
3774
4958
5698

onlyif mysql # DIV for integer division: 
query I rowsort label-7105
SELECT 19 DIV + 37 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7105
SELECT 19 / + 37 AS col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7106
SELECT ALL + - MIN( ALL + 34 ) FROM tab2 AS cor0
----
-34

skipif mysql # not compatible
query I rowsort label-7106
SELECT ALL + - MIN ( ALL + 34 ) FROM tab2 AS cor0
----
-34

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7107
SELECT ALL + - 37 * - CAST( NULL AS DECIMAL ) * - 12 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7107
SELECT ALL + - 37 * - CAST ( NULL AS REAL ) * - 12 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 * + 48 FROM tab1
----
2832
3264
4608

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7109
SELECT DISTINCT - col0 / + 56 col2 FROM tab2
----
-1
0

query II rowsort
SELECT + col1 AS col0, + 4 * + 59 FROM tab2
----
51
236
67
236
77
236

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

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

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

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

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 69 > + ( + col0 )
----
75
67
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7116
SELECT ALL + ( - - MIN( + 34 ) ) + COUNT( * ) AS col1 FROM tab0 AS cor0
----
37

skipif mysql # not compatible
query I rowsort label-7116
SELECT ALL + ( - - MIN ( + 34 ) ) + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
37

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7119
SELECT 67 + + CAST( + - col0 AS SIGNED ) FROM tab0
----
-20
-30
52

skipif mysql # not compatible
query I rowsort label-7119
SELECT 67 + + CAST ( + - col0 AS INTEGER ) FROM tab0
----
-20
-30
52

query I rowsort
SELECT ALL + 71 + + 36 AS col0 FROM tab1
----
107
107
107

query I rowsort
SELECT ALL ( - 70 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 35707a5d99c98b2657c084a50ff1b073

query I rowsort
SELECT + 70 FROM tab0 AS cor0 WHERE + col2 >= - col2
----
70
70
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 42 * + + col2 col1 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7124
SELECT * FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) >= ( - + col1 + - col2 )
----

skipif mysql # not compatible
query III rowsort label-7124
SELECT * FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) >= ( - + col1 + - col2 )
----

query II rowsort
SELECT 7, - col2 AS col0 FROM tab1 AS cor0
----
7
-59
7
-68
7
-96

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

skipif mysql # not compatible
query I rowsort label-7126
SELECT - COUNT ( * ) / 80 AS col1 FROM tab0 AS cor0
----
0

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

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

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

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

query I rowsort
SELECT + col1 - - col0 * col1 AS col1 FROM tab1
----
430
4324
728

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7131
SELECT ALL - 99 + - CAST( col0 AS SIGNED ) * 75 AS col2 FROM tab0
----
-1224
-6624
-7374

skipif mysql # not compatible
query I rowsort label-7131
SELECT ALL - 99 + - CAST ( col0 AS INTEGER ) * 75 AS col2 FROM tab0
----
-1224
-6624
-7374

onlyif mysql # DIV for integer division: 
query I rowsort label-7132
SELECT col1 DIV - + col1 + + col2 FROM tab1
----
58
67
95

skipif mysql # not compatible
query I rowsort label-7132
SELECT col1 / - + col1 + + col2 FROM tab1
----
58
67
95

query I rowsort
SELECT ALL - col1 FROM tab1 AS cor0 WHERE ( NULL ) <= + col0 * ( + 60 ) / - + col2 - - 8 + + col2
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE col1 <= 44 + - col1
----
87
21
10
97
1
99

query I rowsort
SELECT DISTINCT - col0 * + col0 * col0 + + col2 FROM tab1 AS cor0
----
-132555
-614066
-753503

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7137
SELECT ALL - col2 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN NULL AND col2 * + + 43 * + col1 * + CAST( NULL AS DECIMAL ) + + col0 + - 82 + - col1
----

skipif mysql # not compatible
query I rowsort label-7137
SELECT ALL - col2 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN NULL AND col2 * + + 43 * + col1 * + CAST ( NULL AS REAL ) + + col0 + - 82 + - col1
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 + col2 >= - col0 / - - 23
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-7139
SELECT ALL + + 93 DIV + col1 AS col1 FROM tab1 AS cor0
----
1
18
6

skipif mysql # not compatible
query I rowsort label-7139
SELECT ALL + + 93 / + col1 AS col1 FROM tab1 AS cor0
----
1
18
6

query I rowsort
SELECT - - 76 * - + col1 * 10 + + col1 FROM tab1 cor0
----
-10626
-35673
-3795

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7142
SELECT DISTINCT - col1 DIV - + col1 col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7142
SELECT DISTINCT - col1 / - + col1 col1 FROM tab0 AS cor0
----
1

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND 11
----

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

query I rowsort
SELECT DISTINCT col2 * + + 40 AS col1 FROM tab0 AS cor0
----
1880
3960
400

onlyif mysql # aggregate syntax: 
query I rowsort label-7146
SELECT ALL - + 61 * SUM( ALL col1 ) FROM tab2 AS cor0
----
-11895

skipif mysql # not compatible
query I rowsort label-7146
SELECT ALL - + 61 * SUM ( ALL col1 ) FROM tab2 AS cor0
----
-11895

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-7149
SELECT DISTINCT col0 DIV + col0, - 22 * + + col1 AS col0 FROM tab2
----
1
-1122
1
-1474
1
-1694

skipif mysql # not compatible
query II rowsort label-7149
SELECT DISTINCT col0 / + col0, - 22 * + + col1 AS col0 FROM tab2
----
1
-1122
1
-1474
1
-1694

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 / + + col0 * col2 col2 FROM tab0 WHERE NOT + + 8 / + col1 + + + col2 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7151
SELECT - - 70 * + 93, + col1 + + col2 AS col2, + CAST( NULL AS SIGNED ) / + col1 + + col0 AS col1 FROM tab2 WHERE NOT 11 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7151
SELECT - - 70 * + 93, + col1 + + col2 AS col2, + CAST ( NULL AS INTEGER ) / + col1 + + col0 AS col1 FROM tab2 WHERE NOT 11 IS NOT NULL
----

query I rowsort
SELECT col0 * + col1 + 2 AS col0 FROM tab1
----
427
4279
716

onlyif mysql # aggregate syntax: 
query I rowsort label-7153
SELECT COUNT( * ) + 42 FROM tab1
----
45

skipif mysql # not compatible
query I rowsort label-7153
SELECT COUNT ( * ) + 42 FROM tab1
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7154
SELECT DISTINCT - 11 * 92 + 62 * + CAST( NULL AS SIGNED ) * - col1 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7154
SELECT DISTINCT - 11 * 92 + 62 * + CAST ( NULL AS INTEGER ) * - col1 AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col0 + - 53 FROM tab2 AS cor0
----
-117
-128
-99

query I rowsort
SELECT ALL + col2 + - - 46 AS col1 FROM tab1 AS cor0
----
105
114
142

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7158
SELECT + 67 * - + SUM( ALL - col2 ) FROM tab2
----
8107

skipif mysql # not compatible
query I rowsort label-7158
SELECT + 67 * - + SUM ( ALL - col2 ) FROM tab2
----
8107

query I rowsort
SELECT - 34 + - col0 AS col2 FROM tab0
----
-121
-131
-49

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

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

query I rowsort
SELECT DISTINCT - ( + ( - col1 ) ) FROM tab0 cor0
----
1
21
81

onlyif mysql # aggregate syntax: 
query III rowsort label-7163
SELECT DISTINCT + COUNT( * ) AS col0, 41 * - - 35, 93 AS col1 FROM tab0 cor0
----
3
1435
93

skipif mysql # not compatible
query III rowsort label-7163
SELECT DISTINCT + COUNT ( * ) AS col0, 41 * - - 35, 93 AS col1 FROM tab0 cor0
----
3
1435
93

query I rowsort
SELECT + 24 + + 99 FROM tab1 cor0
----
123
123
123

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

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

query I rowsort
SELECT 65 * col0 + + col2 FROM tab0
----
1022
5665
6404

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7167
SELECT ALL - 27 - - col0 AS col2, col0 * + - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
19
NULL
37
NULL
48
NULL

skipif mysql # not compatible
query II rowsort label-7167
SELECT ALL - 27 - - col0 AS col2, col0 * + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
19
NULL
37
NULL
48
NULL

query I rowsort
SELECT DISTINCT + col1 * 4 + - - 84 FROM tab0
----
168
408
88

onlyif mysql # aggregate syntax: 
query I rowsort label-7169
SELECT ALL - 77 - - COUNT( * ) AS col1 FROM tab1
----
-74

skipif mysql # not compatible
query I rowsort label-7169
SELECT ALL - 77 - - COUNT ( * ) AS col1 FROM tab1
----
-74

query I rowsort
SELECT ALL col1 * 26 + - col2 FROM tab2
----
1303
1684
1962

query II rowsort
SELECT + 95, col1 AS col2 FROM tab1
----
95
14
95
47
95
5

query I rowsort
SELECT + + col1 FROM tab2 WHERE NULL = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7173
SELECT + 24 AS col1 FROM tab1 WHERE 46 * 95 - - col1 + + CAST( NULL AS SIGNED ) NOT BETWEEN ( NULL ) AND col1
----

skipif mysql # not compatible
query I rowsort label-7173
SELECT + 24 AS col1 FROM tab1 WHERE 46 * 95 - - col1 + + CAST ( NULL AS INTEGER ) NOT BETWEEN ( NULL ) AND col1
----

query I rowsort
SELECT DISTINCT col0 * col0 - + col0 + col1 + + col2 FROM tab1
----
2660
7204
8305

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

query I rowsort
SELECT + 95 * - 30 AS col1 FROM tab2 AS cor0
----
-2850
-2850
-2850

query I rowsort
SELECT DISTINCT - 89 / + AVG ( + col2 ) AS col0 FROM tab1 WHERE NULL <> 90
----
NULL

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE + 85 IS NULL
----

query I rowsort
SELECT col2 + - col2 FROM tab0 AS cor0 WHERE NOT NULL <> col1 + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7180
SELECT MAX( ALL - col1 ) * - + SUM( 95 ) FROM tab2 AS cor0
----
14535

skipif mysql # not compatible
query I rowsort label-7180
SELECT MAX ( ALL - col1 ) * - + SUM ( 95 ) FROM tab2 AS cor0
----
14535

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

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

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

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

query I rowsort
SELECT ALL + 15 * + - col2 FROM tab1 AS cor0
----
-1020
-1440
-885

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7184
SELECT DISTINCT + - CAST( + CAST( - col0 AS DECIMAL ) AS SIGNED ) FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-7184
SELECT DISTINCT + - CAST ( + CAST ( - col0 AS REAL ) AS INTEGER ) FROM tab0 AS cor0
----
15
87
97

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

skipif mysql # not compatible
query I rowsort label-7185
SELECT - + MAX ( + - 61 ) FROM tab1 AS cor0
----
61

query I rowsort
SELECT col2 * col2 - - + 86 AS col1 FROM tab0 AS cor0
----
186
2295
9887

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7188
SELECT ALL + + COUNT( DISTINCT col2 ) AS col0 FROM tab2 WHERE NOT - col0 + + col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7188
SELECT ALL + + COUNT ( DISTINCT col2 ) AS col0 FROM tab2 WHERE NOT - col0 + + col0 IS NOT NULL
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7191
SELECT ALL + - ( - COUNT( * ) ) + + 40 col0 FROM tab0 AS cor0
----
43

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

query I rowsort
SELECT - col2 + + - 5 AS col1 FROM tab2 AS cor0
----
-28
-45
-63

query I rowsort
SELECT DISTINCT + + 97 - + - 89 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
186

query II rowsort
SELECT + col1, 67 AS col2 FROM tab2 WHERE col0 * - 63 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7195
SELECT ALL COUNT( * ) + 2 * - 74 AS col0 FROM tab0 WHERE + + col1 NOT BETWEEN - - 30 * - - 5 AND NULL
----
-145

skipif mysql # not compatible
query I rowsort label-7195
SELECT ALL COUNT ( * ) + 2 * - 74 AS col0 FROM tab0 WHERE + + col1 NOT BETWEEN - - 30 * - - 5 AND NULL
----
-145

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + 12 col2 FROM tab0 AS cor0
----
1044
1164
180

onlyif mysql # aggregate syntax: 
query I rowsort label-7199
SELECT ALL MAX( + col1 ) * + 64 FROM tab2 AS cor0
----
4928

skipif mysql # not compatible
query I rowsort label-7199
SELECT ALL MAX ( + col1 ) * + 64 FROM tab2 AS cor0
----
4928

query I rowsort
SELECT + 1 AS col1 FROM tab2 cor0 WHERE - 26 IS NOT NULL
----
1
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7201
SELECT col1 DIV - 53 AS col0 FROM tab0 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7201
SELECT col1 / - 53 AS col0 FROM tab0 cor0
----
-1
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7202
SELECT SUM( - 0 ) DIV - 58 AS col0 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-7202
SELECT SUM ( - 0 ) / - 58 AS col0 FROM tab1 cor0
----
0

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

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

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

query I rowsort
SELECT DISTINCT 8 AS col1 FROM tab0 cor0
----
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + - col1 col0 FROM tab2 cor0
----
-102
-134
-154

onlyif mysql # aggregate syntax: 
query I rowsort label-7207
SELECT DISTINCT COUNT( * ) + - - 79 AS col0 FROM tab1
----
82

skipif mysql # not compatible
query I rowsort label-7207
SELECT DISTINCT COUNT ( * ) + - - 79 AS col0 FROM tab1
----
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - AVG ( + col0 ) col1 FROM tab0 WHERE col1 + + 99 = + 70
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7209
SELECT DISTINCT - ( MAX( DISTINCT - col1 ) ) AS col1 FROM tab2 WHERE 34 * col0 IS NOT NULL AND NOT col1 - - + 73 IS NULL
----
51

skipif mysql # not compatible
query I rowsort label-7209
SELECT DISTINCT - ( MAX ( DISTINCT - col1 ) ) AS col1 FROM tab2 WHERE 34 * col0 IS NOT NULL AND NOT col1 - - + 73 IS NULL
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7210
SELECT * FROM tab1 WHERE - ( col2 ) * + + ( - col0 ) * 47 + - CAST( - 38 AS SIGNED ) NOT BETWEEN NULL AND + 93
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7210
SELECT * FROM tab1 WHERE - ( col2 ) * + + ( - col0 ) * 47 + - CAST ( - 38 AS INTEGER ) NOT BETWEEN NULL AND + 93
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7211
SELECT ALL MAX( - ( + - col0 ) ) - 59 AS col1 FROM tab2
----
16

skipif mysql # not compatible
query I rowsort label-7211
SELECT ALL MAX ( - ( + - col0 ) ) - 59 AS col1 FROM tab2
----
16

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

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

query II rowsort
SELECT DISTINCT + col2 + col0 AS col1, col2 FROM tab2 WHERE - 77 IS NOT NULL
----
104
40
133
58
69
23

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT ( NOT 14 + 27 BETWEEN - col2 AND - col2 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

skipif mysql # not compatible
query I rowsort label-7216
SELECT DISTINCT MIN ( - ( + 47 ) ) FROM tab1
----
-47

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

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

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

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

query II rowsort
SELECT col2 + + col0 AS col2, col0 FROM tab1
----
144
85
147
51
159
91

query II rowsort
SELECT - col0 + + 87 AS col1, col2 AS col2 FROM tab0
----
-10
99
0
10
72
47

onlyif mysql # aggregate syntax: 
query I rowsort label-7222
SELECT COUNT( - - 39 ) + - 94 * 5 FROM tab2
----
-467

skipif mysql # not compatible
query I rowsort label-7222
SELECT COUNT ( - - 39 ) + - 94 * 5 FROM tab2
----
-467

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

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

query I rowsort
SELECT ALL col1 * + + ( - col1 ) FROM tab1
----
-196
-2209
-25

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7226
SELECT ALL - 83 + MAX( col1 ) FROM tab0 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-7226
SELECT ALL - 83 + MAX ( col1 ) FROM tab0 AS cor0
----
-2

query I rowsort
SELECT + ( - ( col0 ) ) AS col0 FROM tab2 cor0
----
-46
-64
-75

query II rowsort
SELECT + 60 + - 2 AS col1, 1 + - col0 AS col0 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7229
SELECT ALL + 2 AS col0, + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
18 values hashing to 59d6e482c3d9e632643f6eaaf2db0ae1

skipif mysql # not compatible
query II rowsort label-7229
SELECT ALL + 2 AS col0, + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
18 values hashing to 59d6e482c3d9e632643f6eaaf2db0ae1

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

query II rowsort
SELECT ALL - 11 AS col1, - col2 * - 79 FROM tab0 AS cor0
----
-11
3713
-11
7821
-11
790

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL < + col0 / + ( + + 65 )
----

query I rowsort
SELECT - - col1 * + ( + ( + col0 ) ) * + 67 + + col1 - col0 FROM tab1 AS cor0
----
28395
286515
47801

onlyif mysql # aggregate syntax: 
query I rowsort label-7234
SELECT DISTINCT - - MAX( ALL - - col2 ) FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-7234
SELECT DISTINCT - - MAX ( ALL - - col2 ) FROM tab2 AS cor0
----
58

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

skipif mysql # not compatible
query I rowsort label-7235
SELECT + CAST ( NULL AS REAL ) + - SUM ( ALL - 88 ) AS col2 FROM tab0 cor0
----
NULL

query II rowsort
SELECT - col0, col2 * + - 24 AS col2 FROM tab2 AS cor0
----
-46
-552
-64
-960
-75
-1392

query I rowsort
SELECT DISTINCT col2 + - col1 * - - col2 AS col1 FROM tab0
----
-200
-3760
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7239
SELECT + col2 DIV 34 * - col2 + + col1 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-197
21
34

skipif mysql # not compatible
query I rowsort label-7239
SELECT + col2 / 34 * - col2 + + col1 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-197
21
34

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

query I rowsort
SELECT - - 65 * + col0 AS col2 FROM tab2 AS cor0
----
2990
4160
4875

query I rowsort
SELECT ALL 35 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

onlyif mysql # aggregate syntax: 
query I rowsort label-7243
SELECT ALL - MAX( + 21 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-21

skipif mysql # not compatible
query I rowsort label-7243
SELECT ALL - MAX ( + 21 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-21

onlyif mysql # CAST syntax: DECIMAL type: 
query IIIIII rowsort label-7244
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE CAST( NULL AS DECIMAL ) * - 57 IS NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

skipif mysql # not compatible
query IIIIII rowsort label-7244
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE CAST ( NULL AS REAL ) * - 57 IS NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

query II rowsort
SELECT - - 0 AS col0, - ( + - 97 ) FROM tab2 AS cor0
----
0
97
0
97
0
97

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 32 AS col0, col2 col2 FROM tab1 AS cor0
----
32
59
32
68
32
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7248
SELECT DISTINCT + 60 + + + 78 + - COUNT( * ) FROM tab0 AS cor0
----
135

skipif mysql # not compatible
query I rowsort label-7248
SELECT DISTINCT + 60 + + + 78 + - COUNT ( * ) FROM tab0 AS cor0
----
135

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

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

skipif mysql # not compatible
query I rowsort label-7250
SELECT ( MIN ( ALL col1 ) ) FROM tab1
----
5

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

query I rowsort
SELECT DISTINCT + col0 * col2 * - 71 FROM tab2
----
-181760
-308850
-75118

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

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

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

query I rowsort
SELECT - 21 AS col1 FROM tab0 AS cor0 WHERE ( - 78 ) + - - col0 <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7256
SELECT - col0 DIV col2 + col0 * col2 FROM tab0 AS cor0
----
705
862
9603

skipif mysql # not compatible
query I rowsort label-7256
SELECT - col0 / col2 + col0 * col2 FROM tab0 AS cor0
----
705
862
9603

query I rowsort
SELECT - + 30 + 49 AS col0 FROM tab2 AS cor0
----
19
19
19

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE 26 <= + + 87
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

skipif mysql # not compatible
query I rowsort label-7259
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7260
SELECT ALL + CAST( + + 43 AS SIGNED ) + - + MAX( - 90 ) AS col2 FROM tab1
----
133

skipif mysql # not compatible
query I rowsort label-7260
SELECT ALL + CAST ( + + 43 AS INTEGER ) + - + MAX ( - 90 ) AS col2 FROM tab1
----
133

onlyif mysql # DIV for integer division: 
query I rowsort label-7261
SELECT col1 DIV + - 63 - - + col0 AS col2 FROM tab0 AS cor0
----
14
87
97

skipif mysql # not compatible
query I rowsort label-7261
SELECT col1 / + - 63 - - + col0 AS col2 FROM tab0 AS cor0
----
14
87
97

query I rowsort
SELECT - col0 * col2 - ( + - 18 ) + + ( + - col2 ) AS col0 FROM tab0 AS cor0
----
-734
-862
-9684

query I rowsort
SELECT - - ( - + col0 ) - - col1 AS col0 FROM tab2 AS cor0
----
-8
13
5

onlyif mysql # DIV for integer division: 
query II rowsort label-7264
SELECT + 76 DIV col1 + - - col0 AS col2, + 68 + - col2 AS col2 FROM tab0 AS cor0
----
15
21
173
-31
90
58

skipif mysql # not compatible
query II rowsort label-7264
SELECT + 76 / col1 + - - col0 AS col2, + 68 + - col2 AS col2 FROM tab0 AS cor0
----
15
21
173
-31
90
58

query II rowsort
SELECT DISTINCT + col0 + col1 + + - col1 * + col1 AS col1, ( - + col1 ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7267
SELECT DISTINCT - 21 DIV + 85 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7267
SELECT DISTINCT - 21 / + 85 AS col1 FROM tab0
----
0

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7268
SELECT + 43 * COUNT ( * ) / + 69 col1 FROM tab1
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 col1, col2 * + 48 AS col2 FROM tab2
----
23
1104
40
1920
58
2784

onlyif mysql # aggregate syntax: 
query I rowsort label-7270
SELECT - MAX( - col1 ) col2 FROM tab0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7270
SELECT - MAX ( - col1 ) col2 FROM tab0
----
1

query II rowsort
SELECT - col1 AS col0, 71 * + + col0 FROM tab0
----
-1
6887
-21
6177
-81
1065

query II rowsort
SELECT DISTINCT + col2 AS col2, col0 AS col2 FROM tab1
----
59
85
68
91
96
51

query II rowsort
SELECT - - col2, + col2 * + + col0 AS col2 FROM tab0 AS cor0
----
10
870
47
705
99
9603

onlyif mysql # DIV for integer division: 
query I rowsort label-7274
SELECT DISTINCT + 2 DIV col1 * - 12 * - col2 - + - 41 AS col0 FROM tab0 AS cor0
----
2417
41

skipif mysql # not compatible
query I rowsort label-7274
SELECT DISTINCT + 2 / col1 * - 12 * - col2 - + - 41 AS col0 FROM tab0 AS cor0
----
2417
41

onlyif mysql # aggregate syntax: 
query I rowsort label-7275
SELECT DISTINCT ( + MAX( DISTINCT - 94 ) ) FROM tab2
----
-94

skipif mysql # not compatible
query I rowsort label-7275
SELECT DISTINCT ( + MAX ( DISTINCT - 94 ) ) FROM tab2
----
-94

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7276
SELECT ALL * FROM tab1 WHERE CAST( NULL AS SIGNED ) NOT BETWEEN col2 * + 87 AND - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7276
SELECT ALL * FROM tab1 WHERE CAST ( NULL AS INTEGER ) NOT BETWEEN col2 * + 87 AND - CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7277
SELECT DISTINCT * FROM tab0 WHERE NOT col1 + col0 * - CAST( - 0 AS DECIMAL ) IN ( col1 )
----

skipif mysql # not compatible
query III rowsort label-7277
SELECT DISTINCT * FROM tab0 WHERE NOT col1 + col0 * - CAST ( - 0 AS REAL ) IN ( col1 )
----

query I rowsort
SELECT + col2 * 91 + col1 * col1 FROM tab0
----
10838
1351
9010

query I rowsort
SELECT ALL - col0 AS col1 FROM tab2 WHERE NOT NULL > + col1
----

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

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - col1 ) >= ( NULL )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7284
SELECT SUM( ALL + col2 ) + COUNT( * ) FROM tab2 WHERE NOT NULL >= col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7284
SELECT SUM ( ALL + col2 ) + COUNT ( * ) FROM tab2 WHERE NOT NULL >= col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7285
SELECT ( COUNT( * ) ) + - MAX( col1 ) AS col1 FROM tab0 WHERE NOT NULL < ( - col0 + col2 * + col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7285
SELECT ( COUNT ( * ) ) + - MAX ( col1 ) AS col1 FROM tab0 WHERE NOT NULL < ( - col0 + col2 * + col0 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7286
SELECT 42 * COUNT( DISTINCT + 34 * + 59 ) FROM tab1
----
42

skipif mysql # not compatible
query I rowsort label-7286
SELECT 42 * COUNT ( DISTINCT + 34 * + 59 ) FROM tab1
----
42

query I rowsort
SELECT DISTINCT + 60 * col1 FROM tab1
----
2820
300
840

query I rowsort
SELECT ALL - col0 + + 49 FROM tab1
----
-2
-36
-42

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7289
SELECT ALL - COUNT ( - 99 ) * - 7 + COUNT ( * ) col0 FROM tab0 WHERE - col1 IS NULL
----
0

query I rowsort
SELECT ALL 65 * + ( + col0 * col0 ) AS col2 FROM tab0
----
14625
491985
611585

query I rowsort
SELECT + col0 * + 6 FROM tab0
----
522
582
90

query I rowsort
SELECT - 94 * 51 FROM tab2
----
-4794
-4794
-4794

query I rowsort
SELECT - col1 * + col1 + 41 * ( col2 + col0 * 60 ) FROM tab0
----
213989
242678
32266

query I rowsort
SELECT DISTINCT + col2 * ( ( - col2 ) ) FROM tab1
----
-3481
-4624
-9216

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7295
SELECT * FROM tab2 WHERE + CAST( NULL AS SIGNED ) / - col1 + 18 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7295
SELECT * FROM tab2 WHERE + CAST ( NULL AS INTEGER ) / - col1 + 18 IS NOT NULL
----

query I rowsort
SELECT - ( 31 ) FROM tab0
----
-31
-31
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-7297
SELECT DISTINCT - 87 + + 95 DIV col1 AS col0 FROM tab1 AS cor0
----
-68
-81
-85

skipif mysql # not compatible
query I rowsort label-7297
SELECT DISTINCT - 87 + + 95 / col1 AS col0 FROM tab1 AS cor0
----
-68
-81
-85

query I rowsort
SELECT col1 * 53 AS col0 FROM tab0 AS cor0
----
1113
4293
53

query I rowsort
SELECT 28 - - col1 * + col0 FROM tab0 AS cor0
----
1243
125
1855

onlyif mysql # aggregate syntax: 
query I rowsort label-7300
SELECT MIN( DISTINCT col1 ) - + 90 AS col2 FROM tab1 AS cor0
----
-85

skipif mysql # not compatible
query I rowsort label-7300
SELECT MIN ( DISTINCT col1 ) - + 90 AS col2 FROM tab1 AS cor0
----
-85

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7301
SELECT ALL * FROM tab1 AS cor0 WHERE ( col2 ) BETWEEN col2 AND CAST( + col2 AS SIGNED )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7301
SELECT ALL * FROM tab1 AS cor0 WHERE ( col2 ) BETWEEN col2 AND CAST ( + col2 AS INTEGER )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 73 FROM tab0 AS cor0 CROSS JOIN tab2
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 35 * - ( col1 * + col1 ) + 75 col1 FROM tab2
----
-157040
-207440
-90960

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) >= - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7305
SELECT DISTINCT COUNT( * ) * 0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7305
SELECT DISTINCT COUNT ( * ) * 0 FROM tab2
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 * col0 - - 96 > 29 + 86
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 * - 55 BETWEEN ( + col1 ) AND ( col1 * 98 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 9 - 58 NOT BETWEEN col2 AND 78
----

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

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

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

query I rowsort
SELECT - 46 * + col1 FROM tab2 AS cor0
----
-2346
-3082
-3542

query I rowsort
SELECT ALL col2 + col1 FROM tab0 cor0 WHERE NOT ( NULL ) >= ( + 12 ) * col0
----

query I rowsort
SELECT 87 * - col0 FROM tab2 cor0
----
-4002
-5568
-6525

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

skipif mysql # not compatible
query I rowsort label-7314
SELECT MAX ( + 38 ) FROM tab0 AS cor0
----
38

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

query III rowsort
SELECT * FROM tab2 WHERE NOT + 81 - ( col1 ) NOT IN ( col1 + col2 * - col0 )
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7317
SELECT ALL - MAX ( ALL - col1 ) col1 FROM tab2
----
51

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7319
SELECT ALL + - COUNT( DISTINCT + - 67 ) * 49 FROM tab0 AS cor0
----
-49

skipif mysql # not compatible
query I rowsort label-7319
SELECT ALL + - COUNT ( DISTINCT + - 67 ) * 49 FROM tab0 AS cor0
----
-49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7320
SELECT DISTINCT MIN( ALL - 29 ) DIV + 26 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7320
SELECT DISTINCT MIN ( ALL - 29 ) / + 26 FROM tab2 AS cor0
----
-1

query I rowsort
SELECT ALL + + col1 * - + col1 - + ( - col2 ) * 1 AS col0 FROM tab0 AS cor0
----
-431
-6514
98

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7323
SELECT DISTINCT + SUM( + + 54 ) DIV COUNT( * ) FROM tab2 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-7323
SELECT DISTINCT + SUM ( + + 54 ) / COUNT ( * ) FROM tab2 AS cor0
----
54

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE + 3 IS NULL
----

query I rowsort
SELECT ALL + col1 + - 58 * col1 FROM tab1 AS cor0
----
-2679
-285
-798

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

skipif mysql # not compatible
query I rowsort label-7326
SELECT MAX ( DISTINCT + 53 ) FROM tab2 AS cor0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-7327
SELECT ALL + COUNT( ALL - - 58 ) * + ( + MAX( ( col0 ) ) ) * + COUNT( * ) FROM tab1
----
819

skipif mysql # not compatible
query I rowsort label-7327
SELECT ALL + COUNT ( ALL - - 58 ) * + ( + MAX ( ( col0 ) ) ) * + COUNT ( * ) FROM tab1
----
819

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

query I rowsort
SELECT DISTINCT + ( 12 ) FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
12

query I rowsort
SELECT DISTINCT + col0 * - col2 + - col1 + + 2 AS col1 FROM tab1 AS cor0
----
-4908
-5018
-6233

query III rowsort
SELECT * FROM tab1 cor0 WHERE + col2 NOT BETWEEN ( - ( + 51 ) * 84 ) AND ( col0 )
----
51
14
96

query I rowsort
SELECT DISTINCT + + ( col0 ) * - 32 FROM tab1 AS cor0
----
-1632
-2720
-2912

query I rowsort
SELECT ALL - 21 + - col0 AS col1 FROM tab2 AS cor0
----
-67
-85
-96

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

query I rowsort
SELECT - 56 * - 50 FROM tab1 AS cor0 WHERE NULL IS NULL
----
2800
2800
2800

query I rowsort
SELECT + 17 * + 95 FROM tab1 AS cor0
----
1615
1615
1615

query I rowsort
SELECT ALL - - 33 + col0 AS col2 FROM tab2 AS cor0
----
108
79
97

query I rowsort
SELECT ALL - 92 + - 9 FROM tab1 AS cor0 WHERE col0 * + col2 IS NOT NULL
----
-101
-101
-101

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7339
SELECT DISTINCT 27 + - CAST( col0 AS SIGNED ) col0 FROM tab1 AS cor0
----
-24
-58
-64

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7339
SELECT DISTINCT 27 + - CAST ( col0 AS INTEGER ) col0 FROM tab1 AS cor0
----
-24
-58
-64

query I rowsort
SELECT DISTINCT + col0 * - 58 + col0 AS col0 FROM tab2
----
-2622
-3648
-4275

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

query I rowsort
SELECT ALL 11 - - 38 FROM tab2
----
49
49
49

onlyif mysql # aggregate syntax: 
query I rowsort label-7343
SELECT - ( + SUM( DISTINCT col2 ) ) AS col1 FROM tab1 WHERE NOT + 20 <= NULL AND NOT NULL <> - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7343
SELECT - ( + SUM ( DISTINCT col2 ) ) AS col1 FROM tab1 WHERE NOT + 20 <= NULL AND NOT NULL <> - col1
----
NULL

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

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

query I rowsort
SELECT 11 FROM tab2 WHERE 71 <= NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7346
SELECT 75 + - - ( - ( MAX( DISTINCT - col2 ) ) ) DIV + 98 FROM tab1
----
75

skipif mysql # not compatible
query I rowsort label-7346
SELECT 75 + - - ( - ( MAX ( DISTINCT - col2 ) ) ) / + 98 FROM tab1
----
75

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7348
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN - CAST( col2 AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-7348
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN - CAST ( col2 AS INTEGER ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7349
SELECT DISTINCT + ( + col0 ) AS col2, + col0 + - CAST( col1 AS SIGNED ) + + col0 col2 FROM tab0 cor0
----
15
-51
87
153
97
193

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7349
SELECT DISTINCT + ( + col0 ) AS col2, + col0 + - CAST ( col1 AS INTEGER ) + + col0 col2 FROM tab0 cor0
----
15
-51
87
153
97
193

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( 13 + col0 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col1, 3 FROM tab1
----
51
3
85
3
91
3

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

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

skipif mysql # not compatible
query I rowsort label-7354
SELECT MAX ( + col2 ) AS col1 FROM tab2 cor0
----
58

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

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

query I rowsort
SELECT ALL - ( col0 ) FROM tab2 AS cor0 WHERE ( 49 * + col0 * 10 ) IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7358
SELECT ALL + MIN( 73 ) AS col2 FROM tab0
----
73

skipif mysql # not compatible
query I rowsort label-7358
SELECT ALL + MIN ( 73 ) AS col2 FROM tab0
----
73

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT ( ( + col0 * + col0 ) < ( 9 ) ) )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-7360
SELECT col2 DIV + col1, + 5 AS col2 FROM tab0
----
0
5
0
5
99
5

skipif mysql # not compatible
query II rowsort label-7360
SELECT col2 / + col1, + 5 AS col2 FROM tab0
----
0
5
0
5
99
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7361
SELECT DISTINCT - COUNT( DISTINCT ( - CAST( NULL AS SIGNED ) ) ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7361
SELECT DISTINCT - COUNT ( DISTINCT ( - CAST ( NULL AS INTEGER ) ) ) FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - + 28 col1 FROM tab2
----
-1288
-1792
-2100

query I rowsort
SELECT DISTINCT col1 * + - col0 FROM tab2
----
-2346
-4928
-5025

onlyif mysql # aggregate syntax: 
query II rowsort label-7364
SELECT COUNT( * ) AS col2, 64 FROM tab0
----
3
64

skipif mysql # not compatible
query II rowsort label-7364
SELECT COUNT ( * ) AS col2, 64 FROM tab0
----
3
64

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

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

query II rowsort
SELECT ALL + 33 AS col1, 93 + + - col2 AS col2 FROM tab1 cor0
----
33
-3
33
25
33
34

onlyif mysql # aggregate syntax: 
query I rowsort label-7367
SELECT DISTINCT - - COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) > NULL
----
0

skipif mysql # not compatible
query I rowsort label-7367
SELECT DISTINCT - - COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) > NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7368
SELECT + 83 * + MIN( col1 ) FROM tab1
----
415

skipif mysql # not compatible
query I rowsort label-7368
SELECT + 83 * + MIN ( col1 ) FROM tab1
----
415

onlyif mysql # aggregate syntax: 
query I rowsort label-7369
SELECT ALL - + COUNT( * ) * 53 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-477

skipif mysql # not compatible
query I rowsort label-7369
SELECT ALL - + COUNT ( * ) * 53 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-477

query I rowsort
SELECT col0 + 85 + + col2 AS col0 FROM tab2 AS cor0
----
154
189
218

onlyif mysql # aggregate syntax: 
query I rowsort label-7371
SELECT DISTINCT + COUNT( * ) FROM tab2 cor0 WHERE + col0 <= + col2
----
0

skipif mysql # not compatible
query I rowsort label-7371
SELECT DISTINCT + COUNT ( * ) FROM tab2 cor0 WHERE + col0 <= + col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7372
SELECT DISTINCT - - 68 DIV + col1 + + 33 col2 FROM tab0 AS cor0
----
101
33
36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7372
SELECT DISTINCT - - 68 / + col1 + + 33 col2 FROM tab0 AS cor0
----
101
33
36

query I rowsort
SELECT DISTINCT - 93 + 34 FROM tab1
----
-59

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

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

query III rowsort
SELECT * FROM tab0 WHERE + + 96 < col0 + - col2
----

query I rowsort
SELECT DISTINCT - + col0 - + 72 FROM tab1 WHERE NULL <> NULL
----

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

skipif mysql # not compatible
query I rowsort label-7377
SELECT DISTINCT + col0 / - + col0 AS col2 FROM tab0
----
-1

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

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

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

query I rowsort
SELECT DISTINCT + col1 FROM tab1 WHERE NOT - - col1 IN ( - + col2 * - 48 * + col0 )
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7381
SELECT 42 + - 87 + + col2 + 11 + - - col2 * + col2 * - CAST( NULL AS SIGNED ) col2 FROM tab0 WHERE NULL BETWEEN NULL AND NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7381
SELECT 42 + - 87 + + col2 + 11 + - - col2 * + col2 * - CAST ( NULL AS INTEGER ) col2 FROM tab0 WHERE NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + + col1 - + 49 FROM tab1 AS cor0
----
-2
-35
-44

query I rowsort
SELECT DISTINCT - 23 AS col0 FROM tab2 cor0
----
-23

query I rowsort
SELECT + col0 * + + col2 * - 8 AS col0 FROM tab2 AS cor0
----
-20480
-34800
-8464

onlyif mysql # aggregate syntax: 
query I rowsort label-7385
SELECT MAX( - 57 ) FROM tab0
----
-57

skipif mysql # not compatible
query I rowsort label-7385
SELECT MAX ( - 57 ) FROM tab0
----
-57

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

skipif mysql # not compatible
query II rowsort label-7386
SELECT ALL + col2 / + - CAST ( NULL AS INTEGER ), 17 AS col2 FROM tab0
----
NULL
17
NULL
17
NULL
17

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

query I rowsort
SELECT - col0 * + - 3 - + + col0 AS col1 FROM tab1 cor0
----
102
170
182

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

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

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

skipif mysql # not compatible
query I rowsort label-7390
SELECT + 85 * + - col0 / 77 / ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

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

query I rowsort
SELECT ALL 26 * - + col0 AS col1 FROM tab1
----
-1326
-2210
-2366

query I rowsort
SELECT 53 * - - col1 AS col2 FROM tab2
----
2703
3551
4081

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7394
SELECT ALL * FROM tab0 WHERE ( CAST( NULL AS SIGNED ) * col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7394
SELECT ALL * FROM tab0 WHERE ( CAST ( NULL AS INTEGER ) * col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query I rowsort
SELECT ALL + 6 + col1 * + col2 FROM tab0 AS cor0
----
105
216
3813

query I rowsort
SELECT - col2 + + 84 FROM tab0 AS cor0
----
-15
37
74

onlyif mysql # aggregate syntax: 
query I rowsort label-7398
SELECT DISTINCT + - COUNT( DISTINCT + 38 ) col0 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7398
SELECT DISTINCT + - COUNT ( DISTINCT + 38 ) col0 FROM tab1 AS cor0
----
-1

query I rowsort
SELECT ( + col0 ) * - 32 FROM tab1 AS cor0
----
-1632
-2720
-2912

onlyif mysql # DIV for integer division: 
query I rowsort label-7400
SELECT col2 * - col1 DIV - col1 + col0 AS col2 FROM tab2 AS cor0
----
104
133
69

skipif mysql # not compatible
query I rowsort label-7400
SELECT col2 * - col1 / - col1 + col0 AS col2 FROM tab2 AS cor0
----
104
133
69

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7406
SELECT + 76 * - COUNT( - col0 ) col1 FROM tab1 cor0 WHERE ( + col1 ) <> ( col2 * - ( + col0 ) )
----
-228

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7406
SELECT + 76 * - COUNT ( - col0 ) col1 FROM tab1 cor0 WHERE ( + col1 ) <> ( col2 * - ( + col0 ) )
----
-228

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7407
SELECT col2 - + 69 + - CAST( CAST( col1 AS SIGNED ) AS SIGNED ) * - col0 AS col2, col1 + + 50 AS col0 FROM tab2 AS cor0
----
2300
101
4899
127
5014
117

skipif mysql # not compatible
query II rowsort label-7407
SELECT col2 - + 69 + - CAST ( CAST ( col1 AS INTEGER ) AS INTEGER ) * - col0 AS col2, col1 + + 50 AS col0 FROM tab2 AS cor0
----
2300
101
4899
127
5014
117

query I rowsort
SELECT DISTINCT ( + 41 ) + - col1 FROM tab1 cor0
----
-6
27
36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 75 - + col0 * col2 col0 FROM tab2 AS cor0
----
-2485
-4275
-983

query III rowsort
SELECT * FROM tab2 WHERE - - ( 12 ) BETWEEN 36 AND col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7411
SELECT + col2 * 55 * + ( + col1 ) / + - col1 * + col2 FROM tab2 WHERE - + 38 BETWEEN NULL AND col0 + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-7411
SELECT + col2 * 55 * + ( + col1 ) / + - col1 * + col2 FROM tab2 WHERE - + 38 BETWEEN NULL AND col0 + CAST ( NULL AS REAL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7412
SELECT * FROM tab1 WHERE NULL BETWEEN + - 21 * - ( + col1 ) + CAST( NULL AS SIGNED ) / col1 AND 38
----

skipif mysql # not compatible
query III rowsort label-7412
SELECT * FROM tab1 WHERE NULL BETWEEN + - 21 * - ( + col1 ) + CAST ( NULL AS INTEGER ) / col1 AND 38
----

query I rowsort
SELECT 44 + + 64 FROM tab2
----
108
108
108

query I rowsort
SELECT DISTINCT col2 + ( ( 79 ) ) * + col2 * - + ( + + col2 ) + - col2 AS col2 FROM tab1
----
-274999
-365296
-728064

onlyif mysql # aggregate syntax: 
query II rowsort label-7415
SELECT DISTINCT SUM( DISTINCT + col0 ) AS col1, + 56 + + + 57 AS col2 FROM tab0
----
199
113

skipif mysql # not compatible
query II rowsort label-7415
SELECT DISTINCT SUM ( DISTINCT + col0 ) AS col1, + 56 + + + 57 AS col2 FROM tab0
----
199
113

query I rowsort
SELECT ALL 17 - - col2 FROM tab0
----
116
27
64

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7418
SELECT + 65 DIV + col2 + + + col2 * col1 AS col0 FROM tab2 AS cor0
----
1175
3081
3887

skipif mysql # not compatible
query I rowsort label-7418
SELECT + 65 / + col2 + + + col2 * col1 AS col0 FROM tab2 AS cor0
----
1175
3081
3887

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT ( col1 + - - 84 * - 79 / + + col1 + + 57 + col1 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 69 col2, + 15 * + 31 AS col2 FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
69
465
69
465
69
465

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

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

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

query II rowsort
SELECT ALL + col2 AS col1, col0 * col2 AS col2 FROM tab1 AS cor0
----
59
5015
68
6188
96
4896

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

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

query I rowsort
SELECT - col0 + - 81 AS col2 FROM tab1
----
-132
-166
-172

query I rowsort
SELECT DISTINCT - col2 + ( + col1 ) AS col2 FROM tab1
----
-21
-54
-82

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

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

query I rowsort
SELECT ALL 90 * - 99 FROM tab0
----
-8910
-8910
-8910

query I rowsort
SELECT - col1 + + 78 * - + col2 AS col2 FROM tab2
----
-1845
-3197
-4591

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

query I rowsort
SELECT - ( - col1 ) * 9 FROM tab2 AS cor0
----
459
603
693

query I rowsort
SELECT ALL + col2 + - 7 FROM tab0 AS cor0
----
3
40
92

onlyif mysql # aggregate syntax: 
query I rowsort label-7434
SELECT DISTINCT 15 + + COUNT( * ) * - - MAX( DISTINCT + col1 ) col0 FROM tab2 cor0
----
246

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7434
SELECT DISTINCT 15 + + COUNT ( * ) * - - MAX ( DISTINCT + col1 ) col0 FROM tab2 cor0
----
246

query II rowsort
SELECT DISTINCT + - col2 + + col1 AS col0, - col1 + - col2 AS col1 FROM tab2 AS cor0
----
28
-74
37
-117
9
-125

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7436
SELECT ALL * FROM tab0 WHERE NULL <= + CAST( col0 AS SIGNED ) * - 70 * + 18 * + col0 + + - col1
----

skipif mysql # not compatible
query III rowsort label-7436
SELECT ALL * FROM tab0 WHERE NULL <= + CAST ( col0 AS INTEGER ) * - 70 * + 18 * + col0 + + - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 72 col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

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

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

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

query I rowsort
SELECT ALL + col1 * - + 41 AS col2 FROM tab1 AS cor0
----
-1927
-205
-574

query I rowsort
SELECT - 91 * + 43 AS col2 FROM tab2 AS cor0
----
-3913
-3913
-3913

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7444
SELECT col2 DIV 28 * + + col0 + - - col1 + col1 * - col1 FROM tab0 WHERE NOT + + col0 IS NULL
----
-420
-6465
291

skipif mysql # not compatible
query I rowsort label-7444
SELECT col2 / 28 * + + col0 + - - col1 + col1 * - col1 FROM tab0 WHERE NOT + + col0 IS NULL
----
-420
-6465
291

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

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

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

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

query I rowsort
SELECT + - 56 AS col0 FROM tab0 cor0
----
-56
-56
-56

query I rowsort
SELECT DISTINCT - col2 * - - 25 + + ( - 51 ) AS col0 FROM tab2 AS cor0
----
-1051
-1501
-626

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

skipif mysql # not compatible
query I rowsort label-7449
SELECT ALL - - COUNT ( * ) * COUNT ( * ) AS col2 FROM tab0 AS cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7450
SELECT DISTINCT - col2 * CAST( + + col2 AS SIGNED ) + + - 25 AS col1 FROM tab2 AS cor0
----
-1625
-3389
-554

skipif mysql # not compatible
query I rowsort label-7450
SELECT DISTINCT - col2 * CAST ( + + col2 AS INTEGER ) + + - 25 AS col1 FROM tab2 AS cor0
----
-1625
-3389
-554

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

skipif mysql # not compatible
query I rowsort label-7451
SELECT DISTINCT - COUNT ( * ) / COUNT ( ALL + + col0 ) * 97 FROM tab1 AS cor0
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7452
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col1 AND 14 / ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-7452
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col1 AND 14 / ( - CAST ( NULL AS INTEGER ) )
----

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

query I rowsort
SELECT ALL col1 * + 18 + - 37 * + - 39 * - col2 AS col0 FROM tab2 WHERE NOT 33 IS NULL
----
-32271
-56334
-82488

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT IN ( + col0, + col0, 97 + + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7456
SELECT ALL MIN( 32 ) AS col1 FROM tab2, tab1 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-7456
SELECT ALL MIN ( 32 ) AS col1 FROM tab2, tab1 AS cor0
----
32

query I rowsort
SELECT col2 + + 82 + 84 * + - col0 FROM tab1 cor0
----
-4106
-6999
-7494

query I rowsort
SELECT ALL - col2 - + 18 AS col1 FROM tab1 AS cor0
----
-114
-77
-86

query I rowsort
SELECT ALL + 34 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7462
SELECT DISTINCT + + 48 * 91 FROM tab2 AS cor0 WHERE NOT + ( - CAST( NULL AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-7462
SELECT DISTINCT + + 48 * 91 FROM tab2 AS cor0 WHERE NOT + ( - CAST ( NULL AS INTEGER ) ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7463
SELECT - CAST( + ( 89 ) AS SIGNED ) - - + ( - col0 ) FROM tab1 cor0
----
-140
-174
-180

skipif mysql # not compatible
query I rowsort label-7463
SELECT - CAST ( + ( 89 ) AS INTEGER ) - - + ( - col0 ) FROM tab1 cor0
----
-140
-174
-180

query I rowsort
SELECT - - 12 - col0 FROM tab0 AS cor0
----
-3
-75
-85

query I rowsort
SELECT 97 * - 60 - - + 99 FROM tab2 AS cor0
----
-5721
-5721
-5721

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-7466
SELECT * FROM tab1 AS cor0 WHERE CAST( - CAST( + + ( + 70 ) AS SIGNED ) AS DECIMAL ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7466
SELECT * FROM tab1 AS cor0 WHERE CAST ( - CAST ( + + ( + 70 ) AS INTEGER ) AS REAL ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7468
SELECT ALL COUNT( * ) + - MAX( ALL + 98 ) AS col2 FROM tab2
----
-95

skipif mysql # not compatible
query I rowsort label-7468
SELECT ALL COUNT ( * ) + - MAX ( ALL + 98 ) AS col2 FROM tab2
----
-95

query I rowsort
SELECT DISTINCT + col2 FROM tab2 WHERE NOT ( col0 * + col1 + - col1 ) NOT BETWEEN - col2 * - - 5 AND 22
----

query I rowsort
SELECT + - 26 AS col2 FROM tab1 WHERE NOT + 95 IS NOT NULL
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2, + ( - col1 ) col1 FROM tab1
----
59
-5
68
-47
96
-14

query I rowsort
SELECT col1 * - + 20 FROM tab1
----
-100
-280
-940

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7474
SELECT ALL col1 AS col1 FROM tab0 AS cor0 WHERE NULL >= + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-7474
SELECT ALL col1 AS col1 FROM tab0 AS cor0 WHERE NULL >= + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL + col1 * - col0 - - 63 AS col0 FROM tab1 AS cor0
----
-362
-4214
-651

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

query I rowsort
SELECT DISTINCT - + col1 * + col1 * + + 19 FROM tab1 AS cor0
----
-3724
-41971
-475

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

skipif mysql # not compatible
query I rowsort label-7478
SELECT ALL 54 FROM tab0 AS cor0 WHERE CAST ( NULL AS REAL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT 20 + - + col0 FROM tab2 AS cor0
----
-26
-44
-55

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab0 WHERE NOT + col1 IN ( + col1 * + col1 )
----
15
87

query I rowsort
SELECT + col1 + 1 AS col1 FROM tab0
----
2
22
82

onlyif mysql # aggregate syntax: 
query I rowsort label-7482
SELECT ALL 83 + + + COUNT( * ) FROM tab2
----
86

skipif mysql # not compatible
query I rowsort label-7482
SELECT ALL 83 + + + COUNT ( * ) FROM tab2
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-7483
SELECT DISTINCT - - COUNT( * ) * - ( + COUNT( * ) ) + 3 + - + 65 AS col0 FROM tab1 WHERE NOT + col1 + col2 <> col0
----
-62

skipif mysql # not compatible
query I rowsort label-7483
SELECT DISTINCT - - COUNT ( * ) * - ( + COUNT ( * ) ) + 3 + - + 65 AS col0 FROM tab1 WHERE NOT + col1 + col2 <> col0
----
-62

query I rowsort
SELECT ALL - - ( - col0 ) + + + col0 * col1 FROM tab1 AS cor0
----
340
4186
663

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

query I rowsort
SELECT + col2 * - + col0 + 23 * + 10 FROM tab2 cor0 WHERE + 43 * col2 IS NOT NULL
----
-2330
-4120
-828

onlyif mysql # aggregate syntax: 
query II rowsort label-7487
SELECT - COUNT( * ) + - - 47 AS col2, 72 col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
38
72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7487
SELECT - COUNT ( * ) + - - 47 AS col2, 72 col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
38
72

query I rowsort
SELECT ALL - + 85 - col1 AS col1 FROM tab2 cor0
----
-136
-152
-162

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 83 > - col0
----

query I rowsort
SELECT ALL col1 - + + 28 FROM tab1 AS cor0
----
-14
-23
19

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

query I rowsort
SELECT DISTINCT ( - 18 ) AS col1 FROM tab0 cor0
----
-18

query I rowsort
SELECT + col1 * - 3 FROM tab2 AS cor0
----
-153
-201
-231

query I rowsort
SELECT ALL col0 * + 53 * + 70 * + - col0 FROM tab0
----
-28080990
-34907390
-834750

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7497
SELECT CAST( + - COUNT( * ) AS SIGNED ), + 97 AS col0 FROM tab2 AS cor0
----
-3
97

skipif mysql # not compatible
query II rowsort label-7497
SELECT CAST ( + - COUNT ( * ) AS INTEGER ), + 97 AS col0 FROM tab2 AS cor0
----
-3
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7498
SELECT - + CAST( + MIN( - + 34 ) AS SIGNED ) FROM tab2 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-7498
SELECT - + CAST ( + MIN ( - + 34 ) AS INTEGER ) FROM tab2 AS cor0
----
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + 72 col1 FROM tab2
----
-3312
-4608
-5400

query I rowsort
SELECT ALL - - 90 * col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
1260
4230
450

onlyif mysql # aggregate syntax: 
query I rowsort label-7501
SELECT DISTINCT - 85 * - MAX( ALL + ( + + col1 ) ) FROM tab1 AS cor0
----
3995

skipif mysql # not compatible
query I rowsort label-7501
SELECT DISTINCT - 85 * - MAX ( ALL + ( + + col1 ) ) FROM tab1 AS cor0
----
3995

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - ( - col2 ) > + col0 / + + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + + ( + col2 ) FROM tab0 AS cor0 WHERE 48 IS NULL
----

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

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

skipif mysql # not compatible
query I rowsort label-7505
SELECT ALL - + col1 + col1 - - col0 / col2 FROM tab2 AS cor0
----
1
1
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7506
SELECT DISTINCT + 77 DIV - MIN( DISTINCT col0 ) AS col0 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7506
SELECT DISTINCT + 77 / - MIN ( DISTINCT col0 ) AS col0 FROM tab2 AS cor0
----
-1

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7507
SELECT - AVG ( - - CAST ( NULL AS REAL ) ) col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col2 + + 98 AS col2 FROM tab0 AS cor0
----
108
145
197

query I rowsort
SELECT ALL - - col0 + col0 * - 7 FROM tab0 cor0
----
-522
-582
-90

query I rowsort
SELECT DISTINCT - col0 + - - 44 FROM tab2
----
-2
-20
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-7511
SELECT DISTINCT + col2 DIV - 24 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-2
-4

skipif mysql # not compatible
query I rowsort label-7511
SELECT DISTINCT + col2 / - 24 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-2
-4

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7513
SELECT SUM( 55 ) + + 20 * + COUNT( * ) FROM tab2
----
225

skipif mysql # not compatible
query I rowsort label-7513
SELECT SUM ( 55 ) + + 20 * + COUNT ( * ) FROM tab2
----
225

onlyif mysql # DIV for integer division: 
query I rowsort label-7514
SELECT ALL 40 - + + col0 DIV - col2 AS col2 FROM tab0
----
40
40
48

skipif mysql # not compatible
query I rowsort label-7514
SELECT ALL 40 - + + col0 / - col2 AS col2 FROM tab0
----
40
40
48

onlyif mysql # DIV for integer division: 
query I rowsort label-7515
SELECT ALL col0 DIV + 45 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7515
SELECT ALL col0 / + 45 FROM tab2
----
1
1
1

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

query I rowsort
SELECT ALL + 63 + col2 AS col1 FROM tab1 AS cor0
----
122
131
159

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 13 + + + col0 col2 FROM tab2 AS cor0
----
33
51
62

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7520
SELECT DISTINCT + 18, MIN( 7 ) * - 37 AS col0 FROM tab0, tab1 AS cor0
----
18
-259

skipif mysql # not compatible
query II rowsort label-7520
SELECT DISTINCT + 18, MIN ( 7 ) * - 37 AS col0 FROM tab0, tab1 AS cor0
----
18
-259

query I rowsort
SELECT - 84 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 975e2ef2a3bf1ee2622362f4e435752f

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7522
SELECT * FROM tab2 WHERE NOT - col1 * - - CAST( NULL AS SIGNED ) NOT BETWEEN + + ( - + ( + 91 ) ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-7522
SELECT * FROM tab2 WHERE NOT - col1 * - - CAST ( NULL AS INTEGER ) NOT BETWEEN + + ( - + ( + 91 ) ) AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL <> col2 + - 35 * + 0
----

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

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 18 * + - col2 col1 FROM tab1
----
-1062
-1224
-1728

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col0 col1, 74 AS col0 FROM tab1 AS cor0
----
51
74
85
74
91
74

query I rowsort
SELECT ALL - 93 FROM tab0 AS cor0 WHERE NOT 96 + 78 * - + col0 = - 77
----
-93
-93
-93

query I rowsort
SELECT DISTINCT col0 * - - col0 AS col0 FROM tab1
----
2601
7225
8281

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - - 35 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

skipif mysql # not compatible
query I rowsort label-7534
SELECT - COUNT ( * ) * - CAST ( + 15 AS INTEGER ) AS col1 FROM tab1
----
45

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7536
SELECT ALL - CAST( NULL AS SIGNED ) * - + 79, col0 col2 FROM tab2 cor0
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7536
SELECT ALL - CAST ( NULL AS INTEGER ) * - + 79, col0 col2 FROM tab2 cor0
----
NULL
46
NULL
64
NULL
75

query I rowsort
SELECT + col0 * - 58 AS col0 FROM tab1 AS cor0 WHERE + col1 IS NOT NULL
----
-2958
-4930
-5278

onlyif mysql # aggregate syntax: 
query I rowsort label-7538
SELECT 20 + + COUNT( * ) AS col0 FROM tab1 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-7538
SELECT 20 + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
23

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7540
SELECT 40 + - col1 * col0 / CAST( NULL AS SIGNED ) * + ( - 28 ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7540
SELECT 40 + - col1 * col0 / CAST ( NULL AS INTEGER ) * + ( - 28 ) AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7541
SELECT ALL col1 DIV + + 91 * - col0 + - - col1 AS col0 FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-7541
SELECT ALL col1 / + + 91 * - col0 + - - col1 AS col0 FROM tab0
----
1
21
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7542
SELECT - COUNT( * ) * + CAST( MAX( ALL col1 ) AS SIGNED ) * - - 16 FROM tab1
----
-2256

skipif mysql # not compatible
query I rowsort label-7542
SELECT - COUNT ( * ) * + CAST ( MAX ( ALL col1 ) AS INTEGER ) * - - 16 FROM tab1
----
-2256

query I rowsort
SELECT ALL 5 - + - col1 FROM tab2
----
56
72
82

query I rowsort
SELECT + col1 * + 6 AS col2 FROM tab1
----
282
30
84

query I rowsort
SELECT DISTINCT col0 - - 92 AS col0 FROM tab1
----
143
177
183

query II rowsort
SELECT 58 AS col2, + col0 FROM tab2
----
58
46
58
64
58
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7547
SELECT COUNT( * ) * + + 16 FROM tab0
----
48

skipif mysql # not compatible
query I rowsort label-7547
SELECT COUNT ( * ) * + + 16 FROM tab0
----
48

query I rowsort
SELECT DISTINCT 89 - + - col0 AS col1 FROM tab1
----
140
174
180

query I rowsort
SELECT DISTINCT col0 + + 35 * ( - + col1 ) + - col0 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( - ( - col1 ) )
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7551
SELECT ALL * FROM tab2 AS cor0 WHERE + 19 - + + col0 + + + col2 * col1 / + + 73 + - col2 IN ( + + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-7551
SELECT ALL * FROM tab2 AS cor0 WHERE + 19 - + + col0 + + + col2 * col1 / + + 73 + - col2 IN ( + + CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT 83 AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

query II rowsort
SELECT - - 48 AS col1, + col0 * + col1 FROM tab2 AS cor0
----
48
2346
48
4928
48
5025

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

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

query I rowsort
SELECT DISTINCT col0 * + - 87 * + + col0 FROM tab2 AS cor0
----
-184092
-356352
-489375

query I rowsort
SELECT col2 * - ( - - ( + 57 ) ) AS col0 FROM tab1 cor0
----
-3363
-3876
-5472

query I rowsort
SELECT ALL - + col0 * + ( 96 ) AS col2 FROM tab1 AS cor0
----
-4896
-8160
-8736

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

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

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

skipif mysql # not compatible
query I rowsort label-7560
SELECT - 52 / - - 99 AS col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7561
SELECT - + 62 DIV col1 * - col1 AS col1 FROM tab1 AS cor0
----
47
56
60

skipif mysql # not compatible
query I rowsort label-7561
SELECT - + 62 / col1 * - col1 AS col1 FROM tab1 AS cor0
----
47
56
60

query I rowsort
SELECT - col2 FROM tab1 AS cor0 WHERE NOT ( ( 97 IS NOT NULL ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7563
SELECT DISTINCT col0 DIV - ( col1 ) FROM tab2
----
-1
0

skipif mysql # not compatible
query I rowsort label-7563
SELECT DISTINCT col0 / - ( col1 ) FROM tab2
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7564
SELECT ( - ( + COUNT( * ) ) ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-7564
SELECT ( - ( + COUNT ( * ) ) ) AS col1 FROM tab1
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col1 <= + + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 47 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7567
SELECT COUNT( - - col2 ) AS col1, - 41 * + 81 * COUNT( * ) AS col0 FROM tab1
----
3
-9963

skipif mysql # not compatible
query II rowsort label-7567
SELECT COUNT ( - - col2 ) AS col1, - 41 * + 81 * COUNT ( * ) AS col0 FROM tab1
----
3
-9963

query I rowsort
SELECT DISTINCT col1 FROM tab0 WHERE + 13 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE col1 * col1 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + 3 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7571
SELECT - ( + - MAX( DISTINCT + col2 ) ) FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-7571
SELECT - ( + - MAX ( DISTINCT + col2 ) ) FROM tab2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7572
SELECT - ( + COUNT( col1 ) ) AS col2 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7572
SELECT - ( + COUNT ( col1 ) ) AS col2 FROM tab2 cor0
----
-3

query II rowsort
SELECT - col1 + - col0 AS col2, 45 FROM tab2 AS cor0
----
-141
45
-142
45
-97
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7574
SELECT ALL + col1 + - CAST( NULL AS SIGNED ) * + col0 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7574
SELECT ALL + col1 + - CAST ( NULL AS INTEGER ) * + col0 AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + col2 AS col0 FROM tab2 WHERE NOT - - 24 / 68 = ( col0 ) * - 82
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-7576
SELECT ALL - + 99 + - 39 - + ( + COUNT( * ) ) FROM tab1 AS cor0
----
-141

skipif mysql # not compatible
query I rowsort label-7576
SELECT ALL - + 99 + - 39 - + ( + COUNT ( * ) ) FROM tab1 AS cor0
----
-141

onlyif mysql # aggregate syntax: 
query I rowsort label-7577
SELECT + SUM( + + 93 ) FROM tab2 AS cor0
----
279

skipif mysql # not compatible
query I rowsort label-7577
SELECT + SUM ( + + 93 ) FROM tab2 AS cor0
----
279

onlyif mysql # DIV for integer division: 
query I rowsort label-7578
SELECT - 47 DIV ( - 6 ) FROM tab0 cor0
----
7
7
7

skipif mysql # not compatible
query I rowsort label-7578
SELECT - 47 / ( - 6 ) FROM tab0 cor0
----
7
7
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7579
SELECT ALL + 99 AS col0 FROM tab2 AS cor0 WHERE - col1 * + + col2 * + CAST( NULL AS SIGNED ) < NULL
----

skipif mysql # not compatible
query I rowsort label-7579
SELECT ALL + 99 AS col0 FROM tab2 AS cor0 WHERE - col1 * + + col2 * + CAST ( NULL AS INTEGER ) < NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL IN ( + col0, - col1 - + col1 )
----

query I rowsort
SELECT ALL + col0 + - - col0 + col2 + - col2 - - col1 FROM tab1
----
116
175
229

onlyif mysql # aggregate syntax: 
query I rowsort label-7582
SELECT DISTINCT + 24 - + COUNT( * ) * 34 FROM tab0
----
-78

skipif mysql # not compatible
query I rowsort label-7582
SELECT DISTINCT + 24 - + COUNT ( * ) * 34 FROM tab0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-7583
SELECT DISTINCT - ( - SUM( + - col2 ) ) - + 92 AS col2 FROM tab2
----
-213

skipif mysql # not compatible
query I rowsort label-7583
SELECT DISTINCT - ( - SUM ( + - col2 ) ) - + 92 AS col2 FROM tab2
----
-213

onlyif mysql # DIV for integer division: 
query I rowsort label-7584
SELECT + + col1 DIV - col0 + col2 AS col0 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-7584
SELECT + + col1 / - col0 + col2 AS col0 FROM tab1 AS cor0
----
59
68
96

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 * + ( - - col2 ) + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 WHERE - 83 + + - col1 = - 49
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + 18 * + - 54 FROM tab2 AS cor0
----
-972
-972
-972

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE col1 BETWEEN - - ( - + col2 ) + - col0 AND + - col0
----

query I rowsort
SELECT - - 68 AS col0 FROM tab1 AS cor0
----
68
68
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7591
SELECT - CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( NULL )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7591
SELECT - CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT - col2 * + col1 * 77 AS col0 FROM tab0 AS cor0
----
-16170
-293139
-7623

query I rowsort
SELECT DISTINCT - + col0 * - 49 FROM tab0 AS cor0
----
4263
4753
735

onlyif mysql # aggregate syntax: 
query I rowsort label-7594
SELECT DISTINCT - COUNT( * ) * COUNT( * ) FROM tab2 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-7594
SELECT DISTINCT - COUNT ( * ) * COUNT ( * ) FROM tab2 cor0
----
-9

query I rowsort
SELECT ALL 69 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col1 * - + col1 * + - ( col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - + col2 AS col0 FROM tab1 AS cor0 WHERE NOT 37 * - ( - ( + + ( + col0 ) ) ) IS NOT NULL
----

query II rowsort
SELECT ALL 64, col2 AS col2 FROM tab0
----
64
10
64
47
64
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7599
SELECT + 50 * + ( - MAX( ALL - col0 ) ) + - + 53 DIV + 37 col2 FROM tab2
----
2299

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7599
SELECT + 50 * + ( - MAX ( ALL - col0 ) ) + - + 53 / + 37 col2 FROM tab2
----
2299

onlyif mysql # DIV for integer division: 
query I rowsort label-7600
SELECT 41 DIV + col2 AS col2 FROM tab0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-7600
SELECT 41 / + col2 AS col2 FROM tab0
----
0
0
4

query I rowsort
SELECT DISTINCT + - col0 * 28 AS col2 FROM tab0 AS cor0
----
-2436
-2716
-420

onlyif mysql # aggregate syntax: 
query I rowsort label-7602
SELECT ALL ( - SUM( DISTINCT + 84 ) ) FROM tab2 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-7602
SELECT ALL ( - SUM ( DISTINCT + 84 ) ) FROM tab2 AS cor0
----
-84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 71 + - ( col1 ) * - col2 col2 FROM tab0 AS cor0
----
170
281
3878

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7604
SELECT * FROM tab1 WHERE CAST( NULL AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7604
SELECT * FROM tab1 WHERE CAST ( NULL AS REAL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 69 AS col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
-69

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL <= col0 AND NOT col2 BETWEEN NULL AND - + 3
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 34 col0 FROM tab0 AS cor0
----
34
34
34

onlyif mysql # aggregate syntax: 
query I rowsort label-7608
SELECT ALL COUNT( * ) + + + SUM( DISTINCT - 4 ) AS col2 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7608
SELECT ALL COUNT ( * ) + + + SUM ( DISTINCT - 4 ) AS col2 FROM tab2 AS cor0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7609
SELECT - CAST( NULL AS SIGNED ) * + col0 + + col1 * - 88 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7609
SELECT - CAST ( NULL AS INTEGER ) * + col0 + + col1 * - 88 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( col0 ) FROM tab1 AS cor0 WHERE - col2 IS NOT NULL
----
-51
-85
-91

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7611
SELECT ALL col2 + - CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7611
SELECT ALL col2 + - CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7612
SELECT ALL + - CAST( NULL AS SIGNED ) + - col0 FROM tab2 WHERE + + CAST( NULL AS DECIMAL ) / + col1 BETWEEN - col0 AND - col1 / - col2 + + 48
----

skipif mysql # not compatible
query I rowsort label-7612
SELECT ALL + - CAST ( NULL AS INTEGER ) + - col0 FROM tab2 WHERE + + CAST ( NULL AS REAL ) / + col1 BETWEEN - col0 AND - col1 / - col2 + + 48
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 28 col0 FROM tab2
----
28
28
28

onlyif mysql # aggregate syntax: 
query I rowsort label-7614
SELECT DISTINCT + 40 * + COUNT( * ) + + - COUNT( * ) AS col2 FROM tab2
----
117

skipif mysql # not compatible
query I rowsort label-7614
SELECT DISTINCT + 40 * + COUNT ( * ) + + - COUNT ( * ) AS col2 FROM tab2
----
117

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - + col1 * - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col1, col0 FROM tab0 AS cor0
----
1
97
21
87
81
15

query II rowsort
SELECT ALL 44 AS col1, col0 FROM tab1 AS cor0
----
44
51
44
85
44
91

query I rowsort
SELECT - 92 AS col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1af709a79a3e56281ffdce4d931d5965

onlyif mysql # aggregate syntax: 
query I rowsort label-7619
SELECT ALL + - SUM( - col0 ) FROM tab0 cor0
----
199

skipif mysql # not compatible
query I rowsort label-7619
SELECT ALL + - SUM ( - col0 ) FROM tab0 cor0
----
199

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - col1 * 24 col1, - 86 FROM tab2 AS cor0
----
1224
-86
1608
-86
1848
-86

query I rowsort
SELECT + + 44 * - col2 * 11 FROM tab0 cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7622
SELECT DISTINCT - 38 DIV + col1 AS col2 FROM tab1 AS cor0
----
-2
-7
0

skipif mysql # not compatible
query I rowsort label-7622
SELECT DISTINCT - 38 / + col1 AS col2 FROM tab1 AS cor0
----
-2
-7
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 + + col0 * + col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7624
SELECT + ( + col1 ) * - 1 DIV + - col0 * + - ( + - col1 ) FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7624
SELECT + ( + col1 ) * - 1 / + - col0 * + - ( + - col1 ) FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7625
SELECT - COUNT( * ) col2, COUNT( DISTINCT col1 ) col0 FROM tab0
----
-3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7625
SELECT - COUNT ( * ) col2, COUNT ( DISTINCT col1 ) col0 FROM tab0
----
-3
3

onlyif mysql # DIV for integer division: 
query I rowsort label-7626
SELECT DISTINCT - 89 + - 83 DIV + col2 FROM tab2
----
-90
-91
-92

skipif mysql # not compatible
query I rowsort label-7626
SELECT DISTINCT - 89 + - 83 / + col2 FROM tab2
----
-90
-91
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-7627
SELECT ALL - SUM( ALL - 83 ) FROM tab1
----
249

skipif mysql # not compatible
query I rowsort label-7627
SELECT ALL - SUM ( ALL - 83 ) FROM tab1
----
249

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7628
SELECT ALL * FROM tab1 WHERE - col1 * + - 32 + - 53 > - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7628
SELECT ALL * FROM tab1 WHERE - col1 * + - 32 + - 53 > - - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7629
SELECT ALL - MAX( DISTINCT + 20 ) * + COUNT( * ) FROM tab1 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-7629
SELECT ALL - MAX ( DISTINCT + 20 ) * + COUNT ( * ) FROM tab1 AS cor0
----
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-7630
SELECT DISTINCT col2 DIV 40 FROM tab1 cor0
----
1
2

skipif mysql # not compatible
query I rowsort label-7630
SELECT DISTINCT col2 / 40 FROM tab1 cor0
----
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7631
SELECT DISTINCT COUNT( * ) * 42 AS col2 FROM tab0 AS cor0
----
126

skipif mysql # not compatible
query I rowsort label-7631
SELECT DISTINCT COUNT ( * ) * 42 AS col2 FROM tab0 AS cor0
----
126

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 63 + - col2 col1 FROM tab1 AS cor0
----
-33
-5
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7633
SELECT DISTINCT + - COUNT( * ) + - COUNT( * ) FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-7633
SELECT DISTINCT + - COUNT ( * ) + - COUNT ( * ) FROM tab0 AS cor0
----
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 63 col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-63

query III rowsort
SELECT ALL * FROM tab2 WHERE - col1 * + - 77 - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 * 44 + + + col1 FROM tab1 AS cor0
----
2115
225
630

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7637
SELECT + - col2 / - col2 * CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7637
SELECT + - col2 / - col2 * CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * col2 - - - col2 FROM tab1 AS cor0
----
3422
4556
9120

onlyif mysql # aggregate syntax: 
query II rowsort label-7639
SELECT DISTINCT COUNT( * ) AS col0, ( + - 60 ) AS col0 FROM tab0 cor0
----
3
-60

skipif mysql # not compatible
query II rowsort label-7639
SELECT DISTINCT COUNT ( * ) AS col0, ( + - 60 ) AS col0 FROM tab0 cor0
----
3
-60

query I rowsort
SELECT ALL col0 + + + 45 AS col1 FROM tab2 AS cor0
----
109
120
91

query I rowsort
SELECT DISTINCT + col0 * col0 * + col0 + 59 + - col1 * col0 FROM tab2 AS cor0
----
257275
416909
95049

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7642
SELECT + ( + CAST( NULL AS SIGNED ) ) FROM tab1 cor0 WHERE col0 / + CAST( NULL AS SIGNED ) * - + ( - + 49 ) > - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-7642
SELECT + ( + CAST ( NULL AS INTEGER ) ) FROM tab1 cor0 WHERE col0 / + CAST ( NULL AS INTEGER ) * - + ( - + 49 ) > - - CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - 4 * - - col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7644
SELECT 26 FROM tab1 WHERE ( NOT ( CAST( + + col1 AS SIGNED ) ) IS NOT NULL )
----

skipif mysql # not compatible
query I rowsort label-7644
SELECT 26 FROM tab1 WHERE ( NOT ( CAST ( + + col1 AS INTEGER ) ) IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7645
SELECT COUNT( * ) * 76 + + + COUNT( * ) AS col1 FROM tab0
----
231

skipif mysql # not compatible
query I rowsort label-7645
SELECT COUNT ( * ) * 76 + + + COUNT ( * ) AS col1 FROM tab0
----
231

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7646
SELECT DISTINCT + COUNT( * ) FROM tab2 WHERE - CAST( col0 AS SIGNED ) IN ( + - col0 * 31 * - + col0 - + + 54 )
----
0

skipif mysql # not compatible
query I rowsort label-7646
SELECT DISTINCT + COUNT ( * ) FROM tab2 WHERE - CAST ( col0 AS INTEGER ) IN ( + - col0 * 31 * - + col0 - + + 54 )
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + + col2 / + - col2 - 39 <= col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7648
SELECT DISTINCT MAX( DISTINCT + - 63 ) FROM tab1
----
-63

skipif mysql # not compatible
query I rowsort label-7648
SELECT DISTINCT MAX ( DISTINCT + - 63 ) FROM tab1
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-7649
SELECT ALL - MIN( DISTINCT - col1 ) AS col2 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-7649
SELECT ALL - MIN ( DISTINCT - col1 ) AS col2 FROM tab2 AS cor0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7650
SELECT DISTINCT + MIN( + 42 ) AS col0 FROM tab1 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-7650
SELECT DISTINCT + MIN ( + 42 ) AS col0 FROM tab1 AS cor0
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-7651
SELECT 44 DIV + col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7651
SELECT 44 / + col2 FROM tab1
----
0
0
0

query II rowsort
SELECT col0, - ( 18 ) * 2 + - 28 FROM tab2
----
46
-64
64
-64
75
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-7653
SELECT + ( - MAX( col2 ) ) FROM tab2 WHERE NOT NULL <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7653
SELECT + ( - MAX ( col2 ) ) FROM tab2 WHERE NOT NULL <= NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col1, col2 * - - col0 FROM tab1 AS cor0
----
51
4896
85
5015
91
6188

query I rowsort
SELECT DISTINCT - + col1 * + col1 * + 70 FROM tab1 AS cor0
----
-13720
-154630
-1750

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + col0 / 41 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT + - col1, + col0 FROM tab2 AS cor0
----
-51
46
-67
75
-77
64

query I rowsort
SELECT ALL - col1 + - ( + + col2 ) FROM tab1 AS cor0
----
-110
-115
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-7659
SELECT ALL ( SUM( - - col1 ) ) AS col2 FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-7659
SELECT ALL ( SUM ( - - col1 ) ) AS col2 FROM tab0
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-7660
SELECT - COUNT( ALL + + col1 ) + 41 AS col2 FROM tab0
----
38

skipif mysql # not compatible
query I rowsort label-7660
SELECT - COUNT ( ALL + + col1 ) + 41 AS col2 FROM tab0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-7661
SELECT + COUNT( * ) + 20 FROM tab0
----
23

skipif mysql # not compatible
query I rowsort label-7661
SELECT + COUNT ( * ) + 20 FROM tab0
----
23

query I rowsort
SELECT - col2 * + - col0 AS col0 FROM tab2 WHERE + 47 IS NOT NULL
----
1058
2560
4350

query I rowsort
SELECT DISTINCT + ( 4 ) - + 10 * - ( + - 16 ) FROM tab1 AS cor0
----
-156

query I rowsort
SELECT + - 87 - + + col0 AS col2 FROM tab0 AS cor0
----
-102
-174
-184

query III rowsort
SELECT * FROM tab0 WHERE NULL < 43 - - col1 * - col1 + col0 + 22
----

query I rowsort
SELECT DISTINCT col0 + + + col0 AS col2 FROM tab0
----
174
194
30

query I rowsort
SELECT 74 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

onlyif mysql # aggregate syntax: 
query I rowsort label-7668
SELECT - - COUNT( * ) + - + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-7668
SELECT - - COUNT ( * ) + - + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
0

query II rowsort
SELECT - - 17, + 87 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
18 values hashing to bf77849509bea7cae2a1db8722f95ed3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7670
SELECT DISTINCT + + 20 DIV COUNT( * ) FROM tab0 cor0
----
6

skipif mysql # not compatible
query I rowsort label-7670
SELECT DISTINCT + + 20 / COUNT ( * ) FROM tab0 cor0
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7671
SELECT - COUNT( * ) DIV + - 16 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7671
SELECT - COUNT ( * ) / + - 16 FROM tab0 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7672
SELECT - 4 DIV + + col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7672
SELECT - 4 / + + col0 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL + 45 * col0 FROM tab2
----
2070
2880
3375

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7674
SELECT ALL - COUNT( * ) DIV 28 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7674
SELECT ALL - COUNT ( * ) / 28 AS col1 FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + - 11 ) col1 FROM tab0
----
-11

query I rowsort
SELECT 70 * - col0 FROM tab2
----
-3220
-4480
-5250

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 78 * + 65 col0 FROM tab0
----
5070
5070
5070

query I rowsort
SELECT DISTINCT col2 FROM tab0 AS cor0 WHERE col0 NOT BETWEEN NULL AND col1
----
10
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7679
SELECT - - CAST( - SUM( ALL - ( - col1 ) ) AS SIGNED ) col2 FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7679
SELECT - - CAST ( - SUM ( ALL - ( - col1 ) ) AS INTEGER ) col2 FROM tab0 AS cor0
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-7680
SELECT - - ( - COUNT( * ) ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-7680
SELECT - - ( - COUNT ( * ) ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-7681
SELECT - + 56 DIV + col2 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7681
SELECT - + 56 / + col2 AS col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7682
SELECT DISTINCT - col1 * col0 AS col0 FROM tab1 AS cor0 WHERE - CAST( NULL AS SIGNED ) BETWEEN 54 AND col2
----

skipif mysql # not compatible
query I rowsort label-7682
SELECT DISTINCT - col1 * col0 AS col0 FROM tab1 AS cor0 WHERE - CAST ( NULL AS INTEGER ) BETWEEN 54 AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7683
SELECT DISTINCT - COUNT( DISTINCT + 81 ) FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7683
SELECT DISTINCT - COUNT ( DISTINCT + 81 ) FROM tab1 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7684
SELECT DISTINCT SUM( - + 78 ) AS col2 FROM tab1 AS cor0
----
-234

skipif mysql # not compatible
query I rowsort label-7684
SELECT DISTINCT SUM ( - + 78 ) AS col2 FROM tab1 AS cor0
----
-234

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + - 21 col0 FROM tab0 AS cor0
----
-20
0
60

query I rowsort
SELECT ALL + 98 + + col0 FROM tab0 AS cor0
----
113
185
195

query I rowsort
SELECT ALL 57 + col0 AS col1 FROM tab1 AS cor0
----
108
142
148

query III rowsort
SELECT * FROM tab2 WHERE NULL <> - ( - + col1 ) - + 96
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7689
SELECT - MAX( DISTINCT col2 ) FROM tab0 WHERE ( col0 BETWEEN - + ( - CAST( - col0 AS SIGNED ) ) AND col2 )
----
-99

skipif mysql # not compatible
query I rowsort label-7689
SELECT - MAX ( DISTINCT col2 ) FROM tab0 WHERE ( col0 BETWEEN - + ( - CAST ( - col0 AS INTEGER ) ) AND col2 )
----
-99

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( col1 BETWEEN + col2 * + col2 AND + ( col2 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col0 * + + col2 AS col2 FROM tab2
----
1058
2560
4350

query I rowsort
SELECT DISTINCT + + 98 FROM tab2 WHERE NOT - col0 BETWEEN + 90 + - 81 AND NULL
----
98

query I rowsort
SELECT - 2 FROM tab2 WHERE + col1 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + 60 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7695
SELECT COUNT( * ) + - + MAX( - 69 ) FROM tab2
----
72

skipif mysql # not compatible
query I rowsort label-7695
SELECT COUNT ( * ) + - + MAX ( - 69 ) FROM tab2
----
72

query II rowsort
SELECT - 45 AS col1, - col0 AS col0 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - col1 * - 67 + - col2 FROM tab2 cor0
----
3394
4431
5119

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7698
SELECT DISTINCT + ( + CAST( - + ( 85 ) AS SIGNED ) ) FROM tab2 AS cor0
----
-85

skipif mysql # not compatible
query I rowsort label-7698
SELECT DISTINCT + ( + CAST ( - + ( 85 ) AS INTEGER ) ) FROM tab2 AS cor0
----
-85

query I rowsort
SELECT ALL + 41 AS col2 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7700
SELECT + COUNT( * ) * COUNT( * ) + + + MIN( - - 50 ) - 92 AS col0 FROM tab0 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-7700
SELECT + COUNT ( * ) * COUNT ( * ) + + + MIN ( - - 50 ) - 92 AS col0 FROM tab0 AS cor0
----
-33

query II rowsort
SELECT ALL 23 AS col1, col1 AS col1 FROM tab2 AS cor0
----
23
51
23
67
23
77

query I rowsort
SELECT - + 9 + - + 61 FROM tab0 AS cor0
----
-70
-70
-70

query I rowsort
SELECT DISTINCT - + 51 + + 40 + 58 AS col2 FROM tab1 AS cor0
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7704
SELECT - - col0 + - - col0 + - + CAST( NULL AS SIGNED ) * + 61 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7704
SELECT - - col0 + - - col0 + - + CAST ( NULL AS INTEGER ) * + 61 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7705
SELECT + 21 * col0 AS col1 FROM tab1 AS cor0 WHERE + col2 + col0 + - + 43 * + col2 + col2 NOT BETWEEN CAST( NULL AS SIGNED ) AND + col2
----

skipif mysql # not compatible
query I rowsort label-7705
SELECT + 21 * col0 AS col1 FROM tab1 AS cor0 WHERE + col2 + col0 + - + 43 * + col2 + col2 NOT BETWEEN CAST ( NULL AS INTEGER ) AND + col2
----

query I rowsort
SELECT - col1 FROM tab1 WHERE 24 + col0 BETWEEN NULL AND col2
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col0 * + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 AS col2 FROM tab0 WHERE + col2 * col2 NOT BETWEEN - col2 AND + col2
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7709
SELECT DISTINCT - COUNT( * ) FROM tab2 WHERE NOT + col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7709
SELECT DISTINCT - COUNT ( * ) FROM tab2 WHERE NOT + col0 IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 59 + 78 col0 FROM tab2
----
137
137
137

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7711
SELECT DISTINCT COUNT( * ) + + COUNT( * ) * ( + 67 DIV 96 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7711
SELECT DISTINCT COUNT ( * ) + + COUNT ( * ) * ( + 67 / 96 ) FROM tab2
----
3

query I rowsort
SELECT ALL + 12 + - col1 AS col0 FROM tab1
----
-2
-35
7

onlyif mysql # DIV for integer division: 
query I rowsort label-7713
SELECT + col1 DIV - 48 AS col2 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7713
SELECT + col1 / - 48 AS col2 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT DISTINCT + 30 + col2 FROM tab1
----
126
89
98

query I rowsort
SELECT DISTINCT - col2 - col2 AS col2 FROM tab1
----
-118
-136
-192

query I rowsort
SELECT + ( col0 ) + col1 AS col0 FROM tab2 WHERE NOT 71 IS NOT NULL
----

query I rowsort
SELECT col1 + 39 * 53 AS col0 FROM tab1
----
2072
2081
2114

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7718
SELECT + col0 + + CAST( col0 AS SIGNED ) FROM tab2
----
128
150
92

skipif mysql # not compatible
query I rowsort label-7718
SELECT + col0 + + CAST ( col0 AS INTEGER ) FROM tab2
----
128
150
92

onlyif mysql # aggregate syntax: 
query I rowsort label-7719
SELECT ( - COUNT( * ) ) + + 72 FROM tab0
----
69

skipif mysql # not compatible
query I rowsort label-7719
SELECT ( - COUNT ( * ) ) + + 72 FROM tab0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-7720
SELECT ALL SUM( ALL col2 ) AS col0 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-7720
SELECT ALL SUM ( ALL col2 ) AS col0 FROM tab2
----
121

query I rowsort
SELECT col1 + - 79 AS col2 FROM tab0
----
-58
-78
2

query I rowsort
SELECT col0 * - 64 + + col0 AS col1 FROM tab1
----
-3213
-5355
-5733

query I rowsort
SELECT col1 + + col0 * - 96 AS col1 FROM tab0
----
-1359
-8331
-9311

query I rowsort
SELECT DISTINCT + 77 * col1 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 11 * - col1 = ( + 88 * ( + 39 * 36 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7726
SELECT + COUNT( * ) + + 47 AS col1 FROM tab1
----
50

skipif mysql # not compatible
query I rowsort label-7726
SELECT + COUNT ( * ) + + 47 AS col1 FROM tab1
----
50

query I rowsort
SELECT 44 + - col1 AS col0 FROM tab1
----
-3
30
39

query I rowsort
SELECT + 61 FROM tab1 WHERE NULL > NULL
----

query I rowsort
SELECT - col1 FROM tab2 WHERE NOT NULL >= ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7730
SELECT ALL - COUNT( - CAST( NULL AS SIGNED ) ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7730
SELECT ALL - COUNT ( - CAST ( NULL AS INTEGER ) ) FROM tab0
----
0

query I rowsort
SELECT DISTINCT + col2 FROM tab0 WHERE NOT 51 * + col0 + 2 BETWEEN ( - 83 ) AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7732
SELECT + CAST( MAX( 51 ) AS SIGNED ) * 5 FROM tab0 AS cor0
----
255

skipif mysql # not compatible
query I rowsort label-7732
SELECT + CAST ( MAX ( 51 ) AS INTEGER ) * 5 FROM tab0 AS cor0
----
255

query I rowsort
SELECT - 95 FROM tab0 AS cor0 WHERE NOT NULL IN ( + col1 + 50 )
----

query I rowsort
SELECT + ( 26 ) + col1 FROM tab1 AS cor0 WHERE NOT col2 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7735
SELECT 36 * COUNT( * ) AS col1 FROM tab0
----
108

skipif mysql # not compatible
query I rowsort label-7735
SELECT 36 * COUNT ( * ) AS col1 FROM tab0
----
108

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 68 IN ( 4 * 12 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7737
SELECT + 10 DIV - col1 + col0 DIV + CAST( 6 * - 19 + + col1 AS SIGNED ) FROM tab2 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-7737
SELECT + 10 / - col1 + col0 / + CAST ( 6 * - 19 + + col1 AS INTEGER ) FROM tab2 AS cor0
----
-1
-1
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 NOT BETWEEN + col1 AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 79 + 17 / 26 NOT IN ( + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col1 AS col2 FROM tab2 WHERE NOT NULL < col0 OR NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - col0 * - col0 col0 FROM tab2
----
2162
4160
5700

query I rowsort
SELECT ALL + col1 + - 18 AS col0 FROM tab2
----
33
49
59

query I rowsort
SELECT DISTINCT 18 + 1 * col1 FROM tab0 WHERE NOT - 29 * col1 BETWEEN ( - 26 ) AND NULL
----
19
39
99

query I rowsort
SELECT ALL col1 * col2 + 15 FROM tab1
----
1359
310
3211

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL <> + 73
----

query I rowsort
SELECT DISTINCT 94 * col0 - - 53 AS col1 FROM tab2 cor0
----
4377
6069
7103

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - + col0 * col2 + 31 col2 FROM tab0
----
-18239
-57074
-9572

onlyif mysql # aggregate syntax: 
query I rowsort label-7748
SELECT DISTINCT + - COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-7748
SELECT DISTINCT + - COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-9

query II rowsort
SELECT - 59, - 34 * col1 + - col2 AS col2 FROM tab0 AS cor0
----
-59
-133
-59
-2801
-59
-724

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * 71 + + col1 col2 FROM tab1 AS cor0 WHERE NOT - 83 BETWEEN - + col0 + col1 AND ( + 19 )
----
3635
6040
6508

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( col0 / - col2 - col2 * + col1 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7752
SELECT * FROM tab2 AS cor0 WHERE NOT ( col1 + - CAST( NULL AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-7752
SELECT * FROM tab2 AS cor0 WHERE NOT ( col1 + - CAST ( NULL AS INTEGER ) ) IS NULL
----

query I rowsort
SELECT DISTINCT + col1 * + 54 FROM tab0 AS cor0
----
1134
4374
54

query I rowsort
SELECT - - col2 * - col1 * col1 AS col0 FROM tab1 AS cor0
----
-1475
-150212
-18816

query I rowsort
SELECT ALL + - col1 * + 91 * col2 FROM tab0 AS cor0
----
-19110
-346437
-9009

query II rowsort
SELECT ALL col0 AS col1, col1 - - 79 FROM tab2 AS cor0
----
46
130
64
156
75
146

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7757
SELECT CAST( NULL AS SIGNED ) / + - 32 AS col2, COUNT( * ) + 12 * - 60 AS col1 FROM tab0
----
NULL
-717

skipif mysql # not compatible
query II rowsort label-7757
SELECT CAST ( NULL AS INTEGER ) / + - 32 AS col2, COUNT ( * ) + 12 * - 60 AS col1 FROM tab0
----
NULL
-717

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab1 WHERE NOT ( 58 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7759
SELECT - 24 * - ( + COUNT( * ) ) AS col1 FROM tab2
----
72

skipif mysql # not compatible
query I rowsort label-7759
SELECT - 24 * - ( + COUNT ( * ) ) AS col1 FROM tab2
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-7760
SELECT ALL ( + - SUM( - col0 ) ) * - COUNT( * ) + 3 FROM tab1
----
-678

skipif mysql # not compatible
query I rowsort label-7760
SELECT ALL ( + - SUM ( - col0 ) ) * - COUNT ( * ) + 3 FROM tab1
----
-678

query I rowsort
SELECT ALL - 98 * 70 FROM tab0 WHERE NOT + 88 IS NOT NULL
----

query I rowsort
SELECT ALL + col0 AS col0 FROM tab0 WHERE NOT ( + 75 ) IN ( - col1 + - col0 )
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7763
SELECT ALL * FROM tab2 WHERE - + CAST( NULL AS SIGNED ) NOT IN ( col2 )
----

skipif mysql # not compatible
query III rowsort label-7763
SELECT ALL * FROM tab2 WHERE - + CAST ( NULL AS INTEGER ) NOT IN ( col2 )
----

query I rowsort
SELECT ( + col1 ) AS col0 FROM tab2 WHERE NOT + - ( - col2 ) IS NULL
----
51
67
77

query I rowsort
SELECT ( + ( + ( 83 ) ) ) * - col2 FROM tab1 WHERE NOT NULL <> NULL
----

query II rowsort
SELECT ALL col1 * + 32 AS col1, + 45 AS col1 FROM tab1
----
1504
45
160
45
448
45

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab1 WHERE - col0 NOT IN ( + - col2 )
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7768
SELECT 56 - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL > col0
----
56

skipif mysql # not compatible
query I rowsort label-7768
SELECT 56 - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL > col0
----
56

query I rowsort
SELECT - col1 + + col2 + - - 52 * - - col1 AS col0 FROM tab1 cor0
----
2465
314
810

query III rowsort
SELECT * FROM tab0 WHERE ( 69 * col0 * - - col0 + 57 ) < NULL
----

query I rowsort
SELECT ALL - col0 * - + col0 AS col1 FROM tab2 AS cor0
----
2116
4096
5625

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7772
SELECT ALL - CAST( - col1 AS SIGNED ) + - col1 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7772
SELECT ALL - CAST ( - col1 AS INTEGER ) + - col1 AS col2 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col1 * - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - - col2 * - 12 AS col2 FROM tab1 AS cor0
----
-1152
-708
-816

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL NOT IN ( - col0, - 93 )
----

query I rowsort
SELECT - 99 * - col2 * + col2 FROM tab0 AS cor0
----
218691
970299
9900

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7777
SELECT AVG ( ALL + 44 ) * - ( + + CAST( NULL AS DECIMAL ) ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7777
SELECT AVG ( ALL + 44 ) * - ( + + CAST ( NULL AS REAL ) ) FROM tab2 cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN ( - 49 / + + 54 ) AND NULL
----

query I rowsort
SELECT col0 * - col2 * - + col1 * 82 AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 col0, col2 FROM tab2 AS cor0
----
-23
23
-40
40
-58
58

query II rowsort
SELECT DISTINCT - + col2 + - 52 * + - 29 AS col1, 16 FROM tab1 AS cor0
----
1412
16
1440
16
1449
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7782
SELECT ALL 38 FROM tab2 AS cor0 WHERE + 73 * - + col0 * - CAST( 83 AS SIGNED ) > NULL
----

skipif mysql # not compatible
query I rowsort label-7782
SELECT ALL 38 FROM tab2 AS cor0 WHERE + 73 * - + col0 * - CAST ( 83 AS INTEGER ) > NULL
----

query I rowsort
SELECT ALL - 14 + + col1 * - 81 FROM tab1 AS cor0
----
-1148
-3821
-419

query I rowsort
SELECT DISTINCT + col1 * + + col1 + - - 98 AS col0 FROM tab1 AS cor0
----
123
2307
294

query I rowsort
SELECT ALL + - ( - col0 ) + col1 FROM tab0 cor0 WHERE NULL = col2
----

query I rowsort
SELECT ALL - col1 FROM tab0 WHERE - col0 IS NULL
----

query I rowsort
SELECT DISTINCT - 11 - col0 FROM tab2
----
-57
-75
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-7788
SELECT + col1 + + 31 DIV + col2 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-7788
SELECT + col1 + + 31 / + col2 FROM tab1
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7789
SELECT ALL + - COUNT( * ) FROM tab2 WHERE NOT + + col1 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-7789
SELECT ALL + - COUNT ( * ) FROM tab2 WHERE NOT + + col1 = NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7790
SELECT - CAST( + - 27 AS SIGNED ) + - ( col1 ) AS col2 FROM tab2 AS cor0
----
-24
-40
-50

skipif mysql # not compatible
query I rowsort label-7790
SELECT - CAST ( + - 27 AS INTEGER ) + - ( col1 ) AS col2 FROM tab2 AS cor0
----
-24
-40
-50

onlyif mysql # aggregate syntax: 
query II rowsort label-7791
SELECT DISTINCT 95, 16 * COUNT( * ) col2 FROM tab1 AS cor0
----
95
48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7791
SELECT DISTINCT 95, 16 * COUNT ( * ) col2 FROM tab1 AS cor0
----
95
48

onlyif mysql # aggregate syntax: 
query I rowsort label-7792
SELECT DISTINCT - - COUNT( * ) FROM tab2 cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
query I rowsort label-7792
SELECT DISTINCT - - COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab0 cor1
----
9

query III rowsort
SELECT * FROM tab2 WHERE NOT - 19 * - - col2 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7794
SELECT + + CAST( 89 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
89
89
89

skipif mysql # not compatible
query I rowsort label-7794
SELECT + + CAST ( 89 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
89
89
89

query I rowsort
SELECT DISTINCT + 70 * - col0 + - col0 + + - 41 FROM tab2 AS cor0
----
-3307
-4585
-5366

query I rowsort
SELECT DISTINCT + + 8 AS col2 FROM tab1 AS cor0
----
8

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 84 * 12 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT ( 31 * - col0 * + col0 ) IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7799
SELECT DISTINCT - - CAST( NULL AS SIGNED ) - - col1 - + - col1 col0 FROM tab1 WHERE NOT col2 - col2 BETWEEN + col1 AND NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7799
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) - - col1 - + - col1 col0 FROM tab1 WHERE NOT col2 - col2 BETWEEN + col1 AND NULL
----
NULL

query I rowsort
SELECT DISTINCT 21 * + 65 AS col0 FROM tab0
----
1365

onlyif mysql # aggregate syntax: 
query I rowsort label-7801
SELECT ALL MIN( DISTINCT - 18 ) AS col0 FROM tab1
----
-18

skipif mysql # not compatible
query I rowsort label-7801
SELECT ALL MIN ( DISTINCT - 18 ) AS col0 FROM tab1
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-7802
SELECT ALL + COUNT( * ) * - + COUNT( * ) AS col1 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-7802
SELECT ALL + COUNT ( * ) * - + COUNT ( * ) AS col1 FROM tab2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7803
SELECT SUM( - - col2 ) AS col0 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-7803
SELECT SUM ( - - col2 ) AS col0 FROM tab2
----
121

query I rowsort
SELECT ALL col0 * - + ( col0 ) * + - col1 - - + col1 FROM tab2
----
107967
315469
376942

onlyif mysql # DIV for integer division: 
query I rowsort label-7805
SELECT DISTINCT + - 49 DIV + col2 + - col1 * + col1 FROM tab1 AS cor0
----
-196
-2209
-25

skipif mysql # not compatible
query I rowsort label-7805
SELECT DISTINCT + - 49 / + col2 + - col1 * + col1 FROM tab1 AS cor0
----
-196
-2209
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7806
SELECT - + COUNT( ALL + CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-7806
SELECT - + COUNT ( ALL + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7807
SELECT DISTINCT col2 * 97 DIV col1 FROM tab2
----
43
50
83

skipif mysql # not compatible
query I rowsort label-7807
SELECT DISTINCT col2 * 97 / col1 FROM tab2
----
43
50
83

query I rowsort
SELECT - + 54 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7809
SELECT DISTINCT - + ( COUNT( * ) ) - - COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
0

skipif mysql # not compatible
query I rowsort label-7809
SELECT DISTINCT - + ( COUNT ( * ) ) - - COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
0

query I rowsort
SELECT + 8 FROM tab2 WHERE + ( col1 ) >= + + col0
----
8
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7811
SELECT DISTINCT - col0 / CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7811
SELECT DISTINCT - col0 / CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col0 < - 58 / + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7813
SELECT - MAX( - 64 ) * - COUNT( * ) FROM tab2
----
-192

skipif mysql # not compatible
query I rowsort label-7813
SELECT - MAX ( - 64 ) * - COUNT ( * ) FROM tab2
----
-192

query I rowsort
SELECT ALL + 93 FROM tab0 WHERE + col1 + - col1 * col0 * col0 * + - 85 * col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + - - 9 - + col1 col1 FROM tab1
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-7816
SELECT ALL 12 DIV 5 AS col1 FROM tab2
----
2
2
2

skipif mysql # not compatible
query I rowsort label-7816
SELECT ALL 12 / 5 AS col1 FROM tab2
----
2
2
2

query I rowsort
SELECT DISTINCT + ( + - col0 ) - - col2 AS col1 FROM tab0
----
-77
2
32

onlyif mysql # aggregate syntax: 
query I rowsort label-7818
SELECT - 13 * 26 * + MAX( + col0 ) FROM tab0
----
-32786

skipif mysql # not compatible
query I rowsort label-7818
SELECT - 13 * 26 * + MAX ( + col0 ) FROM tab0
----
-32786

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 81 IS NOT NULL
----

query I rowsort
SELECT ALL + - col1 FROM tab0 AS cor0 WHERE NOT NULL < + 60 / - - 66
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - col2 + - col2 col0 FROM tab0 AS cor0
----
2162
90
9702

query I rowsort
SELECT - 12 * - - 50 AS col0 FROM tab0 AS cor0
----
-600
-600
-600

onlyif mysql # aggregate syntax: 
query I rowsort label-7823
SELECT ALL + SUM( ALL + 30 ) col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
270

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7823
SELECT ALL + SUM ( ALL + 30 ) col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
270

query II rowsort
SELECT - col2, - 74 AS col1 FROM tab1 AS cor0
----
-59
-74
-68
-74
-96
-74

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7825
SELECT + - ( - CAST( NULL AS DECIMAL ) ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7825
SELECT + - ( - CAST ( NULL AS REAL ) ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7826
SELECT DISTINCT - - col2 * + col2 DIV + col2 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-7826
SELECT DISTINCT - - col2 * + col2 / + col2 FROM tab1 AS cor0
----
59
68
96

query II rowsort
SELECT + col1 AS col0, col1 FROM tab0 AS cor0
----
1
1
21
21
81
81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7828
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - ( + col2 ) + 63 IN ( - CAST( NULL AS SIGNED ), col0 / + col2 )
----

skipif mysql # not compatible
query III rowsort label-7828
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - ( + col2 ) + 63 IN ( - CAST ( NULL AS INTEGER ), col0 / + col2 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7829
SELECT 85, + COUNT( * ) * COUNT( * ) AS col1 FROM tab1 AS cor0
----
85
9

skipif mysql # not compatible
query II rowsort label-7829
SELECT 85, + COUNT ( * ) * COUNT ( * ) AS col1 FROM tab1 AS cor0
----
85
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7830
SELECT 96 * - MAX( DISTINCT - col1 ) AS col1 FROM tab1
----
480

skipif mysql # not compatible
query I rowsort label-7830
SELECT 96 * - MAX ( DISTINCT - col1 ) AS col1 FROM tab1
----
480

onlyif mysql # aggregate syntax: 
query I rowsort label-7831
SELECT DISTINCT + - SUM( ALL - + col2 ) FROM tab2 WHERE NOT + ( + - col0 ) + - 24 + - col2 / - 54 * 70 IS NULL
----
121

skipif mysql # not compatible
query I rowsort label-7831
SELECT DISTINCT + - SUM ( ALL - + col2 ) FROM tab2 WHERE NOT + ( + - col0 ) + - 24 + - col2 / - 54 * 70 IS NULL
----
121

query I rowsort
SELECT col1 + - + col1 FROM tab0 WHERE NOT 52 - + + 29 NOT BETWEEN 55 AND + - col1
----

query II rowsort
SELECT - 17 * - col1 AS col0, ( - col2 ) AS col2 FROM tab1
----
238
-96
799
-68
85
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7834
SELECT DISTINCT col2 * + ( + col1 ) * - CAST( + + col0 AS SIGNED ) FROM tab0
----
-18270
-57105
-9603

skipif mysql # not compatible
query I rowsort label-7834
SELECT DISTINCT col2 * + ( + col1 ) * - CAST ( + + col0 AS INTEGER ) FROM tab0
----
-18270
-57105
-9603

query I rowsort
SELECT + 24 * ( + + ( + + col1 ) ) FROM tab1
----
1128
120
336

onlyif mysql # aggregate syntax: 
query I rowsort label-7836
SELECT DISTINCT MAX( DISTINCT + 10 ) col0 FROM tab1 AS cor0 WHERE NOT ( NOT col1 IS NULL ) OR col1 IN ( col1 )
----
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7836
SELECT DISTINCT MAX ( DISTINCT + 10 ) col0 FROM tab1 AS cor0 WHERE NOT ( NOT col1 IS NULL ) OR col1 IN ( col1 )
----
10

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL < col2 * + + col2 * 34
----

query I rowsort
SELECT DISTINCT - col1 * - 4 - - col2 * + col0 * col1 * col1 + col0 * + + 51 AS col1 FROM tab2 AS cor0
----
15181812
19531243
2754408

query I rowsort
SELECT ALL - - 68 AS col0 FROM tab0 AS cor0
----
68
68
68

onlyif mysql # DIV for integer division: 
query I rowsort label-7840
SELECT ALL - col0 * col1 DIV + col2 + + + col0 AS col1 FROM tab2 AS cor0
----
-11
-56
-59

skipif mysql # not compatible
query I rowsort label-7840
SELECT ALL - col0 * col1 / + col2 + + + col0 AS col1 FROM tab2 AS cor0
----
-11
-56
-59

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT col0 IS NOT NULL )
----

query I rowsort
SELECT + 53 - + 71 FROM tab1 cor0
----
-18
-18
-18

query III rowsort
SELECT * FROM tab2 WHERE col1 / - col2 < - 23 + - col0
----

query I rowsort
SELECT ALL + ( + 90 ) + col0 FROM tab2
----
136
154
165

query I rowsort
SELECT DISTINCT col0 * + 1 + - 3 AS col0 FROM tab1
----
48
82
88

onlyif mysql # aggregate syntax: 
query I rowsort label-7846
SELECT DISTINCT - COUNT( * ) - + COUNT( - 11 ) col0 FROM tab0
----
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7846
SELECT DISTINCT - COUNT ( * ) - + COUNT ( - 11 ) col0 FROM tab0
----
-6

query I rowsort
SELECT DISTINCT 75 FROM tab2 WHERE NOT - col0 IS NOT NULL
----

query I rowsort
SELECT 92 + + - col1 + - col1 FROM tab0
----
-70
50
90

onlyif mysql # aggregate syntax: 
query I rowsort label-7849
SELECT - ( + - MIN( + - col2 ) ) * COUNT( * ) + - MAX( DISTINCT col1 ) FROM tab1
----
-335

skipif mysql # not compatible
query I rowsort label-7849
SELECT - ( + - MIN ( + - col2 ) ) * COUNT ( * ) + - MAX ( DISTINCT col1 ) FROM tab1
----
-335

query I rowsort
SELECT - col0 AS col1 FROM tab2 WHERE + 34 IS NOT NULL
----
-46
-64
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7851
SELECT DISTINCT COUNT( * ) DIV CAST( + COUNT( - 21 ) AS SIGNED ) AS col1, + SUM( + + 1 ) FROM tab2
----
1
3

skipif mysql # not compatible
query II rowsort label-7851
SELECT DISTINCT COUNT ( * ) / CAST ( + COUNT ( - 21 ) AS INTEGER ) AS col1, + SUM ( + + 1 ) FROM tab2
----
1
3

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7852
SELECT DISTINCT - - col2 col0, col2 AS col2 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( CAST( NULL AS DECIMAL ), + col0 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7852
SELECT DISTINCT - - col2 col0, col2 AS col2 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( CAST ( NULL AS REAL ), + col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE ( NULL ) <> ( - col0 + - + col0 - - + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + ( + + col1 ) col1, + 62 FROM tab2 AS cor0
----
51
62
67
62
77
62

onlyif mysql # aggregate syntax: 
query I rowsort label-7855
SELECT DISTINCT - COUNT( * ) * + - MAX( col1 ) FROM tab0
----
243

skipif mysql # not compatible
query I rowsort label-7855
SELECT DISTINCT - COUNT ( * ) * + - MAX ( col1 ) FROM tab0
----
243

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - + col0 col1 FROM tab0
----
-705
-870
-9603

query I rowsort
SELECT ( + ( - 83 ) ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d55748f39f403ec273099c0d87b0bfbb

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - col2 / - col2 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT - ( ( col0 ) ), + ( - 77 ) + - 45 AS col0 FROM tab1
----
-51
-122
-85
-122
-91
-122

query I rowsort
SELECT ALL - - col1 * - col2 * + 32 FROM tab1 AS cor0
----
-102272
-43008
-9440

onlyif mysql # aggregate syntax: 
query I rowsort label-7861
SELECT - ( - COUNT( ALL - col0 ) ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7861
SELECT - ( - COUNT ( ALL - col0 ) ) AS col0 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-7862
SELECT DISTINCT - COUNT( DISTINCT + col1 ) AS col2, 2 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3
2

skipif mysql # not compatible
query II rowsort label-7862
SELECT DISTINCT - COUNT ( DISTINCT + col1 ) AS col2, 2 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3
2

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE NOT - col2 = col1
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7864
SELECT + 78 * + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT - 23 - + - 29 BETWEEN - + col2 + col1 AND - - 5 * 29
----
234

skipif mysql # not compatible
query I rowsort label-7864
SELECT + 78 * + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT - 23 - + - 29 BETWEEN - + col2 + col1 AND - - 5 * 29
----
234

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 26 / 3 + + 87 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 col2, - col2 * - 33 + + + col1 FROM tab1
----
-51
3182
-85
1952
-91
2291

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 67 + - 23 * + + 99 * + - 72 col2 FROM tab0
----
163877
163877
163877

query I rowsort
SELECT DISTINCT 34 * - ( + col2 ) * 59 + + - 3 + - + col1 AS col1 FROM tab2
----
-116418
-46192
-80320

onlyif mysql # aggregate syntax: 
query I rowsort label-7869
SELECT 14 * COUNT( * ) FROM tab0
----
42

skipif mysql # not compatible
query I rowsort label-7869
SELECT 14 * COUNT ( * ) FROM tab0
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7870
SELECT MIN( DISTINCT - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7870
SELECT MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 98 IN ( col0 )
----

query I rowsort
SELECT ALL 20 AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 39 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 57 * + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL ( - + 40 ) FROM tab0 AS cor0
----
-40
-40
-40

query I rowsort
SELECT ALL - col1 + - - 65 FROM tab2 AS cor0
----
-12
-2
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7877
SELECT + + col2 * CAST( - ( CAST( NULL AS SIGNED ) ) AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7877
SELECT + + col2 * CAST ( - ( CAST ( NULL AS INTEGER ) ) AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 <= 63
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 48 + - col0 + + + col1 FROM tab1 AS cor0
----
-32
11
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7880
SELECT + 23 * - COUNT( * ) * + - ( + - COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
-207

skipif mysql # not compatible
query I rowsort label-7880
SELECT + 23 * - COUNT ( * ) * + - ( + - COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
-207

query I rowsort
SELECT DISTINCT + col1 * - 11 + + - col1 FROM tab1 AS cor0
----
-168
-564
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7882
SELECT - CAST( NULL AS SIGNED ) / + col1 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7882
SELECT - CAST ( NULL AS INTEGER ) / + col1 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 * + 18 AS col1 FROM tab0
----
1458
18
378

onlyif mysql # aggregate syntax: 
query I rowsort label-7884
SELECT + MIN( ALL + + col2 ) AS col1 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-7884
SELECT + MIN ( ALL + + col2 ) AS col1 FROM tab1
----
59

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 * - col2 IS NOT NULL
----

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE NOT NULL >= ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN - 33 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7888
SELECT + + COUNT( * ) * - + 80 FROM tab0 cor0
----
-240

skipif mysql # not compatible
query I rowsort label-7888
SELECT + + COUNT ( * ) * - + 80 FROM tab0 cor0
----
-240

query I rowsort
SELECT - - col1 * + col1 * + 9 AS col1 FROM tab1 AS cor0
----
1764
19881
225

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7890
SELECT + + CAST( NULL AS SIGNED ) FROM ( tab0 AS cor0 CROSS JOIN tab0 cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-7890
SELECT + + CAST ( NULL AS INTEGER ) FROM ( tab0 AS cor0 CROSS JOIN tab0 cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT + ( - col0 ) * + col0 + - - 0 FROM tab2
----
-2116
-4096
-5625

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + 97 ) col2 FROM tab1 AS cor0
----
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 36 col0 FROM tab0 AS cor0
----
36
36
36

onlyif mysql # aggregate syntax: 
query I rowsort label-7894
SELECT + + COUNT( * ) * + + SUM( - col1 ) AS col1 FROM tab0 AS cor0
----
-309

skipif mysql # not compatible
query I rowsort label-7894
SELECT + + COUNT ( * ) * + + SUM ( - col1 ) AS col1 FROM tab0 AS cor0
----
-309

query I rowsort
SELECT DISTINCT - - 46 AS col1 FROM tab2 AS cor0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-7896
SELECT - SUM( ALL - - 20 ) AS col0 FROM tab0 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-7896
SELECT - SUM ( ALL - - 20 ) AS col0 FROM tab0 AS cor0
----
-60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - - 91 col2 FROM tab0
----
101
138
190

onlyif mysql # aggregate syntax: 
query I rowsort label-7898
SELECT DISTINCT SUM( ALL + col2 ) col0 FROM tab0
----
156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7898
SELECT DISTINCT SUM ( ALL + col2 ) col0 FROM tab0
----
156

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col2 / + + 29 + - col2 <> + 92 + - col2
----

query I rowsort
SELECT - col2 * - 27 + + col0 AS col1 FROM tab0 AS cor0
----
1284
2770
357

query I rowsort
SELECT 93 + - 2 + ( - ( + col0 ) ) * 35 FROM tab2 cor0
----
-1519
-2149
-2534

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7902
SELECT * FROM tab0 AS cor0 WHERE + col2 * - CAST( - + col2 AS SIGNED ) NOT IN ( - 41 * 1 + + - col1, col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7902
SELECT * FROM tab0 AS cor0 WHERE + col2 * - CAST ( - + col2 AS INTEGER ) NOT IN ( - 41 * 1 + + - col1, col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7903
SELECT DISTINCT - - COUNT( * ) * 9 + 57 FROM tab2 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-7903
SELECT DISTINCT - - COUNT ( * ) * 9 + 57 FROM tab2 AS cor0
----
84

onlyif mysql # aggregate syntax: 
query II rowsort label-7904
SELECT COUNT( * ) AS col1, 68 AS col0 FROM tab2
----
3
68

skipif mysql # not compatible
query II rowsort label-7904
SELECT COUNT ( * ) AS col1, 68 AS col0 FROM tab2
----
3
68

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + - 88 IS NULL
----

query I rowsort
SELECT ALL 76 AS col0 FROM tab0 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 14 * - + 62 + - 9 + - col2 - + col1 + + 66 >= + 87
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 - - + col0 FROM tab1 AS cor0
----
138
65
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7909
SELECT - + ( - COUNT( * ) ) - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7909
SELECT - + ( - COUNT ( * ) ) - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT DISTINCT - col1 AS col1, - col0 FROM tab1 AS cor0
----
-14
-51
-47
-91
-5
-85

onlyif mysql # DIV for integer division: 
query II rowsort label-7911
SELECT - 38 - - 66 + 39 DIV - - col0 col2, - col0 AS col2 FROM tab1 AS cor0
----
28
-51
28
-85
28
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7911
SELECT - 38 - - 66 + 39 / - - col0 col2, - col0 AS col2 FROM tab1 AS cor0
----
28
-51
28
-85
28
-91

query I rowsort
SELECT ALL - col0 * + ( - - col0 ) + + ( - col1 ) FROM tab1 AS cor0
----
-2615
-7230
-8328

query III rowsort
SELECT * FROM tab2 cor0 WHERE + 46 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7914
SELECT - MIN( + 32 ) + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-29

skipif mysql # not compatible
query I rowsort label-7914
SELECT - MIN ( + 32 ) + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-29

query I rowsort
SELECT DISTINCT col0 + - 82 AS col2 FROM tab0 cor0
----
-67
15
5

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 / - col2 * - col1 + - - 17 + + col1 BETWEEN NULL AND + - 68
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7917
SELECT DISTINCT - + 54 * + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-162

skipif mysql # not compatible
query I rowsort label-7917
SELECT DISTINCT - + 54 * + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-162

query I rowsort
SELECT - + col2 - ( + col0 ) AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-144
-147
-159

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + + col2 = - 80
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7920
SELECT DISTINCT + MIN( - CAST( + col1 AS SIGNED ) ) * + 68 FROM tab2 WHERE - 23 + - CAST( 88 AS SIGNED ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7920
SELECT DISTINCT + MIN ( - CAST ( + col1 AS INTEGER ) ) * + 68 FROM tab2 WHERE - 23 + - CAST ( 88 AS INTEGER ) IS NULL
----
NULL

query I rowsort
SELECT DISTINCT 70 AS col2 FROM tab0 WHERE col1 + - - col0 IS NOT NULL
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-7922
SELECT + MAX( DISTINCT 33 ) AS col1 FROM tab2
----
33

skipif mysql # not compatible
query I rowsort label-7922
SELECT + MAX ( DISTINCT 33 ) AS col1 FROM tab2
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7923
SELECT ALL - CAST( 96 AS SIGNED ) col0 FROM tab2
----
-96
-96
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7923
SELECT ALL - CAST ( 96 AS INTEGER ) col0 FROM tab2
----
-96
-96
-96

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + + col2 ) <= - 72
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7925
SELECT DISTINCT + col1 * - + col0 FROM tab2 WHERE col2 * - col1 <= - CAST( NULL AS SIGNED ) * + - 74 + - + col0
----

skipif mysql # not compatible
query I rowsort label-7925
SELECT DISTINCT + col1 * - + col0 FROM tab2 WHERE col2 * - col1 <= - CAST ( NULL AS INTEGER ) * + - 74 + - + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7926
SELECT COUNT( * ) * + 46 * 94 AS col0 FROM tab1
----
12972

skipif mysql # not compatible
query I rowsort label-7926
SELECT COUNT ( * ) * + 46 * 94 AS col0 FROM tab1
----
12972

onlyif mysql # aggregate syntax: 
query I rowsort label-7927
SELECT DISTINCT - COUNT( * ) * + 49 AS col1 FROM tab0 AS cor0
----
-147

skipif mysql # not compatible
query I rowsort label-7927
SELECT DISTINCT - COUNT ( * ) * + 49 AS col1 FROM tab0 AS cor0
----
-147

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 89 * col2 BETWEEN NULL AND - - col0 / + + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - ( + + 40 ) FROM tab2
----
-40
-40
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-7930
SELECT - COUNT( * ) * + + COUNT( * ) col0 FROM tab2
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7930
SELECT - COUNT ( * ) * + + COUNT ( * ) col0 FROM tab2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7931
SELECT DISTINCT - + COUNT( * ) - + - COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-7931
SELECT DISTINCT - + COUNT ( * ) - + - COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
0

query I rowsort
SELECT ALL - col1 * - ( + col1 ) AS col2 FROM tab2
----
2601
4489
5929

onlyif mysql # aggregate syntax: 
query II rowsort label-7933
SELECT COUNT( * ), + 3 FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-7933
SELECT COUNT ( * ), + 3 FROM tab2 AS cor0
----
3
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7934
SELECT ALL MIN( DISTINCT - col0 ) * + + COUNT( ALL col0 ) DIV - COUNT( * ) FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-7934
SELECT ALL MIN ( DISTINCT - col0 ) * + + COUNT ( ALL col0 ) / - COUNT ( * ) FROM tab2 AS cor0
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7935
SELECT DISTINCT - col0 * - - CAST( + col0 AS SIGNED ) col2, col0 FROM tab1 AS cor0
----
-2601
51
-7225
85
-8281
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7935
SELECT DISTINCT - col0 * - - CAST ( + col0 AS INTEGER ) col2, col0 FROM tab1 AS cor0
----
-2601
51
-7225
85
-8281
91

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 37 * 30 NOT IN ( - col0, col0, col2 * + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7937
SELECT DISTINCT + + col0 * - CAST( NULL AS SIGNED ) + + + col0 + + + col0 * + + col2 * col2 AS col0 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7937
SELECT DISTINCT + + col0 * - CAST ( NULL AS INTEGER ) + + + col0 + + + col0 * + + col2 * col2 AS col0 FROM tab0 cor0
----
NULL

query I rowsort
SELECT DISTINCT + 17 + - col2 FROM tab2 AS cor0
----
-23
-41
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-7939
SELECT ALL - - 14 + MIN( DISTINCT 46 ) + + + 68 FROM tab2 AS cor0
----
128

skipif mysql # not compatible
query I rowsort label-7939
SELECT ALL - - 14 + MIN ( DISTINCT 46 ) + + + 68 FROM tab2 AS cor0
----
128

query I rowsort
SELECT + 55 + + + ( col1 ) FROM tab1
----
102
60
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + col2 + + - col0 col0 FROM tab0
----
690
783
9506

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + ( + + 97 ) * + + col2 * + - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7943
SELECT DISTINCT + COUNT( * ) + + - ( - - 76 ) DIV - 30 AS col0 FROM tab0
----
5

skipif mysql # not compatible
query I rowsort label-7943
SELECT DISTINCT + COUNT ( * ) + + - ( - - 76 ) / - 30 AS col0 FROM tab0
----
5

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL IN ( + col1 + col1 + - col1 - col0, 72 )
----

query I rowsort
SELECT - col0 * + - 0 AS col1 FROM tab2
----
0
0
0

query II rowsort
SELECT ALL 75 + + - col0 - 66 * + 69 AS col0, + col2 AS col2 FROM tab0
----
-4494
47
-4566
10
-4576
99

query I rowsort
SELECT col2 * 89 AS col0 FROM tab1
----
5251
6052
8544

query I rowsort
SELECT - col1 * - 91 AS col1 FROM tab0
----
1911
7371
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7949
SELECT COUNT( * ) * - - 11 FROM tab2
----
33

skipif mysql # not compatible
query I rowsort label-7949
SELECT COUNT ( * ) * - - 11 FROM tab2
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7950
SELECT ALL - col2 + + CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7950
SELECT ALL - col2 + + CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 - - - 86 FROM tab1 AS cor0
----
-145
-154
-182

query I rowsort
SELECT + col2 + + 62 + col1 AS col1 FROM tab2
----
136
179
187

onlyif mysql # DIV for integer division: 
query I rowsort label-7953
SELECT + 12 DIV + 34 + + ( - + 14 ) FROM tab1
----
-14
-14
-14

skipif mysql # not compatible
query I rowsort label-7953
SELECT + 12 / + 34 + + ( - + 14 ) FROM tab1
----
-14
-14
-14

query I rowsort
SELECT - col0 + + - 19 FROM tab0
----
-106
-116
-34

onlyif mysql # aggregate syntax: 
query II rowsort label-7955
SELECT - COUNT( * ) AS col2, - 60 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-9
-60

skipif mysql # not compatible
query II rowsort label-7955
SELECT - COUNT ( * ) AS col2, - 60 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-9
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-7956
SELECT COUNT( * ) + ( - - COUNT( * ) ) FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-7956
SELECT COUNT ( * ) + ( - - COUNT ( * ) ) FROM tab2
----
6

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NOT col0 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7958
SELECT - col0 * col0 * - CAST( + col1 AS SIGNED ) FROM tab0 AS cor0
----
158949
18225
9409

skipif mysql # not compatible
query I rowsort label-7958
SELECT - col0 * col0 * - CAST ( + col1 AS INTEGER ) FROM tab0 AS cor0
----
158949
18225
9409

query I rowsort
SELECT 37 FROM tab2 AS cor0 WHERE NOT + col1 * col2 IS NULL
----
37
37
37

query II rowsort
SELECT ALL + col2, 22 AS col1 FROM tab1
----
59
22
68
22
96
22

onlyif mysql # aggregate syntax: 
query I rowsort label-7961
SELECT DISTINCT ( - + MAX( 79 ) ) FROM tab1
----
-79

skipif mysql # not compatible
query I rowsort label-7961
SELECT DISTINCT ( - + MAX ( 79 ) ) FROM tab1
----
-79

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7962
SELECT ALL * FROM tab0 WHERE + col1 BETWEEN - 1 - - + col2 * - + col1 AND + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7962
SELECT ALL * FROM tab0 WHERE + col1 BETWEEN - 1 - - + col2 * - + col1 AND + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7963
SELECT 74 AS col0, COUNT( * ) * - COUNT( * ) FROM tab0
----
74
-9

skipif mysql # not compatible
query II rowsort label-7963
SELECT 74 AS col0, COUNT ( * ) * - COUNT ( * ) FROM tab0
----
74
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7964
SELECT ALL ( + MIN( DISTINCT - 72 ) ) col1 FROM tab1
----
-72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7964
SELECT ALL ( + MIN ( DISTINCT - 72 ) ) col1 FROM tab1
----
-72

query I rowsort
SELECT DISTINCT - col0 * + 33 FROM tab0
----
-2871
-3201
-495

query I rowsort
SELECT DISTINCT - 3 * - col1 AS col0 FROM tab2
----
153
201
231

query II rowsort
SELECT DISTINCT 57, + col2 AS col1 FROM tab0 AS cor0
----
57
10
57
47
57
99

query I rowsort
SELECT ALL 13 + - col0 FROM tab2 AS cor0
----
-33
-51
-62

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7969
SELECT DISTINCT * FROM tab1 WHERE NOT CAST( - 47 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7969
SELECT DISTINCT * FROM tab1 WHERE NOT CAST ( - 47 AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT ALL + 29 + - + col2 AS col1 FROM tab2 cor0
----
-11
-29
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7971
SELECT DISTINCT + + COUNT( * ) * + ( - - 38 ) AS col0 FROM tab0 AS cor0
----
114

skipif mysql # not compatible
query I rowsort label-7971
SELECT DISTINCT + + COUNT ( * ) * + ( - - 38 ) AS col0 FROM tab0 AS cor0
----
114

onlyif mysql # DIV for integer division: 
query I rowsort label-7972
SELECT ALL - col2 DIV 23 + - ( - - 81 ) + - col1 + - col2 AS col1 FROM tab2 AS cor0
----
-156
-199
-208

skipif mysql # not compatible
query I rowsort label-7972
SELECT ALL - col2 / 23 + - ( - - 81 ) + - col1 + - col2 AS col1 FROM tab2 AS cor0
----
-156
-199
-208

query I rowsort
SELECT col2 / 49 FROM tab1 AS cor0 WHERE 25 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7974
SELECT - MIN( col1 ) AS col0, COUNT( * ) FROM tab2 AS cor0
----
-51
3

skipif mysql # not compatible
query II rowsort label-7974
SELECT - MIN ( col1 ) AS col0, COUNT ( * ) FROM tab2 AS cor0
----
-51
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 88 col1 FROM tab1 AS cor0
----
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7976
SELECT DISTINCT - CAST( - - 45 AS SIGNED ) * - col2 col2 FROM tab2 AS cor0 WHERE NOT + col0 IS NULL
----
1035
1800
2610

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7976
SELECT DISTINCT - CAST ( - - 45 AS INTEGER ) * - col2 col2 FROM tab2 AS cor0 WHERE NOT + col0 IS NULL
----
1035
1800
2610

query III rowsort
SELECT * FROM tab0 WHERE + col0 + + ( + col2 ) < NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7978
SELECT ALL - COUNT( * ) * COUNT( * ) DIV + + 11 + - + COUNT( * ) col0 FROM tab1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7978
SELECT ALL - COUNT ( * ) * COUNT ( * ) / + + 11 + - + COUNT ( * ) col0 FROM tab1
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 9 - + - col0 col2 FROM tab0
----
106
24
96

query I rowsort
SELECT col0 * - - col1 + - 14 FROM tab1
----
411
4263
700

onlyif mysql # aggregate syntax: 
query I rowsort label-7981
SELECT COUNT( * ) AS col2 FROM tab2 WHERE + col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7981
SELECT COUNT ( * ) AS col2 FROM tab2 WHERE + col0 IS NULL
----
0

query I rowsort
SELECT DISTINCT col0 * - + ( + ( + - col0 ) ) FROM tab1
----
2601
7225
8281

query I rowsort
SELECT DISTINCT - col2 * + + col2 AS col2 FROM tab1 AS cor0
----
-3481
-4624
-9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - 33 col2, 0 AS col2 FROM tab0 AS cor0
----
33
0
33
0
33
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - ( - col0 ) col2 FROM tab2 AS cor0
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7986
SELECT ALL - ( - col0 ) * + col0 - + col2 * - + 70 + + col2 * 27 * + col2 * + col1 * - - CAST( NULL AS SIGNED ) + - col1 - CAST( NULL AS SIGNED ) * - col0 + - 76 + CAST( - col0 AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7986
SELECT ALL - ( - col0 ) * + col0 - + col2 * - + 70 + + col2 * 27 * + col2 * + col1 * - - CAST ( NULL AS INTEGER ) + - col1 - CAST ( NULL AS INTEGER ) * - col0 + - 76 + CAST ( - col0 AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 54 * col0 * - + col1 FROM tab1 AS cor0
----
-22950
-230958
-38556

query I rowsort
SELECT DISTINCT + + ( + - col0 ) AS col1 FROM tab0 AS cor0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-7989
SELECT DISTINCT - MIN( - 30 ) FROM tab0 cor0
----
30

skipif mysql # not compatible
query I rowsort label-7989
SELECT DISTINCT - MIN ( - 30 ) FROM tab0 cor0
----
30

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <> - 45 * + ( + col1 ) + + + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7991
SELECT 17 DIV col1 FROM tab1
----
0
1
3

skipif mysql # not compatible
query I rowsort label-7991
SELECT 17 / col1 FROM tab1
----
0
1
3

query I rowsort
SELECT ALL - 43 * + 33 FROM tab1
----
-1419
-1419
-1419

onlyif mysql # aggregate syntax: 
query I rowsort label-7993
SELECT ALL - SUM( + col2 ) AS col2 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-7993
SELECT ALL - SUM ( + col2 ) AS col2 FROM tab0 AS cor0
----
-156

query I rowsort
SELECT ALL + ( + 98 ) AS col2 FROM tab2 AS cor0
----
98
98
98

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7995
SELECT ( CAST( + col1 AS SIGNED ) ) DIV col1 AS col1 FROM tab0 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7995
SELECT ( CAST ( + col1 AS INTEGER ) ) / col1 AS col1 FROM tab0 cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7996
SELECT + 77 * ( - COUNT( * ) ) + - - 20 AS col2 FROM tab1 AS cor0
----
-211

skipif mysql # not compatible
query I rowsort label-7996
SELECT + 77 * ( - COUNT ( * ) ) + - - 20 AS col2 FROM tab1 AS cor0
----
-211

query I rowsort
SELECT - 81 FROM tab1 AS cor0 WHERE col2 + + col2 IS NOT NULL
----
-81
-81
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + col0, col0 + col1 col1 FROM tab0 cor0
----
15
96
87
108
97
98

onlyif mysql # aggregate syntax: 
query I rowsort label-7999
SELECT - 52 + + COUNT( * ) + + SUM( ALL col0 ) AS col1 FROM tab2 AS cor0
----
136

skipif mysql # not compatible
query I rowsort label-7999
SELECT - 52 + + COUNT ( * ) + + SUM ( ALL col0 ) AS col1 FROM tab2 AS cor0
----
136

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 31 * + 85 BETWEEN - col0 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8001
SELECT - MIN( - CAST( NULL AS SIGNED ) ) + 47 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8001
SELECT - MIN ( - CAST ( NULL AS INTEGER ) ) + 47 FROM tab2 cor0
----
NULL

query II rowsort
SELECT DISTINCT + 75 + + col0 AS col0, 22 FROM tab1
----
126
22
160
22
166
22

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8003
SELECT DISTINCT - col1 * + 71 - 23, CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
-1514
NULL
-5774
NULL
-94
NULL

skipif mysql # not compatible
query II rowsort label-8003
SELECT DISTINCT - col1 * + 71 - 23, CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
-1514
NULL
-5774
NULL
-94
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8004
SELECT DISTINCT + 36 DIV - col0 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8004
SELECT DISTINCT + 36 / - col0 AS col1 FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + 61 col0 FROM tab2
----
101
119
84

onlyif mysql # aggregate syntax: 
query I rowsort label-8006
SELECT ( - - 95 ) * - - MIN( - 2 ) AS col0 FROM tab2
----
-190

skipif mysql # not compatible
query I rowsort label-8006
SELECT ( - - 95 ) * - - MIN ( - 2 ) AS col0 FROM tab2
----
-190

onlyif mysql # aggregate syntax: 
query I rowsort label-8007
SELECT MIN( DISTINCT - col0 ) AS col2 FROM tab0 WHERE NULL IS NULL
----
-97

skipif mysql # not compatible
query I rowsort label-8007
SELECT MIN ( DISTINCT - col0 ) AS col2 FROM tab0 WHERE NULL IS NULL
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8008
SELECT + col1 * - CAST( - col2 AS SIGNED ) FROM tab1
----
1344
295
3196

skipif mysql # not compatible
query I rowsort label-8008
SELECT + col1 * - CAST ( - col2 AS INTEGER ) FROM tab1
----
1344
295
3196

onlyif mysql # DIV for integer division: 
query I rowsort label-8009
SELECT ALL - 43 DIV col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8009
SELECT ALL - 43 / col2 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT col1 * - col2 * - col0 AS col2 FROM tab0 WHERE NOT NULL <> + 87
----

query II rowsort
SELECT DISTINCT - ( + col2 ), col2 AS col0 FROM tab1 AS cor0
----
-59
59
-68
68
-96
96

query I rowsort
SELECT 85 - - - 71 * + - 66 AS col0 FROM tab0 cor0
----
4771
4771
4771

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + - 82 IS NULL
----

query I rowsort
SELECT DISTINCT + 44 / + - col1 AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8015
SELECT - COUNT( * ) * + 42 FROM tab2 AS cor0
----
-126

skipif mysql # not compatible
query I rowsort label-8015
SELECT - COUNT ( * ) * + 42 FROM tab2 AS cor0
----
-126

onlyif mysql # DIV for integer division: 
query I rowsort label-8016
SELECT - - col0 DIV + - ( + 39 ) + - 89 * col1 DIV col0 AS col1 FROM tab1 cor0
----
-25
-47
-7

skipif mysql # not compatible
query I rowsort label-8016
SELECT - - col0 / + - ( + 39 ) + - 89 * col1 / col0 AS col1 FROM tab1 cor0
----
-25
-47
-7

query I rowsort
SELECT + - 54 * + - col1 * + ( + col0 ) * col2 + - - col2 AS col1 FROM tab2 AS cor0
----
10644520
15738358
2913755

query III rowsort
SELECT * FROM tab2 WHERE NOT - 23 * - col2 / + col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8019
SELECT ALL + ( 96 ) DIV 90 AS col1 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8019
SELECT ALL + ( 96 ) / 90 AS col1 FROM tab1
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8020
SELECT - 95 * col1 FROM tab2 WHERE NOT - + CAST( NULL AS SIGNED ) IS NOT NULL
----
-4845
-6365
-7315

skipif mysql # not compatible
query I rowsort label-8020
SELECT - 95 * col1 FROM tab2 WHERE NOT - + CAST ( NULL AS INTEGER ) IS NOT NULL
----
-4845
-6365
-7315

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8021
SELECT + col1 AS col1 FROM tab0 WHERE NOT - + CAST( - - 26 AS SIGNED ) IS NULL
----
1
21
81

skipif mysql # not compatible
query I rowsort label-8021
SELECT + col1 AS col1 FROM tab0 WHERE NOT - + CAST ( - - 26 AS INTEGER ) IS NULL
----
1
21
81

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 35 * + col2 * col2 + + 14 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8023
SELECT ALL ( + COUNT( - col0 ) ) AS col1 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8023
SELECT ALL ( + COUNT ( - col0 ) ) AS col1 FROM tab0 cor0
----
3

query I rowsort
SELECT ALL + col2 * - col1 * + col1 + - 61 + + - 49 + ( - col0 ) FROM tab0 AS cor0
----
-306
-308492
-4607

onlyif mysql # aggregate syntax: 
query I rowsort label-8025
SELECT + COUNT( * ) + + MAX( - col0 ) FROM tab1
----
-48

skipif mysql # not compatible
query I rowsort label-8025
SELECT + COUNT ( * ) + + MAX ( - col0 ) FROM tab1
----
-48

query I rowsort
SELECT + ( + + col2 ) + - col1 FROM tab1
----
21
54
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 99 col2 FROM tab2 AS cor0 WHERE NOT col0 BETWEEN 39 AND NULL
----

query I rowsort
SELECT DISTINCT col1 FROM tab0 AS cor0 WHERE NULL BETWEEN - ( 68 ) AND - - col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8029
SELECT - 10 / + 61 + + COUNT( * ) - + - CAST( NULL AS SIGNED ) - + 76 + + COUNT( + col2 ) / + + ( - - MIN( - col2 ) ) * + + 70 * - COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8029
SELECT - 10 / + 61 + + COUNT ( * ) - + - CAST ( NULL AS INTEGER ) - + 76 + + COUNT ( + col2 ) / + + ( - - MIN ( - col2 ) ) * + + 70 * - COUNT ( * ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + 79 * - col0 + - col1 + - - 7 FROM tab2 AS cor0
----
-3678
-5126
-5985

query I rowsort
SELECT + col0 - - - col1 AS col0 FROM tab1 AS cor0
----
37
44
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8032
SELECT ALL + CAST( - - 47 AS SIGNED ) + col2 col2 FROM tab2 cor0
----
105
70
87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8032
SELECT ALL + CAST ( - - 47 AS INTEGER ) + col2 col2 FROM tab2 cor0
----
105
70
87

query I rowsort
SELECT DISTINCT - 72 + - - col1 FROM tab1 AS cor0
----
-25
-58
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-8034
SELECT - + col1 + col2 + + 4 DIV - + 54 FROM tab0 WHERE col2 IS NOT NULL
----
-11
-34
98

skipif mysql # not compatible
query I rowsort label-8034
SELECT - + col1 + col2 + + 4 / - + 54 FROM tab0 WHERE col2 IS NOT NULL
----
-11
-34
98

query I rowsort
SELECT DISTINCT + 14 - + col2 - col2 AS col1 FROM tab2
----
-102
-32
-66

query I rowsort
SELECT 34 + 55 AS col2 FROM tab1
----
89
89
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8037
SELECT DISTINCT CAST( CAST( + - COUNT( ALL - 57 ) AS SIGNED ) AS SIGNED ) - + 84 FROM tab1
----
-87

skipif mysql # not compatible
query I rowsort label-8037
SELECT DISTINCT CAST ( CAST ( + - COUNT ( ALL - 57 ) AS INTEGER ) AS INTEGER ) - + 84 FROM tab1
----
-87

query II rowsort
SELECT 73 AS col2, 18 AS col2 FROM tab2 AS cor0
----
73
18
73
18
73
18

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT NULL BETWEEN col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8040
SELECT DISTINCT - 67 * + - SUM( col2 ) / - COUNT( ALL ( - - col1 ) ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8040
SELECT DISTINCT - 67 * + - SUM ( col2 ) / - COUNT ( ALL ( - - col1 ) ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8041
SELECT - MIN( DISTINCT - 69 ) AS col0 FROM tab2
----
69

skipif mysql # not compatible
query I rowsort label-8041
SELECT - MIN ( DISTINCT - 69 ) AS col0 FROM tab2
----
69

query I rowsort
SELECT - 24 * + col1 AS col1 FROM tab2 AS cor0
----
-1224
-1608
-1848

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 77 col0 FROM tab1 AS cor0
----
77
77
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 - + 92 col2 FROM tab0 AS cor0 WHERE + col1 / - ( - col2 ) + - 12 > col2 * + col0 + + col1
----

query I rowsort
SELECT - + 68 AS col1 FROM tab0 cor0
----
-68
-68
-68

query I rowsort
SELECT DISTINCT - - col2 * col0 * + + col1 AS col2 FROM tab0 AS cor0
----
18270
57105
9603

query II rowsort
SELECT + col2 * + + col2, + col0 AS col2 FROM tab2 AS cor0
----
1600
64
3364
75
529
46

query II rowsort
SELECT DISTINCT + + col2 * col2, + col1 * + col2 AS col1 FROM tab0 AS cor0
----
100
210
2209
3807
9801
99

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NOT ( + 97 * col2 BETWEEN - ( + col0 ) * + 4 AND NULL ) )
----

query I rowsort
SELECT - col2 * + - 46 FROM tab1 AS cor0
----
2714
3128
4416

query I rowsort
SELECT DISTINCT col1 * + + 58 FROM tab2 AS cor0
----
2958
3886
4466

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 > - col0
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NOT + col0 * - - col2 IS NULL )
----

query I rowsort
SELECT 54 * 41 + + col2 FROM tab2
----
2237
2254
2272

onlyif mysql # DIV for integer division: 
query II rowsort label-8055
SELECT ALL col2 DIV col1 * + - col2, col2 FROM tab2
----
0
23
0
40
0
58

skipif mysql # not compatible
query II rowsort label-8055
SELECT ALL col2 / col1 * + - col2, col2 FROM tab2
----
0
23
0
40
0
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8056
SELECT ( + + col2 ) * + ( + 18 ) * ( - 99 ) * CAST( NULL AS SIGNED ) * + col0 - col0 + + 85 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8056
SELECT ( + + col2 ) * + ( + 18 ) * ( - 99 ) * CAST ( NULL AS INTEGER ) * + col0 - col0 + + 85 AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8057
SELECT DISTINCT + 30 AS col0, 48 * - COUNT( * ) FROM tab0
----
30
-144

skipif mysql # not compatible
query II rowsort label-8057
SELECT DISTINCT + 30 AS col0, 48 * - COUNT ( * ) FROM tab0
----
30
-144

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL < NULL OR NOT NULL BETWEEN NULL AND + col2 * + col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8059
SELECT DISTINCT COUNT( * ), 92 DIV + + ( 85 ) AS col1 FROM tab2
----
3
1

skipif mysql # not compatible
query II rowsort label-8059
SELECT DISTINCT COUNT ( * ), 92 / + + ( 85 ) AS col1 FROM tab2
----
3
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8060
SELECT - 39 AS col2, - SUM( DISTINCT + col2 ) AS col0 FROM tab1
----
-39
-223

skipif mysql # not compatible
query II rowsort label-8060
SELECT - 39 AS col2, - SUM ( DISTINCT + col2 ) AS col0 FROM tab1
----
-39
-223

query I rowsort
SELECT ALL - - 90 + + - col2 FROM tab0 AS cor0
----
-9
43
80

onlyif mysql # aggregate syntax: 
query II rowsort label-8062
SELECT DISTINCT + - MIN( DISTINCT - col1 ) + COUNT( * ) AS col0, - 23 FROM tab2 AS cor0
----
80
-23

skipif mysql # not compatible
query II rowsort label-8062
SELECT DISTINCT + - MIN ( DISTINCT - col1 ) + COUNT ( * ) AS col0, - 23 FROM tab2 AS cor0
----
80
-23

query I rowsort
SELECT + 69 * + col2 AS col0 FROM tab1
----
4071
4692
6624

onlyif mysql # DIV for integer division: 
query I rowsort label-8064
SELECT ALL + col2 + + - col0 - + 77 DIV col2 col0 FROM tab1
----
-24
-27
45

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8064
SELECT ALL + col2 + + - col0 - + 77 / col2 col0 FROM tab1
----
-24
-27
45

query I rowsort
SELECT DISTINCT + + 85 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
85

query II rowsort
SELECT col2 + - 86 AS col1, + 83 * - - col0 FROM tab1
----
-18
7553
-27
7055
10
4233

query I rowsort
SELECT col1 FROM tab0 cor0 WHERE NULL = col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8068
SELECT DISTINCT + - COUNT( - col0 ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8068
SELECT DISTINCT + - COUNT ( - col0 ) AS col2 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT DISTINCT 7 + - col1 FROM tab1 AS cor0
----
-40
-7
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8070
SELECT ALL - + ( COUNT( + + 72 ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8070
SELECT ALL - + ( COUNT ( + + 72 ) ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL + 74 + 37 AS col1 FROM tab2
----
111
111
111

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 43 AS col2, col2 col2 FROM tab1
----
-43
59
-43
68
-43
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 60 * + 47 - col2 col1, - 68 * - col0 AS col1 FROM tab1
----
2724
3468
2752
6188
2761
5780

query I rowsort
SELECT col0 * - + 32 - + - ( - + ( ( col1 ) ) ) AS col0 FROM tab1
----
-1646
-2725
-2959

query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE NOT col1 IS NULL AND ( + col0 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8076
SELECT - col2 * col0 DIV - col0 - - col2 AS col1 FROM tab0
----
198
20
94

skipif mysql # not compatible
query I rowsort label-8076
SELECT - col2 * col0 / - col0 - - col2 AS col1 FROM tab0
----
198
20
94

onlyif mysql # DIV for integer division: 
query I rowsort label-8077
SELECT 17 DIV - col0 - + - ( col1 ) col2 FROM tab2
----
51
67
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8077
SELECT 17 / - col0 - + - ( col1 ) col2 FROM tab2
----
51
67
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8078
SELECT ALL + MIN( ALL - - CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0 WHERE NOT col2 + - col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8078
SELECT ALL + MIN ( ALL - - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0 WHERE NOT col2 + - col2 IS NULL
----
NULL

query I rowsort
SELECT ALL - ( + 91 ) AS col0 FROM tab2
----
-91
-91
-91

query II rowsort
SELECT col0 AS col0, 67 FROM tab1
----
51
67
85
67
91
67

onlyif mysql # aggregate syntax: 
query I rowsort label-8081
SELECT - SUM( - 77 ) FROM tab1 AS cor0
----
231

skipif mysql # not compatible
query I rowsort label-8081
SELECT - SUM ( - 77 ) FROM tab1 AS cor0
----
231

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 < 65 AND NULL >= col0 * + + 18
----

query II rowsort
SELECT ALL + - col0 * - 63 AS col0, col1 FROM tab1 AS cor0
----
3213
14
5355
5
5733
47

query I rowsort
SELECT ( + col2 ) * + ( - col0 ) * + col1 FROM tab2 AS cor0
----
-197120
-291450
-53958

query I rowsort
SELECT ALL + 47 + + col1 AS col1 FROM tab2
----
114
124
98

query III rowsort
SELECT * FROM tab1 WHERE - col1 = + ( + + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8087
SELECT DISTINCT - + MIN( ALL col0 ) * + SUM( - - 68 ) AS col1 FROM tab0 cor0
----
-3060

skipif mysql # not compatible
query I rowsort label-8087
SELECT DISTINCT - + MIN ( ALL col0 ) * + SUM ( - - 68 ) AS col1 FROM tab0 cor0
----
-3060

onlyif mysql # aggregate syntax: 
query I rowsort label-8088
SELECT + COUNT( * ) + - 96 FROM tab0 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-8088
SELECT + COUNT ( * ) + - 96 FROM tab0 AS cor0
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-8089
SELECT COUNT( * ) + 82 col2 FROM tab2 AS cor0
----
85

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8089
SELECT COUNT ( * ) + 82 col2 FROM tab2 AS cor0
----
85

query I rowsort
SELECT + 16 * - + col0 - + col1 FROM tab2 cor0 WHERE NULL IS NULL
----
-1101
-1267
-787

query I rowsort
SELECT ALL col2 + + col2 + + col2 FROM tab1
----
177
204
288

onlyif mysql # DIV for integer division: 
query I rowsort label-8092
SELECT DISTINCT + 2 DIV - - 5 * 42 * - ( - - col0 ) * col1 col2 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8092
SELECT DISTINCT + 2 / - - 5 * 42 * - ( - - col0 ) * col1 col2 FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8093
SELECT ALL + col1 - + - col2 * - col0 DIV - col0 FROM tab2 AS cor0
----
117
125
74

skipif mysql # not compatible
query I rowsort label-8093
SELECT ALL + col1 - + - col2 * - col0 / - col0 FROM tab2 AS cor0
----
117
125
74

onlyif mysql # aggregate syntax: 
query I rowsort label-8094
SELECT ALL SUM( col1 ) AS col1 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-8094
SELECT ALL SUM ( col1 ) AS col1 FROM tab1 AS cor0
----
66

query II rowsort
SELECT DISTINCT + col1 AS col0, - ( + - 88 ) AS col1 FROM tab1 AS cor0
----
14
88
47
88
5
88

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8096
SELECT + col2 * col0 * - CAST( NULL AS SIGNED ) - col2, + col1 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-8096
SELECT + col2 * col0 * - CAST ( NULL AS INTEGER ) - col2, + col1 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

query I rowsort
SELECT - - col2 * 81 - - - col0 FROM tab1 AS cor0
----
4694
5417
7725

onlyif mysql # DIV for integer division: 
query I rowsort label-8098
SELECT + - col1 DIV 65 - - + 31 FROM tab0 AS cor0
----
30
31
31

skipif mysql # not compatible
query I rowsort label-8098
SELECT + - col1 / 65 - - + 31 FROM tab0 AS cor0
----
30
31
31

onlyif mysql # DIV for integer division: 
query I rowsort label-8099
SELECT ALL + 3 DIV + - 15 + - - col1 AS col2 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-8099
SELECT ALL + 3 / + - 15 + - - col1 AS col2 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8100
SELECT DISTINCT + - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT + col2 * - - col0 NOT BETWEEN ( col2 ) AND - CAST( + + 22 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-8100
SELECT DISTINCT + - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT + col2 * - - col0 NOT BETWEEN ( col2 ) AND - CAST ( + + 22 AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8101
SELECT + - COUNT( * ) + - 77 + + MAX( DISTINCT - - ( 58 ) ) FROM tab1 WHERE + col1 IS NOT NULL
----
-22

skipif mysql # not compatible
query I rowsort label-8101
SELECT + - COUNT ( * ) + - 77 + + MAX ( DISTINCT - - ( 58 ) ) FROM tab1 WHERE + col1 IS NOT NULL
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-8102
SELECT DISTINCT - SUM( ALL + col2 ) AS col1 FROM tab1 WHERE NULL <> - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8102
SELECT DISTINCT - SUM ( ALL + col2 ) AS col1 FROM tab1 WHERE NULL <> - col0
----
NULL

query I rowsort
SELECT - col0 * + ( + col2 ) FROM tab0
----
-705
-870
-9603

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8104
SELECT ALL + MIN( ALL - CAST( - col0 AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-8104
SELECT ALL + MIN ( ALL - CAST ( - col0 AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
15

query IIIIII rowsort
SELECT * FROM tab0, tab2 cor0 WHERE NOT + 36 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8106
SELECT - 50 * + COUNT( * ) AS col2 FROM tab0
----
-150

skipif mysql # not compatible
query I rowsort label-8106
SELECT - 50 * + COUNT ( * ) AS col2 FROM tab0
----
-150

query III rowsort
SELECT * FROM tab1 WHERE NOT + 83 NOT BETWEEN 87 * col2 AND - 58 / col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8108
SELECT ALL + 81 * - + COUNT( * ) FROM tab1
----
-243

skipif mysql # not compatible
query I rowsort label-8108
SELECT ALL + 81 * - + COUNT ( * ) FROM tab1
----
-243

query I rowsort
SELECT ALL - 62 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f0e93f6ff5fc3cf50a14e276206dad5c

query I rowsort
SELECT DISTINCT ( - col0 ) * + col2 AS col0 FROM tab1 cor0
----
-4896
-5015
-6188

query I rowsort
SELECT ALL - 95 AS col1 FROM tab2 cor0 WHERE - 38 = - 27
----

query I rowsort
SELECT ALL + col2 * - 85 - + col2 * - col2 FROM tab0 AS cor0
----
-1786
-750
1386

query I rowsort
SELECT ( - col0 ) * - 21 FROM tab2 cor0
----
1344
1575
966

onlyif mysql # DIV for integer division: 
query I rowsort label-8114
SELECT DISTINCT - + 31 DIV - 98 + 54 FROM tab0 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-8114
SELECT DISTINCT - + 31 / - 98 + 54 FROM tab0 AS cor0
----
54

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 + + - col2 >= col1
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - ( + 64 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8117
SELECT ALL - COUNT( DISTINCT + - ( 13 ) ) + + - 7 AS col1 FROM tab1 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-8117
SELECT ALL - COUNT ( DISTINCT + - ( 13 ) ) + + - 7 AS col1 FROM tab1 AS cor0
----
-8

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + col2 - + col2 IS NOT NULL
----

query I rowsort
SELECT - col0 + ( - col1 ) AS col1 FROM tab1 AS cor0
----
-138
-65
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8120
SELECT DISTINCT COUNT( * ) + + CAST( - - 77 AS SIGNED ) * MIN( ALL 27 ) * COUNT( * ) AS col1 FROM tab2
----
6240

skipif mysql # not compatible
query I rowsort label-8120
SELECT DISTINCT COUNT ( * ) + + CAST ( - - 77 AS INTEGER ) * MIN ( ALL 27 ) * COUNT ( * ) AS col1 FROM tab2
----
6240

query I rowsort
SELECT col1 + - 7 * + 98 FROM tab1
----
-639
-672
-681

onlyif mysql # DIV for integer division: 
query II rowsort label-8122
SELECT + col2 DIV - col2, col2 AS col0 FROM tab1
----
-1
59
-1
68
-1
96

skipif mysql # not compatible
query II rowsort label-8122
SELECT + col2 / - col2, col2 AS col0 FROM tab1
----
-1
59
-1
68
-1
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8123
SELECT - MAX( col0 ) AS col0 FROM tab2 cor0
----
-75

skipif mysql # not compatible
query I rowsort label-8123
SELECT - MAX ( col0 ) AS col0 FROM tab2 cor0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8124
SELECT ALL COUNT( * ) + - 49 FROM tab0
----
-46

skipif mysql # not compatible
query I rowsort label-8124
SELECT ALL COUNT ( * ) + - 49 FROM tab0
----
-46

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 * col1 + - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8126
SELECT ALL - + 45 / CAST( NULL AS SIGNED ) + + AVG ( DISTINCT - + col1 ) AS col0 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8126
SELECT ALL - + 45 / CAST ( NULL AS INTEGER ) + + AVG ( DISTINCT - + col1 ) AS col0 FROM tab2 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8127
SELECT ALL 8 FROM tab1 AS cor0 WHERE NOT 78 >= col1 * - col1 * - - CAST( NULL AS SIGNED ) * + + col2 * + 26
----

skipif mysql # not compatible
query I rowsort label-8127
SELECT ALL 8 FROM tab1 AS cor0 WHERE NOT 78 >= col1 * - col1 * - - CAST ( NULL AS INTEGER ) * + + col2 * + 26
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 col1 FROM tab0 AS cor0 WHERE NOT col1 IN ( + col1 + - 21, + col0 * col1, + - ( 22 ), - 28, + col0, col0, + col0, - col2, + + col0 )
----
-15
-87
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8129
SELECT ALL - COUNT( DISTINCT - CAST( - 91 AS SIGNED ) ) AS col2 FROM tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8129
SELECT ALL - COUNT ( DISTINCT - CAST ( - 91 AS INTEGER ) ) AS col2 FROM tab0 cor0
----
-1

query I rowsort
SELECT DISTINCT 56 * + col1 + + - col1 * + col1 AS col1 FROM tab2 AS cor0
----
-1617
-737
255

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col2 = - 88
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8132
SELECT DISTINCT + col0 AS col0, 54 * + - CAST( - + 4 AS SIGNED ) AS col0 FROM tab2
----
46
216
64
216
75
216

skipif mysql # not compatible
query II rowsort label-8132
SELECT DISTINCT + col0 AS col0, 54 * + - CAST ( - + 4 AS INTEGER ) AS col0 FROM tab2
----
46
216
64
216
75
216

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8133
SELECT + CAST( - col2 AS SIGNED ) * + col2 - - - col2 AS col0 FROM tab1
----
-3540
-4692
-9312

skipif mysql # not compatible
query I rowsort label-8133
SELECT + CAST ( - col2 AS INTEGER ) * + col2 - - - col2 AS col0 FROM tab1
----
-3540
-4692
-9312

query II rowsort
SELECT 89, - ( - 50 ) AS col1 FROM tab1
----
89
50
89
50
89
50

onlyif mysql # aggregate syntax: 
query II rowsort label-8135
SELECT DISTINCT + COUNT( * ) AS col2, - COUNT( * ) + - ( - COUNT( * ) ) FROM tab0
----
3
0

skipif mysql # not compatible
query II rowsort label-8135
SELECT DISTINCT + COUNT ( * ) AS col2, - COUNT ( * ) + - ( - COUNT ( * ) ) FROM tab0
----
3
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8136
SELECT DISTINCT + 52 * COUNT( * ) AS col2 FROM tab2 WHERE - 26 BETWEEN + 69 * + ( col1 ) AND - 35 + + col2
----
0

skipif mysql # not compatible
query I rowsort label-8136
SELECT DISTINCT + 52 * COUNT ( * ) AS col2 FROM tab2 WHERE - 26 BETWEEN + 69 * + ( col1 ) AND - 35 + + col2
----
0

query I rowsort
SELECT 73 FROM tab1 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT 93 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
93
93
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8139
SELECT DISTINCT - + MAX( 37 ) FROM tab1 AS cor0
----
-37

skipif mysql # not compatible
query I rowsort label-8139
SELECT DISTINCT - + MAX ( 37 ) FROM tab1 AS cor0
----
-37

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8140
SELECT ALL * FROM tab0 WHERE NOT ( CAST( ( col1 ) AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8140
SELECT ALL * FROM tab0 WHERE NOT ( CAST ( ( col1 ) AS INTEGER ) ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE ( + col1 + - 5 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8142
SELECT + 34 * - ( CAST( col1 AS SIGNED ) ) + + col1 AS col2 FROM tab2
----
-1683
-2211
-2541

skipif mysql # not compatible
query I rowsort label-8142
SELECT + 34 * - ( CAST ( col1 AS INTEGER ) ) + + col1 AS col2 FROM tab2
----
-1683
-2211
-2541

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col0 + - col2 * col0 col1 FROM tab0
----
-1410
-1740
-19206

query I rowsort
SELECT + 65 FROM tab0 WHERE NOT + 17 <= ( - col1 )
----
65
65
65

onlyif mysql # aggregate syntax: 
query I rowsort label-8145
SELECT ALL 57 - + COUNT( * ) AS col1 FROM tab1
----
54

skipif mysql # not compatible
query I rowsort label-8145
SELECT ALL 57 - + COUNT ( * ) AS col1 FROM tab1
----
54

query I rowsort
SELECT + 46 + 63 AS col1 FROM tab0
----
109
109
109

onlyif mysql # aggregate syntax: 
query I rowsort label-8147
SELECT DISTINCT COUNT( ( - 70 ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8147
SELECT DISTINCT COUNT ( ( - 70 ) ) FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8148
SELECT * FROM tab2 WHERE NOT ( CAST( - col1 AS SIGNED ) ) < col0
----

skipif mysql # not compatible
query III rowsort label-8148
SELECT * FROM tab2 WHERE NOT ( CAST ( - col1 AS INTEGER ) ) < col0
----

query I rowsort
SELECT col2 * + 67 AS col0 FROM tab0 WHERE - 20 = + 59
----

query I rowsort
SELECT - 60 + - ( col1 + - col1 ) FROM tab1
----
-60
-60
-60

query I rowsort
SELECT ALL 5 * 79 AS col0 FROM tab2
----
395
395
395

query I rowsort
SELECT + 49 + 76 FROM tab0
----
125
125
125

onlyif mysql # aggregate syntax: 
query I rowsort label-8153
SELECT COUNT( ALL col2 ) + - MAX( DISTINCT - 12 ) AS col2 FROM tab1 WHERE NULL IS NULL
----
15

skipif mysql # not compatible
query I rowsort label-8153
SELECT COUNT ( ALL col2 ) + - MAX ( DISTINCT - 12 ) AS col2 FROM tab1 WHERE NULL IS NULL
----
15

query I rowsort
SELECT col1 + col0 * + col0 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8155
SELECT SUM( col1 ) FROM tab0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8155
SELECT SUM ( col1 ) FROM tab0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8156
SELECT COUNT( ALL CAST( col1 AS SIGNED ) ) * + 42 FROM tab1
----
126

skipif mysql # not compatible
query I rowsort label-8156
SELECT COUNT ( ALL CAST ( col1 AS INTEGER ) ) * + 42 FROM tab1
----
126

query I rowsort
SELECT 17 * col2 + col0 AS col1 FROM tab0
----
1780
257
814

query I rowsort
SELECT - col0 + + 61 FROM tab2 AS cor0
----
-14
-3
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8159
SELECT + COUNT( * ) * + COUNT( * ) + 66 AS col0 FROM tab0 cor0
----
75

skipif mysql # not compatible
query I rowsort label-8159
SELECT + COUNT ( * ) * + COUNT ( * ) + 66 AS col0 FROM tab0 cor0
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8160
SELECT DISTINCT 89 DIV + MAX( ALL + ( + col2 ) ) + + MAX( - col1 ) * MAX( + col0 ) AS col1 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-8160
SELECT DISTINCT 89 / + MAX ( ALL + ( + col2 ) ) + + MAX ( - col1 ) * MAX ( + col0 ) AS col1 FROM tab0 AS cor0
----
-97

query I rowsort
SELECT + col1 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) >= - col2
----

query III rowsort
SELECT * FROM tab2 WHERE col0 * 73 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8163
SELECT DISTINCT COUNT( * ) AS col1 FROM ( tab2 cor0 CROSS JOIN tab2 )
----
9

skipif mysql # not compatible
query I rowsort label-8163
SELECT DISTINCT COUNT ( * ) AS col1 FROM ( tab2 cor0 CROSS JOIN tab2 )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8164
SELECT ALL + COUNT( ALL col1 ) - + COUNT( * ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8164
SELECT ALL + COUNT ( ALL col1 ) - + COUNT ( * ) FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8165
SELECT + MAX( + 24 ) AS col1 FROM tab1 cor0
----
24

skipif mysql # not compatible
query I rowsort label-8165
SELECT + MAX ( + 24 ) AS col1 FROM tab1 cor0
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8166
SELECT ALL + + CAST( col2 AS SIGNED ) FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-8166
SELECT ALL + + CAST ( col2 AS INTEGER ) FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT + 35 * + col1 AS col0 FROM tab1 AS cor0
----
1645
175
490

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 15 / col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 37 * - 98 FROM tab2 AS cor0
----
-3626

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + col2 AND ( col0 - + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8171
SELECT - - CAST( col1 AS SIGNED ) DIV col1 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8171
SELECT - - CAST ( col1 AS INTEGER ) / col1 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8172
SELECT ALL 25 DIV COUNT( * ) col2 FROM tab0 cor0
----
8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8172
SELECT ALL 25 / COUNT ( * ) col2 FROM tab0 cor0
----
8

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( 26 * col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8174
SELECT DISTINCT + 10 + COUNT( * ) AS col2 FROM tab2 WHERE ( + col0 + col0 ) <> - col0 * col1
----
13

skipif mysql # not compatible
query I rowsort label-8174
SELECT DISTINCT + 10 + COUNT ( * ) AS col2 FROM tab2 WHERE ( + col0 + col0 ) <> - col0 * col1
----
13

query III rowsort
SELECT * FROM tab0 WHERE NOT 47 <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN NULL AND - ( - col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8177
SELECT ALL CAST( NULL AS SIGNED ) * MIN( DISTINCT - 22 ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8177
SELECT ALL CAST ( NULL AS INTEGER ) * MIN ( DISTINCT - 22 ) AS col1 FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 * col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8179
SELECT DISTINCT - COUNT( * ) DIV + - 64 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8179
SELECT DISTINCT - COUNT ( * ) / + - 64 FROM tab1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8180
SELECT ALL CAST( + + COUNT( * ) AS SIGNED ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8180
SELECT ALL CAST ( + + COUNT ( * ) AS INTEGER ) AS col1 FROM tab0
----
3

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 * - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8182
SELECT DISTINCT - COUNT( * ) * + 32 * + COUNT( * ) FROM tab2
----
-288

skipif mysql # not compatible
query I rowsort label-8182
SELECT DISTINCT - COUNT ( * ) * + 32 * + COUNT ( * ) FROM tab2
----
-288

onlyif mysql # DIV for integer division: 
query I rowsort label-8183
SELECT - ( - col2 ) DIV - col0 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8183
SELECT - ( - col2 ) / - col0 AS col1 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 col1 FROM tab2 WHERE ( ( - col1 ) ) <= ( NULL )
----

query I rowsort
SELECT ALL - ( - - col2 ) AS col1 FROM tab1 AS cor0
----
-59
-68
-96

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE + ( col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8187
SELECT ALL + COUNT( col1 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8187
SELECT ALL + COUNT ( col1 ) AS col1 FROM tab0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8188
SELECT 67 DIV + + col0 + - - col0 DIV + 55 FROM tab2 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-8188
SELECT 67 / + + col0 + - - col0 / + 55 FROM tab2 AS cor0
----
1
1
2

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 86 < + col0 * + col1 + 3
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8190
SELECT - COUNT( * ) FROM tab2 AS cor0 WHERE NULL >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-8190
SELECT - COUNT ( * ) FROM tab2 AS cor0 WHERE NULL >= NULL
----
0

query I rowsort
SELECT ALL 23 * - 18 AS col2 FROM tab1 AS cor0 WHERE ( + col1 ) BETWEEN + col0 - + 82 * col2 AND + col2 + col2
----
-414
-414
-414

onlyif mysql # aggregate syntax: 
query I rowsort label-8192
SELECT - COUNT( * ) - - 99 AS col0 FROM tab2 cor0 WHERE ( NULL ) NOT BETWEEN NULL AND NULL
----
99

skipif mysql # not compatible
query I rowsort label-8192
SELECT - COUNT ( * ) - - 99 AS col0 FROM tab2 cor0 WHERE ( NULL ) NOT BETWEEN NULL AND NULL
----
99

query I rowsort
SELECT ALL + col0 + + - col2 + + 7 * - col0 AS col0 FROM tab0 AS cor0
----
-137
-532
-681

query I rowsort
SELECT ALL + 54 + + col1 + ( 63 ) AS col0 FROM tab0 cor0
----
118
138
198

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab2 AS cor0 WHERE + col1 >= NULL
----

query II rowsort
SELECT ALL - col0 + - - 88 AS col2, 84 FROM tab2
----
13
84
24
84
42
84

query III rowsort
SELECT * FROM tab0 WHERE 74 NOT BETWEEN + - col0 + + col1 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8198
SELECT - MIN( DISTINCT + col2 ) FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-8198
SELECT - MIN ( DISTINCT + col2 ) FROM tab1
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-8199
SELECT DISTINCT + 2 - COUNT( * ) FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-8199
SELECT DISTINCT + 2 - COUNT ( * ) FROM tab1
----
-1

query III rowsort
SELECT * FROM tab2 WHERE - col0 + - + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8201
SELECT ALL - COUNT( * ) - - - COUNT( * ) + COUNT( * ) * COUNT( - 78 ) * + COUNT( * ) DIV - COUNT( * ) FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-8201
SELECT ALL - COUNT ( * ) - - - COUNT ( * ) + COUNT ( * ) * COUNT ( - 78 ) * + COUNT ( * ) / - COUNT ( * ) FROM tab0
----
-15

query I rowsort
SELECT col2 + col0 * + col0 + - + col2 AS col1 FROM tab2 cor0
----
2116
4096
5625

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 13 * col0 IN ( + 68 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - - col1 FROM tab2 AS cor0 WHERE + col1 > NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL ) = ( 47 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8206
SELECT - col0 + - + col0 + + col2 + - - 75 * - + col2 * - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8206
SELECT - col0 + - + col0 + + col2 + - - 75 * - + col2 * - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 28 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
28

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 / + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8209
SELECT DISTINCT CAST( NULL AS DECIMAL ) * col1 * - - col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8209
SELECT DISTINCT CAST ( NULL AS REAL ) * col1 * - - col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8210
SELECT - COUNT( * ) AS col0 FROM tab0 cor0 WHERE NOT NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-8210
SELECT - COUNT ( * ) AS col0 FROM tab0 cor0 WHERE NOT NULL < NULL
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 BETWEEN - ( + 37 ) AND ( NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 2 * - col0 col1 FROM tab0 AS cor0
----
174
194
30

query I rowsort
SELECT DISTINCT + + 21 + - + col1 / + col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8214
SELECT MIN( DISTINCT + 24 ) FROM tab0 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-8214
SELECT MIN ( DISTINCT + 24 ) FROM tab0 AS cor0
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-8215
SELECT ALL + col2 DIV - col0 AS col0 FROM tab1 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8215
SELECT ALL + col2 / - col0 AS col0 FROM tab1 cor0
----
-1
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8216
SELECT + + 41 DIV + MAX( + col0 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8216
SELECT + + 41 / + MAX ( + col0 ) FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( col2 ) col1 FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8218
SELECT ALL + CAST( + - col1 AS SIGNED ) AS col2 FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-8218
SELECT ALL + CAST ( + - col1 AS INTEGER ) AS col2 FROM tab1
----
-14
-47
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 * + 11 col0, - col0 + - col1 * 8 FROM tab1
----
-1056
-163
-649
-125
-748
-467

query I rowsort
SELECT col0 AS col1 FROM tab0 WHERE NOT ( - 54 + + col2 ) IS NULL
----
15
87
97

query III rowsort
SELECT ALL * FROM tab2 WHERE - col2 / col2 + - 7 = ( ( 81 ) )
----

query I rowsort
SELECT col0 * ( + 67 ) FROM tab0
----
1005
5829
6499

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8223
SELECT - 72 AS col0 FROM tab1 WHERE NOT NULL < ( + col1 / CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query I rowsort label-8223
SELECT - 72 AS col0 FROM tab1 WHERE NOT NULL < ( + col1 / CAST ( NULL AS REAL ) )
----

query II rowsort
SELECT 59 AS col2, 14 FROM tab1 AS cor0
----
59
14
59
14
59
14

query II rowsort
SELECT col1, - col1 * + + col1 AS col0 FROM tab1 AS cor0
----
14
-196
47
-2209
5
-25

query II rowsort
SELECT + + col0 + + col1 AS col1, col2 * col0 AS col0 FROM tab2 cor0
----
141
2560
142
4350
97
1058

query I rowsort
SELECT + 52 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 7f4ae30893ab330784829711032ae599

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8228
SELECT ALL + col0 / - CAST( NULL AS DECIMAL ) * 9 + + col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8228
SELECT ALL + col0 / - CAST ( NULL AS REAL ) * 9 + + col0 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 NOT IN ( 58 * - 98 + + col0 + - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8230
SELECT DISTINCT + COUNT( * ) DIV - + ( - COUNT( * ) ) + + 64 FROM tab0 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-8230
SELECT DISTINCT + COUNT ( * ) / - + ( - COUNT ( * ) ) + + 64 FROM tab0 AS cor0
----
65

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NOT - ( - col0 ) * + 77 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - - col0 * + col0 AS col2 FROM tab0 AS cor0
----
225
7569
9409

query II rowsort
SELECT - - 29, ( col2 ) FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
29
10
29
47
29
99

query I rowsort
SELECT - col0 - ( + 38 ) AS col0 FROM tab0 AS cor0
----
-125
-135
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-8235
SELECT DISTINCT + ( + SUM( ALL - col2 ) ) - + 53 + + ( - 98 ) * 76 * SUM( + ( 65 ) ) FROM tab0 cor0
----
-1452569

skipif mysql # not compatible
query I rowsort label-8235
SELECT DISTINCT + ( + SUM ( ALL - col2 ) ) - + 53 + + ( - 98 ) * 76 * SUM ( + ( 65 ) ) FROM tab0 cor0
----
-1452569

query I rowsort
SELECT ALL 51 * + - col0 AS col0 FROM tab2 AS cor0 WHERE ( - 77 ) NOT IN ( 16, col0 )
----
-2346
-3264
-3825

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8237
SELECT CAST( + + ( + 49 ) AS SIGNED ) + 15 col0 FROM tab0
----
64
64
64

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8237
SELECT CAST ( + + ( + 49 ) AS INTEGER ) + 15 col0 FROM tab0
----
64
64
64

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) NOT IN ( 9 * + 24 * ( - + ( + 50 ) ) )
----

query III rowsort
SELECT * FROM tab2 WHERE ( NOT - - col0 NOT BETWEEN + + col2 AND NULL ) OR NOT ( - - 33 ) NOT IN ( col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8240
SELECT col0 * - CAST( + col0 AS SIGNED ) col0 FROM tab1 WHERE - col0 >= ( ( + - col1 ) )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8240
SELECT col0 * - CAST ( + col0 AS INTEGER ) col0 FROM tab1 WHERE - col0 >= ( ( + - col1 ) )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8241
SELECT ALL + 35, - col2 * + CAST( col1 AS SIGNED ) + + + 25 DIV + - col2 AS col1 FROM tab2
----
35
-1174
35
-3080
35
-3886

skipif mysql # not compatible
query II rowsort label-8241
SELECT ALL + 35, - col2 * + CAST ( col1 AS INTEGER ) + + + 25 / + - col2 AS col1 FROM tab2
----
35
-1174
35
-3080
35
-3886

onlyif mysql # DIV for integer division: 
query I rowsort label-8242
SELECT DISTINCT + 28 DIV 99 - col1 * + - col2 + 56 AS col2 FROM tab0 cor0
----
155
266
3863

skipif mysql # not compatible
query I rowsort label-8242
SELECT DISTINCT + 28 / 99 - col1 * + - col2 + 56 AS col2 FROM tab0 cor0
----
155
266
3863

query I rowsort
SELECT + 54 * + col2 * 56 + + col0 - col0 FROM tab0 cor0
----
142128
299376
30240

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8244
SELECT col0 * col1 + + col2 FROM tab0 WHERE NOT ( + + 25 ) NOT BETWEEN col2 + + ( ( - col0 ) ) / 54 AND ( CAST( NULL AS SIGNED ) * + col2 )
----

skipif mysql # not compatible
query I rowsort label-8244
SELECT col0 * col1 + + col2 FROM tab0 WHERE NOT ( + + 25 ) NOT BETWEEN col2 + + ( ( - col0 ) ) / 54 AND ( CAST ( NULL AS INTEGER ) * + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8245
SELECT ALL 96 * - COUNT( * ) FROM tab0 AS cor0
----
-288

skipif mysql # not compatible
query I rowsort label-8245
SELECT ALL 96 * - COUNT ( * ) FROM tab0 AS cor0
----
-288

query I rowsort
SELECT + + 32 * ( col2 ) FROM tab0 AS cor0
----
1504
3168
320

query I rowsort
SELECT DISTINCT + col1 * - col2 - + col2 + - - col1 AS col0 FROM tab2 AS cor0
----
-1145
-3043
-3877

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 52 * 10 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( 31 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 90 * col1 AS col1 FROM tab0
----
1890
7290
90

onlyif mysql # aggregate syntax: 
query I rowsort label-8251
SELECT ALL 97 * - COUNT( * ) FROM tab0
----
-291

skipif mysql # not compatible
query I rowsort label-8251
SELECT ALL 97 * - COUNT ( * ) FROM tab0
----
-291

onlyif mysql # DIV for integer division: 
query I rowsort label-8252
SELECT 31 DIV + - col1 FROM tab0
----
-1
-31
0

skipif mysql # not compatible
query I rowsort label-8252
SELECT 31 / + - col1 FROM tab0
----
-1
-31
0

query I rowsort
SELECT col2 * - + ( + - 38 ) FROM tab2
----
1520
2204
874

query II rowsort
SELECT col0 AS col2, - 96 * - - col2 + - 59 FROM tab2
----
46
-2267
64
-3899
75
-5627

query I rowsort
SELECT DISTINCT - - col2 + - 67 AS col2 FROM tab0 AS cor0
----
-20
-57
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8256
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - COUNT( * ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8256
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL col0 + col1 + col2 * - - 62 FROM tab2 cor0
----
1523
2621
3738

query I rowsort
SELECT - - col2 AS col1 FROM tab1 WHERE NULL <> col2 + - 4
----

query I rowsort
SELECT + + 78 + + col2 * - 45 FROM tab1 AS cor0
----
-2577
-2982
-4242

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL <> 14
----

query I rowsort
SELECT - + 40 + + col1 FROM tab0 AS cor0 WHERE ( col2 ) NOT IN ( + col1, + col1, col1 + - col2 )
----
-19
-39
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8262
SELECT + CAST( 33 AS SIGNED ) * + - 72 AS col2 FROM tab0 AS cor0
----
-2376
-2376
-2376

skipif mysql # not compatible
query I rowsort label-8262
SELECT + CAST ( 33 AS INTEGER ) * + - 72 AS col2 FROM tab0 AS cor0
----
-2376
-2376
-2376

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8263
SELECT - CAST( - COUNT( * ) AS SIGNED ) FROM tab0, tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8263
SELECT - CAST ( - COUNT ( * ) AS INTEGER ) FROM tab0, tab0 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8264
SELECT COUNT( DISTINCT + + col1 ) AS col1 FROM tab1 WHERE 30 + - col2 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-8264
SELECT COUNT ( DISTINCT + + col1 ) AS col1 FROM tab1 WHERE 30 + - col2 = NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8265
SELECT + CAST( - col0 AS SIGNED ) - + col0 AS col1, - CAST( - col2 AS SIGNED ) AS col2 FROM tab0
----
-174
10
-194
99
-30
47

skipif mysql # not compatible
query II rowsort label-8265
SELECT + CAST ( - col0 AS INTEGER ) - + col0 AS col1, - CAST ( - col2 AS INTEGER ) AS col2 FROM tab0
----
-174
10
-194
99
-30
47

query I rowsort
SELECT - col1 FROM tab0 WHERE ( NULL IS NULL )
----
-1
-21
-81

query II rowsort
SELECT DISTINCT - col1 - - col0, - 5 AS col0 FROM tab0 AS cor0
----
-66
-5
66
-5
96
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8268
SELECT ALL + + ( + + MAX( DISTINCT - 28 ) ) FROM tab1 AS cor0
----
-28

skipif mysql # not compatible
query I rowsort label-8268
SELECT ALL + + ( + + MAX ( DISTINCT - 28 ) ) FROM tab1 AS cor0
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8269
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 + - col2 - + CAST( NULL AS SIGNED ) - col2 >= - + col0
----

skipif mysql # not compatible
query III rowsort label-8269
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 + - col2 - + CAST ( NULL AS INTEGER ) - col2 >= - + col0
----

query I rowsort
SELECT DISTINCT - col1 FROM tab1 AS cor0 WHERE 5 IS NOT NULL
----
-14
-47
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8271
SELECT - CAST( NULL AS SIGNED ) * + 5 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8271
SELECT - CAST ( NULL AS INTEGER ) * + 5 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8272
SELECT ALL - COUNT( * ) AS col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-8272
SELECT ALL - COUNT ( * ) AS col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8273
SELECT ALL + COUNT( * ) * + - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE + col0 + - col2 + col2 * + 63 + + - col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8273
SELECT ALL + COUNT ( * ) * + - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE + col0 + - col2 + col2 * + 63 + + - col0 IS NULL
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col0 - 21 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8275
SELECT DISTINCT + COUNT( * ) AS col0, 86 FROM tab0 AS cor0
----
3
86

skipif mysql # not compatible
query II rowsort label-8275
SELECT DISTINCT + COUNT ( * ) AS col0, 86 FROM tab0 AS cor0
----
3
86

onlyif mysql # aggregate syntax: 
query II rowsort label-8276
SELECT + 68 AS col2, SUM( DISTINCT + 20 ) FROM tab0 AS cor0
----
68
20

skipif mysql # not compatible
query II rowsort label-8276
SELECT + 68 AS col2, SUM ( DISTINCT + 20 ) FROM tab0 AS cor0
----
68
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 28 col0, col1 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT - col1 * + + col2 FROM tab2 cor0
----
-1173
-3080
-3886

query II rowsort
SELECT DISTINCT col0 AS col0, - col0 FROM tab1 AS cor0
----
51
-51
85
-85
91
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8280
SELECT - 55 * + ( + 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-8280
SELECT - 55 * + ( + CAST ( NULL AS INTEGER ) ) col2 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 + - col0 BETWEEN + + 7 AND - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - + 28 + - 67 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL + col0, + col0 FROM tab1 WHERE NOT + 76 IS NULL
----
51
51
85
85
91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8284
SELECT - COUNT( * ) * - 84 AS col2 FROM tab0
----
252

skipif mysql # not compatible
query I rowsort label-8284
SELECT - COUNT ( * ) * - 84 AS col2 FROM tab0
----
252

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( - + col2, + col0, + - col0 )
----

query I rowsort
SELECT ALL + - col1 / - col1 AS col0 FROM tab0 WHERE NOT - col0 - - col1 + + 51 * col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8287
SELECT - 67 - + 13 FROM tab2 WHERE NOT - - 53 - - + col0 + + + col1 * - 4 * + 66 IN ( - col1, CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-8287
SELECT - 67 - + 13 FROM tab2 WHERE NOT - - 53 - - + col0 + + + col1 * - 4 * + 66 IN ( - col1, CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - ( 15 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + ( 70 ) col0 FROM tab0 AS cor0
----
151
71
91

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 67 / - col0 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8291
SELECT 87 + - + COUNT( * ) AS col2, + CAST( NULL AS SIGNED ) * - 23 AS col1 FROM tab0 WHERE 95 > - + col0
----
84
NULL

skipif mysql # not compatible
query II rowsort label-8291
SELECT 87 + - + COUNT ( * ) AS col2, + CAST ( NULL AS INTEGER ) * - 23 AS col1 FROM tab0 WHERE 95 > - + col0
----
84
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8292
SELECT ALL + CAST( NULL AS SIGNED ) + 20 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-8292
SELECT ALL + CAST ( NULL AS INTEGER ) + 20 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - col0 NOT IN ( + col1 * + - 63 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - ( - + col0 ) * - 20 FROM tab1 AS cor0
----
-1020
-1700
-1820

query I rowsort
SELECT DISTINCT - 64 * + 68 + + col0 AS col2 FROM tab1 AS cor0
----
-4261
-4267
-4301

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8296
SELECT DISTINCT CAST( NULL AS SIGNED ) col2, col1 - + col1 AS col2 FROM tab2 AS cor0
----
NULL
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8296
SELECT DISTINCT CAST ( NULL AS INTEGER ) col2, col1 - + col1 AS col2 FROM tab2 AS cor0
----
NULL
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8297
SELECT MAX( DISTINCT - - ( + col2 ) ) + + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
61

skipif mysql # not compatible
query I rowsort label-8297
SELECT MAX ( DISTINCT - - ( + col2 ) ) + + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
61

query I rowsort
SELECT DISTINCT col0 * + col0 + col2 * col1 AS col0 FROM tab1
----
11477
3945
7520

query I rowsort
SELECT + + col0 FROM tab1 WHERE + col2 NOT IN ( + col1 + 88, - col2, + 76 )
----
51
85
91

query I rowsort
SELECT + 53 + + 78 FROM tab2
----
131
131
131

query I rowsort
SELECT ALL 32 - + col2 + 51 FROM tab0
----
-16
36
73

query I rowsort
SELECT - ( col0 ) + + col0 + + col2 + - col0 FROM tab0
----
-77
2
32

query I rowsort
SELECT + 20 + - col0 FROM tab0
----
-67
-77
5

query I rowsort
SELECT - + 97 FROM tab1 WHERE - - col2 IN ( col2, + ( + col0 ) )
----
-97
-97
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-8305
SELECT ALL COUNT( * ) AS col2, - 32 AS col2 FROM tab2
----
3
-32

skipif mysql # not compatible
query II rowsort label-8305
SELECT ALL COUNT ( * ) AS col2, - 32 AS col2 FROM tab2
----
3
-32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8306
SELECT DISTINCT COUNT( * ) DIV + COUNT( * ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-8306
SELECT DISTINCT COUNT ( * ) / + COUNT ( * ) FROM tab2
----
1

query I rowsort
SELECT 91 * - 8 AS col2 FROM tab0
----
-728
-728
-728

query I rowsort
SELECT 85 * col1 FROM tab1 AS cor0
----
1190
3995
425

query II rowsort
SELECT DISTINCT 11 * 1, + 75 AS col1 FROM tab0 WHERE + 56 IS NULL
----

query I rowsort
SELECT DISTINCT + + 44 * + col2 FROM tab2 WHERE + + col1 IS NOT NULL
----
1012
1760
2552

query I rowsort
SELECT - 11 + 61 FROM tab2 WHERE NOT col0 > - col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col0 IN ( + col2 / + col0, 85, - 67 - - + 33 )
----

query I rowsort
SELECT DISTINCT + + 33 AS col2 FROM tab2 cor0
----
33

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 78 <> + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8315
SELECT DISTINCT + ( - COUNT( * ) ) + 87 FROM tab2 cor0
----
84

skipif mysql # not compatible
query I rowsort label-8315
SELECT DISTINCT + ( - COUNT ( * ) ) + 87 FROM tab2 cor0
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-8316
SELECT ALL 38 DIV - col1 + + col1 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-8316
SELECT ALL 38 / - col1 + + col1 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8317
SELECT ALL - 66 * COUNT( ALL + 29 ) AS col0 FROM tab0
----
-198

skipif mysql # not compatible
query I rowsort label-8317
SELECT ALL - 66 * COUNT ( ALL + 29 ) AS col0 FROM tab0
----
-198

query I rowsort
SELECT DISTINCT - ( + 33 ) AS col0 FROM tab0
----
-33

query II rowsort
SELECT DISTINCT + col1, ( - col0 ) AS col2 FROM tab2
----
51
-46
67
-75
77
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-8320
SELECT DISTINCT MAX( ALL - 41 ) FROM tab2
----
-41

skipif mysql # not compatible
query I rowsort label-8320
SELECT DISTINCT MAX ( ALL - 41 ) FROM tab2
----
-41

query III rowsort
SELECT * FROM tab1 WHERE col1 * + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-8322
SELECT col2, ( - col2 ) + + + ( + col1 ) DIV col2 col2 FROM tab0
----
10
-8
47
-46
99
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8322
SELECT col2, ( - col2 ) + + + ( + col1 ) / col2 col2 FROM tab0
----
10
-8
47
-46
99
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8323
SELECT + - MIN( DISTINCT + col2 ) FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-8323
SELECT + - MIN ( DISTINCT + col2 ) FROM tab0 AS cor0
----
-10

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 * 26 - - + col1 IS NULL
----

query I rowsort
SELECT ALL - col2 * col1 - - + 52 + col1 * ( col2 ) + - col0 * col0 * - col1 AS col1 FROM tab2 AS cor0
----
107968
315444
376927

query I rowsort
SELECT ALL - col2 + - + 1 + - col0 * - col2 * - - col1 * - 71 AS col1 FROM tab1 AS cor0
----
-1780385
-20649425
-4866721

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8327
SELECT DISTINCT + COUNT( * ) + COUNT( * ) DIV - 92 + - ( - + 32 ) FROM tab0 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-8327
SELECT DISTINCT + COUNT ( * ) + COUNT ( * ) / - 92 + - ( - + 32 ) FROM tab0 AS cor0
----
35

query I rowsort
SELECT ALL 88 * + + col2 + - 69 + - - col0 + - - col0 + - + col0 AS col0 FROM tab2
----
2001
3515
5110

query I rowsort
SELECT + col0 * - col1 + - + col1 FROM tab0
----
-1296
-1848
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8330
SELECT + SUM( - 61 ) + + - CAST( - 90 AS SIGNED ) AS col2 FROM tab2
----
-93

skipif mysql # not compatible
query I rowsort label-8330
SELECT + SUM ( - 61 ) + + - CAST ( - 90 AS INTEGER ) AS col2 FROM tab2
----
-93

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8331
SELECT DISTINCT * FROM tab1 WHERE NOT - CAST( + col0 AS SIGNED ) * - + ( - col1 ) * 19 + + 79 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8331
SELECT DISTINCT * FROM tab1 WHERE NOT - CAST ( + col0 AS INTEGER ) * - + ( - col1 ) * 19 + + 79 IS NOT NULL
----

query I rowsort
SELECT ALL col2 * + col0 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8333
SELECT DISTINCT - ( COUNT( * ) ) AS col1 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8333
SELECT DISTINCT - ( COUNT ( * ) ) AS col1 FROM tab0 cor0
----
-3

query I rowsort
SELECT ALL col1 * 35 - - col2 AS col1 FROM tab2 AS cor0
----
1808
2403
2735

onlyif mysql # aggregate syntax: 
query I rowsort label-8335
SELECT + 30 * - - COUNT( * ) col2 FROM tab2
----
90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8335
SELECT + 30 * - - COUNT ( * ) col2 FROM tab2
----
90

query I rowsort
SELECT col1 * + 38 - - 49 FROM tab2
----
1987
2595
2975

onlyif mysql # DIV for integer division: 
query I rowsort label-8337
SELECT DISTINCT 3 DIV + + col1 + - col0 FROM tab0
----
-15
-87
-94

skipif mysql # not compatible
query I rowsort label-8337
SELECT DISTINCT 3 / + + col1 + - col0 FROM tab0
----
-15
-87
-94

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 66 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 4 col1 FROM tab2
----
4
4
4

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8340
SELECT ALL + CAST( NULL AS DECIMAL ) + col2 + 6 FROM tab2 WHERE ( + col1 ) = ( NULL )
----

skipif mysql # not compatible
query I rowsort label-8340
SELECT ALL + CAST ( NULL AS REAL ) + col2 + 6 FROM tab2 WHERE ( + col1 ) = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8341
SELECT ALL - COUNT( * ) * - + MAX( ALL col0 ) FROM tab2
----
225

skipif mysql # not compatible
query I rowsort label-8341
SELECT ALL - COUNT ( * ) * - + MAX ( ALL col0 ) FROM tab2
----
225

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + + 18 / col0 + - - col0 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - ( 15 ) * - col0 FROM tab1 AS cor0
----
-1275
-1365
-765

onlyif mysql # aggregate syntax: 
query I rowsort label-8344
SELECT COUNT( * ) * - + 15 FROM tab1 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-8344
SELECT COUNT ( * ) * - + 15 FROM tab1 AS cor0
----
-45

query I rowsort
SELECT ALL - - 48 * + col1 FROM tab0 AS cor0
----
1008
3888
48

onlyif mysql # DIV for integer division: 
query I rowsort label-8346
SELECT - + col0 DIV + - col2 FROM tab0 AS cor0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-8346
SELECT - + col0 / + - col2 FROM tab0 AS cor0
----
0
0
8

onlyif mysql # DIV for integer division: 
query I rowsort label-8347
SELECT DISTINCT + col1 DIV - col1 AS col2 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-8347
SELECT DISTINCT + col1 / - col1 AS col2 FROM tab1
----
-1

query I rowsort
SELECT DISTINCT ( + 56 ) * - 74 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-4144

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8349
SELECT + - 25 DIV 69 AS col1, COUNT( * ) FROM tab2 cor0
----
0
3

skipif mysql # not compatible
query II rowsort label-8349
SELECT + - 25 / 69 AS col1, COUNT ( * ) FROM tab2 cor0
----
0
3

query I rowsort
SELECT ALL col1 * - - col0 + - + ( + col1 ) AS col0 FROM tab0 cor0
----
1134
1806
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8351
SELECT DISTINCT - MIN( - col1 ) + ( - ( ( - 73 ) ) ) AS col1 FROM tab2 AS cor0
----
150

skipif mysql # not compatible
query I rowsort label-8351
SELECT DISTINCT - MIN ( - col1 ) + ( - ( ( - 73 ) ) ) AS col1 FROM tab2 AS cor0
----
150

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + 45 + - - col0 * - 25 - + + col2, col2 + col1 * col1 col2 FROM tab1 AS cor0
----
-1326
292
-2139
84
-2298
2277

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8353
SELECT DISTINCT + CAST( NULL AS SIGNED ), COUNT( ALL + col1 ) AS col1 FROM tab2 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-8353
SELECT DISTINCT + CAST ( NULL AS INTEGER ), COUNT ( ALL + col1 ) AS col1 FROM tab2 AS cor0
----
NULL
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8354
SELECT DISTINCT 14 + - COUNT( * ) * + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8354
SELECT DISTINCT 14 + - COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8355
SELECT CAST( - ( col0 ) AS SIGNED ) FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-8355
SELECT CAST ( - ( col0 ) AS INTEGER ) FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8356
SELECT DISTINCT + col0 / col0 + + - col1 + - ( - - CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8356
SELECT DISTINCT + col0 / col0 + + - col1 + - ( - - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - 48 * + 44 FROM tab2
----
-2112
-2112
-2112

query I rowsort
SELECT DISTINCT ( - - 20 ) + col0 AS col0 FROM tab2
----
66
84
95

onlyif mysql # aggregate syntax: 
query I rowsort label-8359
SELECT ( - COUNT( ALL + - col0 ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-8359
SELECT ( - COUNT ( ALL + - col0 ) ) FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8360
SELECT DISTINCT ( + MIN( - 69 ) ) AS col2 FROM tab2
----
-69

skipif mysql # not compatible
query I rowsort label-8360
SELECT DISTINCT ( + MIN ( - 69 ) ) AS col2 FROM tab2
----
-69

query I rowsort
SELECT ALL col1 + col0 + - ( col0 ) AS col1 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # aggregate syntax: 
query II rowsort label-8362
SELECT + 30 + - 60, - SUM( DISTINCT - col0 ) AS col0 FROM tab0 AS cor0
----
-30
199

skipif mysql # not compatible
query II rowsort label-8362
SELECT + 30 + - 60, - SUM ( DISTINCT - col0 ) AS col0 FROM tab0 AS cor0
----
-30
199

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE ( NOT ( - 59 IS NOT NULL ) )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8364
SELECT + col2 + + + 16 - + + 72 * - col1 * + CAST( NULL AS DECIMAL ) + + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8364
SELECT + col2 + + + 16 - + + 72 * - col1 * + CAST ( NULL AS REAL ) + + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 + 31 FROM tab1 AS cor0
----
127
90
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8366
SELECT DISTINCT + col1 * + col1 + + CAST( NULL AS SIGNED ) + - col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8366
SELECT DISTINCT + col1 * + col1 + + CAST ( NULL AS INTEGER ) + - col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT col1 * - 5 - + - col1 FROM tab2
----
-204
-268
-308

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8368
SELECT - CAST( CAST( - col1 AS SIGNED ) AS SIGNED ) - + col1 AS col0, 5 FROM tab2
----
0
5
0
5
0
5

skipif mysql # not compatible
query II rowsort label-8368
SELECT - CAST ( CAST ( - col1 AS INTEGER ) AS INTEGER ) - + col1 AS col0, 5 FROM tab2
----
0
5
0
5
0
5

query I rowsort
SELECT ALL - 12 * + 75 * - - 74 FROM tab1 AS cor0
----
-66600
-66600
-66600

query I rowsort
SELECT + + col0 - - - ( + + col1 ) FROM tab1 AS cor0
----
37
44
80

onlyif mysql # aggregate syntax: 
query I rowsort label-8371
SELECT - 1 - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-8371
SELECT - 1 - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-4

query I rowsort
SELECT + - col1 * - ( - col1 ) - - + col1 - + col1 * - 1 * 32 FROM tab2 AS cor0
----
-2278
-3388
-918

query I rowsort
SELECT - 5 - col2 AS col2 FROM tab0 cor0
----
-104
-15
-52

query I rowsort
SELECT DISTINCT - ( - + 82 ) * + - 31 AS col1 FROM tab0 AS cor0
----
-2542

query I rowsort
SELECT ALL - - col0 + col1 + - 4 FROM tab0 AS cor0
----
104
92
94

query I rowsort
SELECT + col1 + + - 62 AS col0 FROM tab1 AS cor0
----
-15
-48
-57

query I rowsort
SELECT - col0 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col1 * col2 * - 57 AS col0 FROM tab0 AS cor0
----
11970
216999
5643

onlyif mysql # aggregate syntax: 
query I rowsort label-8379
SELECT ALL ( - COUNT( * ) ) * 89 AS col0 FROM tab2 AS cor0
----
-267

skipif mysql # not compatible
query I rowsort label-8379
SELECT ALL ( - COUNT ( * ) ) * 89 AS col0 FROM tab2 AS cor0
----
-267

onlyif mysql # aggregate syntax: 
query I rowsort label-8380
SELECT ALL - + SUM( ALL + + 19 ) AS col0 FROM tab2 WHERE NULL > + col2 + - - 6
----
NULL

skipif mysql # not compatible
query I rowsort label-8380
SELECT ALL - + SUM ( ALL + + 19 ) AS col0 FROM tab2 WHERE NULL > + col2 + - - 6
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8381
SELECT ALL - 28 * + - CAST( NULL AS SIGNED ) * - ( COUNT( * ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8381
SELECT ALL - 28 * + - CAST ( NULL AS INTEGER ) * - ( COUNT ( * ) ) FROM tab1
----
NULL

query II rowsort
SELECT DISTINCT + col2 * col2 AS col1, - 65 - col1 AS col0 FROM tab0
----
100
-86
2209
-146
9801
-66

query I rowsort
SELECT DISTINCT - + col2 * + col2 + - col0 * - + col2 AS col0 FROM tab1 AS cor0
----
-4320
1534
1564

query I rowsort
SELECT + col2 + - col1 FROM tab0 WHERE NOT - + col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8385
SELECT col2 DIV 40 AS col2 FROM tab1
----
1
1
2

skipif mysql # not compatible
query I rowsort label-8385
SELECT col2 / 40 AS col2 FROM tab1
----
1
1
2

query I rowsort
SELECT ALL - col2 + 98 AS col0 FROM tab1 AS cor0
----
2
30
39

query II rowsort
SELECT col0, 82 + - ( col1 ) FROM tab0 AS cor0
----
15
1
87
61
97
81

onlyif mysql # DIV for integer division: 
query I rowsort label-8388
SELECT ALL + + col1 * col1 DIV + - col0 FROM tab1 AS cor0
----
-24
-3
0

skipif mysql # not compatible
query I rowsort label-8388
SELECT ALL + + col1 * col1 / + - col0 FROM tab1 AS cor0
----
-24
-3
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8389
SELECT COUNT( * ) * - - 44 AS col1 FROM tab0
----
132

skipif mysql # not compatible
query I rowsort label-8389
SELECT COUNT ( * ) * - - 44 AS col1 FROM tab0
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-8390
SELECT ALL - MIN( 22 ) AS col0 FROM tab2
----
-22

skipif mysql # not compatible
query I rowsort label-8390
SELECT ALL - MIN ( 22 ) AS col0 FROM tab2
----
-22

query I rowsort
SELECT + ( ( - col1 ) ) FROM tab2
----
-51
-67
-77

query I rowsort
SELECT ALL 28 + - col2 + - col0 FROM tab2 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT + col2 AS col1, col2 FROM tab0
----
10
10
47
47
99
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8394
SELECT MAX( + - col2 ) AS col2 FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-8394
SELECT MAX ( + - col2 ) AS col2 FROM tab2
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8395
SELECT DISTINCT ( - COUNT( + col1 ) ) * COUNT( * ) * MIN( DISTINCT - 6 ) AS col2, CAST( NULL AS SIGNED ) - + 56 col1 FROM tab0
----
54
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8395
SELECT DISTINCT ( - COUNT ( + col1 ) ) * COUNT ( * ) * MIN ( DISTINCT - 6 ) AS col2, CAST ( NULL AS INTEGER ) - + 56 col1 FROM tab0
----
54
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8396
SELECT * FROM tab2 cor0 WHERE 21 NOT IN ( + CAST( NULL AS SIGNED ) - + - col2, - col1 )
----

skipif mysql # not compatible
query III rowsort label-8396
SELECT * FROM tab2 cor0 WHERE 21 NOT IN ( + CAST ( NULL AS INTEGER ) - + - col2, - col1 )
----

query I rowsort
SELECT DISTINCT + col1 + + 77 FROM tab0 cor0
----
158
78
98

query I rowsort
SELECT ALL 87 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

onlyif mysql # aggregate syntax: 
query II rowsort label-8399
SELECT ALL - ( - COUNT( * ) ) AS col1, COUNT( * ) FROM tab1
----
3
3

skipif mysql # not compatible
query II rowsort label-8399
SELECT ALL - ( - COUNT ( * ) ) AS col1, COUNT ( * ) FROM tab1
----
3
3

query I rowsort
SELECT - 74 * - - col1 + 5 FROM tab1 AS cor0
----
-1031
-3473
-365

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8401
SELECT - - CAST( NULL AS SIGNED ) * col1 * - 32 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8401
SELECT - - CAST ( NULL AS INTEGER ) * col1 * - 32 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8402
SELECT ALL - COUNT( * ) * - - COUNT( * ) col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8402
SELECT ALL - COUNT ( * ) * - - COUNT ( * ) col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT + + 66 * col0 - + col1 AS col0 FROM tab1 cor0
----
3352
5605
5959

onlyif mysql # aggregate syntax: 
query I rowsort label-8404
SELECT DISTINCT MAX( ALL ( - - 38 ) ) FROM tab2 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-8404
SELECT DISTINCT MAX ( ALL ( - - 38 ) ) FROM tab2 AS cor0
----
38

query I rowsort
SELECT col0 * 23 * - - ( - + 76 ) AS col1 FROM tab2 AS cor0
----
-111872
-131100
-80408

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 63 col2 FROM tab0 AS cor0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-8407
SELECT + MIN( ALL col2 ) AS col1 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-8407
SELECT + MIN ( ALL col2 ) AS col1 FROM tab2
----
23

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + - col1 + + - col0 + 37 BETWEEN NULL AND - col0
----
51
14
96
85
5
59

query I rowsort
SELECT + + AVG ( DISTINCT - col1 ) AS col2 FROM tab1 WHERE NULL IS NOT NULL AND NULL <= NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col2 * - 16 + - col0 * col1 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8411
SELECT DISTINCT + COUNT( col2 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8411
SELECT DISTINCT + COUNT ( col2 ) FROM tab0 cor0
----
3

query I rowsort
SELECT ALL + - col2 + + col2 + + 89 + + 36 * + col2 * + 19 AS col0 FROM tab2 AS cor0
----
15821
27449
39761

query I rowsort
SELECT 9 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
9
9
9

query I rowsort
SELECT DISTINCT + 53 + + + ( - - 5 ) AS col2 FROM tab1 AS cor0
----
58

query I rowsort
SELECT col0 * col2 + - col2 + + ( - 13 ) + col2 FROM tab1 AS cor0
----
4883
5002
6175

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col0 ) + - + col0 col0 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT 76 * + ( col2 ) FROM tab1
----
4484
5168
7296

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 85 IN ( - - 17, + col2, col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8419
SELECT DISTINCT + - CAST( - - 96 AS SIGNED ) * - 91 AS col1 FROM tab0 AS cor0
----
8736

skipif mysql # not compatible
query I rowsort label-8419
SELECT DISTINCT + - CAST ( - - 96 AS INTEGER ) * - 91 AS col1 FROM tab0 AS cor0
----
8736

query I rowsort
SELECT DISTINCT + col0 + + 17 * - 76 AS col2 FROM tab2 cor0
----
-1217
-1228
-1246

onlyif mysql # DIV for integer division: 
query I rowsort label-8421
SELECT - 65 DIV ( col1 ) AS col0 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8421
SELECT - 65 / ( col1 ) AS col0 FROM tab2 AS cor0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8422
SELECT - MIN( DISTINCT col0 ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-51

skipif mysql # not compatible
query I rowsort label-8422
SELECT - MIN ( DISTINCT col0 ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-8423
SELECT + - MIN( ALL - - ( col2 ) ) AS col1 FROM tab2 cor0
----
-23

skipif mysql # not compatible
query I rowsort label-8423
SELECT + - MIN ( ALL - - ( col2 ) ) AS col1 FROM tab2 cor0
----
-23

query I rowsort
SELECT ALL col1 * - - ( ( + col0 ) ) AS col2 FROM tab1 AS cor0
----
425
4277
714

onlyif mysql # aggregate syntax: 
query II rowsort label-8425
SELECT DISTINCT - 28 + + - 40, + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-68
3

skipif mysql # not compatible
query II rowsort label-8425
SELECT DISTINCT - 28 + + - 40, + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-68
3

query II rowsort
SELECT - - ( 32 ) AS col1, + 49 AS col1 FROM tab0 AS cor0
----
32
49
32
49
32
49

query II rowsort
SELECT + col1 + col2 - - col1, col1 FROM tab2
----
125
51
192
67
194
77

query I rowsort
SELECT ALL - 65 * + col0 AS col2 FROM tab1
----
-3315
-5525
-5915

query I rowsort
SELECT - - col0 + - ( ( col0 ) ) FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8430
SELECT ALL + COUNT( * ) DIV - 93 AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8430
SELECT ALL + COUNT ( * ) / - 93 AS col2 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8431
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT col2 / col1 <= - + col1 + - CAST( NULL AS SIGNED ) * col1 * - 10 * + + col0
----

skipif mysql # not compatible
query III rowsort label-8431
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT col2 / col1 <= - + col1 + - CAST ( NULL AS INTEGER ) * col1 * - 10 * + + col0
----

query II rowsort
SELECT + col0, + 81 FROM tab0 AS cor0
----
15
81
87
81
97
81

query I rowsort
SELECT + 61 + + 59 AS col2 FROM tab0 AS cor0 WHERE col1 - - + 3 IS NOT NULL
----
120
120
120

onlyif mysql # DIV for integer division: 
query I rowsort label-8434
SELECT + + col0 DIV + col0 + - + col1 DIV + ( 58 ) + - col1 AS col2 FROM tab0 AS cor0
----
-20
-81
0

skipif mysql # not compatible
query I rowsort label-8434
SELECT + + col0 / + col0 + - + col1 / + ( 58 ) + - col1 AS col2 FROM tab0 AS cor0
----
-20
-81
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8435
SELECT - MIN( + 49 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NULL
----
-49

skipif mysql # not compatible
query I rowsort label-8435
SELECT - MIN ( + 49 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NULL
----
-49

query I rowsort
SELECT + col2 * + - 85 FROM tab2 AS cor0
----
-1955
-3400
-4930

onlyif mysql # aggregate syntax: 
query I rowsort label-8437
SELECT DISTINCT - + 17 + + - ( + - MAX( DISTINCT + col1 ) ) AS col1 FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
30

skipif mysql # not compatible
query I rowsort label-8437
SELECT DISTINCT - + 17 + + - ( + - MAX ( DISTINCT + col1 ) ) AS col1 FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
30

query II rowsort
SELECT ALL - - 74 AS col0, - col1 FROM tab2 AS cor0
----
74
-51
74
-67
74
-77

query I rowsort
SELECT 14 * - col2 + - col0 AS col0 FROM tab1 AS cor0
----
-1043
-1395
-911

query I rowsort
SELECT DISTINCT + ( - 24 ) FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8441
SELECT ALL CAST( + + col2 AS SIGNED ) AS col1 FROM tab1 WHERE - 70 + - col0 + + col0 * + col1 IS NOT NULL
----
59
68
96

skipif mysql # not compatible
query I rowsort label-8441
SELECT ALL CAST ( + + col2 AS INTEGER ) AS col1 FROM tab1 WHERE - 70 + - col0 + + col0 * + col1 IS NOT NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8442
SELECT - MIN( ALL + 71 ) AS col0 FROM tab1
----
-71

skipif mysql # not compatible
query I rowsort label-8442
SELECT - MIN ( ALL + 71 ) AS col0 FROM tab1
----
-71

query II rowsort
SELECT - ( + col0 ), + col1 AS col0 FROM tab2 AS cor0
----
-46
51
-64
77
-75
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8444
SELECT DISTINCT SUM( DISTINCT - CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8444
SELECT DISTINCT SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-8445
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL < + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query IIIIII rowsort label-8445
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL < + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ( + col2 ) * + 45 FROM tab0
----
2115
4455
450

query I rowsort
SELECT 26 + - 97 FROM tab0
----
-71
-71
-71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 7 col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

onlyif mysql # aggregate syntax: 
query I rowsort label-8449
SELECT ALL MAX( ALL + col1 ) AS col0 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-8449
SELECT ALL MAX ( ALL + col1 ) AS col0 FROM tab1 AS cor0
----
47

query I rowsort
SELECT col2 AS col2 FROM tab1 AS cor0 WHERE - col0 IS NULL
----

query I rowsort
SELECT ALL - - 17 FROM tab2 cor0
----
17
17
17

query I rowsort
SELECT DISTINCT col2 + 40 AS col0 FROM tab0 AS cor0
----
139
50
87

query I rowsort
SELECT ALL - ( - + col2 ) * 2 + - col1 * col1 + col1 AS col2 FROM tab0 cor0
----
-400
-6386
198

query II rowsort
SELECT ALL 6 + - 22 AS col1, - col2 AS col2 FROM tab2
----
-16
-23
-16
-40
-16
-58

query I rowsort
SELECT - col2 + + 38 * - 28 FROM tab1 WHERE NULL <= ( - 6 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8456
SELECT + 52 * + COUNT( * ) FROM tab1
----
156

skipif mysql # not compatible
query I rowsort label-8456
SELECT + 52 * + COUNT ( * ) FROM tab1
----
156

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 col0 FROM tab0 WHERE NOT + col0 IS NULL
----
10
47
99

query II rowsort
SELECT - + 22 + + col1, col2 FROM tab2 AS cor0
----
29
23
45
58
55
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8459
SELECT COUNT( * ) DIV + MIN( ALL + 25 ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8459
SELECT COUNT ( * ) / + MIN ( ALL + 25 ) AS col0 FROM tab1
----
0

query I rowsort
SELECT ALL - ( 75 ) AS col1 FROM tab0
----
-75
-75
-75

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 49 / + 21 - + col1 NOT BETWEEN + + col1 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8462
SELECT DISTINCT SUM( DISTINCT - 56 ) AS col2 FROM tab1 AS cor0
----
-56

skipif mysql # not compatible
query I rowsort label-8462
SELECT DISTINCT SUM ( DISTINCT - 56 ) AS col2 FROM tab1 AS cor0
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-8463
SELECT + 14 * COUNT( * ) * COUNT( * ) FROM tab2 AS cor0
----
126

skipif mysql # not compatible
query I rowsort label-8463
SELECT + 14 * COUNT ( * ) * COUNT ( * ) FROM tab2 AS cor0
----
126

query II rowsort
SELECT + 14 AS col1, - col2 FROM tab0 AS cor0
----
14
-10
14
-47
14
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8465
SELECT ALL - - MAX( 16 ) FROM tab2 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-8465
SELECT ALL - - MAX ( 16 ) FROM tab2 AS cor0
----
16

onlyif mysql # aggregate syntax: 
query II rowsort label-8466
SELECT 63 AS col2, + COUNT( * ) AS col2 FROM tab0
----
63
3

skipif mysql # not compatible
query II rowsort label-8466
SELECT 63 AS col2, + COUNT ( * ) AS col2 FROM tab0
----
63
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8467
SELECT DISTINCT - col2 DIV + ( 92 ) FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-8467
SELECT DISTINCT - col2 / + ( 92 ) FROM tab1
----
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 col1, - col0 FROM tab0
----
-15
-15
-87
-87
-97
-97

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 * - + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8470
SELECT - CAST( 46 AS SIGNED ) AS col1 FROM tab1
----
-46
-46
-46

skipif mysql # not compatible
query I rowsort label-8470
SELECT - CAST ( 46 AS INTEGER ) AS col1 FROM tab1
----
-46
-46
-46

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col0 + - + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - + 57 + col1 AS col0 FROM tab0 AS cor0
----
-36
-56
24

onlyif mysql # DIV for integer division: 
query I rowsort label-8473
SELECT + 93 * + - ( - + col2 ) * + - col2 + col1 DIV + ( - 90 ) col0 FROM tab2 AS cor0
----
-148800
-312852
-49197

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8473
SELECT + 93 * + - ( - + col2 ) * + - col2 + col1 / + ( - 90 ) col0 FROM tab2 AS cor0
----
-148800
-312852
-49197

onlyif mysql # aggregate syntax: 
query I rowsort label-8474
SELECT MIN( - + col0 ) + - + 89 FROM tab0 cor0
----
-186

skipif mysql # not compatible
query I rowsort label-8474
SELECT MIN ( - + col0 ) + - + 89 FROM tab0 cor0
----
-186

onlyif mysql # aggregate syntax: 
query I rowsort label-8475
SELECT + 45 + + - SUM( - col0 ) AS col2 FROM tab0 AS cor0
----
244

skipif mysql # not compatible
query I rowsort label-8475
SELECT + 45 + + - SUM ( - col0 ) AS col2 FROM tab0 AS cor0
----
244

query I rowsort
SELECT + ( - + col0 ) * 10 * 18 AS col1 FROM tab0 AS cor0
----
-15660
-17460
-2700

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( + col0 - + 10 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-8478
SELECT - col2 - + - 54 DIV - col0 FROM tab0 AS cor0
----
-10
-50
-99

skipif mysql # not compatible
query I rowsort label-8478
SELECT - col2 - + - 54 / - col0 FROM tab0 AS cor0
----
-10
-50
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8479
SELECT DISTINCT col1 + + + CAST( NULL AS SIGNED ) - col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8479
SELECT DISTINCT col1 + + + CAST ( NULL AS INTEGER ) - col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8480
SELECT + + COUNT( DISTINCT - col0 ) - + 41 AS col1 FROM tab2 AS cor0
----
-38

skipif mysql # not compatible
query I rowsort label-8480
SELECT + + COUNT ( DISTINCT - col0 ) - + 41 AS col1 FROM tab2 AS cor0
----
-38

query I rowsort
SELECT - col0 - - 42 + col1 - - - col2 + - - 60 FROM tab0 AS cor0
----
-93
121
26

query I rowsort
SELECT col2 - col0 * + 35 FROM tab2 AS cor0
----
-1587
-2200
-2567

onlyif mysql # aggregate syntax: 
query I rowsort label-8483
SELECT + 67 * - SUM( + 78 ) + + - SUM( - + col0 ) AS col0 FROM tab1 AS cor0 WHERE - col2 <= - col1 * - + 3 + - 13
----
-15451

skipif mysql # not compatible
query I rowsort label-8483
SELECT + 67 * - SUM ( + 78 ) + + - SUM ( - + col0 ) AS col0 FROM tab1 AS cor0 WHERE - col2 <= - col1 * - + 3 + - 13
----
-15451

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8484
SELECT - - col0 + + 68 + + 4 + - CAST( - + 27 AS SIGNED ) DIV + col1 FROM tab0 AS cor0
----
160
196
87

skipif mysql # not compatible
query I rowsort label-8484
SELECT - - col0 + + 68 + + 4 + - CAST ( - + 27 AS INTEGER ) / + col1 FROM tab0 AS cor0
----
160
196
87

query I rowsort
SELECT + 62 + + + col2 FROM tab1
----
121
130
158

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8486
SELECT ALL - 65 + + COUNT( * ) DIV MIN( + - 97 ) AS col1 FROM tab0
----
-65

skipif mysql # not compatible
query I rowsort label-8486
SELECT ALL - 65 + + COUNT ( * ) / MIN ( + - 97 ) AS col1 FROM tab0
----
-65

query I rowsort
SELECT ALL col0 + + + 93 AS col0 FROM tab0
----
108
180
190

onlyif mysql # aggregate syntax: 
query II rowsort label-8488
SELECT DISTINCT - 72 + COUNT( * ) + + COUNT( * ) AS col1, COUNT( * ) AS col1 FROM tab2
----
-66
3

skipif mysql # not compatible
query II rowsort label-8488
SELECT DISTINCT - 72 + COUNT ( * ) + + COUNT ( * ) AS col1, COUNT ( * ) AS col1 FROM tab2
----
-66
3

query I rowsort
SELECT ALL 1 * - - col2 - - - col1 FROM tab2
----
-28
-37
-9

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col1 NOT BETWEEN col2 AND + col0 + - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8491
SELECT - + CAST( NULL AS SIGNED ) FROM tab1 WHERE + col1 + 89 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8491
SELECT - + CAST ( NULL AS INTEGER ) FROM tab1 WHERE + col1 + 89 IS NOT NULL
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 64 col2 FROM tab0
----
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 67 * + - col1 col0 FROM tab0
----
-1407
-5427
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-8494
SELECT + ( COUNT( * ) ) * ( ( - COUNT( * ) ) ) AS col2 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-8494
SELECT + ( COUNT ( * ) ) * ( ( - COUNT ( * ) ) ) AS col2 FROM tab1
----
-9

query I rowsort
SELECT + 56 * + 31 + - col0 FROM tab0 cor0
----
1639
1649
1721

query I rowsort
SELECT ALL col0 * - + 4 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8497
SELECT + MIN( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8497
SELECT + MIN ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8498
SELECT + COUNT( - 20 ) + - 8 * + ( + ( - 99 ) ) FROM tab0 WHERE NOT - 21 IS NULL
----
795

skipif mysql # not compatible
query I rowsort label-8498
SELECT + COUNT ( - 20 ) + - 8 * + ( + ( - 99 ) ) FROM tab0 WHERE NOT - 21 IS NULL
----
795

query I rowsort
SELECT col2 * col1 * - + col1 AS col2 FROM tab1
----
-1475
-150212
-18816

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8500
SELECT * FROM tab1 WHERE NOT ( - col0 ) * CAST( NULL AS DECIMAL ) / + col2 IS NULL
----

skipif mysql # not compatible
query III rowsort label-8500
SELECT * FROM tab1 WHERE NOT ( - col0 ) * CAST ( NULL AS REAL ) / + col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8501
SELECT DISTINCT - + 50 * col1 DIV - - col1 FROM tab0 AS cor0
----
-50

skipif mysql # not compatible
query I rowsort label-8501
SELECT DISTINCT - + 50 * col1 / - - col1 FROM tab0 AS cor0
----
-50

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 + - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ( + col2 ) * 31 + - ( - col0 ) - - col2 FROM tab2 AS cor0
----
1344
1931
782

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + col2 AND col0 + - 79
----

query I rowsort
SELECT DISTINCT + - 7 AS col0 FROM tab2 AS cor0
----
-7

query I rowsort
SELECT - + 65 * 99 FROM tab1 cor0
----
-6435
-6435
-6435

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col2 * - col0 * - - col2 + - - 91 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8508
SELECT ALL ( ( - - MIN( ALL + col1 ) ) ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-8508
SELECT ALL ( ( - - MIN ( ALL + col1 ) ) ) FROM tab2
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8509
SELECT DISTINCT ( - CAST( + MAX( + col1 ) AS SIGNED ) ) DIV COUNT( * ) * - 16 FROM tab0
----
432

skipif mysql # not compatible
query I rowsort label-8509
SELECT DISTINCT ( - CAST ( + MAX ( + col1 ) AS INTEGER ) ) / COUNT ( * ) * - 16 FROM tab0
----
432

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8510
SELECT - CAST( NULL AS SIGNED ), 16 * - - col1 AS col1 FROM tab2
----
NULL
1072
NULL
1232
NULL
816

skipif mysql # not compatible
query II rowsort label-8510
SELECT - CAST ( NULL AS INTEGER ), 16 * - - col1 AS col1 FROM tab2
----
NULL
1072
NULL
1232
NULL
816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 48 col2 FROM tab1
----
48
48
48

query I rowsort
SELECT 73 * - 95 AS col1 FROM tab1
----
-6935
-6935
-6935

onlyif mysql # aggregate syntax: 
query I rowsort label-8513
SELECT - MIN( ALL - 58 ) AS col2 FROM tab1
----
58

skipif mysql # not compatible
query I rowsort label-8513
SELECT - MIN ( ALL - 58 ) AS col2 FROM tab1
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8514
SELECT COUNT( * ) * - 91 AS col2 FROM tab1 AS cor0
----
-273

skipif mysql # not compatible
query I rowsort label-8514
SELECT COUNT ( * ) * - 91 AS col2 FROM tab1 AS cor0
----
-273

query I rowsort
SELECT DISTINCT - 16 + col2 AS col1 FROM tab2 cor0
----
24
42
7

query I rowsort
SELECT + 72 + col2 - - 78 + + col0 * col2 AS col0 FROM tab0
----
1030
902
9852

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 90 col1 FROM tab0
----
-90
-90
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-8518
SELECT ALL + 70 AS col0, COUNT( * ) AS col1 FROM tab0 AS cor0
----
70
3

skipif mysql # not compatible
query II rowsort label-8518
SELECT ALL + 70 AS col0, COUNT ( * ) AS col1 FROM tab0 AS cor0
----
70
3

query I rowsort
SELECT ALL col0 * - 39 AS col1 FROM tab1 AS cor0
----
-1989
-3315
-3549

query III rowsort
SELECT * FROM tab2 cor0 WHERE + 13 BETWEEN NULL AND + 81
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8521
SELECT - + col0 - - 94 + - col1 + + col0 * + col2 + + - CAST( - - col1 AS SIGNED ), col1 + - col0 + 46 * + + col0 + + - CAST( - + CAST( ( + col2 ) AS SIGNED ) AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE + col1 * - 28 + - col0 IS NOT NULL
----
4911
2405
5014
3889
6097
4210

skipif mysql # not compatible
query II rowsort label-8521
SELECT - + col0 - - 94 + - col1 + + col0 * + col2 + + - CAST ( - - col1 AS INTEGER ), col1 + - col0 + 46 * + + col0 + + - CAST ( - + CAST ( ( + col2 ) AS INTEGER ) AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE + col1 * - 28 + - col0 IS NOT NULL
----
4911
2405
5014
3889
6097
4210

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 col1, col0 FROM tab0 AS cor0
----
15
15
87
87
97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8523
SELECT COUNT( * ) * + - 90 FROM tab1 WHERE NULL IS NULL
----
-270

skipif mysql # not compatible
query I rowsort label-8523
SELECT COUNT ( * ) * + - 90 FROM tab1 WHERE NULL IS NULL
----
-270

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8524
SELECT ALL CAST( + 17 AS SIGNED ) + + + ( + + CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8524
SELECT ALL CAST ( + 17 AS INTEGER ) + + + ( + + CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 + + - col2 FROM tab1 WHERE - 28 * col1 = - + 44 + 56
----

query II rowsort
SELECT 56 * + + 51 AS col2, - col0 + + col0 * + - col0 AS col2 FROM tab0
----
2856
-240
2856
-7656
2856
-9506

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8527
SELECT + col1 - - ( + col1 ), + 69 * CAST( NULL AS SIGNED ) * 28 AS col2 FROM tab1
----
10
NULL
28
NULL
94
NULL

skipif mysql # not compatible
query II rowsort label-8527
SELECT + col1 - - ( + col1 ), + 69 * CAST ( NULL AS INTEGER ) * 28 AS col2 FROM tab1
----
10
NULL
28
NULL
94
NULL

query I rowsort
SELECT ALL - 6 * + 41 * col2 FROM tab1 WHERE - col1 <> ( col2 )
----
-14514
-16728
-23616

onlyif mysql # aggregate syntax: 
query II rowsort label-8529
SELECT DISTINCT - COUNT( * ) * + COUNT( * ) - + - COUNT( * ) AS col0, + MIN( + col1 ) FROM tab0
----
-6
1

skipif mysql # not compatible
query II rowsort label-8529
SELECT DISTINCT - COUNT ( * ) * + COUNT ( * ) - + - COUNT ( * ) AS col0, + MIN ( + col1 ) FROM tab0
----
-6
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8530
SELECT + 96 * - COUNT( * ) - 27 FROM tab0
----
-315

skipif mysql # not compatible
query I rowsort label-8530
SELECT + 96 * - COUNT ( * ) - 27 FROM tab0
----
-315

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + - col2 ) >= ( col0 )
----

query I rowsort
SELECT DISTINCT + col0 * - + col1 - - 56 * - col1 AS col2 FROM tab1 AS cor0
----
-1498
-6909
-705

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE ( + + col1 ) BETWEEN NULL AND 53
----

query I rowsort
SELECT + AVG ( DISTINCT + ( + + 47 ) ) FROM tab0 WHERE NOT - col0 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8535
SELECT DISTINCT COUNT( * ) + - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-8535
SELECT DISTINCT COUNT ( * ) + - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col2 NOT IN ( - col2, - 34 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE ( NULL NOT BETWEEN + col2 + + - ( + - col2 ) AND 30 )
----

query I rowsort
SELECT DISTINCT + col0 * 63 AS col2 FROM tab0 AS cor0
----
5481
6111
945

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - col1 * col0 AND NULL
----

query I rowsort
SELECT - 30 AS col1 FROM tab2 cor0
----
-30
-30
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8541
SELECT DISTINCT ( - col0 ) * - CAST( NULL AS SIGNED ) * - 25 / 80 + + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8541
SELECT DISTINCT ( - col0 ) * - CAST ( NULL AS INTEGER ) * - 25 / 80 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT col2 AS col0, col2 AS col1 FROM tab2 AS cor0
----
23
23
40
40
58
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 50 * col0 + - col0 + - - 64 + + col1 col1 FROM tab2 AS cor0
----
-2231
-3123
-3694

onlyif mysql # aggregate syntax: 
query I rowsort label-8544
SELECT - 60 * - SUM( ALL + + col1 ) AS col1 FROM tab1 AS cor0
----
3960

skipif mysql # not compatible
query I rowsort label-8544
SELECT - 60 * - SUM ( ALL + + col1 ) AS col1 FROM tab1 AS cor0
----
3960

query I rowsort
SELECT - - ( - - 84 ) * + 11 * - ( - + 92 ) + - 0 - col2 - col2 AS col2 FROM tab1 AS cor0
----
84816
84872
84890

onlyif mysql # aggregate syntax: 
query I rowsort label-8546
SELECT ALL - COUNT( + col1 ) + - COUNT( * ) AS col1 FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-8546
SELECT ALL - COUNT ( + col1 ) + - COUNT ( * ) AS col1 FROM tab1
----
-6

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 8 IS NOT NULL
----

query I rowsort
SELECT - col1 AS col1 FROM tab2 WHERE + 49 <= NULL
----

query I rowsort
SELECT DISTINCT - 70 FROM tab2 WHERE NOT + ( - col1 ) IS NULL
----
-70

query II rowsort
SELECT - col0 AS col1, + 71 * + col2 / - col0 FROM tab2 WHERE + - 20 <= NULL
----

query III rowsort
SELECT * FROM tab0 WHERE - col2 < - col1 * + col2 + 49 + col1
----
97
1
99

query I rowsort
SELECT col0 + + col1 + + col2 AS col1 FROM tab1
----
149
161
206

query I rowsort
SELECT - 16 + - - 32 FROM tab2 AS cor0
----
16
16
16

onlyif mysql # aggregate syntax: 
query I rowsort label-8554
SELECT - 19 + + + COUNT( * ) * 91 FROM tab1 AS cor0
----
254

skipif mysql # not compatible
query I rowsort label-8554
SELECT - 19 + + + COUNT ( * ) * 91 FROM tab1 AS cor0
----
254

query I rowsort
SELECT - + 82 * + - col2 + col0 - + ( - col0 ) FROM tab1 AS cor0
----
5008
5758
7974

onlyif mysql # aggregate syntax: 
query I rowsort label-8556
SELECT + 26 + + SUM( ALL + + 36 ) col1 FROM tab1 AS cor0
----
134

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8556
SELECT + 26 + + SUM ( ALL + + 36 ) col1 FROM tab1 AS cor0
----
134

query I rowsort
SELECT ALL - 87 FROM tab2 WHERE NULL IS NULL
----
-87
-87
-87

onlyif mysql # aggregate syntax: 
query II rowsort label-8558
SELECT DISTINCT + 37, MIN( - - 38 ) col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
37
38

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8558
SELECT DISTINCT + 37, MIN ( - - 38 ) col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
37
38

query I rowsort
SELECT DISTINCT + 99 + + ( + col0 ) + + + col1 + - + col0 AS col2 FROM tab1
----
104
113
146

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8560
SELECT + 70 - ( col0 ) + - - col2 * + CAST( col2 AS SIGNED ) FROM tab1 AS cor0
----
3466
4603
9235

skipif mysql # not compatible
query I rowsort label-8560
SELECT + 70 - ( col0 ) + - - col2 * + CAST ( col2 AS INTEGER ) FROM tab1 AS cor0
----
3466
4603
9235

onlyif mysql # DIV for integer division: 
query I rowsort label-8561
SELECT DISTINCT + col2 + - col0 DIV + - col2 AS col1 FROM tab2 AS cor0
----
25
41
59

skipif mysql # not compatible
query I rowsort label-8561
SELECT DISTINCT + col2 + - col0 / + - col2 AS col1 FROM tab2 AS cor0
----
25
41
59

query I rowsort
SELECT col2 * + - col0 * - col0 + - col0 FROM tab0 AS cor0
----
10560
75603
931394

query III rowsort
SELECT * FROM tab0 WHERE NOT + 1 BETWEEN NULL AND + 95
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - + 57 NOT BETWEEN NULL AND 27
----

query II rowsort
SELECT DISTINCT col1 AS col2, col1 - col0 + - col0 FROM tab1
----
14
-88
47
-135
5
-165

query I rowsort
SELECT 12 * - col0 * - + 36 AS col0 FROM tab2 AS cor0
----
19872
27648
32400

query II rowsort
SELECT - 61, col1 FROM tab1 AS cor0
----
-61
14
-61
47
-61
5

query I rowsort
SELECT ALL + + col2 * - col0 + - - col1 FROM tab1 AS cor0
----
-4882
-5010
-6141

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8569
SELECT 63 * + CAST( + - col0 AS SIGNED ) * - col2 - col0 + + col1 AS col2 FROM tab0 AS cor0
----
44481
54744
604893

skipif mysql # not compatible
query I rowsort label-8569
SELECT 63 * + CAST ( + - col0 AS INTEGER ) * - col2 - col0 + + col1 AS col2 FROM tab0 AS cor0
----
44481
54744
604893

onlyif mysql # aggregate syntax: 
query I rowsort label-8570
SELECT ALL + + SUM( 42 ) AS col2 FROM tab2 cor0
----
126

skipif mysql # not compatible
query I rowsort label-8570
SELECT ALL + + SUM ( 42 ) AS col2 FROM tab2 cor0
----
126

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE + 49 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL BETWEEN + col1 + 98 AND + - 20
----

query I rowsort
SELECT ALL 46 + - col0 * + 9 AS col1 FROM tab1 AS cor0
----
-413
-719
-773

query I rowsort
SELECT ALL + col2 FROM tab0 AS cor0 WHERE - col2 >= + 83 + - 7
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8575
SELECT ALL + + ( + + col2 ) + + 39 + + ( + - 94 ) - + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8575
SELECT ALL + + ( + + col2 ) + + 39 + + ( + - 94 ) - + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL - + col2 * col0 * col1 AS col1, col2 FROM tab2 AS cor0
----
-197120
40
-291450
58
-53958
23

onlyif mysql # aggregate syntax: 
query I rowsort label-8577
SELECT 6 + COUNT( * ) AS col0 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-8577
SELECT 6 + COUNT ( * ) AS col0 FROM tab1
----
9

query I rowsort
SELECT DISTINCT 0 + - 9 + + col2 AS col2 FROM tab1
----
50
59
87

query I rowsort
SELECT + 56 FROM tab2 WHERE NULL <> col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 47 * - 12 col0 FROM tab1
----
-564
-564
-564

query I rowsort
SELECT ALL col2 * 13 * + col0 FROM tab1
----
63648
65195
80444

query I rowsort
SELECT + col1 * + 29 FROM tab1
----
1363
145
406

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8583
SELECT - ( MIN( DISTINCT 89 ) ) DIV + 35 FROM tab1 cor0
----
-2

skipif mysql # not compatible
query I rowsort label-8583
SELECT - ( MIN ( DISTINCT 89 ) ) / + 35 FROM tab1 cor0
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8584
SELECT * FROM tab2 AS cor0 WHERE + col2 + CAST( col0 AS SIGNED ) * col1 NOT IN ( 23, ( - 49 ) * + - col0, ( col1 ) + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8584
SELECT * FROM tab2 AS cor0 WHERE + col2 + CAST ( col0 AS INTEGER ) * col1 NOT IN ( 23, ( - 49 ) * + - col0, ( col1 ) + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8585
SELECT DISTINCT - 41 + - 63 * - 89 + - COUNT( * ) + COUNT( ALL + col1 ) * + COUNT( * ) AS col2 FROM tab2 AS cor0
----
5572

skipif mysql # not compatible
query I rowsort label-8585
SELECT DISTINCT - 41 + - 63 * - 89 + - COUNT ( * ) + COUNT ( ALL + col1 ) * + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
5572

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) IN ( - 23, col0, - 80, - col2 )
----

query II rowsort
SELECT ALL - - col2 AS col1, - col2 AS col1 FROM tab2 cor0
----
23
-23
40
-40
58
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-8588
SELECT DISTINCT + + col2 DIV + 44 + - col0 FROM tab1 AS cor0
----
-49
-84
-90

skipif mysql # not compatible
query I rowsort label-8588
SELECT DISTINCT + + col2 / + 44 + - col0 FROM tab1 AS cor0
----
-49
-84
-90

query III rowsort
SELECT * FROM tab0 WHERE NOT ( 30 * col0 ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8590
SELECT MIN( ALL 97 ) * MIN( ALL - col0 ) FROM tab2
----
-7275

skipif mysql # not compatible
query I rowsort label-8590
SELECT MIN ( ALL 97 ) * MIN ( ALL - col0 ) FROM tab2
----
-7275

query I rowsort
SELECT DISTINCT + ( + 92 ) * 30 + col1 AS col0 FROM tab1
----
2765
2774
2807

onlyif mysql # DIV for integer division: 
query I rowsort label-8592
SELECT DISTINCT - 50 DIV + col1 + + col1 FROM tab1
----
-5
11
46

skipif mysql # not compatible
query I rowsort label-8592
SELECT DISTINCT - 50 / + col1 + + col1 FROM tab1
----
-5
11
46

query I rowsort
SELECT 77 * col0 FROM tab2
----
3542
4928
5775

query III rowsort
SELECT * FROM tab0 WHERE NOT + 52 + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 1 * col1 + col2 AS col0 FROM tab0
----
-11
-34
98

onlyif mysql # DIV for integer division: 
query I rowsort label-8596
SELECT ALL + 82 DIV + col1 + + ( - col0 ) AS col0 FROM tab2
----
-45
-63
-74

skipif mysql # not compatible
query I rowsort label-8596
SELECT ALL + 82 / + col1 + + ( - col0 ) AS col0 FROM tab2
----
-45
-63
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-8597
SELECT + MAX( - col2 ) AS col0 FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-8597
SELECT + MAX ( - col2 ) AS col0 FROM tab2
----
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-8598
SELECT DISTINCT - 38 DIV col0 col0 FROM tab0
----
-2
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8598
SELECT DISTINCT - 38 / col0 col0 FROM tab0
----
-2
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8599
SELECT + CAST( NULL AS DECIMAL ) + - col1 col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8599
SELECT + CAST ( NULL AS REAL ) + - col1 col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 1 + col2 FROM tab2
----
24
41
59

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) <> col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8602
SELECT ALL ( + 83 ) + ( CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 WHERE NOT NULL < 13
----

skipif mysql # not compatible
query I rowsort label-8602
SELECT ALL ( + 83 ) + ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 WHERE NOT NULL < 13
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8603
SELECT DISTINCT - COUNT( * ) + COUNT( * ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8603
SELECT DISTINCT - COUNT ( * ) + COUNT ( * ) AS col2 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8604
SELECT ALL 92 + COUNT( * ) AS col1 FROM tab2
----
95

skipif mysql # not compatible
query I rowsort label-8604
SELECT ALL 92 + COUNT ( * ) AS col1 FROM tab2
----
95

query I rowsort
SELECT 12 * - col2 AS col0 FROM tab0 WHERE NOT - 58 IS NULL
----
-1188
-120
-564

query I rowsort
SELECT + col1 AS col0 FROM tab2 WHERE NULL NOT BETWEEN - 31 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8607
SELECT SUM( - 97 ) FROM tab1
----
-291

skipif mysql # not compatible
query I rowsort label-8607
SELECT SUM ( - 97 ) FROM tab1
----
-291

query I rowsort
SELECT col2 + - 35 AS col0 FROM tab1
----
24
33
61

onlyif mysql # aggregate syntax: 
query I rowsort label-8609
SELECT DISTINCT ( + COUNT( col1 ) ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8609
SELECT DISTINCT ( + COUNT ( col1 ) ) AS col0 FROM tab1
----
3

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN + col1 AND ( col1 * col2 )
----

query I rowsort
SELECT 18 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
18
18
18

onlyif mysql # aggregate syntax: 
query I rowsort label-8612
SELECT ALL ( ( - COUNT( * ) ) ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8612
SELECT ALL ( ( - COUNT ( * ) ) ) AS col0 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8613
SELECT DISTINCT + MIN( col1 ) AS col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8613
SELECT DISTINCT + MIN ( col1 ) AS col1 FROM tab0 AS cor0
----
1

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col1 <= 68 * + 55
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col1 * + 67 FROM tab2 AS cor0
----
3417
4489
5159

query I rowsort
SELECT ALL + 94 FROM tab0 cor0 WHERE NOT ( NULL ) <= ( col2 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 * col0 <> ( + col1 * + col1 )
----

query I rowsort
SELECT DISTINCT 98 FROM tab2 AS cor0 WHERE NOT ( col0 * col2 ) > ( - col1 / col2 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8619
SELECT DISTINCT 87 DIV COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1
----
9

skipif mysql # not compatible
query I rowsort label-8619
SELECT DISTINCT 87 / COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8620
SELECT - + COUNT( DISTINCT col1 ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8620
SELECT - + COUNT ( DISTINCT col1 ) AS col1 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ( + 43 ) * + col0 FROM tab2 cor0 WHERE col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + col1 * - 71 col0 FROM tab2 AS cor0
----
-3598
-4699
-5427

onlyif mysql # aggregate syntax: 
query I rowsort label-8623
SELECT - - MIN( ALL - col2 ) FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-8623
SELECT - - MIN ( ALL - col2 ) FROM tab1 AS cor0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-8624
SELECT + - MIN( DISTINCT - col1 ) AS col0 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-8624
SELECT + - MIN ( DISTINCT - col1 ) AS col0 FROM tab2 AS cor0
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8625
SELECT DISTINCT - col0 + + 7 / - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8625
SELECT DISTINCT - col0 + + 7 / - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8626
SELECT - + COUNT( col0 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8626
SELECT - + COUNT ( col0 ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT ALL - ( col0 ) * col1 + + 12 AS col1 FROM tab1 AS cor0
----
-413
-4265
-702

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT 67 IN ( 52 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8629
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab0 WHERE NOT NULL <> - col1 + + col1 / col1
----
0

skipif mysql # not compatible
query I rowsort label-8629
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab0 WHERE NOT NULL <> - col1 + + col1 / col1
----
0

query III rowsort
SELECT * FROM tab2 WHERE ( - col0 + col2 ) = ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8631
SELECT DISTINCT - 27 + 13 + ( COUNT( * ) ) AS col1 FROM tab0
----
-11

skipif mysql # not compatible
query I rowsort label-8631
SELECT DISTINCT - 27 + 13 + ( COUNT ( * ) ) AS col1 FROM tab0
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-8632
SELECT COUNT( * ) + + MIN( - col0 ) AS col2 FROM tab0
----
-94

skipif mysql # not compatible
query I rowsort label-8632
SELECT COUNT ( * ) + + MIN ( - col0 ) AS col2 FROM tab0
----
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8633
SELECT DISTINCT CAST( + col1 AS SIGNED ) + 96 AS col1 FROM tab2
----
147
163
173

skipif mysql # not compatible
query I rowsort label-8633
SELECT DISTINCT CAST ( + col1 AS INTEGER ) + 96 AS col1 FROM tab2
----
147
163
173

onlyif mysql # aggregate syntax: 
query I rowsort label-8634
SELECT + COUNT( * ) FROM tab2 WHERE ( col0 * col2 + col2 ) NOT BETWEEN NULL AND col0 + col2
----
3

skipif mysql # not compatible
query I rowsort label-8634
SELECT + COUNT ( * ) FROM tab2 WHERE ( col0 * col2 + col2 ) NOT BETWEEN NULL AND col0 + col2
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + + 20 + + col1 * 13 col0 FROM tab0
----
1088
130
380

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + 65 col1 FROM tab1
----
-3315
-5525
-5915

onlyif mysql # aggregate syntax: 
query I rowsort label-8637
SELECT ALL SUM( 10 ) AS col1 FROM tab0
----
30

skipif mysql # not compatible
query I rowsort label-8637
SELECT ALL SUM ( 10 ) AS col1 FROM tab0
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8638
SELECT ALL CAST( NULL AS SIGNED ) + col0 FROM tab0 WHERE NOT + col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8638
SELECT ALL CAST ( NULL AS INTEGER ) + col0 FROM tab0 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8639
SELECT DISTINCT SUM( 84 ) * + 45 AS col0 FROM tab1
----
11340

skipif mysql # not compatible
query I rowsort label-8639
SELECT DISTINCT SUM ( 84 ) * + 45 AS col0 FROM tab1
----
11340

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col0 BETWEEN ( - col1 ) AND ( NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( + 18 )
----

query I rowsort
SELECT 62 * - col0 FROM tab1 AS cor0
----
-3162
-5270
-5642

query I rowsort
SELECT - col1 * + 99 FROM tab0 cor0
----
-2079
-8019
-99

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL > col1 + - 81
----

query I rowsort
SELECT DISTINCT - col0 * - - col0 - 27 AS col2 FROM tab1 AS cor0
----
-2628
-7252
-8308

onlyif mysql # aggregate syntax: 
query I rowsort label-8646
SELECT DISTINCT + MIN( col1 ) + 81 AS col0 FROM tab2 AS cor0
----
132

skipif mysql # not compatible
query I rowsort label-8646
SELECT DISTINCT + MIN ( col1 ) + 81 AS col0 FROM tab2 AS cor0
----
132

query III rowsort
SELECT * FROM tab0 WHERE ( - col0 + - 60 IS NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE ( - - 19 ) IS NULL
----

query I rowsort
SELECT col2 * col2 - - col2 AS col1 FROM tab0
----
110
2256
9900

onlyif mysql # aggregate syntax: 
query I rowsort label-8650
SELECT DISTINCT 93 + COUNT( * ) FROM tab0, tab1 cor0
----
102

skipif mysql # not compatible
query I rowsort label-8650
SELECT DISTINCT 93 + COUNT ( * ) FROM tab0, tab1 cor0
----
102

query I rowsort
SELECT DISTINCT - - 84 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
84

query I rowsort
SELECT ALL col2 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8653
SELECT - col1 * - col0 + col0 DIV + col1 FROM tab2 AS cor0
----
2346
4928
5026

skipif mysql # not compatible
query I rowsort label-8653
SELECT - col1 * - col0 + col0 / + col1 FROM tab2 AS cor0
----
2346
4928
5026

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - col2 + col1 ) NOT IN ( 26 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND 28 / - 21
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 + + col2 NOT BETWEEN 15 AND ( NULL )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - + col2 * col2 - - col2 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 48 * + col1 AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
2256
240
672

onlyif mysql # aggregate syntax: 
query I rowsort label-8659
SELECT ALL MIN( DISTINCT - col2 ) AS col1 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-8659
SELECT ALL MIN ( DISTINCT - col2 ) AS col1 FROM tab0
----
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + + col2 col1 FROM tab0
----
210
3807
99

query I rowsort
SELECT + 86 * - ( - + 39 ) - - col1 AS col2 FROM tab2 AS cor0
----
3405
3421
3431

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8662
SELECT ALL - - MIN( + col1 ) * + ( + CAST( 79 AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-8662
SELECT ALL - - MIN ( + col1 ) * + ( + CAST ( 79 AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
79

query I rowsort
SELECT ALL 61 * col0 FROM tab2 AS cor0
----
2806
3904
4575

query III rowsort
SELECT * FROM tab0 WHERE ( 62 + - + col2 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8665
SELECT - COUNT( * ) FROM tab2 AS cor0 WHERE col1 + - col0 + ( + CAST( NULL AS SIGNED ) ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8665
SELECT - COUNT ( * ) FROM tab2 AS cor0 WHERE col1 + - col0 + ( + CAST ( NULL AS INTEGER ) ) IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8666
SELECT DISTINCT + COUNT( DISTINCT - 76 ) + 68 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
68

skipif mysql # not compatible
query I rowsort label-8666
SELECT DISTINCT + COUNT ( DISTINCT - 76 ) + 68 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
68

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8667
SELECT ALL - col2 + col0 + - 62 * CAST( NULL AS DECIMAL ) * - col2 + - 21 * + 76 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8667
SELECT ALL - col2 + col0 + - 62 * CAST ( NULL AS REAL ) * - col2 + - 21 * + 76 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8668
SELECT ALL - CAST( NULL AS SIGNED ) + ( - MIN( ALL 65 ) ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8668
SELECT ALL - CAST ( NULL AS INTEGER ) + ( - MIN ( ALL 65 ) ) FROM tab0 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8669
SELECT ALL 22 + - - MAX( + col0 ) AS col0 FROM tab1
----
113

skipif mysql # not compatible
query I rowsort label-8669
SELECT ALL 22 + - - MAX ( + col0 ) AS col0 FROM tab1
----
113

query I rowsort
SELECT ALL - 13 FROM tab2 WHERE NOT + - col2 IS NULL
----
-13
-13
-13

query I rowsort
SELECT - 37 FROM tab0 WHERE ( + + ( - - col1 ) + 48 * + 47 + - col0 ) IS NOT NULL
----
-37
-37
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-8672
SELECT ALL COUNT( - - col0 ) AS col1 FROM tab0 WHERE - 96 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8672
SELECT ALL COUNT ( - - col0 ) AS col1 FROM tab0 WHERE - 96 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-8673
SELECT + COUNT( * ), - COUNT( * ) AS col2 FROM tab2
----
3
-3

skipif mysql # not compatible
query II rowsort label-8673
SELECT + COUNT ( * ), - COUNT ( * ) AS col2 FROM tab2
----
3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8674
SELECT - COUNT( * ) - ( 28 ) FROM tab0 AS cor0
----
-31

skipif mysql # not compatible
query I rowsort label-8674
SELECT - COUNT ( * ) - ( 28 ) FROM tab0 AS cor0
----
-31

query I rowsort
SELECT DISTINCT - col0 + - + 54 AS col2 FROM tab2 AS cor0
----
-100
-118
-129

onlyif mysql # aggregate syntax: 
query I rowsort label-8676
SELECT COUNT( * ) + + 74 FROM tab1 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-8676
SELECT COUNT ( * ) + + 74 FROM tab1 AS cor0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8677
SELECT 95 + + 87 * - COUNT( * ) FROM tab2 WHERE - ( - col1 ) * + ( - + col2 ) + 50 IS NULL
----
95

skipif mysql # not compatible
query I rowsort label-8677
SELECT 95 + + 87 * - COUNT ( * ) FROM tab2 WHERE - ( - col1 ) * + ( - + col2 ) + 50 IS NULL
----
95

query I rowsort
SELECT col2 FROM tab2 WHERE NOT + 2 * col2 IS NULL
----
23
40
58

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - + col0 * - 88 ) = ( col2 * - col2 )
----

query I rowsort
SELECT + + 86 / - + col0 / - 33 + col2 + + 13 FROM tab0 WHERE NOT - 37 IS NOT NULL
----

query I rowsort
SELECT + 13 AS col0 FROM tab0 WHERE NOT NULL >= + - col2 * + + 96
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( ( NULL ) IN ( - 24 + - + col2 ) )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8683
SELECT DISTINCT COUNT( * ), COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
3
3

skipif mysql # not compatible
query II rowsort label-8683
SELECT DISTINCT COUNT ( * ), COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
3
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 + col0 * 50 NOT BETWEEN + + col0 AND + 81
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - col0 * + col2 * + col2 ) < ( 28 + + col2 + + - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8686
SELECT - COUNT( * ) * - + COUNT( DISTINCT 90 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8686
SELECT - COUNT ( * ) * - + COUNT ( DISTINCT 90 ) AS col0 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8687
SELECT DISTINCT - SUM( - ( - - col1 ) ) FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-8687
SELECT DISTINCT - SUM ( - ( - - col1 ) ) FROM tab0 AS cor0
----
103

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col0, + col0 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
51
46
67
75
77
64

onlyif mysql # aggregate syntax: 
query II rowsort label-8689
SELECT COUNT( * ), + ( + 23 ) AS col0 FROM tab0
----
3
23

skipif mysql # not compatible
query II rowsort label-8689
SELECT COUNT ( * ), + ( + 23 ) AS col0 FROM tab0
----
3
23

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IN ( col2 * - - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8691
SELECT DISTINCT 80 DIV 97 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8691
SELECT DISTINCT 80 / 97 FROM tab0
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) >= col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8693
SELECT - CAST( NULL AS DECIMAL ) / 51 AS col0 FROM tab0 WHERE NOT - col0 * - - 72 * - - col1 + col0 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8693
SELECT - CAST ( NULL AS REAL ) / 51 AS col0 FROM tab0 WHERE NOT - col0 * - - 72 * - - col1 + col0 IS NULL
----
NULL
NULL
NULL

query II rowsort
SELECT - col2 AS col2, col0 * - col1 FROM tab2
----
-23
-2346
-40
-4928
-58
-5025

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col2 IN ( 49 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL > - 89
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8697
SELECT DISTINCT MAX( DISTINCT 11 ) AS col1 FROM tab0
----
11

skipif mysql # not compatible
query I rowsort label-8697
SELECT DISTINCT MAX ( DISTINCT 11 ) AS col1 FROM tab0
----
11

query I rowsort
SELECT - + col2 + - - 3 FROM tab0 AS cor0
----
-44
-7
-96

query I rowsort
SELECT 68 * col0 + 92 AS col0 FROM tab2
----
3220
4444
5192

onlyif mysql # DIV for integer division: 
query I rowsort label-8700
SELECT col2 DIV + 68 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-8700
SELECT col2 / + 68 FROM tab1
----
0
1
1

query III rowsort
SELECT ALL * FROM tab1 WHERE - col1 NOT BETWEEN NULL AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8702
SELECT DISTINCT + SUM( 64 ) + + - 52 AS col2 FROM tab1
----
140

skipif mysql # not compatible
query I rowsort label-8702
SELECT DISTINCT + SUM ( 64 ) + + - 52 AS col2 FROM tab1
----
140

query I rowsort
SELECT DISTINCT + col2 * - col2 AS col2 FROM tab1 WHERE NOT + 1 >= - col2
----

query I rowsort
SELECT ALL - - col0 + 23 + - col1 FROM tab2 cor0
----
10
18
31

query I rowsort
SELECT + - ( - col1 ) - col1 FROM tab1 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8706
SELECT ALL - + SUM( + + 29 ) + + COUNT( * ) FROM tab1 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-8706
SELECT ALL - + SUM ( + + 29 ) + + COUNT ( * ) FROM tab1 AS cor0
----
-84

query I rowsort
SELECT DISTINCT + col2 + + ( + + col2 ) FROM tab0 AS cor0
----
198
20
94

onlyif mysql # DIV for integer division: 
query I rowsort label-8708
SELECT - + 95 + col1 DIV + - col0 + + col0 + + col1 FROM tab1 cor0
----
-30
-5
43

skipif mysql # not compatible
query I rowsort label-8708
SELECT - + 95 + col1 / + - col0 + + col0 + + col1 FROM tab1 cor0
----
-30
-5
43

onlyif mysql # aggregate syntax: 
query I rowsort label-8709
SELECT + 96 + - COUNT( * ) FROM tab2
----
93

skipif mysql # not compatible
query I rowsort label-8709
SELECT + 96 + - COUNT ( * ) FROM tab2
----
93

query I rowsort
SELECT 56 + + 37 AS col2 FROM tab0 WHERE - + 43 IS NOT NULL
----
93
93
93

query I rowsort
SELECT - 5 FROM tab2 WHERE - 16 * - - 23 + + - 78 IS NULL
----

query I rowsort
SELECT DISTINCT - - 34 FROM tab0 WHERE NOT - col2 + + col1 < 12 + col2 + ( col2 )
----

query I rowsort
SELECT DISTINCT ( - col0 ) - col1 AS col1 FROM tab0
----
-108
-96
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 5 - - col2 col2 FROM tab2
----
28
45
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8715
SELECT col0 * + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8715
SELECT col0 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT - col1 * + 92 + - + 69, ( col2 ) FROM tab0 AS cor0
----
-161
99
-2001
10
-7521
47

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 94 IS NULL
----

query II rowsort
SELECT col2 * col1 - + + col0 AS col1, col0 FROM tab1 AS cor0
----
1293
51
210
85
3105
91

query I rowsort
SELECT ALL - 45 * + - col2 FROM tab1 AS cor0
----
2655
3060
4320

query II rowsort
SELECT ALL col2 AS col0, - 1 FROM tab1
----
59
-1
68
-1
96
-1

query I rowsort
SELECT ALL - col2 * + - col1 * - + ( + col0 ) * - 95 FROM tab0
----
1735650
5424975
912285

query III rowsort
SELECT ALL * FROM tab2 WHERE + col2 - - col1 / - 6 > - 30 OR NULL < NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 41 * - col2 FROM tab2 AS cor0
----
-1640
-2378
-943

query I rowsort
SELECT DISTINCT 61 * + - 52 FROM tab2 AS cor0
----
-3172

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8725
SELECT + col2 * + col2 * + 60 * CAST( + col0 AS SIGNED ) - + col0 + - col0 * - col2 FROM tab1 AS cor0
----
17758030
25253137
28205805

skipif mysql # not compatible
query I rowsort label-8725
SELECT + col2 * + col2 * + 60 * CAST ( + col0 AS INTEGER ) - + col0 + - col0 * - col2 FROM tab1 AS cor0
----
17758030
25253137
28205805

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8726
SELECT - 76 DIV + + CAST( + + ( + COUNT( - + 75 ) ) AS SIGNED ) FROM tab1
----
-25

skipif mysql # not compatible
query I rowsort label-8726
SELECT - 76 / + + CAST ( + + ( + COUNT ( - + 75 ) ) AS INTEGER ) FROM tab1
----
-25

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NOT ( NULL ) IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8728
SELECT COUNT( DISTINCT - CAST( NULL AS SIGNED ) ) * + - COUNT( * ) col1 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8728
SELECT COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) * + - COUNT ( * ) col1 FROM tab0
----
0

query I rowsort
SELECT ALL col1 * + 4 * - ( - - col1 ) FROM tab1
----
-100
-784
-8836

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8730
SELECT DISTINCT + - col1 + - + ( 10 ) - + - 90 - + + ( col2 ) + 22, - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-26
NULL
2
NULL
71
NULL

skipif mysql # not compatible
query II rowsort label-8730
SELECT DISTINCT + - col1 + - + ( 10 ) - + - 90 - + + ( col2 ) + 22, - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-26
NULL
2
NULL
71
NULL

query I rowsort
SELECT DISTINCT - + 24 FROM tab2 WHERE - 4 IS NOT NULL
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-8732
SELECT ALL - COUNT( - + col1 ) * + - COUNT( * ) AS col1 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-8732
SELECT ALL - COUNT ( - + col1 ) * + - COUNT ( * ) AS col1 FROM tab0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8733
SELECT DISTINCT MAX( ALL 30 ) FROM tab0
----
30

skipif mysql # not compatible
query I rowsort label-8733
SELECT DISTINCT MAX ( ALL 30 ) FROM tab0
----
30

query I rowsort
SELECT 69 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

onlyif mysql # DIV for integer division: 
query I rowsort label-8735
SELECT col0 * col1 DIV - col0 + - + col0 DIV - 99 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-8735
SELECT col0 * col1 / - col0 + - + col0 / - 99 FROM tab2
----
-51
-67
-77

query I rowsort
SELECT - col2 + 36 + col1 - + 18 * col1 AS col0 FROM tab0 cor0
----
-1388
-331
-80

query I rowsort
SELECT DISTINCT + 46 * col2 * - - col0 * + col0 FROM tab1 AS cor0
----
11486016
19608650
25902968

onlyif mysql # aggregate syntax: 
query I rowsort label-8738
SELECT DISTINCT + 17 + - COUNT( * ) FROM tab0 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-8738
SELECT DISTINCT + 17 + - COUNT ( * ) FROM tab0 AS cor0
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8739
SELECT ALL COUNT( * ) / - + 60 * + MIN( DISTINCT CAST( NULL AS SIGNED ) ) * + + MIN( col0 ) * COUNT( * ) + - + 74 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8739
SELECT ALL COUNT ( * ) / - + 60 * + MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) * + + MIN ( col0 ) * COUNT ( * ) + - + 74 AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8740
SELECT ALL - CAST( - COUNT( * ) AS SIGNED ) col2, 8 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0
8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8740
SELECT ALL - CAST ( - COUNT ( * ) AS INTEGER ) col2, 8 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0
8

query II rowsort
SELECT - 64, + 37 AS col0 FROM tab1 AS cor0
----
-64
37
-64
37
-64
37

query II rowsort
SELECT - - 56 AS col2, 29 FROM tab1 cor0
----
56
29
56
29
56
29

query II rowsort
SELECT DISTINCT col0, col0 FROM tab1 AS cor0 WHERE 41 IS NOT NULL
----
51
51
85
85
91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8744
SELECT - MIN( - - col1 ) AS col2 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-8744
SELECT - MIN ( - - col1 ) AS col2 FROM tab1
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8745
SELECT ALL col2 col1, - col1 AS col0 FROM tab2 WHERE - col1 + + col1 + - 90 NOT BETWEEN NULL AND - 75 + - - CAST( - col1 AS SIGNED )
----
23
-51
40
-77
58
-67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8745
SELECT ALL col2 col1, - col1 AS col0 FROM tab2 WHERE - col1 + + col1 + - 90 NOT BETWEEN NULL AND - 75 + - - CAST ( - col1 AS INTEGER )
----
23
-51
40
-77
58
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-8746
SELECT ALL - MIN( DISTINCT + - col0 ) + + 86 AS col1 FROM tab2
----
161

skipif mysql # not compatible
query I rowsort label-8746
SELECT ALL - MIN ( DISTINCT + - col0 ) + + 86 AS col1 FROM tab2
----
161

query I rowsort
SELECT - col2 - - + 9 AS col1 FROM tab2
----
-14
-31
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8748
SELECT DISTINCT CAST( NULL AS SIGNED ) * col0 * + col2 * col2 + + - col0 FROM tab2 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8748
SELECT DISTINCT CAST ( NULL AS INTEGER ) * col0 * + col2 * col2 + + - col0 FROM tab2 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 - 42 col2, + col0 + - col0 AS col1 FROM tab2
----
22
0
33
0
4
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - + col0 * + + col2 col1 FROM tab1
----
-4882
-5010
-6141

query I rowsort
SELECT - 13 - - ( 12 ) AS col2 FROM tab0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 col2 FROM tab0 WHERE NOT col0 * - + 12 - - 54 NOT IN ( + col1, col0 )
----

query I rowsort
SELECT DISTINCT col1 - + 73 FROM tab1
----
-26
-59
-68

query I rowsort
SELECT ALL - ( - col1 ) * + col0 * + - col2 FROM tab1 AS cor0
----
-25075
-290836
-68544

query I rowsort
SELECT DISTINCT + col0 + 83 FROM tab1 AS cor0 WHERE NOT - ( + col1 ) >= NULL
----

query II rowsort
SELECT + col0 AS col0, col2 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
51
96
85
59
91
68

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - 95 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL - col2 AS col2, col0 AS col2 FROM tab0 AS cor0 WHERE NOT col1 < + col0
----
-47
15

query I rowsort
SELECT - - 78 * col1 * + - 8 + + col2 - + 58 AS col1 FROM tab1 AS cor0
----
-29318
-3119
-8698

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8760
SELECT ALL - MIN( DISTINCT - CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-8760
SELECT ALL - MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 38 NOT IN ( - 9 )
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

query I rowsort
SELECT DISTINCT - - 53 AS col1 FROM tab0 WHERE + col2 BETWEEN 84 AND 65 * - col1 + + 99
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8763
SELECT + COUNT( * ) AS col1 FROM tab2 WHERE NOT - col1 <> ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-8763
SELECT + COUNT ( * ) AS col1 FROM tab2 WHERE NOT - col1 <> ( NULL )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 + - 15 col0, 0 FROM tab2 WHERE NOT NULL BETWEEN NULL AND - ( - + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8765
SELECT ( - CAST( col0 AS SIGNED ) ), - col0 FROM tab0 WHERE NOT NULL NOT BETWEEN + col1 AND + col0 * + + col1
----

skipif mysql # not compatible
query II rowsort label-8765
SELECT ( - CAST ( col0 AS INTEGER ) ), - col0 FROM tab0 WHERE NOT NULL NOT BETWEEN + col1 AND + col0 * + + col1
----

query I rowsort
SELECT ( + col1 ) * col0 FROM tab1 AS cor0 WHERE NOT NULL IN ( col1 )
----

query I rowsort
SELECT ALL - + 68 * - col2 AS col2 FROM tab2 cor0
----
1564
2720
3944

query I rowsort
SELECT + ( col0 ) FROM tab0 AS cor0 WHERE NOT - 65 <> col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8769
SELECT - SUM( ALL - col2 ) AS col1 FROM tab1 WHERE NOT + - col0 <= - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8769
SELECT - SUM ( ALL - col2 ) AS col1 FROM tab1 WHERE NOT + - col0 <= - col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8770
SELECT 68 * + + COUNT( * ) col2 FROM tab2
----
204

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8770
SELECT 68 * + + COUNT ( * ) col2 FROM tab2
----
204

query II rowsort
SELECT DISTINCT col2, 68 * col0 * + + 35 FROM tab1
----
59
202300
68
216580
96
121380

query II rowsort
SELECT ALL 40 AS col2, col2 FROM tab0
----
40
10
40
47
40
99

query I rowsort
SELECT DISTINCT 99 + col0 + - col1 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL 5 + + col1 + - col1 + - 52 * + col1 AS col1 FROM tab2
----
-2647
-3479
-3999

query III rowsort
SELECT * FROM tab0 WHERE - col2 <= - - 65 + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 61 * - col2 AS col2 FROM tab1 WHERE NULL NOT IN ( + 12, col2, - col1 + - 25 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + - + 38 + - col0 col2 FROM tab0 AS cor0
----
-134
-136
-146

onlyif mysql # DIV for integer division: 
query I rowsort label-8778
SELECT col0 DIV + col0 + + col2 + + + 96 + + col0 AS col0 FROM tab1 AS cor0
----
241
244
256

skipif mysql # not compatible
query I rowsort label-8778
SELECT col0 / + col0 + + col2 + + + 96 + + col0 AS col0 FROM tab1 AS cor0
----
241
244
256

query I rowsort
SELECT ALL - 29 * + 93 FROM tab0 AS cor0
----
-2697
-2697
-2697

query I rowsort
SELECT DISTINCT + ( - ( - 92 ) ) AS col1 FROM tab1 AS cor0
----
92

query I rowsort
SELECT - - col0 - - ( - - col0 ) FROM tab2 AS cor0
----
128
150
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8782
SELECT ALL - 60 + MAX( ALL - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8782
SELECT ALL - 60 + MAX ( ALL - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8783
SELECT - COUNT( * ) col1 FROM tab1 AS cor0 WHERE col2 >= 92
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8783
SELECT - COUNT ( * ) col1 FROM tab1 AS cor0 WHERE col2 >= 92
----
-1

query I rowsort
SELECT DISTINCT - 1 + - - col2 * + col0 AS col1 FROM tab2 cor0
----
1057
2559
4349

query III rowsort
SELECT ALL * FROM tab0 WHERE ( 35 * + 69 >= - + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8786
SELECT DISTINCT COUNT( * ) DIV + 51 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8786
SELECT DISTINCT COUNT ( * ) / + 51 AS col1 FROM tab2
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <= ( - - col2 )
----

query I rowsort
SELECT ALL + 28 AS col0 FROM tab1 WHERE + - col0 * - 41 IS NOT NULL
----
28
28
28

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8789
SELECT ALL AVG ( ALL ( - CAST( NULL AS DECIMAL ) ) ) AS col2 FROM tab1 cor0 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8789
SELECT ALL AVG ( ALL ( - CAST ( NULL AS REAL ) ) ) AS col2 FROM tab1 cor0 WHERE NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8790
SELECT + + COUNT( * ) * - + COUNT( * ) FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-8790
SELECT + + COUNT ( * ) * - + COUNT ( * ) FROM tab2 AS cor0
----
-9

query III rowsort
SELECT * FROM tab2 WHERE NOT + 31 * - + ( + col2 ) * + col1 BETWEEN - 82 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT col2 AS col0, - col2 + col1 * col1 AS col0 FROM tab2 WHERE NOT NULL = ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8793
SELECT MAX( - + ( + col2 ) ) AS col1 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-8793
SELECT MAX ( - + ( + col2 ) ) AS col1 FROM tab0 AS cor0
----
-10

query I rowsort
SELECT ALL + 75 AS col1 FROM tab1 AS cor0 WHERE 23 IS NULL
----

query II rowsort
SELECT DISTINCT + + ( col1 ) AS col2, col0 FROM tab0 AS cor0
----
1
97
21
87
81
15

query I rowsort
SELECT DISTINCT + + 1 + col2 FROM tab2 cor0
----
24
41
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 7 col2 FROM tab0
----
-7

query I rowsort
SELECT col1 * + - 39 FROM tab2
----
-1989
-2613
-3003

query II rowsort
SELECT + + 32, + col2 - + col0 AS col1 FROM tab2 WHERE + col1 * col0 IS NULL
----

query I rowsort
SELECT - col0 * - + 83 FROM tab0
----
1245
7221
8051

query I rowsort
SELECT DISTINCT col2 * - - col0 AS col0 FROM tab2
----
1058
2560
4350

query III rowsort
SELECT * FROM tab1 WHERE + col0 * + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8803
SELECT SUM( DISTINCT + 92 ) AS col0 FROM tab1
----
92

skipif mysql # not compatible
query I rowsort label-8803
SELECT SUM ( DISTINCT + 92 ) AS col0 FROM tab1
----
92

query I rowsort
SELECT DISTINCT + ( + col1 ) * - + 96 FROM tab1
----
-1344
-4512
-480

onlyif mysql # aggregate syntax: 
query I rowsort label-8805
SELECT DISTINCT + 46 + - + SUM( DISTINCT + - col1 ) - - - 9 AS col2 FROM tab2
----
232

skipif mysql # not compatible
query I rowsort label-8805
SELECT DISTINCT + 46 + - + SUM ( DISTINCT + - col1 ) - - - 9 AS col2 FROM tab2
----
232

onlyif mysql # aggregate syntax: 
query I rowsort label-8806
SELECT ALL MIN( + 4 ) AS col0 FROM tab2 cor0
----
4

skipif mysql # not compatible
query I rowsort label-8806
SELECT ALL MIN ( + 4 ) AS col0 FROM tab2 cor0
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-8807
SELECT DISTINCT ( - + col1 ) DIV + col2 col2 FROM tab0
----
-1
-2
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8807
SELECT DISTINCT ( - + col1 ) / + col2 col2 FROM tab0
----
-1
-2
0

query I rowsort
SELECT 42 + col2 * + + col2 + col2 FROM tab2
----
1682
3464
594

onlyif mysql # aggregate syntax: 
query I rowsort label-8809
SELECT DISTINCT - + MIN( ( - 61 ) ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
61

skipif mysql # not compatible
query I rowsort label-8809
SELECT DISTINCT - + MIN ( ( - 61 ) ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
61

query II rowsort
SELECT ALL - + col0, + col2 AS col2 FROM tab2 cor0
----
-46
23
-64
40
-75
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8811
SELECT ALL - CAST( MIN( - + 6 ) AS SIGNED ) + + COUNT( * ) * + COUNT( * ) AS col0 FROM tab1 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-8811
SELECT ALL - CAST ( MIN ( - + 6 ) AS INTEGER ) + + COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
15

query I rowsort
SELECT DISTINCT 14 * - col0 FROM tab2 AS cor0
----
-1050
-644
-896

query I rowsort
SELECT ALL + 83 + col0 AS col2 FROM tab1 AS cor0
----
134
168
174

onlyif mysql # aggregate syntax: 
query I rowsort label-8814
SELECT DISTINCT - ( - - COUNT( * ) ) col0 FROM tab1 AS cor0 WHERE NOT col2 <> NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8814
SELECT DISTINCT - ( - - COUNT ( * ) ) col0 FROM tab1 AS cor0 WHERE NOT col2 <> NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8815
SELECT COUNT( ALL col1 ) * + 37 FROM tab0 AS cor0
----
111

skipif mysql # not compatible
query I rowsort label-8815
SELECT COUNT ( ALL col1 ) * + 37 FROM tab0 AS cor0
----
111

query I rowsort
SELECT ALL col0 - - 73 FROM tab0 AS cor0 WHERE col1 NOT IN ( - + col1 )
----
160
170
88

query I rowsort
SELECT DISTINCT - 28 * - col1 AS col2 FROM tab0
----
2268
28
588

onlyif mysql # DIV for integer division: 
query I rowsort label-8818
SELECT - 33 DIV + - col2 * 78 * + + ( col0 ) * + col1 + + - 18 AS col2 FROM tab1
----
-18
-18
-18

skipif mysql # not compatible
query I rowsort label-8818
SELECT - 33 / + - col2 * 78 * + + ( col0 ) * + col1 + + - 18 AS col2 FROM tab1
----
-18
-18
-18

query I rowsort
SELECT + - ( col1 ) FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8820
SELECT DISTINCT + 1 DIV - COUNT( * ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8820
SELECT DISTINCT + 1 / - COUNT ( * ) FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8821
SELECT ALL + col2 DIV 50 AS col2 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8821
SELECT ALL + col2 / 50 AS col2 FROM tab0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8822
SELECT DISTINCT + + ( + - COUNT( * ) ) FROM tab0 WHERE + col0 NOT BETWEEN NULL AND + 88
----
-1

skipif mysql # not compatible
query I rowsort label-8822
SELECT DISTINCT + + ( + - COUNT ( * ) ) FROM tab0 WHERE + col0 NOT BETWEEN NULL AND + 88
----
-1

query I rowsort
SELECT DISTINCT + + 46 AS col0 FROM tab1 AS cor0
----
46

query I rowsort
SELECT ALL 75 FROM tab0 AS cor0 WHERE NOT NULL < + 54
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8825
SELECT - COUNT( DISTINCT col0 ) AS col2, CAST( + 50 AS SIGNED ) * + MIN( - col2 ) FROM tab2 AS cor0
----
-3
-2900

skipif mysql # not compatible
query II rowsort label-8825
SELECT - COUNT ( DISTINCT col0 ) AS col2, CAST ( + 50 AS INTEGER ) * + MIN ( - col2 ) FROM tab2 AS cor0
----
-3
-2900

onlyif mysql # aggregate syntax: 
query I rowsort label-8826
SELECT COUNT( DISTINCT col0 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8826
SELECT COUNT ( DISTINCT col0 ) AS col2 FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL - 7 FROM tab0 cor0 JOIN tab0 AS cor1 ON NULL IS NOT NULL
----

query II rowsort
SELECT DISTINCT + col0 AS col2, - col1 * - col0 AS col2 FROM tab0
----
15
1215
87
1827
97
97

query I rowsort
SELECT ALL 19 * + + 5 FROM tab0
----
95
95
95

query II rowsort
SELECT DISTINCT + 89 AS col2, ( + + 60 ) AS col1 FROM tab2 AS cor0
----
89
60

onlyif mysql # DIV for integer division: 
query II rowsort label-8831
SELECT + - col0, + 73 DIV 96 AS col2 FROM tab0 AS cor0
----
-15
0
-87
0
-97
0

skipif mysql # not compatible
query II rowsort label-8831
SELECT + - col0, + 73 / 96 AS col2 FROM tab0 AS cor0
----
-15
0
-87
0
-97
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8832
SELECT ALL 79 + COUNT( * ) AS col1 FROM tab1 AS cor0
----
82

skipif mysql # not compatible
query I rowsort label-8832
SELECT ALL 79 + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
82

query II rowsort
SELECT + col2, col1 AS col1 FROM tab0 cor0
----
10
21
47
81
99
1

query I rowsort
SELECT ALL - - 73 * 10 FROM tab1 AS cor0
----
730
730
730

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8835
SELECT ALL - CAST( NULL AS SIGNED ) / - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8835
SELECT ALL - CAST ( NULL AS INTEGER ) / - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 99 * - col0 AS col1 FROM tab2 AS cor0 WHERE NULL > - col1
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 6 * + ( + 89 ) * - - col1 NOT BETWEEN ( + - 92 ) * - col0 + - 61 AND + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + col1, + col1 FROM tab1 AS cor0
----
14
14
47
47
5
5

query I rowsort
SELECT DISTINCT - 95 + - ( + col1 ) AS col1 FROM tab2
----
-146
-162
-172

query I rowsort
SELECT DISTINCT col1 / - + col2 AS col2 FROM tab1 WHERE ( NOT NULL IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8841
SELECT DISTINCT + MIN( DISTINCT + + col2 ) AS col2 FROM tab1 WHERE NOT - 51 * - - 90 IS NULL
----
59

skipif mysql # not compatible
query I rowsort label-8841
SELECT DISTINCT + MIN ( DISTINCT + + col2 ) AS col2 FROM tab1 WHERE NOT - 51 * - - 90 IS NULL
----
59

query I rowsort
SELECT col1 * + 96 + - col2 FROM tab1
----
1248
421
4444

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND 91
----

query I rowsort
SELECT ALL - 91 + - + col2 AS col2 FROM tab0
----
-101
-138
-190

onlyif mysql # aggregate syntax: 
query I rowsort label-8845
SELECT ALL - - ( + SUM( - ( + col0 ) ) ) AS col1 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-8845
SELECT ALL - - ( + SUM ( - ( + col0 ) ) ) AS col1 FROM tab2 AS cor0
----
-185

query II rowsort
SELECT ALL + 14 AS col1, - col0 + + col1 AS col2 FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
14
-8
14
13
14
5

query I rowsort
SELECT ALL + col1 * + col2 - 81 FROM tab1 AS cor0
----
1263
214
3115

query I rowsort
SELECT col1 + + - ( col2 ) FROM tab1 cor0
----
-21
-54
-82

query I rowsort
SELECT DISTINCT - - col0 + + col0 AS col2 FROM tab1 AS cor0 WHERE NOT 41 IS NULL
----
102
170
182

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8850
SELECT + CAST( NULL AS SIGNED ) + + AVG ( - - col1 ) * + - 22 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8850
SELECT + CAST ( NULL AS INTEGER ) + + AVG ( - - col1 ) * + - 22 AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - + 76 AS col0 FROM tab1 AS cor0
----
-76

query I rowsort
SELECT ( + - 23 ) FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN 20 AND + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8853
SELECT CAST( + col2 AS SIGNED ) * col0 AS col0 FROM tab2 AS cor0
----
1058
2560
4350

skipif mysql # not compatible
query I rowsort label-8853
SELECT CAST ( + col2 AS INTEGER ) * col0 AS col0 FROM tab2 AS cor0
----
1058
2560
4350

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( ( NOT NULL <> ( NULL ) ) )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + ( - col2 ) IS NULL
----

query I rowsort
SELECT DISTINCT + ( - col1 ) * + + col0 AS col2 FROM tab1
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-8857
SELECT + SUM( DISTINCT + col0 ) AS col0 FROM tab1 WHERE NOT + - col2 IS NULL
----
227

skipif mysql # not compatible
query I rowsort label-8857
SELECT + SUM ( DISTINCT + col0 ) AS col0 FROM tab1 WHERE NOT + - col2 IS NULL
----
227

query I rowsort
SELECT ALL 85 * 81 FROM tab1
----
6885
6885
6885

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 = - 29 + + - 45
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8860
SELECT - MAX( ALL - - 71 ) AS col0 FROM tab1
----
-71

skipif mysql # not compatible
query I rowsort label-8860
SELECT - MAX ( ALL - - 71 ) AS col0 FROM tab1
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8861
SELECT - SUM( + - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8861
SELECT - SUM ( + - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) AS col1 FROM tab0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8862
SELECT DISTINCT COUNT( * ) AS col1, + CAST( NULL AS SIGNED ) FROM tab1
----
3
NULL

skipif mysql # not compatible
query II rowsort label-8862
SELECT DISTINCT COUNT ( * ) AS col1, + CAST ( NULL AS INTEGER ) FROM tab1
----
3
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8863
SELECT SUM( DISTINCT CAST( NULL AS SIGNED ) ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8863
SELECT SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8864
SELECT + COUNT( DISTINCT + 25 ) AS col0 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8864
SELECT + COUNT ( DISTINCT + 25 ) AS col0 FROM tab2 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8865
SELECT + 16 AS col2, - COUNT( * ) FROM tab0 AS cor0
----
16
-3

skipif mysql # not compatible
query II rowsort label-8865
SELECT + 16 AS col2, - COUNT ( * ) FROM tab0 AS cor0
----
16
-3

query I rowsort
SELECT ALL - + col0 * + col2 * 13 * col0 * + + 22 AS col2 FROM tab2 AS cor0
----
-13919048
-46858240
-93307500

onlyif mysql # aggregate syntax: 
query I rowsort label-8867
SELECT + ( - MIN( DISTINCT - col0 ) ) AS col2 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-8867
SELECT + ( - MIN ( DISTINCT - col0 ) ) AS col2 FROM tab0 AS cor0
----
97

query II rowsort
SELECT col2 AS col1, 62 FROM tab1 AS cor0
----
59
62
68
62
96
62

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - ( + + 39 ) IS NOT NULL
----

query I rowsort
SELECT - col2 + - - 82 AS col1 FROM tab1 AS cor0 WHERE NOT - 87 IS NULL
----
-14
14
23

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 43 BETWEEN + col2 * - col1 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT + col2 * + + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 AS col2 FROM tab1 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT - - col2 AS col1 FROM tab0 AS cor0 WHERE NOT 30 NOT BETWEEN col1 * 96 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8875
SELECT ALL - - col2 * - 40 * - + col2 / CAST( NULL AS SIGNED ) - - - CAST( col1 AS SIGNED ) - - - col1 + col1 + 52 * - col0 * 11 AS col0 FROM tab0 cor0 WHERE 93 + + 48 BETWEEN + col0 AND NULL
----

skipif mysql # not compatible
query I rowsort label-8875
SELECT ALL - - col2 * - 40 * - + col2 / CAST ( NULL AS INTEGER ) - - - CAST ( col1 AS INTEGER ) - - - col1 + col1 + 52 * - col0 * 11 AS col0 FROM tab0 cor0 WHERE 93 + + 48 BETWEEN + col0 AND NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL > - col0
----

query I rowsort
SELECT DISTINCT - + col0 + - col1 - - col2 FROM tab0 AS cor0
----
-49
-98
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8878
SELECT DISTINCT COUNT( * ) * + COUNT( * ) + - - MIN( - - col0 ) col0 FROM tab0 AS cor0
----
24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8878
SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) + - - MIN ( - - col0 ) col0 FROM tab0 AS cor0
----
24

query II rowsort
SELECT col2, - col1 AS col0 FROM tab0
----
10
-21
47
-81
99
-1

query I rowsort
SELECT ( - - 64 ) FROM tab1
----
64
64
64

query I rowsort
SELECT + col1 * + - col1 FROM tab2
----
-2601
-4489
-5929

query III rowsort
SELECT ALL * FROM tab2 WHERE + + 78 BETWEEN NULL AND ( - col1 * col1 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE + - 29 IS NULL
----

query I rowsort
SELECT - 22 * - + col0 AS col0 FROM tab2
----
1012
1408
1650

query II rowsort
SELECT ALL - col0 AS col0, - col1 AS col1 FROM tab1
----
-51
-14
-85
-5
-91
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8886
SELECT + CAST( + col2 AS SIGNED ) * + - col2 * - - col2 AS col0 FROM tab0
----
-1000
-103823
-970299

skipif mysql # not compatible
query I rowsort label-8886
SELECT + CAST ( + col2 AS INTEGER ) * + - col2 * - - col2 AS col0 FROM tab0
----
-1000
-103823
-970299

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8887
SELECT CAST( NULL AS SIGNED ) / - col0 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8887
SELECT CAST ( NULL AS INTEGER ) / - col0 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 * + 27 * - col2, - col2 col0 FROM tab0
----
-19035
-47
-23490
-10
-259281
-99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8889
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) = ( + col1 )
----

skipif mysql # not compatible
query III rowsort label-8889
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) = ( + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8890
SELECT ALL col0 AS col1 FROM tab0 AS cor0 WHERE ( - ( col0 ) * CAST( NULL AS SIGNED ) ) IS NULL
----
15
87
97

skipif mysql # not compatible
query I rowsort label-8890
SELECT ALL col0 AS col1 FROM tab0 AS cor0 WHERE ( - ( col0 ) * CAST ( NULL AS INTEGER ) ) IS NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8891
SELECT + COUNT( * ) * COUNT( * ) FROM tab1 AS cor0 WHERE 57 - + + 48 < + col1 * - + col0 - col2 + 18
----
0

skipif mysql # not compatible
query I rowsort label-8891
SELECT + COUNT ( * ) * COUNT ( * ) FROM tab1 AS cor0 WHERE 57 - + + 48 < + col1 * - + col0 - col2 + 18
----
0

query I rowsort
SELECT DISTINCT + 40 / + AVG ( DISTINCT + - col0 ) AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT ALL + 24 - - col0 AS col2 FROM tab1 AS cor0
----
109
115
75

query I rowsort
SELECT + - col1 * - - 44 * 92 * + col1 + - - col1 + 71 FROM tab0 AS cor0
----
-1785076
-26558776
-3976

query I rowsort
SELECT DISTINCT - col0 + - + ( + + 68 ) + col0 * - ( + col2 ) FROM tab0
----
-1025
-788
-9768

query I rowsort
SELECT ALL 31 FROM tab2 AS cor0 WHERE NOT - col1 IS NULL
----
31
31
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8897
SELECT 37 * + col2 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8897
SELECT 37 * + col2 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8898
SELECT + ( + CAST( NULL AS SIGNED ) ) * + col1 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8898
SELECT + ( + CAST ( NULL AS INTEGER ) ) * + col1 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8899
SELECT + ( + + 35 ) DIV + col0 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8899
SELECT + ( + + 35 ) / + col0 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 56 ) col2 FROM tab2
----
56
56
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8901
SELECT DISTINCT CAST( - + col2 AS SIGNED ) FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-8901
SELECT DISTINCT CAST ( - + col2 AS INTEGER ) FROM tab1
----
-59
-68
-96

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT IN ( - col1, - col1, + 7 + - - 71 + col2 )
----

query II rowsort
SELECT DISTINCT + col0 AS col0, col0 FROM tab2 AS cor0 WHERE NOT 12 - + + col2 IS NULL
----
46
46
64
64
75
75

query I rowsort
SELECT ALL + col2 * + col1 * + col1 - - col1 FROM tab1 AS cor0
----
1480
150259
18830

query I rowsort
SELECT ALL - 10 + - - col1 FROM tab0 AS cor0
----
-9
11
71

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NOT - + col2 <= + + col0 + col0 + + col1 )
----

query II rowsort
SELECT - col1 AS col0, + col2 FROM tab0 AS cor0
----
-1
99
-21
10
-81
47

query I rowsort
SELECT + 54 * - - 11 FROM tab0 AS cor0
----
594
594
594

onlyif mysql # aggregate syntax: 
query I rowsort label-8909
SELECT ALL + + COUNT( * ) + + 52 FROM tab0 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-8909
SELECT ALL + + COUNT ( * ) + + 52 FROM tab0 AS cor0
----
55

query II rowsort
SELECT DISTINCT + 1 + + + 7, 49 AS col0 FROM tab1 AS cor0
----
8
49

query I rowsort
SELECT DISTINCT col0 + + 20 FROM tab1
----
105
111
71

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN - + col1 / 75 AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8913
SELECT + MAX( ALL - col0 ) + - 39 - - 46 * 85 AS col1 FROM tab0
----
3856

skipif mysql # not compatible
query I rowsort label-8913
SELECT + MAX ( ALL - col0 ) + - 39 - - 46 * 85 AS col1 FROM tab0
----
3856

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 39 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + 28 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8916
SELECT DISTINCT 32 - + SUM( ALL + col1 ) * - MAX( ALL + col1 ) FROM tab2
----
15047

skipif mysql # not compatible
query I rowsort label-8916
SELECT DISTINCT 32 - + SUM ( ALL + col1 ) * - MAX ( ALL + col1 ) FROM tab2
----
15047

query I rowsort
SELECT 18 * col2 + + col2 * - col0 AS col1 FROM tab1
----
-3168
-3953
-4964

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 63 + - - 32 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8919
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-8919
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL >= NULL
----
0

query II rowsort
SELECT 42 AS col1, col1 AS col0 FROM tab2
----
42
51
42
67
42
77

query II rowsort
SELECT DISTINCT - - col0, - 96 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
46
-96
64
-96
75
-96

query II rowsort
SELECT DISTINCT col0 AS col2, + ( + col2 ) * 94 * - - col2 - col0 + + + 29 + + ( - 38 ) FROM tab1 AS cor0
----
51
866244
85
327120
91
434556

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL IN ( 45, 74, col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + AVG ( - 90 ) col2 FROM tab2 AS cor0 WHERE NULL > + col1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 29 = NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8926
SELECT DISTINCT - col2, - 8 / 96 + CAST( NULL AS DECIMAL ) * + - 13 col2 FROM tab0 AS cor0
----
-10
NULL
-47
NULL
-99
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8926
SELECT DISTINCT - col2, - 8 / 96 + CAST ( NULL AS REAL ) * + - 13 col2 FROM tab0 AS cor0
----
-10
NULL
-47
NULL
-99
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL = + - 64 - - 81 * - 87
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8928
SELECT CAST( + + 1 AS SIGNED ) AS col2 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8928
SELECT CAST ( + + 1 AS INTEGER ) AS col2 FROM tab2
----
1
1
1

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 59 * - + col0 BETWEEN col0 * 97 AND + 24
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8930
SELECT ALL - SUM( ALL + col1 ) AS col1 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-8930
SELECT ALL - SUM ( ALL + col1 ) AS col1 FROM tab1
----
-66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 * - + col2, col2 col0 FROM tab2 AS cor0
----
1173
23
3080
40
3886
58

query I rowsort
SELECT 40 AS col0 FROM tab0 cor0 WHERE NOT - col2 IS NOT NULL
----

query I rowsort
SELECT ALL col0 + + 45 - - + col1 * - col2 FROM tab2 AS cor0
----
-1082
-2971
-3766

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8934
SELECT DISTINCT + COUNT( + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
0

skipif mysql # not compatible
query I rowsort label-8934
SELECT DISTINCT + COUNT ( + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
0

query III rowsort
SELECT * FROM tab0 WHERE NULL > + col2 * - + 60 * col0 + col0 + + + col2 + - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8936
SELECT + - CAST( NULL AS SIGNED ) + - - ( + ( - - col1 ) ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8936
SELECT + - CAST ( NULL AS INTEGER ) + - - ( + ( - - col1 ) ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 + + 99 AS col1 FROM tab2 AS cor0
----
41
59
76

onlyif mysql # aggregate syntax: 
query I rowsort label-8938
SELECT DISTINCT + COUNT( * ) + - 85 FROM tab0 AS cor0
----
-82

skipif mysql # not compatible
query I rowsort label-8938
SELECT DISTINCT + COUNT ( * ) + - 85 FROM tab0 AS cor0
----
-82

query I rowsort
SELECT DISTINCT + 83 + 5 + - 14 FROM tab1 AS cor0
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8940
SELECT ALL ( COUNT( + col0 ) ) FROM tab0 AS cor0 WHERE col2 * + - col2 * - + CAST( NULL AS SIGNED ) NOT IN ( - + 56, 35 )
----
0

skipif mysql # not compatible
query I rowsort label-8940
SELECT ALL ( COUNT ( + col0 ) ) FROM tab0 AS cor0 WHERE col2 * + - col2 * - + CAST ( NULL AS INTEGER ) NOT IN ( - + 56, 35 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8941
SELECT + - SUM( ALL - - col2 ) AS col1 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-8941
SELECT + - SUM ( ALL - - col2 ) AS col1 FROM tab0 AS cor0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-8942
SELECT ALL 29 - - COUNT( * ) AS col0 FROM tab1
----
32

skipif mysql # not compatible
query I rowsort label-8942
SELECT ALL 29 - - COUNT ( * ) AS col0 FROM tab1
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-8943
SELECT ALL + 51 * - + COUNT( * ) FROM tab1
----
-153

skipif mysql # not compatible
query I rowsort label-8943
SELECT ALL + 51 * - + COUNT ( * ) FROM tab1
----
-153

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 * - col2, + col0 col0 FROM tab0
----
-705
15
-870
87
-9603
97

query I rowsort
SELECT ALL 96 - + col1 FROM tab1
----
49
82
91

query III rowsort
SELECT * FROM tab0 WHERE + + col2 + - col2 >= NULL
----

query II rowsort
SELECT col2 * + 17, 27 AS col2 FROM tab2
----
391
27
680
27
986
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8948
SELECT COUNT( * ) * + + 0 DIV COUNT( * ) * + 65 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8948
SELECT COUNT ( * ) * + + 0 / COUNT ( * ) * + 65 FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8949
SELECT DISTINCT + 57 DIV col2 col1 FROM tab0
----
0
1
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8949
SELECT DISTINCT + 57 / col2 col1 FROM tab0
----
0
1
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8950
SELECT ALL - CAST( + COUNT( * ) AS SIGNED ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-8950
SELECT ALL - CAST ( + COUNT ( * ) AS INTEGER ) FROM tab2
----
-3

query II rowsort
SELECT DISTINCT 49, 99 AS col0 FROM tab1
----
49
99

query I rowsort
SELECT DISTINCT - - 9 * + col0 FROM tab0 cor0
----
135
783
873

onlyif mysql # DIV for integer division: 
query II rowsort label-8953
SELECT + col1 DIV - - col1 + - - col2 * col0, - col0 col1 FROM tab2 AS cor0
----
1059
-46
2561
-64
4351
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8953
SELECT + col1 / - - col1 + - - col2 * col0, - col0 col1 FROM tab2 AS cor0
----
1059
-46
2561
-64
4351
-75

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 23 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8955
SELECT MAX( DISTINCT + 78 ) AS col2 FROM tab0
----
78

skipif mysql # not compatible
query I rowsort label-8955
SELECT MAX ( DISTINCT + 78 ) AS col2 FROM tab0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-8956
SELECT ALL - + MIN( ALL + 30 ) AS col2 FROM tab1 cor0
----
-30

skipif mysql # not compatible
query I rowsort label-8956
SELECT ALL - + MIN ( ALL + 30 ) AS col2 FROM tab1 cor0
----
-30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL ( + col2 ) col1, 16 FROM tab1 AS cor0
----
59
16
68
16
96
16

query I rowsort
SELECT ALL + + 6 FROM tab0 AS cor0
----
6
6
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8959
SELECT DISTINCT - - ( - COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8959
SELECT DISTINCT - - ( - COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8960
SELECT ALL + col1 * + CAST( + 37 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
1887
2479
2849

skipif mysql # not compatible
query I rowsort label-8960
SELECT ALL + col1 * + CAST ( + 37 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
1887
2479
2849

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8961
SELECT ALL - col2 / - + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8961
SELECT ALL - col2 / - + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( - + 21 ) FROM tab2
----
-21
-21
-21

query I rowsort
SELECT DISTINCT - 42 AS col1 FROM tab1 WHERE NOT - col1 <> col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8964
SELECT ALL AVG ( ALL + CAST( NULL AS DECIMAL ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8964
SELECT ALL AVG ( ALL + CAST ( NULL AS REAL ) ) FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col0 FROM tab2 WHERE col1 = - 20
----

query II rowsort
SELECT col1 AS col1, col1 - - col2 FROM tab2
----
51
74
67
125
77
117

onlyif mysql # aggregate syntax: 
query I rowsort label-8967
SELECT DISTINCT MIN( ALL - - 85 ) AS col2 FROM tab0
----
85

skipif mysql # not compatible
query I rowsort label-8967
SELECT DISTINCT MIN ( ALL - - 85 ) AS col2 FROM tab0
----
85

onlyif mysql # DIV for integer division: 
query II rowsort label-8968
SELECT ALL 34, 29 DIV 42 AS col2 FROM tab1
----
34
0
34
0
34
0

skipif mysql # not compatible
query II rowsort label-8968
SELECT ALL 34, 29 / 42 AS col2 FROM tab1
----
34
0
34
0
34
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8969
SELECT - col0 DIV + ( - CAST( - - col1 AS SIGNED ) ) + - col1 FROM tab1 AS cor0
----
-11
-46
12

skipif mysql # not compatible
query I rowsort label-8969
SELECT - col0 / + ( - CAST ( - - col1 AS INTEGER ) ) + - col1 FROM tab1 AS cor0
----
-11
-46
12

query I rowsort
SELECT + 44 + - 14 FROM tab1 AS cor0
----
30
30
30

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8971
SELECT DISTINCT * FROM tab1 WHERE NOT + - col0 * + col0 = - CAST( 60 AS SIGNED ) + 43 + + ( + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8971
SELECT DISTINCT * FROM tab1 WHERE NOT + - col0 * + col0 = - CAST ( 60 AS INTEGER ) + 43 + + ( + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col1 * + + 35 AS col0 FROM tab1 AS cor0
----
1645
175
490

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8973
SELECT ALL - CAST( ( - - 26 ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-26
-26
-26

skipif mysql # not compatible
query I rowsort label-8973
SELECT ALL - CAST ( ( - - 26 ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-26
-26
-26

query I rowsort
SELECT DISTINCT - + col2 * - col0 + ( + col1 ) + col1 FROM tab1 AS cor0
----
4924
5025
6282

query II rowsort
SELECT ALL - + 0 * - col1, - col1 AS col1 FROM tab0 AS cor0 WHERE NULL > + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8976
SELECT col0 + 7 + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8976
SELECT col0 + 7 + CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN NULL AND - + col1 + col1 + + col2
----

query I rowsort
SELECT ALL - col2 * - col2 + ( - ( + - ( - col0 ) ) ) - + - col1 FROM tab0
----
2275
34
9705

query I rowsort
SELECT DISTINCT + 97 - + col0 AS col2 FROM tab2
----
22
33
51

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 21 * + - col1 IS NULL
----

query I rowsort
SELECT DISTINCT + col2 - + + 60 FROM tab0
----
-13
-50
39

onlyif mysql # aggregate syntax: 
query II rowsort label-8982
SELECT DISTINCT 84, + 12 + + - MAX( - + col2 ) + COUNT( * ) - MAX( col1 ) AS col0 FROM tab2
----
84
-39

skipif mysql # not compatible
query II rowsort label-8982
SELECT DISTINCT 84, + 12 + + - MAX ( - + col2 ) + COUNT ( * ) - MAX ( col1 ) AS col0 FROM tab2
----
84
-39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 36 col0 FROM tab0 AS cor0
----
-36
-36
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-8984
SELECT DISTINCT - SUM( ALL + + ( - + col0 ) ) col1 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8984
SELECT DISTINCT - SUM ( ALL + + ( - + col0 ) ) col1 FROM tab2 AS cor0
----
185

onlyif mysql # DIV for integer division: 
query III rowsort label-8985
SELECT ALL - - 72 AS col2, col0 AS col0, - + 83 * + col0 * - col1 DIV - + col1 AS col2 FROM tab1 AS cor0
----
9 values hashing to fc8913db0d4506f77b2b8900b3148f09

skipif mysql # not compatible
query III rowsort label-8985
SELECT ALL - - 72 AS col2, col0 AS col0, - + 83 * + col0 * - col1 / - + col1 AS col2 FROM tab1 AS cor0
----
9 values hashing to fc8913db0d4506f77b2b8900b3148f09

query I rowsort
SELECT + col1 * + + 38 * - col2 FROM tab1 cor0
----
-11210
-121448
-51072

query I rowsort
SELECT DISTINCT col0 * + - col0 AS col1 FROM tab0 AS cor0
----
-225
-7569
-9409

query I rowsort
SELECT 63 / 90 FROM tab1 AS cor0 WHERE NOT ( col0 ) NOT BETWEEN NULL AND + col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8989
SELECT + 64 DIV MAX( + col0 ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8989
SELECT + 64 / MAX ( + col0 ) AS col1 FROM tab1
----
0

query I rowsort
SELECT ( + + 60 ) FROM tab0
----
60
60
60

query III rowsort
SELECT * FROM tab1 WHERE NULL > - col1 + + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8992
SELECT 10 + - ( - 93 ) + + SUM( ALL - col2 ) * + ( + COUNT( * ) ) AS col2 FROM tab2
----
-260

skipif mysql # not compatible
query I rowsort label-8992
SELECT 10 + - ( - 93 ) + + SUM ( ALL - col2 ) * + ( + COUNT ( * ) ) AS col2 FROM tab2
----
-260

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8993
SELECT + 37 + + + ( + 98 ) AS col1, CAST( SUM( - 64 ) AS SIGNED ) + - - MIN( ALL - col2 ) FROM tab0
----
135
-291

skipif mysql # not compatible
query II rowsort label-8993
SELECT + 37 + + + ( + 98 ) AS col1, CAST ( SUM ( - 64 ) AS INTEGER ) + - - MIN ( ALL - col2 ) FROM tab0
----
135
-291

query I rowsort
SELECT DISTINCT 15 + - - col2 + - 82 * - col1 + - + col0 + col0 FROM tab0
----
1747
196
6704

onlyif mysql # aggregate syntax: 
query II rowsort label-8995
SELECT ALL COUNT( * ), - COUNT( * ) AS col0 FROM ( tab2 cor0 CROSS JOIN tab0 AS cor1 )
----
9
-9

skipif mysql # not compatible
query II rowsort label-8995
SELECT ALL COUNT ( * ), - COUNT ( * ) AS col0 FROM ( tab2 cor0 CROSS JOIN tab0 AS cor1 )
----
9
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8996
SELECT DISTINCT - col2 + + + col2 + + + CAST( 86 AS SIGNED ) * 44 AS col1 FROM tab0
----
3784

skipif mysql # not compatible
query I rowsort label-8996
SELECT DISTINCT - col2 + + + col2 + + + CAST ( 86 AS INTEGER ) * 44 AS col1 FROM tab0
----
3784

onlyif mysql # aggregate syntax: 
query I rowsort label-8997
SELECT 25 + + COUNT( * ) AS col0 FROM tab1
----
28

skipif mysql # not compatible
query I rowsort label-8997
SELECT 25 + + COUNT ( * ) AS col0 FROM tab1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-8998
SELECT SUM( ALL + - 20 ) * - 24 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
4320

skipif mysql # not compatible
query I rowsort label-8998
SELECT SUM ( ALL + - 20 ) * - 24 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
4320

onlyif mysql # aggregate syntax: 
query I rowsort label-8999
SELECT ALL - - COUNT( ALL col1 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8999
SELECT ALL - - COUNT ( ALL col1 ) FROM tab2 cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9000
SELECT ALL + 44 + CAST( - AVG ( DISTINCT + 58 ) AS SIGNED ) FROM tab0 cor0
----
-14

skipif mysql # not compatible
query I rowsort label-9000
SELECT ALL + 44 + CAST ( - AVG ( DISTINCT + 58 ) AS INTEGER ) FROM tab0 cor0
----
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-9001
SELECT col0 DIV + - 47 - + col2 AS col1 FROM tab2 AS cor0
----
-23
-41
-59

skipif mysql # not compatible
query I rowsort label-9001
SELECT col0 / + - 47 - + col2 AS col1 FROM tab2 AS cor0
----
-23
-41
-59

query I rowsort
SELECT + 58 AS col1 FROM tab0 AS cor0 WHERE ( NULL IS NOT NULL )
----

query I rowsort
SELECT + 69 - col0 AS col1 FROM tab0
----
-18
-28
54

query I rowsort
SELECT ALL - 36 + + col0 + - col2 FROM tab1
----
-10
-13
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9005
SELECT 26 + 71 + + MAX( + + 97 ) FROM tab2 WHERE NOT col2 * col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9005
SELECT 26 + 71 + + MAX ( + + 97 ) FROM tab2 WHERE NOT col2 * col1 IS NOT NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col2 * - col2 < col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL + - 43 + - - ( - + col2 ) * + + col1 AS col1, + col0 FROM tab0 AS cor0 WHERE ( NULL ) <> + - col2
----

query I rowsort
SELECT ALL - 34 * + col2 AS col0 FROM tab2 cor0
----
-1360
-1972
-782

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9009
SELECT DISTINCT - col1 DIV + + CAST( - + col0 AS SIGNED ) + + + col1 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-9009
SELECT DISTINCT - col1 / + + CAST ( - + col0 AS INTEGER ) + + + col1 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # DIV for integer division: 
query I rowsort label-9010
SELECT 3 DIV - col1 + - - col2 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-9010
SELECT 3 / - col1 + - - col2 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # DIV for integer division: 
query I rowsort label-9011
SELECT 16 * + col1 DIV - col1 FROM tab1
----
-16
-16
-16

skipif mysql # not compatible
query I rowsort label-9011
SELECT 16 * + col1 / - col1 FROM tab1
----
-16
-16
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9012
SELECT DISTINCT COUNT( * ) AS col2, + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
3
NULL

skipif mysql # not compatible
query II rowsort label-9012
SELECT DISTINCT COUNT ( * ) AS col2, + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
3
NULL

query I rowsort
SELECT ( 72 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 27 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9015
SELECT DISTINCT - + col2 * - ( - CAST( NULL AS SIGNED ) ) / + 66 + - - col1 + - - 13 AS col1, - 85 AS col1 FROM tab1 AS cor0
----
NULL
-85

skipif mysql # not compatible
query II rowsort label-9015
SELECT DISTINCT - + col2 * - ( - CAST ( NULL AS INTEGER ) ) / + 66 + - - col1 + - - 13 AS col1, - 85 AS col1 FROM tab1 AS cor0
----
NULL
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-9016
SELECT ALL - + COUNT( * ) * 27 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-9016
SELECT ALL - + COUNT ( * ) * 27 FROM tab0 AS cor0
----
-81

query II rowsort
SELECT - + col0, col1 * col1 AS col1 FROM tab1 AS cor0
----
-51
196
-85
25
-91
2209

query I rowsort
SELECT 40 * - + col2 FROM tab2 AS cor0
----
-1600
-2320
-920

query III rowsort
SELECT * FROM tab2 WHERE NOT - - col2 / + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9020
SELECT DISTINCT COUNT( DISTINCT ( col2 ) ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9020
SELECT DISTINCT COUNT ( DISTINCT ( col2 ) ) AS col1 FROM tab0
----
3

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col1 / 66 + col2 * - 16 - - col2 BETWEEN col0 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9022
SELECT ALL COUNT( DISTINCT - col1 ) col2 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9022
SELECT ALL COUNT ( DISTINCT - col1 ) col2 FROM tab2
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9023
SELECT - col0 * - col0 * CAST( - - ( - - 76 ) AS DECIMAL ) AS col0 FROM tab0 WHERE NULL = - 98 AND NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-9023
SELECT - col0 * - col0 * CAST ( - - ( - - 76 ) AS REAL ) AS col0 FROM tab0 WHERE NULL = - 98 AND NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9024
SELECT + + COUNT( * ), COUNT( * ) AS col1 FROM tab1 WHERE - col0 <= - ( 95 )
----
0
0

skipif mysql # not compatible
query II rowsort label-9024
SELECT + + COUNT ( * ), COUNT ( * ) AS col1 FROM tab1 WHERE - col0 <= - ( 95 )
----
0
0

query I rowsort
SELECT + ( col1 ) + + + col1 + 89 * - - ( - 60 ) FROM tab2
----
-5186
-5206
-5238

query I rowsort
SELECT ALL - - col1 + - - col2 FROM tab2 AS cor0 WHERE NOT ( - 51 + col0 / + 2 IS NULL )
----
117
125
74

onlyif mysql # aggregate syntax: 
query I rowsort label-9027
SELECT - + 56 + - MIN( DISTINCT + col1 ) FROM tab1 AS cor0
----
-61

skipif mysql # not compatible
query I rowsort label-9027
SELECT - + 56 + - MIN ( DISTINCT + col1 ) FROM tab1 AS cor0
----
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9028
SELECT - - CAST( - col2 AS SIGNED ) + col1 FROM tab2 AS cor0
----
28
37
9

skipif mysql # not compatible
query I rowsort label-9028
SELECT - - CAST ( - col2 AS INTEGER ) + col1 FROM tab2 AS cor0
----
28
37
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9029
SELECT DISTINCT + + MAX( DISTINCT + ( 81 ) ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
81

skipif mysql # not compatible
query I rowsort label-9029
SELECT DISTINCT + + MAX ( DISTINCT + ( 81 ) ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
81

query I rowsort
SELECT 27 - + col1 + + col1 FROM tab0
----
27
27
27

onlyif mysql # aggregate syntax: 
query I rowsort label-9031
SELECT + 46 - + MAX( DISTINCT - col2 ) AS col1 FROM tab2
----
69

skipif mysql # not compatible
query I rowsort label-9031
SELECT + 46 - + MAX ( DISTINCT - col2 ) AS col1 FROM tab2
----
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 65 - + col2 col1 FROM tab1 AS cor0
----
-124
-133
-161

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 81 col1 FROM tab0 AS cor0
----
81

query I rowsort
SELECT - 66 - + 37 FROM tab0 AS cor0
----
-103
-103
-103

query I rowsort
SELECT 4 + + + 7 * - col0 * + col0 AS col2 FROM tab2 AS cor0
----
-14808
-28668
-39371

query I rowsort
SELECT col1 + - col1 AS col2 FROM tab2 AS cor0 WHERE - 91 BETWEEN NULL AND 93 * - + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9037
SELECT ALL + - ( - MAX( DISTINCT - col0 ) ) AS col0 FROM tab2 cor0
----
-46

skipif mysql # not compatible
query I rowsort label-9037
SELECT ALL + - ( - MAX ( DISTINCT - col0 ) ) AS col0 FROM tab2 cor0
----
-46

query I rowsort
SELECT - - 92 + - 86 AS col1 FROM tab1 cor0
----
6
6
6

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN 63 AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9040
SELECT ALL + ( COUNT( - ( + ( col2 ) ) ) ) * - 72 AS col2 FROM tab1 AS cor0
----
-216

skipif mysql # not compatible
query I rowsort label-9040
SELECT ALL + ( COUNT ( - ( + ( col2 ) ) ) ) * - 72 AS col2 FROM tab1 AS cor0
----
-216

query II rowsort
SELECT ALL + col2, + col2 * + 95 FROM tab2
----
23
2185
40
3800
58
5510

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9042
SELECT DISTINCT CAST( NULL AS SIGNED ) * + col0 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9042
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + col0 AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + col1 AND 99
----

query I rowsort
SELECT + col0 + ( col0 ) * 64 FROM tab1
----
3315
5525
5915

onlyif mysql # aggregate syntax: 
query I rowsort label-9045
SELECT DISTINCT MIN( 56 ) FROM tab0 WHERE NOT ( 93 ) / ( col2 + col1 ) >= + ( - col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9045
SELECT DISTINCT MIN ( 56 ) FROM tab0 WHERE NOT ( 93 ) / ( col2 + col1 ) >= + ( - col1 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9046
SELECT - COUNT( * ) + + 64 FROM tab2
----
61

skipif mysql # not compatible
query I rowsort label-9046
SELECT - COUNT ( * ) + + 64 FROM tab2
----
61

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 74 - 66 BETWEEN NULL AND ( col0 )
----

query III rowsort
SELECT * FROM tab1 WHERE col2 NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT + 90 FROM tab2 WHERE - 61 BETWEEN ( col1 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9050
SELECT DISTINCT MAX( DISTINCT col1 ) col1 FROM tab0
----
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9050
SELECT DISTINCT MAX ( DISTINCT col1 ) col1 FROM tab0
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9051
SELECT * FROM tab0 WHERE NULL <= - CAST( NULL AS SIGNED ) + - col0
----

skipif mysql # not compatible
query III rowsort label-9051
SELECT * FROM tab0 WHERE NULL <= - CAST ( NULL AS INTEGER ) + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9052
SELECT COUNT( * ) + - 47 FROM tab0
----
-44

skipif mysql # not compatible
query I rowsort label-9052
SELECT COUNT ( * ) + - 47 FROM tab0
----
-44

query I rowsort
SELECT - 10 * 61 AS col1 FROM tab1
----
-610
-610
-610

onlyif mysql # aggregate syntax: 
query I rowsort label-9054
SELECT - COUNT( * ) * 36 AS col1 FROM tab2
----
-108

skipif mysql # not compatible
query I rowsort label-9054
SELECT - COUNT ( * ) * 36 AS col1 FROM tab2
----
-108

onlyif mysql # DIV for integer division: 
query I rowsort label-9055
SELECT DISTINCT col1 - col2 DIV - col1 FROM tab1
----
16
20
48

skipif mysql # not compatible
query I rowsort label-9055
SELECT DISTINCT col1 - col2 / - col1 FROM tab1
----
16
20
48

query I rowsort
SELECT col1 * + ( + 69 * - col2 ) FROM tab2
----
-212520
-268134
-80937

query I rowsort
SELECT - col1 + - col0 AS col1 FROM tab0 WHERE ( NULL ) NOT BETWEEN NULL AND col0
----

query I rowsort
SELECT + 55 AS col2 FROM tab1 WHERE 23 >= NULL
----

query I rowsort
SELECT - col0 + + 30 AS col0 FROM tab2
----
-16
-34
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-9060
SELECT DISTINCT COUNT( ALL 86 ) AS col2 FROM tab1 WHERE 15 < col1 / 90
----
0

skipif mysql # not compatible
query I rowsort label-9060
SELECT DISTINCT COUNT ( ALL 86 ) AS col2 FROM tab1 WHERE 15 < col1 / 90
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9061
SELECT COUNT( 40 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9061
SELECT COUNT ( 40 ) AS col2 FROM tab2
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - 46 ) + - 40 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9063
SELECT 63 + COUNT( * ) AS col2 FROM tab0 WHERE NOT ( + col0 ) IS NOT NULL
----
63

skipif mysql # not compatible
query I rowsort label-9063
SELECT 63 + COUNT ( * ) AS col2 FROM tab0 WHERE NOT ( + col0 ) IS NOT NULL
----
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col1 FROM tab1 WHERE - col2 + col2 / col2 IS NOT NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9065
SELECT - MIN( DISTINCT col1 ) FROM tab2 WHERE NOT - col0 IS NULL
----
-51

skipif mysql # not compatible
query I rowsort label-9065
SELECT - MIN ( DISTINCT col1 ) FROM tab2 WHERE NOT - col0 IS NULL
----
-51

query I rowsort
SELECT + 67 * - 20 AS col2 FROM tab0 WHERE - col1 * + col1 IS NOT NULL
----
-1340
-1340
-1340

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col0 / + 97 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 63 IN ( 1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9069
SELECT ALL + ( MAX( col1 ) ) FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-9069
SELECT ALL + ( MAX ( col1 ) ) FROM tab2
----
77

query I rowsort
SELECT 9 + + 2 FROM tab1
----
11
11
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9071
SELECT ( - col0 ) + - CAST( NULL AS SIGNED ) col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9071
SELECT ( - col0 ) + - CAST ( NULL AS INTEGER ) col0 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL > col2 + col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + 46 + ( - 28 - col2 ) / - col2 ) <> col1
----

query I rowsort
SELECT ALL + col0 + + 19 FROM tab1 cor0
----
104
110
70

query I rowsort
SELECT ALL - col2 + 86 FROM tab2 cor0
----
28
46
63

onlyif mysql # aggregate syntax: 
query I rowsort label-9076
SELECT DISTINCT 10 + COUNT( * ) AS col1 FROM tab0 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-9076
SELECT DISTINCT 10 + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
13

query I rowsort
SELECT 58 + ( 36 + col2 ) * col2 AS col0 FROM tab1 AS cor0
----
12730
5663
7130

onlyif mysql # aggregate syntax: 
query I rowsort label-9078
SELECT DISTINCT 76 + COUNT( + col2 ) FROM tab0
----
79

skipif mysql # not compatible
query I rowsort label-9078
SELECT DISTINCT 76 + COUNT ( + col2 ) FROM tab0
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-9079
SELECT - 78 + + 50 * COUNT( * ) AS col2 FROM tab0
----
72

skipif mysql # not compatible
query I rowsort label-9079
SELECT - 78 + + 50 * COUNT ( * ) AS col2 FROM tab0
----
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9080
SELECT 7 + - COUNT( * ) DIV - 94 AS col0 FROM tab2
----
7

skipif mysql # not compatible
query I rowsort label-9080
SELECT 7 + - COUNT ( * ) / - 94 AS col0 FROM tab2
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-9081
SELECT ALL - col0 DIV - col1 AS col0 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9081
SELECT ALL - col0 / - col1 AS col0 FROM tab2
----
0
0
1

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 67 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col0 / + 32 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN 80 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9084
SELECT col2 FROM tab0 cor0 WHERE NULL IN ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-9084
SELECT col2 FROM tab0 cor0 WHERE NULL IN ( - CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col0 = + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9086
SELECT DISTINCT - ( MIN( ALL + 78 ) ) FROM tab0 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-9086
SELECT DISTINCT - ( MIN ( ALL + 78 ) ) FROM tab0 AS cor0
----
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 23 col1 FROM tab2 cor0
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-9088
SELECT - + col0 DIV 66 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9088
SELECT - + col0 / 66 FROM tab2 AS cor0
----
-1
0
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + ( 68 ) + 83 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 28 * + col1 FROM tab1 AS cor0
----
1316
140
392

onlyif mysql # DIV for integer division: 
query I rowsort label-9091
SELECT - 96 DIV col1 AS col0 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9091
SELECT - 96 / col1 AS col0 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT - 0 * col2 AS col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9093
SELECT - MIN( DISTINCT + - 88 ) AS col1 FROM tab2
----
88

skipif mysql # not compatible
query I rowsort label-9093
SELECT - MIN ( DISTINCT + - 88 ) AS col1 FROM tab2
----
88

query I rowsort
SELECT 86 * - col2 AS col1 FROM tab1
----
-5074
-5848
-8256

query I rowsort
SELECT DISTINCT + 29 FROM tab0 WHERE ( 29 * 65 ) IS NOT NULL
----
29

query I rowsort
SELECT ALL + col2 * + col0 AS col2 FROM tab0 WHERE NULL BETWEEN + col0 + - col0 / - 66 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 57 * col0 = col1 * + 96
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9098
SELECT - + 90 * - CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9098
SELECT - + 90 * - CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9099
SELECT - - COUNT( * ) * MIN( DISTINCT - col1 ) FROM tab2 AS cor0
----
-231

skipif mysql # not compatible
query I rowsort label-9099
SELECT - - COUNT ( * ) * MIN ( DISTINCT - col1 ) FROM tab2 AS cor0
----
-231

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 = 92 * + col2
----

query I rowsort
SELECT - 16 * + 28 AS col1 FROM tab0
----
-448
-448
-448

query II rowsort
SELECT DISTINCT + col0 AS col2, col1 FROM tab1
----
51
14
85
5
91
47

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( - 13 ) < NULL
----

query I rowsort
SELECT + col0 * - col0 AS col0 FROM tab0 WHERE NOT ( NOT NULL IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9105
SELECT + - COUNT( - col1 ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9105
SELECT + - COUNT ( - col1 ) AS col1 FROM tab0 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) >= 3 + col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9107
SELECT + + AVG ( - CAST( NULL AS DECIMAL ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9107
SELECT + + AVG ( - CAST ( NULL AS REAL ) ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + + 10 * - - col0 + - + col2 AS col2 FROM tab2 AS cor0
----
437
600
692

query I rowsort
SELECT ALL + col0 + + - 19 AS col0 FROM tab1 AS cor0
----
32
66
72

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + col2 ) > + ( + 82 )
----
15
81
47
87
21
10

query I rowsort
SELECT ALL - 12 + + col2 AS col2 FROM tab1 AS cor0
----
47
56
84

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( + 76 ) >= NULL
----

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE - 86 * - col1 * - col1 > col1 + col1 * - col1
----

query I rowsort
SELECT - col0 + - 21 + 43 FROM tab0
----
-65
-75
7

query I rowsort
SELECT DISTINCT 1 * - ( + col2 ) FROM tab2
----
-23
-40
-58

query I rowsort
SELECT ALL + ( - + 24 ) * + col1 + + - 48 AS col1 FROM tab2
----
-1272
-1656
-1896

onlyif mysql # aggregate syntax: 
query I rowsort label-9117
SELECT DISTINCT ( - 18 ) * MAX( ( - 67 ) ) col0 FROM tab0
----
1206

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9117
SELECT DISTINCT ( - 18 ) * MAX ( ( - 67 ) ) col0 FROM tab0
----
1206

query I rowsort
SELECT DISTINCT col2 - - col0 + - + 66 FROM tab0
----
-4
130
31

query I rowsort
SELECT col2 + + - ( + + 52 ) FROM tab0
----
-42
-5
47

onlyif mysql # DIV for integer division: 
query I rowsort label-9120
SELECT ALL + 40 * + col0 * 26 DIV - col0 AS col2 FROM tab2 AS cor0
----
-1040
-1040
-1040

skipif mysql # not compatible
query I rowsort label-9120
SELECT ALL + 40 * + col0 * 26 / - col0 AS col2 FROM tab2 AS cor0
----
-1040
-1040
-1040

query I rowsort
SELECT DISTINCT - 80 - + col2 FROM tab1 AS cor0 WHERE NOT ( col1 ) NOT BETWEEN ( NULL ) AND + col1 * 29
----

query I rowsort
SELECT + col0 * - ( - col1 ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
425
4277
714

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 79 - col0 col1 FROM tab2
----
-125
-143
-154

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9124
SELECT ALL col1 + 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-9124
SELECT ALL col1 + CAST ( NULL AS INTEGER ) col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9125
SELECT SUM( CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9125
SELECT SUM ( CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT col2, col0 + - col2 + col2 AS col0 FROM tab0 cor0
----
10
87
47
15
99
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9127
SELECT COUNT( ALL + - CAST( + col0 AS SIGNED ) ), - ( + + COUNT( * ) ) col2 FROM tab2 AS cor0
----
3
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9127
SELECT COUNT ( ALL + - CAST ( + col0 AS INTEGER ) ), - ( + + COUNT ( * ) ) col2 FROM tab2 AS cor0
----
3
-3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-9129
SELECT + col0 DIV + 37 + col2 AS col2 FROM tab0 AS cor0
----
101
12
47

skipif mysql # not compatible
query I rowsort label-9129
SELECT + col0 / + 37 + col2 AS col2 FROM tab0 AS cor0
----
101
12
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9130
SELECT SUM( DISTINCT - col2 ) * + 1 AS col1 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-9130
SELECT SUM ( DISTINCT - col2 ) * + 1 AS col1 FROM tab1 AS cor0
----
-223

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9131
SELECT 48 FROM tab2 AS cor0 WHERE NOT NULL > - col2 + - CAST( - col2 AS DECIMAL ) * col1 * col1
----

skipif mysql # not compatible
query I rowsort label-9131
SELECT 48 FROM tab2 AS cor0 WHERE NOT NULL > - col2 + - CAST ( - col2 AS REAL ) * col1 * col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9132
SELECT - COUNT( * ) AS col2 FROM tab1 WHERE NOT ( NOT ( NULL IN ( + 90 ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-9132
SELECT - COUNT ( * ) AS col2 FROM tab1 WHERE NOT ( NOT ( NULL IN ( + 90 ) ) )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9133
SELECT ALL 92 DIV - + 94 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9133
SELECT ALL 92 / - + 94 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT - ( 93 ) FROM tab2
----
-93

onlyif mysql # aggregate syntax: 
query II rowsort label-9135
SELECT - COUNT( * ) AS col2, COUNT( * ) FROM tab2, tab2 AS cor0
----
-9
9

skipif mysql # not compatible
query II rowsort label-9135
SELECT - COUNT ( * ) AS col2, COUNT ( * ) FROM tab2, tab2 AS cor0
----
-9
9

query I rowsort
SELECT col1 * 73 AS col2 FROM tab1
----
1022
3431
365

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * 26 col2 FROM tab1
----
1222
130
364

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + AVG ( ALL col2 ) col0 FROM tab0 WHERE NOT - - col2 < + col2 + 24
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9139
SELECT MIN( - 65 ) FROM tab0 WHERE NOT - col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9139
SELECT MIN ( - 65 ) FROM tab0 WHERE NOT - col2 IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 20 col2, col0 + - 14 + col1 FROM tab1
----
20
124
20
51
20
76

onlyif mysql # DIV for integer division: 
query II rowsort label-9141
SELECT ALL 38 DIV col2 AS col1, 47 FROM tab2
----
0
47
0
47
1
47

skipif mysql # not compatible
query II rowsort label-9141
SELECT ALL 38 / col2 AS col1, 47 FROM tab2
----
0
47
0
47
1
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + col2 * col0 col0 FROM tab1
----
-249696
-426275
-563108

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 / col1 / col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9144
SELECT + SUM( ALL + + col0 ) + - 72 FROM tab0 AS cor0
----
127

skipif mysql # not compatible
query I rowsort label-9144
SELECT + SUM ( ALL + + col0 ) + - 72 FROM tab0 AS cor0
----
127

query I rowsort
SELECT DISTINCT - col0 + + col1 + + col0 FROM tab0 AS cor0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9146
SELECT COUNT( * ) FROM tab1 AS cor0 WHERE ( + 53 ) < ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-9146
SELECT COUNT ( * ) FROM tab1 AS cor0 WHERE ( + 53 ) < ( NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9147
SELECT DISTINCT - COUNT( * ) + ( - COUNT( * ) ) FROM tab2 cor0
----
-6

skipif mysql # not compatible
query I rowsort label-9147
SELECT DISTINCT - COUNT ( * ) + ( - COUNT ( * ) ) FROM tab2 cor0
----
-6

query I rowsort
SELECT - col2 FROM tab1 AS cor0 WHERE col0 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9149
SELECT ALL + - ( - COUNT( * ) ) + - 75 FROM tab0 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-9149
SELECT ALL + - ( - COUNT ( * ) ) + - 75 FROM tab0 AS cor0
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-9150
SELECT DISTINCT - ( COUNT( * ) ) + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-9150
SELECT DISTINCT - ( COUNT ( * ) ) + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 + + - col1 col1, 87 FROM tab1 AS cor0
----
21
87
54
87
82
87

query I rowsort
SELECT + - 8 + + + 93 AS col2 FROM tab0 AS cor0 WHERE + 95 - ( + 43 ) <> 16
----
85
85
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9153
SELECT 76 * - 14 FROM tab0 WHERE + col1 NOT BETWEEN NULL AND + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-9153
SELECT 76 * - 14 FROM tab0 WHERE + col1 NOT BETWEEN NULL AND + + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT + col0 + + - col0 AS col1 FROM tab0 WHERE - col1 IS NOT NULL
----
0
0
0

query I rowsort
SELECT DISTINCT - col2 * - col0 * + col0 * + - col1 + - - col1 + - - col0 - col2 AS col0 FROM tab2
----
-12615579
-21858666
-2481994

query II rowsort
SELECT col0 AS col2, + col0 AS col1 FROM tab2
----
46
46
64
64
75
75

query I rowsort
SELECT col0 - 46 FROM tab1
----
39
45
5

query I rowsort
SELECT + 70 * - col0 - col1 AS col1 FROM tab0
----
-1131
-6111
-6791

query I rowsort
SELECT + + col1 - + - col1 * + - 36 FROM tab2 cor0
----
-1785
-2345
-2695

query I rowsort
SELECT DISTINCT col0 + 6 + - - col2 + + col2 FROM tab1 AS cor0
----
209
233
249

query I rowsort
SELECT ( + + col0 ) + - 33 FROM tab1 AS cor0
----
18
52
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9162
SELECT ALL - 25 + + SUM( ( col0 ) ) FROM tab0 AS cor0
----
174

skipif mysql # not compatible
query I rowsort label-9162
SELECT ALL - 25 + + SUM ( ( col0 ) ) FROM tab0 AS cor0
----
174

query I rowsort
SELECT + col1 + - col0 + col1 + col2 * 88 AS col2 FROM tab2 cor0
----
2080
3610
5163

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9164
SELECT CAST( NULL AS SIGNED ) + - 58 + + col1 * + col2 - + - 38 * - col0 * + + 88 * col2 * 84 + 27 * 0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9164
SELECT CAST ( NULL AS INTEGER ) + - 58 + + col1 * + col2 - + - 38 * - col0 * + + 88 * col2 * 84 + 27 * 0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9165
SELECT DISTINCT + COUNT( * ) col1, + 8 / - - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NOT NULL
----
0
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9165
SELECT DISTINCT + COUNT ( * ) col1, + 8 / - - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NOT NULL
----
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9166
SELECT + MIN( ALL col1 ) AS col2 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-9166
SELECT + MIN ( ALL col1 ) AS col2 FROM tab2
----
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - + 49 col2 FROM tab0 AS cor0
----
-1029
-3969
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9168
SELECT ALL ( AVG ( + ( col0 ) ) ) * MIN( DISTINCT + CAST( NULL AS SIGNED ) ) + + 3 * - SUM( - col1 ) * COUNT( * ) col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9168
SELECT ALL ( AVG ( + ( col0 ) ) ) * MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) + + 3 * - SUM ( - col1 ) * COUNT ( * ) col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - - 37 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) < - 1
----

query I rowsort
SELECT DISTINCT - col2 * - + 47 * - + col1 FROM tab1 AS cor0
----
-13865
-150212
-63168

query I rowsort
SELECT + - col1 AS col2 FROM tab0 AS cor0 WHERE NOT + col2 * + 19 - + 14 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + + 93 * - col1 AS col1 FROM tab2 AS cor0
----
-4743
-6231
-7161

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - 80 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9174
SELECT 32 DIV + col0 AS col0 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9174
SELECT 32 / + col0 AS col0 FROM tab1 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9175
SELECT - - COUNT( * ) * + 13 FROM tab0 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-9175
SELECT - - COUNT ( * ) * + 13 FROM tab0 AS cor0
----
39

query I rowsort
SELECT ALL - 86 + col0 * + col2 AS col1 FROM tab0 WHERE NOT + 67 NOT BETWEEN NULL AND - ( col1 ) / - + col2 + - col2 + + 48 - col0
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - - ( + - 86 ) < 8 * 93
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL col1 AS col1, + ( + 59 ) FROM tab1
----
14
59
47
59
5
59

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - - col0 * + + col0 NOT IN ( + + col2 + col1 )
----

query I rowsort
SELECT 93 * + ( col1 ) FROM tab1
----
1302
4371
465

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + col1 * - - col2 * col0 - - - col2 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9182
SELECT - COUNT( * ) + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-9182
SELECT - COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-6

query I rowsort
SELECT - 9 FROM tab2 AS cor0 WHERE NOT - col0 = ( NULL )
----

query I rowsort
SELECT ALL + col1 FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9185
SELECT ALL col1, + 56 * + CAST( col1 AS SIGNED ) col0 FROM tab2
----
51
2856
67
3752
77
4312

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9185
SELECT ALL col1, + 56 * + CAST ( col1 AS INTEGER ) col0 FROM tab2
----
51
2856
67
3752
77
4312

query I rowsort
SELECT - 9 * col2 FROM tab2
----
-207
-360
-522

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9187
SELECT + CAST( + col1 AS SIGNED ) - - col1 * - - col2 AS col1, col1 + col0 - 0 AS col0 FROM tab0 AS cor0
----
100
98
231
108
3888
96

skipif mysql # not compatible
query II rowsort label-9187
SELECT + CAST ( + col1 AS INTEGER ) - - col1 * - - col2 AS col1, col1 + col0 - 0 AS col0 FROM tab0 AS cor0
----
100
98
231
108
3888
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9188
SELECT + 47 - - + ( + MAX( ALL + - ( + CAST( - col0 AS SIGNED ) ) ) ) FROM tab1 AS cor0
----
138

skipif mysql # not compatible
query I rowsort label-9188
SELECT + 47 - - + ( + MAX ( ALL + - ( + CAST ( - col0 AS INTEGER ) ) ) ) FROM tab1 AS cor0
----
138

query I rowsort
SELECT DISTINCT + + col1 + + 60 + - - col2 FROM tab1 AS cor0
----
124
170
175

query I rowsort
SELECT - col2 AS col2 FROM tab1 AS cor0 WHERE 7 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9191
SELECT + SUM( ALL col1 ) + - - 57 FROM tab1 AS cor0
----
123

skipif mysql # not compatible
query I rowsort label-9191
SELECT + SUM ( ALL col1 ) + - - 57 FROM tab1 AS cor0
----
123

query I rowsort
SELECT ALL col0 * 70 - + + 55 FROM tab1
----
3515
5895
6315

query I rowsort
SELECT ALL 21 - + col0 FROM tab0
----
-66
-76
6

query I rowsort
SELECT DISTINCT col2 - 83 AS col1 FROM tab0
----
-36
-73
16

query I rowsort
SELECT + 27 + - - col1 AS col2 FROM tab1
----
32
41
74

onlyif mysql # aggregate syntax: 
query I rowsort label-9196
SELECT DISTINCT + ( - ( + COUNT( * ) ) ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9196
SELECT DISTINCT + ( - ( + COUNT ( * ) ) ) AS col2 FROM tab1
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-9197
SELECT + - col2 DIV + 8 - 16 AS col0 FROM tab0 AS cor0
----
-17
-21
-28

skipif mysql # not compatible
query I rowsort label-9197
SELECT + - col2 / + 8 - 16 AS col0 FROM tab0 AS cor0
----
-17
-21
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-9198
SELECT ALL + COUNT( DISTINCT - col0 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9198
SELECT ALL + COUNT ( DISTINCT - col0 ) AS col1 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9199
SELECT DISTINCT - SUM( ALL + + col1 ) FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-9199
SELECT DISTINCT - SUM ( ALL + + col1 ) FROM tab2
----
-195

query I rowsort
SELECT + 47 * + col2 AS col0 FROM tab0
----
2209
4653
470

query I rowsort
SELECT DISTINCT - - col0 * + ( + col2 ) FROM tab1 AS cor0
----
4896
5015
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-9202
SELECT + COUNT( * ) * + 86 * + - 67 AS col2 FROM tab1 cor0
----
-17286

skipif mysql # not compatible
query I rowsort label-9202
SELECT + COUNT ( * ) * + 86 * + - 67 AS col2 FROM tab1 cor0
----
-17286

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9203
SELECT - - CAST( + 41 AS DECIMAL ) FROM tab1 AS cor0 WHERE NOT - col1 / + - col1 <= + - col0 * + - 65 + + 59 * + col0 + col2
----

skipif mysql # not compatible
query I rowsort label-9203
SELECT - - CAST ( + 41 AS REAL ) FROM tab1 AS cor0 WHERE NOT - col1 / + - col1 <= + - col0 * + - 65 + + 59 * + col0 + col2
----

query I rowsort
SELECT ( + + 62 ) FROM tab0 AS cor0
----
62
62
62

query I rowsort
SELECT + - col1 * col0 / + col2 FROM tab0 AS cor0 WHERE NOT - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9206
SELECT 86 AS col2, + COUNT( * ) FROM tab1 cor0
----
86
3

skipif mysql # not compatible
query II rowsort label-9206
SELECT 86 AS col2, + COUNT ( * ) FROM tab1 cor0
----
86
3

query I rowsort
SELECT DISTINCT - + ( + - 9 ) AS col0 FROM tab2 AS cor0
----
9

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT + 74 IN ( col0 * - col1 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9209
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT + CAST( NULL AS SIGNED ) < + 82 - - col2 )
----

skipif mysql # not compatible
query III rowsort label-9209
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT + CAST ( NULL AS INTEGER ) < + 82 - - col2 )
----

query I rowsort
SELECT - col2 * ( - ( + col2 ) ) FROM tab1
----
3481
4624
9216

query I rowsort
SELECT + col1 * + - 49 FROM tab2
----
-2499
-3283
-3773

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9212
SELECT DISTINCT col2 * col2 / - - CAST( NULL AS SIGNED ) * + 6 / + ( + - 24 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9212
SELECT DISTINCT col2 * col2 / - - CAST ( NULL AS INTEGER ) * + 6 / + ( + - 24 ) FROM tab1
----
NULL

query I rowsort
SELECT 62 * - col0 * col1 FROM tab1
----
-26350
-265174
-44268

onlyif mysql # aggregate syntax: 
query I rowsort label-9214
SELECT DISTINCT + SUM( ALL col1 ) AS col2 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-9214
SELECT DISTINCT + SUM ( ALL col1 ) AS col2 FROM tab1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-9215
SELECT MAX( DISTINCT 96 ) FROM tab0 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-9215
SELECT MAX ( DISTINCT 96 ) FROM tab0 AS cor0
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9216
SELECT DISTINCT + + col1 * + col1 * - col2 FROM tab2 AS cor0 WHERE - col2 = - CAST( + - 36 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-9216
SELECT DISTINCT + + col1 * + col1 * - col2 FROM tab2 AS cor0 WHERE - col2 = - CAST ( + - 36 AS INTEGER )
----

query I rowsort
SELECT DISTINCT - col1 + + 21 AS col1 FROM tab1 cor0
----
-26
16
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9218
SELECT DISTINCT CAST( NULL AS SIGNED ) + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9218
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9219
SELECT ALL + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-9219
SELECT ALL + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-9220
SELECT ALL 34 DIV 2 + - 10 AS col2, + col1 FROM tab0 AS cor0
----
7
1
7
21
7
81

skipif mysql # not compatible
query II rowsort label-9220
SELECT ALL 34 / 2 + - 10 AS col2, + col1 FROM tab0 AS cor0
----
7
1
7
21
7
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9221
SELECT DISTINCT 34 + - 10 + - + ( - + COUNT( * ) ) AS col2 FROM tab1 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-9221
SELECT DISTINCT 34 + - 10 + - + ( - + COUNT ( * ) ) AS col2 FROM tab1 AS cor0
----
27

query I rowsort
SELECT ALL col1 + + col0 + - col0 AS col0 FROM tab2
----
51
67
77

query I rowsort
SELECT + 10 * - - col1 - + 64 * - col0 FROM tab1
----
3404
5490
6294

query I rowsort
SELECT DISTINCT col0 + - 77 FROM tab2
----
-13
-2
-31

query I rowsort
SELECT ALL col2 - + - 64 FROM tab0
----
111
163
74

query II rowsort
SELECT DISTINCT - 94, col2 * - 20 AS col0 FROM tab0
----
-94
-1980
-94
-200
-94
-940

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 21 * + ( - col0 ) * + 65 + - col1 IS NOT NULL AND col2 * - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9228
SELECT + 84 - + COUNT( * ) FROM tab1
----
81

skipif mysql # not compatible
query I rowsort label-9228
SELECT + 84 - + COUNT ( * ) FROM tab1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9229
SELECT ALL - MAX( + col0 ) AS col2 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-9229
SELECT ALL - MAX ( + col0 ) AS col2 FROM tab2
----
-75

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col1 NOT IN ( 50 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9231
SELECT COUNT( * ) * + 76, + 21 AS col1 FROM tab0
----
228
21

skipif mysql # not compatible
query II rowsort label-9231
SELECT COUNT ( * ) * + 76, + 21 AS col1 FROM tab0
----
228
21

onlyif mysql # aggregate syntax: 
query II rowsort label-9232
SELECT ( COUNT( * ) ) AS col0, - 9 col2 FROM tab2 AS cor0
----
3
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9232
SELECT ( COUNT ( * ) ) AS col0, - 9 col2 FROM tab2 AS cor0
----
3
-9

query I rowsort
SELECT + + 51 FROM tab2 AS cor0 WHERE NOT col1 NOT BETWEEN - ( - + 23 ) * + - ( col2 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9234
SELECT - SUM( DISTINCT - 63 ) AS col0 FROM tab1 cor0
----
63

skipif mysql # not compatible
query I rowsort label-9234
SELECT - SUM ( DISTINCT - 63 ) AS col0 FROM tab1 cor0
----
63

query I rowsort
SELECT ALL + col0 * col2 * + col0 * col0 FROM tab1 AS cor0
----
12734496
36233375
51242828

query I rowsort
SELECT + - 7 * - 88 * 11 + + - col1 + - + col1 * + col1 AS col2 FROM tab0 cor0
----
134
6314
6774

onlyif mysql # aggregate syntax: 
query I rowsort label-9237
SELECT + COUNT( * ) * + + ( COUNT( * ) ) AS col2 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-9237
SELECT + COUNT ( * ) * + + ( COUNT ( * ) ) AS col2 FROM tab2
----
9

query I rowsort
SELECT - col1 * + 67 FROM tab1
----
-3149
-335
-938

onlyif mysql # DIV for integer division: 
query I rowsort label-9239
SELECT 34 DIV - 27 AS col1 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9239
SELECT 34 / - 27 AS col1 FROM tab1
----
-1
-1
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9240
SELECT - COUNT( * ) * - ( + CAST( NULL AS SIGNED ) ) / - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9240
SELECT - COUNT ( * ) * - ( + CAST ( NULL AS INTEGER ) ) / - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9241
SELECT DISTINCT + 42 AS col1, + COUNT( * ) DIV 28 AS col1 FROM tab1
----
42
0

skipif mysql # not compatible
query II rowsort label-9241
SELECT DISTINCT + 42 AS col1, + COUNT ( * ) / 28 AS col1 FROM tab1
----
42
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9242
SELECT - COUNT( * ) * - MAX( + 14 ) AS col2 FROM tab1
----
42

skipif mysql # not compatible
query I rowsort label-9242
SELECT - COUNT ( * ) * - MAX ( + 14 ) AS col2 FROM tab1
----
42

query I rowsort
SELECT col1 + - 43 / - ( + - 92 ) + - col1 AS col1 FROM tab0 WHERE NOT ( NULL IS NULL )
----

query I rowsort
SELECT ALL col0 * - 18 FROM tab2
----
-1152
-1350
-828

onlyif mysql # aggregate syntax: 
query I rowsort label-9245
SELECT - COUNT( * ) + + + COUNT( * ) AS col2 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-9245
SELECT - COUNT ( * ) + + + COUNT ( * ) AS col2 FROM tab0 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9246
SELECT + COUNT( * ) + + 12 FROM tab2 cor0
----
15

skipif mysql # not compatible
query I rowsort label-9246
SELECT + COUNT ( * ) + + 12 FROM tab2 cor0
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9247
SELECT + 87 + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9247
SELECT + 87 + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 36 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 77 + col2 AS col0 FROM tab1 cor0
----
136
145
173

query I rowsort
SELECT - col0 - - col0 * 81 + - + 40 + col0 + col0 FROM tab2 AS cor0
----
3732
5208
6110

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9251
SELECT - 75 AS col2 FROM tab0 AS cor0 WHERE ( CAST( - col0 AS SIGNED ) + - ( - col2 ) / col0 IS NOT NULL )
----
-75
-75
-75

skipif mysql # not compatible
query I rowsort label-9251
SELECT - 75 AS col2 FROM tab0 AS cor0 WHERE ( CAST ( - col0 AS INTEGER ) + - ( - col2 ) / col0 IS NOT NULL )
----
-75
-75
-75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9252
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) < - col1
----

skipif mysql # not compatible
query III rowsort label-9252
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) < - col1
----

query I rowsort
SELECT + col1 * + col2 + - - 16 - - + 31 AS col1 FROM tab0 AS cor0
----
146
257
3854

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9254
SELECT - col2 + - - col0 / + CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9254
SELECT - col2 + - - col0 / + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * col2 + - 12 col0 FROM tab0 AS cor0
----
-717
-882
-9615

query I rowsort
SELECT DISTINCT + + ( - 71 ) FROM tab1 AS cor0
----
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9257
SELECT + 83 + + + 80 + col2 + + col0 * - - CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9257
SELECT + 83 + + + 80 + col2 + + col0 * - - CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - col0 FROM tab2 AS cor0 WHERE ( + 32 BETWEEN NULL AND + 97 )
----

query I rowsort
SELECT + - col1 + - 94 + + 59 FROM tab2 AS cor0
----
-102
-112
-86

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( NULL ) = col0 - col2 * + col1
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9261
SELECT DISTINCT col0 - - 28 * + - col0 AS col2, col0 + + col0 DIV + CAST( - - col2 AS SIGNED ) col1 FROM tab1
----
-1377
51
-2295
86
-2457
92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9261
SELECT DISTINCT col0 - - 28 * + - col0 AS col2, col0 + + col0 / + CAST ( - - col2 AS INTEGER ) col1 FROM tab1
----
-1377
51
-2295
86
-2457
92

query III rowsort
SELECT ALL * FROM tab0 WHERE + col1 BETWEEN col2 + + + 99 AND + col0 * - 47
----

query II rowsort
SELECT ALL + col0 - + + 42 + + col1 * - + 45 * + + col0, + col0 FROM tab0
----
-4310
97
-54702
15
-82170
87

query III rowsort
SELECT * FROM tab2 WHERE - col0 >= - + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL >= col2 + + 54 - col1
----

query II rowsort
SELECT ALL col2 AS col2, - col2 AS col0 FROM tab2
----
23
-23
40
-40
58
-58

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + ( + - col0 ) <= + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9268
SELECT - + MAX( DISTINCT col0 ) AS col2 FROM tab2 WHERE NOT 71 BETWEEN col1 AND + + col0
----
-64

skipif mysql # not compatible
query I rowsort label-9268
SELECT - + MAX ( DISTINCT col0 ) AS col2 FROM tab2 WHERE NOT 71 BETWEEN col1 AND + + col0
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-9269
SELECT 91 * - COUNT( * ) * - COUNT( * ) AS col0 FROM tab1
----
819

skipif mysql # not compatible
query I rowsort label-9269
SELECT 91 * - COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab1
----
819

query II rowsort
SELECT + - col2 AS col1, col1 + - col0 AS col2 FROM tab2 AS cor0
----
-23
5
-40
13
-58
-8

query II rowsort
SELECT ALL + 13 AS col2, - ( - col0 ) FROM tab0 AS cor0
----
13
15
13
87
13
97

query II rowsort
SELECT DISTINCT 41 AS col1, 24 * - col0 * - 50 FROM tab1 AS cor0
----
41
102000
41
109200
41
61200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9273
SELECT ALL - CAST( + + col0 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-9273
SELECT ALL - CAST ( + + col0 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-15
-87
-97

query I rowsort
SELECT DISTINCT + - col1 + + + 80 AS col2 FROM tab2 AS cor0
----
13
29
3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9275
SELECT DISTINCT - col1 + + - col1 + + col1 + - + col2 + col1 DIV col2 + - col1 + - CAST( + col1 AS SIGNED ) AS col1 FROM tab2 cor0
----
-174
-258
-270

skipif mysql # not compatible
query I rowsort label-9275
SELECT DISTINCT - col1 + + - col1 + + col1 + - + col2 + col1 / col2 + - col1 + - CAST ( + col1 AS INTEGER ) AS col1 FROM tab2 cor0
----
-174
-258
-270

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col1 * - - 35 * + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9277
SELECT - 8 DIV + CAST( - col0 AS SIGNED ) FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9277
SELECT - 8 / + CAST ( - col0 AS INTEGER ) FROM tab2
----
0
0
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col0 * + col0 + - + col2 + - 52 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 92 + - - col2 FROM tab2
----
115
132
150

query I rowsort
SELECT DISTINCT 18 * + + 58 * 22 FROM tab1
----
22968

query II rowsort
SELECT col2 * + - col2 AS col0, + col0 AS col1 FROM tab2
----
-1600
64
-3364
75
-529
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9282
SELECT DISTINCT - col1 * - - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9282
SELECT DISTINCT - col1 * - - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT - 6 * + 62 * + + col1 AS col1 FROM tab1
----
-17484
-1860
-5208

query I rowsort
SELECT ALL ( 14 ) * - - col2 FROM tab1
----
1344
826
952

query I rowsort
SELECT DISTINCT - col0 * - - col2 * + col0 FROM tab1
----
-249696
-426275
-563108

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 47 * - col2 col1 FROM tab2
----
-1081
-1880
-2726

query III rowsort
SELECT * FROM tab2 WHERE + + 38 IS NULL
----

query I rowsort
SELECT ALL + 81 AS col2 FROM tab0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9289
SELECT ALL - col2 DIV + col0 + + 10 FROM tab2 AS cor0
----
10
10
10

skipif mysql # not compatible
query I rowsort label-9289
SELECT ALL - col2 / + col0 + + 10 FROM tab2 AS cor0
----
10
10
10

query I rowsort
SELECT + 52 * - col0 + col2 + - col1 * - col1 + col0 AS col2 FROM tab1
----
-2309
-2364
-4251

query I rowsort
SELECT ALL col0 * 41 FROM tab2
----
1886
2624
3075

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9292
SELECT DISTINCT - 41 + + col1 FROM tab2 WHERE NULL <= col0 * - ( + col0 ) * - 90 * - 79 + - CAST( NULL AS SIGNED ) * - col1 / - + 14 + + col0
----

skipif mysql # not compatible
query I rowsort label-9292
SELECT DISTINCT - 41 + + col1 FROM tab2 WHERE NULL <= col0 * - ( + col0 ) * - 90 * - 79 + - CAST ( NULL AS INTEGER ) * - col1 / - + 14 + + col0
----

query II rowsort
SELECT DISTINCT 60, + col2 AS col2 FROM tab1
----
60
59
60
68
60
96

query I rowsort
SELECT - col1 * + col0 * + 54 AS col1 FROM tab1
----
-22950
-230958
-38556

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9295
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND 83 * - + 20 * - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9295
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND 83 * - + 20 * - CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9296
SELECT + col1 * - 59 / - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9296
SELECT + col1 * - 59 / - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9297
SELECT ALL + + 86 * CAST( + 47 AS SIGNED ) + - COUNT( * ) + COUNT( * ) FROM tab0 AS cor0
----
4042

skipif mysql # not compatible
query I rowsort label-9297
SELECT ALL + + 86 * CAST ( + 47 AS INTEGER ) + - COUNT ( * ) + COUNT ( * ) FROM tab0 AS cor0
----
4042

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9298
SELECT ALL 64 DIV + MIN( ALL ( 54 ) ) AS col2 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-9298
SELECT ALL 64 / + MIN ( ALL ( 54 ) ) AS col2 FROM tab2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9299
SELECT ALL - ( COUNT( * ) ) DIV MIN( col1 ) * + + 63 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9299
SELECT ALL - ( COUNT ( * ) ) / MIN ( col1 ) * + + 63 FROM tab1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9300
SELECT ALL - 59 DIV COUNT( * ) DIV - MAX( ALL + col2 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9300
SELECT ALL - 59 / COUNT ( * ) / - MAX ( ALL + col2 ) FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9301
SELECT DISTINCT CAST( + 12 AS SIGNED ) - 54 FROM tab0 WHERE 33 BETWEEN NULL AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-9301
SELECT DISTINCT CAST ( + 12 AS INTEGER ) - 54 FROM tab0 WHERE 33 BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT ( 69 ) AS col0 FROM tab1
----
69
69
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 94 col1 FROM tab2
----
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-9304
SELECT ALL + col1 DIV + ( 56 ) FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-9304
SELECT ALL + col1 / + ( 56 ) FROM tab2
----
0
1
1

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col2 AND - - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9306
SELECT 10 DIV + col0 - - + col0 FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-9306
SELECT 10 / + col0 - - + col0 FROM tab0 AS cor0
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9307
SELECT col1 * - ( - CAST( NULL AS SIGNED ) ) * 44 * + - 94 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9307
SELECT col1 * - ( - CAST ( NULL AS INTEGER ) ) * 44 * + - 94 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT AVG ( - col1 ) AS col2 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9309
SELECT ALL + MAX( DISTINCT + 13 ) col2 FROM tab2 AS cor0
----
13

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9309
SELECT ALL + MAX ( DISTINCT + 13 ) col2 FROM tab2 AS cor0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-9310
SELECT DISTINCT + COUNT( * ) FROM tab1 AS cor0 WHERE - col2 + - 16 * - + 80 + 57 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-9310
SELECT DISTINCT + COUNT ( * ) FROM tab1 AS cor0 WHERE - col2 + - 16 * - + 80 + 57 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9311
SELECT - COUNT( * ) + 29 FROM tab2 AS cor0 WHERE col1 = NULL
----
29

skipif mysql # not compatible
query I rowsort label-9311
SELECT - COUNT ( * ) + 29 FROM tab2 AS cor0 WHERE col1 = NULL
----
29

query I rowsort
SELECT DISTINCT col2 + col1 + + - ( + + ( - - col1 ) ) * - - 87 FROM tab1 AS cor0
----
-1108
-371
-3974

query I rowsort
SELECT ALL col2 FROM tab2 cor0 WHERE ( NULL IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9314
SELECT - COUNT( * ) * + COUNT( DISTINCT - col1 ) AS col1 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9314
SELECT - COUNT ( * ) * + COUNT ( DISTINCT - col1 ) AS col1 FROM tab2 AS cor0
----
-9

query I rowsort
SELECT ALL col0 + - 53 * + + col2 AS col2 FROM tab1
----
-3042
-3513
-5037

query I rowsort
SELECT col0 + - 30 * + col2 FROM tab2
----
-1136
-1665
-644

onlyif mysql # aggregate syntax: 
query I rowsort label-9317
SELECT + COUNT( * ) * 62 + - 23 AS col2 FROM tab2
----
163

skipif mysql # not compatible
query I rowsort label-9317
SELECT + COUNT ( * ) * 62 + - 23 AS col2 FROM tab2
----
163

query I rowsort
SELECT 98 + - col1 + - col2 FROM tab0
----
-2
-30
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9319
SELECT DISTINCT - COUNT( ALL - ( - - col2 ) ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9319
SELECT DISTINCT - COUNT ( ALL - ( - - col2 ) ) FROM tab1
----
-3

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 60 - + + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9321
SELECT - col1 DIV CAST( 68 AS SIGNED ) + + + ( - + 80 ) AS col2 FROM tab0
----
-80
-80
-81

skipif mysql # not compatible
query I rowsort label-9321
SELECT - col1 / CAST ( 68 AS INTEGER ) + + + ( - + 80 ) AS col2 FROM tab0
----
-80
-80
-81

query I rowsort
SELECT ALL + - ( - col2 ) AS col0 FROM tab0 cor0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9323
SELECT - MIN( + col0 ) * + - COUNT( ALL ( - ( - 23 ) ) ) AS col1 FROM tab0 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-9323
SELECT - MIN ( + col0 ) * + - COUNT ( ALL ( - ( - 23 ) ) ) AS col1 FROM tab0 AS cor0
----
45

onlyif mysql # aggregate syntax: 
query II rowsort label-9324
SELECT - 54 AS col2, - COUNT( * ) * 46 FROM tab2 AS cor0
----
-54
-138

skipif mysql # not compatible
query II rowsort label-9324
SELECT - 54 AS col2, - COUNT ( * ) * 46 FROM tab2 AS cor0
----
-54
-138

query I rowsort
SELECT DISTINCT + + 8 AS col0 FROM tab1 cor0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9326
SELECT DISTINCT COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9

skipif mysql # not compatible
query I rowsort label-9326
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 col2 FROM tab1 WHERE + col0 * 86 IS NOT NULL
----
59
68
96

query I rowsort
SELECT DISTINCT 38 / col0 * - col1 FROM tab0 AS cor0 WHERE NOT - col1 IS NOT NULL
----

query I rowsort
SELECT col2 * - ( + 33 ) AS col1 FROM tab1 AS cor0
----
-1947
-2244
-3168

onlyif mysql # aggregate syntax: 
query I rowsort label-9330
SELECT - 77 * 54 - + MAX( + col1 ) FROM tab0 AS cor0
----
-4239

skipif mysql # not compatible
query I rowsort label-9330
SELECT - 77 * 54 - + MAX ( + col1 ) FROM tab0 AS cor0
----
-4239

onlyif mysql # aggregate syntax: 
query I rowsort label-9331
SELECT + COUNT( * ) * - 44 - COUNT( * ) FROM tab1 AS cor0
----
-135

skipif mysql # not compatible
query I rowsort label-9331
SELECT + COUNT ( * ) * - 44 - COUNT ( * ) FROM tab1 AS cor0
----
-135

query I rowsort
SELECT DISTINCT - - col0 * - + 2 * 1 FROM tab2 AS cor0
----
-128
-150
-92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT + col0 * col1, 4 AS col1, + 79 col2 FROM tab1 AS cor0
----
9 values hashing to 2b5350d753efd73b3b1a1e9da08ee99a

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 64 * - ( + 55 ) IN ( col1, 2, + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT col2, + col0 AS col2 FROM tab0
----
10
87
47
15
99
97

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col0 * - + 20 IS NULL
----

query II rowsort
SELECT DISTINCT col2, col2 * + col0 * col2 FROM tab1
----
59
295885
68
420784
96
470016

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col0 - + - col1 <> ( - - 41 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9339
SELECT + MIN( ALL - 94 ) FROM tab2
----
-94

skipif mysql # not compatible
query I rowsort label-9339
SELECT + MIN ( ALL - 94 ) FROM tab2
----
-94

query I rowsort
SELECT + col1 * col1 - - 57 FROM tab0 AS cor0
----
498
58
6618

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE ( NOT - + 68 <= - - 21 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9342
SELECT - COUNT( DISTINCT col1 ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9342
SELECT - COUNT ( DISTINCT col1 ) AS col0 FROM tab2 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-9343
SELECT DISTINCT col2 * 46 + 15 DIV + - col0 FROM tab0 AS cor0
----
2161
4554
460

skipif mysql # not compatible
query I rowsort label-9343
SELECT DISTINCT col2 * 46 + 15 / + - col0 FROM tab0 AS cor0
----
2161
4554
460

query I rowsort
SELECT ALL - + 64 + - ( col2 ) FROM tab0 AS cor0
----
-111
-163
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-9345
SELECT ALL + MIN( + + col1 ) col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9345
SELECT ALL + MIN ( + + col1 ) col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT - 73 + col0 AS col1 FROM tab1 AS cor0
----
-22
12
18

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL IS NOT NULL AND NOT col1 IS NOT NULL
----

query I rowsort
SELECT ALL + col2 + + 38 - - col1 AS col2 FROM tab1 AS cor0
----
102
148
153

query I rowsort
SELECT ALL + - 65 + 18 AS col1 FROM tab2 cor0
----
-47
-47
-47

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 49 * + - col1 - col2 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9351
SELECT 98 AS col1, COUNT( * ) DIV + 9 AS col0 FROM tab1
----
98
0

skipif mysql # not compatible
query II rowsort label-9351
SELECT 98 AS col1, COUNT ( * ) / + 9 AS col0 FROM tab1
----
98
0

query II rowsort
SELECT DISTINCT + col0, 42 AS col2 FROM tab0
----
15
42
87
42
97
42

onlyif mysql # aggregate syntax: 
query I rowsort label-9353
SELECT ALL - COUNT( ALL + 6 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-9353
SELECT ALL - COUNT ( ALL + 6 ) FROM tab2
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9354
SELECT DISTINCT - col2 + + ( - + CAST( + - 47 AS SIGNED ) ) AS col2 FROM tab1
----
-12
-21
-49

skipif mysql # not compatible
query I rowsort label-9354
SELECT DISTINCT - col2 + + ( - + CAST ( + - 47 AS INTEGER ) ) AS col2 FROM tab1
----
-12
-21
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-9355
SELECT - COUNT( * ) - 10 FROM tab0
----
-13

skipif mysql # not compatible
query I rowsort label-9355
SELECT - COUNT ( * ) - 10 FROM tab0
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9356
SELECT + CAST( NULL AS SIGNED ) + + + 31 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-9356
SELECT + CAST ( NULL AS INTEGER ) + + + 31 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 62 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to f0e93f6ff5fc3cf50a14e276206dad5c

query I rowsort
SELECT DISTINCT 86 - + col0 FROM tab2
----
11
22
40

query I rowsort
SELECT DISTINCT + 60 + + + 64 * col2 AS col1 FROM tab2
----
1532
2620
3772

onlyif mysql # aggregate syntax: 
query I rowsort label-9360
SELECT + 46 * - MAX( DISTINCT - 69 ) AS col2 FROM tab1 AS cor0
----
3174

skipif mysql # not compatible
query I rowsort label-9360
SELECT + 46 * - MAX ( DISTINCT - 69 ) AS col2 FROM tab1 AS cor0
----
3174

query I rowsort
SELECT - + 48 AS col1 FROM tab0 AS cor0 WHERE NOT 26 IS NULL
----
-48
-48
-48

query I rowsort
SELECT DISTINCT 16 * - 96 * + + col2 FROM tab0 AS cor0
----
-152064
-15360
-72192

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 / - col2 BETWEEN - col2 * + + col2 AND + 77 - col1 - + + ( - - col1 )
----
91
47
68

query I rowsort
SELECT ALL - ( - - ( + col1 ) ) AS col1 FROM tab0 cor0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9365
SELECT 17 * + + SUM( DISTINCT + col1 ) AS col1 FROM tab2 AS cor0
----
3315

skipif mysql # not compatible
query I rowsort label-9365
SELECT 17 * + + SUM ( DISTINCT + col1 ) AS col1 FROM tab2 AS cor0
----
3315

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9366
SELECT CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT ( - 7 IS NOT NULL )
----

skipif mysql # not compatible
query I rowsort label-9366
SELECT CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT ( - 7 IS NOT NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9367
SELECT ALL + col2 DIV 95 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9367
SELECT ALL + col2 / 95 AS col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9368
SELECT DISTINCT - COUNT( - 9 ) AS col0 FROM tab1 AS cor0 WHERE col1 NOT IN ( col0, col1 * + + col0, - - col2 / - ( + + 43 ) )
----
-3

skipif mysql # not compatible
query I rowsort label-9368
SELECT DISTINCT - COUNT ( - 9 ) AS col0 FROM tab1 AS cor0 WHERE col1 NOT IN ( col0, col1 * + + col0, - - col2 / - ( + + 43 ) )
----
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 80 + + col0 / - col0 * + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 35 col2 FROM tab1
----
35
35
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9371
SELECT ALL + - CAST( NULL AS SIGNED ) AS col0 FROM tab1 WHERE NOT CAST( col1 AS SIGNED ) + ( + 48 ) * - 70 + - col1 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9371
SELECT ALL + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 WHERE NOT CAST ( col1 AS INTEGER ) + ( + 48 ) * - 70 + - col1 IS NULL
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9372
SELECT - col1 DIV col2 * + - ( col1 ) col2 FROM tab2
----
102
67
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9372
SELECT - col1 / col2 * + - ( col1 ) col2 FROM tab2
----
102
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9373
SELECT - SUM( DISTINCT - ( + + 1 ) ) AS col2 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-9373
SELECT - SUM ( DISTINCT - ( + + 1 ) ) AS col2 FROM tab1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9374
SELECT DISTINCT MIN( ALL + 7 ) FROM tab0
----
7

skipif mysql # not compatible
query I rowsort label-9374
SELECT DISTINCT MIN ( ALL + 7 ) FROM tab0
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9375
SELECT DISTINCT CAST( NULL AS SIGNED ) * 96 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9375
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 96 AS col0 FROM tab2
----
NULL

query I rowsort
SELECT ALL 5 * 89 * col1 FROM tab1
----
20915
2225
6230

onlyif mysql # aggregate syntax: 
query I rowsort label-9377
SELECT - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT - 59 NOT BETWEEN NULL AND 63 - + col2
----
0

skipif mysql # not compatible
query I rowsort label-9377
SELECT - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT - 59 NOT BETWEEN NULL AND 63 - + col2
----
0

query I rowsort
SELECT ALL + ( - col2 ) * 80 * col0 + ( - - col2 ) FROM tab0 AS cor0
----
-56353
-69590
-768141

onlyif mysql # aggregate syntax: 
query I rowsort label-9379
SELECT + MIN( - 57 ) FROM tab1 AS cor0 WHERE NOT NULL BETWEEN 74 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9379
SELECT + MIN ( - 57 ) FROM tab1 AS cor0 WHERE NOT NULL BETWEEN 74 AND NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 67 + + col2, col1 col1 FROM tab1 AS cor0
----
-8
5
1
47
29
14

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 4 + col1 / - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - col2 AS col0, col2 FROM tab1
----
-59
59
-68
68
-96
96

query I rowsort
SELECT ALL - 54 FROM tab2, tab2 AS cor0
----
9 values hashing to 4ecdb0f1b85f0d4fdc3a826efd9f2342

query I rowsort
SELECT + 69 * + - 23 AS col1 FROM tab0
----
-1587
-1587
-1587

onlyif mysql # aggregate syntax: 
query I rowsort label-9385
SELECT DISTINCT COUNT( * ) + - - COUNT( * ) FROM tab1 cor0
----
6

skipif mysql # not compatible
query I rowsort label-9385
SELECT DISTINCT COUNT ( * ) + - - COUNT ( * ) FROM tab1 cor0
----
6

query I rowsort
SELECT DISTINCT + 1 * + col2 AS col0 FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT ALL + - ( + + ( - 93 ) ) * - ( - - col0 ) + col0 AS col1 FROM tab1 AS cor0
----
-4692
-7820
-8372

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col1 <> col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9389
SELECT ALL + COUNT( ALL + col2 ) + + - MIN( DISTINCT + + CAST( NULL AS SIGNED ) ) * - MAX( - + CAST( + CAST( - ( + col0 ) AS SIGNED ) AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9389
SELECT ALL + COUNT ( ALL + col2 ) + + - MIN ( DISTINCT + + CAST ( NULL AS INTEGER ) ) * - MAX ( - + CAST ( + CAST ( - ( + col0 ) AS INTEGER ) AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9390
SELECT - - 43 + CAST( + + 68 AS SIGNED ) DIV - + col1 AS col1 FROM tab1 AS cor0
----
30
39
42

skipif mysql # not compatible
query I rowsort label-9390
SELECT - - 43 + CAST ( + + 68 AS INTEGER ) / - + col1 AS col1 FROM tab1 AS cor0
----
30
39
42

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9391
SELECT DISTINCT * FROM tab1 cor0 WHERE - ( + col0 ) + - CAST( - + 18 AS SIGNED ) BETWEEN + col1 AND NULL
----

skipif mysql # not compatible
query III rowsort label-9391
SELECT DISTINCT * FROM tab1 cor0 WHERE - ( + col0 ) + - CAST ( - + 18 AS INTEGER ) BETWEEN + col1 AND NULL
----

query I rowsort
SELECT DISTINCT - 63 + + 93 AS col1 FROM tab2 AS cor0
----
30

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 49 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-9394
SELECT ALL + col1 + - col0 DIV + col2 AS col2 FROM tab2 AS cor0
----
49
66
76

skipif mysql # not compatible
query I rowsort label-9394
SELECT ALL + col1 + - col0 / + col2 AS col2 FROM tab2 AS cor0
----
49
66
76

query I rowsort
SELECT ALL - ( col1 ) * 24 - col1 AS col0 FROM tab0 WHERE NULL IS NULL
----
-2025
-25
-525

onlyif mysql # aggregate syntax: 
query I rowsort label-9396
SELECT DISTINCT + SUM( + 23 ) FROM tab1
----
69

skipif mysql # not compatible
query I rowsort label-9396
SELECT DISTINCT + SUM ( + 23 ) FROM tab1
----
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 - + col0, col0 col2 FROM tab1
----
0
51
0
85
0
91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9398
SELECT DISTINCT * FROM tab0 WHERE NOT + col2 * + - col0 / - col1 = ( - col2 + + - CAST( NULL AS SIGNED ) / + - col2 )
----

skipif mysql # not compatible
query III rowsort label-9398
SELECT DISTINCT * FROM tab0 WHERE NOT + col2 * + - col0 / - col1 = ( - col2 + + - CAST ( NULL AS INTEGER ) / + - col2 )
----

query II rowsort
SELECT 83 * + col2 AS col1, + col1 AS col1 FROM tab2 AS cor0
----
1909
51
3320
77
4814
67

onlyif mysql # DIV for integer division: 
query I rowsort label-9400
SELECT DISTINCT + 38 DIV col0 + ( col2 ) FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-9400
SELECT DISTINCT + 38 / col0 + ( col2 ) FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT 18 * - 35 FROM tab2 AS cor0
----
-630
-630
-630

query I rowsort
SELECT 7 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9403
SELECT CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9403
SELECT CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9404
SELECT ALL + COUNT( col2 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9404
SELECT ALL + COUNT ( col2 ) FROM tab1
----
3

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL > + col0 - ( col0 ) / col1 - col2 + - + 76
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9406
SELECT + + SUM( - 96 ) AS col1 FROM tab0 AS cor0
----
-288

skipif mysql # not compatible
query I rowsort label-9406
SELECT + + SUM ( - 96 ) AS col1 FROM tab0 AS cor0
----
-288

query II rowsort
SELECT - + col1 AS col1, + col2 AS col0 FROM tab2 AS cor0
----
-51
23
-67
58
-77
40

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL <> 45 + + 61
----

query I rowsort
SELECT ALL - + 98 AS col1 FROM tab0 AS cor0
----
-98
-98
-98

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9410
SELECT ALL + - 35 * - - 26 * - CAST( + 39 AS SIGNED ) AS col0, col2 col0 FROM tab2 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9410
SELECT ALL + - 35 * - - 26 * - CAST ( + 39 AS INTEGER ) AS col0, col2 col0 FROM tab2 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT 73 AS col0, col0 FROM tab2
----
73
46
73
64
73
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9412
SELECT ALL - MIN( DISTINCT - col0 ) * - - 88 AS col2 FROM tab2
----
6600

skipif mysql # not compatible
query I rowsort label-9412
SELECT ALL - MIN ( DISTINCT - col0 ) * - - 88 AS col2 FROM tab2
----
6600

query II rowsort
SELECT 66 AS col0, col1 AS col2 FROM tab0
----
66
1
66
21
66
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9414
SELECT ALL + + SUM( DISTINCT - 63 ) FROM tab2 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-9414
SELECT ALL + + SUM ( DISTINCT - 63 ) FROM tab2 AS cor0
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-9415
SELECT DISTINCT COUNT( * ) + - + COUNT( * ) col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9415
SELECT DISTINCT COUNT ( * ) + - + COUNT ( * ) col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT - + 17 FROM tab2 AS cor0 WHERE + col0 = + col2 - + - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 20 * 24 col1, col1 AS col1 FROM tab0
----
480
1
480
21
480
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9418
SELECT - 86 + ( COUNT( ALL - - col2 ) ) FROM tab0
----
-83

skipif mysql # not compatible
query I rowsort label-9418
SELECT - 86 + ( COUNT ( ALL - - col2 ) ) FROM tab0
----
-83

query I rowsort
SELECT 42 + + ( - + ( + 85 ) ) + + - col0 FROM tab2
----
-107
-118
-89

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9420
SELECT ALL - + CAST( NULL AS DECIMAL ) + + col0 * - 30 + - 32 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9420
SELECT ALL - + CAST ( NULL AS REAL ) + + col0 * - 30 + - 32 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9421
SELECT ( - ( COUNT( * ) ) ) DIV - 4 col2 FROM tab0 AS cor0 WHERE ( ( NULL ) > NULL )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9421
SELECT ( - ( COUNT ( * ) ) ) / - 4 col2 FROM tab0 AS cor0 WHERE ( ( NULL ) > NULL )
----
0

query I rowsort
SELECT DISTINCT - col1 + - 2 FROM tab1 AS cor0
----
-16
-49
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-9423
SELECT DISTINCT - SUM( ALL col1 ) AS col0 FROM tab2 cor0 WHERE NOT + col2 - + col1 + - col0 + - - col2 + + ( + col1 ) / + 24 * + - 60 > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9423
SELECT DISTINCT - SUM ( ALL col1 ) AS col0 FROM tab2 cor0 WHERE NOT + col2 - + col1 + - col0 + - - col2 + + ( + col1 ) / + 24 * + - 60 > NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9424
SELECT DISTINCT 89 + - col1 + + - col1 + + + col2 + - col0 * 39 + col0 DIV + + col0 AS col0 FROM tab0 AS cor0
----
-3335
-3596
-610

skipif mysql # not compatible
query I rowsort label-9424
SELECT DISTINCT 89 + - col1 + + - col1 + + + col2 + - col0 * 39 + col0 / + + col0 AS col0 FROM tab0 AS cor0
----
-3335
-3596
-610

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col0 ) * + col2 col1 FROM tab0
----
705
870
9603

query I rowsort
SELECT ALL - 15 - - 29 AS col1 FROM tab0
----
14
14
14

onlyif mysql # DIV for integer division: 
query I rowsort label-9427
SELECT DISTINCT 33 DIV + + 5 AS col1 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-9427
SELECT DISTINCT 33 / + + 5 AS col1 FROM tab0
----
6

query I rowsort
SELECT - ( - 14 ) - + + ( - col1 ) AS col0 FROM tab1
----
19
28
61

onlyif mysql # aggregate syntax: 
query I rowsort label-9429
SELECT - 20 - - SUM( + 2 ) * 68 FROM tab0
----
388

skipif mysql # not compatible
query I rowsort label-9429
SELECT - 20 - - SUM ( + 2 ) * 68 FROM tab0
----
388

query I rowsort
SELECT col2 - ( + 60 ) AS col1 FROM tab2
----
-2
-20
-37

query III rowsort
SELECT * FROM tab2 WHERE - col0 + ( - col2 ) = - + col1
----

query I rowsort
SELECT 59 - 87 FROM tab2
----
-28
-28
-28

query I rowsort
SELECT + col2 - + - 89 FROM tab1
----
148
157
185

query II rowsort
SELECT DISTINCT col2 - col0 * + - 30, col0 + + - col0 AS col1 FROM tab1
----
1626
0
2609
0
2798
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9435
SELECT ALL COUNT( * ) DIV + COUNT( * ) AS col1 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9435
SELECT ALL COUNT ( * ) / + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
1

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 24 IS NULL AND NOT - 99 * - col2 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9437
SELECT DISTINCT - 92 * + SUM( + col0 ) AS col0 FROM tab0
----
-18308

skipif mysql # not compatible
query I rowsort label-9437
SELECT DISTINCT - 92 * + SUM ( + col0 ) AS col0 FROM tab0
----
-18308

onlyif mysql # aggregate syntax: 
query I rowsort label-9438
SELECT DISTINCT - 42 * COUNT( * ) FROM tab2
----
-126

skipif mysql # not compatible
query I rowsort label-9438
SELECT DISTINCT - 42 * COUNT ( * ) FROM tab2
----
-126

query I rowsort
SELECT - + 44 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 07457d9e571e036a9a3a0f5a5a2e1ef2

onlyif mysql # aggregate syntax: 
query I rowsort label-9440
SELECT - SUM( ALL + ( - col2 ) ) FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-9440
SELECT - SUM ( ALL + ( - col2 ) ) FROM tab0
----
156

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 57 col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 520dc393896969e02a72ab6c5d92126b

query I rowsort
SELECT - col1 * - 88 * col0 FROM tab0 cor0
----
106920
160776
8536

query I rowsort
SELECT 55 FROM tab1 AS cor0 WHERE NOT ( - 75 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9444
SELECT + + 32 * + CAST( NULL AS SIGNED ) * - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9444
SELECT + + 32 * + CAST ( NULL AS INTEGER ) * - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - col1 * + - col0 AS col2 FROM tab2 AS cor0
----
-2346
-4928
-5025

onlyif mysql # aggregate syntax: 
query I rowsort label-9446
SELECT SUM( DISTINCT + 3 ) * + 61 FROM tab1
----
183

skipif mysql # not compatible
query I rowsort label-9446
SELECT SUM ( DISTINCT + 3 ) * + 61 FROM tab1
----
183

onlyif mysql # aggregate syntax: 
query I rowsort label-9447
SELECT DISTINCT SUM( + col0 ) AS col2 FROM tab0 WHERE NOT ( NULL ) <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9447
SELECT DISTINCT SUM ( + col0 ) AS col2 FROM tab0 WHERE NOT ( NULL ) <= NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9448
SELECT MAX( - 29 ) AS col0 FROM tab0
----
-29

skipif mysql # not compatible
query I rowsort label-9448
SELECT MAX ( - 29 ) AS col0 FROM tab0
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-9449
SELECT DISTINCT + COUNT( * ) * - 80 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-240

skipif mysql # not compatible
query I rowsort label-9449
SELECT DISTINCT + COUNT ( * ) * - 80 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-240

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9450
SELECT DISTINCT + CAST( - col1 AS SIGNED ) FROM tab1 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-9450
SELECT DISTINCT + CAST ( - col1 AS INTEGER ) FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9451
SELECT SUM( - + 13 ) FROM tab2
----
-39

skipif mysql # not compatible
query I rowsort label-9451
SELECT SUM ( - + 13 ) FROM tab2
----
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-9452
SELECT - 81 DIV + - ( col0 ) + - col0 AS col0 FROM tab1 AS cor0
----
-50
-85
-91

skipif mysql # not compatible
query I rowsort label-9452
SELECT - 81 / + - ( col0 ) + - col0 AS col0 FROM tab1 AS cor0
----
-50
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-9453
SELECT - MAX( + + 39 ) FROM tab2 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-9453
SELECT - MAX ( + + 39 ) FROM tab2 AS cor0
----
-39

query I rowsort
SELECT DISTINCT 25 + + - col0 FROM tab2
----
-21
-39
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-9455
SELECT ALL COUNT( + ( col2 ) ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9455
SELECT ALL COUNT ( + ( col2 ) ) AS col1 FROM tab1
----
3

query II rowsort
SELECT ALL col2 AS col0, 88 FROM tab1
----
59
88
68
88
96
88

query II rowsort
SELECT ALL + 20, - col2 AS col2 FROM tab0 AS cor0
----
20
-10
20
-47
20
-99

query I rowsort
SELECT ALL + - ( col2 ) + 1 + + col2 FROM tab2 AS cor0
----
1
1
1

query II rowsort
SELECT ALL - - 58 AS col2, - 8 * 86 FROM tab1 AS cor0
----
58
-688
58
-688
58
-688

onlyif mysql # aggregate syntax: 
query I rowsort label-9460
SELECT ALL - + 95 + + + 41 - COUNT( * ) FROM tab0 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-9460
SELECT ALL - + 95 + + + 41 - COUNT ( * ) FROM tab0 AS cor0
----
-57

query I rowsort
SELECT ALL - + 0 - + col2 FROM tab2 AS cor0
----
-23
-40
-58

query III rowsort
SELECT ALL * FROM tab2 WHERE ( ( NOT + col1 * - col0 = - col1 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE ( col1 ) * 12 * col0 >= col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE + 49 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NOT - 35 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9466
SELECT ALL + - SUM( ALL 4 ) AS col1 FROM tab0 WHERE NOT + - col1 + + ( col0 ) * + 35 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9466
SELECT ALL + - SUM ( ALL 4 ) AS col1 FROM tab0 WHERE NOT + - col1 + + ( col0 ) * + 35 IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE 69 + - 42 * 30 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 49 * - ( col2 ) FROM tab2
----
-1127
-1960
-2842

onlyif mysql # aggregate syntax: 
query I rowsort label-9469
SELECT - COUNT( ALL 75 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9469
SELECT - COUNT ( ALL 75 ) FROM tab1
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * - - col0 col0 FROM tab2 AS cor0
----
-2116
-4096
-5625

query I rowsort
SELECT DISTINCT - - col1 * + 19 AS col2 FROM tab1 AS cor0
----
266
893
95

query III rowsort
SELECT * FROM tab2 WHERE NOT - 94 + + - 81 * 37 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9473
SELECT ALL SUM( ALL - + 60 ) FROM tab1
----
-180

skipif mysql # not compatible
query I rowsort label-9473
SELECT ALL SUM ( ALL - + 60 ) FROM tab1
----
-180

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9474
SELECT + CAST( + ( - + col0 ) AS SIGNED ) FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-9474
SELECT + CAST ( + ( - + col0 ) AS INTEGER ) FROM tab2
----
-46
-64
-75

query II rowsort
SELECT + - 44 AS col1, - col2 FROM tab1 AS cor0
----
-44
-59
-44
-68
-44
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-9476
SELECT ALL - COUNT( * ) AS col2, + ( - 35 ) AS col0 FROM tab2 AS cor0
----
-3
-35

skipif mysql # not compatible
query II rowsort label-9476
SELECT ALL - COUNT ( * ) AS col2, + ( - 35 ) AS col0 FROM tab2 AS cor0
----
-3
-35

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9477
SELECT + col1 AS col1, CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-9477
SELECT + col1 AS col1, CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9478
SELECT - col1 DIV col2 + + + col0 * - + col2 AS col1 FROM tab0 AS cor0
----
-706
-872
-9603

skipif mysql # not compatible
query I rowsort label-9478
SELECT - col1 / col2 + + + col0 * - + col2 AS col1 FROM tab0 AS cor0
----
-706
-872
-9603

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9479
SELECT + col0 + - ( col2 ) + + 26 AS col1, ( CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 cor0
----
43
NULL
49
NULL
50
NULL

skipif mysql # not compatible
query II rowsort label-9479
SELECT + col0 + - ( col2 ) + + 26 AS col1, ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 cor0
----
43
NULL
49
NULL
50
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9480
SELECT + COUNT( * ) + + - ( - MIN( DISTINCT + 80 ) ) AS col0 FROM tab0 cor0
----
83

skipif mysql # not compatible
query I rowsort label-9480
SELECT + COUNT ( * ) + + - ( - MIN ( DISTINCT + 80 ) ) AS col0 FROM tab0 cor0
----
83

query I rowsort
SELECT ALL ( + + 77 ) FROM tab0 AS cor0
----
77
77
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9482
SELECT MAX( - ( - col1 ) ) FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-9482
SELECT MAX ( - ( - col1 ) ) FROM tab1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9483
SELECT - 8 * + 34 * - MAX( DISTINCT + 54 ) FROM tab1
----
14688

skipif mysql # not compatible
query I rowsort label-9483
SELECT - 8 * + 34 * - MAX ( DISTINCT + 54 ) FROM tab1
----
14688

onlyif mysql # aggregate syntax: 
query I rowsort label-9484
SELECT COUNT( * ) AS col0 FROM tab1 WHERE + col0 / - 19 + - col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9484
SELECT COUNT ( * ) AS col0 FROM tab1 WHERE + col0 / - 19 + - col2 IS NULL
----
0

query I rowsort
SELECT - 94 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 51 BETWEEN NULL AND - col1
----

query I rowsort
SELECT ALL + + 77 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

query I rowsort
SELECT 24 + - 69 FROM tab2
----
-45
-45
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-9489
SELECT ALL + SUM( DISTINCT - + col1 ) AS col2 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-9489
SELECT ALL + SUM ( DISTINCT - + col1 ) AS col2 FROM tab2
----
-195

query I rowsort
SELECT DISTINCT - col0 + + col1 + + col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL OR NOT - col1 - col0 + - col1 IS NULL
----
28
50
53

query I rowsort
SELECT + col0 + + col0 / col0 FROM tab2 cor0 WHERE + col0 = NULL
----

query I rowsort
SELECT ALL + col1 * + - 88 + - + col1 + col0 AS col0 FROM tab1 AS cor0
----
-1195
-360
-4092

query I rowsort
SELECT DISTINCT - + 75 FROM tab1 cor0
----
-75

query I rowsort
SELECT DISTINCT 45 + + col0 AS col0 FROM tab0 AS cor0
----
132
142
60

query I rowsort
SELECT + - 97 - + 10 + - + col1 * col1 + 5 AS col2 FROM tab0 AS cor0
----
-103
-543
-6663

onlyif mysql # aggregate syntax: 
query I rowsort label-9496
SELECT DISTINCT COUNT( * ) * - 46 FROM tab2 cor0
----
-138

skipif mysql # not compatible
query I rowsort label-9496
SELECT DISTINCT COUNT ( * ) * - 46 FROM tab2 cor0
----
-138

query I rowsort
SELECT 86 FROM tab0 WHERE - 61 IS NOT NULL
----
86
86
86

onlyif mysql # aggregate syntax: 
query I rowsort label-9498
SELECT - MIN( DISTINCT - col1 ) col1 FROM tab2
----
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9498
SELECT - MIN ( DISTINCT - col1 ) col1 FROM tab2
----
77

query I rowsort
SELECT ALL - col2 * col0 * - 99 FROM tab0
----
69795
86130
950697

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 99 col2 FROM tab2 AS cor0 WHERE NOT 5 BETWEEN + 87 AND - col2 + + col0
----
-99

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 68 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9502
SELECT DISTINCT - 42 * - + COUNT( col2 ) col1 FROM tab1 AS cor0
----
126

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9502
SELECT DISTINCT - 42 * - + COUNT ( col2 ) col1 FROM tab1 AS cor0
----
126

query I rowsort
SELECT ALL + + 73 * + col1 AS col2 FROM tab0 AS cor0
----
1533
5913
73

query I rowsort
SELECT col0 * + ( 41 ) FROM tab0
----
3567
3977
615

onlyif mysql # aggregate syntax: 
query I rowsort label-9505
SELECT COUNT( * ) + - - COUNT( * ) FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
18

skipif mysql # not compatible
query I rowsort label-9505
SELECT COUNT ( * ) + - - COUNT ( * ) FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
18

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9506
SELECT DISTINCT col0 * + - CAST( NULL AS DECIMAL ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9506
SELECT DISTINCT col0 * + - CAST ( NULL AS REAL ) AS col0 FROM tab0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9507
SELECT DISTINCT + MAX( - CAST( - col1 AS SIGNED ) ) col0 FROM tab1 cor0
----
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9507
SELECT DISTINCT + MAX ( - CAST ( - col1 AS INTEGER ) ) col0 FROM tab1 cor0
----
47

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) < + col0
----

query I rowsort
SELECT - - 93 * - + col1 * + + col1 * col0 AS col1 FROM tab0 AS cor0
----
-3568131
-9021
-9152595

onlyif mysql # aggregate syntax: 
query I rowsort label-9510
SELECT - COUNT( DISTINCT ( 21 ) ) FROM tab1 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9510
SELECT - COUNT ( DISTINCT ( 21 ) ) FROM tab1 cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9511
SELECT + MAX( ALL - 89 ) * + MAX( DISTINCT ( + col0 ) ) * - COUNT( * ) FROM tab2
----
20025

skipif mysql # not compatible
query I rowsort label-9511
SELECT + MAX ( ALL - 89 ) * + MAX ( DISTINCT ( + col0 ) ) * - COUNT ( * ) FROM tab2
----
20025

query I rowsort
SELECT ALL ( + - 74 ) FROM tab1
----
-74
-74
-74

query II rowsort
SELECT ALL + col1, + 41 * col1 AS col2 FROM tab0
----
1
41
21
861
81
3321

query I rowsort
SELECT DISTINCT + - col0 FROM tab2 WHERE NOT NULL <> col0
----

query I rowsort
SELECT + col1 + col0 + + + ( - + col1 ) * - col1 + + 25 AS col1 FROM tab1 AS cor0
----
140
2372
286

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 + ( + ( col0 ) ) col0 FROM tab0 cor0
----
0
0
0

query II rowsort
SELECT - col2 AS col2, - 39 + + col1 FROM tab0 AS cor0
----
-10
-18
-47
42
-99
-38

query I rowsort
SELECT - 78 * col0 FROM tab0 WHERE NOT col0 IS NULL
----
-1170
-6786
-7566

query I rowsort
SELECT 50 + col0 AS col0 FROM tab1 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL + 22 * 7 FROM tab1
----
154
154
154

query III rowsort
SELECT * FROM tab2 WHERE NOT 60 NOT BETWEEN - col0 * 43 AND + 67
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 83 * col1 AS col2 FROM tab0
----
1743
6723
83

query I rowsort
SELECT + col0 + + 68 AS col1 FROM tab0
----
155
165
83

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 NOT BETWEEN 3 / - col1 + + col1 / - col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9525
SELECT + 72 / - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9525
SELECT + 72 / - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9526
SELECT - col0 DIV + 49 AS col0 FROM tab0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-9526
SELECT - col0 / + 49 AS col0 FROM tab0
----
-1
-1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9527
SELECT - 62 DIV 15 AS col2 FROM tab1
----
-4
-4
-4

skipif mysql # not compatible
query I rowsort label-9527
SELECT - 62 / 15 AS col2 FROM tab1
----
-4
-4
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9528
SELECT + COUNT( * ) DIV + 70 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9528
SELECT + COUNT ( * ) / + 70 AS col1 FROM tab0
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9529
SELECT - CAST( NULL AS DECIMAL ) / - COUNT( * ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9529
SELECT - CAST ( NULL AS REAL ) / - COUNT ( * ) AS col1 FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE - col1 / col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9531
SELECT ALL * FROM tab1 WHERE NULL <= CAST( NULL AS SIGNED ) + 12 / + col0
----

skipif mysql # not compatible
query III rowsort label-9531
SELECT ALL * FROM tab1 WHERE NULL <= CAST ( NULL AS INTEGER ) + 12 / + col0
----

query I rowsort
SELECT 25 * + 3 + - 45 FROM tab0 WHERE col0 + + col2 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + 32 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 * - col2 + + 77 * + 89 AS col2 FROM tab0
----
-2948
4644
6753

query I rowsort
SELECT col2 * 69 + + ( + 63 - ( 15 - - col2 ) ) FROM tab2
----
1612
2768
3992

query I rowsort
SELECT ( + col2 ) * 84 AS col0 FROM tab1
----
4956
5712
8064

query I rowsort
SELECT DISTINCT col2 * 6 AS col2 FROM tab1
----
354
408
576

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - col1 ) NOT IN ( + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9539
SELECT ALL - COUNT( ALL col2 ) col2 FROM tab1 WHERE NOT col2 * - col1 BETWEEN ( NULL ) AND NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9539
SELECT ALL - COUNT ( ALL col2 ) col2 FROM tab1 WHERE NOT col2 * - col1 BETWEEN ( NULL ) AND NULL
----
0

query III rowsort
SELECT * FROM tab0 WHERE + col1 BETWEEN NULL AND - 37
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9541
SELECT - col0 DIV + col2 + col0 * - col0 FROM tab0
----
-225
-7577
-9409

skipif mysql # not compatible
query I rowsort label-9541
SELECT - col0 / + col2 + col0 * - col0 FROM tab0
----
-225
-7577
-9409

query I rowsort
SELECT 39 * col0 + + 11 FROM tab2
----
1805
2507
2936

onlyif mysql # aggregate syntax: 
query I rowsort label-9543
SELECT DISTINCT 79 + + COUNT( ALL col0 ) AS col1 FROM tab0
----
82

skipif mysql # not compatible
query I rowsort label-9543
SELECT DISTINCT 79 + + COUNT ( ALL col0 ) AS col1 FROM tab0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-9544
SELECT ALL COUNT( * ) col2 FROM tab0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9544
SELECT ALL COUNT ( * ) col2 FROM tab0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9545
SELECT ALL - col1 * + col2 + col1 DIV + 44 FROM tab2 WHERE ( + col0 ) IS NOT NULL
----
-1172
-3079
-3885

skipif mysql # not compatible
query I rowsort label-9545
SELECT ALL - col1 * + col2 + col1 / + 44 FROM tab2 WHERE ( + col0 ) IS NOT NULL
----
-1172
-3079
-3885

onlyif mysql # aggregate syntax: 
query I rowsort label-9546
SELECT ALL + COUNT( * ) - + MAX( ALL + col2 ) AS col2 FROM tab0
----
-96

skipif mysql # not compatible
query I rowsort label-9546
SELECT ALL + COUNT ( * ) - + MAX ( ALL + col2 ) AS col2 FROM tab0
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9547
SELECT DISTINCT 10 * CAST( - col0 AS SIGNED ) + col0 AS col0 FROM tab2
----
-414
-576
-675

skipif mysql # not compatible
query I rowsort label-9547
SELECT DISTINCT 10 * CAST ( - col0 AS INTEGER ) + col0 AS col0 FROM tab2
----
-414
-576
-675

query I rowsort
SELECT 89 + - col2 FROM tab0
----
-10
42
79

query I rowsort
SELECT 95 + + 88 FROM tab2
----
183
183
183

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9550
SELECT * FROM tab0 WHERE NOT CAST( NULL AS DECIMAL ) NOT IN ( - 72 )
----

skipif mysql # not compatible
query III rowsort label-9550
SELECT * FROM tab0 WHERE NOT CAST ( NULL AS REAL ) NOT IN ( - 72 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9551
SELECT ALL + MIN( + 36 ) AS col1 FROM tab1 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-9551
SELECT ALL + MIN ( + 36 ) AS col1 FROM tab1 AS cor0
----
36

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL <> ( 69 - + col0 )
----

query I rowsort
SELECT ALL col2 * + col1 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 + ( col2 ) < + col1 + 62
----
97
1
99

query I rowsort
SELECT - 95 + col2 AS col0 FROM tab0
----
-48
-85
4

query I rowsort
SELECT 25 + col2 AS col2 FROM tab2
----
48
65
83

query I rowsort
SELECT + col2 * 54 AS col2 FROM tab1 WHERE NOT ( NULL ) = col2
----

query I rowsort
SELECT 58 + col2 FROM tab0 AS cor0
----
105
157
68

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( + ( 9 ) ) <> NULL
----

query I rowsort
SELECT ALL col1 AS col0 FROM tab0 AS cor0 WHERE - 18 - + col2 NOT IN ( + col2 )
----
1
21
81

query I rowsort
SELECT + col1 + - col2 * - 11 AS col2 FROM tab0 AS cor0
----
1090
131
598

onlyif mysql # DIV for integer division: 
query I rowsort label-9562
SELECT DISTINCT - - col2 DIV + col0 col1 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9562
SELECT DISTINCT - - col2 / + col0 col1 FROM tab1 AS cor0
----
0
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9563
SELECT 43 * col2 FROM tab0 AS cor0 WHERE CAST( NULL AS DECIMAL ) * 13 - + 78 * + 45 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9563
SELECT 43 * col2 FROM tab0 AS cor0 WHERE CAST ( NULL AS REAL ) * 13 - + 78 * + 45 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9564
SELECT DISTINCT ( - MAX( ALL col1 ) ) * COUNT( ALL col1 * - ( - col1 ) ) AS col2 FROM tab2 AS cor0 WHERE NOT ( 53 ) BETWEEN ( ( - col0 ) ) AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9564
SELECT DISTINCT ( - MAX ( ALL col1 ) ) * COUNT ( ALL col1 * - ( - col1 ) ) AS col2 FROM tab2 AS cor0 WHERE NOT ( 53 ) BETWEEN ( ( - col0 ) ) AND NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9565
SELECT SUM( DISTINCT - col1 ) AS col2 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-9565
SELECT SUM ( DISTINCT - col1 ) AS col2 FROM tab1
----
-66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - - col0 col2 FROM tab0
----
196
62
97

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) > + 65
----

query I rowsort
SELECT 2 * - - col1 FROM tab0
----
162
2
42

query I rowsort
SELECT + - col2 - - col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9570
SELECT ALL + col0 * + CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9570
SELECT ALL + col0 * + CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9571
SELECT - 16 FROM tab0 cor0 WHERE ( - col2 * - CAST( + col0 AS SIGNED ) ) IN ( + ( - col1 ) )
----

skipif mysql # not compatible
query I rowsort label-9571
SELECT - 16 FROM tab0 cor0 WHERE ( - col2 * - CAST ( + col0 AS INTEGER ) ) IN ( + ( - col1 ) )
----

query I rowsort
SELECT DISTINCT ( + 19 ) * - 1 + col1 AS col0 FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL AND - 76 NOT BETWEEN + col2 AND 14
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9573
SELECT ALL COUNT( 38 ) AS col2 FROM tab1 WHERE NULL = NULL
----
0

skipif mysql # not compatible
query I rowsort label-9573
SELECT ALL COUNT ( 38 ) AS col2 FROM tab1 WHERE NULL = NULL
----
0

query I rowsort
SELECT ALL + col0 AS col2 FROM tab0 AS cor0 WHERE NOT + 94 + + col2 <> ( - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9575
SELECT * FROM tab0 AS cor0 WHERE NOT ( col1 * CAST( NULL AS SIGNED ) * - col2 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9575
SELECT * FROM tab0 AS cor0 WHERE NOT ( col1 * CAST ( NULL AS INTEGER ) * - col2 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 11 col1 FROM tab0 AS cor0 WHERE NOT NULL <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9577
SELECT + col0 DIV - - 96 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9577
SELECT + col0 / - - 96 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9578
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT - ( - col2 ) <= col2
----
0

skipif mysql # not compatible
query I rowsort label-9578
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT - ( - col2 ) <= col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9579
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + CAST( - 73 AS SIGNED ) + col2 NOT IN ( - col0 )
----

skipif mysql # not compatible
query III rowsort label-9579
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + CAST ( - 73 AS INTEGER ) + col2 NOT IN ( - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9580
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( 41 - - CAST( NULL AS SIGNED ) ) >= NULL
----

skipif mysql # not compatible
query III rowsort label-9580
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( 41 - - CAST ( NULL AS INTEGER ) ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9581
SELECT ALL MAX( DISTINCT + 9 ) AS col2 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9581
SELECT ALL MAX ( DISTINCT + 9 ) AS col2 FROM tab0 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9582
SELECT COUNT( - + col1 ) * - SUM( ALL - col0 ) + 26 FROM tab1
----
707

skipif mysql # not compatible
query I rowsort label-9582
SELECT COUNT ( - + col1 ) * - SUM ( ALL - col0 ) + 26 FROM tab1
----
707

query I rowsort
SELECT DISTINCT - 8 FROM tab0 WHERE NOT + col2 - col1 NOT BETWEEN col1 AND ( NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9584
SELECT COUNT( * ) DIV - COUNT( * ), + 54 AS col0 FROM tab1
----
-1
54

skipif mysql # not compatible
query II rowsort label-9584
SELECT COUNT ( * ) / - COUNT ( * ), + 54 AS col0 FROM tab1
----
-1
54

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( - - col0 + - + col2 )
----

query I rowsort
SELECT ALL - col1 AS col1 FROM tab0 WHERE 31 * - + col2 + + col2 IS NOT NULL
----
-1
-21
-81

query III rowsort
SELECT * FROM tab2 WHERE NOT + ( + - col0 ) NOT BETWEEN NULL AND - 36
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col0 * 2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( NULL ) > - - col2 * + 93
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9590
SELECT - + COUNT( * ) * - ( 2 ) AS col0 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-9590
SELECT - + COUNT ( * ) * - ( 2 ) AS col0 FROM tab1 AS cor0
----
6

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL IN ( + ( col1 ) )
----

query I rowsort
SELECT col2 AS col0 FROM tab1 WHERE NOT - col2 <= ( + col0 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + col1 * col2 ) NOT BETWEEN ( NULL ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9594
SELECT ALL COUNT( ALL + 91 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9594
SELECT ALL COUNT ( ALL + 91 ) AS col2 FROM tab1
----
3

query I rowsort
SELECT DISTINCT ( - 89 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9596
SELECT ALL - 8 + - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9596
SELECT ALL - 8 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9597
SELECT * FROM tab2 AS cor0 WHERE ( col2 + + - 4 / - 8 + - + CAST( NULL AS DECIMAL ) * col1 ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9597
SELECT * FROM tab2 AS cor0 WHERE ( col2 + + - 4 / - 8 + - + CAST ( NULL AS REAL ) * col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9598
SELECT DISTINCT 73 DIV - + COUNT( * ) FROM tab0 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-9598
SELECT DISTINCT 73 / - + COUNT ( * ) FROM tab0 AS cor0
----
-24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + 76 col0, col0 * - + 65 FROM tab1 AS cor0 WHERE - 70 IS NOT NULL
----
76
-3315
76
-5525
76
-5915

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 78 <= - col0 * - + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col0 + + col2 * + 11 * + + 77 AS col2 FROM tab2 AS cor0
----
19435
33816
49051

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9602
SELECT ALL - + CAST( + 4 AS SIGNED ) + col0 AS col1, 64 * 57 AS col2 FROM tab0 AS cor0
----
11
3648
83
3648
93
3648

skipif mysql # not compatible
query II rowsort label-9602
SELECT ALL - + CAST ( + 4 AS INTEGER ) + col0 AS col1, 64 * 57 AS col2 FROM tab0 AS cor0
----
11
3648
83
3648
93
3648

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9603
SELECT ALL CAST( NULL AS SIGNED ) * MIN( + + col0 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9603
SELECT ALL CAST ( NULL AS INTEGER ) * MIN ( + + col0 ) FROM tab1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT - 39 IS NULL )
----

query I rowsort
SELECT DISTINCT + col1 * - - 27 AS col0 FROM tab1 AS cor0
----
1269
135
378

query I rowsort
SELECT ALL + col1 FROM tab0 cor0 WHERE NOT 80 IS NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9607
SELECT - + COUNT( * ) * - - COUNT( * ) FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9607
SELECT - + COUNT ( * ) * - - COUNT ( * ) FROM tab2 AS cor0
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9608
SELECT ALL 53 DIV COUNT( * ) - + - 87 FROM tab1 AS cor0
----
104

skipif mysql # not compatible
query I rowsort label-9608
SELECT ALL 53 / COUNT ( * ) - + - 87 FROM tab1 AS cor0
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-9609
SELECT + MAX( - - ( + + col1 ) ) AS col2 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-9609
SELECT + MAX ( - - ( + + col1 ) ) AS col2 FROM tab1 AS cor0
----
47

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) IS NOT NULL AND NOT ( + col1 ) < col0 - - 95 + col0
----

query I rowsort
SELECT + - col2 + + 98 * - ( col2 ) AS col1 FROM tab2 WHERE NULL IS NULL AND ( ( + col1 ) <= + col0 )
----
-5742

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + 46 col1 FROM tab2 WHERE NULL > NULL
----

query II rowsort
SELECT ALL 13 AS col0, - 87 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col1 * - col2 * - + 41 col0 FROM tab2 AS cor0
----
11949450
2212278
8081920

onlyif mysql # aggregate syntax: 
query I rowsort label-9615
SELECT DISTINCT + + COUNT( * ) + - - COUNT( * ) + + 1 FROM tab1 AS cor0 WHERE NOT col0 / - 80 > - col2
----
1

skipif mysql # not compatible
query I rowsort label-9615
SELECT DISTINCT + + COUNT ( * ) + - - COUNT ( * ) + + 1 FROM tab1 AS cor0 WHERE NOT col0 / - 80 > - col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9616
SELECT DISTINCT + MAX( 9 ) * - 19 AS col2 FROM tab0 AS cor0
----
-171

skipif mysql # not compatible
query I rowsort label-9616
SELECT DISTINCT + MAX ( 9 ) * - 19 AS col2 FROM tab0 AS cor0
----
-171

query I rowsort
SELECT DISTINCT col0 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( 9 ) AND col0
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL < ( col1 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 40 * - 9 * col2 * - - 84 <> NULL
----

query I rowsort
SELECT - - 91 * - col0 AS col1 FROM tab2 WHERE NOT + col0 / col0 - col2 IS NULL
----
-4186
-5824
-6825

onlyif mysql # DIV for integer division: 
query I rowsort label-9621
SELECT DISTINCT - 81 DIV - 15 AS col0 FROM tab2
----
5

skipif mysql # not compatible
query I rowsort label-9621
SELECT DISTINCT - 81 / - 15 AS col0 FROM tab2
----
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 col0 FROM tab0 WHERE ( col0 ) * + col2 + - col0 IS NOT NULL
----
15
87
97

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - - 87 - - + 79 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9624
SELECT DISTINCT 71 AS col0, SUM( + - col0 ) col0 FROM tab2 AS cor0
----
71
-185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9624
SELECT DISTINCT 71 AS col0, SUM ( + - col0 ) col0 FROM tab2 AS cor0
----
71
-185

query I rowsort
SELECT ALL + 17 * col1 AS col1 FROM tab0
----
1377
17
357

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9626
SELECT + CAST( + 60 AS SIGNED ), col0 AS col1 FROM tab2 AS cor0
----
60
46
60
64
60
75

skipif mysql # not compatible
query II rowsort label-9626
SELECT + CAST ( + 60 AS INTEGER ), col0 AS col1 FROM tab2 AS cor0
----
60
46
60
64
60
75

query I rowsort
SELECT ALL - - col0 * + 67 * - 25 + col1 AS col1 FROM tab2 cor0
----
-107123
-125558
-76999

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9628
SELECT ALL * FROM tab1 AS cor0 WHERE ( NOT - col1 NOT IN ( - - col2, col1 ) ) OR ( + CAST( + col2 AS SIGNED ) + - CAST( NULL AS SIGNED ) ) NOT BETWEEN NULL AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-9628
SELECT ALL * FROM tab1 AS cor0 WHERE ( NOT - col1 NOT IN ( - - col2, col1 ) ) OR ( + CAST ( + col2 AS INTEGER ) + - CAST ( NULL AS INTEGER ) ) NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT DISTINCT col1 + - 76 AS col2 FROM tab1 AS cor0
----
-29
-62
-71

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 * + col0 * col0 <> NULL
----

query I rowsort
SELECT DISTINCT col1 FROM tab0 AS cor0 WHERE - col0 < col0 * - col0 + col1 + + + col0
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 70 <> + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 40 * + col1 + col1 FROM tab1
----
1927
205
574

onlyif mysql # DIV for integer division: 
query I rowsort label-9634
SELECT DISTINCT + col2 * - - col0 + - 65 DIV 81 col1 FROM tab0
----
705
870
9603

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9634
SELECT DISTINCT + col2 * - - col0 + - 65 / 81 col1 FROM tab0
----
705
870
9603

query I rowsort
SELECT ALL col0 + - col2 * - col2 + + + 13 FROM tab0
----
200
2237
9911

onlyif mysql # aggregate syntax: 
query I rowsort label-9636
SELECT ALL MIN( DISTINCT col1 ) col1 FROM tab2
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9636
SELECT ALL MIN ( DISTINCT col1 ) col1 FROM tab2
----
51

query III rowsort
SELECT * FROM tab2 WHERE ( - 30 * - + col0 + + + col0 - col1 + 30 + + col0 - - - col2 ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9638
SELECT - ( + SUM( DISTINCT col1 ) ) col1 FROM tab1
----
-66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9638
SELECT - ( + SUM ( DISTINCT col1 ) ) col1 FROM tab1
----
-66

query I rowsort
SELECT - + 55 AS col1 FROM tab0 WHERE + col2 + + col2 * col2 IS NULL
----

query I rowsort
SELECT 53 - col2 FROM tab0
----
-46
43
6

query I rowsort
SELECT DISTINCT - col1 * - col1 + - - col0 FROM tab2
----
2647
4564
5993

query II rowsort
SELECT DISTINCT col0, - 15 * - + 31 AS col2 FROM tab0
----
15
465
87
465
97
465

query I rowsort
SELECT + 54 - + - col1 - col2 - + 4 AS col0 FROM tab1
----
-32
-4
29

query III rowsort
SELECT * FROM tab2 WHERE - 73 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 12 - col2 AS col0 FROM tab1
----
-47
-56
-84

query II rowsort
SELECT DISTINCT - 24, + col0 FROM tab1 AS cor0
----
-24
51
-24
85
-24
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9647
SELECT DISTINCT + - CAST( NULL AS SIGNED ) + - CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9647
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0
----
NULL

query I rowsort
SELECT DISTINCT - 75 AS col2 FROM tab2 cor0
----
-75

query I rowsort
SELECT - 16 * 87 AS col1 FROM tab1 AS cor0
----
-1392
-1392
-1392

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( NOT NULL NOT BETWEEN NULL AND ( + 91 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9651
SELECT 39 * - ( + MAX( ALL - col2 ) ) AS col0 FROM tab1
----
2301

skipif mysql # not compatible
query I rowsort label-9651
SELECT 39 * - ( + MAX ( ALL - col2 ) ) AS col0 FROM tab1
----
2301

onlyif mysql # DIV for integer division: 
query I rowsort label-9652
SELECT DISTINCT col2 DIV - + col0 FROM tab0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-9652
SELECT DISTINCT col2 / - + col0 FROM tab0
----
-1
-3
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col0, col0 col0 FROM tab2 WHERE NOT + - col2 IS NOT NULL
----

query I rowsort
SELECT + 51 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9655
SELECT - ( - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0 WHERE NOT col1 < - col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9655
SELECT - ( - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0 WHERE NOT col1 < - col2
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT - col0 AS col0, + col2 + + col2 * - 65 FROM tab0 cor0
----
-15
-3008
-87
-640
-97
-6336

query II rowsort
SELECT ALL col0, + col2 + + ( + + 34 ) * + - col2 AS col2 FROM tab0 cor0
----
15
-1551
87
-330
97
-3267

query I rowsort
SELECT ALL + 12 * + 96 FROM tab2 AS cor0
----
1152
1152
1152

query I rowsort
SELECT DISTINCT + - ( + - col0 ) FROM tab0 AS cor0
----
15
87
97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 <= - + col1
----
15
81
47
87
21
10

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9661
SELECT CAST( CAST( ( 75 ) AS SIGNED ) AS DECIMAL ) AS col2 FROM tab1 AS cor0 WHERE NOT + col2 IN ( col2 )
----

skipif mysql # not compatible
query I rowsort label-9661
SELECT CAST ( CAST ( ( 75 ) AS INTEGER ) AS REAL ) AS col2 FROM tab1 AS cor0 WHERE NOT + col2 IN ( col2 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 51 / + 2 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 6 col0, - ( col0 ) FROM tab0 AS cor0
----
6
-15
6
-87
6
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-9664
SELECT - COUNT( * ), ( - + COUNT( * ) ) + + - ( + - COUNT( * ) ) AS col1 FROM tab2 AS cor0
----
-3
0

skipif mysql # not compatible
query II rowsort label-9664
SELECT - COUNT ( * ), ( - + COUNT ( * ) ) + + - ( + - COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
-3
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - col2 / col2 * + col0 AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9666
SELECT ALL - COUNT( ALL + - col2 ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-9666
SELECT ALL - COUNT ( ALL + - col2 ) AS col0 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9667
SELECT ( + ( COUNT( * ) ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9667
SELECT ( + ( COUNT ( * ) ) ) FROM tab0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9668
SELECT + ( - MIN( + - col2 ) ) DIV 9 AS col2 FROM tab1
----
10

skipif mysql # not compatible
query I rowsort label-9668
SELECT + ( - MIN ( + - col2 ) ) / 9 AS col2 FROM tab1
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9669
SELECT ALL COUNT( * ) * - + COUNT( * ) * 72 AS col0 FROM tab2
----
-648

skipif mysql # not compatible
query I rowsort label-9669
SELECT ALL COUNT ( * ) * - + COUNT ( * ) * 72 AS col0 FROM tab2
----
-648

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9670
SELECT + col2 * + CAST( + col2 AS SIGNED ), 28 AS col1 FROM tab2
----
1600
28
3364
28
529
28

skipif mysql # not compatible
query II rowsort label-9670
SELECT + col2 * + CAST ( + col2 AS INTEGER ), 28 AS col1 FROM tab2
----
1600
28
3364
28
529
28

onlyif mysql # DIV for integer division: 
query I rowsort label-9671
SELECT - ( + - col2 ) DIV + - col2 + - col2 AS col2 FROM tab1
----
-60
-69
-97

skipif mysql # not compatible
query I rowsort label-9671
SELECT - ( + - col2 ) / + - col2 + - col2 AS col2 FROM tab1
----
-60
-69
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9672
SELECT DISTINCT + MIN( DISTINCT + col2 ) FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-9672
SELECT DISTINCT + MIN ( DISTINCT + col2 ) FROM tab0
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9673
SELECT DISTINCT COUNT( ALL col1 ) DIV - 88 * - MIN( DISTINCT - col2 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9673
SELECT DISTINCT COUNT ( ALL col1 ) / - 88 * - MIN ( DISTINCT - col2 ) FROM tab1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9674
SELECT ALL - MAX( + CAST( - col0 AS SIGNED ) ) * COUNT( * ) AS col2 FROM tab2
----
138

skipif mysql # not compatible
query I rowsort label-9674
SELECT ALL - MAX ( + CAST ( - col0 AS INTEGER ) ) * COUNT ( * ) AS col2 FROM tab2
----
138

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN NULL AND - col1 / + + col2
----

query I rowsort
SELECT ALL + 94 - 53 FROM tab0, tab2 AS cor0
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

query I rowsort
SELECT - 7 * + + col0 FROM tab0
----
-105
-609
-679

query I rowsort
SELECT ALL - 4 AS col2 FROM tab1 WHERE col0 IS NOT NULL
----
-4
-4
-4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 62 col1 FROM tab2 AS cor0
----
62
62
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9680
SELECT DISTINCT + MIN( ALL 68 ) + - 93 FROM tab0 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-9680
SELECT DISTINCT + MIN ( ALL 68 ) + - 93 FROM tab0 AS cor0
----
-25

query I rowsort
SELECT - col1 + - col2 * 73 AS col2 FROM tab0 AS cor0
----
-3512
-7228
-751

query I rowsort
SELECT DISTINCT + ( - ( - + 75 ) ) + + 0 FROM tab0 AS cor0
----
75

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 / - + 22 * + col0 + - 65 - - 90 * + 89 BETWEEN + col0 + - + 44 * + - col2 AND + 75
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 18 IN ( 27 * - - col1, - col0, - - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 45 col0 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

query I rowsort
SELECT + - col2 - - col2 AS col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9687
SELECT - - COUNT( * ) + 74 col1 FROM tab1 AS cor0
----
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9687
SELECT - - COUNT ( * ) + 74 col1 FROM tab1 AS cor0
----
77

query I rowsort
SELECT ALL - 69 + - col0 AS col0 FROM tab0 AS cor0
----
-156
-166
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-9689
SELECT + 48 + 51 + - MAX( DISTINCT - 59 ) FROM tab0 AS cor0
----
158

skipif mysql # not compatible
query I rowsort label-9689
SELECT + 48 + 51 + - MAX ( DISTINCT - 59 ) FROM tab0 AS cor0
----
158

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9690
SELECT ALL - col2 - - + col1 + + - col2 / + col0 AS col0, - col1 * - 99 FROM tab1 cor0 WHERE NOT ( NULL ) BETWEEN ( NULL ) AND ( 35 * - + ( + CAST( - col0 AS SIGNED ) ) * 33 )
----

skipif mysql # not compatible
query II rowsort label-9690
SELECT ALL - col2 - - + col1 + + - col2 / + col0 AS col0, - col1 * - 99 FROM tab1 cor0 WHERE NOT ( NULL ) BETWEEN ( NULL ) AND ( 35 * - + ( + CAST ( - col0 AS INTEGER ) ) * 33 )
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE 93 IS NULL
----

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE 84 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE ( 1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9694
SELECT + COUNT( - col2 ) * - - ( 2 ) + + - COUNT( * ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9694
SELECT + COUNT ( - col2 ) * - - ( 2 ) + + - COUNT ( * ) AS col2 FROM tab2
----
3

query I rowsort
SELECT DISTINCT + col0 * ( - col0 ) - - 84 FROM tab2
----
-2032
-4012
-5541

query I rowsort
SELECT ALL 0 - + + col0 FROM tab1
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-9697
SELECT ALL + + COUNT( * ) * + 31 FROM tab0 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-9697
SELECT ALL + + COUNT ( * ) * + 31 FROM tab0 AS cor0
----
93

query I rowsort
SELECT + col0 * - + col0 AS col2 FROM tab2 AS cor0
----
-2116
-4096
-5625

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9699
SELECT ALL - ( CAST( NULL AS DECIMAL ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9699
SELECT ALL - ( CAST ( NULL AS REAL ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 14 * - ( col2 ) AS col0 FROM tab0 cor0
----
-1386
-140
-658

onlyif mysql # aggregate syntax: 
query II rowsort label-9701
SELECT DISTINCT - 78, - MAX( DISTINCT - col0 ) AS col2 FROM tab1
----
-78
51

skipif mysql # not compatible
query II rowsort label-9701
SELECT DISTINCT - 78, - MAX ( DISTINCT - col0 ) AS col2 FROM tab1
----
-78
51

query I rowsort
SELECT DISTINCT - 82 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-9703
SELECT + MIN( ALL + col1 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-9703
SELECT + MIN ( ALL + col1 ) FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9704
SELECT DISTINCT - SUM( DISTINCT - 37 ) col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
37

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9704
SELECT DISTINCT - SUM ( DISTINCT - 37 ) col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
37

query I rowsort
SELECT ALL + col0 + - col1 AS col0 FROM tab0 WHERE NULL <= NULL
----

query I rowsort
SELECT DISTINCT + col2 * + ( + col2 ) FROM tab1 cor0
----
3481
4624
9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * + col2 col1 FROM tab2 AS cor0
----
1173
3080
3886

query I rowsort
SELECT ALL 33 * + + col0 AS col0 FROM tab1 AS cor0
----
1683
2805
3003

query II rowsort
SELECT - col1 AS col0, + col2 FROM tab2 AS cor0
----
-51
23
-67
58
-77
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9710
SELECT ALL - + CAST( - COUNT( * ) AS SIGNED ) * + COUNT( 43 ) FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9710
SELECT ALL - + CAST ( - COUNT ( * ) AS INTEGER ) * + COUNT ( 43 ) FROM tab0 AS cor0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-9711
SELECT DISTINCT col2 DIV + 31 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-9711
SELECT DISTINCT col2 / + 31 FROM tab2 AS cor0
----
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9712
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - CAST( - col1 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9712
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - CAST ( - col1 AS INTEGER ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9713
SELECT ALL CAST( - AVG ( + col2 ) AS SIGNED ) AS col2 FROM tab0
----
-52

skipif mysql # not compatible
query I rowsort label-9713
SELECT ALL CAST ( - AVG ( + col2 ) AS INTEGER ) AS col2 FROM tab0
----
-52

query I rowsort
SELECT ALL col0 * - 79 * + 0 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9715
SELECT - SUM( - + col0 ) DIV + COUNT( * ) FROM tab2
----
61

skipif mysql # not compatible
query I rowsort label-9715
SELECT - SUM ( - + col0 ) / + COUNT ( * ) FROM tab2
----
61

query I rowsort
SELECT ALL + ( col1 ) * - - col2 FROM tab1
----
1344
295
3196

onlyif mysql # DIV for integer division: 
query I rowsort label-9717
SELECT ALL + col0 DIV - 69 FROM tab0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-9717
SELECT ALL + col0 / - 69 FROM tab0
----
-1
-1
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NOT - col0 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9719
SELECT ALL + COUNT( * ) + COUNT( * ) FROM tab2 cor0
----
6

skipif mysql # not compatible
query I rowsort label-9719
SELECT ALL + COUNT ( * ) + COUNT ( * ) FROM tab2 cor0
----
6

query I rowsort
SELECT DISTINCT - 21 * - 81 + + + 93 FROM tab0 cor0
----
1794

query I rowsort
SELECT ALL - 87 * - - 39 + + + 73 FROM tab2 AS cor0
----
-3320
-3320
-3320

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL = 45
----

query I rowsort
SELECT - col0 + col2 * + col2 + 38 - - col1 AS col0 FROM tab2
----
1651
3394
572

onlyif mysql # aggregate syntax: 
query I rowsort label-9724
SELECT + - COUNT( DISTINCT col2 ) * SUM( DISTINCT + col0 ) AS col2 FROM tab1 AS cor0
----
-681

skipif mysql # not compatible
query I rowsort label-9724
SELECT + - COUNT ( DISTINCT col2 ) * SUM ( DISTINCT + col0 ) AS col2 FROM tab1 AS cor0
----
-681

query I rowsort
SELECT + 5 * + - 24 AS col2 FROM tab2 cor0
----
-120
-120
-120

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9726
SELECT * FROM tab0 AS cor0 WHERE col0 IN ( + - col2 * - CAST( NULL AS SIGNED ) * 78 )
----

skipif mysql # not compatible
query III rowsort label-9726
SELECT * FROM tab0 AS cor0 WHERE col0 IN ( + - col2 * - CAST ( NULL AS INTEGER ) * 78 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 4 * + col1 IS NULL
----

query II rowsort
SELECT DISTINCT + 28 + - 48 AS col1, + col1 + + + col2 AS col1 FROM tab1 AS cor0
----
-20
110
-20
115
-20
64

query I rowsort
SELECT DISTINCT - col1 - - col2 FROM tab2 cor0
----
-28
-37
-9

query I rowsort
SELECT DISTINCT + 38 + - 24 AS col0 FROM tab2
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-9731
SELECT ALL 91 DIV + 2 FROM tab2 WHERE ( NULL ) IS NULL
----
45
45
45

skipif mysql # not compatible
query I rowsort label-9731
SELECT ALL 91 / + 2 FROM tab2 WHERE ( NULL ) IS NULL
----
45
45
45

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 48 - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9733
SELECT ALL COUNT( * ) + 43 FROM tab1
----
46

skipif mysql # not compatible
query I rowsort label-9733
SELECT ALL COUNT ( * ) + 43 FROM tab1
----
46

query I rowsort
SELECT col2 + - 7 AS col1 FROM tab2
----
16
33
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9735
SELECT ALL CAST( - - col2 AS SIGNED ) AS col2 FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-9735
SELECT ALL CAST ( - - col2 AS INTEGER ) AS col2 FROM tab0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9736
SELECT + ( - COUNT( col1 ) ) FROM tab0 AS cor0 WHERE NOT col2 + - col1 BETWEEN + col0 AND + + col2
----
-2

skipif mysql # not compatible
query I rowsort label-9736
SELECT + ( - COUNT ( col1 ) ) FROM tab0 AS cor0 WHERE NOT col2 + - col1 BETWEEN + col0 AND + + col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9737
SELECT + - COUNT( * ) * + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9737
SELECT + - COUNT ( * ) * + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9738
SELECT - MAX( + ( - + col1 ) ) AS col1 FROM tab1 WHERE NOT NULL <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9738
SELECT - MAX ( + ( - + col1 ) ) AS col1 FROM tab1 WHERE NOT NULL <> NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9739
SELECT DISTINCT + COUNT( ALL - - col0 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9739
SELECT DISTINCT + COUNT ( ALL - - col0 ) FROM tab0
----
3

query I rowsort
SELECT DISTINCT - + 7 * - 51 AS col0 FROM tab2 cor0
----
357

onlyif mysql # aggregate syntax: 
query I rowsort label-9741
SELECT - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT ( - col2 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9741
SELECT - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT ( - col2 ) IS NOT NULL
----
0

query I rowsort
SELECT - + ( - - 48 ) FROM tab2 AS cor0
----
-48
-48
-48

query I rowsort
SELECT - 13 * - - col0 FROM tab2
----
-598
-832
-975

query I rowsort
SELECT col2 * + col2 * + col0 AS col1 FROM tab2
----
102400
24334
252300

query I rowsort
SELECT 44 * 52 AS col0 FROM tab1
----
2288
2288
2288

onlyif mysql # aggregate syntax: 
query I rowsort label-9746
SELECT ALL - 78 * - - COUNT( * ) AS col2 FROM tab0
----
-234

skipif mysql # not compatible
query I rowsort label-9746
SELECT ALL - 78 * - - COUNT ( * ) AS col2 FROM tab0
----
-234

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 28 * - 28 col2 FROM tab2
----
784

query I rowsort
SELECT DISTINCT - col0 * - - 49 AS col1 FROM tab1
----
-2499
-4165
-4459

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9749
SELECT + COUNT( * ) + + ( + ( + 2 ) ) + MAX( + CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9749
SELECT + COUNT ( * ) + + ( + ( + 2 ) ) + MAX ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9750
SELECT + ( + SUM( - col1 ) ) - - COUNT( * ) - - 18 * - 86 AS col0 FROM tab2 AS cor0 WHERE col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9750
SELECT + ( + SUM ( - col1 ) ) - - COUNT ( * ) - - 18 * - 86 AS col0 FROM tab2 AS cor0 WHERE col0 IS NULL
----
NULL

query I rowsort
SELECT ALL 74 + col2 FROM tab2
----
114
132
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 col0 FROM tab2 WHERE NOT ( - + 97 ) NOT IN ( - + 38, - col0 )
----

query I rowsort
SELECT + - col2 * col0 * + col0 + + - col1 - + 43 AS col1 FROM tab2 AS cor0
----
-163960
-326360
-48762

query I rowsort
SELECT - col1 + - + col2 FROM tab1 cor0
----
-110
-115
-64

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 55 + - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9756
SELECT - 78 + + + 5 - + SUM( + col2 ) AS col2 FROM tab1 cor0
----
-296

skipif mysql # not compatible
query I rowsort label-9756
SELECT - 78 + + + 5 - + SUM ( + col2 ) AS col2 FROM tab1 cor0
----
-296

query I rowsort
SELECT - col1 + 62 AS col0 FROM tab0 cor0
----
-19
41
61

query I rowsort
SELECT DISTINCT - - col0 + + 50 + + 7 * 64 FROM tab2 AS cor0
----
544
562
573

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9759
SELECT - CAST( NULL AS SIGNED ) * - 41 + - AVG ( ALL - 87 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9759
SELECT - CAST ( NULL AS INTEGER ) * - 41 + - AVG ( ALL - 87 ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9760
SELECT ( - COUNT( * ) ) + COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9760
SELECT ( - COUNT ( * ) ) + COUNT ( * ) FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9761
SELECT + 93 + + CAST( NULL AS SIGNED ) * - + 21 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-9761
SELECT + 93 + + CAST ( NULL AS INTEGER ) * - + 21 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9762
SELECT ALL - - COUNT( * ) + - 22 col1 FROM tab2 AS cor0
----
-19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9762
SELECT ALL - - COUNT ( * ) + - 22 col1 FROM tab2 AS cor0
----
-19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 + col0 col1, col2 * - + 36 * - - 26 * + - ( - col1 ) FROM tab1 AS cor0
----
0
-1257984
0
-276120
0
-2991456

query I rowsort
SELECT DISTINCT + ( - - col0 ) + + col0 AS col1 FROM tab1
----
102
170
182

query I rowsort
SELECT ALL ( col1 ) * - col2 * + 89 * col1 AS col0 FROM tab1
----
-131275
-13368868
-1674624

query I rowsort
SELECT DISTINCT + + 99 AS col0 FROM tab1 WHERE - - col2 * + - col0 * col2 BETWEEN col2 * + col2 AND - + col1 + - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9767
SELECT * FROM tab0 WHERE NOT CAST( + 49 AS SIGNED ) - + - 75 + - ( 9 ) / - col0 >= + col1 - + - 10 * + + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9767
SELECT * FROM tab0 WHERE NOT CAST ( + 49 AS INTEGER ) - + - 75 + - ( 9 ) / - col0 >= + col1 - + - 10 * + + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - - 48 FROM tab2 cor0
----
48
48
48

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 >= - + col2
----
85
5
59
91
47
68

query I rowsort
SELECT 37 - - col1 AS col2 FROM tab2 AS cor0 WHERE NOT - col0 + + + col1 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 47 < NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 > ( NULL )
----

query I rowsort
SELECT - 3 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 95b6b9b4aae5cc2d9545db9f8940b2dc

query I rowsort
SELECT 16 + + col1 AS col2 FROM tab0
----
17
37
97

query I rowsort
SELECT ALL + col0 + - - 27 AS col1 FROM tab0 AS cor0
----
114
124
42

query II rowsort
SELECT + col1 + + col0 + - col2 AS col1, + 95 FROM tab1 AS cor0
----
-31
95
31
95
70
95

query I rowsort
SELECT ALL + - col1 AS col0 FROM tab0 AS cor0 WHERE NULL IN ( col2 * col2 / + ( - 69 ) * + col2, + col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL < - col1 * - 54
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9779
SELECT col2 DIV + - col1 + - ( + col1 ) AS col0 FROM tab0 AS cor0
----
-100
-21
-81

skipif mysql # not compatible
query I rowsort label-9779
SELECT col2 / + - col1 + - ( + col1 ) AS col0 FROM tab0 AS cor0
----
-100
-21
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 63 col0 FROM tab1 cor0
----
-63
-63
-63

query I rowsort
SELECT - + ( + 35 ) AS col2 FROM tab1 cor0
----
-35
-35
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9782
SELECT DISTINCT - - CAST( AVG ( ALL 15 ) AS SIGNED ) FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-9782
SELECT DISTINCT - - CAST ( AVG ( ALL 15 ) AS INTEGER ) FROM tab0 AS cor0
----
15

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL < 92 + + - col2
----

query III rowsort
SELECT * FROM tab2 WHERE 31 BETWEEN NULL AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9785
SELECT DISTINCT - COUNT( * ) * + 74 + 13 AS col0 FROM tab0
----
-209

skipif mysql # not compatible
query I rowsort label-9785
SELECT DISTINCT - COUNT ( * ) * + 74 + 13 AS col0 FROM tab0
----
-209

query II rowsort
SELECT ALL + 17 + + 15, col1 FROM tab2
----
32
51
32
67
32
77

query I rowsort
SELECT ALL + 86 * + 67 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
5762
5762
5762

onlyif mysql # DIV for integer division: 
query I rowsort label-9788
SELECT ALL + 68 * col0 DIV col2 FROM tab1
----
36
91
97

skipif mysql # not compatible
query I rowsort label-9788
SELECT ALL + 68 * col0 / col2 FROM tab1
----
36
91
97

query I rowsort
SELECT + ( - col0 ) * - 53 FROM tab0
----
4611
5141
795

onlyif mysql # DIV for integer division: 
query I rowsort label-9790
SELECT ( 97 ) DIV + + 9 AS col2 FROM tab1
----
10
10
10

skipif mysql # not compatible
query I rowsort label-9790
SELECT ( 97 ) / + + 9 AS col2 FROM tab1
----
10
10
10

query I rowsort
SELECT 38 FROM tab0 AS cor0 WHERE 77 IS NULL
----

query I rowsort
SELECT - ( + - col1 ) + + - 93 AS col0 FROM tab2 AS cor0
----
-16
-26
-42

query I rowsort
SELECT DISTINCT 29 + + - 14 FROM tab1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-9794
SELECT - COUNT( - col0 ) + + 81 FROM tab0
----
78

skipif mysql # not compatible
query I rowsort label-9794
SELECT - COUNT ( - col0 ) + + 81 FROM tab0
----
78

query III rowsort
SELECT ALL * FROM tab2 WHERE ( + - col2 ) >= col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9796
SELECT COUNT( DISTINCT col0 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9796
SELECT COUNT ( DISTINCT col0 ) AS col0 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9797
SELECT + 66 * - - ( + COUNT( ALL col2 ) ) * + + SUM( DISTINCT - 59 ) FROM tab0 AS cor0
----
-11682

skipif mysql # not compatible
query I rowsort label-9797
SELECT + 66 * - - ( + COUNT ( ALL col2 ) ) * + + SUM ( DISTINCT - 59 ) FROM tab0 AS cor0
----
-11682

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9798
SELECT ALL - col2 AS col2 FROM tab2 AS cor0 WHERE NOT - CAST( + col0 AS SIGNED ) BETWEEN NULL AND 49 * - - ( 53 ) * col2 + - col1
----

skipif mysql # not compatible
query I rowsort label-9798
SELECT ALL - col2 AS col2 FROM tab2 AS cor0 WHERE NOT - CAST ( + col0 AS INTEGER ) BETWEEN NULL AND 49 * - - ( 53 ) * col2 + - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9799
SELECT ALL + 53 AS col2, - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
53
NULL
53
NULL
53
NULL

skipif mysql # not compatible
query II rowsort label-9799
SELECT ALL + 53 AS col2, - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
53
NULL
53
NULL
53
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 34 / col2 * - 65 * + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-9801
SELECT - 66 DIV + + col0 + col2 FROM tab0 AS cor0
----
10
43
99

skipif mysql # not compatible
query I rowsort label-9801
SELECT - 66 / + + col0 + col2 FROM tab0 AS cor0
----
10
43
99

query I rowsort
SELECT DISTINCT 35 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - col0 FROM tab2 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT col2 * col0 * - 55 * + 97 AS col2, 23 AS col1 FROM tab1
----
-26120160
23
-26755025
23
-33012980
23

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 <= ( + ( col1 ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9806
SELECT - COUNT( * ) DIV + 97 col0 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9806
SELECT - COUNT ( * ) / + 97 col0 FROM tab1
----
0

query I rowsort
SELECT ALL - col0 * - - 88 FROM tab0
----
-1320
-7656
-8536

query I rowsort
SELECT DISTINCT + ( - ( + col0 ) ) AS col0 FROM tab1
----
-51
-85
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col1, col0 + - 33 FROM tab1 AS cor0
----
59
52
68
58
96
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9810
SELECT + 3 DIV + ( COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9810
SELECT + 3 / + ( COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9811
SELECT DISTINCT + + 14 DIV - COUNT( * ) FROM tab2 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-9811
SELECT DISTINCT + + 14 / - COUNT ( * ) FROM tab2 AS cor0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-9812
SELECT + COUNT( + col0 ) * 42 FROM tab0
----
126

skipif mysql # not compatible
query I rowsort label-9812
SELECT + COUNT ( + col0 ) * 42 FROM tab0
----
126

query III rowsort
SELECT ALL * FROM tab2 WHERE - ( - + 65 ) / ( 84 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9814
SELECT DISTINCT + col1 + - col0 + + CAST( col0 AS SIGNED ) * - 1 + - col0 FROM tab0 AS cor0
----
-240
-290
36

skipif mysql # not compatible
query I rowsort label-9814
SELECT DISTINCT + col1 + - col0 + + CAST ( col0 AS INTEGER ) * - 1 + - col0 FROM tab0 AS cor0
----
-240
-290
36

query I rowsort
SELECT + + ( + + 13 ) AS col2 FROM tab1 cor0
----
13
13
13

query I rowsort
SELECT ALL + 60 + 81 FROM tab0 AS cor0
----
141
141
141

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 10 BETWEEN NULL AND - - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9818
SELECT DISTINCT - - ( - CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9818
SELECT DISTINCT - - ( - CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - 90 + - col1 AS col1 FROM tab2 AS cor0
----
-141
-157
-167

query I rowsort
SELECT DISTINCT + col1 FROM tab2 cor0 WHERE 66 * 42 NOT BETWEEN col1 * - col2 AND NULL
----

query I rowsort
SELECT 62 + - col2 + col1 FROM tab1 AS cor0
----
-20
41
8

query I rowsort
SELECT - col0 + + + col2 * - ( + - col0 ) FROM tab1
----
4845
4930
6097

query I rowsort
SELECT DISTINCT - col2 * col2 + - + col1 - - col2 FROM tab0
----
-111
-2243
-9703

query I rowsort
SELECT DISTINCT col0 - + 67 + - - col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-2
23
71

query I rowsort
SELECT + 31 FROM tab1 WHERE - 59 IS NOT NULL
----
31
31
31

onlyif mysql # aggregate syntax: 
query I rowsort label-9826
SELECT ALL SUM( ALL + 13 ) AS col0 FROM tab2 cor0
----
39

skipif mysql # not compatible
query I rowsort label-9826
SELECT ALL SUM ( ALL + 13 ) AS col0 FROM tab2 cor0
----
39

query II rowsort
SELECT + 49, + col0 FROM tab0 AS cor0
----
49
15
49
87
49
97

onlyif mysql # DIV for integer division: 
query I rowsort label-9828
SELECT col0 DIV 86 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9828
SELECT col0 / 86 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col2 + - 21 AS col0 FROM tab1
----
38
47
75

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL <> - ( - col0 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9831
SELECT + 72 * + col0 + + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9831
SELECT + 72 * + col0 + + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( + 87 ) * 41 FROM tab2 AS cor0
----
3567
3567
3567

query I rowsort
SELECT DISTINCT col0 * - 39 + col2 FROM tab1 AS cor0
----
-1893
-3256
-3481

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col2 BETWEEN + - 1 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 41 FROM tab2 cor0 WHERE NOT - col1 NOT BETWEEN - col0 * - + col2 * + col0 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9836
SELECT ALL - col0 DIV - 94 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9836
SELECT ALL - col0 / - 94 AS col2 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 19 ) col0 FROM tab2
----
19
19
19

query I rowsort
SELECT DISTINCT 94 * - col1 AS col1 FROM tab0 AS cor0
----
-1974
-7614
-94

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL > col2 * - 95
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9840
SELECT ALL + col0 * - 88 + 5 - + - col0 + - CAST( NULL AS SIGNED ) / + + 73 / + 85 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9840
SELECT ALL + col0 * - 88 + 5 - + - col0 + - CAST ( NULL AS INTEGER ) / + + 73 / + 85 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9841
SELECT SUM( + 45 ) * + + COUNT( * ) FROM tab2
----
405

skipif mysql # not compatible
query I rowsort label-9841
SELECT SUM ( + 45 ) * + + COUNT ( * ) FROM tab2
----
405

onlyif mysql # aggregate syntax: 
query I rowsort label-9842
SELECT - ( - + COUNT( * ) ) * 53 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
477

skipif mysql # not compatible
query I rowsort label-9842
SELECT - ( - + COUNT ( * ) ) * 53 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
477

query II rowsort
SELECT - 24, col2 AS col1 FROM tab0
----
-24
10
-24
47
-24
99

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9844
SELECT 98 + + - col0 * CAST( + col0 AS SIGNED ) DIV + - col2 AS col2 FROM tab1
----
125
219
220

skipif mysql # not compatible
query I rowsort label-9844
SELECT 98 + + - col0 * CAST ( + col0 AS INTEGER ) / + - col2 AS col2 FROM tab1
----
125
219
220

onlyif mysql # aggregate syntax: 
query I rowsort label-9845
SELECT - 21 * COUNT( * ) + - COUNT( * ) FROM tab2 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-9845
SELECT - 21 * COUNT ( * ) + - COUNT ( * ) FROM tab2 AS cor0
----
-66

query I rowsort
SELECT - 34 + - 4 AS col0 FROM tab1 AS cor0
----
-38
-38
-38

onlyif mysql # aggregate syntax: 
query II rowsort label-9847
SELECT ALL + - COUNT( * ) AS col0, MAX( DISTINCT + + 4 ) FROM tab0 AS cor0
----
-3
4

skipif mysql # not compatible
query II rowsort label-9847
SELECT ALL + - COUNT ( * ) AS col0, MAX ( DISTINCT + + 4 ) FROM tab0 AS cor0
----
-3
4

query I rowsort
SELECT ALL - - col0 FROM tab1 cor0 WHERE ( NULL ) IS NULL
----
51
85
91

query II rowsort
SELECT col2, - ( - col1 ) FROM tab1 AS cor0
----
59
5
68
47
96
14

query III rowsort
SELECT * FROM tab0 cor0 WHERE + 82 >= NULL
----

query I rowsort
SELECT DISTINCT 25 + + ( - ( col2 ) ) + 96 - col1 + + + ( 55 ) * - + col0 * col0 AS col1 FROM tab0 AS cor0
----
-12382
-416205
-517474

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 58 + - col0 * + col1 * - - ( - + col0 ) col0 FROM tab2 AS cor0
----
107858
315334
376817

onlyif mysql # DIV for integer division: 
query I rowsort label-9853
SELECT DISTINCT - 18 + col2 DIV + col0 FROM tab0 AS cor0
----
-15
-17
-18

skipif mysql # not compatible
query I rowsort label-9853
SELECT DISTINCT - 18 + col2 / + col0 FROM tab0 AS cor0
----
-15
-17
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9854
SELECT + 37 * + + ( - + CAST( NULL AS SIGNED ) ) col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9854
SELECT + 37 * + + ( - + CAST ( NULL AS INTEGER ) ) col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9855
SELECT ALL 51 + - COUNT( - col0 ) AS col1 FROM tab1
----
48

skipif mysql # not compatible
query I rowsort label-9855
SELECT ALL 51 + - COUNT ( - col0 ) AS col1 FROM tab1
----
48

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9856
SELECT DISTINCT + 73 - - - CAST( NULL AS DECIMAL ) * 35 * + 44 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9856
SELECT DISTINCT + 73 - - - CAST ( NULL AS REAL ) * 35 * + 44 AS col0 FROM tab0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9857
SELECT DISTINCT ( - CAST( - COUNT( ALL 58 ) AS SIGNED ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9857
SELECT DISTINCT ( - CAST ( - COUNT ( ALL 58 ) AS INTEGER ) ) FROM tab2
----
3

query I rowsort
SELECT ( + col1 ) - ( col0 ) AS col2 FROM tab2
----
-8
13
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9859
SELECT - col0 FROM tab1 WHERE + 52 * + 80 + + CAST( NULL AS SIGNED ) / - - 90 NOT BETWEEN + + 98 + + + 10 * - col1 AND NULL
----

skipif mysql # not compatible
query I rowsort label-9859
SELECT - col0 FROM tab1 WHERE + 52 * + 80 + + CAST ( NULL AS INTEGER ) / - - 90 NOT BETWEEN + + 98 + + + 10 * - col1 AND NULL
----

query II rowsort
SELECT col1 * - - ( - col0 ) - - col2 * + - col0 * - col2 * + col0 AS col1, + col2 FROM tab1
----
23970102
96
25149800
59
38287067
68

query I rowsort
SELECT - col1 AS col0 FROM tab1 AS cor0 WHERE 87 > - 95
----
-14
-47
-5

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9862
SELECT * FROM tab0 AS cor0 WHERE col1 BETWEEN + - 7 AND col2 / - CAST( NULL AS DECIMAL ) + + col2
----

skipif mysql # not compatible
query III rowsort label-9862
SELECT * FROM tab0 AS cor0 WHERE col1 BETWEEN + - 7 AND col2 / - CAST ( NULL AS REAL ) + + col2
----

query I rowsort
SELECT DISTINCT + 9 + col2 * - col1 AS col2 FROM tab1 AS cor0
----
-1335
-286
-3187

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + 27, - 63 col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
27
-63

query I rowsort
SELECT + 13 FROM tab2 WHERE - - 59 IS NOT NULL
----
13
13
13

query II rowsort
SELECT col0 AS col2, - 74 - 54 AS col0 FROM tab1
----
51
-128
85
-128
91
-128

query I rowsort
SELECT - 28 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to c3e7fa3d059fc708f03c60e9cef0c115

onlyif mysql # aggregate syntax: 
query I rowsort label-9868
SELECT - 4 * ( SUM( DISTINCT col2 ) ) AS col1 FROM tab0 AS cor0 WHERE NOT col2 BETWEEN NULL AND 3
----
-624

skipif mysql # not compatible
query I rowsort label-9868
SELECT - 4 * ( SUM ( DISTINCT col2 ) ) AS col1 FROM tab0 AS cor0 WHERE NOT col2 BETWEEN NULL AND 3
----
-624

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 col2 FROM tab1 AS cor0 WHERE NOT 10 * - - col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 * 26 col2 FROM tab1 AS cor0
----
-1534
-1768
-2496

onlyif mysql # DIV for integer division: 
query II rowsort label-9871
SELECT ALL + 49 DIV + - 56 * - + 79 + - - col0, col0 AS col1 FROM tab2 cor0
----
46
46
64
64
75
75

skipif mysql # not compatible
query II rowsort label-9871
SELECT ALL + 49 / + - 56 * - + 79 + - - col0, col0 AS col1 FROM tab2 cor0
----
46
46
64
64
75
75

query I rowsort
SELECT + - col2 * + 51 AS col2 FROM tab2 AS cor0
----
-1173
-2040
-2958

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9873
SELECT DISTINCT + - 65 AS col2 FROM tab0 AS cor0 WHERE NOT col0 < CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-9873
SELECT DISTINCT + - 65 AS col2 FROM tab0 AS cor0 WHERE NOT col0 < CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col1 + - col2 / + + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9875
SELECT - - SUM( - 30 ) AS col1 FROM tab2 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-9875
SELECT - - SUM ( - 30 ) AS col1 FROM tab2 AS cor0
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-9876
SELECT ALL COUNT( * ) * SUM( ALL col2 ) * + 84 FROM tab1
----
56196

skipif mysql # not compatible
query I rowsort label-9876
SELECT ALL COUNT ( * ) * SUM ( ALL col2 ) * + 84 FROM tab1
----
56196

query I rowsort
SELECT + col1 * + 85 FROM tab1
----
1190
3995
425

query I rowsort
SELECT col0 AS col0 FROM tab2 WHERE NOT col2 IS NULL
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9879
SELECT + CAST( - - 10 AS SIGNED ) FROM tab2
----
10
10
10

skipif mysql # not compatible
query I rowsort label-9879
SELECT + CAST ( - - 10 AS INTEGER ) FROM tab2
----
10
10
10

query I rowsort
SELECT ALL col2 + 58 AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9881
SELECT + CAST( + - 50 AS SIGNED ) AS col0 FROM tab2
----
-50
-50
-50

skipif mysql # not compatible
query I rowsort label-9881
SELECT + CAST ( + - 50 AS INTEGER ) AS col0 FROM tab2
----
-50
-50
-50

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9882
SELECT - ( - COUNT( DISTINCT CAST( NULL AS DECIMAL ) ) ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9882
SELECT - ( - COUNT ( DISTINCT CAST ( NULL AS REAL ) ) ) FROM tab1
----
0

query I rowsort
SELECT DISTINCT + col1 * + col0 * 70 * + 40 AS col0 FROM tab0
----
271600
3402000
5115600

query I rowsort
SELECT DISTINCT + 13 * + col1 AS col0 FROM tab1
----
182
611
65

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 >= - ( col2 ) - col2 * col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 * - 8 col2 FROM tab2 AS cor0
----
-408
-536
-616

onlyif mysql # aggregate syntax: 
query I rowsort label-9887
SELECT + - COUNT( * ) AS col2 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-9887
SELECT + - COUNT ( * ) AS col2 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9888
SELECT ALL ( - + COUNT( * ) ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9888
SELECT ALL ( - + COUNT ( * ) ) FROM tab1 cor0
----
-3

query I rowsort
SELECT DISTINCT - 45 + - + ( - 85 ) FROM tab0 AS cor0
----
40

query I rowsort
SELECT DISTINCT + col2 * col2 + + + 43 FROM tab2 AS cor0
----
1643
3407
572

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9891
SELECT ALL - CAST( NULL AS SIGNED ) + MAX( col0 ) col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9891
SELECT ALL - CAST ( NULL AS INTEGER ) + MAX ( col0 ) col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - col0 + + col2 + - - col1 FROM tab0 cor0
----
-56
113
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9893
SELECT - col0 + - + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9893
SELECT - col0 + - + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + 18 + + ( col1 ) + + + 34 AS col2 FROM tab1 AS cor0
----
21
30
63

onlyif mysql # aggregate syntax: 
query I rowsort label-9895
SELECT ALL 15 + + COUNT( * ) * 15 FROM tab0
----
60

skipif mysql # not compatible
query I rowsort label-9895
SELECT ALL 15 + + COUNT ( * ) * 15 FROM tab0
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9896
SELECT DISTINCT - col2 * - + CAST( - + col1 AS SIGNED ) - col1 FROM tab2
----
-1224
-3157
-3953

skipif mysql # not compatible
query I rowsort label-9896
SELECT DISTINCT - col2 * - + CAST ( - + col1 AS INTEGER ) - col1 FROM tab2
----
-1224
-3157
-3953

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9897
SELECT DISTINCT col2 * + CAST( col1 AS DECIMAL ) + - col2 FROM tab0 WHERE NOT ( ( NOT + col1 IS NULL ) )
----

skipif mysql # not compatible
query I rowsort label-9897
SELECT DISTINCT col2 * + CAST ( col1 AS REAL ) + - col2 FROM tab0 WHERE NOT ( ( NOT + col1 IS NULL ) )
----

query I rowsort
SELECT - 50 AS col1 FROM tab1 WHERE NOT NULL NOT BETWEEN - - col0 AND + + col1 * - + 69
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9899
SELECT - + SUM( + col0 ) AS col1 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-9899
SELECT - + SUM ( + col0 ) AS col1 FROM tab0 AS cor0
----
-199

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col1 + - col1 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9901
SELECT * FROM tab2 AS cor0 WHERE NOT CAST( - 77 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9901
SELECT * FROM tab2 AS cor0 WHERE NOT CAST ( - 77 AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT + + 12 * + 16 + 78 AS col1 FROM tab2 cor0
----
270
270
270

query I rowsort
SELECT - col0 * + 73 AS col2 FROM tab0 AS cor0
----
-1095
-6351
-7081

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9904
SELECT DISTINCT col1 AS col0, - CAST( NULL AS SIGNED ) - + 1 * - col0 + + col2 FROM tab1
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-9904
SELECT DISTINCT col1 AS col0, - CAST ( NULL AS INTEGER ) - + 1 * - col0 + + col2 FROM tab1
----
14
NULL
47
NULL
5
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col2, - col1 + - 2 col0 FROM tab2
----
51
-53
67
-69
77
-79

query II rowsort
SELECT 12, - 59 AS col1 FROM tab1
----
12
-59
12
-59
12
-59

query II rowsort
SELECT col2 AS col2, + col1 AS col1 FROM tab1
----
59
5
68
47
96
14

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9908
SELECT + col1 AS col1, - CAST( 86 AS SIGNED ) col2 FROM tab0 AS cor0
----
1
-86
21
-86
81
-86

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9908
SELECT + col1 AS col1, - CAST ( 86 AS INTEGER ) col2 FROM tab0 AS cor0
----
1
-86
21
-86
81
-86

query I rowsort
SELECT DISTINCT + 36 * + ( + - col1 ) * ( ( - col1 ) ) + - col2 AS col0 FROM tab1 AS cor0
----
6960
79456
841

query II rowsort
SELECT col0, col1 * + + col2 FROM tab0 AS cor0
----
15
3807
87
210
97
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col0 col0, col0 AS col2 FROM tab2 AS cor0
----
-46
46
-64
64
-75
75

onlyif mysql # aggregate syntax: 
query II rowsort label-9912
SELECT DISTINCT COUNT( * ) AS col2, 31 * + 9 + + ( + COUNT( * ) ) FROM tab1 AS cor0
----
3
282

skipif mysql # not compatible
query II rowsort label-9912
SELECT DISTINCT COUNT ( * ) AS col2, 31 * + 9 + + ( + COUNT ( * ) ) FROM tab1 AS cor0
----
3
282

onlyif mysql # DIV for integer division: 
query I rowsort label-9913
SELECT DISTINCT col2 DIV - ( - + col0 ) + + ( - 53 ) * col1 FROM tab2 AS cor0
----
-2703
-3551
-4081

skipif mysql # not compatible
query I rowsort label-9913
SELECT DISTINCT col2 / - ( - + col0 ) + + ( - 53 ) * col1 FROM tab2 AS cor0
----
-2703
-3551
-4081

query II rowsort
SELECT col1 * - + 41 + + 61 AS col2, + 94 FROM tab2 AS cor0 WHERE + col0 IS NULL
----

query I rowsort
SELECT DISTINCT - + col1 + col0 + col2 * + - 9 FROM tab0 AS cor0
----
-24
-489
-795

query I rowsort
SELECT ALL col0 + + 94 FROM tab2 cor0
----
140
158
169

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 10 = col1
----

query I rowsort
SELECT ALL - 77 + + + 66 AS col0 FROM tab0
----
-11
-11
-11

query I rowsort
SELECT DISTINCT ( + - 2 ) FROM tab0
----
-2

query I rowsort
SELECT ALL 98 - 38 AS col2 FROM tab1
----
60
60
60

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9921
SELECT * FROM tab2 WHERE ( - CAST( - 68 AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-9921
SELECT * FROM tab2 WHERE ( - CAST ( - 68 AS INTEGER ) ) IS NULL
----

query I rowsort
SELECT + 46 + + 65 FROM tab0 cor0
----
111
111
111

onlyif mysql # DIV for integer division: 
query II rowsort label-9923
SELECT + + col2 DIV + - 71 + - col1 AS col2, - col1 + - ( 35 ) AS col2 FROM tab0 AS cor0
----
-2
-36
-21
-56
-81
-116

skipif mysql # not compatible
query II rowsort label-9923
SELECT + + col2 / + - 71 + - col1 AS col2, - col1 + - ( 35 ) AS col2 FROM tab0 AS cor0
----
-2
-36
-21
-56
-81
-116

query I rowsort
SELECT DISTINCT 61 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
61

query II rowsort
SELECT 39, col2 AS col0 FROM tab2
----
39
23
39
40
39
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9926
SELECT - MIN( - + col0 ) AS col1 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-9926
SELECT - MIN ( - + col0 ) AS col1 FROM tab2
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9927
SELECT + + col2 + - + ( + + CAST( NULL AS SIGNED ) ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9927
SELECT + + col2 + - + ( + + CAST ( NULL AS INTEGER ) ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT - 39, col0 FROM tab0 AS cor0
----
-39
15
-39
87
-39
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9929
SELECT CAST( NULL AS SIGNED ) * col2 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-9929
SELECT CAST ( NULL AS INTEGER ) * col2 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9930
SELECT COUNT( 25 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9930
SELECT COUNT ( 25 ) FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9931
SELECT - CAST( - + 8 AS SIGNED ) AS col1 FROM tab2 cor0
----
8
8
8

skipif mysql # not compatible
query I rowsort label-9931
SELECT - CAST ( - + 8 AS INTEGER ) AS col1 FROM tab2 cor0
----
8
8
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9932
SELECT + COUNT( * ) * - + 2 FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-9932
SELECT + COUNT ( * ) * - + 2 FROM tab0
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-9933
SELECT ALL COUNT( DISTINCT 27 ) col2, MIN( - + col2 ) FROM tab0
----
1
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9933
SELECT ALL COUNT ( DISTINCT 27 ) col2, MIN ( - + col2 ) FROM tab0
----
1
-99

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 NOT BETWEEN - col2 AND + + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 93 FROM tab1 WHERE NOT + + col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT ( NOT - col0 * + col1 IS NOT NULL ) )
----

query I rowsort
SELECT ALL + 17 * - 7 FROM tab0
----
-119
-119
-119

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9938
SELECT DISTINCT CAST( NULL AS SIGNED ) + + MAX( DISTINCT + CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9938
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + 59 AS col1 FROM tab0 cor0
----
59
59
59

query II rowsort
SELECT DISTINCT + col0 + - col0, col0 FROM tab0 cor0
----
0
15
0
87
0
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9941
SELECT + MIN( ALL - ( - 38 ) ) FROM tab2 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-9941
SELECT + MIN ( ALL - ( - 38 ) ) FROM tab2 AS cor0
----
38

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + 92 * 27 * - - 29 + col2 + - col2 IS NOT NULL
----

query I rowsort
SELECT ALL 69 - + col0 FROM tab1 WHERE - + 74 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9944
SELECT ALL 20 * + col1 * + 30 + + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9944
SELECT ALL 20 * + col1 * + 30 + + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE + - ( + col1 ) <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9946
SELECT 40 * - - col2 + - - col1 DIV + 46 * ( 50 ) DIV col2 AS col1 FROM tab0 AS cor0
----
1881
3960
400

skipif mysql # not compatible
query I rowsort label-9946
SELECT 40 * - - col2 + - - col1 / + 46 * ( 50 ) / col2 AS col1 FROM tab0 AS cor0
----
1881
3960
400

onlyif mysql # DIV for integer division: 
query I rowsort label-9947
SELECT + col2 DIV + col2 + - col1 - + 53 AS col0 FROM tab2 AS cor0
----
-103
-119
-129

skipif mysql # not compatible
query I rowsort label-9947
SELECT + col2 / + col2 + - col1 - + 53 AS col0 FROM tab2 AS cor0
----
-103
-119
-129

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 51 * + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9949
SELECT DISTINCT - COUNT( * ) + - 10 FROM tab2 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-9949
SELECT DISTINCT - COUNT ( * ) + - 10 FROM tab2 AS cor0
----
-13

query I rowsort
SELECT 99 + - col1 FROM tab1 cor0
----
52
85
94

query II rowsort
SELECT DISTINCT - col1, + col0 FROM tab2 AS cor0
----
-51
46
-67
75
-77
64

query II rowsort
SELECT - col1 + - 35 * - - 7 * col0, col1 AS col1 FROM tab0 AS cor0
----
-21336
21
-23766
1
-3756
81

query I rowsort
SELECT ALL - col0 + - + 90 FROM tab0 cor0
----
-105
-177
-187

onlyif mysql # aggregate syntax: 
query I rowsort label-9954
SELECT COUNT( * ) + - 41 + + 34 + + COUNT( * ) col1 FROM tab0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9954
SELECT COUNT ( * ) + - 41 + + 34 + + COUNT ( * ) col1 FROM tab0
----
-1

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + col0 <= + col0
----

query I rowsort
SELECT DISTINCT col2 + - 84 AS col1 FROM tab1 WHERE + ( + col2 ) < NULL
----

query I rowsort
SELECT DISTINCT - 44 + + col2 FROM tab1
----
15
24
52

query I rowsort
SELECT col2 * + - col1 * + col0 FROM tab0
----
-18270
-57105
-9603

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9959
SELECT DISTINCT - - COUNT( * ) * + AVG ( - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9959
SELECT DISTINCT - - COUNT ( * ) * + AVG ( - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE 85 IS NULL
----

query I rowsort
SELECT + 64 * - - 6 - + 57 AS col1 FROM tab0 AS cor0
----
327
327
327

onlyif mysql # aggregate syntax: 
query I rowsort label-9962
SELECT ALL - - COUNT( * ) AS col1 FROM tab0 cor0 WHERE NOT + col0 < + - col1
----
3

skipif mysql # not compatible
query I rowsort label-9962
SELECT ALL - - COUNT ( * ) AS col1 FROM tab0 cor0 WHERE NOT + col0 < + - col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9963
SELECT - MAX( DISTINCT - col1 ) AS col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-9963
SELECT - MAX ( DISTINCT - col1 ) AS col2 FROM tab0
----
1

query II rowsort
SELECT ALL - 86 AS col2, col2 - - - 49 FROM tab0
----
-86
-2
-86
-39
-86
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9965
SELECT DISTINCT CAST( - col2 AS SIGNED ) AS col1 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-9965
SELECT DISTINCT CAST ( - col2 AS INTEGER ) AS col1 FROM tab2
----
-23
-40
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9966
SELECT - COUNT( * ) DIV + + 4 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9966
SELECT - COUNT ( * ) / + + 4 AS col1 FROM tab2
----
0

query I rowsort
SELECT ALL + 82 + + col1 AS col0 FROM tab0 AS cor0
----
103
163
83

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 97 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9969
SELECT DISTINCT - col2 + col0 * col1 * + CAST( NULL AS SIGNED ) * col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9969
SELECT DISTINCT - col2 + col0 * col1 * + CAST ( NULL AS INTEGER ) * col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + + col2 + col1 FROM tab1 cor0
----
110
115
64

query I rowsort
SELECT ALL + - 86 * - 25 FROM tab2 AS cor0
----
2150
2150
2150

query I rowsort
SELECT 13 * - col2 AS col1 FROM tab0
----
-1287
-130
-611

query I rowsort
SELECT ALL - col1 + + ( col0 ) AS col2 FROM tab1 AS cor0
----
37
44
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9974
SELECT ALL + MIN( col1 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - 58 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9974
SELECT ALL + MIN ( col1 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - 58 AND NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9975
SELECT 4 DIV + col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9975
SELECT 4 / + col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + + 38 AS col0 FROM tab1 cor0
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9977
SELECT ALL - - CAST( + 23 AS SIGNED ) * + col0 FROM tab2 cor0
----
1058
1472
1725

skipif mysql # not compatible
query I rowsort label-9977
SELECT ALL - - CAST ( + 23 AS INTEGER ) * + col0 FROM tab2 cor0
----
1058
1472
1725

query I rowsort
SELECT 22 - - col0 AS col0 FROM tab2 AS cor0
----
68
86
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col1 FROM tab2 AS cor0 WHERE 55 <> NULL AND NOT 21 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + col2 * + col0 * + 43 * + + 78 AS col1 FROM tab1
----
16421184
16820310
20754552

query II rowsort
SELECT - 13 AS col1, - col2 FROM tab2
----
-13
-23
-13
-40
-13
-58

query II rowsort
SELECT + col1, - col2 AS col2 FROM tab1 WHERE NOT ( - col1 ) + - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9983
SELECT ALL - COUNT( * ) * + + MAX( - col2 ) FROM tab0
----
30

skipif mysql # not compatible
query I rowsort label-9983
SELECT ALL - COUNT ( * ) * + + MAX ( - col2 ) FROM tab0
----
30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 AS col1, 57 col2 FROM tab0
----
1
57
21
57
81
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 1 * - 22 col1 FROM tab2
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9986
SELECT ALL - CAST( NULL AS SIGNED ) AS col2, col0 AS col0 FROM tab0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-9986
SELECT ALL - CAST ( NULL AS INTEGER ) AS col2, col0 AS col0 FROM tab0
----
NULL
15
NULL
87
NULL
97

query I rowsort
SELECT ALL - col1 * + - col1 FROM tab2 AS cor0
----
2601
4489
5929

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 + - col2 BETWEEN + 66 - + 12 * col0 AND NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9989
SELECT DISTINCT col2 DIV + 51 + + - 15 AS col1, col0 * - col0 DIV col0 AS col0 FROM tab2 AS cor0
----
-14
-75
-15
-46
-15
-64

skipif mysql # not compatible
query II rowsort label-9989
SELECT DISTINCT col2 / + 51 + + - 15 AS col1, col0 * - col0 / col0 AS col0 FROM tab2 AS cor0
----
-14
-75
-15
-46
-15
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-9990
SELECT DISTINCT COUNT( * ) - + ( + 61 + 36 ) FROM tab1
----
-94

skipif mysql # not compatible
query I rowsort label-9990
SELECT DISTINCT COUNT ( * ) - + ( + 61 + 36 ) FROM tab1
----
-94

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9991
SELECT DISTINCT CAST( + col0 AS DECIMAL ) FROM tab1 WHERE + col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-9991
SELECT DISTINCT CAST ( + col0 AS REAL ) FROM tab1 WHERE + col0 IS NULL
----

query I rowsort
SELECT - 49 + 46 FROM tab1
----
-3
-3
-3

query I rowsort
SELECT ( 73 ) FROM tab0
----
73
73
73

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + col2 ) IN ( + col1 / - 29 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( col0 * - 61 ) = ( NULL )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col0 + 1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9997
SELECT 9 + COUNT( * ) FROM tab2
----
12

skipif mysql # not compatible
query I rowsort label-9997
SELECT 9 + COUNT ( * ) FROM tab2
----
12

query I rowsort
SELECT col0 AS col0 FROM tab2 WHERE ( - col2 * + 77 + + 79 * + col1 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 15 col1 FROM tab1 WHERE NOT col1 IN ( col0 )
----
-15
-15
-15

